{"version":3,"sources":["../../../node_modules/node-sqlite3-wasm/dist/node-sqlite3-wasm.js","../../shared/node_modules/ajv/lib/compile/codegen/code.ts","../../shared/node_modules/ajv/lib/compile/codegen/scope.ts","../../shared/node_modules/ajv/lib/compile/codegen/index.ts","../../shared/node_modules/ajv/lib/compile/util.ts","../../shared/node_modules/ajv/lib/compile/names.ts","../../shared/node_modules/ajv/lib/compile/errors.ts","../../shared/node_modules/ajv/lib/compile/validate/boolSchema.ts","../../shared/node_modules/ajv/lib/compile/rules.ts","../../shared/node_modules/ajv/lib/compile/validate/applicability.ts","../../shared/node_modules/ajv/lib/compile/validate/dataType.ts","../../shared/node_modules/ajv/lib/compile/validate/defaults.ts","../../shared/node_modules/ajv/lib/vocabularies/code.ts","../../shared/node_modules/ajv/lib/compile/validate/keyword.ts","../../shared/node_modules/ajv/lib/compile/validate/subschema.ts","../../shared/node_modules/fast-deep-equal/index.js","../../shared/node_modules/json-schema-traverse/index.js","../../shared/node_modules/ajv/lib/compile/resolve.ts","../../shared/node_modules/ajv/lib/compile/validate/index.ts","../../shared/node_modules/ajv/lib/runtime/validation_error.ts","../../shared/node_modules/ajv/lib/compile/ref_error.ts","../../shared/node_modules/ajv/lib/compile/index.ts","../../shared/node_modules/ajv/dist/refs/data.json","../../shared/node_modules/fast-uri/lib/utils.js","../../shared/node_modules/fast-uri/lib/schemes.js","../../shared/node_modules/fast-uri/index.js","../../shared/node_modules/ajv/lib/runtime/uri.ts","../../shared/node_modules/ajv/lib/core.ts","../../shared/node_modules/ajv/lib/vocabularies/core/id.ts","../../shared/node_modules/ajv/lib/vocabularies/core/ref.ts","../../shared/node_modules/ajv/lib/vocabularies/core/index.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts","../../shared/node_modules/ajv/lib/runtime/ucs2length.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/limitLength.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/pattern.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/required.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/limitItems.ts","../../shared/node_modules/ajv/lib/runtime/equal.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/const.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/enum.ts","../../shared/node_modules/ajv/lib/vocabularies/validation/index.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/items.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/items2020.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/contains.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/properties.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/not.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/allOf.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/if.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts","../../shared/node_modules/ajv/lib/vocabularies/applicator/index.ts","../../shared/node_modules/ajv/lib/vocabularies/format/format.ts","../../shared/node_modules/ajv/lib/vocabularies/format/index.ts","../../shared/node_modules/ajv/lib/vocabularies/metadata.ts","../../shared/node_modules/ajv/lib/vocabularies/draft7.ts","../../shared/node_modules/ajv/lib/vocabularies/discriminator/types.ts","../../shared/node_modules/ajv/lib/vocabularies/discriminator/index.ts","../../shared/node_modules/ajv/dist/refs/json-schema-draft-07.json","../../shared/node_modules/ajv/lib/ajv.ts","../../shared/node_modules/ajv-formats/src/formats.ts","../../shared/node_modules/ajv-formats/src/limit.ts","../../shared/node_modules/ajv-formats/src/index.ts","../cli/cli.ts","../package.json","../../../scrapers/myChart/core/myChartRequest.ts","../../../shared/logger.ts","../../../scrapers/cookies.ts","../../../shared/env.ts","../../../shared/hostConcurrency.ts","../../../scrapers/http.ts","../../../scrapers/list-all-mycharts/mychart-instances.json","../../../scrapers/list-all-mycharts/directory.ts","../../../scrapers/myChart/auth/login.ts","../../../scrapers/myChart/core/util.ts","../../../shared/telemetry.ts","../../../scrapers/myChart/auth/termsAndConditions.ts","../../../scrapers/myChart/auth/blockedInstances.ts","../../../scrapers/myChart/auth/softwareAuthenticator.ts","../../shared/read-local-passwords/index.ts","../../shared/read-local-passwords/chromium.ts","../../shared/read-local-passwords/sqlite.ts","../../shared/read-local-passwords/firefox.ts","../../shared/read-local-passwords/der.ts","../../shared/read-local-passwords/myChartFilter.ts","../../../scrapers/myChart/core/signedOutPage.ts","../../../scrapers/myChart/core/sessionStore.ts","../../../scrapers/myChart/core/sessionRenewal.ts","../../../scrapers/myChart/core/makeAuthenticatedRequest.ts","../../../scrapers/myChart/chart/messages/communicationCenterToken.ts","../../../shared/detailedError.ts","../../../scrapers/myChart/chart/messages/messageUpload.ts","../../../scrapers/myChart/chart/messages/sendMessage.ts","../../../scrapers/myChart/chart/messages/sendReply.ts","../../../scrapers/myChart/core/rawResponse.ts","../../../scrapers/myChart/processors/read.ts","../../../scrapers/myChart/processors/htmlText.ts","../../../scrapers/myChart/chart/messages/conversations.processor.ts","../../../scrapers/myChart/chart/messages/conversations.ts","../../../scrapers/myChart/proxy/proxyContext.ts","../../../scrapers/myChart/chart/profile/profileHtml.ts","../../../scrapers/myChart/chart/profile/profile.processor.ts","../../../scrapers/myChart/chart/profile/profile.ts","../../../scrapers/myChart/auth/totp.ts","../../../scrapers/myChart/core/csrf.ts","../../../scrapers/myChart/auth/setupTotp.ts","../cli/totpStore.ts","../cli/passkeyStore.ts","../../../scrapers/myChart/auth/passkeyLoginRetry.ts","../../../scrapers/myChart/auth/loginModes.ts","../../../scrapers/metadata/version.ts","../../../scrapers/myChart/processors/markdown.ts","../../../scrapers/myChart/processors/processor.ts","../../../scrapers/myChart/proxy/proxyTools.ts","../../shared/capabilities/args.ts","../../shared/capabilities/params.ts","../../shared/capabilities/public.ts","../../../scrapers/myChart/chart/healthSummary/healthSummary.processor.ts","../../../scrapers/myChart/chart/healthSummary/healthSummary.ts","../../../scrapers/myChart/chart/medications/medications.processor.ts","../../../scrapers/myChart/chart/medications/medications.ts","../../../scrapers/myChart/chart/allergies/allergies.processor.ts","../../../scrapers/myChart/chart/allergies/allergies.ts","../../../scrapers/myChart/chart/healthIssues/healthIssues.processor.ts","../../../scrapers/myChart/chart/healthIssues/healthIssues.ts","../../../scrapers/myChart/chart/vitals/vitals.processor.ts","../../../scrapers/myChart/chart/vitals/vitals.ts","../../../scrapers/myChart/chart/immunizations/immunizations.processor.ts","../../../scrapers/myChart/chart/immunizations/immunizations.ts","../../../scrapers/myChart/chart/preventiveCare/preventiveCare.processor.ts","../../../scrapers/myChart/chart/preventiveCare/preventiveCare.ts","../../../scrapers/myChart/chart/medicalHistory/medicalHistory.processor.ts","../../../scrapers/myChart/chart/medicalHistory/medicalHistory.ts","../../../scrapers/myChart/chart/goals/goals.processor.ts","../../../scrapers/myChart/chart/goals/goals.ts","../../shared/capabilities/registry/profile.ts","../../../scrapers/myChart/chart/notes/notes.processor.ts","../../../scrapers/myChart/chart/notes/notes.ts","../../../scrapers/myChart/chart/visits/visits.processor.ts","../../../scrapers/myChart/chart/visits/visits.ts","../../shared/capabilities/registry/visits.ts","../../../scrapers/myChart/eunity/imagingViewer.ts","../../../scrapers/myChart/chart/labs/labResults.processor.ts","../../../scrapers/myChart/chart/labs/imagingResults.processor.ts","../../../scrapers/myChart/chart/labs/labResults.ts","../../../scrapers/myChart/eunity/imagingDirectDownload.ts","../../../scrapers/myChart/clo-image-parser/sortByPatientPosition.ts","../../../shared/amf3Reader.ts","../../../shared/amf3Writer.ts","../../shared/capabilities/imaging.ts","../../shared/capabilities/registry/results.ts","../../../scrapers/myChart/chart/messages/messageThreads.processor.ts","../../../scrapers/myChart/chart/messages/messageThreads.ts","../../../scrapers/myChart/core/safeFileName.ts","../../../scrapers/myChart/core/dcsDocument.ts","../../../scrapers/myChart/chart/messages/messageAttachment.ts","../../../scrapers/myChart/chart/messages/recipients.processor.ts","../../../scrapers/myChart/chart/messages/recipients.ts","../../../scrapers/myChart/chart/messages/deleteMessage.ts","../../shared/resolveUnique.ts","../../shared/capabilities/resolve.ts","../../shared/capabilities/registry/messages.ts","../../../scrapers/myChart/chart/bills/bills.ts","../../../shared/epicDate.ts","../../../scrapers/myChart/chart/bills/summaryHtml.ts","../../../scrapers/myChart/chart/bills/bills.processor.ts","../../../scrapers/myChart/chart/insurance/insurance.processor.ts","../../../scrapers/myChart/chart/insurance/insurance.ts","../../../scrapers/myChart/chart/insuranceBenefits/insuranceBenefits.processor.ts","../../../scrapers/myChart/chart/insuranceBenefits/insuranceBenefits.ts","../../../scrapers/myChart/chart/insurancePayers/insurancePayers.processor.ts","../../../scrapers/myChart/chart/insurancePayers/insurancePayers.ts","../../shared/capabilities/registry/billing.ts","../../../scrapers/myChart/chart/careTeam/careTeam.processor.ts","../../../scrapers/myChart/chart/careTeam/careTeam.ts","../../../scrapers/myChart/chart/referrals/referrals.processor.ts","../../../scrapers/myChart/chart/referrals/referrals.ts","../../../scrapers/myChart/chart/letters/letters.processor.ts","../../../scrapers/myChart/chart/letters/letters.ts","../../../scrapers/myChart/chart/documents/documents.processor.ts","../../../scrapers/myChart/chart/documents/documents.ts","../../../scrapers/myChart/chart/documents/documentDownload.ts","../../../scrapers/myChart/chart/upcomingOrders/upcomingOrders.processor.ts","../../../scrapers/myChart/chart/upcomingOrders/upcomingOrders.ts","../../../scrapers/myChart/chart/questionnaires/questionnaires.processor.ts","../../../scrapers/myChart/chart/questionnaires/questionnaires.ts","../../../scrapers/myChart/chart/careJourneys/careJourneys.processor.ts","../../../scrapers/myChart/chart/careJourneys/careJourneys.ts","../../../scrapers/myChart/chart/activityFeed/activityFeed.processor.ts","../../../scrapers/myChart/chart/activityFeed/activityFeed.ts","../../../scrapers/myChart/chart/educationMaterials/educationMaterials.processor.ts","../../../scrapers/myChart/chart/educationMaterials/educationMaterials.ts","../../../scrapers/myChart/chart/ehiExport/ehiExport.processor.ts","../../../scrapers/myChart/chart/ehiExport/ehiExport.ts","../../../scrapers/myChart/chart/otherMyCharts/otherMyCharts.processor.ts","../../../scrapers/myChart/chart/otherMyCharts/otherMyCharts.ts","../../shared/capabilities/registry/care.ts","../../../scrapers/myChart/chart/emergencyContacts/emergencyContacts.processor.ts","../../../scrapers/myChart/chart/emergencyContacts/emergencyContacts.ts","../../shared/capabilities/registry/emergencyContacts.ts","../../shared/capabilities/registry/prescriptions.ts","../../shared/capabilities/registry/patients.ts","../../../scrapers/myChart/chart/notificationPreferences/notificationPreferences.processor.ts","../../../scrapers/myChart/chart/notificationPreferences/notificationPreferences.ts","../../../scrapers/myChart/chart/accountSettings/accountSettings.processor.ts","../../../scrapers/myChart/chart/accountSettings/accountSettings.ts","../../shared/capabilities/registry/accountSettings.ts","../../../scrapers/myChart/auth/setupPasskey.ts","../../shared/capabilities/registry/accountSecurity.ts","../../../scrapers/npi/npiRegistry.processor.ts","../../../scrapers/npi/npiRegistry.ts","../../shared/capabilities/registry/providers.ts","../../../scrapers/list-all-mycharts/resolveLoginUrl.ts","../../../scrapers/list-all-mycharts/refreshDirectory.ts","../../../scrapers/list-all-mycharts/searchDirectory.ts","../../../scrapers/myChart/prelogin/preloginSession.ts","../../../scrapers/myChart/prelogin/guestEstimates.ts","../../../scrapers/myChart/prelogin/orgProfile.ts","../../../scrapers/myChart/prelogin/providerDirectory.ts","../../../scrapers/myChart/prelogin/networkProfile.ts","../../shared/capabilities/registry/directory.ts","../../shared/featureRequest.ts","../../shared/capabilities/registry/feedback.ts","../../shared/capabilities/index.ts","../cli/capabilityActions.ts","../../../scrapers/myChart/clo-image-parser/clo_to_bitmap.ts","../../../scrapers/myChart/clo-image-parser/exporters/to_jpg.ts","../../shared/readLocalFile.ts","../cli/help.ts","../../shared/node_modules/zod/v3/helpers/util.js","../../shared/node_modules/zod/v3/ZodError.js","../../shared/node_modules/zod/v3/locales/en.js","../../shared/node_modules/zod/v3/errors.js","../../shared/node_modules/zod/v3/helpers/parseUtil.js","../../shared/node_modules/zod/v3/helpers/errorUtil.js","../../shared/node_modules/zod/v3/types.js","../../shared/node_modules/zod/v4/core/index.js","../../shared/node_modules/zod/v4/core/util.js","../../shared/node_modules/zod/v4/core/core.js","../../shared/node_modules/zod/v4/core/errors.js","../../shared/node_modules/zod/v4/core/parse.js","../../shared/node_modules/zod/v4/core/regexes.js","../../shared/node_modules/zod/v4/core/checks.js","../../shared/node_modules/zod/v4/core/doc.js","../../shared/node_modules/zod/v4/core/versions.js","../../shared/node_modules/zod/v4/core/schemas.js","../../shared/node_modules/zod/v4/core/memoizer.js","../../shared/node_modules/zod/v4/locales/index.js","../../shared/node_modules/zod/v4/locales/ar.js","../../shared/node_modules/zod/v4/locales/az.js","../../shared/node_modules/zod/v4/locales/be.js","../../shared/node_modules/zod/v4/locales/bg.js","../../shared/node_modules/zod/v4/locales/bn.js","../../shared/node_modules/zod/v4/locales/ca.js","../../shared/node_modules/zod/v4/locales/ckb.js","../../shared/node_modules/zod/v4/locales/cs.js","../../shared/node_modules/zod/v4/locales/da.js","../../shared/node_modules/zod/v4/locales/de.js","../../shared/node_modules/zod/v4/locales/el.js","../../shared/node_modules/zod/v4/locales/en.js","../../shared/node_modules/zod/v4/locales/eo.js","../../shared/node_modules/zod/v4/locales/es.js","../../shared/node_modules/zod/v4/locales/fa.js","../../shared/node_modules/zod/v4/locales/fi.js","../../shared/node_modules/zod/v4/locales/fr.js","../../shared/node_modules/zod/v4/locales/fr-CA.js","../../shared/node_modules/zod/v4/locales/gu.js","../../shared/node_modules/zod/v4/locales/he.js","../../shared/node_modules/zod/v4/locales/hi.js","../../shared/node_modules/zod/v4/locales/hr.js","../../shared/node_modules/zod/v4/locales/hu.js","../../shared/node_modules/zod/v4/locales/hy.js","../../shared/node_modules/zod/v4/locales/id.js","../../shared/node_modules/zod/v4/locales/is.js","../../shared/node_modules/zod/v4/locales/it.js","../../shared/node_modules/zod/v4/locales/ja.js","../../shared/node_modules/zod/v4/locales/ka.js","../../shared/node_modules/zod/v4/locales/km.js","../../shared/node_modules/zod/v4/locales/kh.js","../../shared/node_modules/zod/v4/locales/kn.js","../../shared/node_modules/zod/v4/locales/ko.js","../../shared/node_modules/zod/v4/locales/lt.js","../../shared/node_modules/zod/v4/locales/mk.js","../../shared/node_modules/zod/v4/locales/ms.js","../../shared/node_modules/zod/v4/locales/ne.js","../../shared/node_modules/zod/v4/locales/nl.js","../../shared/node_modules/zod/v4/locales/nn.js","../../shared/node_modules/zod/v4/locales/no.js","../../shared/node_modules/zod/v4/locales/ota.js","../../shared/node_modules/zod/v4/locales/ps.js","../../shared/node_modules/zod/v4/locales/pl.js","../../shared/node_modules/zod/v4/locales/pt.js","../../shared/node_modules/zod/v4/locales/pt-BR.js","../../shared/node_modules/zod/v4/locales/ro.js","../../shared/node_modules/zod/v4/locales/ru.js","../../shared/node_modules/zod/v4/locales/sk.js","../../shared/node_modules/zod/v4/locales/sl.js","../../shared/node_modules/zod/v4/locales/sv.js","../../shared/node_modules/zod/v4/locales/ta.js","../../shared/node_modules/zod/v4/locales/tg.js","../../shared/node_modules/zod/v4/locales/th.js","../../shared/node_modules/zod/v4/locales/tk.js","../../shared/node_modules/zod/v4/locales/tr.js","../../shared/node_modules/zod/v4/locales/uk.js","../../shared/node_modules/zod/v4/locales/ua.js","../../shared/node_modules/zod/v4/locales/ur.js","../../shared/node_modules/zod/v4/locales/uz.js","../../shared/node_modules/zod/v4/locales/vi.js","../../shared/node_modules/zod/v4/locales/zh-CN.js","../../shared/node_modules/zod/v4/locales/zh-TW.js","../../shared/node_modules/zod/v4/locales/yo.js","../../shared/node_modules/zod/v4/core/registries.js","../../shared/node_modules/zod/v4/core/compile.js","../../shared/node_modules/zod/v4/core/api.js","../../shared/node_modules/zod/v4/core/to-json-schema.js","../../shared/node_modules/zod/v4/core/json-schema-processors.js","../../shared/node_modules/zod/v4/core/json-schema-generator.js","../../shared/node_modules/zod/v4/core/json-schema.js","../../shared/node_modules/zod/v4/mini/schemas.js","../../shared/node_modules/zod/v4/core/visit.js","../../shared/node_modules/@modelcontextprotocol/sdk/src/server/zod-compat.ts","../../shared/node_modules/zod/v4/classic/external.js","../../shared/node_modules/zod/v4/classic/schemas.js","../../shared/node_modules/zod/v4/classic/checks.js","../../shared/node_modules/zod/v4/classic/errors.js","../../shared/node_modules/zod/v4/classic/parse.js","../../shared/node_modules/zod/v4/classic/compat.js","../../shared/node_modules/zod/v4/classic/iso.js","../../shared/node_modules/zod/v4/classic/from-json-schema.js","../../shared/node_modules/zod/v4/classic/deep-partial.js","../../shared/node_modules/zod/v4/classic/in-out.js","../../shared/node_modules/zod/v4/classic/coerce.js","../../shared/node_modules/@modelcontextprotocol/sdk/src/types.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/experimental/tasks/interfaces.ts","../../shared/node_modules/zod-to-json-schema/dist/esm/Options.js","../../shared/node_modules/zod-to-json-schema/dist/esm/Refs.js","../../shared/node_modules/zod-to-json-schema/dist/esm/errorMessages.js","../../shared/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/any.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/array.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/date.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/default.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/string.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/record.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/map.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/never.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/null.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/union.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/number.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/object.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/set.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js","../../shared/node_modules/zod-to-json-schema/dist/esm/selectParser.js","../../shared/node_modules/zod-to-json-schema/dist/esm/parseDef.js","../../shared/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js","../../shared/node_modules/@modelcontextprotocol/sdk/src/server/zod-json-schema-compat.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/validation/ajv-provider.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/experimental/tasks/server.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/experimental/tasks/helpers.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/server/index.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/server/completable.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/shared/toolNameValidation.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/experimental/tasks/mcp-server.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/server/mcp.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/server/stdio.ts","../../shared/node_modules/@modelcontextprotocol/sdk/src/shared/stdio.ts","../../shared/mcp-server/secret-store.ts","../../shared/mcp-server/pending-logins.ts","../../shared/mcp-server/credential-store.ts","../../shared/mcp-server/session-manager.ts","../../shared/mcp-server/demo-account.ts","../../shared/mcp-server/pending-call.ts","../../shared/mcp-server/browser-import.ts","../../shared/mcp-server/full-disk-access.ts","../../../scrapers/myChart/clo-image-parser/exporters/to_jpg_purejs.ts","../../shared/mcp-server/imaging/download-study.ts","../../shared/mcp-server/imaging/inline-preview.ts","../../shared/node_modules/pica/node_modules/multimath/lib/base64decode.mjs","../../shared/node_modules/pica/node_modules/multimath/lib/wa_detect.mjs","../../shared/node_modules/pica/node_modules/multimath/lib/multimath.mjs","../../shared/node_modules/pica/node_modules/glur/lib/blur_mono16.mjs","../../shared/node_modules/pica/src/mm_unsharp_mask/unsharp_mask.ts","../../shared/node_modules/pica/src/mm_unsharp_mask/unsharp_mask_wasm.ts","../../shared/node_modules/pica/src/mm_unsharp_mask/unsharp_mask_wasm_base64.ts","../../shared/node_modules/pica/src/mm_unsharp_mask/index.ts","../../shared/node_modules/pica/src/mm_resize/resize_filter_info.ts","../../shared/node_modules/pica/src/mm_resize/resize_filter_gen.ts","../../shared/node_modules/pica/src/mm_resize/convolve.ts","../../shared/node_modules/pica/src/mm_resize/resize.ts","../../shared/node_modules/pica/src/mm_resize/resize_wasm.ts","../../shared/node_modules/pica/src/mm_resize/convolve_wasm_base64.ts","../../shared/node_modules/pica/src/mm_resize/index.ts","../../shared/node_modules/pica/src/mathlib.ts","../../shared/node_modules/pica/src/pool.ts","../../shared/node_modules/pica/src/utils.ts","../../shared/node_modules/pica/src/stepper.ts","../../shared/node_modules/pica/src/tiler.ts","../../shared/node_modules/pica/src/supported_features.ts","../../shared/node_modules/pica/src/pica_main.ts","../../shared/mcp-server/imaging/save-study.ts","../../shared/mcp-server/save-file.ts","../../shared/mcp-server/error-reporting.ts","../../shared/node_modules/@sentry/conventions/src/attributes.ts","../../shared/node_modules/@sentry/core/src/debug-build.ts","../../shared/node_modules/@sentry/core/src/utils/worldwide.ts","../../shared/node_modules/@sentry/core/src/utils/version.ts","../../shared/node_modules/@sentry/core/src/carrier.ts","../../shared/node_modules/@sentry/core/src/utils/debug-logger.ts","../../shared/node_modules/@sentry/core/src/utils/stacktrace.ts","../../shared/node_modules/@sentry/core/src/utils/is.ts","../../shared/node_modules/@sentry/core/src/utils/object.ts","../../shared/node_modules/@sentry/core/src/utils/randomSafeContext.ts","../../shared/node_modules/@sentry/core/src/utils/normalizationHints.ts","../../shared/node_modules/@sentry/core/src/utils/normalize.ts","../../shared/node_modules/@sentry/core/src/utils/string.ts","../../shared/node_modules/@sentry/core/src/utils/misc.ts","../../shared/node_modules/@sentry/core/src/utils/time.ts","../../shared/node_modules/@sentry/core/src/session.ts","../../shared/node_modules/@sentry/core/src/utils/merge.ts","../../shared/node_modules/@sentry/core/src/utils/propagationContext.ts","../../shared/node_modules/@sentry/core/src/scope.ts","../../shared/node_modules/@sentry/core/src/defaultScopes.ts","../../shared/node_modules/@sentry/core/src/tracing/constants.ts","../../shared/node_modules/@sentry/core/src/utils/chain-and-copy-promiselike.ts","../../shared/node_modules/@sentry/core/src/asyncContext/stackStrategy.ts","../../shared/node_modules/@sentry/core/src/asyncContext/index.ts","../../shared/node_modules/@sentry/core/src/attributes.ts","../../shared/node_modules/@sentry/core/src/currentScopes.ts","../../shared/node_modules/@sentry/core/src/semanticAttributes.ts","../../shared/node_modules/@sentry/core/src/types/spanStatus.ts","../../shared/node_modules/@sentry/core/src/tracing/spanstatus.ts","../../shared/node_modules/@sentry/core/src/utils/weakRef.ts","../../shared/node_modules/@sentry/core/src/tracing/utils.ts","../../shared/node_modules/@sentry/core/src/utils/baggage.ts","../../shared/node_modules/@sentry/core/src/utils/dsn.ts","../../shared/node_modules/@sentry/core/src/utils/parseSampleRate.ts","../../shared/node_modules/@sentry/core/src/utils/tracing.ts","../../shared/node_modules/@sentry/core/src/utils/spanOnScope.ts","../../shared/node_modules/@sentry/core/src/utils/spanUtils.ts","../../shared/node_modules/@sentry/core/src/utils/hasSpansEnabled.ts","../../shared/node_modules/@sentry/core/src/utils/should-ignore-span.ts","../../shared/node_modules/@sentry/core/src/integration.ts","../../shared/node_modules/@sentry/core/src/constants.ts","../../shared/node_modules/@sentry/core/src/tracing/sentryNonRecordingSpan.ts","../../shared/node_modules/@sentry/core/src/tracing/dynamicSamplingContext.ts","../../shared/node_modules/@sentry/core/src/utils/scopeData.ts","../../shared/node_modules/@sentry/core/src/utils/safeCallback.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/beforeSendSpan.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/spanJsonToStreamedSpan.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/scopeContextAttributes.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/captureSpan.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/hasSpanStreamingEnabled.ts","../../shared/node_modules/@sentry/core/src/utils/timer.ts","../../shared/node_modules/@sentry/core/src/utils/envelope.ts","../../shared/node_modules/@sentry/core/src/utils/env.ts","../../shared/node_modules/@sentry/core/src/utils/node.ts","../../shared/node_modules/@sentry/core/src/utils/isBrowser.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/envelope.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/estimateSize.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/spanBuffer.ts","../../shared/node_modules/@sentry/core/src/integrations/spanStreaming.ts","../../shared/node_modules/@sentry/core/src/utils/errorSpanAttribution.ts","../../shared/node_modules/@sentry/core/src/tracing/logSpans.ts","../../shared/node_modules/@sentry/core/src/tracing/sampling.ts","../../shared/node_modules/@sentry/core/src/tracing/measurement.ts","../../shared/node_modules/@sentry/core/src/tracing/segmentSpanCaptureStrategy.ts","../../shared/node_modules/@sentry/core/src/tracing/sentrySpan.ts","../../shared/node_modules/@sentry/core/src/tracing/trace.ts","../../shared/node_modules/@sentry/core/src/utils/debounce.ts","../../shared/node_modules/@sentry/core/src/tracing/deferSegmentSpanCapture.ts","../../shared/node_modules/@sentry/core/src/envelope.ts","../../shared/node_modules/@sentry/core/src/utils/syncpromise.ts","../../shared/node_modules/@sentry/core/src/eventProcessors.ts","../../shared/node_modules/@sentry/core/src/utils/debug-ids.ts","../../shared/node_modules/@sentry/core/src/utils/eventUtils.ts","../../shared/node_modules/@sentry/core/src/utils/prepareEvent.ts","../../shared/node_modules/@sentry/core/src/exports.ts","../../shared/node_modules/@sentry/core/src/api.ts","../../shared/node_modules/@sentry/core/src/tracing/spans/extractGenAiSpans.ts","../../shared/node_modules/@sentry/core/src/utils/promisebuffer.ts","../../shared/node_modules/@sentry/core/src/utils/ratelimit.ts","../../shared/node_modules/@sentry/core/src/transports/base.ts","../../shared/node_modules/@sentry/core/src/utils/clientreport.ts","../../shared/node_modules/@sentry/core/src/utils/transactionEvent.ts","../../shared/node_modules/@sentry/core/src/utils/warnAboutIgnoredTransactionOptions.ts","../../shared/node_modules/@sentry/core/src/utils/data-collection/resolveDataCollectionOptions.ts","../../shared/node_modules/@sentry/core/src/client.ts","../../shared/node_modules/@sentry/core/src/sdk.ts","../../shared/node_modules/@sentry/core/src/utils/ai/providerSkip.ts","../../shared/node_modules/@sentry/core/src/utils/envToBool.ts","../../shared/node_modules/@sentry/core/src/checkin.ts","../../shared/node_modules/@sentry/core/src/vendor/escapeStringForRegex.ts","../../shared/node_modules/@sentry/core/src/utils/tunnelStore.ts","../../shared/node_modules/@sentry/core/src/utils/tunnel.ts","../../shared/node_modules/@sentry/core/src/utils/sdkMetadata.ts","../../shared/node_modules/@sentry/core/src/utils/traceData.ts","../../shared/node_modules/@sentry/core/src/utils/array.ts","../../shared/node_modules/@sentry/core/src/spanKind.ts","../../shared/node_modules/@sentry/core/src/utils/aggregate-errors.ts","../../shared/node_modules/@sentry/core/src/utils/eventbuilder.ts","../../shared/node_modules/@sentry/core/src/integrations/linkederrors.ts","../../shared/node_modules/@sentry/core/src/integrations/dedupe.ts","../../shared/node_modules/@sentry/core/src/utils/path.ts","../../shared/node_modules/@sentry/core/src/integrations/rewriteframes.ts","../../shared/node_modules/@sentry/core/src/utils/trace-info.ts","../../shared/node_modules/@sentry/core/src/transports/userAgent.ts","../../shared/node_modules/@sentry/core/src/utils/tunnelDefaults.ts","../../shared/node_modules/@sentry/core/src/server-runtime-client.ts","../../shared/node_modules/@sentry/core/src/utils/node-stack-trace.ts","../../shared/node_modules/@sentry/core/src/utils/commitEnv.ts","../../shared/node_modules/@opentelemetry/api/src/diag/types.ts","../../shared/node_modules/@opentelemetry/api/src/version.ts","../../shared/node_modules/@opentelemetry/api/src/internal/semver.ts","../../shared/node_modules/@opentelemetry/api/src/internal/global-utils.ts","../../shared/node_modules/@opentelemetry/api/src/diag/ComponentLogger.ts","../../shared/node_modules/@opentelemetry/api/src/diag/internal/logLevelLogger.ts","../../shared/node_modules/@opentelemetry/api/src/api/diag.ts","../../shared/node_modules/@opentelemetry/api/src/baggage/internal/baggage-impl.ts","../../shared/node_modules/@opentelemetry/api/src/baggage/utils.ts","../../shared/node_modules/@opentelemetry/api/src/context/context.ts","../../shared/node_modules/@opentelemetry/api/src/propagation/TextMapPropagator.ts","../../shared/node_modules/@opentelemetry/api/src/trace/trace_flags.ts","../../shared/node_modules/@opentelemetry/api/src/trace/invalid-span-constants.ts","../../shared/node_modules/@opentelemetry/api/src/trace/NonRecordingSpan.ts","../../shared/node_modules/@opentelemetry/api/src/trace/spancontext-utils.ts","../../shared/node_modules/@opentelemetry/api/src/context/NoopContextManager.ts","../../shared/node_modules/@opentelemetry/api/src/api/context.ts","../../shared/node_modules/@opentelemetry/api/src/trace/context-utils.ts","../../shared/node_modules/@opentelemetry/api/src/trace/NoopTracer.ts","../../shared/node_modules/@opentelemetry/api/src/trace/ProxyTracer.ts","../../shared/node_modules/@opentelemetry/api/src/trace/NoopTracerProvider.ts","../../shared/node_modules/@opentelemetry/api/src/trace/ProxyTracerProvider.ts","../../shared/node_modules/@opentelemetry/api/src/context-api.ts","../../shared/node_modules/@opentelemetry/api/src/diag-api.ts","../../shared/node_modules/@opentelemetry/api/src/propagation/NoopTextMapPropagator.ts","../../shared/node_modules/@opentelemetry/api/src/baggage/context-helpers.ts","../../shared/node_modules/@opentelemetry/api/src/api/propagation.ts","../../shared/node_modules/@opentelemetry/api/src/propagation-api.ts","../../shared/node_modules/@opentelemetry/api/src/api/trace.ts","../../shared/node_modules/@opentelemetry/api/src/trace-api.ts","../../shared/node_modules/@sentry/server-utils/src/async-context.ts","../../shared/node_modules/@sentry/server-utils/src/utils/runtime.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/detect.ts","../../shared/node_modules/@sentry/server-utils/src/utils/diagnosticsChannel.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/module-names.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/aws-sdk.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/amqplib.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/anthropic-ai.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/cron.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/dataloader.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/express.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/firebase.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/generic-pool.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/google-genai.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/graphql.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/openai-compatible.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/groq.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/hapi.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/hono.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/registration-only.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/ioredis.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/kafkajs.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/knex.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/koa.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/langchain.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/langgraph.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/lru-memoizer.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/flue.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/mastra.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/pi-durable.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/mcp-server.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/mistral.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/mongodb.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/mongoose.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/mysql2.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/mysql.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/neon.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/nestjs.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/nitro.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/node-cron.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/node-schedule.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/openai.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/pg.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/postgres.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/prisma.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/redis.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/remix.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/remix-v3.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/tedious.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/together-ai.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/typesafe.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/vercel-ai.ts","../../shared/node_modules/@sentry/server-utils/src/orchestrion/config/index.ts","../../shared/node_modules/@sentry/node/src/debug-build.ts","../../shared/node_modules/@sentry/node/src/integrations/spotlight.ts","../../shared/node_modules/@sentry/node/src/proxy/base.ts","../../shared/node_modules/@sentry/node/src/proxy/parse-proxy-response.ts","../../shared/node_modules/@sentry/node/src/proxy/index.ts","../../shared/node_modules/@sentry/node/src/transports/http.ts","../../shared/node_modules/@sentry/node/src/utils/module.ts","../../shared/node_modules/@sentry/node/src/sdk/api.ts","../../shared/node_modules/@sentry/node/src/utils/entry-point.ts","../../shared/node_modules/@sentry/node/src/utils/spotlight.ts","../../shared/node_modules/@sentry/opentelemetry/src/constants.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/contextData.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/TraceState.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/makeTraceState.ts","../../shared/node_modules/@sentry/opentelemetry/src/propagator.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/suppressTracing.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/convertSpanLinkType.ts","../../shared/node_modules/@sentry/opentelemetry/src/tracer.ts","../../shared/node_modules/@sentry/opentelemetry/src/tracerProvider.ts","../../shared/node_modules/@sentry/opentelemetry/src/trace.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/getActiveSpan.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/buildContextWithSentryScopes.ts","../../shared/node_modules/@sentry/opentelemetry/src/asyncLocalStorageContextManager.ts","../../shared/node_modules/@sentry/opentelemetry/src/asyncContextStrategy.ts","../../shared/node_modules/@sentry/opentelemetry/src/utils/getSamplingDecision.ts","../../shared/node_modules/@sentry/opentelemetry/src/prepareSpanScope.ts","../../shared/node_modules/@sentry/server-runtime-injection/build/esm/_virtual/_commonjsHelpers.js","../../shared/node_modules/node_modules/.pnpm/semifies@1.0.0/node_modules/semifies/index.js","../../shared/node_modules/node_modules/.pnpm/esquery@1.7.0/node_modules/esquery/dist/esquery.esm.min.js","../../shared/node_modules/@sentry/server-runtime-injection/build/esm/_virtual/meriyah.js","../../shared/node_modules/@sentry/server-runtime-injection/build/esm/_virtual/astring.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+code-transformer@0.19.0/node_modules/@apm-js-collab/code-transformer/lib/transforms.js","../../shared/node_modules/@sentry/server-runtime-injection/build/esm/_virtual/source-map.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+code-transformer@0.19.0/node_modules/@apm-js-collab/code-transformer/lib/transformer.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+code-transformer@0.19.0/node_modules/@apm-js-collab/code-transformer/lib/matcher.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+code-transformer@0.19.0/node_modules/@apm-js-collab/code-transformer/lib/index.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+code-transformer@0.19.0/node_modules/@apm-js-collab/code-transformer/index.js","../../shared/node_modules/node_modules/.pnpm/module-details-from-path@1.0.4/node_modules/module-details-from-path/index.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+tracing-hooks@0.14.0_supports-color@7.2.0/node_modules/@apm-js-collab/tracing-hooks/lib/get-package-version.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+tracing-hooks@0.14.0_supports-color@7.2.0/node_modules/@apm-js-collab/tracing-hooks/lib/diagnostics.js","../../shared/node_modules/@sentry/server-runtime-injection/src/debug.ts","../../shared/node_modules/@sentry/server-runtime-injection/build/esm/_virtual/debug.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+tracing-hooks@0.14.0_supports-color@7.2.0/node_modules/@apm-js-collab/tracing-hooks/index.js","../../shared/node_modules/node_modules/.pnpm/@apm-js-collab+tracing-hooks@0.14.0_supports-color@7.2.0/node_modules/@apm-js-collab/tracing-hooks/hook.mjs","../../shared/node_modules/@sentry/server-runtime-injection/src/register.ts","../../shared/node_modules/@sentry/node/src/sdk/client.ts","../../shared/node_modules/@sentry/node/src/otel/logger.ts","../../shared/node_modules/@sentry/node/src/sdk/initOtel.ts","../../shared/node_modules/@sentry/node/src/sdk/vercel.ts","../../shared/node_modules/@sentry/node/src/sdk/index.ts","../../shared/mcp-server/tool-telemetry.ts","../../shared/mcp-server/update-notice.ts","../../shared/mcp-server/tools.ts","../../shared/mcp-server/ui.ts","../../shared/mcp-server/directory-refresh.ts","../../shared/mcp-server/host.ts","../../shared/mcp-server/server.ts","../cli/mcp.ts","../cli/entry.ts"],"sourcesContent":["var Module=typeof Module!=\"undefined\"?Module:{};var ENVIRONMENT_IS_NODE=true;const INT32_MIN=-2147483648;const INT32_MAX=2147483647;const NULL=0;const SQLITE_OK=0;const SQLITE_ROW=100;const SQLITE_DONE=101;const SQLITE_INTEGER=1;const SQLITE_FLOAT=2;const SQLITE_TEXT=3;const SQLITE_BLOB=4;const SQLITE_NULL=5;const SQLITE_UTF8=1;const SQLITE_TRANSIENT=-1;const SQLITE_DETERMINISTIC=2048;let temp;const sqlite3={};Module.onRuntimeInitialized=()=>{temp=stackAlloc(4);const v=null;const n=\"number\";const s=\"string\";const n1=[n];const n2=[n,...n1];const n3=[n,...n2];const n4=[n,...n3];const n5=[n,...n4];const signatures={open_v2:[n,[s,n,n,s]],exec:[n,n5],errmsg:[s,n1],prepare_v2:[n,n5],close_v2:[n,n1],finalize:[n,n1],reset:[n,n1],clear_bindings:[n,n1],bind_int:[n,n3],bind_int64:[n,n3],bind_double:[n,n3],bind_text:[n,n5],bind_blob:[n,n5],bind_blob64:[n,n5],bind_null:[n,n2],bind_parameter_index:[n,[n,s]],step:[n,n1],column_int64:[n,n2],column_double:[n,n2],column_text:[s,n2],column_blob:[n,n2],column_type:[n,n2],column_name:[s,n2],column_count:[n,n1],column_bytes:[n,n2],last_insert_rowid:[n,n1],changes:[n,n1],create_function_v2:[n,[n,s,n,n,n,n,n,n,n]],value_type:[n,n1],value_text:[s,n1],value_blob:[n,n1],value_int64:[n,n1],value_double:[n,n1],value_bytes:[n,n1],result_double:[v,n2],result_null:[v,n1],result_text:[v,n4],result_blob:[v,n4],result_blob64:[v,n4],result_int:[v,n2],result_int64:[v,n2],result_error:[v,n3],column_table_name:[s,n2],get_autocommit:[n,n1]};for(const[name,sig]of Object.entries(signatures)){sqlite3[name]=cwrap(`sqlite3_${name}`,sig[0],sig[1])}};class SQLite3Error extends Error{constructor(message){super(message);this.name=\"SQLite3Error\"}}function arrayToHeap(array){const ptr=_malloc(array.byteLength);HEAPU8.set(array,ptr);return ptr}function stringToHeap(str){const size=lengthBytesUTF8(str)+1;const ptr=_malloc(size);stringToUTF8(str,ptr,size);return ptr}function toNumberOrNot(bigInt){if(bigInt>=Number.MIN_SAFE_INTEGER&&bigInt<=Number.MAX_SAFE_INTEGER){return Number(bigInt)}return bigInt}function parseFunctionArguments(argc,argv){const args=[];for(let i=0;i<argc;i++){const ptr=getValue(argv+4*i,\"i32\");const type=sqlite3.value_type(ptr);let arg;switch(type){case SQLITE_INTEGER:arg=toNumberOrNot(sqlite3.value_int64(ptr));break;case SQLITE_FLOAT:arg=sqlite3.value_double(ptr);break;case SQLITE_TEXT:arg=sqlite3.value_text(ptr);break;case SQLITE_BLOB:const p=sqlite3.value_blob(ptr);if(p!=NULL){arg=HEAPU8.slice(p,p+sqlite3.value_bytes(ptr))}else{arg=new Uint8Array}break;case SQLITE_NULL:arg=null;break}args.push(arg)}return args}function setFunctionResult(cx,result){switch(typeof result){case\"boolean\":sqlite3.result_int(cx,result?1:0);break;case\"number\":if(Number.isSafeInteger(result)){if(result>=INT32_MIN&&result<=INT32_MAX){sqlite3.result_int(cx,result)}else{sqlite3.result_int64(cx,BigInt(result))}}else{sqlite3.result_double(cx,result)}break;case\"bigint\":sqlite3.result_int64(cx,result);break;case\"string\":const tempPtr=stringToHeap(result);sqlite3.result_text(cx,tempPtr,-1,SQLITE_TRANSIENT);_free(tempPtr);break;case\"object\":if(result===null){sqlite3.result_null(cx)}else if(result instanceof Uint8Array){const tempPtr=arrayToHeap(result);if(result.byteLength<=INT32_MAX){sqlite3.result_blob(cx,tempPtr,result.byteLength,SQLITE_TRANSIENT)}else{sqlite3.result_blob64(cx,tempPtr,BigInt(result.byteLength),SQLITE_TRANSIENT)}_free(tempPtr)}else{throw new SQLite3Error(`Unsupported type for function result: \"${typeof result}\"`)}break;default:throw new SQLite3Error(`Unsupported type for function result: \"${typeof result}\"`)}}class Database{constructor(filename,{fileMustExist=false,readOnly=false}={}){let flags;if(readOnly){flags=SQLITE_OPEN_READONLY}else{flags=SQLITE_OPEN_READWRITE;if(!fileMustExist)flags|=SQLITE_OPEN_CREATE}const rc=sqlite3.open_v2(filename,temp,flags,NULL);this._ptr=getValue(temp,\"i32\");if(rc!==SQLITE_OK){if(this._ptr!==NULL)sqlite3.close_v2(this._ptr);throw new SQLite3Error(`Could not open the database \"${filename}\"`)}this._functions=new Map}get isOpen(){return this._ptr!==null}get inTransaction(){this._assertOpen();return sqlite3.get_autocommit(this._ptr)===0}close(){this._assertOpen();for(const func of this._functions.values())removeFunction(func);this._functions.clear();this._handleError(sqlite3.close_v2(this._ptr));this._ptr=null}function(name,func,{deterministic=false}={}){this._assertOpen();function wrappedFunc(cx,argc,argv){const args=parseFunctionArguments(argc,argv);let result;try{result=func.apply(null,args)}catch(err){const tempPtr=stringToHeap(err.toString());sqlite3.result_error(cx,tempPtr,-1);_free(tempPtr);return}setFunctionResult(cx,result)}if(this._functions.has(name)){removeFunction(this._functions.get(name));this._functions.delete(name)}const funcPtr=addFunction(wrappedFunc,\"viii\");this._functions.set(name,funcPtr);let eTextRep=SQLITE_UTF8;if(deterministic)eTextRep|=SQLITE_DETERMINISTIC;this._handleError(sqlite3.create_function_v2(this._ptr,name,func.length,eTextRep,NULL,funcPtr,NULL,NULL,NULL));return this}exec(sql){this._assertOpen();const tempPtr=stringToHeap(sql);try{this._handleError(sqlite3.exec(this._ptr,tempPtr,NULL,NULL,NULL))}finally{_free(tempPtr)}}prepare(sql){this._assertOpen();return new Statement(this,sql)}run(sql,values){const stmt=this.prepare(sql);try{return stmt.run(values)}finally{stmt.finalize()}}all(sql,values,{expand=false}={}){return this._query(sql,values,false,expand)}get(sql,values,{expand=false}={}){return this._query(sql,values,true,expand)}_query(sql,values,single,expand){const stmt=this.prepare(sql);try{if(single){return stmt.get(values,{expand})}else{return stmt.all(values,{expand})}}finally{stmt.finalize()}}_assertOpen(){if(!this.isOpen)throw new SQLite3Error(\"Database already closed\")}_handleError(returnCode){if(returnCode!==SQLITE_OK)throw new SQLite3Error(sqlite3.errmsg(this._ptr))}}class Statement{constructor(db,sql){const tempPtr=stringToHeap(sql);try{db._handleError(sqlite3.prepare_v2(db._ptr,tempPtr,-1,temp,NULL))}finally{_free(tempPtr)}this._ptr=getValue(temp,\"i32\");if(this._ptr===NULL)throw new SQLite3Error(\"Nothing to prepare\");this._db=db}get database(){return this._db}get isFinalized(){return this._ptr===null}run(values){this._assertReady();this._bind(values);this._step();return{changes:sqlite3.changes(this._db._ptr),lastInsertRowid:toNumberOrNot(sqlite3.last_insert_rowid(this._db._ptr))}}iterate(values,{expand=false}={}){return this._queryRows(values,expand)}all(values,{expand=false}={}){return Array.from(this.iterate(values,{expand}))}get(values,{expand=false}={}){const result=this._queryRows(values,expand).next();return result.done?null:result.value}finalize(){if(this.isFinalized)throw new SQLite3Error(\"Statement already finalized\");try{this._db._handleError(sqlite3.finalize(this._ptr))}finally{this._ptr=null}}_reset(){return sqlite3.clear_bindings(this._ptr)===SQLITE_OK&&sqlite3.reset(this._ptr)===SQLITE_OK}*_queryRows(values,expand){this._assertReady();this._bind(values);const columns=this._getColumnNames();while(this._step())yield this._getRow(columns,expand)}_bind(values){if(!this._reset()){throw new SQLite3Error(\"Could not reset statement prior to binding new values\")}if(Array.isArray(values)){this._bindArray(values)}else if(values!=null&&typeof values===\"object\"){this._bindObject(values)}else if(typeof values!==\"undefined\"){this._bindValue(values,1)}}_step(){const ret=sqlite3.step(this._ptr);switch(ret){case SQLITE_ROW:return true;case SQLITE_DONE:return false;default:this._db._handleError(ret)}}_getRow(columns,expand){const row={};for(let i=0;i<columns.length;i++){let v;const colType=sqlite3.column_type(this._ptr,i);switch(colType){case SQLITE_INTEGER:v=toNumberOrNot(sqlite3.column_int64(this._ptr,i));break;case SQLITE_FLOAT:v=sqlite3.column_double(this._ptr,i);break;case SQLITE_TEXT:v=sqlite3.column_text(this._ptr,i);break;case SQLITE_BLOB:const p=sqlite3.column_blob(this._ptr,i);if(p!=NULL){v=HEAPU8.slice(p,p+sqlite3.column_bytes(this._ptr,i))}else{v=new Uint8Array}break;case SQLITE_NULL:v=null;break}const column=columns[i];if(expand){let table=sqlite3.column_table_name(this._ptr,i);table=table===\"\"?\"$\":table;if(Object.hasOwn(row,table)){row[table][column]=v}else{row[table]={[column]:v}}}else{row[column]=v}}return row}_getColumnNames(){const names=[];const columns=sqlite3.column_count(this._ptr);for(let i=0;i<columns;i++)names.push(sqlite3.column_name(this._ptr,i));return names}_bindArray(values){for(let i=0;i<values.length;i++)this._bindValue(values[i],i+1)}_bindObject(values){for(const[param,value]of Object.entries(values)){const i=sqlite3.bind_parameter_index(this._ptr,param);if(i===0)throw new SQLite3Error(`Unknown binding parameter: \"${param}\"`);this._bindValue(value,i)}}_bindValue(value,position){let ret;switch(typeof value){case\"string\":const tempPtr=stringToHeap(value);ret=sqlite3.bind_text(this._ptr,position,tempPtr,-1,SQLITE_TRANSIENT);_free(tempPtr);break;case\"number\":if(Number.isSafeInteger(value)){if(value>=INT32_MIN&&value<=INT32_MAX){ret=sqlite3.bind_int(this._ptr,position,value)}else{ret=sqlite3.bind_int64(this._ptr,position,BigInt(value))}}else{ret=sqlite3.bind_double(this._ptr,position,value)}break;case\"bigint\":ret=sqlite3.bind_int64(this._ptr,position,value);break;case\"boolean\":ret=sqlite3.bind_int(this._ptr,position,value?1:0);break;case\"object\":if(value===null){ret=sqlite3.bind_null(this._ptr,position)}else if(value instanceof Uint8Array){const tempPtr=arrayToHeap(value);if(value.byteLength<=INT32_MAX){ret=sqlite3.bind_blob(this._ptr,position,tempPtr,value.byteLength,SQLITE_TRANSIENT)}else{ret=sqlite3.bind_blob64(this._ptr,position,tempPtr,BigInt(value.byteLength),SQLITE_TRANSIENT)}_free(tempPtr)}else{throw new SQLite3Error(`Unsupported type for binding: \"${typeof value}\"`)}break;default:throw new SQLite3Error(`Unsupported type for binding: \"${typeof value}\"`)}if(ret!==SQLITE_OK)this._db._handleError(ret)}_assertReady(){if(this.isFinalized)throw new SQLite3Error(\"Statement already finalized\");if(!this._db.isOpen)throw new SQLite3Error(\"Database is closed\")}}Module.Database=Database;Module.SQLite3Error=SQLite3Error;const path=require(\"node:path\");const crypto=require(\"node:crypto\");const SQLITE_CANTOPEN=14;const SQLITE_IOERR_READ=266;const SQLITE_IOERR_SHORT_READ=522;const SQLITE_IOERR_FSYNC=1034;const SQLITE_IOERR_WRITE=778;const SQLITE_IOERR_DELETE=2570;const SQLITE_IOERR_CLOSE=4106;const SQLITE_IOERR_TRUNCATE=1546;const SQLITE_IOERR_FSTAT=1802;const SQLITE_IOERR_LOCK=3850;const SQLITE_IOERR_UNLOCK=2058;const SQLITE_OPEN_READONLY=1;const SQLITE_OPEN_READWRITE=2;const SQLITE_OPEN_CREATE=4;const SQLITE_OPEN_EXCLUSIVE=16;const SQLITE_ACCESS_READWRITE=1;const SQLITE_ACCESS_READ=2;const SQLITE_LOCK_NONE=0;const SQLITE_BUSY=5;function _fd(fileInfo){return getValue(fileInfo+4,\"i32\")}function _isLocked(fileInfo){return getValue(fileInfo+8,\"i32\")!=0}function _setLocked(fileInfo,locked){setValue(fileInfo+8,locked?1:0,\"i32\")}function _path(fileInfo){return UTF8ToString(getValue(fileInfo+12,\"i32\"))}function _safeInt(bigInt){if(bigInt<Number.MIN_SAFE_INTEGER||bigInt>Number.MAX_SAFE_INTEGER)throw 0;return Number(bigInt)}var programArgs=[];var thisProgram=\"./this.program\";var quit_=(status,toThrow)=>{throw toThrow};var _scriptName;if(typeof __filename!=\"undefined\"){_scriptName=__filename}else{}var scriptDirectory=\"\";function locateFile(path){if(Module[\"locateFile\"]){return Module[\"locateFile\"](path,scriptDirectory)}return scriptDirectory+path}var readAsync,readBinary;if(ENVIRONMENT_IS_NODE){var fs=require(\"node:fs\");scriptDirectory=__dirname+\"/\";readBinary=filename=>{filename=isFileURI(filename)?new URL(filename):filename;var ret=fs.readFileSync(filename);return ret};readAsync=async(filename,binary=true)=>{filename=isFileURI(filename)?new URL(filename):filename;var ret=fs.readFileSync(filename,binary?undefined:\"utf8\");return ret};if(process.argv.length>1){thisProgram=process.argv[1].replace(/\\\\/g,\"/\")}programArgs=process.argv.slice(2);if(typeof module!=\"undefined\"){module[\"exports\"]=Module}quit_=(status,toThrow)=>{process.exitCode=status;throw toThrow}}else{}var out=console.log.bind(console);var err=console.error.bind(console);var wasmBinary;var ABORT=false;var EXITSTATUS;var isFileURI=filename=>filename.startsWith(\"file://\");class EmscriptenEH{}class EmscriptenSjLj extends EmscriptenEH{}var runtimeInitialized=false;function getMemoryBuffer(){return wasmMemory.buffer}function updateMemoryViews(){if(HEAP8?.buffer?.resizable)return;var b=getMemoryBuffer();HEAP8=new Int8Array(b);HEAP16=new Int16Array(b);HEAPU8=new Uint8Array(b);HEAP32=new Int32Array(b);HEAPU32=new Uint32Array(b);HEAPF32=new Float32Array(b);HEAPF64=new Float64Array(b);HEAP64=new BigInt64Array(b)}function preRun(){var preRun=Module[\"preRun\"];if(preRun){if(typeof preRun==\"function\")preRun=[preRun];onPreRuns.push(...preRun)}callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=true;wasmExports[\"z\"]()}function postRun(){var postRun=Module[\"postRun\"];if(postRun){if(typeof postRun==\"function\")postRun=[postRun];onPostRuns.push(...postRun)}callRuntimeCallbacks(onPostRuns)}function abort(what){Module[\"onAbort\"]?.(what);what=`Aborted(${what})`;err(what);ABORT=true;what+=\". Build with -sASSERTIONS for more info.\";var e=new WebAssembly.RuntimeError(what);throw e}var wasmBinaryFile;function findWasmBinary(){return locateFile(\"node-sqlite3-wasm.wasm\")}function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw'sync fetching of the wasm failed: you can preload it to Module[\"wasmBinary\"] manually, or emcc.py will do that for you when generating HTML (but not JS)'}function instantiateSync(file,info){var binary=getBinarySync(file);var module=new WebAssembly.Module(binary);var instance=new WebAssembly.Instance(module,info);return[instance,module]}function getWasmImports(){var imports={a:wasmImports};return imports}function createWasm(){function receiveInstance(instance){wasmExports=instance.exports;assignWasmExports(wasmExports);updateMemoryViews();return wasmExports}var info=getWasmImports();var instantiateWasm=Module[\"instantiateWasm\"];if(instantiateWasm){return new Promise(resolve=>{instantiateWasm(info,inst=>resolve(receiveInstance(inst)))})}wasmBinaryFile??=findWasmBinary();var result=instantiateSync(wasmBinaryFile,info);return receiveInstance(result[0])}class ExitStatus{name=\"ExitStatus\";constructor(status){this.message=`Program terminated with exit(${status})`;this.status=status}}var HEAP8;var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var onPostRuns=[];var onPreRuns=[];var noExitRuntime=true;var stackRestore=val=>__emscripten_stack_restore(val);var stackSave=()=>_emscripten_stack_get_current();var __abort_js=()=>abort(\"\");var runtimeKeepaliveCounter=0;var __emscripten_runtime_keepalive_clear=()=>{noExitRuntime=false;runtimeKeepaliveCounter=0};var isLeapYear=year=>year%4===0&&(year%100!==0||year%400===0);var MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335];var MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334];var ydayFromDate=date=>{var leap=isLeapYear(date.getFullYear());var monthDaysCumulative=leap?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE;var yday=monthDaysCumulative[date.getMonth()]+date.getDate()-1;return yday};var INT53_MAX=9007199254740992;var INT53_MIN=-9007199254740992;var bigintToI53Checked=num=>num<INT53_MIN||num>INT53_MAX?NaN:Number(num);var HEAP32;function __localtime_js(time,tmPtr){time=bigintToI53Checked(time);var date=new Date(time*1e3);if(isNaN(date.getTime())){return 1}HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getDay();var yday=ydayFromDate(date)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);var start=new Date(date.getFullYear(),0,1);var summerOffset=new Date(date.getFullYear(),6,1).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dst=(summerOffset!=winterOffset&&date.getTimezoneOffset()==Math.min(winterOffset,summerOffset))|0;HEAP32[tmPtr+32>>2]=dst;return 0}var timers={};var handleException=e=>{if(e instanceof ExitStatus||e==\"unwind\"){return EXITSTATUS}quit_(1,e)};var keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0;var _proc_exit=code=>{EXITSTATUS=code;if(!keepRuntimeAlive()){Module[\"onExit\"]?.(code);ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=(status,implicit)=>{EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var maybeExit=()=>{if(!keepRuntimeAlive()){try{_exit(EXITSTATUS)}catch(e){handleException(e)}}};var callUserCallback=(func,...args)=>{if(ABORT){return}try{return func(...args)}catch(e){handleException(e)}finally{maybeExit()}};var _emscripten_get_now=()=>performance.now();var __setitimer_js=(which,timeout_ms)=>{if(timers[which]){clearTimeout(timers[which].id);delete timers[which]}if(!timeout_ms)return 0;var id=setTimeout(()=>{delete timers[which];callUserCallback(__emscripten_timeout,which,_emscripten_get_now())},timeout_ms);timers[which]={id,timeout_ms};return 0};var stringToUTF8Array=(str,heap,outIdx,maxBytesToWrite)=>{if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.codePointAt(i);if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;i++}}heap[outIdx]=0;return outIdx-startIdx};var HEAPU8;var stringToUTF8=(str,outPtr,maxBytesToWrite)=>stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite);var HEAPU32;var __tzset_js=(timezone,daylight,std_name,dst_name)=>{var currentYear=(new Date).getFullYear();var winter=new Date(currentYear,0,1);var summer=new Date(currentYear,6,1);var winterOffset=winter.getTimezoneOffset();var summerOffset=summer.getTimezoneOffset();var stdTimezoneOffset=Math.max(winterOffset,summerOffset);HEAPU32[timezone>>2]=stdTimezoneOffset*60;HEAP32[daylight>>2]=Number(winterOffset!=summerOffset);var extractZone=timezoneOffset=>{var sign=timezoneOffset>=0?\"-\":\"+\";var absOffset=Math.abs(timezoneOffset);var hours=String(Math.floor(absOffset/60)).padStart(2,\"0\");var minutes=String(absOffset%60).padStart(2,\"0\");return`UTC${sign}${hours}${minutes}`};var winterName=extractZone(winterOffset);var summerName=extractZone(summerOffset);if(summerOffset<winterOffset){stringToUTF8(winterName,std_name,17);stringToUTF8(summerName,dst_name,17)}else{stringToUTF8(winterName,dst_name,17);stringToUTF8(summerName,std_name,17)}};var _emscripten_date_now=()=>Date.now();var getHeapMax=()=>2147483648;var alignMemory=(size,alignment)=>Math.ceil(size/alignment)*alignment;var growMemory=size=>{var oldHeapSize=wasmMemory.buffer.byteLength;var pages=(size-oldHeapSize+65535)/65536|0;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignMemory(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var UTF8Decoder=globalThis.TextDecoder&&new TextDecoder;var findStringEnd=(heapOrArray,idx,maxBytesToRead,ignoreNul)=>{var maxIdx=idx+maxBytesToRead;if(ignoreNul)return maxIdx;while(heapOrArray[idx]&&!(idx>=maxIdx))++idx;return idx};var UTF8ArrayToString=(heapOrArray,idx=0,maxBytesToRead,ignoreNul)=>{var endPtr=findStringEnd(heapOrArray,idx,maxBytesToRead,ignoreNul);if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str=\"\";while(idx<endPtr){var u0=heapOrArray[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead,ignoreNul)=>ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead,ignoreNul):\"\";var HEAP16;var HEAPF32;var HEAPF64;var HEAP64;function setValue(ptr,value,type=\"i8\"){if(type.endsWith(\"*\"))type=\"*\";switch(type){case\"i1\":HEAP8[ptr]=value;break;case\"i8\":HEAP8[ptr]=value;break;case\"i16\":HEAP16[ptr>>1]=value;break;case\"i32\":HEAP32[ptr>>2]=value;break;case\"i64\":HEAP64[ptr>>3]=BigInt(value);break;case\"float\":HEAPF32[ptr>>2]=value;break;case\"double\":HEAPF64[ptr>>3]=value;break;case\"*\":HEAPU32[ptr>>2]=value;break;default:abort(`invalid type for setValue: ${type}`)}}function _nodejsAccess(vfs,filePath,flags,outResult){let aflags=fs.constants.F_OK;if(flags==SQLITE_ACCESS_READWRITE)aflags=fs.constants.R_OK|fs.constants.W_OK;if(flags==SQLITE_ACCESS_READ)aflags=fs.constants.R_OK;try{fs.accessSync(UTF8ToString(filePath),aflags);setValue(outResult,1,\"i32\")}catch{setValue(outResult,0,\"i32\")}return SQLITE_OK}function _nodejsCheckReservedLock(fi,outResult){try{fs.accessSync(`${_path(fi)}.lock`,fs.constants.F_OK);setValue(outResult,1,\"i32\")}catch{setValue(outResult,0,\"i32\")}return SQLITE_OK}function _nodejsClose(fi){_nodejsUnlock(fi,SQLITE_LOCK_NONE);try{fs.closeSync(_fd(fi))}catch{return SQLITE_IOERR_CLOSE}return SQLITE_OK}function _nodejsDelete(vfs,filePath,dirSync){const pathStr=UTF8ToString(filePath);try{fs.unlinkSync(pathStr)}catch(err){if(err.code!=\"ENOENT\")return SQLITE_IOERR_DELETE}if(dirSync){let fd=-1;try{fd=fs.openSync(path.dirname(pathStr),\"r\");fs.fsyncSync(fd)}catch{return SQLITE_IOERR_FSYNC}finally{try{fs.closeSync(fd)}catch{return SQLITE_IOERR_FSYNC}}}return SQLITE_OK}function _nodejsFileSize(fi,outSize){try{setValue(outSize,fs.fstatSync(_fd(fi)).size,\"i64\")}catch{return SQLITE_IOERR_FSTAT}return SQLITE_OK}function _nodejsFullPathname(vfs,relPath,sizeFullPath,outFullPath){const full=path.resolve(UTF8ToString(relPath));stringToUTF8(full,outFullPath,sizeFullPath);return full.length<sizeFullPath?SQLITE_OK:SQLITE_CANTOPEN}function _nodejsLock(fi,level){if(!_isLocked(fi)){try{fs.mkdirSync(`${_path(fi)}.lock`)}catch(err){return err.code==\"EEXIST\"?SQLITE_BUSY:SQLITE_IOERR_LOCK}_setLocked(fi,true)}return SQLITE_OK}function _nodejsRandomness(vfs,bytes,outBuffer){const buf=HEAPU8.subarray(outBuffer,outBuffer+bytes);crypto.randomFillSync(buf);return bytes}function _nodejsRead(fi,outBuffer,bytes,offset){const buf=HEAPU8.subarray(outBuffer,outBuffer+bytes);let bytesRead;try{bytesRead=fs.readSync(_fd(fi),buf,0,bytes,offset)}catch{return SQLITE_IOERR_READ}if(bytesRead==bytes){return SQLITE_OK}else if(bytesRead>=0){if(bytesRead<bytes){try{buf.fill(0,bytesRead)}catch{return SQLITE_IOERR_READ}}return SQLITE_IOERR_SHORT_READ}return SQLITE_IOERR_READ}function _nodejsSync(fi,flags){try{fs.fsyncSync(_fd(fi))}catch{return SQLITE_IOERR_FSYNC}return SQLITE_OK}function _nodejsTruncate(fi,size){try{fs.ftruncateSync(_fd(fi),_safeInt(size))}catch{return SQLITE_IOERR_TRUNCATE}return SQLITE_OK}function _nodejsUnlock(fi,level){if(level==SQLITE_LOCK_NONE&&_isLocked(fi)){try{fs.rmdirSync(`${_path(fi)}.lock`)}catch(err){if(err.code!=\"ENOENT\")return SQLITE_IOERR_UNLOCK}_setLocked(fi,false)}return SQLITE_OK}function _nodejsWrite(fi,buffer,bytes,offset){try{const bytesWritten=fs.writeSync(_fd(fi),HEAPU8.subarray(buffer,buffer+bytes),0,bytes,_safeInt(offset));return bytesWritten!=bytes?SQLITE_IOERR_WRITE:SQLITE_OK}catch{return SQLITE_IOERR_WRITE}}function _nodejs_max_path_length(){return process.platform==\"win32\"?260:4096}function _nodejs_open(filePath,flags,mode){let oflags=0;if(flags&SQLITE_OPEN_EXCLUSIVE)oflags|=fs.constants.O_EXCL;if(flags&SQLITE_OPEN_CREATE)oflags|=fs.constants.O_CREAT;if(flags&SQLITE_OPEN_READONLY)oflags|=fs.constants.O_RDONLY;if(flags&SQLITE_OPEN_READWRITE)oflags|=fs.constants.O_RDWR;try{return fs.openSync(UTF8ToString(filePath),oflags,mode)}catch{return-1}}function getValue(ptr,type=\"i8\"){if(type.endsWith(\"*\"))type=\"*\";switch(type){case\"i1\":return HEAP8[ptr];case\"i8\":return HEAP8[ptr];case\"i16\":return HEAP16[ptr>>1];case\"i32\":return HEAP32[ptr>>2];case\"i64\":return HEAP64[ptr>>3];case\"float\":return HEAPF32[ptr>>2];case\"double\":return HEAPF64[ptr>>3];case\"*\":return HEAPU32[ptr>>2];default:abort(`invalid type for getValue: ${type}`)}}var getCFunc=ident=>{var func=Module[\"_\"+ident];return func};var writeArrayToMemory=(array,buffer)=>{HEAP8.set(array,buffer)};var lengthBytesUTF8=str=>{var len=0;for(var i=0;i<str.length;++i){var c=str.charCodeAt(i);if(c<=127){len++}else if(c<=2047){len+=2}else if(c>=55296&&c<=57343){len+=4;++i}else{len+=3}}return len};var stackAlloc=sz=>__emscripten_stack_alloc(sz);var stringToUTF8OnStack=str=>{var size=lengthBytesUTF8(str)+1;var ret=stackAlloc(size);stringToUTF8(str,ret,size);return ret};var ccall=(ident,returnType,argTypes,args,opts)=>{var toC={string:str=>{var ret=0;if(str!==null&&str!==undefined&&str!==0){ret=stringToUTF8OnStack(str)}return ret},array:arr=>{var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType===\"string\"){return UTF8ToString(ret)}if(returnType===\"boolean\")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(!stack)stack=stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func(...cArgs);function onDone(ret){if(stack)stackRestore(stack);return convertReturnValue(ret)}ret=onDone(ret);return ret};var cwrap=(ident,returnType,argTypes,opts)=>{var numericArgs=!argTypes||argTypes.every(type=>type===\"number\"||type===\"boolean\");var numericRet=returnType!==\"string\";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return(...args)=>ccall(ident,returnType,argTypes,args,opts)};var wasmTableMirror=[];var getWasmTableEntry=funcPtr=>{var func=wasmTableMirror[funcPtr];if(!func){wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func};var updateTableMap=(offset,count)=>{if(functionsInTableMap){for(var i=offset;i<offset+count;i++){var item=getWasmTableEntry(i);if(item){functionsInTableMap.set(item,i)}}}};var functionsInTableMap;var getFunctionAddress=func=>{if(!functionsInTableMap){functionsInTableMap=new WeakMap;updateTableMap(0,wasmTable.length)}return functionsInTableMap.get(func)||0};var freeTableIndexes=[];var getEmptyTableSlot=()=>{if(freeTableIndexes.length){return freeTableIndexes.pop()}return wasmTable[\"grow\"](1)};var setWasmTableEntry=(idx,func)=>{wasmTable.set(idx,func);wasmTableMirror[idx]=wasmTable.get(idx)};var uleb128EncodeWithLen=arr=>{const n=arr.length;return[n%128|128,n>>7,...arr]};var wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111};var generateTypePack=types=>uleb128EncodeWithLen(Array.from(types,type=>{var code=wasmTypeCodes[type];return code}));var convertJsFunctionToWasm=(func,sig)=>{var bytes=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(sig.slice(1)),...generateTypePack(sig[0]===\"v\"?\"\":sig[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var module=new WebAssembly.Module(bytes);var instance=new WebAssembly.Instance(module,{e:{f:func}});var wrappedFunc=instance.exports[\"f\"];return wrappedFunc};var addFunction=(func,sig)=>{var rtn=getFunctionAddress(func);if(rtn){return rtn}var ret=getEmptyTableSlot();try{setWasmTableEntry(ret,func)}catch(err){if(!(err instanceof TypeError)){throw err}var wrapped=convertJsFunctionToWasm(func,sig);setWasmTableEntry(ret,wrapped)}functionsInTableMap.set(func,ret);return ret};var removeFunction=index=>{functionsInTableMap.delete(getWasmTableEntry(index));setWasmTableEntry(index,null);freeTableIndexes.push(index)};{if(Module[\"noExitRuntime\"])noExitRuntime=Module[\"noExitRuntime\"];if(Module[\"print\"])out=Module[\"print\"];if(Module[\"printErr\"])err=Module[\"printErr\"];if(Module[\"wasmBinary\"])wasmBinary=Module[\"wasmBinary\"];if(Module[\"arguments\"])programArgs=Module[\"arguments\"];if(Module[\"thisProgram\"])thisProgram=Module[\"thisProgram\"];var preInit=Module[\"preInit\"];if(preInit){if(typeof preInit==\"function\")Module[\"preInit\"]=preInit=[preInit];while(preInit.length>0){preInit.shift()()}}}Module[\"cwrap\"]=cwrap;Module[\"addFunction\"]=addFunction;Module[\"removeFunction\"]=removeFunction;var _sqlite3_finalize,_sqlite3_reset,_sqlite3_clear_bindings,_sqlite3_value_blob,_sqlite3_value_text,_sqlite3_value_bytes,_sqlite3_value_double,_sqlite3_value_int64,_sqlite3_value_type,_sqlite3_result_blob,_sqlite3_result_blob64,_sqlite3_result_double,_sqlite3_result_error,_sqlite3_result_int,_sqlite3_result_int64,_sqlite3_result_null,_sqlite3_result_text,_sqlite3_step,_sqlite3_column_count,_sqlite3_column_blob,_sqlite3_column_bytes,_sqlite3_column_double,_sqlite3_column_int64,_sqlite3_column_text,_sqlite3_column_type,_sqlite3_column_name,_sqlite3_column_table_name,_sqlite3_bind_blob,_sqlite3_bind_blob64,_sqlite3_bind_double,_sqlite3_bind_int,_sqlite3_bind_int64,_sqlite3_bind_null,_sqlite3_bind_text,_sqlite3_bind_parameter_index,_sqlite3_exec,_sqlite3_prepare_v2,_sqlite3_errmsg,_sqlite3_last_insert_rowid,_sqlite3_changes,_sqlite3_close_v2,_sqlite3_create_function_v2,_sqlite3_open_v2,_sqlite3_get_autocommit,_malloc,_free,__emscripten_timeout,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,memory,__indirect_function_table,wasmMemory,wasmTable;function assignWasmExports(wasmExports){_sqlite3_finalize=Module[\"_sqlite3_finalize\"]=wasmExports[\"A\"];_sqlite3_reset=Module[\"_sqlite3_reset\"]=wasmExports[\"B\"];_sqlite3_clear_bindings=Module[\"_sqlite3_clear_bindings\"]=wasmExports[\"C\"];_sqlite3_value_blob=Module[\"_sqlite3_value_blob\"]=wasmExports[\"D\"];_sqlite3_value_text=Module[\"_sqlite3_value_text\"]=wasmExports[\"E\"];_sqlite3_value_bytes=Module[\"_sqlite3_value_bytes\"]=wasmExports[\"F\"];_sqlite3_value_double=Module[\"_sqlite3_value_double\"]=wasmExports[\"G\"];_sqlite3_value_int64=Module[\"_sqlite3_value_int64\"]=wasmExports[\"H\"];_sqlite3_value_type=Module[\"_sqlite3_value_type\"]=wasmExports[\"I\"];_sqlite3_result_blob=Module[\"_sqlite3_result_blob\"]=wasmExports[\"J\"];_sqlite3_result_blob64=Module[\"_sqlite3_result_blob64\"]=wasmExports[\"K\"];_sqlite3_result_double=Module[\"_sqlite3_result_double\"]=wasmExports[\"L\"];_sqlite3_result_error=Module[\"_sqlite3_result_error\"]=wasmExports[\"M\"];_sqlite3_result_int=Module[\"_sqlite3_result_int\"]=wasmExports[\"N\"];_sqlite3_result_int64=Module[\"_sqlite3_result_int64\"]=wasmExports[\"O\"];_sqlite3_result_null=Module[\"_sqlite3_result_null\"]=wasmExports[\"P\"];_sqlite3_result_text=Module[\"_sqlite3_result_text\"]=wasmExports[\"Q\"];_sqlite3_step=Module[\"_sqlite3_step\"]=wasmExports[\"R\"];_sqlite3_column_count=Module[\"_sqlite3_column_count\"]=wasmExports[\"S\"];_sqlite3_column_blob=Module[\"_sqlite3_column_blob\"]=wasmExports[\"T\"];_sqlite3_column_bytes=Module[\"_sqlite3_column_bytes\"]=wasmExports[\"U\"];_sqlite3_column_double=Module[\"_sqlite3_column_double\"]=wasmExports[\"V\"];_sqlite3_column_int64=Module[\"_sqlite3_column_int64\"]=wasmExports[\"W\"];_sqlite3_column_text=Module[\"_sqlite3_column_text\"]=wasmExports[\"X\"];_sqlite3_column_type=Module[\"_sqlite3_column_type\"]=wasmExports[\"Y\"];_sqlite3_column_name=Module[\"_sqlite3_column_name\"]=wasmExports[\"Z\"];_sqlite3_column_table_name=Module[\"_sqlite3_column_table_name\"]=wasmExports[\"_\"];_sqlite3_bind_blob=Module[\"_sqlite3_bind_blob\"]=wasmExports[\"$\"];_sqlite3_bind_blob64=Module[\"_sqlite3_bind_blob64\"]=wasmExports[\"aa\"];_sqlite3_bind_double=Module[\"_sqlite3_bind_double\"]=wasmExports[\"ba\"];_sqlite3_bind_int=Module[\"_sqlite3_bind_int\"]=wasmExports[\"ca\"];_sqlite3_bind_int64=Module[\"_sqlite3_bind_int64\"]=wasmExports[\"da\"];_sqlite3_bind_null=Module[\"_sqlite3_bind_null\"]=wasmExports[\"ea\"];_sqlite3_bind_text=Module[\"_sqlite3_bind_text\"]=wasmExports[\"fa\"];_sqlite3_bind_parameter_index=Module[\"_sqlite3_bind_parameter_index\"]=wasmExports[\"ga\"];_sqlite3_exec=Module[\"_sqlite3_exec\"]=wasmExports[\"ha\"];_sqlite3_prepare_v2=Module[\"_sqlite3_prepare_v2\"]=wasmExports[\"ia\"];_sqlite3_errmsg=Module[\"_sqlite3_errmsg\"]=wasmExports[\"ja\"];_sqlite3_last_insert_rowid=Module[\"_sqlite3_last_insert_rowid\"]=wasmExports[\"ka\"];_sqlite3_changes=Module[\"_sqlite3_changes\"]=wasmExports[\"la\"];_sqlite3_close_v2=Module[\"_sqlite3_close_v2\"]=wasmExports[\"ma\"];_sqlite3_create_function_v2=Module[\"_sqlite3_create_function_v2\"]=wasmExports[\"na\"];_sqlite3_open_v2=Module[\"_sqlite3_open_v2\"]=wasmExports[\"oa\"];_sqlite3_get_autocommit=Module[\"_sqlite3_get_autocommit\"]=wasmExports[\"pa\"];_malloc=Module[\"_malloc\"]=wasmExports[\"qa\"];_free=Module[\"_free\"]=wasmExports[\"ra\"];__emscripten_timeout=wasmExports[\"ta\"];__emscripten_stack_restore=wasmExports[\"ua\"];__emscripten_stack_alloc=wasmExports[\"va\"];_emscripten_stack_get_current=wasmExports[\"wa\"];memory=wasmMemory=wasmExports[\"y\"];__indirect_function_table=wasmTable=wasmExports[\"sa\"]}var wasmImports={n:__abort_js,l:__emscripten_runtime_keepalive_clear,o:__localtime_js,i:__setitimer_js,p:__tzset_js,q:_emscripten_date_now,a:_emscripten_get_now,j:_emscripten_resize_heap,w:_nodejsAccess,s:_nodejsCheckReservedLock,f:_nodejsClose,x:_nodejsDelete,v:_nodejsFileSize,m:_nodejsFullPathname,u:_nodejsLock,h:_nodejsRandomness,e:_nodejsRead,b:_nodejsSync,c:_nodejsTruncate,t:_nodejsUnlock,d:_nodejsWrite,g:_nodejs_max_path_length,r:_nodejs_open,k:_proc_exit};async function run(){preRun();var setStatus=Module[\"setStatus\"];if(setStatus){setStatus(\"Running...\");await new Promise(resolve=>setTimeout(resolve,1));setTimeout(setStatus,1,\"\")}if(ABORT)return;initRuntime();Module[\"onRuntimeInitialized\"]?.();postRun()}var wasmExports;wasmExports=createWasm();run();\n","// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport abstract class _CodeOrName {\n  abstract readonly str: string\n  abstract readonly names: UsedNames\n  abstract toString(): string\n  abstract emptyStr(): boolean\n}\n\nexport const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i\n\nexport class Name extends _CodeOrName {\n  readonly str: string\n  constructor(s: string) {\n    super()\n    if (!IDENTIFIER.test(s)) throw new Error(\"CodeGen: name must be a valid identifier\")\n    this.str = s\n  }\n\n  toString(): string {\n    return this.str\n  }\n\n  emptyStr(): boolean {\n    return false\n  }\n\n  get names(): UsedNames {\n    return {[this.str]: 1}\n  }\n}\n\nexport class _Code extends _CodeOrName {\n  readonly _items: readonly CodeItem[]\n  private _str?: string\n  private _names?: UsedNames\n\n  constructor(code: string | readonly CodeItem[]) {\n    super()\n    this._items = typeof code === \"string\" ? [code] : code\n  }\n\n  toString(): string {\n    return this.str\n  }\n\n  emptyStr(): boolean {\n    if (this._items.length > 1) return false\n    const item = this._items[0]\n    return item === \"\" || item === '\"\"'\n  }\n\n  get str(): string {\n    return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, \"\"))\n  }\n\n  get names(): UsedNames {\n    return (this._names ??= this._items.reduce((names: UsedNames, c) => {\n      if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1\n      return names\n    }, {}))\n  }\n}\n\nexport type CodeItem = Name | string | number | boolean | null\n\nexport type UsedNames = Record<string, number | undefined>\n\nexport type Code = _Code | Name\n\nexport type SafeExpr = Code | number | boolean | null\n\nexport const nil = new _Code(\"\")\n\ntype CodeArg = SafeExpr | string | undefined\n\nexport function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code {\n  const code: CodeItem[] = [strs[0]]\n  let i = 0\n  while (i < args.length) {\n    addCodeArg(code, args[i])\n    code.push(strs[++i])\n  }\n  return new _Code(code)\n}\n\nconst plus = new _Code(\"+\")\n\nexport function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code {\n  const expr: CodeItem[] = [safeStringify(strs[0])]\n  let i = 0\n  while (i < args.length) {\n    expr.push(plus)\n    addCodeArg(expr, args[i])\n    expr.push(plus, safeStringify(strs[++i]))\n  }\n  optimize(expr)\n  return new _Code(expr)\n}\n\nexport function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void {\n  if (arg instanceof _Code) code.push(...arg._items)\n  else if (arg instanceof Name) code.push(arg)\n  else code.push(interpolate(arg))\n}\n\nfunction optimize(expr: CodeItem[]): void {\n  let i = 1\n  while (i < expr.length - 1) {\n    if (expr[i] === plus) {\n      const res = mergeExprItems(expr[i - 1], expr[i + 1])\n      if (res !== undefined) {\n        expr.splice(i - 1, 3, res)\n        continue\n      }\n      expr[i++] = \"+\"\n    }\n    i++\n  }\n}\n\nfunction mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined {\n  if (b === '\"\"') return a\n  if (a === '\"\"') return b\n  if (typeof a == \"string\") {\n    if (b instanceof Name || a[a.length - 1] !== '\"') return\n    if (typeof b != \"string\") return `${a.slice(0, -1)}${b}\"`\n    if (b[0] === '\"') return a.slice(0, -1) + b.slice(1)\n    return\n  }\n  if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name)) return `\"${a}${b.slice(1)}`\n  return\n}\n\nexport function strConcat(c1: Code, c2: Code): Code {\n  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`\n}\n\n// TODO do not allow arrays here\nfunction interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string {\n  return typeof x == \"number\" || typeof x == \"boolean\" || x === null\n    ? x\n    : safeStringify(Array.isArray(x) ? x.join(\",\") : x)\n}\n\nexport function stringify(x: unknown): Code {\n  return new _Code(safeStringify(x))\n}\n\nexport function safeStringify(x: unknown): string {\n  return JSON.stringify(x)\n    .replace(/\\u2028/g, \"\\\\u2028\")\n    .replace(/\\u2029/g, \"\\\\u2029\")\n}\n\nexport function getProperty(key: Code | string | number): Code {\n  return typeof key == \"string\" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`\n}\n\n//Does best effort to format the name properly\nexport function getEsmExportName(key: Code | string | number): Code {\n  if (typeof key == \"string\" && IDENTIFIER.test(key)) {\n    return new _Code(`${key}`)\n  }\n  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`)\n}\n\nexport function regexpCode(rx: RegExp): Code {\n  return new _Code(rx.toString())\n}\n","import {_, nil, Code, Name} from \"./code\"\n\ninterface NameGroup {\n  prefix: string\n  index: number\n}\n\nexport interface NameValue {\n  ref: ValueReference // this is the reference to any value that can be referred to from generated code via `globals` var in the closure\n  key?: unknown // any key to identify a global to avoid duplicates, if not passed ref is used\n  code?: Code // this is the code creating the value needed for standalone code wit_out closure - can be a primitive value, function or import (`require`)\n}\n\nexport type ValueReference = unknown // possibly make CodeGen parameterized type on this type\n\nclass ValueError extends Error {\n  readonly value?: NameValue\n  constructor(name: ValueScopeName) {\n    super(`CodeGen: \"code\" for ${name} not defined`)\n    this.value = name.value\n  }\n}\n\ninterface ScopeOptions {\n  prefixes?: Set<string>\n  parent?: Scope\n}\n\ninterface ValueScopeOptions extends ScopeOptions {\n  scope: ScopeStore\n  es5?: boolean\n  lines?: boolean\n}\n\nexport type ScopeStore = Record<string, ValueReference[] | undefined>\n\ntype ScopeValues = {\n  [Prefix in string]?: Map<unknown, ValueScopeName>\n}\n\nexport type ScopeValueSets = {\n  [Prefix in string]?: Set<ValueScopeName>\n}\n\nexport enum UsedValueState {\n  Started,\n  Completed,\n}\n\nexport type UsedScopeValues = {\n  [Prefix in string]?: Map<ValueScopeName, UsedValueState | undefined>\n}\n\nexport const varKinds = {\n  const: new Name(\"const\"),\n  let: new Name(\"let\"),\n  var: new Name(\"var\"),\n}\n\nexport class Scope {\n  protected readonly _names: {[Prefix in string]?: NameGroup} = {}\n  protected readonly _prefixes?: Set<string>\n  protected readonly _parent?: Scope\n\n  constructor({prefixes, parent}: ScopeOptions = {}) {\n    this._prefixes = prefixes\n    this._parent = parent\n  }\n\n  toName(nameOrPrefix: Name | string): Name {\n    return nameOrPrefix instanceof Name ? nameOrPrefix : this.name(nameOrPrefix)\n  }\n\n  name(prefix: string): Name {\n    return new Name(this._newName(prefix))\n  }\n\n  protected _newName(prefix: string): string {\n    const ng = this._names[prefix] || this._nameGroup(prefix)\n    return `${prefix}${ng.index++}`\n  }\n\n  private _nameGroup(prefix: string): NameGroup {\n    if (this._parent?._prefixes?.has(prefix) || (this._prefixes && !this._prefixes.has(prefix))) {\n      throw new Error(`CodeGen: prefix \"${prefix}\" is not allowed in this scope`)\n    }\n    return (this._names[prefix] = {prefix, index: 0})\n  }\n}\n\ninterface ScopePath {\n  property: string\n  itemIndex: number\n}\n\nexport class ValueScopeName extends Name {\n  readonly prefix: string\n  value?: NameValue\n  scopePath?: Code\n\n  constructor(prefix: string, nameStr: string) {\n    super(nameStr)\n    this.prefix = prefix\n  }\n\n  setValue(value: NameValue, {property, itemIndex}: ScopePath): void {\n    this.value = value\n    this.scopePath = _`.${new Name(property)}[${itemIndex}]`\n  }\n}\n\ninterface VSOptions extends ValueScopeOptions {\n  _n: Code\n}\n\nconst line = _`\\n`\n\nexport class ValueScope extends Scope {\n  protected readonly _values: ScopeValues = {}\n  protected readonly _scope: ScopeStore\n  readonly opts: VSOptions\n\n  constructor(opts: ValueScopeOptions) {\n    super(opts)\n    this._scope = opts.scope\n    this.opts = {...opts, _n: opts.lines ? line : nil}\n  }\n\n  get(): ScopeStore {\n    return this._scope\n  }\n\n  name(prefix: string): ValueScopeName {\n    return new ValueScopeName(prefix, this._newName(prefix))\n  }\n\n  value(nameOrPrefix: ValueScopeName | string, value: NameValue): ValueScopeName {\n    if (value.ref === undefined) throw new Error(\"CodeGen: ref must be passed in value\")\n    const name = this.toName(nameOrPrefix) as ValueScopeName\n    const {prefix} = name\n    const valueKey = value.key ?? value.ref\n    let vs = this._values[prefix]\n    if (vs) {\n      const _name = vs.get(valueKey)\n      if (_name) return _name\n    } else {\n      vs = this._values[prefix] = new Map()\n    }\n    vs.set(valueKey, name)\n\n    const s = this._scope[prefix] || (this._scope[prefix] = [])\n    const itemIndex = s.length\n    s[itemIndex] = value.ref\n    name.setValue(value, {property: prefix, itemIndex})\n    return name\n  }\n\n  getValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined {\n    const vs = this._values[prefix]\n    if (!vs) return\n    return vs.get(keyOrRef)\n  }\n\n  scopeRefs(scopeName: Name, values: ScopeValues | ScopeValueSets = this._values): Code {\n    return this._reduceValues(values, (name: ValueScopeName) => {\n      if (name.scopePath === undefined) throw new Error(`CodeGen: name \"${name}\" has no value`)\n      return _`${scopeName}${name.scopePath}`\n    })\n  }\n\n  scopeCode(\n    values: ScopeValues | ScopeValueSets = this._values,\n    usedValues?: UsedScopeValues,\n    getCode?: (n: ValueScopeName) => Code | undefined\n  ): Code {\n    return this._reduceValues(\n      values,\n      (name: ValueScopeName) => {\n        if (name.value === undefined) throw new Error(`CodeGen: name \"${name}\" has no value`)\n        return name.value.code\n      },\n      usedValues,\n      getCode\n    )\n  }\n\n  private _reduceValues(\n    values: ScopeValues | ScopeValueSets,\n    valueCode: (n: ValueScopeName) => Code | undefined,\n    usedValues: UsedScopeValues = {},\n    getCode?: (n: ValueScopeName) => Code | undefined\n  ): Code {\n    let code: Code = nil\n    for (const prefix in values) {\n      const vs = values[prefix]\n      if (!vs) continue\n      const nameSet = (usedValues[prefix] = usedValues[prefix] || new Map())\n      vs.forEach((name: ValueScopeName) => {\n        if (nameSet.has(name)) return\n        nameSet.set(name, UsedValueState.Started)\n        let c = valueCode(name)\n        if (c) {\n          const def = this.opts.es5 ? varKinds.var : varKinds.const\n          code = _`${code}${def} ${name} = ${c};${this.opts._n}`\n        } else if ((c = getCode?.(name))) {\n          code = _`${code}${c}${this.opts._n}`\n        } else {\n          throw new ValueError(name)\n        }\n        nameSet.set(name, UsedValueState.Completed)\n      })\n    }\n    return code\n  }\n}\n","import type {ScopeValueSets, NameValue, ValueScope, ValueScopeName} from \"./scope\"\nimport {_, nil, _Code, Code, Name, UsedNames, CodeItem, addCodeArg, _CodeOrName} from \"./code\"\nimport {Scope, varKinds} from \"./scope\"\n\nexport {_, str, strConcat, nil, getProperty, stringify, regexpCode, Name, Code} from \"./code\"\nexport {Scope, ScopeStore, ValueScope, ValueScopeName, ScopeValueSets, varKinds} from \"./scope\"\n\n// type for expressions that can be safely inserted in code without quotes\nexport type SafeExpr = Code | number | boolean | null\n\n// type that is either Code of function that adds code to CodeGen instance using its methods\nexport type Block = Code | (() => void)\n\nexport const operators = {\n  GT: new _Code(\">\"),\n  GTE: new _Code(\">=\"),\n  LT: new _Code(\"<\"),\n  LTE: new _Code(\"<=\"),\n  EQ: new _Code(\"===\"),\n  NEQ: new _Code(\"!==\"),\n  NOT: new _Code(\"!\"),\n  OR: new _Code(\"||\"),\n  AND: new _Code(\"&&\"),\n  ADD: new _Code(\"+\"),\n}\n\nabstract class Node {\n  abstract readonly names: UsedNames\n\n  optimizeNodes(): this | ChildNode | ChildNode[] | undefined {\n    return this\n  }\n\n  optimizeNames(_names: UsedNames, _constants: Constants): this | undefined {\n    return this\n  }\n\n  // get count(): number {\n  //   return 1\n  // }\n}\n\nclass Def extends Node {\n  constructor(\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private rhs?: SafeExpr\n  ) {\n    super()\n  }\n\n  render({es5, _n}: CGOptions): string {\n    const varKind = es5 ? varKinds.var : this.varKind\n    const rhs = this.rhs === undefined ? \"\" : ` = ${this.rhs}`\n    return `${varKind} ${this.name}${rhs};` + _n\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!names[this.name.str]) return\n    if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return this.rhs instanceof _CodeOrName ? this.rhs.names : {}\n  }\n}\n\nclass Assign extends Node {\n  constructor(\n    readonly lhs: Code,\n    public rhs: SafeExpr,\n    private readonly sideEffects?: boolean\n  ) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.lhs} = ${this.rhs};` + _n\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (this.lhs instanceof Name && !names[this.lhs.str] && !this.sideEffects) return\n    this.rhs = optimizeExpr(this.rhs, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = this.lhs instanceof Name ? {} : {...this.lhs.names}\n    return addExprNames(names, this.rhs)\n  }\n}\n\nclass AssignOp extends Assign {\n  constructor(\n    lhs: Code,\n    private readonly op: Code,\n    rhs: SafeExpr,\n    sideEffects?: boolean\n  ) {\n    super(lhs, rhs, sideEffects)\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.lhs} ${this.op}= ${this.rhs};` + _n\n  }\n}\n\nclass Label extends Node {\n  readonly names: UsedNames = {}\n  constructor(readonly label: Name) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.label}:` + _n\n  }\n}\n\nclass Break extends Node {\n  readonly names: UsedNames = {}\n  constructor(readonly label?: Code) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    const label = this.label ? ` ${this.label}` : \"\"\n    return `break${label};` + _n\n  }\n}\n\nclass Throw extends Node {\n  constructor(readonly error: Code) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `throw ${this.error};` + _n\n  }\n\n  get names(): UsedNames {\n    return this.error.names\n  }\n}\n\nclass AnyCode extends Node {\n  constructor(private code: SafeExpr) {\n    super()\n  }\n\n  render({_n}: CGOptions): string {\n    return `${this.code};` + _n\n  }\n\n  optimizeNodes(): this | undefined {\n    return `${this.code}` ? this : undefined\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this {\n    this.code = optimizeExpr(this.code, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return this.code instanceof _CodeOrName ? this.code.names : {}\n  }\n}\n\nabstract class ParentNode extends Node {\n  constructor(readonly nodes: ChildNode[] = []) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return this.nodes.reduce((code, n) => code + n.render(opts), \"\")\n  }\n\n  optimizeNodes(): this | ChildNode | ChildNode[] | undefined {\n    const {nodes} = this\n    let i = nodes.length\n    while (i--) {\n      const n = nodes[i].optimizeNodes()\n      if (Array.isArray(n)) nodes.splice(i, 1, ...n)\n      else if (n) nodes[i] = n\n      else nodes.splice(i, 1)\n    }\n    return nodes.length > 0 ? this : undefined\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    const {nodes} = this\n    let i = nodes.length\n    while (i--) {\n      // iterating backwards improves 1-pass optimization\n      const n = nodes[i]\n      if (n.optimizeNames(names, constants)) continue\n      subtractNames(names, n.names)\n      nodes.splice(i, 1)\n    }\n    return nodes.length > 0 ? this : undefined\n  }\n\n  get names(): UsedNames {\n    return this.nodes.reduce((names: UsedNames, n) => addNames(names, n.names), {})\n  }\n\n  // get count(): number {\n  //   return this.nodes.reduce((c, n) => c + n.count, 1)\n  // }\n}\n\nabstract class BlockNode extends ParentNode {\n  render(opts: CGOptions): string {\n    return \"{\" + opts._n + super.render(opts) + \"}\" + opts._n\n  }\n}\n\nclass Root extends ParentNode {}\n\nclass Else extends BlockNode {\n  static readonly kind = \"else\"\n}\n\nclass If extends BlockNode {\n  static readonly kind = \"if\"\n  else?: If | Else\n  constructor(\n    private condition: Code | boolean,\n    nodes?: ChildNode[]\n  ) {\n    super(nodes)\n  }\n\n  render(opts: CGOptions): string {\n    let code = `if(${this.condition})` + super.render(opts)\n    if (this.else) code += \"else \" + this.else.render(opts)\n    return code\n  }\n\n  optimizeNodes(): If | ChildNode[] | undefined {\n    super.optimizeNodes()\n    const cond = this.condition\n    if (cond === true) return this.nodes // else is ignored here\n    let e = this.else\n    if (e) {\n      const ns = e.optimizeNodes()\n      e = this.else = Array.isArray(ns) ? new Else(ns) : (ns as Else | undefined)\n    }\n    if (e) {\n      if (cond === false) return e instanceof If ? e : e.nodes\n      if (this.nodes.length) return this\n      return new If(not(cond), e instanceof If ? [e] : e.nodes)\n    }\n    if (cond === false || !this.nodes.length) return undefined\n    return this\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    this.else = this.else?.optimizeNames(names, constants)\n    if (!(super.optimizeNames(names, constants) || this.else)) return\n    this.condition = optimizeExpr(this.condition, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = super.names\n    addExprNames(names, this.condition)\n    if (this.else) addNames(names, this.else.names)\n    return names\n  }\n\n  // get count(): number {\n  //   return super.count + (this.else?.count || 0)\n  // }\n}\n\nabstract class For extends BlockNode {\n  static readonly kind = \"for\"\n}\n\nclass ForLoop extends For {\n  constructor(private iteration: Code) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `for(${this.iteration})` + super.render(opts)\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!super.optimizeNames(names, constants)) return\n    this.iteration = optimizeExpr(this.iteration, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return addNames(super.names, this.iteration.names)\n  }\n}\n\nclass ForRange extends For {\n  constructor(\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private readonly from: SafeExpr,\n    private readonly to: SafeExpr\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    const varKind = opts.es5 ? varKinds.var : this.varKind\n    const {name, from, to} = this\n    return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts)\n  }\n\n  get names(): UsedNames {\n    const names = addExprNames(super.names, this.from)\n    return addExprNames(names, this.to)\n  }\n}\n\nclass ForIter extends For {\n  constructor(\n    private readonly loop: \"of\" | \"in\",\n    private readonly varKind: Name,\n    private readonly name: Name,\n    private iterable: Code\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts)\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this | undefined {\n    if (!super.optimizeNames(names, constants)) return\n    this.iterable = optimizeExpr(this.iterable, names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    return addNames(super.names, this.iterable.names)\n  }\n}\n\nclass Func extends BlockNode {\n  static readonly kind = \"func\"\n  constructor(\n    public name: Name,\n    public args: Code,\n    public async?: boolean\n  ) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    const _async = this.async ? \"async \" : \"\"\n    return `${_async}function ${this.name}(${this.args})` + super.render(opts)\n  }\n}\n\nclass Return extends ParentNode {\n  static readonly kind = \"return\"\n\n  render(opts: CGOptions): string {\n    return \"return \" + super.render(opts)\n  }\n}\n\nclass Try extends BlockNode {\n  catch?: Catch\n  finally?: Finally\n\n  render(opts: CGOptions): string {\n    let code = \"try\" + super.render(opts)\n    if (this.catch) code += this.catch.render(opts)\n    if (this.finally) code += this.finally.render(opts)\n    return code\n  }\n\n  optimizeNodes(): this {\n    super.optimizeNodes()\n    this.catch?.optimizeNodes() as Catch | undefined\n    this.finally?.optimizeNodes() as Finally | undefined\n    return this\n  }\n\n  optimizeNames(names: UsedNames, constants: Constants): this {\n    super.optimizeNames(names, constants)\n    this.catch?.optimizeNames(names, constants)\n    this.finally?.optimizeNames(names, constants)\n    return this\n  }\n\n  get names(): UsedNames {\n    const names = super.names\n    if (this.catch) addNames(names, this.catch.names)\n    if (this.finally) addNames(names, this.finally.names)\n    return names\n  }\n\n  // get count(): number {\n  //   return super.count + (this.catch?.count || 0) + (this.finally?.count || 0)\n  // }\n}\n\nclass Catch extends BlockNode {\n  static readonly kind = \"catch\"\n  constructor(readonly error: Name) {\n    super()\n  }\n\n  render(opts: CGOptions): string {\n    return `catch(${this.error})` + super.render(opts)\n  }\n}\n\nclass Finally extends BlockNode {\n  static readonly kind = \"finally\"\n  render(opts: CGOptions): string {\n    return \"finally\" + super.render(opts)\n  }\n}\n\ntype StartBlockNode = If | For | Func | Return | Try\n\ntype LeafNode = Def | Assign | Label | Break | Throw | AnyCode\n\ntype ChildNode = StartBlockNode | LeafNode\n\ntype EndBlockNodeType =\n  | typeof If\n  | typeof Else\n  | typeof For\n  | typeof Func\n  | typeof Return\n  | typeof Catch\n  | typeof Finally\n\ntype Constants = Record<string, SafeExpr | undefined>\n\nexport interface CodeGenOptions {\n  es5?: boolean\n  lines?: boolean\n  ownProperties?: boolean\n}\n\ninterface CGOptions extends CodeGenOptions {\n  _n: \"\\n\" | \"\"\n}\n\nexport class CodeGen {\n  readonly _scope: Scope\n  readonly _extScope: ValueScope\n  readonly _values: ScopeValueSets = {}\n  private readonly _nodes: ParentNode[]\n  private readonly _blockStarts: number[] = []\n  private readonly _constants: Constants = {}\n  private readonly opts: CGOptions\n\n  constructor(extScope: ValueScope, opts: CodeGenOptions = {}) {\n    this.opts = {...opts, _n: opts.lines ? \"\\n\" : \"\"}\n    this._extScope = extScope\n    this._scope = new Scope({parent: extScope})\n    this._nodes = [new Root()]\n  }\n\n  toString(): string {\n    return this._root.render(this.opts)\n  }\n\n  // returns unique name in the internal scope\n  name(prefix: string): Name {\n    return this._scope.name(prefix)\n  }\n\n  // reserves unique name in the external scope\n  scopeName(prefix: string): ValueScopeName {\n    return this._extScope.name(prefix)\n  }\n\n  // reserves unique name in the external scope and assigns value to it\n  scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name {\n    const name = this._extScope.value(prefixOrName, value)\n    const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set())\n    vs.add(name)\n    return name\n  }\n\n  getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined {\n    return this._extScope.getValue(prefix, keyOrRef)\n  }\n\n  // return code that assigns values in the external scope to the names that are used internally\n  // (same names that were returned by gen.scopeName or gen.scopeValue)\n  scopeRefs(scopeName: Name): Code {\n    return this._extScope.scopeRefs(scopeName, this._values)\n  }\n\n  scopeCode(): Code {\n    return this._extScope.scopeCode(this._values)\n  }\n\n  private _def(\n    varKind: Name,\n    nameOrPrefix: Name | string,\n    rhs?: SafeExpr,\n    constant?: boolean\n  ): Name {\n    const name = this._scope.toName(nameOrPrefix)\n    if (rhs !== undefined && constant) this._constants[name.str] = rhs\n    this._leafNode(new Def(varKind, name, rhs))\n    return name\n  }\n\n  // `const` declaration (`var` in es5 mode)\n  const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.const, nameOrPrefix, rhs, _constant)\n  }\n\n  // `let` declaration with optional assignment (`var` in es5 mode)\n  let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.let, nameOrPrefix, rhs, _constant)\n  }\n\n  // `var` declaration with optional assignment\n  var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {\n    return this._def(varKinds.var, nameOrPrefix, rhs, _constant)\n  }\n\n  // assignment code\n  assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen {\n    return this._leafNode(new Assign(lhs, rhs, sideEffects))\n  }\n\n  // `+=` code\n  add(lhs: Code, rhs: SafeExpr): CodeGen {\n    return this._leafNode(new AssignOp(lhs, operators.ADD, rhs))\n  }\n\n  // appends passed SafeExpr to code or executes Block\n  code(c: Block | SafeExpr): CodeGen {\n    if (typeof c == \"function\") c()\n    else if (c !== nil) this._leafNode(new AnyCode(c))\n    return this\n  }\n\n  // returns code for object literal for the passed argument list of key-value pairs\n  object(...keyValues: [Name | string, SafeExpr | string][]): _Code {\n    const code: CodeItem[] = [\"{\"]\n    for (const [key, value] of keyValues) {\n      if (code.length > 1) code.push(\",\")\n      code.push(key)\n      if (key !== value || this.opts.es5) {\n        code.push(\":\")\n        addCodeArg(code, value)\n      }\n    }\n    code.push(\"}\")\n    return new _Code(code)\n  }\n\n  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)\n  if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen {\n    this._blockNode(new If(condition))\n\n    if (thenBody && elseBody) {\n      this.code(thenBody).else().code(elseBody).endIf()\n    } else if (thenBody) {\n      this.code(thenBody).endIf()\n    } else if (elseBody) {\n      throw new Error('CodeGen: \"else\" body without \"then\" body')\n    }\n    return this\n  }\n\n  // `else if` clause - invalid without `if` or after `else` clauses\n  elseIf(condition: Code | boolean): CodeGen {\n    return this._elseNode(new If(condition))\n  }\n\n  // `else` clause - only valid after `if` or `else if` clauses\n  else(): CodeGen {\n    return this._elseNode(new Else())\n  }\n\n  // end `if` statement (needed if gen.if was used only with condition)\n  endIf(): CodeGen {\n    return this._endBlockNode(If, Else)\n  }\n\n  private _for(node: For, forBody?: Block): CodeGen {\n    this._blockNode(node)\n    if (forBody) this.code(forBody).endFor()\n    return this\n  }\n\n  // a generic `for` clause (or statement if `forBody` is passed)\n  for(iteration: Code, forBody?: Block): CodeGen {\n    return this._for(new ForLoop(iteration), forBody)\n  }\n\n  // `for` statement for a range of values\n  forRange(\n    nameOrPrefix: Name | string,\n    from: SafeExpr,\n    to: SafeExpr,\n    forBody: (index: Name) => void,\n    varKind: Code = this.opts.es5 ? varKinds.var : varKinds.let\n  ): CodeGen {\n    const name = this._scope.toName(nameOrPrefix)\n    return this._for(new ForRange(varKind, name, from, to), () => forBody(name))\n  }\n\n  // `for-of` statement (in es5 mode replace with a normal for loop)\n  forOf(\n    nameOrPrefix: Name | string,\n    iterable: Code,\n    forBody: (item: Name) => void,\n    varKind: Code = varKinds.const\n  ): CodeGen {\n    const name = this._scope.toName(nameOrPrefix)\n    if (this.opts.es5) {\n      const arr = iterable instanceof Name ? iterable : this.var(\"_arr\", iterable)\n      return this.forRange(\"_i\", 0, _`${arr}.length`, (i) => {\n        this.var(name, _`${arr}[${i}]`)\n        forBody(name)\n      })\n    }\n    return this._for(new ForIter(\"of\", varKind, name, iterable), () => forBody(name))\n  }\n\n  // `for-in` statement.\n  // With option `ownProperties` replaced with a `for-of` loop for object keys\n  forIn(\n    nameOrPrefix: Name | string,\n    obj: Code,\n    forBody: (item: Name) => void,\n    varKind: Code = this.opts.es5 ? varKinds.var : varKinds.const\n  ): CodeGen {\n    if (this.opts.ownProperties) {\n      return this.forOf(nameOrPrefix, _`Object.keys(${obj})`, forBody)\n    }\n    const name = this._scope.toName(nameOrPrefix)\n    return this._for(new ForIter(\"in\", varKind, name, obj), () => forBody(name))\n  }\n\n  // end `for` loop\n  endFor(): CodeGen {\n    return this._endBlockNode(For)\n  }\n\n  // `label` statement\n  label(label: Name): CodeGen {\n    return this._leafNode(new Label(label))\n  }\n\n  // `break` statement\n  break(label?: Code): CodeGen {\n    return this._leafNode(new Break(label))\n  }\n\n  // `return` statement\n  return(value: Block | SafeExpr): CodeGen {\n    const node = new Return()\n    this._blockNode(node)\n    this.code(value)\n    if (node.nodes.length !== 1) throw new Error('CodeGen: \"return\" should have one node')\n    return this._endBlockNode(Return)\n  }\n\n  // `try` statement\n  try(tryBody: Block, catchCode?: (e: Name) => void, finallyCode?: Block): CodeGen {\n    if (!catchCode && !finallyCode) throw new Error('CodeGen: \"try\" without \"catch\" and \"finally\"')\n    const node = new Try()\n    this._blockNode(node)\n    this.code(tryBody)\n    if (catchCode) {\n      const error = this.name(\"e\")\n      this._currNode = node.catch = new Catch(error)\n      catchCode(error)\n    }\n    if (finallyCode) {\n      this._currNode = node.finally = new Finally()\n      this.code(finallyCode)\n    }\n    return this._endBlockNode(Catch, Finally)\n  }\n\n  // `throw` statement\n  throw(error: Code): CodeGen {\n    return this._leafNode(new Throw(error))\n  }\n\n  // start self-balancing block\n  block(body?: Block, nodeCount?: number): CodeGen {\n    this._blockStarts.push(this._nodes.length)\n    if (body) this.code(body).endBlock(nodeCount)\n    return this\n  }\n\n  // end the current self-balancing block\n  endBlock(nodeCount?: number): CodeGen {\n    const len = this._blockStarts.pop()\n    if (len === undefined) throw new Error(\"CodeGen: not in self-balancing block\")\n    const toClose = this._nodes.length - len\n    if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) {\n      throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`)\n    }\n    this._nodes.length = len\n    return this\n  }\n\n  // `function` heading (or definition if funcBody is passed)\n  func(name: Name, args: Code = nil, async?: boolean, funcBody?: Block): CodeGen {\n    this._blockNode(new Func(name, args, async))\n    if (funcBody) this.code(funcBody).endFunc()\n    return this\n  }\n\n  // end function definition\n  endFunc(): CodeGen {\n    return this._endBlockNode(Func)\n  }\n\n  optimize(n = 1): void {\n    while (n-- > 0) {\n      this._root.optimizeNodes()\n      this._root.optimizeNames(this._root.names, this._constants)\n    }\n  }\n\n  private _leafNode(node: LeafNode): CodeGen {\n    this._currNode.nodes.push(node)\n    return this\n  }\n\n  private _blockNode(node: StartBlockNode): void {\n    this._currNode.nodes.push(node)\n    this._nodes.push(node)\n  }\n\n  private _endBlockNode(N1: EndBlockNodeType, N2?: EndBlockNodeType): CodeGen {\n    const n = this._currNode\n    if (n instanceof N1 || (N2 && n instanceof N2)) {\n      this._nodes.pop()\n      return this\n    }\n    throw new Error(`CodeGen: not in block \"${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}\"`)\n  }\n\n  private _elseNode(node: If | Else): CodeGen {\n    const n = this._currNode\n    if (!(n instanceof If)) {\n      throw new Error('CodeGen: \"else\" without \"if\"')\n    }\n    this._currNode = n.else = node\n    return this\n  }\n\n  private get _root(): Root {\n    return this._nodes[0] as Root\n  }\n\n  private get _currNode(): ParentNode {\n    const ns = this._nodes\n    return ns[ns.length - 1]\n  }\n\n  private set _currNode(node: ParentNode) {\n    const ns = this._nodes\n    ns[ns.length - 1] = node\n  }\n\n  // get nodeCount(): number {\n  //   return this._root.count\n  // }\n}\n\nfunction addNames(names: UsedNames, from: UsedNames): UsedNames {\n  for (const n in from) names[n] = (names[n] || 0) + (from[n] || 0)\n  return names\n}\n\nfunction addExprNames(names: UsedNames, from: SafeExpr): UsedNames {\n  return from instanceof _CodeOrName ? addNames(names, from.names) : names\n}\n\nfunction optimizeExpr<T extends SafeExpr | Code>(expr: T, names: UsedNames, constants: Constants): T\nfunction optimizeExpr(expr: SafeExpr, names: UsedNames, constants: Constants): SafeExpr {\n  if (expr instanceof Name) return replaceName(expr)\n  if (!canOptimize(expr)) return expr\n  return new _Code(\n    expr._items.reduce((items: CodeItem[], c: SafeExpr | string) => {\n      if (c instanceof Name) c = replaceName(c)\n      if (c instanceof _Code) items.push(...c._items)\n      else items.push(c)\n      return items\n    }, [])\n  )\n\n  function replaceName(n: Name): SafeExpr {\n    const c = constants[n.str]\n    if (c === undefined || names[n.str] !== 1) return n\n    delete names[n.str]\n    return c\n  }\n\n  function canOptimize(e: SafeExpr): e is _Code {\n    return (\n      e instanceof _Code &&\n      e._items.some(\n        (c) => c instanceof Name && names[c.str] === 1 && constants[c.str] !== undefined\n      )\n    )\n  }\n}\n\nfunction subtractNames(names: UsedNames, from: UsedNames): void {\n  for (const n in from) names[n] = (names[n] || 0) - (from[n] || 0)\n}\n\nexport function not<T extends Code | SafeExpr>(x: T): T\nexport function not(x: Code | SafeExpr): Code | SafeExpr {\n  return typeof x == \"boolean\" || typeof x == \"number\" || x === null ? !x : _`!${par(x)}`\n}\n\nconst andCode = mappend(operators.AND)\n\n// boolean AND (&&) expression with the passed arguments\nexport function and(...args: Code[]): Code {\n  return args.reduce(andCode)\n}\n\nconst orCode = mappend(operators.OR)\n\n// boolean OR (||) expression with the passed arguments\nexport function or(...args: Code[]): Code {\n  return args.reduce(orCode)\n}\n\ntype MAppend = (x: Code, y: Code) => Code\n\nfunction mappend(op: Code): MAppend {\n  return (x, y) => (x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`)\n}\n\nfunction par(x: Code): Code {\n  return x instanceof Name ? x : _`(${x})`\n}\n","import type {AnySchema, EvaluatedProperties, EvaluatedItems} from \"../types\"\nimport type {SchemaCxt, SchemaObjCxt} from \".\"\nimport {_, getProperty, Code, Name, CodeGen} from \"./codegen\"\nimport {_Code} from \"./codegen/code\"\nimport type {Rule, ValidationRules} from \"./rules\"\n\n// TODO refactor to use Set\nexport function toHash<T extends string = string>(arr: T[]): {[K in T]?: true} {\n  const hash: {[K in T]?: true} = {}\n  for (const item of arr) hash[item] = true\n  return hash\n}\n\nexport function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void {\n  if (typeof schema == \"boolean\") return schema\n  if (Object.keys(schema).length === 0) return true\n  checkUnknownRules(it, schema)\n  return !schemaHasRules(schema, it.self.RULES.all)\n}\n\nexport function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void {\n  const {opts, self} = it\n  if (!opts.strictSchema) return\n  if (typeof schema === \"boolean\") return\n  const rules = self.RULES.keywords\n  for (const key in schema) {\n    if (!rules[key]) checkStrictMode(it, `unknown keyword: \"${key}\"`)\n  }\n}\n\nexport function schemaHasRules(\n  schema: AnySchema,\n  rules: {[Key in string]?: boolean | Rule}\n): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (rules[key]) return true\n  return false\n}\n\nexport function schemaHasRulesButRef(schema: AnySchema, RULES: ValidationRules): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (key !== \"$ref\" && RULES.all[key]) return true\n  return false\n}\n\nexport function schemaRefOrVal(\n  {topSchemaRef, schemaPath}: SchemaObjCxt,\n  schema: unknown,\n  keyword: string,\n  $data?: string | false\n): Code | number | boolean {\n  if (!$data) {\n    if (typeof schema == \"number\" || typeof schema == \"boolean\") return schema\n    if (typeof schema == \"string\") return _`${schema}`\n  }\n  return _`${topSchemaRef}${schemaPath}${getProperty(keyword)}`\n}\n\nexport function unescapeFragment(str: string): string {\n  return unescapeJsonPointer(decodeURIComponent(str))\n}\n\nexport function escapeFragment(str: string | number): string {\n  return encodeURIComponent(escapeJsonPointer(str))\n}\n\nexport function escapeJsonPointer(str: string | number): string {\n  if (typeof str == \"number\") return `${str}`\n  return str.replace(/~/g, \"~0\").replace(/\\//g, \"~1\")\n}\n\nexport function unescapeJsonPointer(str: string): string {\n  return str.replace(/~1/g, \"/\").replace(/~0/g, \"~\")\n}\n\nexport function eachItem<T>(xs: T | T[], f: (x: T) => void): void {\n  if (Array.isArray(xs)) {\n    for (const x of xs) f(x)\n  } else {\n    f(xs)\n  }\n}\n\ntype SomeEvaluated = EvaluatedProperties | EvaluatedItems\n\ntype MergeEvaluatedFunc<T extends SomeEvaluated> = (\n  gen: CodeGen,\n  from: Name | T,\n  to: Name | Exclude<T, true> | undefined,\n  toName?: typeof Name\n) => Name | T\n\ninterface MakeMergeFuncArgs<T extends SomeEvaluated> {\n  mergeNames: (gen: CodeGen, from: Name, to: Name) => void\n  mergeToName: (gen: CodeGen, from: T, to: Name) => void\n  mergeValues: (from: T, to: Exclude<T, true>) => T\n  resultToName: (gen: CodeGen, res?: T) => Name\n}\n\nfunction makeMergeEvaluated<T extends SomeEvaluated>({\n  mergeNames,\n  mergeToName,\n  mergeValues,\n  resultToName,\n}: MakeMergeFuncArgs<T>): MergeEvaluatedFunc<T> {\n  return (gen, from, to, toName) => {\n    const res =\n      to === undefined\n        ? from\n        : to instanceof Name\n        ? (from instanceof Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to)\n        : from instanceof Name\n        ? (mergeToName(gen, to, from), from)\n        : mergeValues(from, to)\n    return toName === Name && !(res instanceof Name) ? resultToName(gen, res) : res\n  }\n}\n\ninterface MergeEvaluated {\n  props: MergeEvaluatedFunc<EvaluatedProperties>\n  items: MergeEvaluatedFunc<EvaluatedItems>\n}\n\nexport const mergeEvaluated: MergeEvaluated = {\n  props: makeMergeEvaluated({\n    mergeNames: (gen, from, to) =>\n      gen.if(_`${to} !== true && ${from} !== undefined`, () => {\n        gen.if(\n          _`${from} === true`,\n          () => gen.assign(to, true),\n          () => gen.assign(to, _`${to} || {}`).code(_`Object.assign(${to}, ${from})`)\n        )\n      }),\n    mergeToName: (gen, from, to) =>\n      gen.if(_`${to} !== true`, () => {\n        if (from === true) {\n          gen.assign(to, true)\n        } else {\n          gen.assign(to, _`${to} || {}`)\n          setEvaluated(gen, to, from)\n        }\n      }),\n    mergeValues: (from, to) => (from === true ? true : {...from, ...to}),\n    resultToName: evaluatedPropsToName,\n  }),\n  items: makeMergeEvaluated({\n    mergeNames: (gen, from, to) =>\n      gen.if(_`${to} !== true && ${from} !== undefined`, () =>\n        gen.assign(to, _`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)\n      ),\n    mergeToName: (gen, from, to) =>\n      gen.if(_`${to} !== true`, () =>\n        gen.assign(to, from === true ? true : _`${to} > ${from} ? ${to} : ${from}`)\n      ),\n    mergeValues: (from, to) => (from === true ? true : Math.max(from, to)),\n    resultToName: (gen, items) => gen.var(\"items\", items),\n  }),\n}\n\nexport function evaluatedPropsToName(gen: CodeGen, ps?: EvaluatedProperties): Name {\n  if (ps === true) return gen.var(\"props\", true)\n  const props = gen.var(\"props\", _`{}`)\n  if (ps !== undefined) setEvaluated(gen, props, ps)\n  return props\n}\n\nexport function setEvaluated(gen: CodeGen, props: Name, ps: {[K in string]?: true}): void {\n  Object.keys(ps).forEach((p) => gen.assign(_`${props}${getProperty(p)}`, true))\n}\n\nconst snippets: {[S in string]?: _Code} = {}\n\nexport function useFunc(gen: CodeGen, f: {code: string}): Name {\n  return gen.scopeValue(\"func\", {\n    ref: f,\n    code: snippets[f.code] || (snippets[f.code] = new _Code(f.code)),\n  })\n}\n\nexport enum Type {\n  Num,\n  Str,\n}\n\nexport function getErrorPath(\n  dataProp: Name | string | number,\n  dataPropType?: Type,\n  jsPropertySyntax?: boolean\n): Code | string {\n  // let path\n  if (dataProp instanceof Name) {\n    const isNumber = dataPropType === Type.Num\n    return jsPropertySyntax\n      ? isNumber\n        ? _`\"[\" + ${dataProp} + \"]\"`\n        : _`\"['\" + ${dataProp} + \"']\"`\n      : isNumber\n      ? _`\"/\" + ${dataProp}`\n      : _`\"/\" + ${dataProp}.replace(/~/g, \"~0\").replace(/\\\\//g, \"~1\")` // TODO maybe use global escapePointer\n  }\n  return jsPropertySyntax ? getProperty(dataProp).toString() : \"/\" + escapeJsonPointer(dataProp)\n}\n\nexport function checkStrictMode(\n  it: SchemaCxt,\n  msg: string,\n  mode: boolean | \"log\" = it.opts.strictSchema\n): void {\n  if (!mode) return\n  msg = `strict mode: ${msg}`\n  if (mode === true) throw new Error(msg)\n  it.self.logger.warn(msg)\n}\n","import {Name} from \"./codegen\"\n\nconst names = {\n  // validation function arguments\n  data: new Name(\"data\"), // data passed to validation function\n  // args passed from referencing schema\n  valCxt: new Name(\"valCxt\"), // validation/data context - should not be used directly, it is destructured to the names below\n  instancePath: new Name(\"instancePath\"),\n  parentData: new Name(\"parentData\"),\n  parentDataProperty: new Name(\"parentDataProperty\"),\n  rootData: new Name(\"rootData\"), // root data - same as the data passed to the first/top validation function\n  dynamicAnchors: new Name(\"dynamicAnchors\"), // used to support recursiveRef and dynamicRef\n  // function scoped variables\n  vErrors: new Name(\"vErrors\"), // null or array of validation errors\n  errors: new Name(\"errors\"), // counter of validation errors\n  this: new Name(\"this\"),\n  // \"globals\"\n  self: new Name(\"self\"),\n  scope: new Name(\"scope\"),\n  // JTD serialize/parse name for JSON string and position\n  json: new Name(\"json\"),\n  jsonPos: new Name(\"jsonPos\"),\n  jsonLen: new Name(\"jsonLen\"),\n  jsonPart: new Name(\"jsonPart\"),\n}\n\nexport default names\n","import type {KeywordErrorCxt, KeywordErrorDefinition} from \"../types\"\nimport type {SchemaCxt} from \"./index\"\nimport {CodeGen, _, str, strConcat, Code, Name} from \"./codegen\"\nimport {SafeExpr} from \"./codegen/code\"\nimport {getErrorPath, Type} from \"./util\"\nimport N from \"./names\"\n\nexport const keywordError: KeywordErrorDefinition = {\n  message: ({keyword}) => str`must pass \"${keyword}\" keyword validation`,\n}\n\nexport const keyword$DataError: KeywordErrorDefinition = {\n  message: ({keyword, schemaType}) =>\n    schemaType\n      ? str`\"${keyword}\" keyword must be ${schemaType} ($data)`\n      : str`\"${keyword}\" keyword is invalid ($data)`,\n}\n\nexport interface ErrorPaths {\n  instancePath?: Code\n  schemaPath?: string\n  parentSchema?: boolean\n}\n\nexport function reportError(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition = keywordError,\n  errorPaths?: ErrorPaths,\n  overrideAllErrors?: boolean\n): void {\n  const {it} = cxt\n  const {gen, compositeRule, allErrors} = it\n  const errObj = errorObjectCode(cxt, error, errorPaths)\n  if (overrideAllErrors ?? (compositeRule || allErrors)) {\n    addError(gen, errObj)\n  } else {\n    returnErrors(it, _`[${errObj}]`)\n  }\n}\n\nexport function reportExtraError(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition = keywordError,\n  errorPaths?: ErrorPaths\n): void {\n  const {it} = cxt\n  const {gen, compositeRule, allErrors} = it\n  const errObj = errorObjectCode(cxt, error, errorPaths)\n  addError(gen, errObj)\n  if (!(compositeRule || allErrors)) {\n    returnErrors(it, N.vErrors)\n  }\n}\n\nexport function resetErrorsCount(gen: CodeGen, errsCount: Name): void {\n  gen.assign(N.errors, errsCount)\n  gen.if(_`${N.vErrors} !== null`, () =>\n    gen.if(\n      errsCount,\n      () => gen.assign(_`${N.vErrors}.length`, errsCount),\n      () => gen.assign(N.vErrors, null)\n    )\n  )\n}\n\nexport function extendErrors({\n  gen,\n  keyword,\n  schemaValue,\n  data,\n  errsCount,\n  it,\n}: KeywordErrorCxt): void {\n  /* istanbul ignore if */\n  if (errsCount === undefined) throw new Error(\"ajv implementation error\")\n  const err = gen.name(\"err\")\n  gen.forRange(\"i\", errsCount, N.errors, (i) => {\n    gen.const(err, _`${N.vErrors}[${i}]`)\n    gen.if(_`${err}.instancePath === undefined`, () =>\n      gen.assign(_`${err}.instancePath`, strConcat(N.instancePath, it.errorPath))\n    )\n    gen.assign(_`${err}.schemaPath`, str`${it.errSchemaPath}/${keyword}`)\n    if (it.opts.verbose) {\n      gen.assign(_`${err}.schema`, schemaValue)\n      gen.assign(_`${err}.data`, data)\n    }\n  })\n}\n\nfunction addError(gen: CodeGen, errObj: Code): void {\n  const err = gen.const(\"err\", errObj)\n  gen.if(\n    _`${N.vErrors} === null`,\n    () => gen.assign(N.vErrors, _`[${err}]`),\n    _`${N.vErrors}.push(${err})`\n  )\n  gen.code(_`${N.errors}++`)\n}\n\nfunction returnErrors(it: SchemaCxt, errs: Code): void {\n  const {gen, validateName, schemaEnv} = it\n  if (schemaEnv.$async) {\n    gen.throw(_`new ${it.ValidationError as Name}(${errs})`)\n  } else {\n    gen.assign(_`${validateName}.errors`, errs)\n    gen.return(false)\n  }\n}\n\nconst E = {\n  keyword: new Name(\"keyword\"),\n  schemaPath: new Name(\"schemaPath\"), // also used in JTD errors\n  params: new Name(\"params\"),\n  propertyName: new Name(\"propertyName\"),\n  message: new Name(\"message\"),\n  schema: new Name(\"schema\"),\n  parentSchema: new Name(\"parentSchema\"),\n}\n\nfunction errorObjectCode(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition,\n  errorPaths?: ErrorPaths\n): Code {\n  const {createErrors} = cxt.it\n  if (createErrors === false) return _`{}`\n  return errorObject(cxt, error, errorPaths)\n}\n\nfunction errorObject(\n  cxt: KeywordErrorCxt,\n  error: KeywordErrorDefinition,\n  errorPaths: ErrorPaths = {}\n): Code {\n  const {gen, it} = cxt\n  const keyValues: [Name, SafeExpr | string][] = [\n    errorInstancePath(it, errorPaths),\n    errorSchemaPath(cxt, errorPaths),\n  ]\n  extraErrorProps(cxt, error, keyValues)\n  return gen.object(...keyValues)\n}\n\nfunction errorInstancePath({errorPath}: SchemaCxt, {instancePath}: ErrorPaths): [Name, Code] {\n  const instPath = instancePath\n    ? str`${errorPath}${getErrorPath(instancePath, Type.Str)}`\n    : errorPath\n  return [N.instancePath, strConcat(N.instancePath, instPath)]\n}\n\nfunction errorSchemaPath(\n  {keyword, it: {errSchemaPath}}: KeywordErrorCxt,\n  {schemaPath, parentSchema}: ErrorPaths\n): [Name, string | Code] {\n  let schPath = parentSchema ? errSchemaPath : str`${errSchemaPath}/${keyword}`\n  if (schemaPath) {\n    schPath = str`${schPath}${getErrorPath(schemaPath, Type.Str)}`\n  }\n  return [E.schemaPath, schPath]\n}\n\nfunction extraErrorProps(\n  cxt: KeywordErrorCxt,\n  {params, message}: KeywordErrorDefinition,\n  keyValues: [Name, SafeExpr | string][]\n): void {\n  const {keyword, data, schemaValue, it} = cxt\n  const {opts, propertyName, topSchemaRef, schemaPath} = it\n  keyValues.push(\n    [E.keyword, keyword],\n    [E.params, typeof params == \"function\" ? params(cxt) : params || _`{}`]\n  )\n  if (opts.messages) {\n    keyValues.push([E.message, typeof message == \"function\" ? message(cxt) : message])\n  }\n  if (opts.verbose) {\n    keyValues.push(\n      [E.schema, schemaValue],\n      [E.parentSchema, _`${topSchemaRef}${schemaPath}`],\n      [N.data, data]\n    )\n  }\n  if (propertyName) keyValues.push([E.propertyName, propertyName])\n}\n","import type {KeywordErrorDefinition, KeywordErrorCxt} from \"../../types\"\nimport type {SchemaCxt} from \"..\"\nimport {reportError} from \"../errors\"\nimport {_, Name} from \"../codegen\"\nimport N from \"../names\"\n\nconst boolError: KeywordErrorDefinition = {\n  message: \"boolean schema is false\",\n}\n\nexport function topBoolOrEmptySchema(it: SchemaCxt): void {\n  const {gen, schema, validateName} = it\n  if (schema === false) {\n    falseSchemaError(it, false)\n  } else if (typeof schema == \"object\" && schema.$async === true) {\n    gen.return(N.data)\n  } else {\n    gen.assign(_`${validateName}.errors`, null)\n    gen.return(true)\n  }\n}\n\nexport function boolOrEmptySchema(it: SchemaCxt, valid: Name): void {\n  const {gen, schema} = it\n  if (schema === false) {\n    gen.var(valid, false) // TODO var\n    falseSchemaError(it)\n  } else {\n    gen.var(valid, true) // TODO var\n  }\n}\n\nfunction falseSchemaError(it: SchemaCxt, overrideAllErrors?: boolean): void {\n  const {gen, data} = it\n  // TODO maybe some other interface should be used for non-keyword validation errors...\n  const cxt: KeywordErrorCxt = {\n    gen,\n    keyword: \"false schema\",\n    data,\n    schema: false,\n    schemaCode: false,\n    schemaValue: false,\n    params: {},\n    it,\n  }\n  reportError(cxt, boolError, undefined, overrideAllErrors)\n}\n","import type {AddedKeywordDefinition} from \"../types\"\n\nconst _jsonTypes = [\"string\", \"number\", \"integer\", \"boolean\", \"null\", \"object\", \"array\"] as const\n\nexport type JSONType = (typeof _jsonTypes)[number]\n\nconst jsonTypes: Set<string> = new Set(_jsonTypes)\n\nexport function isJSONType(x: unknown): x is JSONType {\n  return typeof x == \"string\" && jsonTypes.has(x)\n}\n\ntype ValidationTypes = {\n  [K in JSONType]: boolean | RuleGroup | undefined\n}\n\nexport interface ValidationRules {\n  rules: RuleGroup[]\n  post: RuleGroup\n  all: {[Key in string]?: boolean | Rule} // rules that have to be validated\n  keywords: {[Key in string]?: boolean} // all known keywords (superset of \"all\")\n  types: ValidationTypes\n}\n\nexport interface RuleGroup {\n  type?: JSONType\n  rules: Rule[]\n}\n\n// This interface wraps KeywordDefinition because definition can have multiple keywords\nexport interface Rule {\n  keyword: string\n  definition: AddedKeywordDefinition\n}\n\nexport function getRules(): ValidationRules {\n  const groups: Record<\"number\" | \"string\" | \"array\" | \"object\", RuleGroup> = {\n    number: {type: \"number\", rules: []},\n    string: {type: \"string\", rules: []},\n    array: {type: \"array\", rules: []},\n    object: {type: \"object\", rules: []},\n  }\n  return {\n    types: {...groups, integer: true, boolean: true, null: true},\n    rules: [{rules: []}, groups.number, groups.string, groups.array, groups.object],\n    post: {rules: []},\n    all: {},\n    keywords: {},\n  }\n}\n","import type {AnySchemaObject} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport type {JSONType, RuleGroup, Rule} from \"../rules\"\n\nexport function schemaHasRulesForType(\n  {schema, self}: SchemaObjCxt,\n  type: JSONType\n): boolean | undefined {\n  const group = self.RULES.types[type]\n  return group && group !== true && shouldUseGroup(schema, group)\n}\n\nexport function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean {\n  return group.rules.some((rule) => shouldUseRule(schema, rule))\n}\n\nexport function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined {\n  return (\n    schema[rule.keyword] !== undefined ||\n    rule.definition.implements?.some((kwd) => schema[kwd] !== undefined)\n  )\n}\n","import type {\n  KeywordErrorDefinition,\n  KeywordErrorCxt,\n  ErrorObject,\n  AnySchemaObject,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {isJSONType, JSONType} from \"../rules\"\nimport {schemaHasRulesForType} from \"./applicability\"\nimport {reportError} from \"../errors\"\nimport {_, nil, and, not, operators, Code, Name} from \"../codegen\"\nimport {toHash, schemaRefOrVal} from \"../util\"\n\nexport enum DataType {\n  Correct,\n  Wrong,\n}\n\nexport function getSchemaTypes(schema: AnySchemaObject): JSONType[] {\n  const types = getJSONTypes(schema.type)\n  const hasNull = types.includes(\"null\")\n  if (hasNull) {\n    if (schema.nullable === false) throw new Error(\"type: null contradicts nullable: false\")\n  } else {\n    if (!types.length && schema.nullable !== undefined) {\n      throw new Error('\"nullable\" cannot be used without \"type\"')\n    }\n    if (schema.nullable === true) types.push(\"null\")\n  }\n  return types\n}\n\n// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\nexport function getJSONTypes(ts: unknown | unknown[]): JSONType[] {\n  const types: unknown[] = Array.isArray(ts) ? ts : ts ? [ts] : []\n  if (types.every(isJSONType)) return types\n  throw new Error(\"type must be JSONType or JSONType[]: \" + types.join(\",\"))\n}\n\nexport function coerceAndCheckDataType(it: SchemaObjCxt, types: JSONType[]): boolean {\n  const {gen, data, opts} = it\n  const coerceTo = coerceToTypes(types, opts.coerceTypes)\n  const checkTypes =\n    types.length > 0 &&\n    !(coerceTo.length === 0 && types.length === 1 && schemaHasRulesForType(it, types[0]))\n  if (checkTypes) {\n    const wrongType = checkDataTypes(types, data, opts.strictNumbers, DataType.Wrong)\n    gen.if(wrongType, () => {\n      if (coerceTo.length) coerceData(it, types, coerceTo)\n      else reportTypeError(it)\n    })\n  }\n  return checkTypes\n}\n\nconst COERCIBLE: Set<JSONType> = new Set([\"string\", \"number\", \"integer\", \"boolean\", \"null\"])\nfunction coerceToTypes(types: JSONType[], coerceTypes?: boolean | \"array\"): JSONType[] {\n  return coerceTypes\n    ? types.filter((t) => COERCIBLE.has(t) || (coerceTypes === \"array\" && t === \"array\"))\n    : []\n}\n\nfunction coerceData(it: SchemaObjCxt, types: JSONType[], coerceTo: JSONType[]): void {\n  const {gen, data, opts} = it\n  const dataType = gen.let(\"dataType\", _`typeof ${data}`)\n  const coerced = gen.let(\"coerced\", _`undefined`)\n  if (opts.coerceTypes === \"array\") {\n    gen.if(_`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () =>\n      gen\n        .assign(data, _`${data}[0]`)\n        .assign(dataType, _`typeof ${data}`)\n        .if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data))\n    )\n  }\n  gen.if(_`${coerced} !== undefined`)\n  for (const t of coerceTo) {\n    if (COERCIBLE.has(t) || (t === \"array\" && opts.coerceTypes === \"array\")) {\n      coerceSpecificType(t)\n    }\n  }\n  gen.else()\n  reportTypeError(it)\n  gen.endIf()\n\n  gen.if(_`${coerced} !== undefined`, () => {\n    gen.assign(data, coerced)\n    assignParentData(it, coerced)\n  })\n\n  function coerceSpecificType(t: string): void {\n    switch (t) {\n      case \"string\":\n        gen\n          .elseIf(_`${dataType} == \"number\" || ${dataType} == \"boolean\"`)\n          .assign(coerced, _`\"\" + ${data}`)\n          .elseIf(_`${data} === null`)\n          .assign(coerced, _`\"\"`)\n        return\n      case \"number\":\n        gen\n          .elseIf(\n            _`${dataType} == \"boolean\" || ${data} === null\n              || (${dataType} == \"string\" && ${data} && ${data} == +${data})`\n          )\n          .assign(coerced, _`+${data}`)\n        return\n      case \"integer\":\n        gen\n          .elseIf(\n            _`${dataType} === \"boolean\" || ${data} === null\n              || (${dataType} === \"string\" && ${data} && ${data} == +${data} && !(${data} % 1))`\n          )\n          .assign(coerced, _`+${data}`)\n        return\n      case \"boolean\":\n        gen\n          .elseIf(_`${data} === \"false\" || ${data} === 0 || ${data} === null`)\n          .assign(coerced, false)\n          .elseIf(_`${data} === \"true\" || ${data} === 1`)\n          .assign(coerced, true)\n        return\n      case \"null\":\n        gen.elseIf(_`${data} === \"\" || ${data} === 0 || ${data} === false`)\n        gen.assign(coerced, null)\n        return\n\n      case \"array\":\n        gen\n          .elseIf(\n            _`${dataType} === \"string\" || ${dataType} === \"number\"\n              || ${dataType} === \"boolean\" || ${data} === null`\n          )\n          .assign(coerced, _`[${data}]`)\n    }\n  }\n}\n\nfunction assignParentData({gen, parentData, parentDataProperty}: SchemaObjCxt, expr: Name): void {\n  // TODO use gen.property\n  gen.if(_`${parentData} !== undefined`, () =>\n    gen.assign(_`${parentData}[${parentDataProperty}]`, expr)\n  )\n}\n\nexport function checkDataType(\n  dataType: JSONType,\n  data: Name,\n  strictNums?: boolean | \"log\",\n  correct = DataType.Correct\n): Code {\n  const EQ = correct === DataType.Correct ? operators.EQ : operators.NEQ\n  let cond: Code\n  switch (dataType) {\n    case \"null\":\n      return _`${data} ${EQ} null`\n    case \"array\":\n      cond = _`Array.isArray(${data})`\n      break\n    case \"object\":\n      cond = _`${data} && typeof ${data} == \"object\" && !Array.isArray(${data})`\n      break\n    case \"integer\":\n      cond = numCond(_`!(${data} % 1) && !isNaN(${data})`)\n      break\n    case \"number\":\n      cond = numCond()\n      break\n    default:\n      return _`typeof ${data} ${EQ} ${dataType}`\n  }\n  return correct === DataType.Correct ? cond : not(cond)\n\n  function numCond(_cond: Code = nil): Code {\n    return and(_`typeof ${data} == \"number\"`, _cond, strictNums ? _`isFinite(${data})` : nil)\n  }\n}\n\nexport function checkDataTypes(\n  dataTypes: JSONType[],\n  data: Name,\n  strictNums?: boolean | \"log\",\n  correct?: DataType\n): Code {\n  if (dataTypes.length === 1) {\n    return checkDataType(dataTypes[0], data, strictNums, correct)\n  }\n  let cond: Code\n  const types = toHash(dataTypes)\n  if (types.array && types.object) {\n    const notObj = _`typeof ${data} != \"object\"`\n    cond = types.null ? notObj : _`!${data} || ${notObj}`\n    delete types.null\n    delete types.array\n    delete types.object\n  } else {\n    cond = nil\n  }\n  if (types.number) delete types.integer\n  for (const t in types) cond = and(cond, checkDataType(t as JSONType, data, strictNums, correct))\n  return cond\n}\n\nexport type TypeError = ErrorObject<\"type\", {type: string}>\n\nconst typeError: KeywordErrorDefinition = {\n  message: ({schema}) => `must be ${schema}`,\n  params: ({schema, schemaValue}) =>\n    typeof schema == \"string\" ? _`{type: ${schema}}` : _`{type: ${schemaValue}}`,\n}\n\nexport function reportTypeError(it: SchemaObjCxt): void {\n  const cxt = getTypeErrorContext(it)\n  reportError(cxt, typeError)\n}\n\nfunction getTypeErrorContext(it: SchemaObjCxt): KeywordErrorCxt {\n  const {gen, data, schema} = it\n  const schemaCode = schemaRefOrVal(it, schema, \"type\")\n  return {\n    gen,\n    keyword: \"type\",\n    data,\n    schema: schema.type,\n    schemaCode,\n    schemaValue: schemaCode,\n    parentSchema: schema,\n    params: {},\n    it,\n  }\n}\n","import type {SchemaObjCxt} from \"..\"\nimport {_, getProperty, stringify} from \"../codegen\"\nimport {checkStrictMode} from \"../util\"\n\nexport function assignDefaults(it: SchemaObjCxt, ty?: string): void {\n  const {properties, items} = it.schema\n  if (ty === \"object\" && properties) {\n    for (const key in properties) {\n      assignDefault(it, key, properties[key].default)\n    }\n  } else if (ty === \"array\" && Array.isArray(items)) {\n    items.forEach((sch, i: number) => assignDefault(it, i, sch.default))\n  }\n}\n\nfunction assignDefault(it: SchemaObjCxt, prop: string | number, defaultValue: unknown): void {\n  const {gen, compositeRule, data, opts} = it\n  if (defaultValue === undefined) return\n  const childData = _`${data}${getProperty(prop)}`\n  if (compositeRule) {\n    checkStrictMode(it, `default is ignored for: ${childData}`)\n    return\n  }\n\n  let condition = _`${childData} === undefined`\n  if (opts.useDefaults === \"empty\") {\n    condition = _`${condition} || ${childData} === null || ${childData} === \"\"`\n  }\n  // `${childData} === undefined` +\n  // (opts.useDefaults === \"empty\" ? ` || ${childData} === null || ${childData} === \"\"` : \"\")\n  gen.if(condition, _`${childData} = ${stringify(defaultValue)}`)\n}\n","import type {AnySchema, SchemaMap} from \"../types\"\nimport type {SchemaCxt} from \"../compile\"\nimport type {KeywordCxt} from \"../compile/validate\"\nimport {CodeGen, _, and, or, not, nil, strConcat, getProperty, Code, Name} from \"../compile/codegen\"\nimport {alwaysValidSchema, Type} from \"../compile/util\"\nimport N from \"../compile/names\"\nimport {useFunc} from \"../compile/util\"\nexport function checkReportMissingProp(cxt: KeywordCxt, prop: string): void {\n  const {gen, data, it} = cxt\n  gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {\n    cxt.setParams({missingProperty: _`${prop}`}, true)\n    cxt.error()\n  })\n}\n\nexport function checkMissingProp(\n  {gen, data, it: {opts}}: KeywordCxt,\n  properties: string[],\n  missing: Name\n): Code {\n  return or(\n    ...properties.map((prop) =>\n      and(noPropertyInData(gen, data, prop, opts.ownProperties), _`${missing} = ${prop}`)\n    )\n  )\n}\n\nexport function reportMissingProp(cxt: KeywordCxt, missing: Name): void {\n  cxt.setParams({missingProperty: missing}, true)\n  cxt.error()\n}\n\nexport function hasPropFunc(gen: CodeGen): Name {\n  return gen.scopeValue(\"func\", {\n    // eslint-disable-next-line @typescript-eslint/unbound-method\n    ref: Object.prototype.hasOwnProperty,\n    code: _`Object.prototype.hasOwnProperty`,\n  })\n}\n\nexport function isOwnProperty(gen: CodeGen, data: Name, property: Name | string): Code {\n  return _`${hasPropFunc(gen)}.call(${data}, ${property})`\n}\n\nexport function propertyInData(\n  gen: CodeGen,\n  data: Name,\n  property: Name | string,\n  ownProperties?: boolean\n): Code {\n  const cond = _`${data}${getProperty(property)} !== undefined`\n  return ownProperties ? _`${cond} && ${isOwnProperty(gen, data, property)}` : cond\n}\n\nexport function noPropertyInData(\n  gen: CodeGen,\n  data: Name,\n  property: Name | string,\n  ownProperties?: boolean\n): Code {\n  const cond = _`${data}${getProperty(property)} === undefined`\n  return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond\n}\n\nexport function allSchemaProperties(schemaMap?: SchemaMap): string[] {\n  return schemaMap ? Object.keys(schemaMap).filter((p) => p !== \"__proto__\") : []\n}\n\nexport function schemaProperties(it: SchemaCxt, schemaMap: SchemaMap): string[] {\n  return allSchemaProperties(schemaMap).filter(\n    (p) => !alwaysValidSchema(it, schemaMap[p] as AnySchema)\n  )\n}\n\nexport function callValidateCode(\n  {schemaCode, data, it: {gen, topSchemaRef, schemaPath, errorPath}, it}: KeywordCxt,\n  func: Code,\n  context: Code,\n  passSchema?: boolean\n): Code {\n  const dataAndSchema = passSchema ? _`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data\n  const valCxt: [Name, Code | number][] = [\n    [N.instancePath, strConcat(N.instancePath, errorPath)],\n    [N.parentData, it.parentData],\n    [N.parentDataProperty, it.parentDataProperty],\n    [N.rootData, N.rootData],\n  ]\n  if (it.opts.dynamicRef) valCxt.push([N.dynamicAnchors, N.dynamicAnchors])\n  const args = _`${dataAndSchema}, ${gen.object(...valCxt)}`\n  return context !== nil ? _`${func}.call(${context}, ${args})` : _`${func}(${args})`\n}\n\nconst newRegExp = _`new RegExp`\n\nexport function usePattern({gen, it: {opts}}: KeywordCxt, pattern: string): Name {\n  const u = opts.unicodeRegExp ? \"u\" : \"\"\n  const {regExp} = opts.code\n  const rx = regExp(pattern, u)\n\n  return gen.scopeValue(\"pattern\", {\n    key: rx.toString(),\n    ref: rx,\n    code: _`${regExp.code === \"new RegExp\" ? newRegExp : useFunc(gen, regExp)}(${pattern}, ${u})`,\n  })\n}\n\nexport function validateArray(cxt: KeywordCxt): Name {\n  const {gen, data, keyword, it} = cxt\n  const valid = gen.name(\"valid\")\n  if (it.allErrors) {\n    const validArr = gen.let(\"valid\", true)\n    validateItems(() => gen.assign(validArr, false))\n    return validArr\n  }\n  gen.var(valid, true)\n  validateItems(() => gen.break())\n  return valid\n\n  function validateItems(notValid: () => void): void {\n    const len = gen.const(\"len\", _`${data}.length`)\n    gen.forRange(\"i\", 0, len, (i) => {\n      cxt.subschema(\n        {\n          keyword,\n          dataProp: i,\n          dataPropType: Type.Num,\n        },\n        valid\n      )\n      gen.if(not(valid), notValid)\n    })\n  }\n}\n\nexport function validateUnion(cxt: KeywordCxt): void {\n  const {gen, schema, keyword, it} = cxt\n  /* istanbul ignore if */\n  if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n  const alwaysValid = schema.some((sch: AnySchema) => alwaysValidSchema(it, sch))\n  if (alwaysValid && !it.opts.unevaluated) return\n\n  const valid = gen.let(\"valid\", false)\n  const schValid = gen.name(\"_valid\")\n\n  gen.block(() =>\n    schema.forEach((_sch: AnySchema, i: number) => {\n      const schCxt = cxt.subschema(\n        {\n          keyword,\n          schemaProp: i,\n          compositeRule: true,\n        },\n        schValid\n      )\n      gen.assign(valid, _`${valid} || ${schValid}`)\n      const merged = cxt.mergeValidEvaluated(schCxt, schValid)\n      // can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true)\n      // or if all properties and items were evaluated (it.props === true && it.items === true)\n      if (!merged) gen.if(not(valid))\n    })\n  )\n\n  cxt.result(\n    valid,\n    () => cxt.reset(),\n    () => cxt.error(true)\n  )\n}\n","import type {KeywordCxt} from \".\"\nimport type {\n  AnySchema,\n  SchemaValidateFunction,\n  AnyValidateFunction,\n  AddedKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {_, nil, not, stringify, Code, Name, CodeGen} from \"../codegen\"\nimport N from \"../names\"\nimport type {JSONType} from \"../rules\"\nimport {callValidateCode} from \"../../vocabularies/code\"\nimport {extendErrors} from \"../errors\"\n\ntype KeywordCompilationResult = AnySchema | SchemaValidateFunction | AnyValidateFunction\n\nexport function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void {\n  const {gen, keyword, schema, parentSchema, it} = cxt\n  const macroSchema = def.macro.call(it.self, schema, parentSchema, it)\n  const schemaRef = useKeyword(gen, keyword, macroSchema)\n  if (it.opts.validateSchema !== false) it.self.validateSchema(macroSchema, true)\n\n  const valid = gen.name(\"valid\")\n  cxt.subschema(\n    {\n      schema: macroSchema,\n      schemaPath: nil,\n      errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n      topSchemaRef: schemaRef,\n      compositeRule: true,\n    },\n    valid\n  )\n  cxt.pass(valid, () => cxt.error(true))\n}\n\nexport function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void {\n  const {gen, keyword, schema, parentSchema, $data, it} = cxt\n  checkAsyncKeyword(it, def)\n  const validate =\n    !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate\n  const validateRef = useKeyword(gen, keyword, validate)\n  const valid = gen.let(\"valid\")\n  cxt.block$data(valid, validateKeyword)\n  cxt.ok(def.valid ?? valid)\n\n  function validateKeyword(): void {\n    if (def.errors === false) {\n      assignValid()\n      if (def.modifying) modifyData(cxt)\n      reportErrs(() => cxt.error())\n    } else {\n      const ruleErrs = def.async ? validateAsync() : validateSync()\n      if (def.modifying) modifyData(cxt)\n      reportErrs(() => addErrs(cxt, ruleErrs))\n    }\n  }\n\n  function validateAsync(): Name {\n    const ruleErrs = gen.let(\"ruleErrs\", null)\n    gen.try(\n      () => assignValid(_`await `),\n      (e) =>\n        gen.assign(valid, false).if(\n          _`${e} instanceof ${it.ValidationError as Name}`,\n          () => gen.assign(ruleErrs, _`${e}.errors`),\n          () => gen.throw(e)\n        )\n    )\n    return ruleErrs\n  }\n\n  function validateSync(): Code {\n    const validateErrs = _`${validateRef}.errors`\n    gen.assign(validateErrs, null)\n    assignValid(nil)\n    return validateErrs\n  }\n\n  function assignValid(_await: Code = def.async ? _`await ` : nil): void {\n    const passCxt = it.opts.passContext ? N.this : N.self\n    const passSchema = !((\"compile\" in def && !$data) || def.schema === false)\n    gen.assign(\n      valid,\n      _`${_await}${callValidateCode(cxt, validateRef, passCxt, passSchema)}`,\n      def.modifying\n    )\n  }\n\n  function reportErrs(errors: () => void): void {\n    gen.if(not(def.valid ?? valid), errors)\n  }\n}\n\nfunction modifyData(cxt: KeywordCxt): void {\n  const {gen, data, it} = cxt\n  gen.if(it.parentData, () => gen.assign(data, _`${it.parentData}[${it.parentDataProperty}]`))\n}\n\nfunction addErrs(cxt: KeywordCxt, errs: Code): void {\n  const {gen} = cxt\n  gen.if(\n    _`Array.isArray(${errs})`,\n    () => {\n      gen\n        .assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`)\n        .assign(N.errors, _`${N.vErrors}.length`)\n      extendErrors(cxt)\n    },\n    () => cxt.error()\n  )\n}\n\nfunction checkAsyncKeyword({schemaEnv}: SchemaObjCxt, def: FuncKeywordDefinition): void {\n  if (def.async && !schemaEnv.$async) throw new Error(\"async keyword in sync schema\")\n}\n\nfunction useKeyword(gen: CodeGen, keyword: string, result?: KeywordCompilationResult): Name {\n  if (result === undefined) throw new Error(`keyword \"${keyword}\" failed to compile`)\n  return gen.scopeValue(\n    \"keyword\",\n    typeof result == \"function\" ? {ref: result} : {ref: result, code: stringify(result)}\n  )\n}\n\nexport function validSchemaType(\n  schema: unknown,\n  schemaType: JSONType[],\n  allowUndefined = false\n): boolean {\n  // TODO add tests\n  return (\n    !schemaType.length ||\n    schemaType.some((st) =>\n      st === \"array\"\n        ? Array.isArray(schema)\n        : st === \"object\"\n        ? schema && typeof schema == \"object\" && !Array.isArray(schema)\n        : typeof schema == st || (allowUndefined && typeof schema == \"undefined\")\n    )\n  )\n}\n\nexport function validateKeywordUsage(\n  {schema, opts, self, errSchemaPath}: SchemaObjCxt,\n  def: AddedKeywordDefinition,\n  keyword: string\n): void {\n  /* istanbul ignore if */\n  if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {\n    throw new Error(\"ajv implementation error\")\n  }\n\n  const deps = def.dependencies\n  if (deps?.some((kwd) => !Object.prototype.hasOwnProperty.call(schema, kwd))) {\n    throw new Error(`parent schema must have dependencies of ${keyword}: ${deps.join(\",\")}`)\n  }\n\n  if (def.validateSchema) {\n    const valid = def.validateSchema(schema[keyword])\n    if (!valid) {\n      const msg =\n        `keyword \"${keyword}\" value is invalid at path \"${errSchemaPath}\": ` +\n        self.errorsText(def.validateSchema.errors)\n      if (opts.validateSchema === \"log\") self.logger.error(msg)\n      else throw new Error(msg)\n    }\n  }\n}\n","import type {AnySchema} from \"../../types\"\nimport type {SchemaObjCxt} from \"..\"\nimport {_, str, getProperty, Code, Name} from \"../codegen\"\nimport {escapeFragment, getErrorPath, Type} from \"../util\"\nimport type {JSONType} from \"../rules\"\n\nexport interface SubschemaContext {\n  // TODO use Optional? align with SchemCxt property types\n  schema: AnySchema\n  schemaPath: Code\n  errSchemaPath: string\n  topSchemaRef?: Code\n  errorPath?: Code\n  dataLevel?: number\n  dataTypes?: JSONType[]\n  data?: Name\n  parentData?: Name\n  parentDataProperty?: Code | number\n  dataNames?: Name[]\n  dataPathArr?: (Code | number)[]\n  propertyName?: Name\n  jtdDiscriminator?: string\n  jtdMetadata?: boolean\n  compositeRule?: true\n  createErrors?: boolean\n  allErrors?: boolean\n}\n\nexport type SubschemaArgs = Partial<{\n  keyword: string\n  schemaProp: string | number\n  schema: AnySchema\n  schemaPath: Code\n  errSchemaPath: string\n  topSchemaRef: Code\n  data: Name | Code\n  dataProp: Code | string | number\n  dataTypes: JSONType[]\n  definedProperties: Set<string>\n  propertyName: Name\n  dataPropType: Type\n  jtdDiscriminator: string\n  jtdMetadata: boolean\n  compositeRule: true\n  createErrors: boolean\n  allErrors: boolean\n}>\n\nexport function getSubschema(\n  it: SchemaObjCxt,\n  {keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef}: SubschemaArgs\n): SubschemaContext {\n  if (keyword !== undefined && schema !== undefined) {\n    throw new Error('both \"keyword\" and \"schema\" passed, only one allowed')\n  }\n\n  if (keyword !== undefined) {\n    const sch = it.schema[keyword]\n    return schemaProp === undefined\n      ? {\n          schema: sch,\n          schemaPath: _`${it.schemaPath}${getProperty(keyword)}`,\n          errSchemaPath: `${it.errSchemaPath}/${keyword}`,\n        }\n      : {\n          schema: sch[schemaProp],\n          schemaPath: _`${it.schemaPath}${getProperty(keyword)}${getProperty(schemaProp)}`,\n          errSchemaPath: `${it.errSchemaPath}/${keyword}/${escapeFragment(schemaProp)}`,\n        }\n  }\n\n  if (schema !== undefined) {\n    if (schemaPath === undefined || errSchemaPath === undefined || topSchemaRef === undefined) {\n      throw new Error('\"schemaPath\", \"errSchemaPath\" and \"topSchemaRef\" are required with \"schema\"')\n    }\n    return {\n      schema,\n      schemaPath,\n      topSchemaRef,\n      errSchemaPath,\n    }\n  }\n\n  throw new Error('either \"keyword\" or \"schema\" must be passed')\n}\n\nexport function extendSubschemaData(\n  subschema: SubschemaContext,\n  it: SchemaObjCxt,\n  {dataProp, dataPropType: dpType, data, dataTypes, propertyName}: SubschemaArgs\n): void {\n  if (data !== undefined && dataProp !== undefined) {\n    throw new Error('both \"data\" and \"dataProp\" passed, only one allowed')\n  }\n\n  const {gen} = it\n\n  if (dataProp !== undefined) {\n    const {errorPath, dataPathArr, opts} = it\n    const nextData = gen.let(\"data\", _`${it.data}${getProperty(dataProp)}`, true)\n    dataContextProps(nextData)\n    subschema.errorPath = str`${errorPath}${getErrorPath(dataProp, dpType, opts.jsPropertySyntax)}`\n    subschema.parentDataProperty = _`${dataProp}`\n    subschema.dataPathArr = [...dataPathArr, subschema.parentDataProperty]\n  }\n\n  if (data !== undefined) {\n    const nextData = data instanceof Name ? data : gen.let(\"data\", data, true) // replaceable if used once?\n    dataContextProps(nextData)\n    if (propertyName !== undefined) subschema.propertyName = propertyName\n    // TODO something is possibly wrong here with not changing parentDataProperty and not appending dataPathArr\n  }\n\n  if (dataTypes) subschema.dataTypes = dataTypes\n\n  function dataContextProps(_nextData: Name): void {\n    subschema.data = _nextData\n    subschema.dataLevel = it.dataLevel + 1\n    subschema.dataTypes = []\n    it.definedProperties = new Set<string>()\n    subschema.parentData = it.data\n    subschema.dataNames = [...it.dataNames, _nextData]\n  }\n}\n\nexport function extendSubschemaMode(\n  subschema: SubschemaContext,\n  {jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors}: SubschemaArgs\n): void {\n  if (compositeRule !== undefined) subschema.compositeRule = compositeRule\n  if (createErrors !== undefined) subschema.createErrors = createErrors\n  if (allErrors !== undefined) subschema.allErrors = allErrors\n  subschema.jtdDiscriminator = jtdDiscriminator // not inherited\n  subschema.jtdMetadata = jtdMetadata // not inherited\n}\n","'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n  if (a === b) return true;\n\n  if (a && b && typeof a == 'object' && typeof b == 'object') {\n    if (a.constructor !== b.constructor) return false;\n\n    var length, i, keys;\n    if (Array.isArray(a)) {\n      length = a.length;\n      if (length != b.length) return false;\n      for (i = length; i-- !== 0;)\n        if (!equal(a[i], b[i])) return false;\n      return true;\n    }\n\n\n\n    if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n    if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n    if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n    keys = Object.keys(a);\n    length = keys.length;\n    if (length !== Object.keys(b).length) return false;\n\n    for (i = length; i-- !== 0;)\n      if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n    for (i = length; i-- !== 0;) {\n      var key = keys[i];\n\n      if (!equal(a[key], b[key])) return false;\n    }\n\n    return true;\n  }\n\n  // true if both NaN, false otherwise\n  return a!==a && b!==b;\n};\n","'use strict';\n\nvar traverse = module.exports = function (schema, opts, cb) {\n  // Legacy support for v0.3.1 and earlier.\n  if (typeof opts == 'function') {\n    cb = opts;\n    opts = {};\n  }\n\n  cb = opts.cb || cb;\n  var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n  var post = cb.post || function() {};\n\n  _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n  additionalItems: true,\n  items: true,\n  contains: true,\n  additionalProperties: true,\n  propertyNames: true,\n  not: true,\n  if: true,\n  then: true,\n  else: true\n};\n\ntraverse.arrayKeywords = {\n  items: true,\n  allOf: true,\n  anyOf: true,\n  oneOf: true\n};\n\ntraverse.propsKeywords = {\n  $defs: true,\n  definitions: true,\n  properties: true,\n  patternProperties: true,\n  dependencies: true\n};\n\ntraverse.skipKeywords = {\n  default: true,\n  enum: true,\n  const: true,\n  required: true,\n  maximum: true,\n  minimum: true,\n  exclusiveMaximum: true,\n  exclusiveMinimum: true,\n  multipleOf: true,\n  maxLength: true,\n  minLength: true,\n  pattern: true,\n  format: true,\n  maxItems: true,\n  minItems: true,\n  uniqueItems: true,\n  maxProperties: true,\n  minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n  if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n    pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n    for (var key in schema) {\n      var sch = schema[key];\n      if (Array.isArray(sch)) {\n        if (key in traverse.arrayKeywords) {\n          for (var i=0; i<sch.length; i++)\n            _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);\n        }\n      } else if (key in traverse.propsKeywords) {\n        if (sch && typeof sch == 'object') {\n          for (var prop in sch)\n            _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);\n        }\n      } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {\n        _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);\n      }\n    }\n    post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n  }\n}\n\n\nfunction escapeJsonPtr(str) {\n  return str.replace(/~/g, '~0').replace(/\\//g, '~1');\n}\n","import type {AnySchema, AnySchemaObject, UriResolver} from \"../types\"\nimport type Ajv from \"../ajv\"\nimport type {URIComponent} from \"fast-uri\"\nimport {eachItem} from \"./util\"\nimport * as equal from \"fast-deep-equal\"\nimport * as traverse from \"json-schema-traverse\"\n\n// the hash of local references inside the schema (created by getSchemaRefs), used for inline resolution\nexport type LocalRefs = {[Ref in string]?: AnySchemaObject}\n\n// TODO refactor to use keyword definitions\nconst SIMPLE_INLINED = new Set([\n  \"type\",\n  \"format\",\n  \"pattern\",\n  \"maxLength\",\n  \"minLength\",\n  \"maxProperties\",\n  \"minProperties\",\n  \"maxItems\",\n  \"minItems\",\n  \"maximum\",\n  \"minimum\",\n  \"uniqueItems\",\n  \"multipleOf\",\n  \"required\",\n  \"enum\",\n  \"const\",\n])\n\nexport function inlineRef(schema: AnySchema, limit: boolean | number = true): boolean {\n  if (typeof schema == \"boolean\") return true\n  if (limit === true) return !hasRef(schema)\n  if (!limit) return false\n  return countKeys(schema) <= limit\n}\n\nconst REF_KEYWORDS = new Set([\n  \"$ref\",\n  \"$recursiveRef\",\n  \"$recursiveAnchor\",\n  \"$dynamicRef\",\n  \"$dynamicAnchor\",\n])\n\nfunction hasRef(schema: AnySchemaObject): boolean {\n  for (const key in schema) {\n    if (REF_KEYWORDS.has(key)) return true\n    const sch = schema[key]\n    if (Array.isArray(sch) && sch.some(hasRef)) return true\n    if (typeof sch == \"object\" && hasRef(sch)) return true\n  }\n  return false\n}\n\nfunction countKeys(schema: AnySchemaObject): number {\n  let count = 0\n  for (const key in schema) {\n    if (key === \"$ref\") return Infinity\n    count++\n    if (SIMPLE_INLINED.has(key)) continue\n    if (typeof schema[key] == \"object\") {\n      eachItem(schema[key], (sch) => (count += countKeys(sch)))\n    }\n    if (count === Infinity) return Infinity\n  }\n  return count\n}\n\nexport function getFullPath(resolver: UriResolver, id = \"\", normalize?: boolean): string {\n  if (normalize !== false) id = normalizeId(id)\n  const p = resolver.parse(id)\n  return _getFullPath(resolver, p)\n}\n\nexport function _getFullPath(resolver: UriResolver, p: URIComponent): string {\n  const serialized = resolver.serialize(p)\n  return serialized.split(\"#\")[0] + \"#\"\n}\n\nconst TRAILING_SLASH_HASH = /#\\/?$/\nexport function normalizeId(id: string | undefined): string {\n  return id ? id.replace(TRAILING_SLASH_HASH, \"\") : \"\"\n}\n\nexport function resolveUrl(resolver: UriResolver, baseId: string, id: string): string {\n  id = normalizeId(id)\n  return resolver.resolve(baseId, id)\n}\n\nconst ANCHOR = /^[a-z_][-a-z0-9._]*$/i\n\nexport function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs {\n  if (typeof schema == \"boolean\") return {}\n  const {schemaId, uriResolver} = this.opts\n  const schId = normalizeId(schema[schemaId] || baseId)\n  const baseIds: {[JsonPtr in string]?: string} = {\"\": schId}\n  const pathPrefix = getFullPath(uriResolver, schId, false)\n  const localRefs: LocalRefs = {}\n  const schemaRefs: Set<string> = new Set()\n\n  traverse(schema, {allKeys: true}, (sch, jsonPtr, _, parentJsonPtr) => {\n    if (parentJsonPtr === undefined) return\n    const fullPath = pathPrefix + jsonPtr\n    let innerBaseId = baseIds[parentJsonPtr]\n    if (typeof sch[schemaId] == \"string\") innerBaseId = addRef.call(this, sch[schemaId])\n    addAnchor.call(this, sch.$anchor)\n    addAnchor.call(this, sch.$dynamicAnchor)\n    baseIds[jsonPtr] = innerBaseId\n\n    function addRef(this: Ajv, ref: string): string {\n      // eslint-disable-next-line @typescript-eslint/unbound-method\n      const _resolve = this.opts.uriResolver.resolve\n      ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref)\n      if (schemaRefs.has(ref)) throw ambiguos(ref)\n      schemaRefs.add(ref)\n      let schOrRef = this.refs[ref]\n      if (typeof schOrRef == \"string\") schOrRef = this.refs[schOrRef]\n      if (typeof schOrRef == \"object\") {\n        checkAmbiguosRef(sch, schOrRef.schema, ref)\n      } else if (ref !== normalizeId(fullPath)) {\n        if (ref[0] === \"#\") {\n          checkAmbiguosRef(sch, localRefs[ref], ref)\n          localRefs[ref] = sch\n        } else {\n          this.refs[ref] = fullPath\n        }\n      }\n      return ref\n    }\n\n    function addAnchor(this: Ajv, anchor: unknown): void {\n      if (typeof anchor == \"string\") {\n        if (!ANCHOR.test(anchor)) throw new Error(`invalid anchor \"${anchor}\"`)\n        addRef.call(this, `#${anchor}`)\n      }\n    }\n  })\n\n  return localRefs\n\n  function checkAmbiguosRef(sch1: AnySchema, sch2: AnySchema | undefined, ref: string): void {\n    if (sch2 !== undefined && !equal(sch1, sch2)) throw ambiguos(ref)\n  }\n\n  function ambiguos(ref: string): Error {\n    return new Error(`reference \"${ref}\" resolves to more than one schema`)\n  }\n}\n","import type {\n  AddedKeywordDefinition,\n  AnySchema,\n  AnySchemaObject,\n  KeywordErrorCxt,\n  KeywordCxtParams,\n} from \"../../types\"\nimport type {SchemaCxt, SchemaObjCxt} from \"..\"\nimport type {InstanceOptions} from \"../../core\"\nimport {boolOrEmptySchema, topBoolOrEmptySchema} from \"./boolSchema\"\nimport {coerceAndCheckDataType, getSchemaTypes} from \"./dataType\"\nimport {shouldUseGroup, shouldUseRule} from \"./applicability\"\nimport {checkDataType, checkDataTypes, reportTypeError, DataType} from \"./dataType\"\nimport {assignDefaults} from \"./defaults\"\nimport {funcKeywordCode, macroKeywordCode, validateKeywordUsage, validSchemaType} from \"./keyword\"\nimport {getSubschema, extendSubschemaData, SubschemaArgs, extendSubschemaMode} from \"./subschema\"\nimport {_, nil, str, or, not, getProperty, Block, Code, Name, CodeGen} from \"../codegen\"\nimport N from \"../names\"\nimport {resolveUrl} from \"../resolve\"\nimport {\n  schemaRefOrVal,\n  schemaHasRulesButRef,\n  checkUnknownRules,\n  checkStrictMode,\n  unescapeJsonPointer,\n  mergeEvaluated,\n} from \"../util\"\nimport type {JSONType, Rule, RuleGroup} from \"../rules\"\nimport {\n  ErrorPaths,\n  reportError,\n  reportExtraError,\n  resetErrorsCount,\n  keyword$DataError,\n} from \"../errors\"\n\n// schema compilation - generates validation function, subschemaCode (below) is used for subschemas\nexport function validateFunctionCode(it: SchemaCxt): void {\n  if (isSchemaObj(it)) {\n    checkKeywords(it)\n    if (schemaCxtHasRules(it)) {\n      topSchemaObjCode(it)\n      return\n    }\n  }\n  validateFunction(it, () => topBoolOrEmptySchema(it))\n}\n\nfunction validateFunction(\n  {gen, validateName, schema, schemaEnv, opts}: SchemaCxt,\n  body: Block\n): void {\n  if (opts.code.es5) {\n    gen.func(validateName, _`${N.data}, ${N.valCxt}`, schemaEnv.$async, () => {\n      gen.code(_`\"use strict\"; ${funcSourceUrl(schema, opts)}`)\n      destructureValCxtES5(gen, opts)\n      gen.code(body)\n    })\n  } else {\n    gen.func(validateName, _`${N.data}, ${destructureValCxt(opts)}`, schemaEnv.$async, () =>\n      gen.code(funcSourceUrl(schema, opts)).code(body)\n    )\n  }\n}\n\nfunction destructureValCxt(opts: InstanceOptions): Code {\n  return _`{${N.instancePath}=\"\", ${N.parentData}, ${N.parentDataProperty}, ${N.rootData}=${\n    N.data\n  }${opts.dynamicRef ? _`, ${N.dynamicAnchors}={}` : nil}}={}`\n}\n\nfunction destructureValCxtES5(gen: CodeGen, opts: InstanceOptions): void {\n  gen.if(\n    N.valCxt,\n    () => {\n      gen.var(N.instancePath, _`${N.valCxt}.${N.instancePath}`)\n      gen.var(N.parentData, _`${N.valCxt}.${N.parentData}`)\n      gen.var(N.parentDataProperty, _`${N.valCxt}.${N.parentDataProperty}`)\n      gen.var(N.rootData, _`${N.valCxt}.${N.rootData}`)\n      if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`${N.valCxt}.${N.dynamicAnchors}`)\n    },\n    () => {\n      gen.var(N.instancePath, _`\"\"`)\n      gen.var(N.parentData, _`undefined`)\n      gen.var(N.parentDataProperty, _`undefined`)\n      gen.var(N.rootData, N.data)\n      if (opts.dynamicRef) gen.var(N.dynamicAnchors, _`{}`)\n    }\n  )\n}\n\nfunction topSchemaObjCode(it: SchemaObjCxt): void {\n  const {schema, opts, gen} = it\n  validateFunction(it, () => {\n    if (opts.$comment && schema.$comment) commentKeyword(it)\n    checkNoDefault(it)\n    gen.let(N.vErrors, null)\n    gen.let(N.errors, 0)\n    if (opts.unevaluated) resetEvaluated(it)\n    typeAndKeywords(it)\n    returnResults(it)\n  })\n  return\n}\n\nfunction resetEvaluated(it: SchemaObjCxt): void {\n  // TODO maybe some hook to execute it in the end to check whether props/items are Name, as in assignEvaluated\n  const {gen, validateName} = it\n  it.evaluated = gen.const(\"evaluated\", _`${validateName}.evaluated`)\n  gen.if(_`${it.evaluated}.dynamicProps`, () => gen.assign(_`${it.evaluated}.props`, _`undefined`))\n  gen.if(_`${it.evaluated}.dynamicItems`, () => gen.assign(_`${it.evaluated}.items`, _`undefined`))\n}\n\nfunction funcSourceUrl(schema: AnySchema, opts: InstanceOptions): Code {\n  const schId = typeof schema == \"object\" && schema[opts.schemaId]\n  return schId && (opts.code.source || opts.code.process) ? _`/*# sourceURL=${schId} */` : nil\n}\n\n// schema compilation - this function is used recursively to generate code for sub-schemas\nfunction subschemaCode(it: SchemaCxt, valid: Name): void {\n  if (isSchemaObj(it)) {\n    checkKeywords(it)\n    if (schemaCxtHasRules(it)) {\n      subSchemaObjCode(it, valid)\n      return\n    }\n  }\n  boolOrEmptySchema(it, valid)\n}\n\nfunction schemaCxtHasRules({schema, self}: SchemaCxt): boolean {\n  if (typeof schema == \"boolean\") return !schema\n  for (const key in schema) if (self.RULES.all[key]) return true\n  return false\n}\n\nfunction isSchemaObj(it: SchemaCxt): it is SchemaObjCxt {\n  return typeof it.schema != \"boolean\"\n}\n\nfunction subSchemaObjCode(it: SchemaObjCxt, valid: Name): void {\n  const {schema, gen, opts} = it\n  if (opts.$comment && schema.$comment) commentKeyword(it)\n  updateContext(it)\n  checkAsyncSchema(it)\n  const errsCount = gen.const(\"_errs\", N.errors)\n  typeAndKeywords(it, errsCount)\n  // TODO var\n  gen.var(valid, _`${errsCount} === ${N.errors}`)\n}\n\nfunction checkKeywords(it: SchemaObjCxt): void {\n  checkUnknownRules(it)\n  checkRefsAndKeywords(it)\n}\n\nfunction typeAndKeywords(it: SchemaObjCxt, errsCount?: Name): void {\n  if (it.opts.jtd) return schemaKeywords(it, [], false, errsCount)\n  const types = getSchemaTypes(it.schema)\n  const checkedTypes = coerceAndCheckDataType(it, types)\n  schemaKeywords(it, types, !checkedTypes, errsCount)\n}\n\nfunction checkRefsAndKeywords(it: SchemaObjCxt): void {\n  const {schema, errSchemaPath, opts, self} = it\n  if (schema.$ref && opts.ignoreKeywordsWithRef && schemaHasRulesButRef(schema, self.RULES)) {\n    self.logger.warn(`$ref: keywords ignored in schema at path \"${errSchemaPath}\"`)\n  }\n}\n\nfunction checkNoDefault(it: SchemaObjCxt): void {\n  const {schema, opts} = it\n  if (schema.default !== undefined && opts.useDefaults && opts.strictSchema) {\n    checkStrictMode(it, \"default is ignored in the schema root\")\n  }\n}\n\nfunction updateContext(it: SchemaObjCxt): void {\n  const schId = it.schema[it.opts.schemaId]\n  if (schId) it.baseId = resolveUrl(it.opts.uriResolver, it.baseId, schId)\n}\n\nfunction checkAsyncSchema(it: SchemaObjCxt): void {\n  if (it.schema.$async && !it.schemaEnv.$async) throw new Error(\"async schema in sync schema\")\n}\n\nfunction commentKeyword({gen, schemaEnv, schema, errSchemaPath, opts}: SchemaObjCxt): void {\n  const msg = schema.$comment\n  if (opts.$comment === true) {\n    gen.code(_`${N.self}.logger.log(${msg})`)\n  } else if (typeof opts.$comment == \"function\") {\n    const schemaPath = str`${errSchemaPath}/$comment`\n    const rootName = gen.scopeValue(\"root\", {ref: schemaEnv.root})\n    gen.code(_`${N.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`)\n  }\n}\n\nfunction returnResults(it: SchemaCxt): void {\n  const {gen, schemaEnv, validateName, ValidationError, opts} = it\n  if (schemaEnv.$async) {\n    // TODO assign unevaluated\n    gen.if(\n      _`${N.errors} === 0`,\n      () => gen.return(N.data),\n      () => gen.throw(_`new ${ValidationError as Name}(${N.vErrors})`)\n    )\n  } else {\n    gen.assign(_`${validateName}.errors`, N.vErrors)\n    if (opts.unevaluated) assignEvaluated(it)\n    gen.return(_`${N.errors} === 0`)\n  }\n}\n\nfunction assignEvaluated({gen, evaluated, props, items}: SchemaCxt): void {\n  if (props instanceof Name) gen.assign(_`${evaluated}.props`, props)\n  if (items instanceof Name) gen.assign(_`${evaluated}.items`, items)\n}\n\nfunction schemaKeywords(\n  it: SchemaObjCxt,\n  types: JSONType[],\n  typeErrors: boolean,\n  errsCount?: Name\n): void {\n  const {gen, schema, data, allErrors, opts, self} = it\n  const {RULES} = self\n  if (schema.$ref && (opts.ignoreKeywordsWithRef || !schemaHasRulesButRef(schema, RULES))) {\n    gen.block(() => keywordCode(it, \"$ref\", (RULES.all.$ref as Rule).definition)) // TODO typecast\n    return\n  }\n  if (!opts.jtd) checkStrictTypes(it, types)\n  gen.block(() => {\n    for (const group of RULES.rules) groupKeywords(group)\n    groupKeywords(RULES.post)\n  })\n\n  function groupKeywords(group: RuleGroup): void {\n    if (!shouldUseGroup(schema, group)) return\n    if (group.type) {\n      gen.if(checkDataType(group.type, data, opts.strictNumbers))\n      iterateKeywords(it, group)\n      if (types.length === 1 && types[0] === group.type && typeErrors) {\n        gen.else()\n        reportTypeError(it)\n      }\n      gen.endIf()\n    } else {\n      iterateKeywords(it, group)\n    }\n    // TODO make it \"ok\" call?\n    if (!allErrors) gen.if(_`${N.errors} === ${errsCount || 0}`)\n  }\n}\n\nfunction iterateKeywords(it: SchemaObjCxt, group: RuleGroup): void {\n  const {\n    gen,\n    schema,\n    opts: {useDefaults},\n  } = it\n  if (useDefaults) assignDefaults(it, group.type)\n  gen.block(() => {\n    for (const rule of group.rules) {\n      if (shouldUseRule(schema, rule)) {\n        keywordCode(it, rule.keyword, rule.definition, group.type)\n      }\n    }\n  })\n}\n\nfunction checkStrictTypes(it: SchemaObjCxt, types: JSONType[]): void {\n  if (it.schemaEnv.meta || !it.opts.strictTypes) return\n  checkContextTypes(it, types)\n  if (!it.opts.allowUnionTypes) checkMultipleTypes(it, types)\n  checkKeywordTypes(it, it.dataTypes)\n}\n\nfunction checkContextTypes(it: SchemaObjCxt, types: JSONType[]): void {\n  if (!types.length) return\n  if (!it.dataTypes.length) {\n    it.dataTypes = types\n    return\n  }\n  types.forEach((t) => {\n    if (!includesType(it.dataTypes, t)) {\n      strictTypesError(it, `type \"${t}\" not allowed by context \"${it.dataTypes.join(\",\")}\"`)\n    }\n  })\n  narrowSchemaTypes(it, types)\n}\n\nfunction checkMultipleTypes(it: SchemaObjCxt, ts: JSONType[]): void {\n  if (ts.length > 1 && !(ts.length === 2 && ts.includes(\"null\"))) {\n    strictTypesError(it, \"use allowUnionTypes to allow union type keyword\")\n  }\n}\n\nfunction checkKeywordTypes(it: SchemaObjCxt, ts: JSONType[]): void {\n  const rules = it.self.RULES.all\n  for (const keyword in rules) {\n    const rule = rules[keyword]\n    if (typeof rule == \"object\" && shouldUseRule(it.schema, rule)) {\n      const {type} = rule.definition\n      if (type.length && !type.some((t) => hasApplicableType(ts, t))) {\n        strictTypesError(it, `missing type \"${type.join(\",\")}\" for keyword \"${keyword}\"`)\n      }\n    }\n  }\n}\n\nfunction hasApplicableType(schTs: JSONType[], kwdT: JSONType): boolean {\n  return schTs.includes(kwdT) || (kwdT === \"number\" && schTs.includes(\"integer\"))\n}\n\nfunction includesType(ts: JSONType[], t: JSONType): boolean {\n  return ts.includes(t) || (t === \"integer\" && ts.includes(\"number\"))\n}\n\nfunction narrowSchemaTypes(it: SchemaObjCxt, withTypes: JSONType[]): void {\n  const ts: JSONType[] = []\n  for (const t of it.dataTypes) {\n    if (includesType(withTypes, t)) ts.push(t)\n    else if (withTypes.includes(\"integer\") && t === \"number\") ts.push(\"integer\")\n  }\n  it.dataTypes = ts\n}\n\nfunction strictTypesError(it: SchemaObjCxt, msg: string): void {\n  const schemaPath = it.schemaEnv.baseId + it.errSchemaPath\n  msg += ` at \"${schemaPath}\" (strictTypes)`\n  checkStrictMode(it, msg, it.opts.strictTypes)\n}\n\nexport class KeywordCxt implements KeywordErrorCxt {\n  readonly gen: CodeGen\n  readonly allErrors?: boolean\n  readonly keyword: string\n  readonly data: Name // Name referencing the current level of the data instance\n  readonly $data?: string | false\n  schema: any // keyword value in the schema\n  readonly schemaValue: Code | number | boolean // Code reference to keyword schema value or primitive value\n  readonly schemaCode: Code | number | boolean // Code reference to resolved schema value (different if schema is $data)\n  readonly schemaType: JSONType[] // allowed type(s) of keyword value in the schema\n  readonly parentSchema: AnySchemaObject\n  readonly errsCount?: Name // Name reference to the number of validation errors collected before this keyword,\n  // requires option trackErrors in keyword definition\n  params: KeywordCxtParams // object to pass parameters to error messages from keyword code\n  readonly it: SchemaObjCxt // schema compilation context (schema is guaranteed to be an object, not boolean)\n  readonly def: AddedKeywordDefinition\n\n  constructor(it: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string) {\n    validateKeywordUsage(it, def, keyword)\n    this.gen = it.gen\n    this.allErrors = it.allErrors\n    this.keyword = keyword\n    this.data = it.data\n    this.schema = it.schema[keyword]\n    this.$data = def.$data && it.opts.$data && this.schema && this.schema.$data\n    this.schemaValue = schemaRefOrVal(it, this.schema, keyword, this.$data)\n    this.schemaType = def.schemaType\n    this.parentSchema = it.schema\n    this.params = {}\n    this.it = it\n    this.def = def\n\n    if (this.$data) {\n      this.schemaCode = it.gen.const(\"vSchema\", getData(this.$data, it))\n    } else {\n      this.schemaCode = this.schemaValue\n      if (!validSchemaType(this.schema, def.schemaType, def.allowUndefined)) {\n        throw new Error(`${keyword} value must be ${JSON.stringify(def.schemaType)}`)\n      }\n    }\n\n    if (\"code\" in def ? def.trackErrors : def.errors !== false) {\n      this.errsCount = it.gen.const(\"_errs\", N.errors)\n    }\n  }\n\n  result(condition: Code, successAction?: () => void, failAction?: () => void): void {\n    this.failResult(not(condition), successAction, failAction)\n  }\n\n  failResult(condition: Code, successAction?: () => void, failAction?: () => void): void {\n    this.gen.if(condition)\n    if (failAction) failAction()\n    else this.error()\n    if (successAction) {\n      this.gen.else()\n      successAction()\n      if (this.allErrors) this.gen.endIf()\n    } else {\n      if (this.allErrors) this.gen.endIf()\n      else this.gen.else()\n    }\n  }\n\n  pass(condition: Code, failAction?: () => void): void {\n    this.failResult(not(condition), undefined, failAction)\n  }\n\n  fail(condition?: Code): void {\n    if (condition === undefined) {\n      this.error()\n      if (!this.allErrors) this.gen.if(false) // this branch will be removed by gen.optimize\n      return\n    }\n    this.gen.if(condition)\n    this.error()\n    if (this.allErrors) this.gen.endIf()\n    else this.gen.else()\n  }\n\n  fail$data(condition: Code): void {\n    if (!this.$data) return this.fail(condition)\n    const {schemaCode} = this\n    this.fail(_`${schemaCode} !== undefined && (${or(this.invalid$data(), condition)})`)\n  }\n\n  error(append?: boolean, errorParams?: KeywordCxtParams, errorPaths?: ErrorPaths): void {\n    if (errorParams) {\n      this.setParams(errorParams)\n      this._error(append, errorPaths)\n      this.setParams({})\n      return\n    }\n    this._error(append, errorPaths)\n  }\n\n  private _error(append?: boolean, errorPaths?: ErrorPaths): void {\n    ;(append ? reportExtraError : reportError)(this, this.def.error, errorPaths)\n  }\n\n  $dataError(): void {\n    reportError(this, this.def.$dataError || keyword$DataError)\n  }\n\n  reset(): void {\n    if (this.errsCount === undefined) throw new Error('add \"trackErrors\" to keyword definition')\n    resetErrorsCount(this.gen, this.errsCount)\n  }\n\n  ok(cond: Code | boolean): void {\n    if (!this.allErrors) this.gen.if(cond)\n  }\n\n  setParams(obj: KeywordCxtParams, assign?: true): void {\n    if (assign) Object.assign(this.params, obj)\n    else this.params = obj\n  }\n\n  block$data(valid: Name, codeBlock: () => void, $dataValid: Code = nil): void {\n    this.gen.block(() => {\n      this.check$data(valid, $dataValid)\n      codeBlock()\n    })\n  }\n\n  check$data(valid: Name = nil, $dataValid: Code = nil): void {\n    if (!this.$data) return\n    const {gen, schemaCode, schemaType, def} = this\n    gen.if(or(_`${schemaCode} === undefined`, $dataValid))\n    if (valid !== nil) gen.assign(valid, true)\n    if (schemaType.length || def.validateSchema) {\n      gen.elseIf(this.invalid$data())\n      this.$dataError()\n      if (valid !== nil) gen.assign(valid, false)\n    }\n    gen.else()\n  }\n\n  invalid$data(): Code {\n    const {gen, schemaCode, schemaType, def, it} = this\n    return or(wrong$DataType(), invalid$DataSchema())\n\n    function wrong$DataType(): Code {\n      if (schemaType.length) {\n        /* istanbul ignore if */\n        if (!(schemaCode instanceof Name)) throw new Error(\"ajv implementation error\")\n        const st = Array.isArray(schemaType) ? schemaType : [schemaType]\n        return _`${checkDataTypes(st, schemaCode, it.opts.strictNumbers, DataType.Wrong)}`\n      }\n      return nil\n    }\n\n    function invalid$DataSchema(): Code {\n      if (def.validateSchema) {\n        const validateSchemaRef = gen.scopeValue(\"validate$data\", {ref: def.validateSchema}) // TODO value.code for standalone\n        return _`!${validateSchemaRef}(${schemaCode})`\n      }\n      return nil\n    }\n  }\n\n  subschema(appl: SubschemaArgs, valid: Name): SchemaCxt {\n    const subschema = getSubschema(this.it, appl)\n    extendSubschemaData(subschema, this.it, appl)\n    extendSubschemaMode(subschema, appl)\n    const nextContext = {...this.it, ...subschema, items: undefined, props: undefined}\n    subschemaCode(nextContext, valid)\n    return nextContext\n  }\n\n  mergeEvaluated(schemaCxt: SchemaCxt, toName?: typeof Name): void {\n    const {it, gen} = this\n    if (!it.opts.unevaluated) return\n    if (it.props !== true && schemaCxt.props !== undefined) {\n      it.props = mergeEvaluated.props(gen, schemaCxt.props, it.props, toName)\n    }\n    if (it.items !== true && schemaCxt.items !== undefined) {\n      it.items = mergeEvaluated.items(gen, schemaCxt.items, it.items, toName)\n    }\n  }\n\n  mergeValidEvaluated(schemaCxt: SchemaCxt, valid: Name): boolean | void {\n    const {it, gen} = this\n    if (it.opts.unevaluated && (it.props !== true || it.items !== true)) {\n      gen.if(valid, () => this.mergeEvaluated(schemaCxt, Name))\n      return true\n    }\n  }\n}\n\nfunction keywordCode(\n  it: SchemaObjCxt,\n  keyword: string,\n  def: AddedKeywordDefinition,\n  ruleType?: JSONType\n): void {\n  const cxt = new KeywordCxt(it, def, keyword)\n  if (\"code\" in def) {\n    def.code(cxt, ruleType)\n  } else if (cxt.$data && def.validate) {\n    funcKeywordCode(cxt, def)\n  } else if (\"macro\" in def) {\n    macroKeywordCode(cxt, def)\n  } else if (def.compile || def.validate) {\n    funcKeywordCode(cxt, def)\n  }\n}\n\nconst JSON_POINTER = /^\\/(?:[^~]|~0|~1)*$/\nconst RELATIVE_JSON_POINTER = /^([0-9]+)(#|\\/(?:[^~]|~0|~1)*)?$/\nexport function getData(\n  $data: string,\n  {dataLevel, dataNames, dataPathArr}: SchemaCxt\n): Code | number {\n  let jsonPointer\n  let data: Code\n  if ($data === \"\") return N.rootData\n  if ($data[0] === \"/\") {\n    if (!JSON_POINTER.test($data)) throw new Error(`Invalid JSON-pointer: ${$data}`)\n    jsonPointer = $data\n    data = N.rootData\n  } else {\n    const matches = RELATIVE_JSON_POINTER.exec($data)\n    if (!matches) throw new Error(`Invalid JSON-pointer: ${$data}`)\n    const up: number = +matches[1]\n    jsonPointer = matches[2]\n    if (jsonPointer === \"#\") {\n      if (up >= dataLevel) throw new Error(errorMsg(\"property/index\", up))\n      return dataPathArr[dataLevel - up]\n    }\n    if (up > dataLevel) throw new Error(errorMsg(\"data\", up))\n    data = dataNames[dataLevel - up]\n    if (!jsonPointer) return data\n  }\n\n  let expr = data\n  const segments = jsonPointer.split(\"/\")\n  for (const segment of segments) {\n    if (segment) {\n      data = _`${data}${getProperty(unescapeJsonPointer(segment))}`\n      expr = _`${expr} && ${data}`\n    }\n  }\n  return expr\n\n  function errorMsg(pointerType: string, up: number): string {\n    return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`\n  }\n}\n","import type {ErrorObject} from \"../types\"\n\nexport default class ValidationError extends Error {\n  readonly errors: Partial<ErrorObject>[]\n  readonly ajv: true\n  readonly validation: true\n\n  constructor(errors: Partial<ErrorObject>[]) {\n    super(\"validation failed\")\n    this.errors = errors\n    this.ajv = this.validation = true\n  }\n}\n","import {resolveUrl, normalizeId, getFullPath} from \"./resolve\"\nimport type {UriResolver} from \"../types\"\n\nexport default class MissingRefError extends Error {\n  readonly missingRef: string\n  readonly missingSchema: string\n\n  constructor(resolver: UriResolver, baseId: string, ref: string, msg?: string) {\n    super(msg || `can't resolve reference ${ref} from id ${baseId}`)\n    this.missingRef = resolveUrl(resolver, baseId, ref)\n    this.missingSchema = normalizeId(getFullPath(resolver, this.missingRef))\n  }\n}\n","import type {\n  AnySchema,\n  AnySchemaObject,\n  AnyValidateFunction,\n  AsyncValidateFunction,\n  EvaluatedProperties,\n  EvaluatedItems,\n} from \"../types\"\nimport type Ajv from \"../core\"\nimport type {InstanceOptions} from \"../core\"\nimport {CodeGen, _, nil, stringify, Name, Code, ValueScopeName} from \"./codegen\"\nimport ValidationError from \"../runtime/validation_error\"\nimport N from \"./names\"\nimport {LocalRefs, getFullPath, _getFullPath, inlineRef, normalizeId, resolveUrl} from \"./resolve\"\nimport {schemaHasRulesButRef, unescapeFragment} from \"./util\"\nimport {validateFunctionCode} from \"./validate\"\nimport {URIComponent} from \"fast-uri\"\nimport {JSONType} from \"./rules\"\n\nexport type SchemaRefs = {\n  [Ref in string]?: SchemaEnv | AnySchema\n}\n\nexport interface SchemaCxt {\n  readonly gen: CodeGen\n  readonly allErrors?: boolean // validation mode - whether to collect all errors or break on error\n  readonly data: Name // Name with reference to the current part of data instance\n  readonly parentData: Name // should be used in keywords modifying data\n  readonly parentDataProperty: Code | number // should be used in keywords modifying data\n  readonly dataNames: Name[]\n  readonly dataPathArr: (Code | number)[]\n  readonly dataLevel: number // the level of the currently validated data,\n  // it can be used to access both the property names and the data on all levels from the top.\n  dataTypes: JSONType[] // data types applied to the current part of data instance\n  definedProperties: Set<string> // set of properties to keep track of for required checks\n  readonly topSchemaRef: Code\n  readonly validateName: Name\n  evaluated?: Name\n  readonly ValidationError?: Name\n  readonly schema: AnySchema // current schema object - equal to parentSchema passed via KeywordCxt\n  readonly schemaEnv: SchemaEnv\n  readonly rootId: string\n  baseId: string // the current schema base URI that should be used as the base for resolving URIs in references (\\$ref)\n  readonly schemaPath: Code // the run-time expression that evaluates to the property name of the current schema\n  readonly errSchemaPath: string // this is actual string, should not be changed to Code\n  readonly errorPath: Code\n  readonly propertyName?: Name\n  readonly compositeRule?: boolean // true indicates that the current schema is inside the compound keyword,\n  // where failing some rule doesn't mean validation failure (`anyOf`, `oneOf`, `not`, `if`).\n  // This flag is used to determine whether you can return validation result immediately after any error in case the option `allErrors` is not `true.\n  // You only need to use it if you have many steps in your keywords and potentially can define multiple errors.\n  props?: EvaluatedProperties | Name // properties evaluated by this schema - used by parent schema or assigned to validation function\n  items?: EvaluatedItems | Name // last item evaluated by this schema - used by parent schema or assigned to validation function\n  jtdDiscriminator?: string\n  jtdMetadata?: boolean\n  readonly createErrors?: boolean\n  readonly opts: InstanceOptions // Ajv instance option.\n  readonly self: Ajv // current Ajv instance\n}\n\nexport interface SchemaObjCxt extends SchemaCxt {\n  readonly schema: AnySchemaObject\n}\ninterface SchemaEnvArgs {\n  readonly schema: AnySchema\n  readonly schemaId?: \"$id\" | \"id\"\n  readonly root?: SchemaEnv\n  readonly baseId?: string\n  readonly schemaPath?: string\n  readonly localRefs?: LocalRefs\n  readonly meta?: boolean\n}\n\nexport class SchemaEnv implements SchemaEnvArgs {\n  readonly schema: AnySchema\n  readonly schemaId?: \"$id\" | \"id\"\n  readonly root: SchemaEnv\n  baseId: string // TODO possibly, it should be readonly\n  schemaPath?: string\n  localRefs?: LocalRefs\n  readonly meta?: boolean\n  readonly $async?: boolean // true if the current schema is asynchronous.\n  readonly refs: SchemaRefs = {}\n  readonly dynamicAnchors: {[Ref in string]?: true} = {}\n  validate?: AnyValidateFunction\n  validateName?: ValueScopeName\n  serialize?: (data: unknown) => string\n  serializeName?: ValueScopeName\n  parse?: (data: string) => unknown\n  parseName?: ValueScopeName\n\n  constructor(env: SchemaEnvArgs) {\n    let schema: AnySchemaObject | undefined\n    if (typeof env.schema == \"object\") schema = env.schema\n    this.schema = env.schema\n    this.schemaId = env.schemaId\n    this.root = env.root || this\n    this.baseId = env.baseId ?? normalizeId(schema?.[env.schemaId || \"$id\"])\n    this.schemaPath = env.schemaPath\n    this.localRefs = env.localRefs\n    this.meta = env.meta\n    this.$async = schema?.$async\n    this.refs = {}\n  }\n}\n\n// let codeSize = 0\n// let nodeCount = 0\n\n// Compiles schema in SchemaEnv\nexport function compileSchema(this: Ajv, sch: SchemaEnv): SchemaEnv {\n  // TODO refactor - remove compilations\n  const _sch = getCompilingSchema.call(this, sch)\n  if (_sch) return _sch\n  const rootId = getFullPath(this.opts.uriResolver, sch.root.baseId) // TODO if getFullPath removed 1 tests fails\n  const {es5, lines} = this.opts.code\n  const {ownProperties} = this.opts\n  const gen = new CodeGen(this.scope, {es5, lines, ownProperties})\n  let _ValidationError\n  if (sch.$async) {\n    _ValidationError = gen.scopeValue(\"Error\", {\n      ref: ValidationError,\n      code: _`require(\"ajv/dist/runtime/validation_error\").default`,\n    })\n  }\n\n  const validateName = gen.scopeName(\"validate\")\n  sch.validateName = validateName\n\n  const schemaCxt: SchemaCxt = {\n    gen,\n    allErrors: this.opts.allErrors,\n    data: N.data,\n    parentData: N.parentData,\n    parentDataProperty: N.parentDataProperty,\n    dataNames: [N.data],\n    dataPathArr: [nil], // TODO can its length be used as dataLevel if nil is removed?\n    dataLevel: 0,\n    dataTypes: [],\n    definedProperties: new Set<string>(),\n    topSchemaRef: gen.scopeValue(\n      \"schema\",\n      this.opts.code.source === true\n        ? {ref: sch.schema, code: stringify(sch.schema)}\n        : {ref: sch.schema}\n    ),\n    validateName,\n    ValidationError: _ValidationError,\n    schema: sch.schema,\n    schemaEnv: sch,\n    rootId,\n    baseId: sch.baseId || rootId,\n    schemaPath: nil,\n    errSchemaPath: sch.schemaPath || (this.opts.jtd ? \"\" : \"#\"),\n    errorPath: _`\"\"`,\n    opts: this.opts,\n    self: this,\n  }\n\n  let sourceCode: string | undefined\n  try {\n    this._compilations.add(sch)\n    validateFunctionCode(schemaCxt)\n    gen.optimize(this.opts.code.optimize)\n    // gen.optimize(1)\n    const validateCode = gen.toString()\n    sourceCode = `${gen.scopeRefs(N.scope)}return ${validateCode}`\n    // console.log((codeSize += sourceCode.length), (nodeCount += gen.nodeCount))\n    if (this.opts.code.process) sourceCode = this.opts.code.process(sourceCode, sch)\n    // console.log(\"\\n\\n\\n *** \\n\", sourceCode)\n    const makeValidate = new Function(`${N.self}`, `${N.scope}`, sourceCode)\n    const validate: AnyValidateFunction = makeValidate(this, this.scope.get())\n    this.scope.value(validateName, {ref: validate})\n\n    validate.errors = null\n    validate.schema = sch.schema\n    validate.schemaEnv = sch\n    if (sch.$async) (validate as AsyncValidateFunction).$async = true\n    if (this.opts.code.source === true) {\n      validate.source = {validateName, validateCode, scopeValues: gen._values}\n    }\n    if (this.opts.unevaluated) {\n      const {props, items} = schemaCxt\n      validate.evaluated = {\n        props: props instanceof Name ? undefined : props,\n        items: items instanceof Name ? undefined : items,\n        dynamicProps: props instanceof Name,\n        dynamicItems: items instanceof Name,\n      }\n      if (validate.source) validate.source.evaluated = stringify(validate.evaluated)\n    }\n    sch.validate = validate\n    return sch\n  } catch (e) {\n    delete sch.validate\n    delete sch.validateName\n    if (sourceCode) this.logger.error(\"Error compiling schema, function code:\", sourceCode)\n    // console.log(\"\\n\\n\\n *** \\n\", sourceCode, this.opts)\n    throw e\n  } finally {\n    this._compilations.delete(sch)\n  }\n}\n\nexport function resolveRef(\n  this: Ajv,\n  root: SchemaEnv,\n  baseId: string,\n  ref: string\n): AnySchema | SchemaEnv | undefined {\n  ref = resolveUrl(this.opts.uriResolver, baseId, ref)\n  const schOrFunc = root.refs[ref]\n  if (schOrFunc) return schOrFunc\n\n  let _sch = resolve.call(this, root, ref)\n  if (_sch === undefined) {\n    const schema = root.localRefs?.[ref] // TODO maybe localRefs should hold SchemaEnv\n    const {schemaId} = this.opts\n    if (schema) _sch = new SchemaEnv({schema, schemaId, root, baseId})\n  }\n\n  if (_sch === undefined) return\n  return (root.refs[ref] = inlineOrCompile.call(this, _sch))\n}\n\nfunction inlineOrCompile(this: Ajv, sch: SchemaEnv): AnySchema | SchemaEnv {\n  if (inlineRef(sch.schema, this.opts.inlineRefs)) return sch.schema\n  return sch.validate ? sch : compileSchema.call(this, sch)\n}\n\n// Index of schema compilation in the currently compiled list\nexport function getCompilingSchema(this: Ajv, schEnv: SchemaEnv): SchemaEnv | void {\n  for (const sch of this._compilations) {\n    if (sameSchemaEnv(sch, schEnv)) return sch\n  }\n}\n\nfunction sameSchemaEnv(s1: SchemaEnv, s2: SchemaEnv): boolean {\n  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId\n}\n\n// resolve and compile the references ($ref)\n// TODO returns AnySchemaObject (if the schema can be inlined) or validation function\nfunction resolve(\n  this: Ajv,\n  root: SchemaEnv, // information about the root schema for the current schema\n  ref: string // reference to resolve\n): SchemaEnv | undefined {\n  let sch\n  while (typeof (sch = this.refs[ref]) == \"string\") ref = sch\n  return sch || this.schemas[ref] || resolveSchema.call(this, root, ref)\n}\n\n// Resolve schema, its root and baseId\nexport function resolveSchema(\n  this: Ajv,\n  root: SchemaEnv, // root object with properties schema, refs TODO below SchemaEnv is assigned to it\n  ref: string // reference to resolve\n): SchemaEnv | undefined {\n  const p = this.opts.uriResolver.parse(ref)\n  const refPath = _getFullPath(this.opts.uriResolver, p)\n  let baseId = getFullPath(this.opts.uriResolver, root.baseId, undefined)\n  // TODO `Object.keys(root.schema).length > 0` should not be needed - but removing breaks 2 tests\n  if (Object.keys(root.schema).length > 0 && refPath === baseId) {\n    return getJsonPointer.call(this, p, root)\n  }\n\n  const id = normalizeId(refPath)\n  const schOrRef = this.refs[id] || this.schemas[id]\n  if (typeof schOrRef == \"string\") {\n    const sch = resolveSchema.call(this, root, schOrRef)\n    if (typeof sch?.schema !== \"object\") return\n    return getJsonPointer.call(this, p, sch)\n  }\n\n  if (typeof schOrRef?.schema !== \"object\") return\n  if (!schOrRef.validate) compileSchema.call(this, schOrRef)\n  if (id === normalizeId(ref)) {\n    const {schema} = schOrRef\n    const {schemaId} = this.opts\n    const schId = schema[schemaId]\n    if (schId) baseId = resolveUrl(this.opts.uriResolver, baseId, schId)\n    return new SchemaEnv({schema, schemaId, root, baseId})\n  }\n  return getJsonPointer.call(this, p, schOrRef)\n}\n\nconst PREVENT_SCOPE_CHANGE = new Set([\n  \"properties\",\n  \"patternProperties\",\n  \"enum\",\n  \"dependencies\",\n  \"definitions\",\n])\n\nfunction getJsonPointer(\n  this: Ajv,\n  parsedRef: URIComponent,\n  {baseId, schema, root}: SchemaEnv\n): SchemaEnv | undefined {\n  if (parsedRef.fragment?.[0] !== \"/\") return\n  for (const part of parsedRef.fragment.slice(1).split(\"/\")) {\n    if (typeof schema === \"boolean\") return\n    const partSchema = schema[unescapeFragment(part)]\n    if (partSchema === undefined) return\n    schema = partSchema\n    // TODO PREVENT_SCOPE_CHANGE could be defined in keyword def?\n    const schId = typeof schema === \"object\" && schema[this.opts.schemaId]\n    if (!PREVENT_SCOPE_CHANGE.has(part) && schId) {\n      baseId = resolveUrl(this.opts.uriResolver, baseId, schId)\n    }\n  }\n  let env: SchemaEnv | undefined\n  if (typeof schema != \"boolean\" && schema.$ref && !schemaHasRulesButRef(schema, this.RULES)) {\n    const $ref = resolveUrl(this.opts.uriResolver, baseId, schema.$ref)\n    env = resolveSchema.call(this, root, $ref)\n  }\n  // even though resolution failed we need to return SchemaEnv to throw exception\n  // so that compileAsync loads missing schema.\n  const {schemaId} = this.opts\n  env = env || new SchemaEnv({schema, schemaId, root, baseId})\n  if (env.schema !== env.root.schema) return env\n  return undefined\n}\n","{\n  \"$id\": \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n  \"description\": \"Meta-schema for $data reference (JSON AnySchema extension proposal)\",\n  \"type\": \"object\",\n  \"required\": [\"$data\"],\n  \"properties\": {\n    \"$data\": {\n      \"type\": \"string\",\n      \"anyOf\": [{\"format\": \"relative-json-pointer\"}, {\"format\": \"json-pointer\"}]\n    }\n  },\n  \"additionalProperties\": false\n}\n","'use strict'\n\n/** @type {(value: string) => boolean} */\nconst isUUID = RegExp.prototype.test.bind(/^[\\da-f]{8}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{4}-[\\da-f]{12}$/iu)\n\n/** @type {(value: string) => boolean} */\nconst isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)$/u)\n\n/** @type {(value: string) => boolean} */\nconst isPort = RegExp.prototype.test.bind(/^\\d*$/u)\n\n/** @type {(value: string) => boolean} */\nconst isHexPair = RegExp.prototype.test.bind(/^[\\da-f]{2}$/iu)\n\n/** @type {(value: string) => boolean} */\nconst isUnreserved = RegExp.prototype.test.bind(/^[\\da-z\\-._~]$/iu)\n\n/** @type {(value: string) => boolean} */\nconst isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\\-._~!$&'()*+,;=:@/]$/u)\n\n/** @type {(value: string) => boolean} */\nconst isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]$/u)\n\n/** @type {(value: string) => boolean} */\nconst isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\\-._~!$&'()*+,;=:]$/u)\n\nconst BYTE_HEX = new Array(256)\n{\n  const HEX_DIGITS = '0123456789ABCDEF'\n  for (let i = 0; i < 256; i++) {\n    BYTE_HEX[i] = '%' + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 0xF]\n  }\n}\nfunction percentEncodeNonAscii (cp) {\n  if (cp < 0x800) {\n    return BYTE_HEX[0xC0 | (cp >> 6)] +\n           BYTE_HEX[0x80 | (cp & 0x3F)]\n  }\n  if (cp < 0x10000) {\n    return BYTE_HEX[0xE0 | (cp >> 12)] +\n           BYTE_HEX[0x80 | ((cp >> 6) & 0x3F)] +\n           BYTE_HEX[0x80 | (cp & 0x3F)]\n  }\n  return BYTE_HEX[0xF0 | (cp >> 18)] +\n         BYTE_HEX[0x80 | ((cp >> 12) & 0x3F)] +\n         BYTE_HEX[0x80 | ((cp >> 6) & 0x3F)] +\n         BYTE_HEX[0x80 | (cp & 0x3F)]\n}\n\n/**\n * @param {Array<string>} input\n * @returns {string}\n */\nfunction stringArrayToHexStripped (input) {\n  let acc = ''\n  let code = 0\n  let i = 0\n\n  for (i = 0; i < input.length; i++) {\n    code = input[i].charCodeAt(0)\n    if (code === 48) {\n      continue\n    }\n    if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {\n      return ''\n    }\n    acc += input[i]\n    break\n  }\n\n  for (i += 1; i < input.length; i++) {\n    code = input[i].charCodeAt(0)\n    if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {\n      return ''\n    }\n    acc += input[i]\n  }\n  return acc\n}\n\n/** @type {(value: string) => boolean} */\nconst isHextet = RegExp.prototype.test.bind(/^[\\dA-Fa-f]{1,4}$/)\n\n/** @type {(value: string) => boolean} */\nconst isIPvFuture = RegExp.prototype.test.bind(/^[vV][\\dA-Fa-f]+\\.[A-Za-z\\d\\-._~!$&'()*+,;=:]+$/)\n\n/** @type {(value: string) => boolean} */\nconst isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\\d\\-._~]$/)\n\n/**\n * @param {string} value\n * @returns {boolean}\n */\nconst nonSimpleDomain = RegExp.prototype.test.bind(/[^!\"$&'()*+,\\-.;=_`a-z{}~]/u)\n\n/**\n * @param {string} zone\n * @returns {boolean}\n */\nfunction isZoneIdentifier (zone) {\n  if (zone.length === 0) return false\n\n  for (let i = 0; i < zone.length; i++) {\n    if (isZoneCharacter(zone[i])) continue\n    if (zone[i] === '%' && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {\n      i += 2\n      continue\n    }\n    return false\n  }\n\n  return true\n}\n\n/**\n * Compresses the longest run of zero hextets to \"::\" per RFC 5952. A run of a\n * single zero hextet is left uncompressed. On ties the leftmost run wins.\n *\n * @param {string[]} hextets\n * @returns {string}\n */\nfunction compressIPv6ZeroRun (hextets) {\n  let bestStart = -1\n  let bestLength = 0\n  let runStart = -1\n  let runLength = 0\n  for (let i = 0; i < hextets.length; i++) {\n    if (hextets[i] === '0') {\n      if (runStart === -1) runStart = i\n      runLength++\n      if (runLength > bestLength) {\n        bestLength = runLength\n        bestStart = runStart\n      }\n    } else {\n      runStart = -1\n      runLength = 0\n    }\n  }\n\n  if (bestLength < 2) return hextets.join(':')\n\n  const head = hextets.slice(0, bestStart).join(':')\n  const tail = hextets.slice(bestStart + bestLength).join(':')\n  return head + '::' + tail\n}\n\n/**\n * Validates an IPv6 address against the alternatives in RFC 3986 section\n * 3.2.2 and returns the same address with leading hextet zeroes removed.\n * An embedded IPv4 address counts as two hextets and is only valid at the end.\n *\n * @param {string} input\n * @returns {string|undefined}\n */\nfunction normalizeIPv6Address (input) {\n  const compression = input.indexOf('::')\n  if (compression !== -1 && input.indexOf('::', compression + 1) !== -1) return undefined\n\n  const left = compression === -1 ? input.split(':') : input.slice(0, compression).split(':')\n  const right = compression === -1 ? [] : input.slice(compression + 2).split(':')\n  if (compression !== -1) {\n    if (left.length === 1 && left[0] === '') left.length = 0\n    if (right.length === 1 && right[0] === '') right.length = 0\n  }\n\n  const parts = left.concat(right)\n  let hextetCount = 0\n  for (let i = 0; i < parts.length; i++) {\n    const part = parts[i]\n    if (part === '') return undefined\n\n    if (part.indexOf('.') !== -1) {\n      if (i !== parts.length - 1 || (compression !== -1 && right.length === 0) || !isIPv4(part)) return undefined\n      hextetCount += 2\n      continue\n    }\n\n    if (!isHextet(part)) return undefined\n    parts[i] = parseInt(part, 16).toString(16)\n    hextetCount++\n  }\n\n  if (compression === -1) {\n    if (hextetCount !== 8) return undefined\n    return compressIPv6ZeroRun(parts)\n  }\n  if (hextetCount >= 8) return undefined\n\n  // expand \"::\" then re-compress the longest run for a canonical result\n  const expanded = parts.slice(0, left.length)\n  for (let i = hextetCount; i < 8; i++) expanded.push('0')\n  for (let i = left.length; i < parts.length; i++) expanded.push(parts[i])\n  return compressIPv6ZeroRun(expanded)\n}\n\n/**\n * @typedef {Object} NormalizeIPv6Result\n * @property {string} host - The normalized host.\n * @property {string} [escapedHost] - The escaped host.\n * @property {boolean} isIPV6 - Indicates if the host is an IPv6 address.\n * @property {boolean} [isIPVFuture] - Indicates if the host is an IPvFuture literal.\n * @property {boolean} [error] - Indicates if a bracketed IP literal is malformed.\n */\n\n/**\n * Validates and normalizes a bracketed IP literal. Raw zone separators remain\n * accepted for backwards compatibility, while encoded separators and zone\n * contents follow RFC 6874.\n *\n * @param {string} host\n * @returns {NormalizeIPv6Result}\n */\nfunction normalizeIPv6 (host) {\n  const bracketed = host[0] === '[' && host[host.length - 1] === ']'\n  const hasBracket = host[0] === '[' || host[host.length - 1] === ']'\n  if (hasBracket && !bracketed) return { host, isIPV6: false, error: true }\n\n  let input = bracketed ? host.slice(1, -1) : host\n  if (bracketed && isIPvFuture(input)) {\n    input = input.toLowerCase()\n    return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true }\n  }\n\n  if (findToken(input, ':') < 2) {\n    return { host, isIPV6: false, error: bracketed }\n  }\n\n  let zoneIdentifier = ''\n  const zoneSeparator = input.indexOf('%')\n  if (zoneSeparator !== -1) {\n    const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === '%25' ? 3 : 1\n    zoneIdentifier = input.slice(zoneSeparator + separatorLength)\n    if (!isZoneIdentifier(zoneIdentifier)) return { host, isIPV6: false, error: true }\n    input = input.slice(0, zoneSeparator)\n  }\n\n  const address = normalizeIPv6Address(input)\n  if (address === undefined) return { host, isIPV6: false, error: true }\n\n  return {\n    host: address + (zoneIdentifier ? '%' + zoneIdentifier : ''),\n    escapedHost: address + (zoneIdentifier ? '%25' + zoneIdentifier : ''),\n    isIPV6: true\n  }\n}\n\n/**\n * @param {string} str\n * @param {string} token\n * @returns {number}\n */\nfunction findToken (str, token) {\n  let ind = 0\n  for (let i = 0; i < str.length; i++) {\n    if (str[i] === token) ind++\n  }\n  return ind\n}\n\n/**\n * @param {string} path\n * @returns {string}\n *\n * @see https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4\n */\nfunction removeDotSegments (path) {\n  let input = path\n  const output = []\n  let nextSlash = -1\n  let len = 0\n\n  // eslint-disable-next-line no-cond-assign\n  while (len = input.length) {\n    if (len === 1) {\n      if (input === '.') {\n        break\n      } else if (input === '/') {\n        output.push('/')\n        break\n      } else {\n        output.push(input)\n        break\n      }\n    } else if (len === 2) {\n      if (input[0] === '.') {\n        if (input[1] === '.') {\n          break\n        } else if (input[1] === '/') {\n          input = input.slice(2)\n          continue\n        }\n      } else if (input[0] === '/') {\n        if (input[1] === '.' || input[1] === '/') {\n          output.push('/')\n          break\n        }\n      }\n    } else if (len === 3) {\n      if (input === '/..') {\n        if (output.length !== 0) {\n          output.pop()\n        }\n        output.push('/')\n        break\n      }\n    }\n    if (input[0] === '.') {\n      if (input[1] === '.') {\n        if (input[2] === '/') {\n          input = input.slice(3)\n          continue\n        }\n      } else if (input[1] === '/') {\n        input = input.slice(2)\n        continue\n      }\n    } else if (input[0] === '/') {\n      if (input[1] === '.') {\n        if (input[2] === '/') {\n          input = input.slice(2)\n          continue\n        } else if (input[2] === '.') {\n          if (input[3] === '/') {\n            input = input.slice(3)\n            if (output.length !== 0) {\n              output.pop()\n            }\n            continue\n          }\n        }\n      }\n    }\n\n    // Rule 2E: Move normal path segment to output\n    if ((nextSlash = input.indexOf('/', 1)) === -1) {\n      output.push(input)\n      break\n    } else {\n      output.push(input.slice(0, nextSlash))\n      input = input.slice(nextSlash)\n    }\n  }\n\n  return output.join('')\n}\n\n/**\n * Removes dot segments from the path of a relative reference (a path that does\n * not start with \"/\") without changing what it resolves to against any base.\n * Unlike `removeDotSegments`, leading \"..\" segments that cannot be collapsed\n * are kept, the result never becomes root-relative, and a result that would be\n * empty or start with an empty segment is prefixed with \".\" (an empty path\n * means \"same document\" and a leading \"//\" would introduce an authority).\n *\n * @param {string} path\n * @returns {string}\n */\nfunction removeDotSegmentsRelative (path) {\n  if (path === '' || path[0] === '/') {\n    return removeDotSegments(path)\n  }\n\n  const segments = path.split('/')\n  const last = segments.length - 1\n  /** @type {string[]} */\n  const output = []\n  let trailingDirectory = false\n\n  for (let i = 0; i <= last; i++) {\n    const segment = segments[i]\n    if (segment === '.' || segment === '..') {\n      if (segment === '..') {\n        if (output.length !== 0 && output[output.length - 1] !== '..') {\n          output.pop()\n        } else {\n          output.push('..')\n        }\n      }\n      trailingDirectory = i === last\n    } else {\n      output.push(segment)\n    }\n  }\n\n  if (trailingDirectory && output[output.length - 1] !== '..') {\n    output.push('')\n  }\n  if (output.length === 0 || output[0] === '' || output[0].includes(':')) {\n    // An empty path, a leading empty segment (\"//\"), or a first segment\n    // containing \":\" (which would be mistaken for a scheme, RFC 3986 section\n    // 4.2) must stay behind a \".\" segment so the reference keeps its meaning.\n    output.unshift('.')\n  }\n\n  return output.join('/')\n}\n\n/**\n * Re-escape RFC 3986 gen-delims that must not appear literally in the host.\n * After the URI regex parses, these characters cannot be literal in the host\n * field, so any that appear after decoding came from percent-encoding and\n * must be restored to prevent authority structure changes.\n *\n * @param {string} host\n * @param {boolean} isIP - true for IPv4/IPv6 hosts (skip colon re-escaping)\n * @returns {string}\n */\nconst HOST_DELIMS = { '@': '%40', '/': '%2F', '?': '%3F', '#': '%23', ':': '%3A' }\nconst HOST_DELIM_RE = /[@/?#:]/g\nconst HOST_DELIM_NO_COLON_RE = /[@/?#]/g\n\nfunction reescapeHostDelimiters (host, isIP) {\n  const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE\n  re.lastIndex = 0\n  return host.replace(re, (ch) => HOST_DELIMS[ch])\n}\n\n/**\n * Normalizes percent escapes and optionally decodes only unreserved ASCII bytes.\n * Reserved delimiters such as `%2F` stay escaped; `%2E` is unreserved.\n *\n * @param {string} input\n * @param {boolean} [decodeUnreserved=false]\n * @returns {string}\n */\nfunction normalizePercentEncoding (input, decodeUnreserved = false) {\n  if (input.indexOf('%') === -1) {\n    return input\n  }\n\n  let output = ''\n\n  for (let i = 0; i < input.length; i++) {\n    if (input[i] === '%' && i + 2 < input.length) {\n      const hex = input.slice(i + 1, i + 3)\n      if (isHexPair(hex)) {\n        const normalizedHex = hex.toUpperCase()\n        const decoded = String.fromCharCode(parseInt(normalizedHex, 16))\n\n        if (decodeUnreserved && isUnreserved(decoded)) {\n          output += decoded\n        } else {\n          output += '%' + normalizedHex\n        }\n\n        i += 2\n        continue\n      }\n    }\n\n    output += input[i]\n  }\n\n  return output\n}\n\n/**\n * Normalizes path data without turning reserved escapes into live path syntax.\n * Valid escapes are uppercased, raw unsafe characters are escaped, and only\n * unreserved bytes that are not `.` are decoded.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction normalizePathEncoding (input) {\n  let output = ''\n\n  for (let i = 0; i < input.length; i++) {\n    const ch = input[i]\n    if (ch === '%' && i + 2 < input.length) {\n      const hex = input.slice(i + 1, i + 3)\n      if (isHexPair(hex)) {\n        const normalizedHex = hex.toUpperCase()\n        const decoded = String.fromCharCode(parseInt(normalizedHex, 16))\n\n        if (decoded !== '.' && isUnreserved(decoded)) {\n          output += decoded\n        } else {\n          output += '%' + normalizedHex\n        }\n\n        i += 2\n        continue\n      }\n    }\n\n    if (isPathCharacter(ch)) {\n      output += ch\n    } else {\n      const code = input.charCodeAt(i)\n      if (code < 0x80) {\n        output += isEscapeSafe(code) ? ch : BYTE_HEX[code]\n      } else if (code < 0xD800 || code > 0xDFFF) {\n        output += percentEncodeNonAscii(code)\n      } else if (code <= 0xDBFF && i + 1 < input.length) {\n        const low = input.charCodeAt(i + 1)\n        if (low >= 0xDC00 && low <= 0xDFFF) {\n          output += percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))\n          i++\n        } else {\n          output += percentEncodeNonAscii(0xFFFD)\n        }\n      } else {\n        output += percentEncodeNonAscii(0xFFFD)\n      }\n    }\n  }\n\n  return output\n}\n\n/**\n * Serializes a path without rewriting reserved data. Raw RFC 3986 path\n * characters remain literal, valid escapes are preserved and uppercased, and\n * everything else is UTF-8 percent-encoded. In a path-noscheme, a colon in the\n * first segment must be escaped so the result cannot be parsed as a scheme.\n *\n * @param {string} input\n * @param {boolean} [pathNoScheme=false]\n * @returns {string}\n */\nfunction serializePathEncoding (input, pathNoScheme = false) {\n  let output = ''\n  let firstSegment = pathNoScheme && input[0] !== '/'\n\n  for (let i = 0; i < input.length; i++) {\n    const ch = input[i]\n    if (ch === '%' && i + 2 < input.length) {\n      const hex = input.slice(i + 1, i + 3)\n      if (isHexPair(hex)) {\n        output += '%' + hex.toUpperCase()\n        i += 2\n        continue\n      }\n    }\n\n    if (ch === '/') {\n      firstSegment = false\n    }\n\n    if (isPathCharacter(ch) && (ch !== ':' || !firstSegment)) {\n      output += ch\n    } else {\n      const code = input.charCodeAt(i)\n      if (code < 0x80) {\n        output += BYTE_HEX[code]\n      } else if (code < 0xD800 || code > 0xDFFF) {\n        output += percentEncodeNonAscii(code)\n      } else if (code <= 0xDBFF && i + 1 < input.length) {\n        const low = input.charCodeAt(i + 1)\n        if (low >= 0xDC00 && low <= 0xDFFF) {\n          output += percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))\n          i++\n        } else {\n          output += percentEncodeNonAscii(0xFFFD)\n        }\n      } else {\n        output += percentEncodeNonAscii(0xFFFD)\n      }\n    }\n  }\n\n  return output\n}\n\n/**\n * Percent-encodes a URI component using its RFC 3986 literal character set.\n * Existing valid escapes are preserved and normalized to uppercase hex.\n *\n * @param {string} input\n * @param {(value: string) => boolean} isAllowed\n * @returns {string}\n */\nfunction encodeComponent (input, isAllowed) {\n  let output = ''\n\n  for (let i = 0; i < input.length; i++) {\n    const ch = input[i]\n    if (ch === '%' && i + 2 < input.length) {\n      const hex = input.slice(i + 1, i + 3)\n      if (isHexPair(hex)) {\n        output += '%' + hex.toUpperCase()\n        i += 2\n        continue\n      }\n    }\n\n    if (isAllowed(ch)) {\n      output += ch\n    } else {\n      const code = input.charCodeAt(i)\n      if (code < 0x80) {\n        output += BYTE_HEX[code]\n      } else if (code < 0xD800 || code > 0xDFFF) {\n        output += percentEncodeNonAscii(code)\n      } else if (code <= 0xDBFF && i + 1 < input.length) {\n        const low = input.charCodeAt(i + 1)\n        if (low >= 0xDC00 && low <= 0xDFFF) {\n          output += percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))\n          i++\n        } else {\n          output += percentEncodeNonAscii(0xFFFD)\n        }\n      } else {\n        output += percentEncodeNonAscii(0xFFFD)\n      }\n    }\n  }\n\n  return output\n}\n\n/**\n * Encodes userinfo while preserving its RFC 3986 §3.2.1 literal characters.\n * In particular, authority delimiters such as `@`, `/`, `?`, and `#` are data.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction encodeUserinfo (input) {\n  return encodeComponent(input, isUserinfoCharacter)\n}\n\n/**\n * Encodes query data using the RFC 3986 §3.4 grammar. A literal `#` must be\n * escaped because it would otherwise begin the fragment component.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction encodeQuery (input) {\n  return encodeComponent(input, isQueryFragmentCharacter)\n}\n\n/**\n * Encodes fragment data using the RFC 3986 §3.5 grammar.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction encodeFragment (input) {\n  return encodeComponent(input, isQueryFragmentCharacter)\n}\n\nfunction isEscapeSafe (cp) {\n  return (\n    (cp >= 0x30 && cp <= 0x39) ||\n    (cp >= 0x41 && cp <= 0x5A) ||\n    (cp >= 0x61 && cp <= 0x7A) ||\n    cp === 0x2A || cp === 0x2B || cp === 0x2D || cp === 0x2E ||\n    cp === 0x2F || cp === 0x40 || cp === 0x5F\n  )\n}\n\n/**\n * Normalizes the percent-encoding of a query or fragment component.\n *\n * Like `normalizePathEncoding`, but uses the query/fragment character set\n * (which additionally allows `?`) and decodes `.` since it has no dot-segment\n * meaning outside of a path.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction normalizeQueryFragmentEncoding (input) {\n  let output = ''\n\n  for (let i = 0; i < input.length; i++) {\n    const ch = input[i]\n    if (ch === '%' && i + 2 < input.length) {\n      const hex = input.slice(i + 1, i + 3)\n      if (isHexPair(hex)) {\n        const normalizedHex = hex.toUpperCase()\n        const decoded = String.fromCharCode(parseInt(normalizedHex, 16))\n\n        if (isUnreserved(decoded)) {\n          output += decoded\n        } else {\n          output += '%' + normalizedHex\n        }\n\n        i += 2\n        continue\n      }\n    }\n\n    if (isQueryFragmentCharacter(ch)) {\n      output += ch\n    } else {\n      const code = input.charCodeAt(i)\n      if (code < 0x80) {\n        output += isEscapeSafe(code) ? ch : BYTE_HEX[code]\n      } else if (code < 0xD800 || code > 0xDFFF) {\n        output += percentEncodeNonAscii(code)\n      } else if (code <= 0xDBFF && i + 1 < input.length) {\n        const low = input.charCodeAt(i + 1)\n        if (low >= 0xDC00 && low <= 0xDFFF) {\n          output += percentEncodeNonAscii(0x10000 + ((code - 0xD800) << 10) + (low - 0xDC00))\n          i++\n        } else {\n          output += percentEncodeNonAscii(0xFFFD)\n        }\n      } else {\n        output += percentEncodeNonAscii(0xFFFD)\n      }\n    }\n  }\n\n  return output\n}\n\n/**\n * Escapes a component while preserving existing valid percent escapes.\n *\n * @param {string} input\n * @returns {string}\n */\nfunction escapePreservingEscapes (input) {\n  let output = ''\n\n  for (let i = 0; i < input.length; i++) {\n    if (input[i] === '%' && i + 2 < input.length) {\n      const hex = input.slice(i + 1, i + 3)\n      if (isHexPair(hex)) {\n        output += '%' + hex.toUpperCase()\n        i += 2\n        continue\n      }\n    }\n\n    output += escape(input[i])\n  }\n\n  return output\n}\n\n/**\n * @param {import('../types/index').URIComponent} component\n * @returns {string|undefined}\n */\nfunction recomposeAuthority (component) {\n  const uriTokens = []\n\n  if (component.userinfo !== undefined) {\n    uriTokens.push(encodeUserinfo(component.userinfo))\n    uriTokens.push('@')\n  }\n\n  if (component.host !== undefined) {\n    let host = component.host\n    if (!isIPv4(host)) {\n      let ipV6res = normalizeIPv6(host)\n      if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {\n        // Decode only unreserved bytes, once. In particular, keep %25 encoded\n        // so it cannot introduce a second escape during recomposition.\n        host = normalizePercentEncoding(host, true)\n        ipV6res = normalizeIPv6(host)\n      }\n      if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {\n        host = `[${ipV6res.escapedHost}]`\n      } else {\n        host = reescapeHostDelimiters(host, false)\n      }\n    }\n    uriTokens.push(host)\n  }\n\n  if (typeof component.port === 'number' || typeof component.port === 'string') {\n    const port = String(component.port)\n    if (!isPort(port)) {\n      throw new TypeError('URI port is malformed.')\n    }\n    uriTokens.push(':')\n    uriTokens.push(port)\n  }\n\n  return uriTokens.length ? uriTokens.join('') : undefined\n};\n\nmodule.exports = {\n  nonSimpleDomain,\n  recomposeAuthority,\n  reescapeHostDelimiters,\n  normalizePercentEncoding,\n  normalizePathEncoding,\n  serializePathEncoding,\n  normalizeQueryFragmentEncoding,\n  encodeUserinfo,\n  encodeQuery,\n  encodeFragment,\n  escapePreservingEscapes,\n  removeDotSegments,\n  removeDotSegmentsRelative,\n  isIPv4,\n  isUUID,\n  normalizeIPv6,\n  stringArrayToHexStripped\n}\n","'use strict'\n\nconst { isUUID } = require('./utils')\nconst URN_REG = /^([\\da-z][\\d\\-a-z]{0,31}):((?:[\\w!$'()*+,\\-./:;=@]|%[\\da-f]{2})+)$/iu\n\nconst supportedSchemeNames = /** @type {const} */ (['http', 'https', 'ws',\n  'wss', 'urn', 'urn:uuid'])\n\n/** @typedef {supportedSchemeNames[number]} SchemeName */\n\n/**\n * @param {string} name\n * @returns {name is SchemeName}\n */\nfunction isValidSchemeName (name) {\n  return supportedSchemeNames.indexOf(/** @type {*} */ (name)) !== -1\n}\n\n/**\n * @callback SchemeFn\n * @param {import('../types/index').URIComponent} component\n * @param {import('../types/index').Options} options\n * @returns {import('../types/index').URIComponent}\n */\n\n/**\n * @typedef {Object} SchemeHandler\n * @property {SchemeName} scheme - The scheme name.\n * @property {boolean} [domainHost] - Indicates if the scheme supports domain hosts.\n * @property {SchemeFn} parse - Function to parse the URI component for this scheme.\n * @property {SchemeFn} serialize - Function to serialize the URI component for this scheme.\n * @property {boolean} [skipNormalize] - Indicates if normalization should be skipped for this scheme.\n * @property {boolean} [absolutePath] - Indicates if the scheme uses absolute paths.\n * @property {boolean} [unicodeSupport] - Indicates if the scheme supports Unicode.\n */\n\n/**\n * @param {import('../types/index').URIComponent} wsComponent\n * @returns {boolean}\n */\nfunction wsIsSecure (wsComponent) {\n  if (wsComponent.secure === true) {\n    return true\n  } else if (wsComponent.secure === false) {\n    return false\n  } else if (wsComponent.scheme) {\n    return (\n      wsComponent.scheme.length === 3 &&\n      (wsComponent.scheme[0] === 'w' || wsComponent.scheme[0] === 'W') &&\n      (wsComponent.scheme[1] === 's' || wsComponent.scheme[1] === 'S') &&\n      (wsComponent.scheme[2] === 's' || wsComponent.scheme[2] === 'S')\n    )\n  } else {\n    return false\n  }\n}\n\n/** @type {SchemeFn} */\nfunction httpParse (component) {\n  if (!component.host) {\n    component.error = component.error || 'HTTP URIs must have a host.'\n  }\n\n  return component\n}\n\n/** @type {SchemeFn} */\nfunction httpSerialize (component) {\n  const secure = String(component.scheme).toLowerCase() === 'https'\n\n  // normalize the default port\n  if (component.port === (secure ? 443 : 80) || component.port === '') {\n    component.port = undefined\n  }\n\n  // normalize the empty path\n  if (!component.path) {\n    component.path = '/'\n  }\n\n  // NOTE: We do not parse query strings for HTTP URIs\n  // as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n  // and not the HTTP spec.\n\n  return component\n}\n\n/** @type {SchemeFn} */\nfunction wsParse (wsComponent) {\n// indicate if the secure flag is set\n  wsComponent.secure = wsIsSecure(wsComponent)\n\n  // construct resouce name\n  wsComponent.resourceName = (wsComponent.path || '/') + (wsComponent.query ? '?' + wsComponent.query : '')\n  wsComponent.path = undefined\n  wsComponent.query = undefined\n\n  return wsComponent\n}\n\n/** @type {SchemeFn} */\nfunction wsSerialize (wsComponent) {\n// normalize the default port\n  if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === '') {\n    wsComponent.port = undefined\n  }\n\n  // ensure scheme matches secure flag\n  if (typeof wsComponent.secure === 'boolean') {\n    wsComponent.scheme = (wsComponent.secure ? 'wss' : 'ws')\n    wsComponent.secure = undefined\n  }\n\n  // reconstruct path from resource name\n  if (wsComponent.resourceName) {\n    const queryIndex = wsComponent.resourceName.indexOf('?')\n    const path = queryIndex === -1\n      ? wsComponent.resourceName\n      : wsComponent.resourceName.slice(0, queryIndex)\n    wsComponent.path = (path && path !== '/' ? path : undefined)\n    wsComponent.query = queryIndex === -1\n      ? undefined\n      : wsComponent.resourceName.slice(queryIndex + 1)\n    wsComponent.resourceName = undefined\n  }\n\n  // forbid fragment component\n  wsComponent.fragment = undefined\n\n  return wsComponent\n}\n\n/** @type {SchemeFn} */\nfunction urnParse (urnComponent, options) {\n  if (!urnComponent.path) {\n    urnComponent.error = 'URN can not be parsed'\n    return urnComponent\n  }\n  const matches = urnComponent.path.match(URN_REG)\n  if (matches && matches[0] === urnComponent.path) {\n    const scheme = options.scheme || urnComponent.scheme || 'urn'\n    urnComponent.nid = matches[1].toLowerCase()\n    urnComponent.nss = matches[2]\n    const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`\n    const schemeHandler = getSchemeHandler(urnScheme)\n    urnComponent.path = undefined\n\n    if (schemeHandler) {\n      urnComponent = schemeHandler.parse(urnComponent, options)\n    }\n  } else {\n    urnComponent.error = urnComponent.error || 'URN can not be parsed.'\n  }\n\n  return urnComponent\n}\n\n/** @type {SchemeFn} */\nfunction urnSerialize (urnComponent, options) {\n  if (urnComponent.nid === undefined) {\n    throw new Error('URN without nid cannot be serialized')\n  }\n  const scheme = options.scheme || urnComponent.scheme || 'urn'\n  const nid = urnComponent.nid.toLowerCase()\n  const urnScheme = `${scheme}:${options.nid || nid}`\n  const schemeHandler = getSchemeHandler(urnScheme)\n\n  if (schemeHandler) {\n    urnComponent = schemeHandler.serialize(urnComponent, options)\n  }\n\n  const uriComponent = urnComponent\n  const nss = urnComponent.nss\n  uriComponent.path = `${nid || options.nid}:${nss}`\n\n  options.skipEscape = true\n  return uriComponent\n}\n\n/** @type {SchemeFn} */\nfunction urnuuidParse (urnComponent, options) {\n  const uuidComponent = urnComponent\n  uuidComponent.uuid = uuidComponent.nss\n  uuidComponent.nss = undefined\n\n  if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {\n    uuidComponent.error = uuidComponent.error || 'UUID is not valid.'\n  }\n\n  return uuidComponent\n}\n\n/** @type {SchemeFn} */\nfunction urnuuidSerialize (uuidComponent) {\n  const urnComponent = uuidComponent\n  // normalize UUID\n  urnComponent.nss = (uuidComponent.uuid || '').toLowerCase()\n  return urnComponent\n}\n\nconst http = /** @type {SchemeHandler} */ ({\n  scheme: 'http',\n  domainHost: true,\n  parse: httpParse,\n  serialize: httpSerialize\n})\n\nconst https = /** @type {SchemeHandler} */ ({\n  scheme: 'https',\n  domainHost: http.domainHost,\n  parse: httpParse,\n  serialize: httpSerialize\n})\n\nconst ws = /** @type {SchemeHandler} */ ({\n  scheme: 'ws',\n  domainHost: true,\n  parse: wsParse,\n  serialize: wsSerialize\n})\n\nconst wss = /** @type {SchemeHandler} */ ({\n  scheme: 'wss',\n  domainHost: ws.domainHost,\n  parse: ws.parse,\n  serialize: ws.serialize\n})\n\nconst urn = /** @type {SchemeHandler} */ ({\n  scheme: 'urn',\n  parse: urnParse,\n  serialize: urnSerialize,\n  skipNormalize: true\n})\n\nconst urnuuid = /** @type {SchemeHandler} */ ({\n  scheme: 'urn:uuid',\n  parse: urnuuidParse,\n  serialize: urnuuidSerialize,\n  skipNormalize: true\n})\n\nconst SCHEMES = /** @type {Record<SchemeName, SchemeHandler>} */ ({\n  http,\n  https,\n  ws,\n  wss,\n  urn,\n  'urn:uuid': urnuuid\n})\n\nObject.setPrototypeOf(SCHEMES, null)\n\n/**\n * @param {string|undefined} scheme\n * @returns {SchemeHandler|undefined}\n */\nfunction getSchemeHandler (scheme) {\n  return (\n    scheme && (\n      SCHEMES[/** @type {SchemeName} */ (scheme)] ||\n      SCHEMES[/** @type {SchemeName} */(scheme.toLowerCase())])\n  ) ||\n    undefined\n}\n\nmodule.exports = {\n  wsIsSecure,\n  SCHEMES,\n  isValidSchemeName,\n  getSchemeHandler,\n}\n","'use strict'\n\nconst { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require('./lib/utils')\nconst { SCHEMES, getSchemeHandler } = require('./lib/schemes')\n\nconst VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u\nconst MALFORMED_SCHEME_ERROR = 'URI scheme is malformed.'\nconst MALFORMED_HOST_ERROR = 'URI host is malformed.'\n// ASCII characters outside the RFC 3986 reg-name set (unreserved, sub-delims\n// and \"%\" for pct-encoded): C0 controls, space, DEL, and \"#/:<>?@[\\]^`{|}.\nconst FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\\0-\\x20\"#/:<>?@[\\\\\\]^`{|}\\x7F]/u\n\n/**\n * RFC 3986 section 3.1 does not allow percent-encoding in a scheme, so the\n * scheme is validated as-is and never decoded. Decoding would let inert input\n * such as `%6Aavascript:` become a live `javascript:` scheme.\n *\n * @param {string} scheme\n * @returns {string}\n */\nfunction validateScheme (scheme) {\n  const stringScheme = String(scheme)\n  if (!VALID_SCHEME.test(stringScheme)) {\n    throw new TypeError(MALFORMED_SCHEME_ERROR)\n  }\n  return stringScheme\n}\n\n/**\n * @template {import('./types/index').URIComponent|string} T\n * @param {T} uri\n * @param {import('./types/index').Options} [options]\n * @returns {T}\n */\nfunction normalize (uri, options) {\n  if (typeof uri === 'string') {\n    uri = /** @type {T} */ (normalizeString(uri, options))\n  } else if (typeof uri === 'object') {\n    uri = /** @type {T} */ (parse(serialize(uri, options), options))\n  }\n  return uri\n}\n\n/**\n * @param {string} baseURI\n * @param {string} relativeURI\n * @param {import('./types/index').Options} [options]\n * @returns {string}\n */\nfunction resolve (baseURI, relativeURI, options) {\n  const schemelessOptions = options ? Object.assign({ scheme: 'null' }, options) : { scheme: 'null' }\n  const {\n    parsed: baseParsed,\n    malformedAuthorityOrPort: baseMalformed,\n    malformedPercentEncoding: baseMalformedPercentEncoding,\n    malformedSchemeSpecific: baseMalformedSchemeSpecific,\n    malformedHost: baseMalformedHost,\n    malformedScheme: baseMalformedScheme\n  } = parseWithStatus(baseURI, schemelessOptions)\n  const {\n    parsed: relativeParsed,\n    malformedAuthorityOrPort: relativeMalformed,\n    malformedPercentEncoding: relativeMalformedPercentEncoding,\n    malformedSchemeSpecific: relativeMalformedSchemeSpecific,\n    malformedHost: relativeMalformedHost,\n    malformedScheme: relativeMalformedScheme\n  } = parseWithStatus(relativeURI, schemelessOptions)\n  if (\n    baseMalformed ||\n    relativeMalformed ||\n    baseMalformedPercentEncoding ||\n    relativeMalformedPercentEncoding ||\n    baseMalformedSchemeSpecific ||\n    relativeMalformedSchemeSpecific ||\n    baseMalformedHost ||\n    relativeMalformedHost ||\n    baseMalformedScheme ||\n    relativeMalformedScheme\n  ) {\n    throw new Error(baseParsed.error || relativeParsed.error || 'URI is malformed.')\n  }\n  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true)\n  const resolvedSchemeHandler = getSchemeHandler((options && options.scheme) || resolved.scheme)\n  const resolvedHost = resolved.host\n  const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== '' &&\n    (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6)\n  // Inputs are parsed scheme-neutrally, so delimiters and controls in a domain\n  // host are only detected here, once the final scheme is known. They always\n  // fail closed, including in percent-encoded hosts.\n  if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {\n    throw new Error(MALFORMED_HOST_ERROR)\n  }\n  canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)\n  // Percent escapes in an ASCII reg-name are encoded data. The WHATWG hostname\n  // parser can reject them even though fast-uri preserves them safely as RFC\n  // 3986 data. A raw non-ASCII host must still fail closed if conversion fails.\n  const encodedASCIIHost = resolvedHost && resolvedHost.indexOf('%') !== -1 &&\n    !/\\P{ASCII}/u.test(resolvedHost)\n  if (resolved.error && !encodedASCIIHost) {\n    throw new Error(resolved.error)\n  }\n  schemelessOptions.skipEscape = true\n  return serialize(resolved, schemelessOptions)\n}\n\n/**\n * @param {import ('./types/index').URIComponent} base\n * @param {import ('./types/index').URIComponent} relative\n * @param {import('./types/index').Options} [options]\n * @param {boolean} [skipNormalization=false]\n * @returns {import ('./types/index').URIComponent}\n */\nfunction resolveComponent (base, relative, options, skipNormalization) {\n  /** @type {import('./types/index').URIComponent} */\n  const target = {}\n  if (!skipNormalization) {\n    base = parse(serialize(base, options), options) // normalize base component\n    relative = parse(serialize(relative, options), options) // normalize relative component\n  }\n  options = options || {}\n\n  if (!options.tolerant && relative.scheme) {\n    target.scheme = relative.scheme\n    // target.authority = relative.authority;\n    target.userinfo = relative.userinfo\n    target.host = relative.host\n    target.port = relative.port\n    target.path = removeDotSegments(relative.path || '')\n    target.query = relative.query\n  } else {\n    if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n      // target.authority = relative.authority;\n      target.userinfo = relative.userinfo\n      target.host = relative.host\n      target.port = relative.port\n      target.path = removeDotSegments(relative.path || '')\n      target.query = relative.query\n    } else {\n      if (!relative.path) {\n        target.path = base.path\n        if (relative.query !== undefined) {\n          target.query = relative.query\n        } else {\n          target.query = base.query\n        }\n      } else {\n        if (relative.path[0] === '/') {\n          target.path = removeDotSegments(relative.path)\n        } else {\n          const baseHasAuthority = base.userinfo !== undefined || base.host !== undefined || base.port !== undefined\n          if (baseHasAuthority && !base.path) {\n            target.path = '/' + relative.path\n          } else if (!base.path) {\n            target.path = relative.path\n          } else {\n            target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path\n          }\n          target.path = base.scheme === undefined && !baseHasAuthority && target.path[0] !== '/'\n            ? removeDotSegmentsRelative(target.path)\n            : removeDotSegments(target.path)\n        }\n        target.query = relative.query\n      }\n      // target.authority = base.authority;\n      target.userinfo = base.userinfo\n      target.host = base.host\n      target.port = base.port\n    }\n    target.scheme = base.scheme\n  }\n\n  target.fragment = relative.fragment\n\n  return target\n}\n\n/**\n * @param {import ('./types/index').URIComponent|string} uriA\n * @param {import ('./types/index').URIComponent|string} uriB\n * @param {import ('./types/index').Options} options\n * @returns {boolean}\n */\nfunction equal (uriA, uriB, options) {\n  const normalizedA = normalizeComparableURI(uriA, options)\n  const normalizedB = normalizeComparableURI(uriB, options)\n\n  return normalizedA !== undefined && normalizedB !== undefined && normalizedA === normalizedB\n}\n\n/**\n * @param {Readonly<import('./types/index').URIComponent>} cmpts\n * @param {import('./types/index').Options} [opts]\n * @returns {string}\n */\nfunction serialize (cmpts, opts) {\n  const component = {\n    host: cmpts.host,\n    scheme: cmpts.scheme,\n    userinfo: cmpts.userinfo,\n    port: cmpts.port,\n    path: cmpts.path,\n    query: cmpts.query,\n    nid: cmpts.nid,\n    nss: cmpts.nss,\n    uuid: cmpts.uuid,\n    fragment: cmpts.fragment,\n    reference: cmpts.reference,\n    resourceName: cmpts.resourceName,\n    secure: cmpts.secure,\n    error: ''\n  }\n  const options = Object.assign({}, opts)\n  const uriTokens = []\n\n  if (component.scheme) {\n    component.scheme = validateScheme(component.scheme)\n  }\n\n  // find scheme handler\n  const schemeHandler = getSchemeHandler(options.scheme || component.scheme)\n\n  // perform scheme specific serialization\n  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options)\n\n  const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined\n  // A reference with no emitted scheme is path-noscheme: a bare ':' in its\n  // first path segment would reparse as a scheme (RFC 3986 3.3/4.2). Enforced\n  // under skipEscape too (resolve()), so the reapply below gates on this flag.\n  const schemelessReference = (component.scheme === undefined || options.reference === 'suffix') && !hasAuthority\n  const pathNoScheme = !options.skipEscape && schemelessReference\n\n  if (component.path !== undefined) {\n    if (!options.skipEscape) {\n      component.path = serializePathEncoding(component.path, pathNoScheme)\n    } else {\n      component.path = normalizePercentEncoding(component.path)\n    }\n  }\n\n  if (options.reference !== 'suffix' && component.scheme) {\n    // Scheme handlers may replace the scheme during serialization.\n    component.scheme = validateScheme(component.scheme)\n    uriTokens.push(component.scheme, ':')\n  }\n\n  const authority = recomposeAuthority(component)\n  if (authority !== undefined) {\n    if (options.reference !== 'suffix') {\n      uriTokens.push('//')\n    }\n\n    uriTokens.push(authority)\n\n    if (component.path && component.path[0] !== '/') {\n      uriTokens.push('/')\n    }\n  }\n  if (component.path !== undefined) {\n    let s = component.path\n\n    if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n      // A relative-path reference keeps its unresolvable leading \"..\" segments\n      // and must never become root-relative (RFC 3986 section 5.2.4 applies to\n      // merged target paths, not to the reference itself).\n      s = schemelessReference && s[0] !== '/'\n        ? removeDotSegmentsRelative(s)\n        : removeDotSegments(s)\n    }\n\n    // Dot-segment removal can expose a colon that was not originally in the\n    // first segment (for example, \"./a:b\"). Reapply path-noscheme encoding so\n    // the serialized relative reference cannot be reparsed as a URI scheme.\n    if (schemelessReference) {\n      s = serializePathEncoding(s, true)\n    }\n\n    if (\n      authority === undefined &&\n      s[0] === '/' &&\n      s[1] === '/'\n    ) {\n      // don't allow the path to start with \"//\"\n      s = '/%2F' + s.slice(2)\n    }\n\n    uriTokens.push(s)\n  }\n\n  if (component.query !== undefined) {\n    uriTokens.push('?', encodeQuery(component.query))\n  }\n\n  if (component.fragment !== undefined) {\n    uriTokens.push('#', encodeFragment(component.fragment))\n  }\n  return uriTokens.join('')\n}\n\nconst URI_PARSE = /^(?:([^#/:?]+):)?(?:\\/\\/((?:([^#/?@]*)@)?(\\[[^#/?\\]]+\\]|[^#/:?]*)(?::(\\d*))?))?([^#?]*)(?:\\?([^#]*))?(?:#((?:.|[\\n\\r])*))?/u\n\n// Captures the authority component (between \"//\" and the next \"/\", \"?\" or \"#\"),\n// with or without a scheme prefix, for the literal-backslash rejection below.\nconst AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\\/\\/([^/?#]*)/\n\n// Captures the leading authority-introducer region after an optional scheme: a\n// run of forward slashes, backslashes, and the characters the WHATWG URL parser\n// removes before parsing (TAB U+0009, LF U+000A, CR U+000D). A valid introducer\n// is exactly \"//\". Node treats \"\\\" as \"/\" on special schemes and strips those\n// characters first, so forms like \"\\\\\", \"/\\\", \"\\/\", \"/<TAB>/\", or a leading\n// \"<TAB>//\" reach an authority in Node while fast-uri's URI_PARSE folds them into\n// the path group (host confusion / SSRF / redirect bypass).\nconst AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\\\\t\\n\\r]*)/\n\n/**\n * @param {import('./types/index').URIComponent} parsed\n * @param {RegExpMatchArray} matches\n * @returns {string|undefined}\n */\nfunction getParseError (parsed, matches) {\n  if (matches[2] !== undefined && parsed.path && parsed.path[0] !== '/') {\n    return 'URI path must start with \"/\" when authority is present.'\n  }\n\n  if (typeof parsed.port === 'number' && (parsed.port < 0 || parsed.port > 65535)) {\n    return 'URI port is malformed.'\n  }\n\n  return undefined\n}\n\n/**\n * Checks percent syntax without decoding the represented octets. RFC 3986\n * percent-encoding is byte-oriented, so sequences such as `%FF` are valid even\n * though they are not independently valid UTF-8.\n *\n * @param {string|undefined} component\n * @returns {boolean}\n */\nfunction hasMalformedPercentEncoding (component) {\n  if (component === undefined) return false\n\n  let percent = component.indexOf('%')\n  while (percent !== -1) {\n    if (percent + 2 >= component.length || !/^[\\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {\n      return true\n    }\n    percent = component.indexOf('%', percent + 3)\n  }\n\n  return false\n}\n\n/**\n * Whether the host is a bracketed IP literal (RFC 3986 `IP-literal`).\n * An unterminated `[` is not a literal, so it must still be validated as a\n * reg-name instead of being waved through as an IP.\n *\n * @param {string} host\n * @returns {boolean}\n */\nfunction isIPLiteral (host) {\n  return host[0] === '[' && host[host.length - 1] === ']'\n}\n\n/**\n * @param {RegExpMatchArray} matches\n * @returns {boolean}\n */\nfunction hasMalformedComponentPercentEncoding (matches) {\n  // Bracketed IP literals use a raw \"%\" as the zone separator for historical\n  // compatibility. Their parsing is intentionally left to normalizeIPv6.\n  const host = matches[4]\n  return hasMalformedPercentEncoding(matches[3]) ||\n    (host !== undefined && !isIPLiteral(host) && hasMalformedPercentEncoding(host)) ||\n    hasMalformedPercentEncoding(matches[6]) ||\n    hasMalformedPercentEncoding(matches[7]) ||\n    hasMalformedPercentEncoding(matches[8])\n}\n\n/**\n * @param {import('./types/index').URIComponent} parsed\n * @param {import('./types/index').Options} options\n * @param {{ domainHost?: boolean, unicodeSupport?: boolean }|undefined} schemeHandler\n * @param {boolean} isIP\n * @returns {boolean} whether host conversion failed\n */\nfunction canonicalizeHost (parsed, options, schemeHandler, isIP) {\n  if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {\n    parsed.error = parsed.error || MALFORMED_HOST_ERROR\n    return true\n  }\n\n  if (\n    !options.unicodeSupport &&\n    (!schemeHandler || !schemeHandler.unicodeSupport) &&\n    parsed.host &&\n    !isIPLiteral(parsed.host) &&\n    (options.domainHost || (schemeHandler && schemeHandler.domainHost)) &&\n    isIP === false &&\n    nonSimpleDomain(parsed.host)\n  ) {\n    let url\n    try {\n      url = new URL('http://' + parsed.host)\n    } catch (e) {\n      parsed.error = parsed.error || \"Host's domain name can not be converted to ASCII: \" + e\n      return true\n    }\n    // The WHATWG parser must have read the whole input as a host. Anything\n    // else means it found a delimiter fast-uri did not, so its hostname would\n    // describe a different authority.\n    if (!isHostOnlyURL(url)) {\n      parsed.error = parsed.error || MALFORMED_HOST_ERROR\n      return true\n    }\n    parsed.host = url.hostname\n  }\n  return false\n}\n\n/**\n * Whether a domain host contains an ASCII character that RFC 3986 does not\n * allow in a reg-name (unreserved, sub-delims, or pct-encoded). Such a host is\n * rejected instead of being handed to the WHATWG URL parser, which would treat\n * \"@\" as a userinfo delimiter (silently dropping the data before it) and strip\n * TAB, LF, and CR. Non-ASCII characters remain allowed for IDNs.\n *\n * @param {import('./types/index').URIComponent} parsed\n * @param {import('./types/index').Options} options\n * @param {{ domainHost?: boolean }|undefined} schemeHandler\n * @param {boolean} isIP\n * @returns {boolean}\n */\nfunction hasForbiddenDomainHost (parsed, options, schemeHandler, isIP) {\n  return Boolean(\n    parsed.host &&\n    isIP === false &&\n    !isIPLiteral(parsed.host) &&\n    (options.domainHost || (schemeHandler && schemeHandler.domainHost)) &&\n    FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host)\n  )\n}\n\n/**\n * @param {URL} url\n * @returns {boolean}\n */\nfunction isHostOnlyURL (url) {\n  return url.username === '' &&\n    url.password === '' &&\n    url.port === '' &&\n    url.pathname === '/' &&\n    url.search === '' &&\n    url.hash === '' &&\n    url.hostname !== ''\n}\n\n/**\n * @param {string} uri\n * @param {import('./types/index').Options} [opts]\n * @returns {{ parsed: import('./types/index').URIComponent, malformedAuthorityOrPort: boolean, malformedPercentEncoding: boolean, malformedSchemeSpecific: boolean, malformedHost: boolean, malformedScheme: boolean }}\n */\nfunction parseWithStatus (uri, opts) {\n  const options = Object.assign({}, opts)\n  /** @type {import('./types/index').URIComponent} */\n  const parsed = {\n    scheme: undefined,\n    userinfo: undefined,\n    host: '',\n    port: undefined,\n    path: '',\n    query: undefined,\n    fragment: undefined\n  }\n\n  let malformedAuthorityOrPort = false\n  let malformedPercentEncoding = false\n  let malformedSchemeSpecific = false\n  let malformedHost = false\n  let malformedIPLiteral = false\n  let malformedScheme = false\n\n  let isIP = false\n  if (options.reference === 'suffix') {\n    if (options.scheme) {\n      uri = options.scheme + ':' + uri\n    } else {\n      uri = '//' + uri\n    }\n  }\n\n  // A literal backslash (U+005C) is not a valid RFC 3986 URI character and is\n  // not an authority delimiter. Reject it in the authority rather than\n  // rewriting it: normalizing \"\\\" -> \"/\" (WHATWG error recovery) could silently\n  // change the resource identified by an otherwise-invalid input, and lets \"\\\"\n  // act as a host delimiter here while Node's native URL parses a different\n  // host (SSRF / redirect / origin-allowlist bypass). Percent-encoded %5C is\n  // untouched and remains valid encoded data.\n  const authorityMatch = uri.match(AUTHORITY_PREFIX)\n  if (authorityMatch !== null && authorityMatch[1].indexOf('\\\\') !== -1) {\n    parsed.error = 'URI authority must not contain a literal backslash.'\n    malformedAuthorityOrPort = true\n  }\n\n  // Reject a malformed or whitespace-smuggled authority introducer. fast-uri\n  // only recognizes a literal \"//\"; anything else in the leading separator run\n  // (a backslash, or a \"//\" that appears only after removing the TAB/LF/CR that\n  // Node strips) means the authority fast-uri parses differs from the one Node's\n  // URL resolves. Reject rather than rewrite, mirroring the literal-backslash\n  // guard above. Percent-encoded forms (%5C, %09) are untouched, valid data.\n  const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION)\n  if (introducerMatch !== null) {\n    const region = introducerMatch[1]\n    const normalizedRegion = region.replace(/[\\t\\n\\r]/g, '')\n    // Two or more leading separators introduce an authority.\n    if (normalizedRegion.length >= 2) {\n      if (normalizedRegion.slice(0, 2) !== '//') {\n        parsed.error = parsed.error || 'URI authority must not contain a literal backslash.'\n        malformedAuthorityOrPort = true\n      } else if (region.length !== normalizedRegion.length) {\n        parsed.error = parsed.error || 'URI authority introducer must not contain whitespace.'\n        malformedAuthorityOrPort = true\n      }\n    }\n  }\n\n  const matches = uri.match(URI_PARSE)\n\n  if (matches) {\n    // store each component\n    parsed.scheme = matches[1]\n    parsed.userinfo = matches[3]\n    parsed.host = matches[4]\n    parsed.port = parseInt(matches[5], 10)\n    parsed.path = matches[6] || ''\n    parsed.query = matches[7]\n    parsed.fragment = matches[8]\n\n    if (parsed.scheme !== undefined) {\n      if (VALID_SCHEME.test(parsed.scheme)) {\n        parsed.scheme = parsed.scheme.toLowerCase()\n      } else {\n        parsed.error = parsed.error || MALFORMED_SCHEME_ERROR\n        malformedScheme = true\n      }\n    }\n\n    malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches)\n    if (malformedPercentEncoding) {\n      parsed.error = parsed.error || 'URI contains malformed percent-encoding.'\n    }\n\n    // fix port number\n    if (isNaN(parsed.port)) {\n      parsed.port = matches[5]\n    }\n\n    const parseError = getParseError(parsed, matches)\n    if (parseError !== undefined) {\n      parsed.error = parsed.error || parseError\n      malformedAuthorityOrPort = true\n    }\n\n    if (parsed.host) {\n      const ipv4result = isIPv4(parsed.host)\n      if (ipv4result === false) {\n        const bracketedIPLiteral = isIPLiteral(parsed.host)\n        const hasIPLiteralBracket = parsed.host.indexOf('[') !== -1 || parsed.host.indexOf(']') !== -1\n        const ipv6result = normalizeIPv6(parsed.host)\n        isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true\n        malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true)\n        parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase()\n\n        if (malformedIPLiteral) {\n          parsed.error = parsed.error || MALFORMED_HOST_ERROR\n          malformedAuthorityOrPort = true\n        }\n      } else {\n        isIP = true\n      }\n    }\n    if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) {\n      parsed.reference = 'same-document'\n    } else if (parsed.scheme === undefined) {\n      parsed.reference = 'relative'\n    } else if (parsed.fragment === undefined) {\n      parsed.reference = 'absolute'\n    } else {\n      parsed.reference = 'uri'\n    }\n\n    // check for reference errors\n    if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {\n      parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'\n    }\n\n    // find scheme handler\n    const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme)\n\n    // convert Unicode IDN -> ASCII IDN when the effective scheme uses domain hosts\n    if (!malformedIPLiteral) {\n      malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP)\n    }\n\n    if (uri.indexOf('%') !== -1 && parsed.host !== undefined && !malformedIPLiteral) {\n      let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true)\n      if (!isIP) {\n        // Fold reg-name case after decoding unreserved octets. The second\n        // pass only restores uppercase hex in escapes that remain encoded.\n        host = normalizePercentEncoding(host.toLowerCase())\n      }\n      // Resolution parses both inputs with the internal `null` scheme before\n      // the effective scheme is known. Keep raw host delimiters for that step\n      // so resolve() can reject them for domain-host schemes; the resolved\n      // authority is encoded when it is serialized.\n      parsed.host = isIP || options.scheme !== 'null' ? reescapeHostDelimiters(host, isIP) : host\n    }\n\n    if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {\n      if (parsed.path) {\n        parsed.path = normalizePathEncoding(parsed.path)\n      }\n      if (parsed.query) {\n        parsed.query = normalizeQueryFragmentEncoding(parsed.query)\n      }\n      if (parsed.fragment) {\n        parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment)\n      }\n    }\n\n    // perform scheme specific parsing\n    if (schemeHandler && schemeHandler.parse) {\n      schemeHandler.parse(parsed, options)\n      if (schemeHandler === SCHEMES.urn && parsed.nid === undefined) {\n        malformedSchemeSpecific = true\n      }\n    }\n  } else {\n    parsed.error = parsed.error || 'URI can not be parsed.'\n  }\n  return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme }\n}\n\n/**\n * @param {string} uri\n * @param {import('./types/index').Options} [opts]\n * @returns\n */\nfunction parse (uri, opts) {\n  return parseWithStatus(uri, opts).parsed\n}\n\n/**\n * @param {string} uri\n * @param {import('./types/index').Options} [opts]\n * @returns {string}\n */\nfunction normalizeString (uri, opts) {\n  return normalizeStringWithStatus(uri, opts).normalized\n}\n\n/**\n * @param {string} uri\n * @param {import('./types/index').Options} [opts]\n * @returns {{ normalized: string, malformedAuthorityOrPort: boolean, malformedPercentEncoding: boolean, malformedSchemeSpecific: boolean, malformedHost: boolean, malformedScheme: boolean }}\n */\nfunction normalizeStringWithStatus (uri, opts) {\n  const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts)\n  return {\n    normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),\n    malformedAuthorityOrPort,\n    malformedPercentEncoding,\n    malformedSchemeSpecific,\n    malformedHost,\n    malformedScheme\n  }\n}\n\n/**\n * @param {import ('./types/index').URIComponent|string} uri\n * @param {import('./types/index').Options} [opts]\n * @returns {string|undefined}\n */\nfunction normalizeComparableURI (uri, opts) {\n  if (typeof uri !== 'string' && typeof uri !== 'object') {\n    return undefined\n  }\n\n  let value\n  try {\n    value = typeof uri === 'string' ? uri : serialize(uri, opts)\n  } catch {\n    return undefined\n  }\n  const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts)\n  return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized\n}\n\nconst fastUri = {\n  SCHEMES,\n  normalize,\n  resolve,\n  resolveComponent,\n  equal,\n  serialize,\n  parse\n}\n\nmodule.exports = fastUri\nmodule.exports.default = fastUri\nmodule.exports.fastUri = fastUri\n","import * as uri from \"fast-uri\"\n\ntype URI = typeof uri & {code: string}\n;(uri as URI).code = 'require(\"ajv/dist/runtime/uri\").default'\n\nexport default uri as URI\n","export {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  AnyValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"./types\"\n\nexport {SchemaCxt, SchemaObjCxt} from \"./compile\"\nexport interface Plugin<Opts> {\n  (ajv: Ajv, options?: Opts): Ajv\n  [prop: string]: any\n}\n\nexport {KeywordCxt} from \"./compile/validate\"\nexport {DefinedError} from \"./vocabularies/errors\"\nexport {JSONType} from \"./compile/rules\"\nexport {JSONSchemaType} from \"./types/json-schema\"\nexport {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from \"./types/jtd-schema\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"./compile/codegen\"\n\nimport type {\n  Schema,\n  AnySchema,\n  AnySchemaObject,\n  SchemaObject,\n  AsyncSchema,\n  Vocabulary,\n  KeywordDefinition,\n  AddedKeywordDefinition,\n  AnyValidateFunction,\n  ValidateFunction,\n  AsyncValidateFunction,\n  ErrorObject,\n  Format,\n  AddedFormat,\n  RegExpEngine,\n  UriResolver,\n} from \"./types\"\nimport type {JSONSchemaType} from \"./types/json-schema\"\nimport type {JTDSchemaType, SomeJTDSchemaType, JTDDataType} from \"./types/jtd-schema\"\nimport ValidationError from \"./runtime/validation_error\"\nimport MissingRefError from \"./compile/ref_error\"\nimport {getRules, ValidationRules, Rule, RuleGroup, JSONType} from \"./compile/rules\"\nimport {SchemaEnv, compileSchema, resolveSchema} from \"./compile\"\nimport {Code, ValueScope} from \"./compile/codegen\"\nimport {normalizeId, getSchemaRefs} from \"./compile/resolve\"\nimport {getJSONTypes} from \"./compile/validate/dataType\"\nimport {eachItem} from \"./compile/util\"\nimport * as $dataRefSchema from \"./refs/data.json\"\n\nimport DefaultUriResolver from \"./runtime/uri\"\n\nconst defaultRegExp: RegExpEngine = (str, flags) => new RegExp(str, flags)\ndefaultRegExp.code = \"new RegExp\"\n\nconst META_IGNORE_OPTIONS: (keyof Options)[] = [\"removeAdditional\", \"useDefaults\", \"coerceTypes\"]\nconst EXT_SCOPE_NAMES = new Set([\n  \"validate\",\n  \"serialize\",\n  \"parse\",\n  \"wrapper\",\n  \"root\",\n  \"schema\",\n  \"keyword\",\n  \"pattern\",\n  \"formats\",\n  \"validate$data\",\n  \"func\",\n  \"obj\",\n  \"Error\",\n])\n\nexport type Options = CurrentOptions & DeprecatedOptions\n\nexport interface CurrentOptions {\n  // strict mode options (NEW)\n  strict?: boolean | \"log\"\n  strictSchema?: boolean | \"log\"\n  strictNumbers?: boolean | \"log\"\n  strictTypes?: boolean | \"log\"\n  strictTuples?: boolean | \"log\"\n  strictRequired?: boolean | \"log\"\n  allowMatchingProperties?: boolean // disables a strict mode restriction\n  allowUnionTypes?: boolean\n  validateFormats?: boolean\n  // validation and reporting options:\n  $data?: boolean\n  allErrors?: boolean\n  verbose?: boolean\n  discriminator?: boolean\n  unicodeRegExp?: boolean\n  timestamp?: \"string\" | \"date\" // JTD only\n  parseDate?: boolean // JTD only\n  allowDate?: boolean // JTD only\n  specialNumbers?: \"fast\" | \"null\" // JTD only\n  $comment?:\n    | true\n    | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown)\n  formats?: {[Name in string]?: Format}\n  keywords?: Vocabulary\n  schemas?: AnySchema[] | {[Key in string]?: AnySchema}\n  logger?: Logger | false\n  loadSchema?: (uri: string) => Promise<AnySchemaObject>\n  // options to modify validated data:\n  removeAdditional?: boolean | \"all\" | \"failing\"\n  useDefaults?: boolean | \"empty\"\n  coerceTypes?: boolean | \"array\"\n  // advanced options:\n  next?: boolean // NEW\n  unevaluated?: boolean // NEW\n  dynamicRef?: boolean // NEW\n  schemaId?: \"id\" | \"$id\"\n  jtd?: boolean // NEW\n  meta?: SchemaObject | boolean\n  defaultMeta?: string | AnySchemaObject\n  validateSchema?: boolean | \"log\"\n  addUsedSchema?: boolean\n  inlineRefs?: boolean | number\n  passContext?: boolean\n  loopRequired?: number\n  loopEnum?: number // NEW\n  ownProperties?: boolean\n  multipleOfPrecision?: number\n  int32range?: boolean // JTD only\n  messages?: boolean\n  code?: CodeOptions // NEW\n  uriResolver?: UriResolver\n}\n\nexport interface CodeOptions {\n  es5?: boolean\n  esm?: boolean\n  lines?: boolean\n  optimize?: boolean | number\n  formats?: Code // code to require (or construct) map of available formats - for standalone code\n  source?: boolean\n  process?: (code: string, schema?: SchemaEnv) => string\n  regExp?: RegExpEngine\n}\n\ninterface InstanceCodeOptions extends CodeOptions {\n  regExp: RegExpEngine\n  optimize: number\n}\n\ninterface DeprecatedOptions {\n  /** @deprecated */\n  ignoreKeywordsWithRef?: boolean\n  /** @deprecated */\n  jsPropertySyntax?: boolean // added instead of jsonPointers\n  /** @deprecated */\n  unicode?: boolean\n}\n\ninterface RemovedOptions {\n  format?: boolean\n  errorDataPath?: \"object\" | \"property\"\n  nullable?: boolean // \"nullable\" keyword is supported by default\n  jsonPointers?: boolean\n  extendRefs?: true | \"ignore\" | \"fail\"\n  missingRefs?: true | \"ignore\" | \"fail\"\n  processCode?: (code: string, schema?: SchemaEnv) => string\n  sourceCode?: boolean\n  strictDefaults?: boolean\n  strictKeywords?: boolean\n  uniqueItems?: boolean\n  unknownFormats?: true | string[] | \"ignore\"\n  cache?: any\n  serialize?: (schema: AnySchema) => unknown\n  ajvErrors?: boolean\n}\n\ntype OptionsInfo<T extends RemovedOptions | DeprecatedOptions> = {\n  [K in keyof T]-?: string | undefined\n}\n\nconst removedOptions: OptionsInfo<RemovedOptions> = {\n  errorDataPath: \"\",\n  format: \"`validateFormats: false` can be used instead.\",\n  nullable: '\"nullable\" keyword is supported by default.',\n  jsonPointers: \"Deprecated jsPropertySyntax can be used instead.\",\n  extendRefs: \"Deprecated ignoreKeywordsWithRef can be used instead.\",\n  missingRefs: \"Pass empty schema with $id that should be ignored to ajv.addSchema.\",\n  processCode: \"Use option `code: {process: (code, schemaEnv: object) => string}`\",\n  sourceCode: \"Use option `code: {source: true}`\",\n  strictDefaults: \"It is default now, see option `strict`.\",\n  strictKeywords: \"It is default now, see option `strict`.\",\n  uniqueItems: '\"uniqueItems\" keyword is always validated.',\n  unknownFormats: \"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).\",\n  cache: \"Map is used as cache, schema object as key.\",\n  serialize: \"Map is used as cache, schema object as key.\",\n  ajvErrors: \"It is default now.\",\n}\n\nconst deprecatedOptions: OptionsInfo<DeprecatedOptions> = {\n  ignoreKeywordsWithRef: \"\",\n  jsPropertySyntax: \"\",\n  unicode: '\"minLength\"/\"maxLength\" account for unicode characters by default.',\n}\n\ntype RequiredInstanceOptions = {\n  [K in\n    | \"strictSchema\"\n    | \"strictNumbers\"\n    | \"strictTypes\"\n    | \"strictTuples\"\n    | \"strictRequired\"\n    | \"inlineRefs\"\n    | \"loopRequired\"\n    | \"loopEnum\"\n    | \"meta\"\n    | \"messages\"\n    | \"schemaId\"\n    | \"addUsedSchema\"\n    | \"validateSchema\"\n    | \"validateFormats\"\n    | \"int32range\"\n    | \"unicodeRegExp\"\n    | \"uriResolver\"]: NonNullable<Options[K]>\n} & {code: InstanceCodeOptions}\n\nexport type InstanceOptions = Options & RequiredInstanceOptions\n\nconst MAX_EXPRESSION = 200\n\n// eslint-disable-next-line complexity\nfunction requiredOptions(o: Options): RequiredInstanceOptions {\n  const s = o.strict\n  const _optz = o.code?.optimize\n  const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0\n  const regExp = o.code?.regExp ?? defaultRegExp\n  const uriResolver = o.uriResolver ?? DefaultUriResolver\n  return {\n    strictSchema: o.strictSchema ?? s ?? true,\n    strictNumbers: o.strictNumbers ?? s ?? true,\n    strictTypes: o.strictTypes ?? s ?? \"log\",\n    strictTuples: o.strictTuples ?? s ?? \"log\",\n    strictRequired: o.strictRequired ?? s ?? false,\n    code: o.code ? {...o.code, optimize, regExp} : {optimize, regExp},\n    loopRequired: o.loopRequired ?? MAX_EXPRESSION,\n    loopEnum: o.loopEnum ?? MAX_EXPRESSION,\n    meta: o.meta ?? true,\n    messages: o.messages ?? true,\n    inlineRefs: o.inlineRefs ?? true,\n    schemaId: o.schemaId ?? \"$id\",\n    addUsedSchema: o.addUsedSchema ?? true,\n    validateSchema: o.validateSchema ?? true,\n    validateFormats: o.validateFormats ?? true,\n    unicodeRegExp: o.unicodeRegExp ?? true,\n    int32range: o.int32range ?? true,\n    uriResolver: uriResolver,\n  }\n}\n\nexport interface Logger {\n  log(...args: unknown[]): unknown\n  warn(...args: unknown[]): unknown\n  error(...args: unknown[]): unknown\n}\n\nexport default class Ajv {\n  opts: InstanceOptions\n  errors?: ErrorObject[] | null // errors from the last validation\n  logger: Logger\n  // shared external scope values for compiled functions\n  readonly scope: ValueScope\n  readonly schemas: {[Key in string]?: SchemaEnv} = {}\n  readonly refs: {[Ref in string]?: SchemaEnv | string} = {}\n  readonly formats: {[Name in string]?: AddedFormat} = Object.create(null)\n  readonly RULES: ValidationRules\n  readonly _compilations: Set<SchemaEnv> = new Set()\n  private readonly _loading: {[Ref in string]?: Promise<AnySchemaObject>} = {}\n  private readonly _cache: Map<AnySchema, SchemaEnv> = new Map()\n  private readonly _metaOpts: InstanceOptions\n\n  static ValidationError = ValidationError\n  static MissingRefError = MissingRefError\n\n  constructor(opts: Options = {}) {\n    opts = this.opts = {...opts, ...requiredOptions(opts)}\n    const {es5, lines} = this.opts.code\n\n    this.scope = new ValueScope({scope: {}, prefixes: EXT_SCOPE_NAMES, es5, lines})\n    this.logger = getLogger(opts.logger)\n    const formatOpt = opts.validateFormats\n    opts.validateFormats = false\n\n    this.RULES = getRules()\n    checkOptions.call(this, removedOptions, opts, \"NOT SUPPORTED\")\n    checkOptions.call(this, deprecatedOptions, opts, \"DEPRECATED\", \"warn\")\n    this._metaOpts = getMetaSchemaOptions.call(this)\n\n    if (opts.formats) addInitialFormats.call(this)\n    this._addVocabularies()\n    this._addDefaultMetaSchema()\n    if (opts.keywords) addInitialKeywords.call(this, opts.keywords)\n    if (typeof opts.meta == \"object\") this.addMetaSchema(opts.meta)\n    addInitialSchemas.call(this)\n    opts.validateFormats = formatOpt\n  }\n\n  _addVocabularies(): void {\n    this.addKeyword(\"$async\")\n  }\n\n  _addDefaultMetaSchema(): void {\n    const {$data, meta, schemaId} = this.opts\n    let _dataRefSchema: SchemaObject = $dataRefSchema\n    if (schemaId === \"id\") {\n      _dataRefSchema = {...$dataRefSchema}\n      _dataRefSchema.id = _dataRefSchema.$id\n      delete _dataRefSchema.$id\n    }\n    if (meta && $data) this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false)\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    const {meta, schemaId} = this.opts\n    return (this.opts.defaultMeta = typeof meta == \"object\" ? meta[schemaId] || meta : undefined)\n  }\n\n  // Validate data using schema\n  // AnySchema will be compiled and cached using schema itself as a key for Map\n  validate(schema: Schema | string, data: unknown): boolean\n  validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise<unknown>\n  validate<T>(schema: Schema | JSONSchemaType<T> | string, data: unknown): data is T\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  validate<T>(schema: JTDSchemaType<T>, data: unknown): data is T\n  // This overload is only intended for typescript inference, the first\n  // argument prevents manual type annotation from matching this overload\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  validate<N extends never, T extends SomeJTDSchemaType>(\n    schema: T,\n    data: unknown\n  ): data is JTDDataType<T>\n  // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n  validate<T>(schema: AsyncSchema, data: unknown | T): Promise<T>\n  validate<T>(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise<T>\n  validate<T>(\n    schemaKeyRef: AnySchema | string, // key, ref or schema object\n    // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents\n    data: unknown | T // to be validated\n  ): boolean | Promise<T> {\n    let v: AnyValidateFunction | undefined\n    if (typeof schemaKeyRef == \"string\") {\n      v = this.getSchema<T>(schemaKeyRef)\n      if (!v) throw new Error(`no schema with key or ref \"${schemaKeyRef}\"`)\n    } else {\n      v = this.compile<T>(schemaKeyRef)\n    }\n\n    const valid = v(data)\n    if (!(\"$async\" in v)) this.errors = v.errors\n    return valid\n  }\n\n  // Create validation function for passed schema\n  // _meta: true if schema is a meta-schema. Used internally to compile meta schemas of user-defined keywords.\n  compile<T = unknown>(schema: Schema | JSONSchemaType<T>, _meta?: boolean): ValidateFunction<T>\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compile<T = unknown>(schema: JTDSchemaType<T>, _meta?: boolean): ValidateFunction<T>\n  // This overload is only intended for typescript inference, the first\n  // argument prevents manual type annotation from matching this overload\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  compile<N extends never, T extends SomeJTDSchemaType>(\n    schema: T,\n    _meta?: boolean\n  ): ValidateFunction<JTDDataType<T>>\n  compile<T = unknown>(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction<T>\n  compile<T = unknown>(schema: AnySchema, _meta?: boolean): AnyValidateFunction<T>\n  compile<T = unknown>(schema: AnySchema, _meta?: boolean): AnyValidateFunction<T> {\n    const sch = this._addSchema(schema, _meta)\n    return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction<T>\n  }\n\n  // Creates validating function for passed schema with asynchronous loading of missing schemas.\n  // `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.\n  // TODO allow passing schema URI\n  // meta - optional true to compile meta-schema\n  compileAsync<T = unknown>(\n    schema: SchemaObject | JSONSchemaType<T>,\n    _meta?: boolean\n  ): Promise<ValidateFunction<T>>\n  // Separated for type inference to work\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compileAsync<T = unknown>(schema: JTDSchemaType<T>, _meta?: boolean): Promise<ValidateFunction<T>>\n  compileAsync<T = unknown>(schema: AsyncSchema, meta?: boolean): Promise<AsyncValidateFunction<T>>\n  // eslint-disable-next-line @typescript-eslint/unified-signatures\n  compileAsync<T = unknown>(\n    schema: AnySchemaObject,\n    meta?: boolean\n  ): Promise<AnyValidateFunction<T>>\n  compileAsync<T = unknown>(\n    schema: AnySchemaObject,\n    meta?: boolean\n  ): Promise<AnyValidateFunction<T>> {\n    if (typeof this.opts.loadSchema != \"function\") {\n      throw new Error(\"options.loadSchema should be a function\")\n    }\n    const {loadSchema} = this.opts\n    return runCompileAsync.call(this, schema, meta)\n\n    async function runCompileAsync(\n      this: Ajv,\n      _schema: AnySchemaObject,\n      _meta?: boolean\n    ): Promise<AnyValidateFunction> {\n      await loadMetaSchema.call(this, _schema.$schema)\n      const sch = this._addSchema(_schema, _meta)\n      return sch.validate || _compileAsync.call(this, sch)\n    }\n\n    async function loadMetaSchema(this: Ajv, $ref?: string): Promise<void> {\n      if ($ref && !this.getSchema($ref)) {\n        await runCompileAsync.call(this, {$ref}, true)\n      }\n    }\n\n    async function _compileAsync(this: Ajv, sch: SchemaEnv): Promise<AnyValidateFunction> {\n      try {\n        return this._compileSchemaEnv(sch)\n      } catch (e) {\n        if (!(e instanceof MissingRefError)) throw e\n        checkLoaded.call(this, e)\n        await loadMissingSchema.call(this, e.missingSchema)\n        return _compileAsync.call(this, sch)\n      }\n    }\n\n    function checkLoaded(this: Ajv, {missingSchema: ref, missingRef}: MissingRefError): void {\n      if (this.refs[ref]) {\n        throw new Error(`AnySchema ${ref} is loaded but ${missingRef} cannot be resolved`)\n      }\n    }\n\n    async function loadMissingSchema(this: Ajv, ref: string): Promise<void> {\n      const _schema = await _loadSchema.call(this, ref)\n      if (!this.refs[ref]) await loadMetaSchema.call(this, _schema.$schema)\n      if (!this.refs[ref]) this.addSchema(_schema, ref, meta)\n    }\n\n    async function _loadSchema(this: Ajv, ref: string): Promise<AnySchemaObject> {\n      const p = this._loading[ref]\n      if (p) return p\n      try {\n        return await (this._loading[ref] = loadSchema(ref))\n      } finally {\n        delete this._loading[ref]\n      }\n    }\n  }\n\n  // Adds schema to the instance\n  addSchema(\n    schema: AnySchema | AnySchema[], // If array is passed, `key` will be ignored\n    key?: string, // Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n    _meta?: boolean, // true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n    _validateSchema = this.opts.validateSchema // false to skip schema validation. Used internally, option validateSchema should be used instead.\n  ): Ajv {\n    if (Array.isArray(schema)) {\n      for (const sch of schema) this.addSchema(sch, undefined, _meta, _validateSchema)\n      return this\n    }\n    let id: string | undefined\n    if (typeof schema === \"object\") {\n      const {schemaId} = this.opts\n      id = schema[schemaId]\n      if (id !== undefined && typeof id != \"string\") {\n        throw new Error(`schema ${schemaId} must be string`)\n      }\n    }\n    key = normalizeId(key || id)\n    this._checkUnique(key)\n    this.schemas[key] = this._addSchema(schema, _meta, key, _validateSchema, true)\n    return this\n  }\n\n  // Add schema that will be used to validate other schemas\n  // options in META_IGNORE_OPTIONS are alway set to false\n  addMetaSchema(\n    schema: AnySchemaObject,\n    key?: string, // schema key\n    _validateSchema = this.opts.validateSchema // false to skip schema validation, can be used to override validateSchema option for meta-schema\n  ): Ajv {\n    this.addSchema(schema, key, true, _validateSchema)\n    return this\n  }\n\n  //  Validate schema against its meta-schema\n  validateSchema(schema: AnySchema, throwOrLogError?: boolean): boolean | Promise<unknown> {\n    if (typeof schema == \"boolean\") return true\n    let $schema: string | AnySchemaObject | undefined\n    $schema = schema.$schema\n    if ($schema !== undefined && typeof $schema != \"string\") {\n      throw new Error(\"$schema must be a string\")\n    }\n    $schema = $schema || this.opts.defaultMeta || this.defaultMeta()\n    if (!$schema) {\n      this.logger.warn(\"meta-schema not available\")\n      this.errors = null\n      return true\n    }\n    const valid = this.validate($schema, schema)\n    if (!valid && throwOrLogError) {\n      const message = \"schema is invalid: \" + this.errorsText()\n      if (this.opts.validateSchema === \"log\") this.logger.error(message)\n      else throw new Error(message)\n    }\n    return valid\n  }\n\n  // Get compiled schema by `key` or `ref`.\n  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)\n  getSchema<T = unknown>(keyRef: string): AnyValidateFunction<T> | undefined {\n    let sch\n    while (typeof (sch = getSchEnv.call(this, keyRef)) == \"string\") keyRef = sch\n    if (sch === undefined) {\n      const {schemaId} = this.opts\n      const root = new SchemaEnv({schema: {}, schemaId})\n      sch = resolveSchema.call(this, root, keyRef)\n      if (!sch) return\n      this.refs[keyRef] = sch\n    }\n    return (sch.validate || this._compileSchemaEnv(sch)) as AnyValidateFunction<T> | undefined\n  }\n\n  // Remove cached schema(s).\n  // If no parameter is passed all schemas but meta-schemas are removed.\n  // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.\n  // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.\n  removeSchema(schemaKeyRef?: AnySchema | string | RegExp): Ajv {\n    if (schemaKeyRef instanceof RegExp) {\n      this._removeAllSchemas(this.schemas, schemaKeyRef)\n      this._removeAllSchemas(this.refs, schemaKeyRef)\n      return this\n    }\n    switch (typeof schemaKeyRef) {\n      case \"undefined\":\n        this._removeAllSchemas(this.schemas)\n        this._removeAllSchemas(this.refs)\n        this._cache.clear()\n        return this\n      case \"string\": {\n        const sch = getSchEnv.call(this, schemaKeyRef)\n        if (typeof sch == \"object\") this._cache.delete(sch.schema)\n        delete this.schemas[schemaKeyRef]\n        delete this.refs[schemaKeyRef]\n        return this\n      }\n      case \"object\": {\n        const cacheKey = schemaKeyRef\n        this._cache.delete(cacheKey)\n        let id = schemaKeyRef[this.opts.schemaId]\n        if (id) {\n          id = normalizeId(id)\n          delete this.schemas[id]\n          delete this.refs[id]\n        }\n        return this\n      }\n      default:\n        throw new Error(\"ajv.removeSchema: invalid parameter\")\n    }\n  }\n\n  // add \"vocabulary\" - a collection of keywords\n  addVocabulary(definitions: Vocabulary): Ajv {\n    for (const def of definitions) this.addKeyword(def)\n    return this\n  }\n\n  addKeyword(\n    kwdOrDef: string | KeywordDefinition,\n    def?: KeywordDefinition // deprecated\n  ): Ajv {\n    let keyword: string | string[]\n    if (typeof kwdOrDef == \"string\") {\n      keyword = kwdOrDef\n      if (typeof def == \"object\") {\n        this.logger.warn(\"these parameters are deprecated, see docs for addKeyword\")\n        def.keyword = keyword\n      }\n    } else if (typeof kwdOrDef == \"object\" && def === undefined) {\n      def = kwdOrDef\n      keyword = def.keyword\n      if (Array.isArray(keyword) && !keyword.length) {\n        throw new Error(\"addKeywords: keyword must be string or non-empty array\")\n      }\n    } else {\n      throw new Error(\"invalid addKeywords parameters\")\n    }\n\n    checkKeyword.call(this, keyword, def)\n    if (!def) {\n      eachItem(keyword, (kwd) => addRule.call(this, kwd))\n      return this\n    }\n    keywordMetaschema.call(this, def)\n    const definition: AddedKeywordDefinition = {\n      ...def,\n      type: getJSONTypes(def.type),\n      schemaType: getJSONTypes(def.schemaType),\n    }\n    eachItem(\n      keyword,\n      definition.type.length === 0\n        ? (k) => addRule.call(this, k, definition)\n        : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t))\n    )\n    return this\n  }\n\n  getKeyword(keyword: string): AddedKeywordDefinition | boolean {\n    const rule = this.RULES.all[keyword]\n    return typeof rule == \"object\" ? rule.definition : !!rule\n  }\n\n  // Remove keyword\n  removeKeyword(keyword: string): Ajv {\n    // TODO return type should be Ajv\n    const {RULES} = this\n    delete RULES.keywords[keyword]\n    delete RULES.all[keyword]\n    for (const group of RULES.rules) {\n      const i = group.rules.findIndex((rule) => rule.keyword === keyword)\n      if (i >= 0) group.rules.splice(i, 1)\n    }\n    return this\n  }\n\n  // Add format\n  addFormat(name: string, format: Format): Ajv {\n    if (typeof format == \"string\") format = new RegExp(format)\n    this.formats[name] = format\n    return this\n  }\n\n  errorsText(\n    errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors\n    {separator = \", \", dataVar = \"data\"}: ErrorsTextOptions = {} // optional options with properties `separator` and `dataVar`\n  ): string {\n    if (!errors || errors.length === 0) return \"No errors\"\n    return errors\n      .map((e) => `${dataVar}${e.instancePath} ${e.message}`)\n      .reduce((text, msg) => text + separator + msg)\n  }\n\n  $dataMetaSchema(metaSchema: AnySchemaObject, keywordsJsonPointers: string[]): AnySchemaObject {\n    const rules = this.RULES.all\n    metaSchema = JSON.parse(JSON.stringify(metaSchema))\n    for (const jsonPointer of keywordsJsonPointers) {\n      const segments = jsonPointer.split(\"/\").slice(1) // first segment is an empty string\n      let keywords = metaSchema\n      for (const seg of segments) keywords = keywords[seg] as AnySchemaObject\n\n      for (const key in rules) {\n        const rule = rules[key]\n        if (typeof rule != \"object\") continue\n        const {$data} = rule.definition\n        const schema = keywords[key] as AnySchemaObject | undefined\n        if ($data && schema) keywords[key] = schemaOrData(schema)\n      }\n    }\n\n    return metaSchema\n  }\n\n  private _removeAllSchemas(schemas: {[Ref in string]?: SchemaEnv | string}, regex?: RegExp): void {\n    for (const keyRef in schemas) {\n      const sch = schemas[keyRef]\n      if (!regex || regex.test(keyRef)) {\n        if (typeof sch == \"string\") {\n          delete schemas[keyRef]\n        } else if (sch && !sch.meta) {\n          this._cache.delete(sch.schema)\n          delete schemas[keyRef]\n        }\n      }\n    }\n  }\n\n  _addSchema(\n    schema: AnySchema,\n    meta?: boolean,\n    baseId?: string,\n    validateSchema = this.opts.validateSchema,\n    addSchema = this.opts.addUsedSchema\n  ): SchemaEnv {\n    let id: string | undefined\n    const {schemaId} = this.opts\n    if (typeof schema == \"object\") {\n      id = schema[schemaId]\n    } else {\n      if (this.opts.jtd) throw new Error(\"schema must be object\")\n      else if (typeof schema != \"boolean\") throw new Error(\"schema must be object or boolean\")\n    }\n    let sch = this._cache.get(schema)\n    if (sch !== undefined) return sch\n\n    baseId = normalizeId(id || baseId)\n    const localRefs = getSchemaRefs.call(this, schema, baseId)\n    sch = new SchemaEnv({schema, schemaId, meta, baseId, localRefs})\n    this._cache.set(sch.schema, sch)\n    if (addSchema && !baseId.startsWith(\"#\")) {\n      // TODO atm it is allowed to overwrite schemas without id (instead of not adding them)\n      if (baseId) this._checkUnique(baseId)\n      this.refs[baseId] = sch\n    }\n    if (validateSchema) this.validateSchema(schema, true)\n    return sch\n  }\n\n  private _checkUnique(id: string): void {\n    if (this.schemas[id] || this.refs[id]) {\n      throw new Error(`schema with key or id \"${id}\" already exists`)\n    }\n  }\n\n  private _compileSchemaEnv(sch: SchemaEnv): AnyValidateFunction {\n    if (sch.meta) this._compileMetaSchema(sch)\n    else compileSchema.call(this, sch)\n\n    /* istanbul ignore if */\n    if (!sch.validate) throw new Error(\"ajv implementation error\")\n    return sch.validate\n  }\n\n  private _compileMetaSchema(sch: SchemaEnv): void {\n    const currentOpts = this.opts\n    this.opts = this._metaOpts\n    try {\n      compileSchema.call(this, sch)\n    } finally {\n      this.opts = currentOpts\n    }\n  }\n}\n\nexport interface ErrorsTextOptions {\n  separator?: string\n  dataVar?: string\n}\n\nfunction checkOptions(\n  this: Ajv,\n  checkOpts: OptionsInfo<RemovedOptions | DeprecatedOptions>,\n  options: Options & RemovedOptions,\n  msg: string,\n  log: \"warn\" | \"error\" = \"error\"\n): void {\n  for (const key in checkOpts) {\n    const opt = key as keyof typeof checkOpts\n    if (opt in options) this.logger[log](`${msg}: option ${key}. ${checkOpts[opt]}`)\n  }\n}\n\nfunction getSchEnv(this: Ajv, keyRef: string): SchemaEnv | string | undefined {\n  keyRef = normalizeId(keyRef) // TODO tests fail without this line\n  return this.schemas[keyRef] || this.refs[keyRef]\n}\n\nfunction addInitialSchemas(this: Ajv): void {\n  const optsSchemas = this.opts.schemas\n  if (!optsSchemas) return\n  if (Array.isArray(optsSchemas)) this.addSchema(optsSchemas)\n  else for (const key in optsSchemas) this.addSchema(optsSchemas[key] as AnySchema, key)\n}\n\nfunction addInitialFormats(this: Ajv): void {\n  for (const name in this.opts.formats) {\n    const format = this.opts.formats[name]\n    if (format) this.addFormat(name, format)\n  }\n}\n\nfunction addInitialKeywords(\n  this: Ajv,\n  defs: Vocabulary | {[K in string]?: KeywordDefinition}\n): void {\n  if (Array.isArray(defs)) {\n    this.addVocabulary(defs)\n    return\n  }\n  this.logger.warn(\"keywords option as map is deprecated, pass array\")\n  for (const keyword in defs) {\n    const def = defs[keyword] as KeywordDefinition\n    if (!def.keyword) def.keyword = keyword\n    this.addKeyword(def)\n  }\n}\n\nfunction getMetaSchemaOptions(this: Ajv): InstanceOptions {\n  const metaOpts = {...this.opts}\n  for (const opt of META_IGNORE_OPTIONS) delete metaOpts[opt]\n  return metaOpts\n}\n\nconst noLogs = {log() {}, warn() {}, error() {}}\n\nfunction getLogger(logger?: Partial<Logger> | false): Logger {\n  if (logger === false) return noLogs\n  if (logger === undefined) return console\n  if (logger.log && logger.warn && logger.error) return logger as Logger\n  throw new Error(\"logger must implement log, warn and error methods\")\n}\n\nconst KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i\n\nfunction checkKeyword(this: Ajv, keyword: string | string[], def?: KeywordDefinition): void {\n  const {RULES} = this\n  eachItem(keyword, (kwd) => {\n    if (RULES.keywords[kwd]) throw new Error(`Keyword ${kwd} is already defined`)\n    if (!KEYWORD_NAME.test(kwd)) throw new Error(`Keyword ${kwd} has invalid name`)\n  })\n  if (!def) return\n  if (def.$data && !(\"code\" in def || \"validate\" in def)) {\n    throw new Error('$data keyword must have \"code\" or \"validate\" function')\n  }\n}\n\nfunction addRule(\n  this: Ajv,\n  keyword: string,\n  definition?: AddedKeywordDefinition,\n  dataType?: JSONType\n): void {\n  const post = definition?.post\n  if (dataType && post) throw new Error('keyword with \"post\" flag cannot have \"type\"')\n  const {RULES} = this\n  let ruleGroup = post ? RULES.post : RULES.rules.find(({type: t}) => t === dataType)\n  if (!ruleGroup) {\n    ruleGroup = {type: dataType, rules: []}\n    RULES.rules.push(ruleGroup)\n  }\n  RULES.keywords[keyword] = true\n  if (!definition) return\n\n  const rule: Rule = {\n    keyword,\n    definition: {\n      ...definition,\n      type: getJSONTypes(definition.type),\n      schemaType: getJSONTypes(definition.schemaType),\n    },\n  }\n  if (definition.before) addBeforeRule.call(this, ruleGroup, rule, definition.before)\n  else ruleGroup.rules.push(rule)\n  RULES.all[keyword] = rule\n  definition.implements?.forEach((kwd) => this.addKeyword(kwd))\n}\n\nfunction addBeforeRule(this: Ajv, ruleGroup: RuleGroup, rule: Rule, before: string): void {\n  const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before)\n  if (i >= 0) {\n    ruleGroup.rules.splice(i, 0, rule)\n  } else {\n    ruleGroup.rules.push(rule)\n    this.logger.warn(`rule ${before} is not defined`)\n  }\n}\n\nfunction keywordMetaschema(this: Ajv, def: KeywordDefinition): void {\n  let {metaSchema} = def\n  if (metaSchema === undefined) return\n  if (def.$data && this.opts.$data) metaSchema = schemaOrData(metaSchema)\n  def.validateSchema = this.compile(metaSchema, true)\n}\n\nconst $dataRef = {\n  $ref: \"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#\",\n}\n\nfunction schemaOrData(schema: AnySchema): AnySchemaObject {\n  return {anyOf: [schema, $dataRef]}\n}\n","import type {CodeKeywordDefinition} from \"../../types\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"id\",\n  code() {\n    throw new Error('NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID')\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport MissingRefError from \"../../compile/ref_error\"\nimport {callValidateCode} from \"../code\"\nimport {_, nil, stringify, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport {SchemaEnv, resolveRef} from \"../../compile\"\nimport {mergeEvaluated} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"$ref\",\n  schemaType: \"string\",\n  code(cxt: KeywordCxt): void {\n    const {gen, schema: $ref, it} = cxt\n    const {baseId, schemaEnv: env, validateName, opts, self} = it\n    const {root} = env\n    if (($ref === \"#\" || $ref === \"#/\") && baseId === root.baseId) return callRootRef()\n    const schOrEnv = resolveRef.call(self, root, baseId, $ref)\n    if (schOrEnv === undefined) throw new MissingRefError(it.opts.uriResolver, baseId, $ref)\n    if (schOrEnv instanceof SchemaEnv) return callValidate(schOrEnv)\n    return inlineRefSchema(schOrEnv)\n\n    function callRootRef(): void {\n      if (env === root) return callRef(cxt, validateName, env, env.$async)\n      const rootName = gen.scopeValue(\"root\", {ref: root})\n      return callRef(cxt, _`${rootName}.validate`, root, root.$async)\n    }\n\n    function callValidate(sch: SchemaEnv): void {\n      const v = getValidate(cxt, sch)\n      callRef(cxt, v, sch, sch.$async)\n    }\n\n    function inlineRefSchema(sch: AnySchema): void {\n      const schName = gen.scopeValue(\n        \"schema\",\n        opts.code.source === true ? {ref: sch, code: stringify(sch)} : {ref: sch}\n      )\n      const valid = gen.name(\"valid\")\n      const schCxt = cxt.subschema(\n        {\n          schema: sch,\n          dataTypes: [],\n          schemaPath: nil,\n          topSchemaRef: schName,\n          errSchemaPath: $ref,\n        },\n        valid\n      )\n      cxt.mergeEvaluated(schCxt)\n      cxt.ok(valid)\n    }\n  },\n}\n\nexport function getValidate(cxt: KeywordCxt, sch: SchemaEnv): Code {\n  const {gen} = cxt\n  return sch.validate\n    ? gen.scopeValue(\"validate\", {ref: sch.validate})\n    : _`${gen.scopeValue(\"wrapper\", {ref: sch})}.validate`\n}\n\nexport function callRef(cxt: KeywordCxt, v: Code, sch?: SchemaEnv, $async?: boolean): void {\n  const {gen, it} = cxt\n  const {allErrors, schemaEnv: env, opts} = it\n  const passCxt = opts.passContext ? N.this : nil\n  if ($async) callAsyncRef()\n  else callSyncRef()\n\n  function callAsyncRef(): void {\n    if (!env.$async) throw new Error(\"async schema referenced by sync schema\")\n    const valid = gen.let(\"valid\")\n    gen.try(\n      () => {\n        gen.code(_`await ${callValidateCode(cxt, v, passCxt)}`)\n        addEvaluatedFrom(v) // TODO will not work with async, it has to be returned with the result\n        if (!allErrors) gen.assign(valid, true)\n      },\n      (e) => {\n        gen.if(_`!(${e} instanceof ${it.ValidationError as Name})`, () => gen.throw(e))\n        addErrorsFrom(e)\n        if (!allErrors) gen.assign(valid, false)\n      }\n    )\n    cxt.ok(valid)\n  }\n\n  function callSyncRef(): void {\n    cxt.result(\n      callValidateCode(cxt, v, passCxt),\n      () => addEvaluatedFrom(v),\n      () => addErrorsFrom(v)\n    )\n  }\n\n  function addErrorsFrom(source: Code): void {\n    const errs = _`${source}.errors`\n    gen.assign(N.vErrors, _`${N.vErrors} === null ? ${errs} : ${N.vErrors}.concat(${errs})`) // TODO tagged\n    gen.assign(N.errors, _`${N.vErrors}.length`)\n  }\n\n  function addEvaluatedFrom(source: Code): void {\n    if (!it.opts.unevaluated) return\n    const schEvaluated = sch?.validate?.evaluated\n    // TODO refactor\n    if (it.props !== true) {\n      if (schEvaluated && !schEvaluated.dynamicProps) {\n        if (schEvaluated.props !== undefined) {\n          it.props = mergeEvaluated.props(gen, schEvaluated.props, it.props)\n        }\n      } else {\n        const props = gen.var(\"props\", _`${source}.evaluated.props`)\n        it.props = mergeEvaluated.props(gen, props, it.props, Name)\n      }\n    }\n    if (it.items !== true) {\n      if (schEvaluated && !schEvaluated.dynamicItems) {\n        if (schEvaluated.items !== undefined) {\n          it.items = mergeEvaluated.items(gen, schEvaluated.items, it.items)\n        }\n      } else {\n        const items = gen.var(\"items\", _`${source}.evaluated.items`)\n        it.items = mergeEvaluated.items(gen, items, it.items, Name)\n      }\n    }\n  }\n}\n\nexport default def\n","import type {Vocabulary} from \"../../types\"\nimport idKeyword from \"./id\"\nimport refKeyword from \"./ref\"\n\nconst core: Vocabulary = [\n  \"$schema\",\n  \"$id\",\n  \"$defs\",\n  \"$vocabulary\",\n  {keyword: \"$comment\"},\n  \"definitions\",\n  idKeyword,\n  refKeyword,\n]\n\nexport default core\n","import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators, Code} from \"../../compile/codegen\"\n\nconst ops = operators\n\ntype Kwd = \"maximum\" | \"minimum\" | \"exclusiveMaximum\" | \"exclusiveMinimum\"\n\ntype Comparison = \"<=\" | \">=\" | \"<\" | \">\"\n\nconst KWDs: {[K in Kwd]: {okStr: Comparison; ok: Code; fail: Code}} = {\n  maximum: {okStr: \"<=\", ok: ops.LTE, fail: ops.GT},\n  minimum: {okStr: \">=\", ok: ops.GTE, fail: ops.LT},\n  exclusiveMaximum: {okStr: \"<\", ok: ops.LT, fail: ops.GTE},\n  exclusiveMinimum: {okStr: \">\", ok: ops.GT, fail: ops.LTE},\n}\n\nexport type LimitNumberError = ErrorObject<\n  Kwd,\n  {limit: number; comparison: Comparison},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({keyword, schemaCode}) => str`must be ${KWDs[keyword as Kwd].okStr} ${schemaCode}`,\n  params: ({keyword, schemaCode}) =>\n    _`{comparison: ${KWDs[keyword as Kwd].okStr}, limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    cxt.fail$data(_`${data} ${KWDs[keyword as Kwd].fail} ${schemaCode} || isNaN(${data})`)\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\n\nexport type MultipleOfError = ErrorObject<\n  \"multipleOf\",\n  {multipleOf: number},\n  number | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must be multiple of ${schemaCode}`,\n  params: ({schemaCode}) => _`{multipleOf: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"multipleOf\",\n  type: \"number\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, schemaCode, it} = cxt\n    // const bdt = bad$DataType(schemaCode, <string>def.schemaType, $data)\n    const prec = it.opts.multipleOfPrecision\n    const res = gen.let(\"res\")\n    const invalid = prec\n      ? _`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`\n      : _`${res} !== parseInt(${res})`\n    cxt.fail$data(_`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`)\n  },\n}\n\nexport default def\n","// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nexport default function ucs2length(str: string): number {\n  const len = str.length\n  let length = 0\n  let pos = 0\n  let value: number\n  while (pos < len) {\n    length++\n    value = str.charCodeAt(pos++)\n    if (value >= 0xd800 && value <= 0xdbff && pos < len) {\n      // high surrogate, and there is a next character\n      value = str.charCodeAt(pos)\n      if ((value & 0xfc00) === 0xdc00) pos++ // low surrogate\n    }\n  }\n  return length\n}\n\nucs2length.code = 'require(\"ajv/dist/runtime/ucs2length\").default'\n","import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport ucs2length from \"../../runtime/ucs2length\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxLength\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} characters`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxLength\", \"minLength\"],\n  type: \"string\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode, it} = cxt\n    const op = keyword === \"maxLength\" ? operators.GT : operators.LT\n    const len =\n      it.opts.unicode === false ? _`${data}.length` : _`${useFunc(cxt.gen, ucs2length)}(${data})`\n    cxt.fail$data(_`${len} ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {usePattern} from \"../code\"\nimport {useFunc} from \"../../compile/util\"\nimport {_, str} from \"../../compile/codegen\"\n\nexport type PatternError = ErrorObject<\"pattern\", {pattern: string}, string | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must match pattern \"${schemaCode}\"`,\n  params: ({schemaCode}) => _`{pattern: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"pattern\",\n  type: \"string\",\n  schemaType: \"string\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schema, schemaCode, it} = cxt\n    const u = it.opts.unicodeRegExp ? \"u\" : \"\"\n    if ($data) {\n      const {regExp} = it.opts.code\n      const regExpCode = regExp.code === \"new RegExp\" ? _`new RegExp` : useFunc(gen, regExp)\n      const valid = gen.let(\"valid\")\n      gen.try(\n        () => gen.assign(valid, _`${regExpCode}(${schemaCode}, ${u}).test(${data})`),\n        () => gen.assign(valid, false)\n      )\n      cxt.fail$data(_`!${valid}`)\n    } else {\n      const regExp = usePattern(cxt, schema)\n      cxt.fail$data(_`!${regExp}.test(${data})`)\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxProperties\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} properties`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxProperties\", \"minProperties\"],\n  type: \"object\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    const op = keyword === \"maxProperties\" ? operators.GT : operators.LT\n    cxt.fail$data(_`Object.keys(${data}).length ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {\n  checkReportMissingProp,\n  checkMissingProp,\n  reportMissingProp,\n  propertyInData,\n  noPropertyInData,\n} from \"../code\"\nimport {_, str, nil, not, Name, Code} from \"../../compile/codegen\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nexport type RequiredError = ErrorObject<\n  \"required\",\n  {missingProperty: string},\n  string[] | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {missingProperty}}) => str`must have required property '${missingProperty}'`,\n  params: ({params: {missingProperty}}) => _`{missingProperty: ${missingProperty}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"required\",\n  type: \"object\",\n  schemaType: \"array\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, schemaCode, data, $data, it} = cxt\n    const {opts} = it\n    if (!$data && schema.length === 0) return\n    const useLoop = schema.length >= opts.loopRequired\n    if (it.allErrors) allErrorsMode()\n    else exitOnErrorMode()\n\n    if (opts.strictRequired) {\n      const props = cxt.parentSchema.properties\n      const {definedProperties} = cxt.it\n      for (const requiredKey of schema) {\n        if (props?.[requiredKey] === undefined && !definedProperties.has(requiredKey)) {\n          const schemaPath = it.schemaEnv.baseId + it.errSchemaPath\n          const msg = `required property \"${requiredKey}\" is not defined at \"${schemaPath}\" (strictRequired)`\n          checkStrictMode(it, msg, it.opts.strictRequired)\n        }\n      }\n    }\n\n    function allErrorsMode(): void {\n      if (useLoop || $data) {\n        cxt.block$data(nil, loopAllRequired)\n      } else {\n        for (const prop of schema) {\n          checkReportMissingProp(cxt, prop)\n        }\n      }\n    }\n\n    function exitOnErrorMode(): void {\n      const missing = gen.let(\"missing\")\n      if (useLoop || $data) {\n        const valid = gen.let(\"valid\", true)\n        cxt.block$data(valid, () => loopUntilMissing(missing, valid))\n        cxt.ok(valid)\n      } else {\n        gen.if(checkMissingProp(cxt, schema, missing))\n        reportMissingProp(cxt, missing)\n        gen.else()\n      }\n    }\n\n    function loopAllRequired(): void {\n      gen.forOf(\"prop\", schemaCode as Code, (prop) => {\n        cxt.setParams({missingProperty: prop})\n        gen.if(noPropertyInData(gen, data, prop, opts.ownProperties), () => cxt.error())\n      })\n    }\n\n    function loopUntilMissing(missing: Name, valid: Name): void {\n      cxt.setParams({missingProperty: missing})\n      gen.forOf(\n        missing,\n        schemaCode as Code,\n        () => {\n          gen.assign(valid, propertyInData(gen, data, missing, opts.ownProperties))\n          gen.if(not(valid), () => {\n            cxt.error()\n            gen.break()\n          })\n        },\n        nil\n      )\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, operators} from \"../../compile/codegen\"\n\nconst error: KeywordErrorDefinition = {\n  message({keyword, schemaCode}) {\n    const comp = keyword === \"maxItems\" ? \"more\" : \"fewer\"\n    return str`must NOT have ${comp} than ${schemaCode} items`\n  },\n  params: ({schemaCode}) => _`{limit: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"maxItems\", \"minItems\"],\n  type: \"array\",\n  schemaType: \"number\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {keyword, data, schemaCode} = cxt\n    const op = keyword === \"maxItems\" ? operators.GT : operators.LT\n    cxt.fail$data(_`${data}.length ${op} ${schemaCode}`)\n  },\n}\n\nexport default def\n","// https://github.com/ajv-validator/ajv/issues/889\nimport * as equal from \"fast-deep-equal\"\n\ntype Equal = typeof equal & {code: string}\n;(equal as Equal).code = 'require(\"ajv/dist/runtime/equal\").default'\n\nexport default equal as Equal\n","import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkDataTypes, getSchemaTypes, DataType} from \"../../compile/validate/dataType\"\nimport {_, str, Name} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type UniqueItemsError = ErrorObject<\n  \"uniqueItems\",\n  {i: number; j: number},\n  boolean | {$data: string}\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {i, j}}) =>\n    str`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,\n  params: ({params: {i, j}}) => _`{i: ${i}, j: ${j}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"uniqueItems\",\n  type: \"array\",\n  schemaType: \"boolean\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt\n    if (!$data && !schema) return\n    const valid = gen.let(\"valid\")\n    const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : []\n    cxt.block$data(valid, validateUniqueItems, _`${schemaCode} === false`)\n    cxt.ok(valid)\n\n    function validateUniqueItems(): void {\n      const i = gen.let(\"i\", _`${data}.length`)\n      const j = gen.let(\"j\")\n      cxt.setParams({i, j})\n      gen.assign(valid, true)\n      gen.if(_`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j))\n    }\n\n    function canOptimize(): boolean {\n      return itemTypes.length > 0 && !itemTypes.some((t) => t === \"object\" || t === \"array\")\n    }\n\n    function loopN(i: Name, j: Name): void {\n      const item = gen.name(\"item\")\n      const wrongType = checkDataTypes(itemTypes, item, it.opts.strictNumbers, DataType.Wrong)\n      const indices = gen.const(\"indices\", _`{}`)\n      gen.for(_`;${i}--;`, () => {\n        gen.let(item, _`${data}[${i}]`)\n        gen.if(wrongType, _`continue`)\n        if (itemTypes.length > 1) gen.if(_`typeof ${item} == \"string\"`, _`${item} += \"_\"`)\n        gen\n          .if(_`typeof ${indices}[${item}] == \"number\"`, () => {\n            gen.assign(j, _`${indices}[${item}]`)\n            cxt.error()\n            gen.assign(valid, false).break()\n          })\n          .code(_`${indices}[${item}] = ${i}`)\n      })\n    }\n\n    function loopN2(i: Name, j: Name): void {\n      const eql = useFunc(gen, equal)\n      const outer = gen.name(\"outer\")\n      gen.label(outer).for(_`;${i}--;`, () =>\n        gen.for(_`${j} = ${i}; ${j}--;`, () =>\n          gen.if(_`${eql}(${data}[${i}], ${data}[${j}])`, () => {\n            cxt.error()\n            gen.assign(valid, false).break(outer)\n          })\n        )\n      )\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type ConstError = ErrorObject<\"const\", {allowedValue: any}>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must be equal to constant\",\n  params: ({schemaCode}) => _`{allowedValue: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"const\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schemaCode, schema} = cxt\n    if ($data || (schema && typeof schema == \"object\")) {\n      cxt.fail$data(_`!${useFunc(gen, equal)}(${data}, ${schemaCode})`)\n    } else {\n      cxt.fail(_`${schema} !== ${data}`)\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, or, Name, Code} from \"../../compile/codegen\"\nimport {useFunc} from \"../../compile/util\"\nimport equal from \"../../runtime/equal\"\n\nexport type EnumError = ErrorObject<\"enum\", {allowedValues: any[]}, any[] | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must be equal to one of the allowed values\",\n  params: ({schemaCode}) => _`{allowedValues: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"enum\",\n  schemaType: \"array\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, $data, schema, schemaCode, it} = cxt\n    if (!$data && schema.length === 0) throw new Error(\"enum must have non-empty array\")\n    const useLoop = schema.length >= it.opts.loopEnum\n    let eql: Name | undefined\n    const getEql = (): Name => (eql ??= useFunc(gen, equal))\n\n    let valid: Code\n    if (useLoop || $data) {\n      valid = gen.let(\"valid\")\n      cxt.block$data(valid, loopEnum)\n    } else {\n      /* istanbul ignore if */\n      if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n      const vSchema = gen.const(\"vSchema\", schemaCode)\n      valid = or(...schema.map((_x: unknown, i: number) => equalCode(vSchema, i)))\n    }\n    cxt.pass(valid)\n\n    function loopEnum(): void {\n      gen.assign(valid, false)\n      gen.forOf(\"v\", schemaCode as Code, (v) =>\n        gen.if(_`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break())\n      )\n    }\n\n    function equalCode(vSchema: Name, i: number): Code {\n      const sch = schema[i]\n      return typeof sch === \"object\" && sch !== null\n        ? _`${getEql()}(${data}, ${vSchema}[${i}])`\n        : _`${data} === ${sch}`\n    }\n  },\n}\n\nexport default def\n","import type {ErrorObject, Vocabulary} from \"../../types\"\nimport limitNumber, {LimitNumberError} from \"./limitNumber\"\nimport multipleOf, {MultipleOfError} from \"./multipleOf\"\nimport limitLength from \"./limitLength\"\nimport pattern, {PatternError} from \"./pattern\"\nimport limitProperties from \"./limitProperties\"\nimport required, {RequiredError} from \"./required\"\nimport limitItems from \"./limitItems\"\nimport uniqueItems, {UniqueItemsError} from \"./uniqueItems\"\nimport constKeyword, {ConstError} from \"./const\"\nimport enumKeyword, {EnumError} from \"./enum\"\n\nconst validation: Vocabulary = [\n  // number\n  limitNumber,\n  multipleOf,\n  // string\n  limitLength,\n  pattern,\n  // object\n  limitProperties,\n  required,\n  // array\n  limitItems,\n  uniqueItems,\n  // any\n  {keyword: \"type\", schemaType: [\"string\", \"array\"]},\n  {keyword: \"nullable\", schemaType: \"boolean\"},\n  constKeyword,\n  enumKeyword,\n]\n\nexport default validation\n\ntype LimitError = ErrorObject<\n  \"maxItems\" | \"minItems\" | \"minProperties\" | \"maxProperties\" | \"minLength\" | \"maxLength\",\n  {limit: number},\n  number | {$data: string}\n>\n\nexport type ValidationKeywordError =\n  | LimitError\n  | LimitNumberError\n  | MultipleOfError\n  | PatternError\n  | RequiredError\n  | UniqueItemsError\n  | ConstError\n  | EnumError\n","import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode, Type} from \"../../compile/util\"\n\nexport type AdditionalItemsError = ErrorObject<\"additionalItems\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"additionalItems\" as const,\n  type: \"array\",\n  schemaType: [\"boolean\", \"object\"],\n  before: \"uniqueItems\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {parentSchema, it} = cxt\n    const {items} = parentSchema\n    if (!Array.isArray(items)) {\n      checkStrictMode(it, '\"additionalItems\" is ignored when \"items\" is not an array of schemas')\n      return\n    }\n    validateAdditionalItems(cxt, items)\n  },\n}\n\nexport function validateAdditionalItems(cxt: KeywordCxt, items: AnySchema[]): void {\n  const {gen, schema, data, keyword, it} = cxt\n  it.items = true\n  const len = gen.const(\"len\", _`${data}.length`)\n  if (schema === false) {\n    cxt.setParams({len: items.length})\n    cxt.pass(_`${len} <= ${items.length}`)\n  } else if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n    const valid = gen.var(\"valid\", _`${len} <= ${items.length}`) // TODO var\n    gen.if(not(valid), () => validateItems(valid))\n    cxt.ok(valid)\n  }\n\n  function validateItems(valid: Name): void {\n    gen.forRange(\"i\", items.length, len, (i) => {\n      cxt.subschema({keyword, dataProp: i, dataPropType: Type.Num}, valid)\n      if (!it.allErrors) gen.if(not(valid), () => gen.break())\n    })\n  }\n}\n\nexport default def\n","import type {CodeKeywordDefinition, AnySchema, AnySchemaObject} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_} from \"../../compile/codegen\"\nimport {alwaysValidSchema, mergeEvaluated, checkStrictMode} from \"../../compile/util\"\nimport {validateArray} from \"../code\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"items\",\n  type: \"array\",\n  schemaType: [\"object\", \"array\", \"boolean\"],\n  before: \"uniqueItems\",\n  code(cxt: KeywordCxt) {\n    const {schema, it} = cxt\n    if (Array.isArray(schema)) return validateTuple(cxt, \"additionalItems\", schema)\n    it.items = true\n    if (alwaysValidSchema(it, schema)) return\n    cxt.ok(validateArray(cxt))\n  },\n}\n\nexport function validateTuple(\n  cxt: KeywordCxt,\n  extraItems: string,\n  schArr: AnySchema[] = cxt.schema\n): void {\n  const {gen, parentSchema, data, keyword, it} = cxt\n  checkStrictTuple(parentSchema)\n  if (it.opts.unevaluated && schArr.length && it.items !== true) {\n    it.items = mergeEvaluated.items(gen, schArr.length, it.items)\n  }\n  const valid = gen.name(\"valid\")\n  const len = gen.const(\"len\", _`${data}.length`)\n  schArr.forEach((sch: AnySchema, i: number) => {\n    if (alwaysValidSchema(it, sch)) return\n    gen.if(_`${len} > ${i}`, () =>\n      cxt.subschema(\n        {\n          keyword,\n          schemaProp: i,\n          dataProp: i,\n        },\n        valid\n      )\n    )\n    cxt.ok(valid)\n  })\n\n  function checkStrictTuple(sch: AnySchemaObject): void {\n    const {opts, errSchemaPath} = it\n    const l = schArr.length\n    const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false)\n    if (opts.strictTuples && !fullTuple) {\n      const msg = `\"${keyword}\" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path \"${errSchemaPath}\"`\n      checkStrictMode(it, msg, opts.strictTuples)\n    }\n  }\n}\n\nexport default def\n","import type {CodeKeywordDefinition} from \"../../types\"\nimport {validateTuple} from \"./items\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"prefixItems\",\n  type: \"array\",\n  schemaType: [\"array\"],\n  before: \"uniqueItems\",\n  code: (cxt) => validateTuple(cxt, \"items\"),\n}\n\nexport default def\n","import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {validateArray} from \"../code\"\nimport {validateAdditionalItems} from \"./additionalItems\"\n\nexport type ItemsError = ErrorObject<\"items\", {limit: number}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {len}}) => str`must NOT have more than ${len} items`,\n  params: ({params: {len}}) => _`{limit: ${len}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"items\",\n  type: \"array\",\n  schemaType: [\"object\", \"boolean\"],\n  before: \"uniqueItems\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {schema, parentSchema, it} = cxt\n    const {prefixItems} = parentSchema\n    it.items = true\n    if (alwaysValidSchema(it, schema)) return\n    if (prefixItems) validateAdditionalItems(cxt, prefixItems)\n    else cxt.ok(validateArray(cxt))\n  },\n}\n\nexport default def\n","import type {\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode, Type} from \"../../compile/util\"\n\nexport type ContainsError = ErrorObject<\n  \"contains\",\n  {minContains: number; maxContains?: number},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {min, max}}) =>\n    max === undefined\n      ? str`must contain at least ${min} valid item(s)`\n      : str`must contain at least ${min} and no more than ${max} valid item(s)`,\n  params: ({params: {min, max}}) =>\n    max === undefined ? _`{minContains: ${min}}` : _`{minContains: ${min}, maxContains: ${max}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"contains\",\n  type: \"array\",\n  schemaType: [\"object\", \"boolean\"],\n  before: \"uniqueItems\",\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, data, it} = cxt\n    let min: number\n    let max: number | undefined\n    const {minContains, maxContains} = parentSchema\n    if (it.opts.next) {\n      min = minContains === undefined ? 1 : minContains\n      max = maxContains\n    } else {\n      min = 1\n    }\n    const len = gen.const(\"len\", _`${data}.length`)\n    cxt.setParams({min, max})\n    if (max === undefined && min === 0) {\n      checkStrictMode(it, `\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored`)\n      return\n    }\n    if (max !== undefined && min > max) {\n      checkStrictMode(it, `\"minContains\" > \"maxContains\" is always invalid`)\n      cxt.fail()\n      return\n    }\n    if (alwaysValidSchema(it, schema)) {\n      let cond = _`${len} >= ${min}`\n      if (max !== undefined) cond = _`${cond} && ${len} <= ${max}`\n      cxt.pass(cond)\n      return\n    }\n\n    it.items = true\n    const valid = gen.name(\"valid\")\n    if (max === undefined && min === 1) {\n      validateItems(valid, () => gen.if(valid, () => gen.break()))\n    } else if (min === 0) {\n      gen.let(valid, true)\n      if (max !== undefined) gen.if(_`${data}.length > 0`, validateItemsWithCount)\n    } else {\n      gen.let(valid, false)\n      validateItemsWithCount()\n    }\n    cxt.result(valid, () => cxt.reset())\n\n    function validateItemsWithCount(): void {\n      const schValid = gen.name(\"_valid\")\n      const count = gen.let(\"count\", 0)\n      validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)))\n    }\n\n    function validateItems(_valid: Name, block: () => void): void {\n      gen.forRange(\"i\", 0, len, (i) => {\n        cxt.subschema(\n          {\n            keyword: \"contains\",\n            dataProp: i,\n            dataPropType: Type.Num,\n            compositeRule: true,\n          },\n          _valid\n        )\n        block()\n      })\n    }\n\n    function checkLimits(count: Name): void {\n      gen.code(_`${count}++`)\n      if (max === undefined) {\n        gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true).break())\n      } else {\n        gen.if(_`${count} > ${max}`, () => gen.assign(valid, false).break())\n        if (min === 1) gen.assign(valid, true)\n        else gen.if(_`${count} >= ${min}`, () => gen.assign(valid, true))\n      }\n    }\n  },\n}\n\nexport default def\n","import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  SchemaMap,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {checkReportMissingProp, checkMissingProp, reportMissingProp, propertyInData} from \"../code\"\n\nexport type PropertyDependencies = {[K in string]?: string[]}\n\nexport interface DependenciesErrorParams {\n  property: string\n  missingProperty: string\n  depsCount: number\n  deps: string // TODO change to string[]\n}\n\ntype SchemaDependencies = SchemaMap\n\nexport type DependenciesError = ErrorObject<\n  \"dependencies\",\n  DependenciesErrorParams,\n  {[K in string]?: string[] | AnySchema}\n>\n\nexport const error: KeywordErrorDefinition = {\n  message: ({params: {property, depsCount, deps}}) => {\n    const property_ies = depsCount === 1 ? \"property\" : \"properties\"\n    return str`must have ${property_ies} ${deps} when property ${property} is present`\n  },\n  params: ({params: {property, depsCount, deps, missingProperty}}) =>\n    _`{property: ${property},\n    missingProperty: ${missingProperty},\n    depsCount: ${depsCount},\n    deps: ${deps}}`, // TODO change to reference\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"dependencies\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code(cxt: KeywordCxt) {\n    const [propDeps, schDeps] = splitDependencies(cxt)\n    validatePropertyDeps(cxt, propDeps)\n    validateSchemaDeps(cxt, schDeps)\n  },\n}\n\nfunction splitDependencies({schema}: KeywordCxt): [PropertyDependencies, SchemaDependencies] {\n  const propertyDeps: PropertyDependencies = {}\n  const schemaDeps: SchemaDependencies = {}\n  for (const key in schema) {\n    if (key === \"__proto__\") continue\n    const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps\n    deps[key] = schema[key]\n  }\n  return [propertyDeps, schemaDeps]\n}\n\nexport function validatePropertyDeps(\n  cxt: KeywordCxt,\n  propertyDeps: {[K in string]?: string[]} = cxt.schema\n): void {\n  const {gen, data, it} = cxt\n  if (Object.keys(propertyDeps).length === 0) return\n  const missing = gen.let(\"missing\")\n  for (const prop in propertyDeps) {\n    const deps = propertyDeps[prop] as string[]\n    if (deps.length === 0) continue\n    const hasProperty = propertyInData(gen, data, prop, it.opts.ownProperties)\n    cxt.setParams({\n      property: prop,\n      depsCount: deps.length,\n      deps: deps.join(\", \"),\n    })\n    if (it.allErrors) {\n      gen.if(hasProperty, () => {\n        for (const depProp of deps) {\n          checkReportMissingProp(cxt, depProp)\n        }\n      })\n    } else {\n      gen.if(_`${hasProperty} && (${checkMissingProp(cxt, deps, missing)})`)\n      reportMissingProp(cxt, missing)\n      gen.else()\n    }\n  }\n}\n\nexport function validateSchemaDeps(cxt: KeywordCxt, schemaDeps: SchemaMap = cxt.schema): void {\n  const {gen, data, keyword, it} = cxt\n  const valid = gen.name(\"valid\")\n  for (const prop in schemaDeps) {\n    if (alwaysValidSchema(it, schemaDeps[prop] as AnySchema)) continue\n    gen.if(\n      propertyInData(gen, data, prop, it.opts.ownProperties),\n      () => {\n        const schCxt = cxt.subschema({keyword, schemaProp: prop}, valid)\n        cxt.mergeValidEvaluated(schCxt, valid)\n      },\n      () => gen.var(valid, true) // TODO var\n    )\n    cxt.ok(valid)\n  }\n}\n\nexport default def\n","import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, not} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nexport type PropertyNamesError = ErrorObject<\"propertyNames\", {propertyName: string}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: \"property name must be valid\",\n  params: ({params}) => _`{propertyName: ${params.propertyName}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"propertyNames\",\n  type: \"object\",\n  schemaType: [\"object\", \"boolean\"],\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, it} = cxt\n    if (alwaysValidSchema(it, schema)) return\n    const valid = gen.name(\"valid\")\n\n    gen.forIn(\"key\", data, (key) => {\n      cxt.setParams({propertyName: key})\n      cxt.subschema(\n        {\n          keyword: \"propertyNames\",\n          data: key,\n          dataTypes: [\"string\"],\n          propertyName: key,\n          compositeRule: true,\n        },\n        valid\n      )\n      gen.if(not(valid), () => {\n        cxt.error(true)\n        if (!it.allErrors) gen.break()\n      })\n    })\n\n    cxt.ok(valid)\n  },\n}\n\nexport default def\n","import type {\n  CodeKeywordDefinition,\n  AddedKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport {allSchemaProperties, usePattern, isOwnProperty} from \"../code\"\nimport {_, nil, or, not, Code, Name} from \"../../compile/codegen\"\nimport N from \"../../compile/names\"\nimport type {SubschemaArgs} from \"../../compile/validate/subschema\"\nimport {alwaysValidSchema, schemaRefOrVal, Type} from \"../../compile/util\"\n\nexport type AdditionalPropertiesError = ErrorObject<\n  \"additionalProperties\",\n  {additionalProperty: string},\n  AnySchema\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must NOT have additional properties\",\n  params: ({params}) => _`{additionalProperty: ${params.additionalProperty}}`,\n}\n\nconst def: CodeKeywordDefinition & AddedKeywordDefinition = {\n  keyword: \"additionalProperties\",\n  type: [\"object\"],\n  schemaType: [\"boolean\", \"object\"],\n  allowUndefined: true,\n  trackErrors: true,\n  error,\n  code(cxt) {\n    const {gen, schema, parentSchema, data, errsCount, it} = cxt\n    /* istanbul ignore if */\n    if (!errsCount) throw new Error(\"ajv implementation error\")\n    const {allErrors, opts} = it\n    it.props = true\n    if (opts.removeAdditional !== \"all\" && alwaysValidSchema(it, schema)) return\n    const props = allSchemaProperties(parentSchema.properties)\n    const patProps = allSchemaProperties(parentSchema.patternProperties)\n    checkAdditionalProperties()\n    cxt.ok(_`${errsCount} === ${N.errors}`)\n\n    function checkAdditionalProperties(): void {\n      gen.forIn(\"key\", data, (key: Name) => {\n        if (!props.length && !patProps.length) additionalPropertyCode(key)\n        else gen.if(isAdditional(key), () => additionalPropertyCode(key))\n      })\n    }\n\n    function isAdditional(key: Name): Code {\n      let definedProp: Code\n      if (props.length > 8) {\n        // TODO maybe an option instead of hard-coded 8?\n        const propsSchema = schemaRefOrVal(it, parentSchema.properties, \"properties\")\n        definedProp = isOwnProperty(gen, propsSchema as Code, key)\n      } else if (props.length) {\n        definedProp = or(...props.map((p) => _`${key} === ${p}`))\n      } else {\n        definedProp = nil\n      }\n      if (patProps.length) {\n        definedProp = or(definedProp, ...patProps.map((p) => _`${usePattern(cxt, p)}.test(${key})`))\n      }\n      return not(definedProp)\n    }\n\n    function deleteAdditional(key: Name): void {\n      gen.code(_`delete ${data}[${key}]`)\n    }\n\n    function additionalPropertyCode(key: Name): void {\n      if (opts.removeAdditional === \"all\" || (opts.removeAdditional && schema === false)) {\n        deleteAdditional(key)\n        return\n      }\n\n      if (schema === false) {\n        cxt.setParams({additionalProperty: key})\n        cxt.error()\n        if (!allErrors) gen.break()\n        return\n      }\n\n      if (typeof schema == \"object\" && !alwaysValidSchema(it, schema)) {\n        const valid = gen.name(\"valid\")\n        if (opts.removeAdditional === \"failing\") {\n          applyAdditionalSchema(key, valid, false)\n          gen.if(not(valid), () => {\n            cxt.reset()\n            deleteAdditional(key)\n          })\n        } else {\n          applyAdditionalSchema(key, valid)\n          if (!allErrors) gen.if(not(valid), () => gen.break())\n        }\n      }\n    }\n\n    function applyAdditionalSchema(key: Name, valid: Name, errors?: false): void {\n      const subschema: SubschemaArgs = {\n        keyword: \"additionalProperties\",\n        dataProp: key,\n        dataPropType: Type.Str,\n      }\n      if (errors === false) {\n        Object.assign(subschema, {\n          compositeRule: true,\n          createErrors: false,\n          allErrors: false,\n        })\n      }\n      cxt.subschema(subschema, valid)\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition} from \"../../types\"\nimport {KeywordCxt} from \"../../compile/validate\"\nimport {propertyInData, allSchemaProperties} from \"../code\"\nimport {alwaysValidSchema, toHash, mergeEvaluated} from \"../../compile/util\"\nimport apDef from \"./additionalProperties\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"properties\",\n  type: \"object\",\n  schemaType: \"object\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, data, it} = cxt\n    if (it.opts.removeAdditional === \"all\" && parentSchema.additionalProperties === undefined) {\n      apDef.code(new KeywordCxt(it, apDef, \"additionalProperties\"))\n    }\n    const allProps = allSchemaProperties(schema)\n    for (const prop of allProps) {\n      it.definedProperties.add(prop)\n    }\n    if (it.opts.unevaluated && allProps.length && it.props !== true) {\n      it.props = mergeEvaluated.props(gen, toHash(allProps), it.props)\n    }\n    const properties = allProps.filter((p) => !alwaysValidSchema(it, schema[p]))\n    if (properties.length === 0) return\n    const valid = gen.name(\"valid\")\n\n    for (const prop of properties) {\n      if (hasDefault(prop)) {\n        applyPropertySchema(prop)\n      } else {\n        gen.if(propertyInData(gen, data, prop, it.opts.ownProperties))\n        applyPropertySchema(prop)\n        if (!it.allErrors) gen.else().var(valid, true)\n        gen.endIf()\n      }\n      cxt.it.definedProperties.add(prop)\n      cxt.ok(valid)\n    }\n\n    function hasDefault(prop: string): boolean | undefined {\n      return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined\n    }\n\n    function applyPropertySchema(prop: string): void {\n      cxt.subschema(\n        {\n          keyword: \"properties\",\n          schemaProp: prop,\n          dataProp: prop,\n        },\n        valid\n      )\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {allSchemaProperties, usePattern} from \"../code\"\nimport {_, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode} from \"../../compile/util\"\nimport {evaluatedPropsToName, Type} from \"../../compile/util\"\nimport {AnySchema} from \"../../types\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"patternProperties\",\n  type: \"object\",\n  schemaType: \"object\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, data, parentSchema, it} = cxt\n    const {opts} = it\n    const patterns = allSchemaProperties(schema)\n    const alwaysValidPatterns = patterns.filter((p) =>\n      alwaysValidSchema(it, schema[p] as AnySchema)\n    )\n\n    if (\n      patterns.length === 0 ||\n      (alwaysValidPatterns.length === patterns.length &&\n        (!it.opts.unevaluated || it.props === true))\n    ) {\n      return\n    }\n\n    const checkProperties =\n      opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties\n    const valid = gen.name(\"valid\")\n    if (it.props !== true && !(it.props instanceof Name)) {\n      it.props = evaluatedPropsToName(gen, it.props)\n    }\n    const {props} = it\n    validatePatternProperties()\n\n    function validatePatternProperties(): void {\n      for (const pat of patterns) {\n        if (checkProperties) checkMatchingProperties(pat)\n        if (it.allErrors) {\n          validateProperties(pat)\n        } else {\n          gen.var(valid, true) // TODO var\n          validateProperties(pat)\n          gen.if(valid)\n        }\n      }\n    }\n\n    function checkMatchingProperties(pat: string): void {\n      for (const prop in checkProperties) {\n        if (new RegExp(pat).test(prop)) {\n          checkStrictMode(\n            it,\n            `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`\n          )\n        }\n      }\n    }\n\n    function validateProperties(pat: string): void {\n      gen.forIn(\"key\", data, (key) => {\n        gen.if(_`${usePattern(cxt, pat)}.test(${key})`, () => {\n          const alwaysValid = alwaysValidPatterns.includes(pat)\n          if (!alwaysValid) {\n            cxt.subschema(\n              {\n                keyword: \"patternProperties\",\n                schemaProp: pat,\n                dataProp: key,\n                dataPropType: Type.Str,\n              },\n              valid\n            )\n          }\n\n          if (it.opts.unevaluated && props !== true) {\n            gen.assign(_`${props}[${key}]`, true)\n          } else if (!alwaysValid && !it.allErrors) {\n            // can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)\n            // or if all properties were evaluated (props === true)\n            gen.if(not(valid), () => gen.break())\n          }\n        })\n      })\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nexport type NotKeywordError = ErrorNoParams<\"not\", AnySchema>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"not\",\n  schemaType: [\"object\", \"boolean\"],\n  trackErrors: true,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, it} = cxt\n    if (alwaysValidSchema(it, schema)) {\n      cxt.fail()\n      return\n    }\n\n    const valid = gen.name(\"valid\")\n    cxt.subschema(\n      {\n        keyword: \"not\",\n        compositeRule: true,\n        createErrors: false,\n        allErrors: false,\n      },\n      valid\n    )\n\n    cxt.failResult(\n      valid,\n      () => cxt.reset(),\n      () => cxt.error()\n    )\n  },\n  error: {message: \"must NOT be valid\"},\n}\n\nexport default def\n","import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from \"../../types\"\nimport {validateUnion} from \"../code\"\n\nexport type AnyOfError = ErrorNoParams<\"anyOf\", AnySchema[]>\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"anyOf\",\n  schemaType: \"array\",\n  trackErrors: true,\n  code: validateUnion,\n  error: {message: \"must match a schema in anyOf\"},\n}\n\nexport default def\n","import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema} from \"../../compile/util\"\nimport {SchemaCxt} from \"../../compile\"\n\nexport type OneOfError = ErrorObject<\n  \"oneOf\",\n  {passingSchemas: [number, number] | null},\n  AnySchema[]\n>\n\nconst error: KeywordErrorDefinition = {\n  message: \"must match exactly one schema in oneOf\",\n  params: ({params}) => _`{passingSchemas: ${params.passing}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"oneOf\",\n  schemaType: \"array\",\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, schema, parentSchema, it} = cxt\n    /* istanbul ignore if */\n    if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n    if (it.opts.discriminator && parentSchema.discriminator) return\n    const schArr: AnySchema[] = schema\n    const valid = gen.let(\"valid\", false)\n    const passing = gen.let(\"passing\", null)\n    const schValid = gen.name(\"_valid\")\n    cxt.setParams({passing})\n    // TODO possibly fail straight away (with warning or exception) if there are two empty always valid schemas\n\n    gen.block(validateOneOf)\n\n    cxt.result(\n      valid,\n      () => cxt.reset(),\n      () => cxt.error(true)\n    )\n\n    function validateOneOf(): void {\n      schArr.forEach((sch: AnySchema, i: number) => {\n        let schCxt: SchemaCxt | undefined\n        if (alwaysValidSchema(it, sch)) {\n          gen.var(schValid, true)\n        } else {\n          schCxt = cxt.subschema(\n            {\n              keyword: \"oneOf\",\n              schemaProp: i,\n              compositeRule: true,\n            },\n            schValid\n          )\n        }\n\n        if (i > 0) {\n          gen\n            .if(_`${schValid} && ${valid}`)\n            .assign(valid, false)\n            .assign(passing, _`[${passing}, ${i}]`)\n            .else()\n        }\n\n        gen.if(schValid, () => {\n          gen.assign(valid, true)\n          gen.assign(passing, i)\n          if (schCxt) cxt.mergeEvaluated(schCxt, Name)\n        })\n      })\n    }\n  },\n}\n\nexport default def\n","import type {CodeKeywordDefinition, AnySchema} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {alwaysValidSchema} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"allOf\",\n  schemaType: \"array\",\n  code(cxt: KeywordCxt) {\n    const {gen, schema, it} = cxt\n    /* istanbul ignore if */\n    if (!Array.isArray(schema)) throw new Error(\"ajv implementation error\")\n    const valid = gen.name(\"valid\")\n    schema.forEach((sch: AnySchema, i: number) => {\n      if (alwaysValidSchema(it, sch)) return\n      const schCxt = cxt.subschema({keyword: \"allOf\", schemaProp: i}, valid)\n      cxt.ok(valid)\n      cxt.mergeEvaluated(schCxt)\n    })\n  },\n}\n\nexport default def\n","import type {\n  CodeKeywordDefinition,\n  ErrorObject,\n  KeywordErrorDefinition,\n  AnySchema,\n} from \"../../types\"\nimport type {SchemaObjCxt} from \"../../compile\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, not, Name} from \"../../compile/codegen\"\nimport {alwaysValidSchema, checkStrictMode} from \"../../compile/util\"\n\nexport type IfKeywordError = ErrorObject<\"if\", {failingKeyword: string}, AnySchema>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params}) => str`must match \"${params.ifClause}\" schema`,\n  params: ({params}) => _`{failingKeyword: ${params.ifClause}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"if\",\n  schemaType: [\"object\", \"boolean\"],\n  trackErrors: true,\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, parentSchema, it} = cxt\n    if (parentSchema.then === undefined && parentSchema.else === undefined) {\n      checkStrictMode(it, '\"if\" without \"then\" and \"else\" is ignored')\n    }\n    const hasThen = hasSchema(it, \"then\")\n    const hasElse = hasSchema(it, \"else\")\n    if (!hasThen && !hasElse) return\n\n    const valid = gen.let(\"valid\", true)\n    const schValid = gen.name(\"_valid\")\n    validateIf()\n    cxt.reset()\n\n    if (hasThen && hasElse) {\n      const ifClause = gen.let(\"ifClause\")\n      cxt.setParams({ifClause})\n      gen.if(schValid, validateClause(\"then\", ifClause), validateClause(\"else\", ifClause))\n    } else if (hasThen) {\n      gen.if(schValid, validateClause(\"then\"))\n    } else {\n      gen.if(not(schValid), validateClause(\"else\"))\n    }\n\n    cxt.pass(valid, () => cxt.error(true))\n\n    function validateIf(): void {\n      const schCxt = cxt.subschema(\n        {\n          keyword: \"if\",\n          compositeRule: true,\n          createErrors: false,\n          allErrors: false,\n        },\n        schValid\n      )\n      cxt.mergeEvaluated(schCxt)\n    }\n\n    function validateClause(keyword: string, ifClause?: Name): () => void {\n      return () => {\n        const schCxt = cxt.subschema({keyword}, schValid)\n        gen.assign(valid, schValid)\n        cxt.mergeValidEvaluated(schCxt, valid)\n        if (ifClause) gen.assign(ifClause, _`${keyword}`)\n        else cxt.setParams({ifClause: keyword})\n      }\n    }\n  },\n}\n\nfunction hasSchema(it: SchemaObjCxt, keyword: string): boolean {\n  const schema = it.schema[keyword]\n  return schema !== undefined && !alwaysValidSchema(it, schema)\n}\n\nexport default def\n","import type {CodeKeywordDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {checkStrictMode} from \"../../compile/util\"\n\nconst def: CodeKeywordDefinition = {\n  keyword: [\"then\", \"else\"],\n  schemaType: [\"object\", \"boolean\"],\n  code({keyword, parentSchema, it}: KeywordCxt) {\n    if (parentSchema.if === undefined) checkStrictMode(it, `\"${keyword}\" without \"if\" is ignored`)\n  },\n}\n\nexport default def\n","import type {ErrorNoParams, Vocabulary} from \"../../types\"\nimport additionalItems, {AdditionalItemsError} from \"./additionalItems\"\nimport prefixItems from \"./prefixItems\"\nimport items from \"./items\"\nimport items2020, {ItemsError} from \"./items2020\"\nimport contains, {ContainsError} from \"./contains\"\nimport dependencies, {DependenciesError} from \"./dependencies\"\nimport propertyNames, {PropertyNamesError} from \"./propertyNames\"\nimport additionalProperties, {AdditionalPropertiesError} from \"./additionalProperties\"\nimport properties from \"./properties\"\nimport patternProperties from \"./patternProperties\"\nimport notKeyword, {NotKeywordError} from \"./not\"\nimport anyOf, {AnyOfError} from \"./anyOf\"\nimport oneOf, {OneOfError} from \"./oneOf\"\nimport allOf from \"./allOf\"\nimport ifKeyword, {IfKeywordError} from \"./if\"\nimport thenElse from \"./thenElse\"\n\nexport default function getApplicator(draft2020 = false): Vocabulary {\n  const applicator = [\n    // any\n    notKeyword,\n    anyOf,\n    oneOf,\n    allOf,\n    ifKeyword,\n    thenElse,\n    // object\n    propertyNames,\n    additionalProperties,\n    dependencies,\n    properties,\n    patternProperties,\n  ]\n  // array\n  if (draft2020) applicator.push(prefixItems, items2020)\n  else applicator.push(additionalItems, items)\n  applicator.push(contains)\n  return applicator\n}\n\nexport type ApplicatorKeywordError =\n  | ErrorNoParams<\"false schema\">\n  | AdditionalItemsError\n  | ItemsError\n  | ContainsError\n  | AdditionalPropertiesError\n  | DependenciesError\n  | IfKeywordError\n  | AnyOfError\n  | OneOfError\n  | NotKeywordError\n  | PropertyNamesError\n","import type {\n  AddedFormat,\n  FormatValidator,\n  AsyncFormatValidator,\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  ErrorObject,\n} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, str, nil, or, Code, getProperty, regexpCode} from \"../../compile/codegen\"\n\ntype FormatValidate =\n  | FormatValidator<string>\n  | FormatValidator<number>\n  | AsyncFormatValidator<string>\n  | AsyncFormatValidator<number>\n  | RegExp\n  | string\n  | true\n\nexport type FormatError = ErrorObject<\"format\", {format: string}, string | {$data: string}>\n\nconst error: KeywordErrorDefinition = {\n  message: ({schemaCode}) => str`must match format \"${schemaCode}\"`,\n  params: ({schemaCode}) => _`{format: ${schemaCode}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"format\",\n  type: [\"number\", \"string\"],\n  schemaType: \"string\",\n  $data: true,\n  error,\n  code(cxt: KeywordCxt, ruleType?: string) {\n    const {gen, data, $data, schema, schemaCode, it} = cxt\n    const {opts, errSchemaPath, schemaEnv, self} = it\n    if (!opts.validateFormats) return\n\n    if ($data) validate$DataFormat()\n    else validateFormat()\n\n    function validate$DataFormat(): void {\n      const fmts = gen.scopeValue(\"formats\", {\n        ref: self.formats,\n        code: opts.code.formats,\n      })\n      const fDef = gen.const(\"fDef\", _`${fmts}[${schemaCode}]`)\n      const fType = gen.let(\"fType\")\n      const format = gen.let(\"format\")\n      // TODO simplify\n      gen.if(\n        _`typeof ${fDef} == \"object\" && !(${fDef} instanceof RegExp)`,\n        () => gen.assign(fType, _`${fDef}.type || \"string\"`).assign(format, _`${fDef}.validate`),\n        () => gen.assign(fType, _`\"string\"`).assign(format, fDef)\n      )\n      cxt.fail$data(or(unknownFmt(), invalidFmt()))\n\n      function unknownFmt(): Code {\n        if (opts.strictSchema === false) return nil\n        return _`${schemaCode} && !${format}`\n      }\n\n      function invalidFmt(): Code {\n        const callFormat = schemaEnv.$async\n          ? _`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`\n          : _`${format}(${data})`\n        const validData = _`(typeof ${format} == \"function\" ? ${callFormat} : ${format}.test(${data}))`\n        return _`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`\n      }\n    }\n\n    function validateFormat(): void {\n      const formatDef: AddedFormat | undefined = self.formats[schema]\n      if (!formatDef) {\n        unknownFormat()\n        return\n      }\n      if (formatDef === true) return\n      const [fmtType, format, fmtRef] = getFormat(formatDef)\n      if (fmtType === ruleType) cxt.pass(validCondition())\n\n      function unknownFormat(): void {\n        if (opts.strictSchema === false) {\n          self.logger.warn(unknownMsg())\n          return\n        }\n        throw new Error(unknownMsg())\n\n        function unknownMsg(): string {\n          return `unknown format \"${schema as string}\" ignored in schema at path \"${errSchemaPath}\"`\n        }\n      }\n\n      function getFormat(fmtDef: AddedFormat): [string, FormatValidate, Code] {\n        const code =\n          fmtDef instanceof RegExp\n            ? regexpCode(fmtDef)\n            : opts.code.formats\n            ? _`${opts.code.formats}${getProperty(schema)}`\n            : undefined\n        const fmt = gen.scopeValue(\"formats\", {key: schema, ref: fmtDef, code})\n        if (typeof fmtDef == \"object\" && !(fmtDef instanceof RegExp)) {\n          return [fmtDef.type || \"string\", fmtDef.validate, _`${fmt}.validate`]\n        }\n\n        return [\"string\", fmtDef, fmt]\n      }\n\n      function validCondition(): Code {\n        if (typeof formatDef == \"object\" && !(formatDef instanceof RegExp) && formatDef.async) {\n          if (!schemaEnv.$async) throw new Error(\"async format in sync schema\")\n          return _`await ${fmtRef}(${data})`\n        }\n        return typeof format == \"function\" ? _`${fmtRef}(${data})` : _`${fmtRef}.test(${data})`\n      }\n    }\n  },\n}\n\nexport default def\n","import type {Vocabulary} from \"../../types\"\nimport formatKeyword from \"./format\"\n\nconst format: Vocabulary = [formatKeyword]\n\nexport default format\n","import type {Vocabulary} from \"../types\"\n\nexport const metadataVocabulary: Vocabulary = [\n  \"title\",\n  \"description\",\n  \"default\",\n  \"deprecated\",\n  \"readOnly\",\n  \"writeOnly\",\n  \"examples\",\n]\n\nexport const contentVocabulary: Vocabulary = [\n  \"contentMediaType\",\n  \"contentEncoding\",\n  \"contentSchema\",\n]\n","import type {Vocabulary} from \"../types\"\nimport coreVocabulary from \"./core\"\nimport validationVocabulary from \"./validation\"\nimport getApplicatorVocabulary from \"./applicator\"\nimport formatVocabulary from \"./format\"\nimport {metadataVocabulary, contentVocabulary} from \"./metadata\"\n\nconst draft7Vocabularies: Vocabulary[] = [\n  coreVocabulary,\n  validationVocabulary,\n  getApplicatorVocabulary(),\n  formatVocabulary,\n  metadataVocabulary,\n  contentVocabulary,\n]\n\nexport default draft7Vocabularies\n","import type {ErrorObject} from \"../../types\"\n\nexport enum DiscrError {\n  Tag = \"tag\",\n  Mapping = \"mapping\",\n}\n\nexport type DiscrErrorObj<E extends DiscrError> = ErrorObject<\n  \"discriminator\",\n  {error: E; tag: string; tagValue: unknown},\n  string\n>\n","import type {CodeKeywordDefinition, AnySchemaObject, KeywordErrorDefinition} from \"../../types\"\nimport type {KeywordCxt} from \"../../compile/validate\"\nimport {_, getProperty, Name} from \"../../compile/codegen\"\nimport {DiscrError, DiscrErrorObj} from \"../discriminator/types\"\nimport {resolveRef, SchemaEnv} from \"../../compile\"\nimport MissingRefError from \"../../compile/ref_error\"\nimport {schemaHasRulesButRef} from \"../../compile/util\"\n\nexport type DiscriminatorError = DiscrErrorObj<DiscrError.Tag> | DiscrErrorObj<DiscrError.Mapping>\n\nconst error: KeywordErrorDefinition = {\n  message: ({params: {discrError, tagName}}) =>\n    discrError === DiscrError.Tag\n      ? `tag \"${tagName}\" must be string`\n      : `value of tag \"${tagName}\" must be in oneOf`,\n  params: ({params: {discrError, tag, tagName}}) =>\n    _`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`,\n}\n\nconst def: CodeKeywordDefinition = {\n  keyword: \"discriminator\",\n  type: \"object\",\n  schemaType: \"object\",\n  error,\n  code(cxt: KeywordCxt) {\n    const {gen, data, schema, parentSchema, it} = cxt\n    const {oneOf} = parentSchema\n    if (!it.opts.discriminator) {\n      throw new Error(\"discriminator: requires discriminator option\")\n    }\n    const tagName = schema.propertyName\n    if (typeof tagName != \"string\") throw new Error(\"discriminator: requires propertyName\")\n    if (schema.mapping) throw new Error(\"discriminator: mapping is not supported\")\n    if (!oneOf) throw new Error(\"discriminator: requires oneOf keyword\")\n    const valid = gen.let(\"valid\", false)\n    const tag = gen.const(\"tag\", _`${data}${getProperty(tagName)}`)\n    gen.if(\n      _`typeof ${tag} == \"string\"`,\n      () => validateMapping(),\n      () => cxt.error(false, {discrError: DiscrError.Tag, tag, tagName})\n    )\n    cxt.ok(valid)\n\n    function validateMapping(): void {\n      const mapping = getMapping()\n      gen.if(false)\n      for (const tagValue in mapping) {\n        gen.elseIf(_`${tag} === ${tagValue}`)\n        gen.assign(valid, applyTagSchema(mapping[tagValue]))\n      }\n      gen.else()\n      cxt.error(false, {discrError: DiscrError.Mapping, tag, tagName})\n      gen.endIf()\n    }\n\n    function applyTagSchema(schemaProp?: number): Name {\n      const _valid = gen.name(\"valid\")\n      const schCxt = cxt.subschema({keyword: \"oneOf\", schemaProp}, _valid)\n      cxt.mergeEvaluated(schCxt, Name)\n      return _valid\n    }\n\n    function getMapping(): {[T in string]?: number} {\n      const oneOfMapping: {[T in string]?: number} = {}\n      const topRequired = hasRequired(parentSchema)\n      let tagRequired = true\n      for (let i = 0; i < oneOf.length; i++) {\n        let sch = oneOf[i]\n        if (sch?.$ref && !schemaHasRulesButRef(sch, it.self.RULES)) {\n          const ref = sch.$ref\n          sch = resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref)\n          if (sch instanceof SchemaEnv) sch = sch.schema\n          if (sch === undefined) throw new MissingRefError(it.opts.uriResolver, it.baseId, ref)\n        }\n        const propSch = sch?.properties?.[tagName]\n        if (typeof propSch != \"object\") {\n          throw new Error(\n            `discriminator: oneOf subschemas (or referenced schemas) must have \"properties/${tagName}\"`\n          )\n        }\n        tagRequired = tagRequired && (topRequired || hasRequired(sch))\n        addMappings(propSch, i)\n      }\n      if (!tagRequired) throw new Error(`discriminator: \"${tagName}\" must be required`)\n      return oneOfMapping\n\n      function hasRequired({required}: AnySchemaObject): boolean {\n        return Array.isArray(required) && required.includes(tagName)\n      }\n\n      function addMappings(sch: AnySchemaObject, i: number): void {\n        if (sch.const) {\n          addMapping(sch.const, i)\n        } else if (sch.enum) {\n          for (const tagValue of sch.enum) {\n            addMapping(tagValue, i)\n          }\n        } else {\n          throw new Error(`discriminator: \"properties/${tagName}\" must have \"const\" or \"enum\"`)\n        }\n      }\n\n      function addMapping(tagValue: unknown, i: number): void {\n        if (typeof tagValue != \"string\" || tagValue in oneOfMapping) {\n          throw new Error(`discriminator: \"${tagName}\" values must be unique strings`)\n        }\n        oneOfMapping[tagValue] = i\n      }\n    }\n  },\n}\n\nexport default def\n","{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"$id\": \"http://json-schema.org/draft-07/schema#\",\n  \"title\": \"Core schema meta-schema\",\n  \"definitions\": {\n    \"schemaArray\": {\n      \"type\": \"array\",\n      \"minItems\": 1,\n      \"items\": {\"$ref\": \"#\"}\n    },\n    \"nonNegativeInteger\": {\n      \"type\": \"integer\",\n      \"minimum\": 0\n    },\n    \"nonNegativeIntegerDefault0\": {\n      \"allOf\": [{\"$ref\": \"#/definitions/nonNegativeInteger\"}, {\"default\": 0}]\n    },\n    \"simpleTypes\": {\n      \"enum\": [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n    },\n    \"stringArray\": {\n      \"type\": \"array\",\n      \"items\": {\"type\": \"string\"},\n      \"uniqueItems\": true,\n      \"default\": []\n    }\n  },\n  \"type\": [\"object\", \"boolean\"],\n  \"properties\": {\n    \"$id\": {\n      \"type\": \"string\",\n      \"format\": \"uri-reference\"\n    },\n    \"$schema\": {\n      \"type\": \"string\",\n      \"format\": \"uri\"\n    },\n    \"$ref\": {\n      \"type\": \"string\",\n      \"format\": \"uri-reference\"\n    },\n    \"$comment\": {\n      \"type\": \"string\"\n    },\n    \"title\": {\n      \"type\": \"string\"\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"default\": true,\n    \"readOnly\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"examples\": {\n      \"type\": \"array\",\n      \"items\": true\n    },\n    \"multipleOf\": {\n      \"type\": \"number\",\n      \"exclusiveMinimum\": 0\n    },\n    \"maximum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMaximum\": {\n      \"type\": \"number\"\n    },\n    \"minimum\": {\n      \"type\": \"number\"\n    },\n    \"exclusiveMinimum\": {\n      \"type\": \"number\"\n    },\n    \"maxLength\": {\"$ref\": \"#/definitions/nonNegativeInteger\"},\n    \"minLength\": {\"$ref\": \"#/definitions/nonNegativeIntegerDefault0\"},\n    \"pattern\": {\n      \"type\": \"string\",\n      \"format\": \"regex\"\n    },\n    \"additionalItems\": {\"$ref\": \"#\"},\n    \"items\": {\n      \"anyOf\": [{\"$ref\": \"#\"}, {\"$ref\": \"#/definitions/schemaArray\"}],\n      \"default\": true\n    },\n    \"maxItems\": {\"$ref\": \"#/definitions/nonNegativeInteger\"},\n    \"minItems\": {\"$ref\": \"#/definitions/nonNegativeIntegerDefault0\"},\n    \"uniqueItems\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"contains\": {\"$ref\": \"#\"},\n    \"maxProperties\": {\"$ref\": \"#/definitions/nonNegativeInteger\"},\n    \"minProperties\": {\"$ref\": \"#/definitions/nonNegativeIntegerDefault0\"},\n    \"required\": {\"$ref\": \"#/definitions/stringArray\"},\n    \"additionalProperties\": {\"$ref\": \"#\"},\n    \"definitions\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"properties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"default\": {}\n    },\n    \"patternProperties\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\"$ref\": \"#\"},\n      \"propertyNames\": {\"format\": \"regex\"},\n      \"default\": {}\n    },\n    \"dependencies\": {\n      \"type\": \"object\",\n      \"additionalProperties\": {\n        \"anyOf\": [{\"$ref\": \"#\"}, {\"$ref\": \"#/definitions/stringArray\"}]\n      }\n    },\n    \"propertyNames\": {\"$ref\": \"#\"},\n    \"const\": true,\n    \"enum\": {\n      \"type\": \"array\",\n      \"items\": true,\n      \"minItems\": 1,\n      \"uniqueItems\": true\n    },\n    \"type\": {\n      \"anyOf\": [\n        {\"$ref\": \"#/definitions/simpleTypes\"},\n        {\n          \"type\": \"array\",\n          \"items\": {\"$ref\": \"#/definitions/simpleTypes\"},\n          \"minItems\": 1,\n          \"uniqueItems\": true\n        }\n      ]\n    },\n    \"format\": {\"type\": \"string\"},\n    \"contentMediaType\": {\"type\": \"string\"},\n    \"contentEncoding\": {\"type\": \"string\"},\n    \"if\": {\"$ref\": \"#\"},\n    \"then\": {\"$ref\": \"#\"},\n    \"else\": {\"$ref\": \"#\"},\n    \"allOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"anyOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"oneOf\": {\"$ref\": \"#/definitions/schemaArray\"},\n    \"not\": {\"$ref\": \"#\"}\n  },\n  \"default\": true\n}\n","import type {AnySchemaObject} from \"./types\"\nimport AjvCore from \"./core\"\nimport draft7Vocabularies from \"./vocabularies/draft7\"\nimport discriminator from \"./vocabularies/discriminator\"\nimport * as draft7MetaSchema from \"./refs/json-schema-draft-07.json\"\n\nconst META_SUPPORT_DATA = [\"/properties\"]\n\nconst META_SCHEMA_ID = \"http://json-schema.org/draft-07/schema\"\n\nexport class Ajv extends AjvCore {\n  _addVocabularies(): void {\n    super._addVocabularies()\n    draft7Vocabularies.forEach((v) => this.addVocabulary(v))\n    if (this.opts.discriminator) this.addKeyword(discriminator)\n  }\n\n  _addDefaultMetaSchema(): void {\n    super._addDefaultMetaSchema()\n    if (!this.opts.meta) return\n    const metaSchema = this.opts.$data\n      ? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA)\n      : draft7MetaSchema\n    this.addMetaSchema(metaSchema, META_SCHEMA_ID, false)\n    this.refs[\"http://json-schema.org/schema\"] = META_SCHEMA_ID\n  }\n\n  defaultMeta(): string | AnySchemaObject | undefined {\n    return (this.opts.defaultMeta =\n      super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))\n  }\n}\n\nmodule.exports = exports = Ajv\nmodule.exports.Ajv = Ajv\nObject.defineProperty(exports, \"__esModule\", {value: true})\n\nexport default Ajv\n\nexport {\n  Format,\n  FormatDefinition,\n  AsyncFormatDefinition,\n  KeywordDefinition,\n  KeywordErrorDefinition,\n  CodeKeywordDefinition,\n  MacroKeywordDefinition,\n  FuncKeywordDefinition,\n  Vocabulary,\n  Schema,\n  SchemaObject,\n  AnySchemaObject,\n  AsyncSchema,\n  AnySchema,\n  ValidateFunction,\n  AsyncValidateFunction,\n  SchemaValidateFunction,\n  ErrorObject,\n  ErrorNoParams,\n} from \"./types\"\n\nexport {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from \"./core\"\nexport {SchemaCxt, SchemaObjCxt} from \"./compile\"\nexport {KeywordCxt} from \"./compile/validate\"\nexport {DefinedError} from \"./vocabularies/errors\"\nexport {JSONType} from \"./compile/rules\"\nexport {JSONSchemaType} from \"./types/json-schema\"\nexport {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from \"./compile/codegen\"\nexport {default as ValidationError} from \"./runtime/validation_error\"\nexport {default as MissingRefError} from \"./compile/ref_error\"\n","import type {Format, FormatDefinition} from \"ajv\"\nimport type {FormatValidator, FormatCompare} from \"ajv/dist/types\"\n\nexport type FormatMode = \"fast\" | \"full\"\n\nexport type FormatName =\n  | \"date\"\n  | \"time\"\n  | \"date-time\"\n  | \"iso-time\"\n  | \"iso-date-time\"\n  | \"duration\"\n  | \"uri\"\n  | \"uri-reference\"\n  | \"uri-template\"\n  | \"url\"\n  | \"email\"\n  | \"hostname\"\n  | \"ipv4\"\n  | \"ipv6\"\n  | \"regex\"\n  | \"uuid\"\n  | \"json-pointer\"\n  | \"json-pointer-uri-fragment\"\n  | \"relative-json-pointer\"\n  | \"byte\"\n  | \"int32\"\n  | \"int64\"\n  | \"float\"\n  | \"double\"\n  | \"password\"\n  | \"binary\"\n\nexport type DefinedFormats = {\n  [key in FormatName]: Format\n}\n\nfunction fmtDef(\n  validate: RegExp | FormatValidator<string>,\n  compare: FormatCompare<string>\n): FormatDefinition<string> {\n  return {validate, compare}\n}\n\nexport const fullFormats: DefinedFormats = {\n  // date: http://tools.ietf.org/html/rfc3339#section-5.6\n  date: fmtDef(date, compareDate),\n  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6\n  time: fmtDef(getTime(true), compareTime),\n  \"date-time\": fmtDef(getDateTime(true), compareDateTime),\n  \"iso-time\": fmtDef(getTime(), compareIsoTime),\n  \"iso-date-time\": fmtDef(getDateTime(), compareIsoDateTime),\n  // duration: https://tools.ietf.org/html/rfc3339#appendix-A\n  duration: /^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/,\n  uri,\n  \"uri-reference\":\n    /^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,\n  // uri-template: https://tools.ietf.org/html/rfc6570\n  \"uri-template\":\n    /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,\n  // For the source: https://gist.github.com/dperini/729294\n  // For test cases: https://mathiasbynens.be/demo/url-regex\n  url: /^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,\n  email:\n    /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n  hostname:\n    /^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i,\n  // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n  ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/,\n  ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i,\n  regex,\n  // uuid: http://tools.ietf.org/html/rfc4122\n  uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,\n  // JSON-pointer: https://tools.ietf.org/html/rfc6901\n  // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A\n  \"json-pointer\": /^(?:\\/(?:[^~/]|~0|~1)*)*$/,\n  \"json-pointer-uri-fragment\": /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,\n  // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00\n  \"relative-json-pointer\": /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,\n  // the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types\n  // byte: https://github.com/miguelmota/is-base64\n  byte,\n  // signed 32 bit integer\n  int32: {type: \"number\", validate: validateInt32},\n  // signed 64 bit integer\n  int64: {type: \"number\", validate: validateInt64},\n  // C-type float\n  float: {type: \"number\", validate: validateNumber},\n  // C-type double\n  double: {type: \"number\", validate: validateNumber},\n  // hint to the UI to hide input strings\n  password: true,\n  // unchecked string payload\n  binary: true,\n}\n\nexport const fastFormats: DefinedFormats = {\n  ...fullFormats,\n  date: fmtDef(/^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/, compareDate),\n  time: fmtDef(\n    /^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i,\n    compareTime\n  ),\n  \"date-time\": fmtDef(\n    /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\dt(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i,\n    compareDateTime\n  ),\n  \"iso-time\": fmtDef(\n    /^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,\n    compareIsoTime\n  ),\n  \"iso-date-time\": fmtDef(\n    /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s](?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,\n    compareIsoDateTime\n  ),\n  // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js\n  uri: /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/)?[^\\s]*$/i,\n  \"uri-reference\": /^(?:(?:[a-z][a-z0-9+\\-.]*:)?\\/?\\/)?(?:[^\\\\\\s#][^\\s#]*)?(?:#[^\\\\\\s]*)?$/i,\n  // email (sources from jsen validator):\n  // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363\n  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')\n  email:\n    /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n}\n\nexport const formatNames = Object.keys(fullFormats) as FormatName[]\n\nfunction isLeapYear(year: number): boolean {\n  // https://tools.ietf.org/html/rfc3339#appendix-C\n  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0)\n}\n\nconst DATE = /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/\nconst DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\n\nfunction date(str: string): boolean {\n  // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n  const matches: string[] | null = DATE.exec(str)\n  if (!matches) return false\n  const year: number = +matches[1]\n  const month: number = +matches[2]\n  const day: number = +matches[3]\n  return (\n    month >= 1 &&\n    month <= 12 &&\n    day >= 1 &&\n    day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month])\n  )\n}\n\nfunction compareDate(d1: string, d2: string): number | undefined {\n  if (!(d1 && d2)) return undefined\n  if (d1 > d2) return 1\n  if (d1 < d2) return -1\n  return 0\n}\n\nconst TIME = /^(\\d\\d):(\\d\\d):(\\d\\d(?:\\.\\d+)?)(z|([+-])(\\d\\d)(?::?(\\d\\d))?)?$/i\n\nfunction getTime(strictTimeZone?: boolean): (str: string) => boolean {\n  return function time(str: string): boolean {\n    const matches: string[] | null = TIME.exec(str)\n    if (!matches) return false\n    const hr: number = +matches[1]\n    const min: number = +matches[2]\n    const sec: number = +matches[3]\n    const tz: string | undefined = matches[4]\n    const tzSign: number = matches[5] === \"-\" ? -1 : 1\n    const tzH: number = +(matches[6] || 0)\n    const tzM: number = +(matches[7] || 0)\n    if (tzH > 23 || tzM > 59 || (strictTimeZone && !tz)) return false\n    if (hr <= 23 && min <= 59 && sec < 60) return true\n    // leap second\n    const utcMin = min - tzM * tzSign\n    const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0)\n    return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61\n  }\n}\n\nfunction compareTime(s1: string, s2: string): number | undefined {\n  if (!(s1 && s2)) return undefined\n  const t1 = new Date(\"2020-01-01T\" + s1).valueOf()\n  const t2 = new Date(\"2020-01-01T\" + s2).valueOf()\n  if (!(t1 && t2)) return undefined\n  return t1 - t2\n}\n\nfunction compareIsoTime(t1: string, t2: string): number | undefined {\n  if (!(t1 && t2)) return undefined\n  const a1 = TIME.exec(t1)\n  const a2 = TIME.exec(t2)\n  if (!(a1 && a2)) return undefined\n  t1 = a1[1] + a1[2] + a1[3]\n  t2 = a2[1] + a2[2] + a2[3]\n  if (t1 > t2) return 1\n  if (t1 < t2) return -1\n  return 0\n}\n\nconst DATE_TIME_SEPARATOR = /t|\\s/i\nfunction getDateTime(strictTimeZone?: boolean): (str: string) => boolean {\n  const time = getTime(strictTimeZone)\n\n  return function date_time(str: string): boolean {\n    // http://tools.ietf.org/html/rfc3339#section-5.6\n    const dateTime: string[] = str.split(DATE_TIME_SEPARATOR)\n    return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1])\n  }\n}\n\nfunction compareDateTime(dt1: string, dt2: string): number | undefined {\n  if (!(dt1 && dt2)) return undefined\n  const d1 = new Date(dt1).valueOf()\n  const d2 = new Date(dt2).valueOf()\n  if (!(d1 && d2)) return undefined\n  return d1 - d2\n}\n\nfunction compareIsoDateTime(dt1: string, dt2: string): number | undefined {\n  if (!(dt1 && dt2)) return undefined\n  const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR)\n  const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR)\n  const res = compareDate(d1, d2)\n  if (res === undefined) return undefined\n  return res || compareTime(t1, t2)\n}\n\nconst NOT_URI_FRAGMENT = /\\/|:/\nconst URI =\n  /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i\n\nfunction uri(str: string): boolean {\n  // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required \".\"\n  return NOT_URI_FRAGMENT.test(str) && URI.test(str)\n}\n\nconst BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm\n\nfunction byte(str: string): boolean {\n  BYTE.lastIndex = 0\n  return BYTE.test(str)\n}\n\nconst MIN_INT32 = -(2 ** 31)\nconst MAX_INT32 = 2 ** 31 - 1\n\nfunction validateInt32(value: number): boolean {\n  return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32\n}\n\nfunction validateInt64(value: number): boolean {\n  // JSON and javascript max Int is 2**53, so any int that passes isInteger is valid for Int64\n  return Number.isInteger(value)\n}\n\nfunction validateNumber(): boolean {\n  return true\n}\n\nconst Z_ANCHOR = /[^\\\\]\\\\Z/\nfunction regex(str: string): boolean {\n  if (Z_ANCHOR.test(str)) return false\n  try {\n    new RegExp(str)\n    return true\n  } catch (e) {\n    return false\n  }\n}\n","import type Ajv from \"ajv\"\nimport type {\n  Plugin,\n  CodeKeywordDefinition,\n  KeywordErrorDefinition,\n  Code,\n  Name,\n  ErrorObject,\n} from \"ajv\"\nimport type {AddedFormat} from \"ajv/dist/types\"\nimport type {Rule} from \"ajv/dist/compile/rules\"\nimport {KeywordCxt} from \"ajv\"\nimport {_, str, or, getProperty, operators} from \"ajv/dist/compile/codegen\"\n\ntype Kwd = \"formatMaximum\" | \"formatMinimum\" | \"formatExclusiveMaximum\" | \"formatExclusiveMinimum\"\n\ntype Comparison = \"<=\" | \">=\" | \"<\" | \">\"\n\nconst ops = operators\n\nconst KWDs: {[K in Kwd]: {okStr: Comparison; ok: Code; fail: Code}} = {\n  formatMaximum: {okStr: \"<=\", ok: ops.LTE, fail: ops.GT},\n  formatMinimum: {okStr: \">=\", ok: ops.GTE, fail: ops.LT},\n  formatExclusiveMaximum: {okStr: \"<\", ok: ops.LT, fail: ops.GTE},\n  formatExclusiveMinimum: {okStr: \">\", ok: ops.GT, fail: ops.LTE},\n}\n\nexport type LimitFormatError = ErrorObject<Kwd, {limit: string; comparison: Comparison}>\n\nconst error: KeywordErrorDefinition = {\n  message: ({keyword, schemaCode}) => str`should be ${KWDs[keyword as Kwd].okStr} ${schemaCode}`,\n  params: ({keyword, schemaCode}) =>\n    _`{comparison: ${KWDs[keyword as Kwd].okStr}, limit: ${schemaCode}}`,\n}\n\nexport const formatLimitDefinition: CodeKeywordDefinition = {\n  keyword: Object.keys(KWDs),\n  type: \"string\",\n  schemaType: \"string\",\n  $data: true,\n  error,\n  code(cxt) {\n    const {gen, data, schemaCode, keyword, it} = cxt\n    const {opts, self} = it\n    if (!opts.validateFormats) return\n\n    const fCxt = new KeywordCxt(it, (self.RULES.all.format as Rule).definition, \"format\")\n    if (fCxt.$data) validate$DataFormat()\n    else validateFormat()\n\n    function validate$DataFormat(): void {\n      const fmts = gen.scopeValue(\"formats\", {\n        ref: self.formats,\n        code: opts.code.formats,\n      })\n      const fmt = gen.const(\"fmt\", _`${fmts}[${fCxt.schemaCode}]`)\n      cxt.fail$data(\n        or(\n          _`typeof ${fmt} != \"object\"`,\n          _`${fmt} instanceof RegExp`,\n          _`typeof ${fmt}.compare != \"function\"`,\n          compareCode(fmt)\n        )\n      )\n    }\n\n    function validateFormat(): void {\n      const format = fCxt.schema as string\n      const fmtDef: AddedFormat | undefined = self.formats[format]\n      if (!fmtDef || fmtDef === true) return\n      if (\n        typeof fmtDef != \"object\" ||\n        fmtDef instanceof RegExp ||\n        typeof fmtDef.compare != \"function\"\n      ) {\n        throw new Error(`\"${keyword}\": format \"${format}\" does not define \"compare\" function`)\n      }\n      const fmt = gen.scopeValue(\"formats\", {\n        key: format,\n        ref: fmtDef,\n        code: opts.code.formats ? _`${opts.code.formats}${getProperty(format)}` : undefined,\n      })\n\n      cxt.fail$data(compareCode(fmt))\n    }\n\n    function compareCode(fmt: Name): Code {\n      return _`${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword as Kwd].fail} 0`\n    }\n  },\n  dependencies: [\"format\"],\n}\n\nconst formatLimitPlugin: Plugin<undefined> = (ajv: Ajv): Ajv => {\n  ajv.addKeyword(formatLimitDefinition)\n  return ajv\n}\n\nexport default formatLimitPlugin\n","import {\n  DefinedFormats,\n  FormatMode,\n  FormatName,\n  formatNames,\n  fastFormats,\n  fullFormats,\n} from \"./formats\"\nimport formatLimit from \"./limit\"\nimport type Ajv from \"ajv\"\nimport type {Plugin, Format} from \"ajv\"\nimport {_, Name} from \"ajv/dist/compile/codegen\"\n\nexport {FormatMode, FormatName} from \"./formats\"\nexport {LimitFormatError} from \"./limit\"\nexport interface FormatOptions {\n  mode?: FormatMode\n  formats?: FormatName[]\n  keywords?: boolean\n}\n\nexport type FormatsPluginOptions = FormatName[] | FormatOptions\n\nexport interface FormatsPlugin extends Plugin<FormatsPluginOptions> {\n  get: (format: FormatName, mode?: FormatMode) => Format\n}\n\nconst fullName = new Name(\"fullFormats\")\nconst fastName = new Name(\"fastFormats\")\n\nconst formatsPlugin: FormatsPlugin = (\n  ajv: Ajv,\n  opts: FormatsPluginOptions = {keywords: true}\n): Ajv => {\n  if (Array.isArray(opts)) {\n    addFormats(ajv, opts, fullFormats, fullName)\n    return ajv\n  }\n  const [formats, exportName] =\n    opts.mode === \"fast\" ? [fastFormats, fastName] : [fullFormats, fullName]\n  const list = opts.formats || formatNames\n  addFormats(ajv, list, formats, exportName)\n  if (opts.keywords) formatLimit(ajv)\n  return ajv\n}\n\nformatsPlugin.get = (name: FormatName, mode: FormatMode = \"full\"): Format => {\n  const formats = mode === \"fast\" ? fastFormats : fullFormats\n  const f = formats[name]\n  if (!f) throw new Error(`Unknown format \"${name}\"`)\n  return f\n}\n\nfunction addFormats(ajv: Ajv, list: FormatName[], fs: DefinedFormats, exportName: Name): void {\n  ajv.opts.code.formats ??= _`require(\"ajv-formats/dist/formats\").${exportName}`\n  for (const f of list) ajv.addFormat(f, fs[f])\n}\n\nmodule.exports = exports = formatsPlugin\nObject.defineProperty(exports, \"__esModule\", {value: true})\n\nexport default formatsPlugin\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport * as readline from 'readline';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { version as CLI_VERSION } from '../package.json';\nimport { myChartUserPassLogin, myChartPasskeyLogin, complete2faFlow, areCookiesValid, type TwoFaResult } from '../../../scrapers/myChart/auth/login';\nimport { MyChartRequest } from '../../../scrapers/myChart/core/myChartRequest';\nimport { getMyChartAccounts } from '../../shared/read-local-passwords/index';\nimport type { PasswordStoreEntryWithKey } from '../../shared/read-local-passwords/types';\nimport { sendNewMessage, getMessageTopics, getMessageRecipients, getVerificationToken } from '../../../scrapers/myChart/chart/messages/sendMessage';\nimport { sendReply } from '../../../scrapers/myChart/chart/messages/sendReply';\nimport { listConversations } from '../../../scrapers/myChart/chart/messages/conversations';\nimport { checkProxyContext } from '../../../scrapers/myChart/proxy/proxyContext';\nimport { sessionStore } from '../../../scrapers/myChart/core/sessionStore';\nimport { generateTotpCode } from '../../../scrapers/myChart/auth/totp';\nimport { setupTotp } from '../../../scrapers/myChart/auth/setupTotp';\nimport { saveTotpSecret, loadTotpSecret } from './totpStore';\nimport { savePasskeyCredential, loadPasskeyCredential } from './passkeyStore';\nimport { passkeyLoginWithCounterRetry } from '../../../scrapers/myChart/auth/passkeyLoginRetry';\nimport { wireSilentReauthentication } from '../../../scrapers/myChart/auth/loginModes';\nimport type { PasskeyCredential } from '../../../scrapers/myChart/auth/softwareAuthenticator';\nimport { sendTelemetryEvent, setTelemetryApp } from '../../../shared/telemetry';\nimport { checkVersion, formatUpdateNotice } from '../../../scrapers/metadata/version';\nimport { isBlockedInstance } from '../../../scrapers/myChart/auth/blockedInstances';\nimport {\n  COMMON_CAPABILITIES,\n  LESS_FREQUENTLY_USED_CAPABILITIES,\n  getCapability,\n  isPublicCapability,\n  type Capability,\n} from '../../shared/capabilities';\nimport {\n  FULL_SCRAPE_CAPABILITIES,\n  downloadAllImagingStudies,\n  renderCapabilityList,\n  resolveCliAction,\n  runCapabilityAction,\n  runPublicCapabilityAction,\n} from './capabilityActions';\nimport { renderCliHelp } from './help';\nimport { fetchResolvedMyChartDirectory } from '../../../scrapers/list-all-mycharts/refreshDirectory';\nimport { detailedMessage } from '../../../shared/detailedError';\n\n// Note: We NEVER modify or delete macOS Keychain entries. Read-only via browser password extraction.\n\n// ─── Cookie cache helpers ───\nconst COOKIE_CACHE_DIR = path.join(process.cwd(), '.cookie-cache');\n\nasync function tryLoadCachedSession(hostname: string): Promise<MyChartRequest | null> {\n  const cachePath = path.join(COOKIE_CACHE_DIR, `${hostname}.json`);\n  try {\n    const data = await fs.promises.readFile(cachePath, 'utf-8');\n    const mychartRequest = await MyChartRequest.unserialize(data);\n    if (!mychartRequest) return null;\n    const valid = await areCookiesValid(mychartRequest);\n    if (valid) return mychartRequest;\n    console.log('  Cached cookies expired, will do fresh login.');\n    return null;\n  } catch {\n    return null;\n  }\n}\n\nasync function saveCachedSession(hostname: string, mychartRequest: MyChartRequest): Promise<void> {\n  await fs.promises.mkdir(COOKIE_CACHE_DIR, { recursive: true });\n  const cachePath = path.join(COOKIE_CACHE_DIR, `${hostname}.json`);\n  await fs.promises.writeFile(cachePath, await mychartRequest.serialize());\n}\n\n// ─── Parse CLI args ───\n// Usage:\n//   npx tsx src/cli.ts --host <hostname>                        (finds creds from browser passwords)\n//   npx tsx src/cli.ts --host <hostname> --user <u> --pass <p>  (uses provided creds)\n//   npx tsx src/cli.ts --host <hostname> --2fa <code>           (provides 2FA code)\n//   npx tsx src/cli.ts --host <hostname> --no-cache             (skip cached cookies)\n//   npx tsx src/cli.ts --read-login-from-browser --host <hostname>  (read creds from browser password stores)\n//   npx tsx src/cli.ts --read-login-from-browser               (auto-pick first MyChart account from browsers)\n//   npx tsx src/cli.ts --host <hostname> --action send-message  (send a new message)\n//   npx tsx src/cli.ts --host <hostname> --action send-reply --conversation-id <id> --message <msg>\n//   npx tsx src/cli.ts --host <hostname> --action list-proxies                 (list accessible patient records)\n//   npx tsx src/cli.ts --host <hostname> --patient \"Bart Simpson\"            (read a proxy patient's chart)\n//   npx tsx src/cli.ts --host <hostname> --switch \"Bart Simpson\"             (change MyChart's active patient)\n//   npx tsx src/cli.ts --help                                                (usage + the commonly-used capabilities)\n//   npx tsx src/cli.ts --help --show-all                                     (…including the less-frequently-used ones)\n//   npx tsx src/cli.ts --list-capabilities [--show-all]                      (just the capability listing)\n//   npx tsx src/cli.ts --host <hostname> --action get_visit_notes --arg csn=123\n//   npx tsx src/cli.ts --host <hostname> --action get_medications --mode concise   (raw | standard | concise | json)\n//   npx tsx src/cli.ts --action search_mycharts --arg query=uchealth         (public: no host, no credentials)\n//   npx tsx src/cli.ts --action lookup_npi --arg npi=1234567893              (public: no host, no credentials)\n//\n// `--action` accepts any id from the shared capability registry\n// (`clients/shared/capabilities/`) and prints its result as JSON, with parameters\n// supplied by repeated `--arg name=value`. That is what keeps the CLI from\n// drifting behind the extension and the app: a capability added there is a CLI\n// command the same day, with no flag plumbing to remember.\n\ninterface CliArgs {\n  host?: string; user?: string; pass?: string; twofa?: string;\n  nocache?: boolean; readLoginFromBrowser?: boolean; action?: string;\n  conversationId?: string; message?: string; subject?: string;\n  patient?: string; switchPatient?: string;\n  setupTotp?: boolean; useSavedTotp?: boolean; disableTotp?: boolean;\n  setupPasskey?: boolean; usePasskey?: boolean; listPasskeys?: boolean;\n  deletePasskey?: boolean; local?: boolean; saveClo?: boolean;\n  help?: boolean;\n  listCapabilities?: boolean;\n  /** Include the less-frequently-used capabilities in `--help` / `--list-capabilities`. */\n  showAll?: boolean;\n  /** Repeated `--arg name=value` pairs, passed straight to the capability. */\n  capabilityArgs?: Record<string, string>;\n  /** Where media capabilities write their decoded JPEGs (default ./imaging-output). */\n  output?: string;\n  /** Output mode for read capabilities: raw | standard | concise | json (default json). */\n  mode?: string;\n}\n\nfunction parseArgs(): CliArgs {\n  const args = process.argv.slice(2);\n  const parsed: Record<string, string | boolean | Record<string, string>> = {};\n  const capabilityArgs: Record<string, string> = {};\n  parsed.capabilityArgs = capabilityArgs;\n  for (let i = 0; i < args.length; i++) {\n    if (args[i] === '--help' || args[i] === '-h') parsed.help = true;\n    else if (args[i] === '--show-all') parsed.showAll = true;\n    else if (args[i] === '--list-capabilities') parsed.listCapabilities = true;\n    // `--arg name=value`, repeatable. Whatever the chosen capability declares\n    // in the shared registry is what this accepts — no per-flag plumbing.\n    else if (args[i] === '--arg' && args[i + 1]) {\n      const pair = args[++i]!; // guarded by args[i + 1] above\n      const eq = pair.indexOf('=');\n      if (eq <= 0) {\n        console.error(`  --arg expects name=value, got \"${pair}\".`);\n        process.exit(1);\n      }\n      capabilityArgs[pair.slice(0, eq)] = pair.slice(eq + 1);\n    }\n    else if (args[i] === '--host' && args[i + 1]) parsed.host = args[++i]!;\n    else if (args[i] === '--user' && args[i + 1]) parsed.user = args[++i]!;\n    else if (args[i] === '--pass' && args[i + 1]) parsed.pass = args[++i]!;\n    else if (args[i] === '--2fa' && args[i + 1]) parsed.twofa = args[++i]!;\n    else if (args[i] === '--no-cache') parsed.nocache = true;\n    else if (args[i] === '--read-login-from-browser') parsed.readLoginFromBrowser = true;\n    else if (args[i] === '--action' && args[i + 1]) parsed.action = args[++i]!;\n    else if (args[i] === '--conversation-id' && args[i + 1]) parsed.conversationId = args[++i]!;\n    else if (args[i] === '--message' && args[i + 1]) parsed.message = args[++i]!;\n    else if (args[i] === '--subject' && args[i + 1]) parsed.subject = args[++i]!;\n    // Which patient's chart to read. A name (full or partial), a record id, or\n    // \"me\". Applies to every action; see checkProxyContext().\n    else if (args[i] === '--patient' && args[i + 1]) parsed.patient = args[++i]!;\n    // The one command that changes MyChart's server-side active patient.\n    else if (args[i] === '--switch' && args[i + 1]) parsed.switchPatient = args[++i]!;\n    else if (args[i] === '--set-up-totp') parsed.setupTotp = true;\n    else if (args[i] === '--use-saved-totp') parsed.useSavedTotp = true;\n    else if (args[i] === '--disable-totp') parsed.disableTotp = true;\n    else if (args[i] === '--set-up-passkey') parsed.setupPasskey = true;\n    else if (args[i] === '--use-passkey') parsed.usePasskey = true;\n    else if (args[i] === '--list-passkeys') parsed.listPasskeys = true;\n    else if (args[i] === '--delete-passkey') parsed.deletePasskey = true;\n    else if (args[i] === '--local') parsed.local = true;\n    else if (args[i] === '--save-clo') parsed.saveClo = true;\n    // Output directory for capabilities that produce files: images (rendersMedia) or one downloaded file (returnsFile).\n    else if (args[i] === '--output' && args[i + 1]) parsed.output = args[++i]!; // guarded by args[i + 1] check\n    // How read capabilities render their payload. Validated by the registry.\n    else if (args[i] === '--mode' && args[i + 1]) parsed.mode = args[++i]!;\n  }\n  return parsed;\n}\n\n// Parsed when the CLI runs, not when this module loads, so importing it reads no argv.\nlet cliArgs: CliArgs;\n\n// If --host provided, try to find creds from browser password stores (read-only)\nasync function resolveCredsFromBrowsers(host: string): Promise<{ user: string; pass: string } | null> {\n  console.log(`  Scanning browser passwords for ${host}...`);\n  try {\n    const accounts = await getMyChartAccounts();\n    const match = accounts.find(a => {\n      try {\n        return new URL(a.url).hostname === host;\n      } catch { return false; }\n    });\n    if (match?.user && match.pass) {\n      console.log(`  Found credentials for ${host} in browser passwords (user: ${match.user})`);\n      return { user: match.user, pass: match.pass };\n    }\n  } catch (err) {\n    console.log(`  Could not scan browser passwords: ${(err as Error).message}`);\n  }\n\n  return null;\n}\n\nlet nonInteractive = false;\n\nlet rl: readline.Interface;\n\nfunction getRL(): readline.Interface {\n  if (!rl) {\n    rl = readline.createInterface({ input: process.stdin, output: process.stdout });\n  }\n  return rl;\n}\n\nfunction closeRL() {\n  if (rl) rl.close();\n}\n\nfunction ask(question: string): Promise<string> {\n  return new Promise((resolve) => {\n    getRL().question(question, (answer) => resolve(answer.trim()));\n  });\n}\n\nfunction header(title: string) {\n  const line = '='.repeat(60);\n  console.log(`\\n${line}`);\n  console.log(`  ${title}`);\n  console.log(line);\n}\n\nfunction subheader(title: string) {\n  console.log(`\\n  -- ${title} --`);\n}\n\n// ─── Step 1: Discover or manually enter credentials ───\n\nasync function discoverAccounts(): Promise<PasswordStoreEntryWithKey[]> {\n  header('Discovering MyChart Accounts');\n  console.log('  Scanning your browsers for saved MyChart passwords...');\n  console.log('  (Chrome, Arc, Firefox)\\n');\n\n  try {\n    const accounts = await getMyChartAccounts();\n    if (accounts.length === 0) {\n      console.log('  No MyChart accounts found in your browsers.');\n    } else {\n      console.log(`  Found ${accounts.length} MyChart account(s):\\n`);\n      for (let i = 0; i < accounts.length; i++) {\n        const a = accounts[i]!; // loop condition guarantees i < accounts.length\n        const hostname = new URL(a.url).hostname;\n        console.log(`    [${i + 1}] ${hostname} - ${a.user || '(no username)'}`);\n      }\n    }\n    return accounts;\n  } catch (err) {\n    console.log('  Could not scan browsers:', (err as Error).message);\n    console.log('  You can still enter credentials manually.\\n');\n    return [];\n  }\n}\n\nasync function getCredentials(): Promise<{ hostname: string; username: string; password: string }[]> {\n  const choice = await ask('\\n  How would you like to proceed?\\n    [1] Scan browsers for saved MyChart passwords (Recommended)\\n    [2] Enter credentials manually\\n  Choice (1 or 2): ');\n\n  if (choice === '1') {\n    const accounts = await discoverAccounts();\n\n    if (accounts.length === 0) {\n      console.log('\\n  No accounts found. Falling back to manual entry.\\n');\n      return [await getManualCredentials()];\n    }\n\n    const selection = await ask(`\\n  Which accounts to scrape?\\n    [a] All of them\\n    [#] Enter number (e.g. \"1\" or \"1,3\")\\n    [m] Enter credentials manually instead\\n  Choice: `);\n\n    if (selection.toLowerCase() === 'm') {\n      return [await getManualCredentials()];\n    }\n\n    let selectedAccounts: PasswordStoreEntryWithKey[];\n\n    if (selection.toLowerCase() === 'a') {\n      selectedAccounts = accounts;\n    } else {\n      const indices = selection.split(',').map(s => parseInt(s.trim(), 10) - 1).filter(i => i >= 0 && i < accounts.length);\n      if (indices.length === 0) {\n        console.log('  Invalid selection. Using all accounts.');\n        selectedAccounts = accounts;\n      } else {\n        selectedAccounts = indices.map(i => accounts[i]!); // indices were filtered to be in range\n      }\n    }\n\n    return selectedAccounts.map(a => {\n      const hostname = new URL(a.url).hostname;\n      return {\n        hostname,\n        username: a.user || '',\n        password: a.pass || '',\n      };\n    });\n  }\n\n  return [await getManualCredentials()];\n}\n\nasync function getManualCredentials(): Promise<{ hostname: string; username: string; password: string }> {\n  console.log('\\n  Example hostnames:');\n  console.log('    - mychart.example.org');\n  console.log('    - mychart.ochsner.org');\n  console.log('    - mychart.geisinger.org\\n');\n\n  const hostname = await ask('  MyChart hostname: ');\n  const username = await ask('  Username: ');\n  const password = await ask('  Password: ');\n\n  if (!hostname || !username || !password) {\n    console.log('\\n  All fields are required. Exiting.');\n    rl.close();\n    process.exit(1);\n  }\n\n  return { hostname, username, password };\n}\n\n// ─── Types ───\n\ntype LoginCredentials =\n  | { hostname: string; passkey: PasskeyCredential }\n  | { hostname: string; username: string; password: string; totp?: string };\n\n// ─── Step 2: Login ───\n\n/**\n * Wire automatic session renewal: when a scrape's session expires mid-run,\n * makeAuthenticatedRequest calls this hook to silently log back in with\n * whatever non-interactive credentials exist (passkey, password, saved TOTP\n * secret) and refresh the cookie cache. Stores are re-read at renewal time so\n * a passkey or TOTP secret saved after login still counts.\n */\nfunction wireCliSessionRenewal(mychartRequest: MyChartRequest, creds: LoginCredentials) {\n  wireSilentReauthentication(mychartRequest, async () => ({\n    hostname: creds.hostname,\n    username: 'username' in creds ? creds.username : undefined,\n    password: 'password' in creds ? creds.password : undefined,\n    totpSecret: ('totp' in creds ? creds.totp : undefined) ?? await loadTotpSecret(creds.hostname),\n    passkey: 'passkey' in creds ? creds.passkey : await loadPasskeyCredential(creds.hostname),\n    protocol: cliArgs.local ? 'http' : undefined,\n    onPasskeyUsed: (credential) => savePasskeyCredential(creds.hostname, credential),\n  }), (renewed) => saveCachedSession(creds.hostname, renewed));\n}\n\nasync function login(creds: LoginCredentials): Promise<MyChartRequest | null> {\n  if (isBlockedInstance(creds.hostname)) {\n    console.log(`\\n  ✗ ${creds.hostname} is not supported. central.mychart.org is a portal aggregator and cannot be scraped directly. Please use the individual hospital MyChart instance instead.`);\n    return null;\n  }\n\n  console.log(`\\n  Connecting to ${creds.hostname}...`);\n\n  // Try cached session first (unless --no-cache)\n  if (!cliArgs.nocache) {\n    const cached = await tryLoadCachedSession(creds.hostname);\n    if (cached) {\n      console.log('  Using cached session (skipping login).');\n      wireCliSessionRenewal(cached, creds);\n      return cached;\n    }\n  }\n\n  try {\n    // Passkey login\n    if ('passkey' in creds) {\n      console.log(`  Attempting passkey login for ${creds.hostname}...`);\n      // MyChart enforces a strictly-increasing WebAuthn signature counter. Our\n      // stored counter can lag the server's, which rejects the first attempt;\n      // passkeyLoginWithCounterRetry bumps and retries to recover.\n      const passkeyResult = await passkeyLoginWithCounterRetry(\n        (credential) => myChartPasskeyLogin({\n          hostname: creds.hostname,\n          credential,\n          protocol: cliArgs.local ? 'http' : undefined,\n        }),\n        creds.passkey,\n      );\n\n      if (passkeyResult.state === 'logged_in') {\n        console.log('  Passkey login successful!');\n        // Persist the accepted (incremented) sign counter so the next login\n        // starts from the right place and doesn't have to retry.\n        await savePasskeyCredential(creds.hostname, creds.passkey);\n        await saveCachedSession(creds.hostname, passkeyResult.mychartRequest);\n        wireCliSessionRenewal(passkeyResult.mychartRequest, creds);\n        return passkeyResult.mychartRequest;\n      }\n\n      console.log(`  Passkey login failed (${passkeyResult.state}).`);\n      return null;\n    }\n\n    // Password login\n    const useTotpSecret = creds.totp ?? (cliArgs.useSavedTotp ? await loadTotpSecret(creds.hostname) : null);\n    if (cliArgs.useSavedTotp && !useTotpSecret) {\n      console.log(`  No saved TOTP secret found for ${creds.hostname}. Run with --set-up-totp first.`);\n      return null;\n    }\n\n    // When using TOTP, skip the SendCode call (no email needed)\n    const loginResult = await myChartUserPassLogin({\n      hostname: creds.hostname,\n      user: creds.username,\n      pass: creds.password,\n      skipSendCode: !!useTotpSecret,\n      protocol: cliArgs.local ? 'http' : undefined,\n    });\n\n    if (loginResult.state === 'invalid_login') {\n      console.log('  Login failed: Invalid username or password.');\n      return null;\n    }\n\n    if (loginResult.state === 'error') {\n      console.log(`  Login error: ${loginResult.error}`);\n      return null;\n    }\n\n    let mychartRequest = loginResult.mychartRequest;\n\n    if (loginResult.state === 'need_2fa') {\n      // Show where the code was sent (helpful for any path).\n      if (loginResult.twoFaDelivery) {\n        const { method, contact } = loginResult.twoFaDelivery;\n        if (method === 'sms') {\n          console.log(`  2FA code sent via text message${contact ? ` to ${contact}` : ''}`);\n        } else {\n          console.log(`  2FA code sent via email${contact ? ` to ${contact}` : ''}`);\n        }\n      }\n\n      // A rejected code re-prompts instead of aborting the run — 3 submissions\n      // max. complete2faFlow re-reads the 2FA page (and a fresh CSRF token) on\n      // every call, and no attempt re-sends a code (that would text or email\n      // the user again).\n      const MAX_2FA_ATTEMPTS = 3;\n      let twoFaResult: TwoFaResult;\n      for (let attempt = 1; ; attempt++) {\n        let code: string;\n        if (useTotpSecret) {\n          // Generate TOTP code locally — no email, no waiting\n          code = await generateTotpCode(useTotpSecret);\n          // The code is submitted programmatically — printing it only puts a\n          // live credential in the terminal scrollback.\n          console.log('  Generated TOTP code locally.');\n        } else if (cliArgs.twofa && attempt === 1) {\n          console.log('  Using 2FA code from --2fa arg');\n          code = cliArgs.twofa;\n        } else {\n          // Default: prompt the user for the code from their phone / email.\n          code = (await ask(attempt === 1\n            ? '  Enter 2FA code: '\n            : `  Invalid 2FA code. Try again (attempt ${attempt} of ${MAX_2FA_ATTEMPTS}): `)).trim();\n          if (!code) {\n            console.log('  No 2FA code entered. Skipping this account.');\n            return null;\n          }\n        }\n\n        twoFaResult = await complete2faFlow({\n          mychartRequest,\n          twofaCodeArray: [{ code, score: 1 }],\n          isTOTP: !!useTotpSecret,\n        });\n\n        if (twoFaResult.state === 'logged_in') break;\n\n        if (twoFaResult.state === 'error') {\n          console.log('  Error completing 2FA.');\n          return null;\n        }\n\n        // A rejected TOTP code means the stored secret is wrong; resubmitting can't help.\n        // Without a TTY nobody can answer a re-prompt — ask() on EOF'd stdin never settles.\n        if (attempt >= MAX_2FA_ATTEMPTS || useTotpSecret || !process.stdin.isTTY) {\n          console.log('  Invalid 2FA code.');\n          return null;\n        }\n      }\n\n      mychartRequest = twoFaResult.mychartRequest;\n\n      // After successful email-based 2FA, offer TOTP auto-setup\n      if (!useTotpSecret && !cliArgs.setupTotp) {\n        const existingSecret = await loadTotpSecret(creds.hostname);\n        if (!existingSecret) {\n          console.log('\\n  To let the CLI sign in automatically in the future, we can set up');\n          console.log('  a TOTP authenticator on your MyChart account (no email codes needed).');\n          const setupChoice = await ask('  Set up automatic sign-in? (y/n): ');\n          if (setupChoice.trim().toLowerCase() === 'y') {\n            console.log('  Setting up TOTP authenticator...');\n            const result = await setupTotp(mychartRequest, creds.password);\n            if (result.secret) {\n              await saveTotpSecret(creds.hostname, result.secret);\n              console.log('  TOTP configured! Future logins will use --use-saved-totp automatically.');\n            } else {\n              console.log(`  TOTP setup failed: ${result.error}`);\n              console.log('  Your session is still active but will expire in a few hours.');\n              console.log('  Without TOTP, you\\'ll need email 2FA again next time.');\n            }\n          } else {\n            console.log('  Skipped TOTP setup. Your session will expire in a few hours.');\n            console.log('  Tip: Use --set-up-totp later to enable automatic sign-in.');\n          }\n        }\n      }\n    }\n\n    console.log('  Logged in successfully!');\n    await saveCachedSession(creds.hostname, mychartRequest);\n    wireCliSessionRenewal(mychartRequest, creds);\n    return mychartRequest;\n  } catch (err) {\n    console.error('  Login failed:', (err as Error).message);\n    return null;\n  }\n}\n\n// ─── Step 3: Scrape everything ───\n//\n// The default no-`--action` run. There is no hand-written per-category\n// fetching or rendering here any more: every category is a registry\n// capability, dispatched through `runCapabilityAction` →\n// `executeCapability` like any other `--action`, so the full scrape gets\n// the same active-patient guard and prints the same JSON. What gets\n// scraped is `FULL_SCRAPE_CAPABILITIES` — derived from the registry, so a\n// read capability added there is scraped here with no CLI change.\n\nasync function scrapeAll(\n  session: { hostname: string; request: MyChartRequest },\n  password: string | undefined,\n): Promise<boolean> {\n  header(`Scraping: ${session.hostname}`);\n  console.log('  This may take a minute...');\n\n  let failures = 0;\n  for (const capability of FULL_SCRAPE_CAPABILITIES) {\n    const ok = await runCapabilityAction(\n      capability,\n      session,\n      password,\n      {},\n      cliArgs.output,\n      cliArgs.patient,\n      cliArgs.mode,\n    );\n    if (!ok) failures++;\n  }\n\n  if (failures > 0) {\n    console.log(`\\n  ${failures} of ${FULL_SCRAPE_CAPABILITIES.length} categories failed on ${session.hostname}; see above.`);\n  }\n  return failures === 0;\n}\n\n// ─── Send Message Handler ───\n\nasync function handleSendMessage(mychartRequest: MyChartRequest) {\n  header('Send New Message');\n\n  const token = await getVerificationToken(mychartRequest);\n  if (!token) {\n    console.log('  Could not get verification token. Session may have expired.');\n    return;\n  }\n\n  // Get available topics\n  const topics = await getMessageTopics(mychartRequest, token);\n  if (topics.length === 0) {\n    console.log('  No message topics available.');\n    return;\n  }\n\n  console.log('\\n  Available topics:');\n  for (let i = 0; i < topics.length; i++) {\n    console.log(`    [${i + 1}] ${topics[i]!.displayName}`); // loop bound guarantees the index\n  }\n\n  const topicChoice = await ask('\\n  Select topic number: ');\n  const topicIdx = parseInt(topicChoice, 10) - 1;\n  if (topicIdx < 0 || topicIdx >= topics.length) {\n    console.log('  Invalid topic selection.');\n    return;\n  }\n  const selectedTopic = topics[topicIdx]!; // range-checked just above\n\n  // Get available recipients\n  const recipients = await getMessageRecipients(mychartRequest, token);\n  if (recipients.length === 0) {\n    console.log('  No recipients available.');\n    return;\n  }\n\n  console.log('\\n  Available recipients:');\n  for (let i = 0; i < recipients.length; i++) {\n    const r = recipients[i]!; // loop bound guarantees the index\n    const specialty = r.specialty ? ` (${r.specialty})` : r.pcpTypeDisplayName ? ` (${r.pcpTypeDisplayName})` : '';\n    console.log(`    [${i + 1}] ${r.displayName}${specialty}`);\n  }\n\n  const recipientChoice = await ask('\\n  Select recipient number: ');\n  const recipientIdx = parseInt(recipientChoice, 10) - 1;\n  if (recipientIdx < 0 || recipientIdx >= recipients.length) {\n    console.log('  Invalid recipient selection.');\n    return;\n  }\n  const selectedRecipient = recipients[recipientIdx]!; // range-checked just above\n\n  const subject = cliArgs.subject || await ask('\\n  Subject: ');\n  const messageBody = cliArgs.message || await ask('  Message: ');\n\n  if (!subject || !messageBody) {\n    console.log('  Subject and message are required.');\n    return;\n  }\n\n  console.log(`\\n  Sending message to ${selectedRecipient.displayName}...`);\n  console.log(`  Topic: ${selectedTopic.displayName}`);\n  console.log(`  Subject: ${subject}`);\n  console.log(`  Message: ${messageBody}\\n`);\n\n  const result = await sendNewMessage(mychartRequest, {\n    recipient: selectedRecipient,\n    topic: selectedTopic,\n    subject,\n    messageBody,\n  });\n\n  if (result.success) {\n    console.log('  Message sent successfully!');\n    console.log(`  Conversation ID: ${result.conversationId}`);\n  } else {\n    console.log(`  Failed to send message: ${result.error}`);\n  }\n}\n\n// ─── Send Reply Handler ───\n\nasync function handleSendReply(mychartRequest: MyChartRequest) {\n  header('Send Reply');\n\n  let conversationId = cliArgs.conversationId;\n  let messageBody = cliArgs.message;\n\n  if (!conversationId) {\n    // List conversations and let user pick\n    subheader('Recent Conversations');\n    const conversations = await listConversations(mychartRequest);\n    const convoList = conversations?.conversations ?? [];\n\n    if (convoList.length === 0) {\n      console.log('  No conversations found.');\n      return;\n    }\n\n    for (let i = 0; i < Math.min(convoList.length, 10); i++) {\n      const c = convoList[i]!; // loop bound guarantees the index\n      const audience = c.audience.map((a) => a.name ?? '').filter(Boolean).join(', ') || 'System';\n      console.log(`    [${i + 1}] \"${c.subject}\" - ${audience}`);\n    }\n\n    const convoChoice = await ask('\\n  Select conversation to reply to: ');\n    const convoIdx = parseInt(convoChoice, 10) - 1;\n    if (convoIdx < 0 || convoIdx >= convoList.length) {\n      console.log('  Invalid selection.');\n      return;\n    }\n    conversationId = convoList[convoIdx]!.hthId ?? undefined; // range-checked just above\n  }\n\n  if (!messageBody) {\n    messageBody = await ask('\\n  Reply message: ');\n  }\n\n  if (!messageBody) {\n    console.log('  Message is required.');\n    return;\n  }\n\n  console.log(`\\n  Sending reply...`);\n  console.log(`  Message: ${messageBody}\\n`);\n\n  const result = await sendReply(mychartRequest, {\n    conversationId: conversationId!,\n    messageBody,\n  });\n\n  if (result.success) {\n    console.log('  Reply sent successfully!');\n    console.log(`  Conversation ID: ${result.conversationId}`);\n  } else {\n    console.log(`  Failed to send reply: ${result.error}`);\n  }\n}\n\n// ─── Main ───\n\nasync function main() {\n  // Fire-and-forget telemetry — never blocks or breaks the CLI\n  setTelemetryApp('cli', CLI_VERSION);\n  sendTelemetryEvent('cli_started', {\n    action: cliArgs.action || 'default',\n    host: cliArgs.host || 'unknown',\n  }, 'cli');\n\n  // Fire-and-forget update check — never blocks or breaks the CLI. Null when\n  // the site is unreachable or the answer is unparseable; silence is the right\n  // output for both.\n  void checkVersion({ currentVersion: CLI_VERSION, target: 'cli' }).then((check) => {\n    if (check?.updateAvailable) console.warn(`\\n  ${formatUpdateNotice(check)}\\n`);\n  });\n\n  // Saying what the CLI can do needs no account and no network. Both listings\n  // lead with the commonly-used capabilities and name `--show-all` for the rest.\n  if (cliArgs.help) {\n    console.log(renderCliHelp({ showAll: cliArgs.showAll }));\n    closeRL();\n    return;\n  }\n  if (cliArgs.listCapabilities) {\n    console.log(renderCapabilityList({ showAll: cliArgs.showAll }));\n    closeRL();\n    return;\n  }\n\n  // ── Actions that need no account ─────────────────────────────────────────\n  //\n  // The NPI Registry and Epic's MyChart directory belong to nobody, so a\n  // lookup against them must not be gated behind a login — and must not run\n  // once per configured account, which is what everything below `main`'s\n  // login block does. Handled here, before a single credential is resolved.\n  if (cliArgs.action) {\n    const publicCapability = resolveCliAction(cliArgs.action);\n    if (publicCapability && isPublicCapability(publicCapability)) {\n      // `--host` names the portal for get_hospital_info, as it does everywhere else.\n      const args = { ...cliArgs.capabilityArgs };\n      if (cliArgs.host && !args.hostname && publicCapability.params.some((p) => p.name === 'hostname')) {\n        args.hostname = cliArgs.host;\n      }\n      const ok = await runPublicCapabilityAction(publicCapability, args);\n      closeRL();\n      process.exit(ok ? 0 : 1);\n    }\n  }\n\n  // Every MyChart in Epic's directory, with each login URL checked. Not a\n  // registry capability: it is a minutes-long crawl of ~1,400 sites, which no\n  // client should offer as a tool call.\n  if (cliArgs.action === 'list-mycharts') {\n    try {\n      const { instances, corrected, down } = await fetchResolvedMyChartDirectory((done, total) => {\n        if (done % 100 === 0 || done === total) process.stderr.write(`  checked ${done}/${total} login URLs\\n`);\n      });\n      instances.sort((a, b) => a.name.localeCompare(b.name) || a.slgId.localeCompare(b.slgId));\n      const json = JSON.stringify(instances, null, 2);\n      if (cliArgs.output) fs.writeFileSync(cliArgs.output, `${json}\\n`);\n      else console.log(json);\n      console.error(\n        `  ${instances.length} MyCharts: ${corrected} login URLs corrected, ${down.length} down` +\n          (cliArgs.output ? ` — written to ${cliArgs.output}` : ''),\n      );\n      closeRL();\n      process.exit(0);\n    } catch (err) {\n      console.error(`  ${detailedMessage(err)}`);\n      closeRL();\n      process.exit(1);\n    }\n  }\n\n  header('MyChart Scraper - Terminal');\n\n  // ─── Resolve credentials from browser passwords ───\n  // --read-login-from-browser: scan browser password stores for the given --host (or pick from all MyChart accounts)\n  if (cliArgs.readLoginFromBrowser) {\n    console.log('\\n  Scanning browser password stores for saved MyChart credentials...');\n    const accounts = await getMyChartAccounts();\n    if (cliArgs.host) {\n      const match = accounts.find(a => {\n        try { return new URL(a.url).hostname === cliArgs.host; } catch { return false; }\n      });\n      if (match?.user && match.pass) {\n        console.log(`  Found credentials for ${cliArgs.host} (user: ${match.user})`);\n        cliArgs.user = match.user;\n        cliArgs.pass = match.pass;\n      } else {\n        console.log(`  No saved credentials found for ${cliArgs.host}.`);\n        closeRL();\n        process.exit(1);\n      }\n    } else {\n      // No --host: pick the first MyChart account found\n      if (accounts.length === 0) {\n        console.log('  No MyChart credentials found in any browser.');\n        closeRL();\n        process.exit(1);\n      }\n      const first = accounts[0]!; // non-empty checked just above\n      cliArgs.host = new URL(first.url).hostname;\n      cliArgs.user = first.user!;\n      cliArgs.pass = first.pass!;\n      console.log(`  Using ${cliArgs.host} (user: ${cliArgs.user})`);\n    }\n  } else if (cliArgs.host && !cliArgs.user && !cliArgs.pass) {\n    // Check for saved passkey first — no username/password needed\n    const savedPasskey = await loadPasskeyCredential(cliArgs.host);\n    if (savedPasskey) {\n      console.log(`\\n  Found saved passkey for ${cliArgs.host}. Logging in with passkey...`);\n      cliArgs.usePasskey = true;\n    } else {\n      const resolved = await resolveCredsFromBrowsers(cliArgs.host);\n      if (resolved) {\n        cliArgs.user = resolved.user;\n        cliArgs.pass = resolved.pass;\n      } else {\n        console.log(`\\n  Could not find credentials for ${cliArgs.host}.`);\n        console.log(`  Provide them: npx tsx src/cli.ts --host ${cliArgs.host} --user X --pass Y\\n`);\n        closeRL();\n        process.exit(1);\n      }\n    }\n  }\n  nonInteractive = !!(cliArgs.host && (cliArgs.usePasskey || (cliArgs.user && cliArgs.pass)));\n\n  let credentialsList: LoginCredentials[];\n\n  if (nonInteractive) {\n    // Non-interactive mode: credentials from CLI args, Keychain, or passkey\n    console.log(`\\n  Non-interactive mode: --host ${cliArgs.host}`);\n    if (cliArgs.usePasskey) {\n      const passkey = await loadPasskeyCredential(cliArgs.host!);\n      if (!passkey) {\n        console.log(`  No saved passkey found for ${cliArgs.host}. Run with --set-up-passkey first.`);\n        closeRL();\n        process.exit(1);\n      }\n      credentialsList = [{ hostname: cliArgs.host!, passkey }];\n    } else {\n      credentialsList = [{ hostname: cliArgs.host!, username: cliArgs.user!, password: cliArgs.pass! }];\n    }\n  } else {\n    console.log('\\n  This tool logs into your MyChart account(s) and scrapes');\n    console.log('  your medical data (profile, bills, visits, labs, messages).');\n    credentialsList = await getCredentials();\n  }\n\n  if (credentialsList.length === 0) {\n    console.log('\\n  No accounts to scrape. Exiting.');\n    closeRL();\n    process.exit(0);\n  }\n\n  header('Logging In');\n\n  const sessions: { hostname: string; request: MyChartRequest }[] = [];\n\n  for (const creds of credentialsList) {\n    const mychartRequest = await login(creds);\n    if (mychartRequest) {\n      sessions.push({ hostname: creds.hostname, request: mychartRequest });\n    }\n  }\n\n  if (sessions.length === 0) {\n    console.log('\\n  Could not log in to any accounts. Exiting.');\n    closeRL();\n    process.exit(1);\n  }\n\n  console.log(`\\n  Successfully logged in to ${sessions.length} account(s).`);\n\n  // The password that resolved a session, for the account-security\n  // capabilities that need it (TOTP setup wants the account password).\n  const passwordFor = (hostname: string): string | undefined => {\n    const creds = credentialsList.find(c => c.hostname === hostname);\n    return creds && 'password' in creds ? creds.password : undefined;\n  };\n\n  /** Run one registry capability on every session; exits the process. */\n  const runForAllSessions = async (\n    capability: Capability,\n    args: Record<string, string> = {},\n  ): Promise<never> => {\n    let ok = true;\n    for (const session of sessions) {\n      if (!(await runCapabilityAction(capability, session, passwordFor(session.hostname), args, cliArgs.output, cliArgs.patient, cliArgs.mode))) {\n        ok = false;\n      }\n    }\n    closeRL();\n    process.exit(ok ? 0 : 1);\n  };\n\n  // ── Explicit patient switch: the ONLY command that changes MyChart state ──\n  //\n  // MyChart's active patient lives in the server-side session, so changing it\n  // is a real mutation. It gets its own deliberate command rather than\n  // happening as a side effect of a read. The flag is sugar for the\n  // switch_proxy_target capability, which verifies the switch against the\n  // profile page before reporting success.\n  if (cliArgs.switchPatient !== undefined) {\n    await runForAllSessions(getCapability('switch_proxy_target')!, { patient: cliArgs.switchPatient });\n  }\n\n  // ── Every other command asserts which patient it is reading, and refuses ──\n  //\n  // Reads never mutate. If MyChart is pointed at a different patient than this\n  // command is about, stop and say so rather than switching silently — a read\n  // that quietly changes server state is how you end up scraping the wrong\n  // person's chart without noticing.\n  //\n  // No --patient means the account holder, stated explicitly, because the CLI\n  // resumes sessions from cached cookies and would otherwise inherit whichever\n  // patient an earlier invocation left behind.\n  // The patient-record commands are the exception: asserting \"you must already\n  // be on patient X\" before letting someone list the records or switch to one\n  // would make those commands unusable exactly when they are needed.\n  const actionIsAboutPatients =\n    cliArgs.action !== undefined && resolveCliAction(cliArgs.action)?.group === 'Patients';\n\n  if (!actionIsAboutPatients) {\n    for (const session of sessions) {\n      let check;\n      try {\n        check = await checkProxyContext(session.request, cliArgs.patient);\n      } catch (err) {\n        const why = detailedMessage(err);\n        if (cliArgs.patient) {\n          // A specific patient was asked for and we can't confirm we're on\n          // them. Refusing is the whole point.\n          console.log(`\\n  ${why}`);\n          closeRL();\n          process.exit(1);\n        }\n        // Nobody asked for a proxy patient. Most accounts have no proxy access\n        // at all, and two of the three discovery surfaces are inferred rather\n        // than captured from a real instance — so a parsing miss here must not\n        // break an ordinary scrape that has nothing to do with this feature.\n        console.log(`  Note: could not determine the active patient on ${session.hostname} (${why}). Continuing.`);\n        continue;\n      }\n\n      // Single-record account: no proxy surface, nothing to assert.\n      if (!check.wanted) {\n        if (cliArgs.patient) {\n          console.log(`\\n  ${session.hostname} has access to only one patient record, so --patient cannot be used.`);\n          closeRL();\n          process.exit(1);\n        }\n        continue;\n      }\n\n      if (check.active) {\n        console.log(`  Reading ${session.hostname} as: ${check.wanted.displayName}${check.wanted.isSelf ? ' (your own record)' : ''}`);\n        continue;\n      }\n\n      const host = session.hostname;\n      const wantedName = check.wanted.displayName;\n      const currentName = check.current\n        ? check.current.displayName\n        : 'an unknown patient (this MyChart does not report which record is active)';\n\n      console.log(`\\n  Refusing to read: ${host} is currently on ${currentName}, but this command is about ${wantedName}.`);\n      console.log('\\n  The active patient is stored on MyChart\\'s server, so it has to be changed');\n      console.log('  deliberately — reading never changes it. Run:');\n      console.log(`\\n    mychart-cli --host ${host} --action list-proxies     # every patient name on this account`);\n      console.log(`    mychart-cli --host ${host} --switch ${JSON.stringify(wantedName)}`);\n      console.log('\\n  then re-run this command.');\n      closeRL();\n      process.exit(1);\n    }\n  }\n\n  // ── The account-security flags ──\n  //\n  // Each flag is sugar for an `account`-kind registry capability. The\n  // capability reads and writes the CLI's own TOTP and passkey stores through\n  // capabilityContext, exactly as the equivalent `--action setup_totp` would.\n  const accountFlagCapabilityId =\n    (cliArgs.setupTotp && 'setup_totp') ||\n    (cliArgs.disableTotp && 'disable_totp') ||\n    (cliArgs.setupPasskey && 'register_passkey') ||\n    (cliArgs.listPasskeys && 'list_passkeys') ||\n    (cliArgs.deletePasskey && 'delete_passkey') ||\n    undefined;\n  if (accountFlagCapabilityId) {\n    await runForAllSessions(getCapability(accountFlagCapabilityId)!);\n  }\n\n  // Handle send-message action\n  if (cliArgs.action === 'send-message') {\n    for (const session of sessions) {\n      await handleSendMessage(session.request);\n    }\n    closeRL();\n    return;\n  }\n\n  // Handle send-reply action\n  if (cliArgs.action === 'send-reply') {\n    for (const session of sessions) {\n      await handleSendReply(session.request);\n    }\n    closeRL();\n    return;\n  }\n\n  // Handle get-imaging action: every study on the account, downloaded and\n  // decoded. A composite of get_imaging_results + download_imaging_study,\n  // both dispatched through executeCapability.\n  if (cliArgs.action === 'get-imaging') {\n    let ok = true;\n    for (const session of sessions) {\n      const succeeded = await downloadAllImagingStudies(session, passwordFor(session.hostname), {\n        outputDir: cliArgs.output,\n        patient: cliArgs.patient,\n        saveClo: cliArgs.saveClo,\n      });\n      if (!succeeded) ok = false;\n    }\n    closeRL();\n    process.exit(ok ? 0 : 1);\n  }\n\n  // Handle keep-alive-test action — use shared sessionStore keepalive\n  if (cliArgs.action === 'keep-alive-test') {\n    closeRL();\n\n    // Register all sessions in the shared store\n    for (const session of sessions) {\n      sessionStore.set(session.hostname, session.request, { hostname: session.hostname });\n    }\n\n    console.log('\\n  ── Keep-Alive Test Mode ──');\n    console.log(`  Pinging KeepAlive every 30s for ${sessions.length} session(s).`);\n    console.log('  Press Ctrl+C to stop.\\n');\n\n    // Ping immediately, then start the interval\n    await sessionStore.runKeepalive();\n    sessionStore.startKeepalive();\n    return;\n  }\n\n  // Any capability from the shared registry, by id — or one of the dashed\n  // spellings the CLI has always accepted (list-proxies, get-thread,\n  // delete-message, request-refill), which resolve to the same registry\n  // entries. Runs after the bespoke interactive actions above.\n  if (cliArgs.action) {\n    const capability = resolveCliAction(cliArgs.action);\n    if (!capability) {\n      console.log(`\\n  Unknown --action \"${cliArgs.action}\".`);\n      console.log(`  Capabilities: ${COMMON_CAPABILITIES.map(c => c.id).join(', ')}`);\n      console.log(\n        `  …and ${LESS_FREQUENTLY_USED_CAPABILITIES.length} less-frequently-used ones. Run  mychart-cli --list-capabilities [--show-all]  for the full list with arguments.`,\n      );\n      closeRL();\n      process.exit(1);\n    }\n    // `--conversation-id <id>` predates `--arg`; keep honoring it for the\n    // capabilities that take one (get-thread, delete-message, send_reply).\n    const capabilityArgs = { ...(cliArgs.capabilityArgs ?? {}) };\n    if (\n      cliArgs.conversationId !== undefined &&\n      capabilityArgs.conversation_id === undefined &&\n      capability.params.some(p => p.name === 'conversation_id')\n    ) {\n      capabilityArgs.conversation_id = cliArgs.conversationId;\n    }\n    await runForAllSessions(capability, capabilityArgs);\n  }\n\n  // Default: scrape every argument-free read capability in the registry.\n  let allOk = true;\n  for (const session of sessions) {\n    if (!(await scrapeAll(session, passwordFor(session.hostname)))) allOk = false;\n  }\n\n  header('Done!');\n  console.log(`  Scraped ${sessions.length} MyChart account(s).`);\n  console.log('  All available data has been displayed above.\\n');\n  if (!allOk) console.log('  Some categories failed; see the per-category output above.\\n');\n\n  closeRL();\n}\n\n/**\n * main() plus the fatal-error handler. Called by `entry.ts` (which is also\n * what the published binary is built from), or directly below when this file\n * itself is the entry module — importing this module no longer runs the CLI,\n * so tests can reach its internals.\n */\nexport async function runCli(): Promise<void> {\n  try {\n    cliArgs = parseArgs();\n    await main();\n    // Exit rather than return. The update check is fire-and-forget, and an\n    // in-flight fetch keeps the event loop alive on its own — so a hung request\n    // to the manifest would hold the CLI open for the full two-minute scraper\n    // deadline after it had finished printing. Every other terminal path here\n    // already exits; this one just returned.\n    process.exit(process.exitCode ?? 0);\n  } catch (err) {\n    console.error('Fatal error:', err);\n    closeRL();\n    process.exit(1);\n  }\n}\n\nif (import.meta.main) {\n  void runCli();\n}\n","{\n  \"name\": \"mychart-cli\",\n  \"version\": \"2.3.0\",\n  \"description\": \"Programmatic access to Epic MyChart patient portals: login, scrape every section of a patient's chart, and act on it. Provided as-is and used at your own risk; not affiliated with Epic or MyChart, and its use may violate Epic's terms of service.\",\n  \"license\": \"SEE LICENSE IN LICENSE\",\n  \"mcpName\": \"io.github.Fan-Pier-Labs/openrecord\",\n  \"author\": \"Fan Pier Labs\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/Fan-Pier-Labs/openrecord.git\",\n    \"directory\": \"clients/npm-package\"\n  },\n  \"homepage\": \"https://github.com/Fan-Pier-Labs/openrecord/tree/main/clients/npm-package\",\n  \"keywords\": [\n    \"mychart\",\n    \"epic\",\n    \"ehr\",\n    \"health\",\n    \"medical-records\",\n    \"patient-portal\",\n    \"scraper\"\n  ],\n  \"engines\": {\n    \"node\": \">=18\"\n  },\n  \"type\": \"module\",\n  \"main\": \"./dist/index.cjs\",\n  \"module\": \"./dist/index.js\",\n  \"types\": \"./dist/index.d.ts\",\n  \"exports\": {\n    \".\": {\n      \"import\": {\n        \"types\": \"./dist/index.d.ts\",\n        \"default\": \"./dist/index.js\"\n      },\n      \"require\": {\n        \"types\": \"./dist/index.d.cts\",\n        \"default\": \"./dist/index.cjs\"\n      }\n    }\n  },\n  \"bin\": {\n    \"mychart-cli\": \"dist/cli.cjs\"\n  },\n  \"sideEffects\": false,\n  \"files\": [\n    \"dist\",\n    \"README.md\",\n    \"CHANGELOG.md\",\n    \"docs\",\n    \"LICENSE\"\n  ],\n  \"scripts\": {\n    \"build\": \"tsup\",\n    \"dev\": \"tsup --watch\",\n    \"typecheck\": \"tsc --noEmit\",\n    \"test\": \"bun test --isolate .unit.test.ts .integration.test.ts\",\n    \"prepublishOnly\": \"bun run build\",\n    \"check:publish\": \"publint --strict && attw --pack .\"\n  },\n  \"dependencies\": {\n    \"@napi-rs/keyring\": \"^2.1.2\",\n    \"cheerio\": \"^1.2.0\",\n    \"compare-versions\": \"^6.1.1\",\n    \"date-fns\": \"^4.4.0\",\n    \"fzstd\": \"^0.1.1\",\n    \"html-to-text\": \"^10.0.1\",\n    \"jpeg-js\": \"^0.4.4\",\n    \"js-base64\": \"^3.9.6\",\n    \"markdown-table\": \"^3.1.0\",\n    \"sharp\": \"^0.35.5\",\n    \"totp-generator\": \"^2.0.1\",\n    \"tough-cookie\": \"^6.1.0\"\n  },\n  \"devDependencies\": {\n    \"@arethetypeswrong/cli\": \"^0.18.5\",\n    \"@modelcontextprotocol/sdk\": \"^1.32.2\",\n    \"@types/html-to-text\": \"^9.0.4\",\n    \"@types/node\": \"^26.6.6\",\n    \"publint\": \"^0.3.25\",\n    \"tsup\": \"^9.0.0\",\n    \"typescript\": \"^6.0.3\"\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { CookieJar } from 'tough-cookie'\nimport type { RequestConfig } from './types';\nimport { logger } from '../../../shared/logger';\nimport { PLATFORM_OWNS_COOKIES, scraperFetch, type Transport } from '../../http';\n\n/**\n * Options for creating a MyChartRequest.\n *\n * There is deliberately no \"pass me a fetch\" option: which network call to\n * make, and whether to keep our own cookie jar, are platform questions that\n * `scrapers/http.ts` answers at runtime. Callers say where they're going, not\n * how to get there.\n */\nexport type MyChartRequestOptions = {\n  protocol?: string;\n};\n\n// Redirect statuses worth following. 303/307/308 are rare on MyChart but do\n// show up in front of it (SSO stops, load balancers), and dropping them turns\n// a working instance into an unexplained blank response.\nconst REDIRECT_STATUSES = [301, 302, 303, 307, 308];\n\n// Matches what browsers allow before declaring a redirect loop.\nconst MAX_REDIRECTS = 20;\n\n// Class to keep track of variables used when making requests\n// to MyChart's Site.\nexport class MyChartRequest {\n\n  // Cookie jar to keep track of all the cookies received.\n  // On platforms that handle cookies natively (iOS), this jar stays empty\n  // and is only used for getCookieInfo() / serialize() compatibility.\n  cookieJar: CookieJar;\n\n  // Test seam. Null in production — scraperFetch picks the transport from the\n  // platform. Assigning a function here intercepts this session's requests\n  // without losing the headers, the jar, the per-host permit or the deadline,\n  // all of which live above the transport.\n  transport: Transport | null = null;\n\n  // The hostname of the MyChart site, eg. mychart.example.org\n  hostname: string;\n\n  // Protocol to use for requests. Defaults to 'https'. Set to 'http' for local fake-mychart server.\n  protocol: string;\n\n  // The deployment prefix every MyChart route sits under: '/MyChart' for most\n  // instances, '/MyChart-PRD' or '/UCSFMyChart' for others. null means the\n  // instance is mounted at the domain root and there is no prefix at all\n  // (e.g. mychart.clevelandclinic.org), or that we haven't discovered one yet.\n  firstPathPart: string | null = null;\n\n  /**\n   * Restore this session to a logged-in state, wired by each client after\n   * login (the CLI, the desktop extension and the mobile app each know where\n   * their own credentials live — this class deliberately doesn't).\n   *\n   * Called by `makeAuthenticatedRequest` when a request bounces to the login\n   * page. The hook must log back in and adopt the fresh state onto THIS\n   * instance (see `adoptStateFrom`), returning true on success and false when\n   * a silent re-login isn't possible (e.g. the account requires interactive\n   * 2FA). Left unset, an expired session surfaces as `SessionExpiredError`\n   * instead of being renewed.\n   */\n  reauthenticate?: () => Promise<boolean>;\n\n  /**\n   * Opt out of the automatic keepalive enrollment makeAuthenticatedRequest\n   * performs after successful requests. Set by clients that explicitly asked\n   * for no background pings (MyChartClient's `keepalive: false`).\n   */\n  disableAutoKeepalive?: boolean;\n\n  /**\n   * The patient record this session was last deliberately switched to,\n   * recorded by `switchProxyTarget`. Re-login resets MyChart's server-side\n   * proxy context to the account holder, so automatic session renewal consults\n   * this to put the context back before any caller retries — without it, a\n   * renewed session would silently read the wrong patient's chart.\n   */\n  activeProxyTarget?: { id: string; isSelf: boolean; displayName: string };\n\n  /**\n   * Re-runs the verified proxy switch that produced `activeProxyTarget`,\n   * with autoRenew: false. Armed by proxyContext together with\n   * `activeProxyTarget`; called by session renewal (`sessionRenewal.ts`)\n   * after a silent re-login, which resets MyChart's server-side context to\n   * the account holder. A closure on the request — rather than an import of\n   * proxyContext from the renewal path — so the renewal module stays a leaf\n   * and the module graph stays acyclic.\n   */\n  restoreProxyContext?: () => Promise<void>;\n\n  constructor(hostname: string, options?: string | MyChartRequestOptions) {\n    // Support old signature: new MyChartRequest(hostname, protocol?)\n    const opts: MyChartRequestOptions = typeof options === 'string'\n      ? { protocol: options }\n      : (options ?? {});\n\n    this.cookieJar = new CookieJar();\n    this.hostname = MyChartRequest.normalizeHostname(hostname);\n    this.protocol = opts.protocol ?? 'https';\n  }\n\n  /**\n   * Strip protocol/path from user input so only the bare hostname remains.\n   * e.g. \"https://mychart.example.org/MyChart\" → \"mychart.example.org\"\n   */\n  static normalizeHostname(input: string): string {\n    const trimmed = input.trim();\n    try {\n      const parsed = new URL(trimmed.includes('://') ? trimmed : `https://${trimmed}`);\n      // Use host (includes port) instead of hostname (strips port)\n      // so that \"localhost:4000\" is preserved for local development\n      return parsed.host;\n    } catch {\n      return trimmed;\n    }\n  }\n\n  getCookieInfo(): { count: number; names: string[] } {\n    const serialized = this.cookieJar.serializeSync() as unknown as { cookies?: { key: string; domain?: string; path?: string }[] };\n    const cookies = serialized?.cookies ?? [];\n    return {\n      count: cookies.length,\n      names: cookies.map(c => `${c.key}=${c.domain ?? ''}${c.path ?? ''}`),\n    };\n  }\n\n  // Promise-typed for API stability (clients/npm-package exposes it); the work is synchronous.\n  serialize(): Promise<string> {\n    return Promise.resolve(JSON.stringify({\n      firstPathPart: this.firstPathPart,\n      hostname: this.hostname,\n      protocol: this.protocol,\n      cookies: this.cookieJar.serializeSync()\n    }))\n  }\n\n  static unserialize(serializedData: string, options?: MyChartRequestOptions): Promise<MyChartRequest | null> {\n    try {\n      const data = JSON.parse(serializedData);\n      // firstPathPart is null for root-mounted instances, so check for presence\n      // rather than truthiness.\n      if (data?.hostname && data.firstPathPart !== undefined && data.cookies) {\n        const request = new MyChartRequest(data.hostname, { ...options, protocol: data.protocol });\n        request.firstPathPart = data.firstPathPart;\n        if (Object.keys(data.cookies).length > 0) {\n          request.cookieJar = CookieJar.deserializeSync(data.cookies);\n        }\n        return Promise.resolve(request);\n      } else {\n        // `data` holds the serialized cookie jar — log its shape, never its contents.\n        logger.error(\n          'Invalid data for MyChartRequest unserialization. Fields present:',\n          data && typeof data === 'object' ? Object.keys(data).join(', ') : typeof data,\n        );\n      }\n    } catch (error) {\n      logger.error('Error unserializing MyChartRequest:', error);\n    }\n    return Promise.resolve(null);\n  }\n\n  setFirstPathPart(firstPathPart: string | null) {\n    this.firstPathPart = firstPathPart;\n  }\n\n  /**\n   * Point every subsequent request at a different host.\n   *\n   * Vanity hostnames outlive the deployments behind them — `login.wellspan.org`\n   * redirects to `my.wellspan.org`, `patients.mycslink.org` to\n   * `mycslink.cedars-sinai.org`. Discovery follows those moves so the rest of\n   * the session talks to the host that actually serves the chart.\n   */\n  setHostname(hostname: string) {\n    this.hostname = MyChartRequest.normalizeHostname(hostname);\n  }\n\n  /**\n   * Adopt a freshly logged-in instance's session state onto this one, in\n   * place.\n   *\n   * The login functions construct and return a brand-new MyChartRequest, but\n   * everything holding a reference mid-scrape (in-flight scrapers, the session\n   * stores, the keepalive) points at the old object — so a re-login hook copies\n   * the new state across rather than swapping references. Hostname and mount\n   * come along too, because discovery during the fresh login may legitimately\n   * have followed a vanity-host move.\n   *\n   * `transport` is deliberately NOT copied: it's a per-instance test seam, and\n   * production requests read `this.cookieJar` at call time anyway — reassigning\n   * the jar is enough.\n   */\n  adoptStateFrom(other: MyChartRequest) {\n    this.cookieJar = other.cookieJar;\n    this.hostname = other.hostname;\n    this.protocol = other.protocol;\n    this.firstPathPart = other.firstPathPart;\n  }\n\n\n  // Make a request with the given config.\n  // Returns the raw response object.\n  //\n  // `redirectsFollowed` is bookkeeping for the recursive redirect follow below;\n  // callers pass one argument and let it default.\n  async makeRequest(config: RequestConfig, redirectsFollowed = 0): Promise<Response> {\n    config.method ??= 'GET';\n\n    if (!config.url && !config.path) {\n      throw new Error(\"Either url or path must be defined in the config object.\");\n    }\n\n    // The Chrome header block, the cookie jar, the per-host permit and the\n    // deadline are all scraperFetch's job; this only says what MyChart is\n    // being asked for.\n    // A bodyless request omits the key rather than sending `body: undefined`.\n    const finalConfig = {\n      method: config.method ?? 'GET',\n      redirect: \"manual\" as const,\n      ...(config.body !== undefined ? { body: config.body } : {}),\n      headers: config.headers ?? {},\n    }\n\n    // No prefix (root-mounted instance) means nothing goes in front of the\n    // path — not even the separating slash, which would leave a double slash\n    // that some servers redirect on.\n    const mountPath = this.firstPathPart ? '/' + this.firstPathPart : '';\n    const url = config.url ?? (this.protocol + '://' + this.hostname + mountPath + config.path);\n\n    const response = await scraperFetch(url, finalConfig, {\n      // Who keeps the cookies is a property of the runtime, not of the\n      // caller — see PLATFORM_OWNS_COOKIES.\n      cookieJar: PLATFORM_OWNS_COOKIES ? null : this.cookieJar,\n      transport: this.transport ?? undefined,\n    })\n    // Log each request and its status code.\n    logger.debug(response.status, url)\n\n    // Follow redirects, if necessary.\n    if (REDIRECT_STATUSES.includes(response.status) && config.followRedirects !== false) {\n\n      let newLocation = response.headers.get('Location');\n\n      if (!newLocation) {\n        throw new Error(\"302 didn't have a location header\" + url)\n      }\n\n      // Some instances redirect a URL straight back to itself and never stop —\n      // mychart.crossingrivers.org does this on /MyChart/, cookies and all.\n      // Without a cap this recurses until the process runs out of stack.\n      if (redirectsFollowed >= MAX_REDIRECTS) {\n        logger.debug(`Giving up after ${MAX_REDIRECTS} redirects, last hop:`, url);\n        return response;\n      }\n\n      // If the Location header returned doesn't isn't absolute, make it absolute.\n      newLocation = new URL(newLocation, url).href\n\n      // 307/308 exist precisely to preserve the method and body; everything\n      // else turns into a GET, which is what browsers do with a 302 too.\n      const preserveMethod = response.status === 307 || response.status === 308;\n      // Spreading `config` carries its body along, so the non-preserving hop has\n      // to drop the key outright — `body: undefined` would leave it present.\n      const { body: priorBody, ...configWithoutBody } = config;\n      return this.makeRequest({\n        ...configWithoutBody,\n        url: newLocation,\n        method: preserveMethod ? config.method : 'GET',\n        ...(preserveMethod && priorBody !== undefined ? { body: priorBody } : {}),\n      }, redirectsFollowed + 1)\n    }\n\n    return response;\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Globally-configurable log singleton for the scraper layer.\n *\n * The scrapers emit a steady stream of progress messages — HTTP status,\n * cookie state, parsed login-page diagnostics, etc. These are debug-level\n * information that the consumer (CLI, web app, MCP server, tests) decides\n * how to surface.\n *\n * Default behavior matches what `console.*` would do — debug/info to\n * stdout, warn/error to stderr — so callers that don't configure anything\n * see the same output they always did.\n *\n * Stdio MCP servers MUST configure a sink that never writes to stdout,\n * because the JSON-RPC framing on stdout doesn't tolerate non-JSON text.\n * Example:\n *\n *   import { setLogSink } from '../../shared/logger';\n *   setLogSink((level, args) => console.error(`[${level}]`, ...args));\n *\n * Tests can silence the chatter with `silenceLogger()`.\n */\n\ntype LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\nexport type LogSink = (level: LogLevel, args: unknown[]) => void;\n\nconst defaultSink: LogSink = (level, args) => {\n  // Mirror console.* defaults: debug/info → stdout, warn/error → stderr.\n  if (level === 'warn') console.warn(...args);\n  else if (level === 'error') console.error(...args);\n  else console.log(...args);\n};\n\nlet activeSink: LogSink = defaultSink;\n\nexport const logger = {\n  debug(...args: unknown[]): void { activeSink('debug', args); },\n  info(...args: unknown[]): void  { activeSink('info', args);  },\n  warn(...args: unknown[]): void  { activeSink('warn', args);  },\n  error(...args: unknown[]): void { activeSink('error', args); },\n};\n\n/**\n * Replace the sink that receives every logger.* call. Pass a custom\n * function to filter, format, redirect, or drop messages.\n */\nexport function setLogSink(sink: LogSink): void {\n  activeSink = sink;\n}\n\n/** Restore the default console-based sink. */\nexport function resetLogSink(): void {\n  activeSink = defaultSink;\n}\n\n/** Drop every log message. Useful in tests. */\nexport function silenceLogger(): void {\n  activeSink = () => { /* no-op */ };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Wiring a tough-cookie jar to a fetch `Response`.\n *\n * **Why tough-cookie doesn't do this for us:** it is a cookie *store*, not an\n * HTTP client. It parses and serializes cookie strings and decides which ones\n * match a URL, but it never sees a request or a response — that's deliberate,\n * so it can back node-fetch, axios, a browser shim or us. Pulling the strings\n * out of a `Response` and handing them over is the caller's half of the\n * contract, and this file is that half.\n *\n * Only `scrapers/http.ts` should call these.\n */\n\nimport type { CookieJar } from 'tough-cookie';\n\n/**\n * The `Cookie` header to send with a request, or null when the jar has nothing\n * for this URL. Domain, path, secure and expiry matching are the jar's job.\n */\nexport async function cookieHeaderFor(jar: CookieJar, url: string): Promise<string | null> {\n  const cookieString = await jar.getCookieString(url);\n  return cookieString || null;\n}\n\n/**\n * Read every `Set-Cookie` off a response into the jar.\n *\n * Two paths because the runtimes disagree. Node/undici and Bun expose\n * `Headers.getSetCookie()`, which keeps the headers as separate strings.\n * React Native's `Headers` (RN 0.88 still ships the whatwg-fetch shim) has no\n * such method and folds them into one comma-joined string — so they have to be\n * split back apart on the commas that separate cookies rather than the ones\n * inside an `Expires=Wed, 09 Jun 2027 …` date. Looking ahead for a `name=` is\n * what tells those apart.\n *\n * The React Native path is live code, not defensive plumbing: the eUnity\n * imaging scraper runs on device and carries its own jar.\n */\nexport async function storeSetCookies(jar: CookieJar, url: string, response: Response): Promise<void> {\n  const headers = response.headers as unknown as { getSetCookie?: () => string[] };\n\n  let setCookies: string[];\n  if (typeof headers.getSetCookie === 'function') {\n    setCookies = headers.getSetCookie();\n  } else {\n    const raw = response.headers.get('set-cookie');\n    setCookies = raw ? raw.split(/,\\s*(?=[A-Za-z0-9_-]+=)/) : [];\n  }\n\n  for (const cookieStr of setCookies) {\n    try {\n      await jar.setCookie(cookieStr.trim(), url);\n    } catch {\n      // A cookie we can't parse is one we can't send back. Dropping it beats\n      // failing a request that would otherwise have worked.\n    }\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * How many requests may be in flight to a single MyChart host at once.\n *\n * Ten is comfortably below what a browser opens against one origin (six for\n * HTTP/1.1, more over HTTP/2) while still letting a full 30-category scrape\n * finish quickly. Raise it only with evidence that a given instance tolerates\n * more — the cost of guessing high is the whole deployment's egress IP getting\n * blocked for every user at once.\n *\n * Override with MYCHART_MAX_CONCURRENT_REQUESTS_PER_HOST. Anything that isn't\n * a positive integer falls back to the default rather than silently disabling\n * the limit.\n */\nexport const DEFAULT_MAX_CONCURRENT_REQUESTS_PER_HOST = 10;\n\nfunction parseMaxConcurrency(raw: string | undefined): number {\n  if (raw === undefined) return DEFAULT_MAX_CONCURRENT_REQUESTS_PER_HOST;\n  const parsed = Number(raw);\n  if (!Number.isInteger(parsed) || parsed < 1) {\n    return DEFAULT_MAX_CONCURRENT_REQUESTS_PER_HOST;\n  }\n  return parsed;\n}\n\nexport const MAX_CONCURRENT_REQUESTS_PER_HOST = parseMaxConcurrency(\n  process.env.MYCHART_MAX_CONCURRENT_REQUESTS_PER_HOST,\n);\n\n/** Exported for tests — the parsing rule above, without the process.env read. */\nexport const __parseMaxConcurrencyForTest = parseMaxConcurrency;\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Per-host concurrency limiting for outbound scraper requests.\n *\n * A single \"scrape everything\" run fans out ~30 scrapers at once, each making\n * two or more requests, all aimed at one hospital's MyChart. On the hosted web\n * app every user shares one egress IP, so those bursts stack across users and\n * look exactly like an attack to whatever sits in front of the portal. Gating\n * requests per hostname keeps a burst to a steady trickle without any caller\n * having to know it is being throttled.\n *\n * The limit is per *host*, not per session or per user: the thing being\n * protected is the far end, and it counts connections, not accounts.\n *\n * Permits are handed out first-come-first-served. A waiter is resolved by the\n * releasing request handing its permit straight over rather than releasing it\n * and letting the queue race for it, so a saturated host can't starve an early\n * arrival.\n */\n\nimport { logger } from './logger';\nimport { MAX_CONCURRENT_REQUESTS_PER_HOST } from './env';\n\n/** Counting semaphore with a FIFO wait queue. */\nclass HostSemaphore {\n  /** Permits currently held by in-flight requests. */\n  private active = 0;\n\n  /** Resolvers for callers waiting on a permit, oldest first. */\n  private readonly waiters: Array<() => void> = [];\n\n  constructor(readonly limit: number) {}\n\n  get inFlight(): number {\n    return this.active;\n  }\n\n  get queued(): number {\n    return this.waiters.length;\n  }\n\n  /** Resolves once a permit is held. Every acquire must be paired with a release. */\n  acquire(): Promise<void> {\n    if (this.active < this.limit) {\n      this.active += 1;\n      return Promise.resolve();\n    }\n    return new Promise<void>((resolve) => {\n      this.waiters.push(resolve);\n    });\n  }\n\n  release(): void {\n    const next = this.waiters.shift();\n    if (next) {\n      // Hand the permit directly to the next waiter. `active` deliberately\n      // stays where it is — the permit moved, it wasn't given back.\n      next();\n    } else {\n      this.active -= 1;\n    }\n  }\n}\n\n/**\n * Next.js bundles each API route separately, so a plain module-level Map would\n * give every route its own set of limiters and the cap would mean nothing in\n * the one place it matters most. Same reasoning as the session store.\n */\nconst globalKey = '__mychart_host_limiters__' as const;\n\nfunction registry(): Map<string, HostSemaphore> {\n  const g = globalThis as unknown as Record<string, Map<string, HostSemaphore> | undefined>;\n  const existing = g[globalKey];\n  if (existing) return existing;\n  const created = new Map<string, HostSemaphore>();\n  g[globalKey] = created;\n  return created;\n}\n\n/**\n * Normalize a URL to the key its limiter is stored under.\n *\n * Keys on the host actually being contacted rather than the session's nominal\n * hostname, so a redirect onto a different deployment gets its own budget\n * instead of spending the original host's.\n *\n * Port is part of the key: two fake-mychart instances on one machine are two\n * different servers. Anything unparseable falls back to the raw string, which\n * still groups consistently.\n */\nexport function hostKeyForUrl(url: string): string {\n  try {\n    return new URL(url).host.toLowerCase();\n  } catch {\n    return url.toLowerCase();\n  }\n}\n\nfunction limiterFor(hostKey: string): HostSemaphore {\n  const limiters = registry();\n  const existing = limiters.get(hostKey);\n  if (existing) return existing;\n  const created = new HostSemaphore(MAX_CONCURRENT_REQUESTS_PER_HOST);\n  limiters.set(hostKey, created);\n  return created;\n}\n\n/**\n * Run `fn` while holding one of the host's permits.\n *\n * Wrap only the individual network call. `makeRequest` recurses to follow\n * redirects, and holding a permit across that recursion would let one chain\n * hold several at once — enough concurrent redirect-following requests would\n * then deadlock waiting on permits their own callers are holding.\n */\nexport async function withHostLimit<T>(url: string, fn: () => Promise<T>): Promise<T> {\n  const hostKey = hostKeyForUrl(url);\n  const limiter = limiterFor(hostKey);\n\n  if (limiter.inFlight >= limiter.limit) {\n    // Host only, never the path — request URLs carry record and patient ids.\n    logger.debug(\n      `[ratelimit] ${hostKey} at ${limiter.limit} in flight, queueing (${limiter.queued + 1} waiting)`,\n    );\n  }\n\n  await limiter.acquire();\n  try {\n    return await fn();\n  } finally {\n    limiter.release();\n  }\n}\n\n/** In-flight and queued counts per host. Test and diagnostic use only. */\nexport function hostLimiterStats(): Record<string, { inFlight: number; queued: number; limit: number }> {\n  const stats: Record<string, { inFlight: number; queued: number; limit: number }> = {};\n  for (const [host, limiter] of registry()) {\n    stats[host] = { inFlight: limiter.inFlight, queued: limiter.queued, limit: limiter.limit };\n  }\n  return stats;\n}\n\n/**\n * Drop every limiter. Tests only — discarding a limiter with waiters would\n * strand them, so this is not safe to call while requests are in flight.\n */\nexport function resetHostLimiters(): void {\n  registry().clear();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The single outbound HTTP path for the scrapers.\n *\n * Every request this repo aims at a health system goes through `scraperFetch`,\n * because four things have to be true of all of them and none of the four\n * survives being reimplemented at a call site:\n *\n *  - **The browser header block.** MyChart and the eUnity image servers behind\n *    it answer a request that looks like Chrome; a bare `fetch` gets a login\n *    wall or a 403.\n *  - **The cookie jar.** Session, load-balancer and bot-check cookies are set\n *    mid-redirect-chain and expected back on the very next hop, so injecting\n *    `Cookie` and harvesting `Set-Cookie` can't be optional.\n *  - **The per-host permit.** A full 30-category scrape otherwise arrives at\n *    one hospital as ~60 simultaneous requests, which is how an instance ends\n *    up in `blockedInstances.ts`.\n *  - **The deadline.** A host that accepts the connection and never answers\n *    hangs the scrape forever, holding a permit the whole time.\n *\n * A second raw-fetch path is exactly how the cap silently stops applying — it\n * keeps working, so nobody notices it isn't limited. So there isn't one. If you\n * need \"just a quick request\", call this.\n */\n\nimport type { CookieJar } from 'tough-cookie';\nimport { cookieHeaderFor, storeSetCookies } from './cookies';\nimport { withHostLimit } from '../shared/hostConcurrency';\n\n/**\n * Pretend to be Google Chrome on macOS. Sent on every request; a call site that\n * needs a different value for one of these passes it in `init.headers`, which\n * wins.\n */\nexport const BROWSER_HEADERS: Readonly<Record<string, string>> = {\n  'Cache-Control': 'max-age=0',\n  // Every version here has to match the one in User-Agent below. A request\n  // claiming Chrome 131 in one header and 126 in another is a fingerprint no\n  // real browser produces, and CLAUDE.md names request-shape mismatch as the\n  // first thing to suspect behind an unexplained 403.\n  'Sec-Ch-Ua': '\"Not/A)Brand\";v=\"24\", \"Chromium\";v=\"131\", \"Google Chrome\";v=\"131\"',\n  'Sec-Ch-Ua-Mobile': '?0',\n  'Sec-Ch-Ua-Platform': 'macOS',\n  'Sec-Fetch-Dest': 'document',\n  'Sec-Fetch-Mode': 'navigate',\n  'Sec-Fetch-Site': 'same-origin',\n  'Sec-Fetch-User': '?1',\n  'Upgrade-Insecure-Requests': '1',\n  'Dnt': '1',\n  'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',\n};\n\n/**\n * The network call itself — everything below the headers, the jar and the\n * permit.\n */\nexport type Transport = (url: string, init: RequestInit) => Promise<Response>;\n\n// expo/fetch when running inside an Expo app — its Swift-side\n// URLSessionDelegate honors redirect:\"manual\". Under Node/Bun the require\n// throws (the module isn't resolvable outside the app) and this stays\n// undefined, which doubles as a runtime signal for where we're running.\nconst expoFetch: Transport | undefined = (() => {\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    const m = require('expo/fetch') as { fetch?: Transport };\n    return m?.fetch;\n  } catch {\n    return undefined;\n  }\n})();\n\n/**\n * Whether the platform keeps its own cookie store.\n *\n * On React Native that's iOS's `HTTPCookieStorage`, wired into the fetch the\n * runtime provides — so a tough-cookie jar there would be a second, empty\n * store shadowing the real one. Everywhere else nothing manages cookies for\n * us and the jar is the only thing keeping a session alive.\n *\n * Two signals, because getting this wrong on device is a silently broken\n * session rather than a crash: React Native's own `navigator` marker, and the\n * fact that `expo/fetch` resolved at all. Both hold in the app, neither holds\n * under Node or Bun.\n */\nexport const PLATFORM_OWNS_COOKIES: boolean =\n  expoFetch !== undefined ||\n  (typeof navigator !== 'undefined' &&\n    (navigator as { product?: string }).product === 'ReactNative');\n\n/**\n * Installed by tests to route every scraper request at a scripted server. See\n * {@link setTestTransport} — production code never sets this.\n */\nlet testTransport: Transport | null = null;\n\n/**\n * Send every subsequent scraper request to `fn`. Tests only; pass null to\n * restore the real network.\n *\n * This exists so `myChartUserPassLogin` and friends don't have to carry a\n * \"pass me a fetch\" parameter that only tests ever fill in. Set it in\n * `beforeEach` and clear it in `afterEach` — it is process-wide.\n */\nexport function setTestTransport(fn: Transport | null): void {\n  testTransport = fn;\n}\n\n/**\n * Pick the network call for this request. Three cases, in order:\n *\n *  1. **Tests** — a scripted transport, either process-wide\n *     ({@link setTestTransport}) or per-session (`MyChartRequest.transport`).\n *  2. **We own the cookies** — a jar was handed over, so we're driving the\n *     redirect chain and the cookies ourselves. Prefer `expo/fetch` when it's\n *     there, because it honors `redirect: 'manual'` where React Native's own\n *     fetch quietly follows redirects and hides the hops from us.\n *  3. **The platform owns the cookies** — use the runtime's own fetch, the one\n *     its cookie store is actually attached to. Substituting a different\n *     networking stack here would send every request out with no session.\n *\n * `globalThis.fetch` is read per call rather than captured at import, so a test\n * that swaps the global still intercepts.\n */\nfunction resolveTransport(override: Transport | undefined, cookieJar: CookieJar | null | undefined): Transport {\n  if (testTransport) return testTransport;\n  if (override) return override;\n  if (cookieJar && expoFetch) return expoFetch;\n  return (url, init) => globalThis.fetch(url, init);\n}\n\n/**\n * The transport a request gets when nothing overrides it and no jar is in\n * play. Exported for tests and diagnostics.\n */\nexport const platformFetch: Transport = (url, init) => resolveTransport(undefined, null)(url, init);\n\n/**\n * `RequestInit` with headers narrowed to a plain object.\n *\n * `Omit` rather than an intersection with `RequestInit`, and that is\n * load-bearing: intersecting leaves `headers` as `HeadersInit &\n * Record<string, string>`, whose `string[][]` branch survives. A caller\n * passing the tuple form (`[['X-Foo', '1']]`) or a `Headers` instance would\n * type-check, and `{ ...init.headers }` below would spread it by index —\n * producing a header literally named `0`, or nothing at all, instead of the\n * headers asked for. Every outbound request in the product goes through here,\n * so that failure would be silent and total. Narrowing the type makes the\n * merge below the only thing this function has to support.\n */\nexport type ScraperFetchInit = Omit<RequestInit, 'headers'> & {\n  headers?: Record<string, string>;\n};\n\nexport type ScraperFetchOptions = {\n  /**\n   * Jar to read `Cookie` from and write `Set-Cookie` back into. Pass null when\n   * {@link PLATFORM_OWNS_COOKIES}, where a second jar would only shadow the\n   * store the OS is already keeping.\n   */\n  cookieJar?: CookieJar | null;\n\n  /** Override the network call for this session. See {@link resolveTransport}. */\n  transport?: Transport | undefined;\n};\n\n/**\n * Make one outbound scraper request.\n *\n * Does not follow redirects — callers that need to (`MyChartRequest.makeRequest`,\n * the eUnity SAML chain) pass `redirect: 'manual'` and come back round for a\n * fresh permit on each hop. That is deliberate: only the individual network\n * call sits inside the permit, because holding one across a whole redirect\n * chain would let a single chain hold several at once and deadlock against its\n * own callers.\n */\nexport async function scraperFetch(\n  url: string,\n  init: ScraperFetchInit = {},\n  options: ScraperFetchOptions = {},\n): Promise<Response> {\n  const { cookieJar } = options;\n  const transport = resolveTransport(options.transport, cookieJar);\n\n  const headers: Record<string, string> = { ...BROWSER_HEADERS, ...init.headers };\n\n  // MyChart's APIs speak JSON, so a POST body that didn't declare a type is a\n  // JSON one. Call sites that send anything else (form-encoded logins, AMF)\n  // set Content-Type themselves and that wins.\n  if (init.method === 'POST' && init.body && !headers['Content-Type']) {\n    headers['Content-Type'] = 'application/json';\n  }\n\n  if (cookieJar) {\n    const cookie = await cookieHeaderFor(cookieJar, url);\n    if (cookie) headers['Cookie'] = cookie;\n  }\n\n  // Two minutes, then give up. A host that accepts the connection and never\n  // answers would otherwise hang the scrape forever while holding one of that\n  // host's ten permits, so a few of them starve every other category on it.\n  // `AbortSignal.timeout` would be the one-liner, but React Native's polyfill\n  // (`abort-controller`) doesn't have that static — AbortController it does\n  // have. One deadline per network call, so a redirect chain gets a fresh one\n  // per hop, the same shape as the permit.\n  const abort = new AbortController();\n  const timer = setTimeout(() => abort.abort(), 120_000);\n\n  let response: Response;\n  try {\n    response = await withHostLimit(url, () =>\n      transport(url, { ...init, headers, signal: abort.signal }),\n    );\n  } finally {\n    clearTimeout(timer);\n  }\n\n  if (cookieJar) {\n    await storeSetCookies(cookieJar, url, response);\n  }\n\n  return response;\n}\n","[\n  {\n    \"aliases\": [\n      \"Heart of Texas\",\n      \"Waco Family Health Center\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F32A6D0C-4295-418F-B756-D93161176663/1fe809172035d131f77155d7c8519ebd.png\",\n    \"name\": \"Waco Family Medicine\",\n    \"slgId\": \"118\",\n    \"url\": \"https://mychart.wacofhc.org/mychartwacoprod/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/534F1D5A-9531-4342-9309-5FAAF9D476D9/7a5f8523bef7741b8441d80c8a125d63.png\",\n    \"name\": \"Kelsey-Seybold\",\n    \"slgId\": \"148\",\n    \"url\": \"https://www.mykelseyonline.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BE0EE000-29A2-4D3B-8592-5CA8FF3DFF37/bfd0a6791c4bd34d42f0cc4727661b0e.png\",\n    \"name\": \"Sick Kids - CHEO\",\n    \"slgId\": \"158\",\n    \"url\": \"https://mychart.kidshealthalliance.ca/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"LCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/63871B9F-41AE-438F-860E-75B9866C9FAD/de15c75282acee566bf5a16f4b929e9e.png\",\n    \"name\": \"Ann & Robert H. Lurie Children's Hospital of Chicago\",\n    \"slgId\": \"159\",\n    \"url\": \"https://mychart.luriechildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A15CE633-709F-4565-A52E-3FE209D5F711/6f25311d1b72e60c94872a39627bc354.png\",\n    \"name\": \"Children's Hospital Colorado\",\n    \"slgId\": \"160\",\n    \"url\": \"https://mychart.childrenscolorado.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Dedham\",\n      \"Granite\",\n      \"Harvard\",\n      \"dma\",\n      \"gmg\",\n      \"hvma\",\n      \"smg\",\n      \"ssmc\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1A414F13-EB48-42FD-A355-CF1EF1137401/2e3038becb3d091569f29fa5b5a1033e.png\",\n    \"name\": \"Atrius Health\",\n    \"slgId\": \"163\",\n    \"url\": \"https://myhealth.atriushealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://www.ucsfhealth.org/ucsfmychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8611ECA4-D39F-4D60-A57D-29FF1A944F3C/e70c9dc6c844f5958bb5b4f5e907f44f.png\",\n    \"name\": \"UCSF\",\n    \"slgId\": \"166\",\n    \"url\": \"https://ucsfmychart.ucsfmedicalcenter.org/ucsfmychart/\"\n  },\n  {\n    \"aliases\": [\n      \"UCMC\",\n      \"Uchicago Medicine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/40CFE185-E0C9-4A84-82A4-BA97BEEA06FC/864f2d7f12919f5e63490e67442818d9.png\",\n    \"name\": \"University of Chicago Hospitals\",\n    \"slgId\": \"169\",\n    \"url\": \"https://mychart.uchospitals.edu/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/custom/globalHealth.png\",\n    \"name\": \"GlobalHealth Holdings\",\n    \"slgId\": \"192\",\n    \"url\": \"https://myglobal.globalhealth.com/MyGlobal/\"\n  },\n  {\n    \"aliases\": [\n      \"Edward-Elmhurst\",\n      \"Edward\",\n      \"Elmhurst\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9F221901-15BD-4247-B6C6-04FF45B294E3/5ab866441ffdb896884e64c2ad2fdfad.png\",\n    \"name\": \"Endeavor Health\",\n    \"slgId\": \"206-2\",\n    \"url\": \"https://mychart.eehealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"penn\",\n      \"holy\",\n      \"spirit\",\n      \"susquehanna\",\n      \"valley\",\n      \"svms\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/98D46880-4AB1-4088-B3F4-6CD45EE883FA/9cd3f74d41decc680114d43ca4a40048.png\",\n    \"name\": \"Geisinger\",\n    \"slgId\": \"223\",\n    \"url\": \"https://www.geisinger.org/mygeisinger\"\n  },\n  {\n    \"aliases\": [\n      \"svms\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0E058C76-3F97-426D-92C2-27CA841B7D3F/4ae62343a47d74f087dd47bea4e41a2c.png\",\n    \"name\": \"Susquehanna Valley Medical Specialties\",\n    \"slgId\": \"223-2\",\n    \"url\": \"https://www.mycarecompass.org/mychart\"\n  },\n  {\n    \"aliases\": [\n      \"community\",\n      \"care\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0A1FD4DB-3BC4-422B-ACAD-167E10A971D9/3d5a4ee9bf894c9b86892fa96cd62147.png\",\n    \"name\": \"CommunityCare\",\n    \"slgId\": \"223-3\",\n    \"url\": \"https://www.mycarecompass.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Evangelical,Evan,ECH\",\n      \"Evangelical\",\n      \"Evan\",\n      \"ECH\"\n    ],\n    \"directoryUrl\": \"https://www.evanhospital.com/for-patients/mychart?utm_content=mychart\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2007ABDB-1202-423E-977B-90E44089FAD1/25c000f5cd160a5c6eb049874b8b0a37.png\",\n    \"name\": \"Evangelical Community Hospital\",\n    \"slgId\": \"223-4\",\n    \"url\": \"https://my.wellspan.org/MyWellSpan/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/custom/healthPartners.png\",\n    \"name\": \"HealthPartners\",\n    \"slgId\": \"227\",\n    \"url\": \"https://www.healthpartners.com/public/login/\"\n  },\n  {\n    \"aliases\": [\n      \"Seattle Cancer Care Alliance\",\n      \"SCCA\",\n      \"Fred Hutchinson Cancer Center\",\n      \"Fred Hutch\",\n      \"FHCC\",\n      \"UWMC\",\n      \"University of Washington\",\n      \"University of Washington Medicine\",\n      \"University of Washington Medical Center\",\n      \"Harborview Medical Center\",\n      \"HMC\",\n      \"Northwest Hospital\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6E2FD2F6-0BBE-4084-8029-CD57EACCC0B9/59963a47e8575ff8a59a37e1c35db6cf.png\",\n    \"name\": \"UW Medicine\",\n    \"slgId\": \"255\",\n    \"url\": \"https://mychart.uwmedicine.org/prod01/\"\n  },\n  {\n    \"aliases\": [\n      \"EBNHC\",\n      \"East Boston Neighborhood Health Center\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B76AF78-1F8E-4EF8-BECF-0A11000D8F61/641f204d7974860d4df928d74b88125f.png\",\n    \"name\": \"NeighborHealth\",\n    \"slgId\": \"265\",\n    \"url\": \"https://mychart.ebnhc.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"PAMF\",\n      \"Palo Alto Medical Foundation\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C92CA5F8-2A5D-4252-9812-8D2C1E9EFBEE/7a2286b74f37e7f82ecebaf2870d6bb7.png\",\n    \"name\": \"Sutter Health\",\n    \"slgId\": \"278\",\n    \"url\": \"https://myhealthonline.sutterhealth.org/MHO/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5D6EFCF3-986F-4D18-AF3D-52DFED744394/e80f9334a7ef07e1abf0aef03cb086f6.png\",\n    \"name\": \"MultiCare\",\n    \"slgId\": \"279\",\n    \"url\": \"https://mychart.multicare.org/mymulticare/\"\n  },\n  {\n    \"aliases\": [\n      \"seamar\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/677072AF-1112-423D-B8EB-D163A75C37BE/bc3631b07a57f1ea09c504339711bad6.png\",\n    \"name\": \"Sea Mar\",\n    \"slgId\": \"279-1\",\n    \"url\": \"https://mychart.seamarchc.org/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0A2A13FA-3F85-496A-AADF-64A474A3B57E/909bda72eb846ab62afba99b823ba300.png\",\n    \"name\": \"Carol Milgard Breast Center\",\n    \"slgId\": \"279-2\",\n    \"url\": \"https://prd.ccmychart.org/cmbc/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3F1498E7-159E-4C6B-BF18-2B0457420AD3/fa8d1e409e0c4e7ef271b7dbb53723e9.png\",\n    \"name\": \"Kootenai Health\",\n    \"slgId\": \"279-3\",\n    \"url\": \"https://kh.ccmychart.org/kh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4A7DCF80-6572-4591-8EB9-AADF97A9C3F6/37c7f5e393ed519a95fb9e4ec2055f06.png\",\n    \"name\": \"East Adams Rural Hospital\",\n    \"slgId\": \"279-4\",\n    \"url\": \"https://ccmychart.org/EARH/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C5A446EE-54FD-4986-BE0D-707B5220CC4A/cc3389d0fa62a03decf3eb8fd5c08a91.png\",\n    \"name\": \"Willapa Harbor Hospital\",\n    \"slgId\": \"279-5\",\n    \"url\": \"https://www.ccmychart.org/whh/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/74295128-E94C-4F59-8617-DC10786CEAA9/a6f6e26f50cc143b84e66d7ca2f3e89d.png\",\n    \"name\": \"Western Washington Medical Group\",\n    \"slgId\": \"279-6\",\n    \"url\": \"https://www.ccmychart.org/wwmg/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/36549BF2-4305-4410-993B-D1CC1493C5A0/8942f2a02605fab9838591b7c4c6e8e3.png\",\n    \"name\": \"Forks Community Hospital\",\n    \"slgId\": \"279-7\",\n    \"url\": \"https://www.ccmychart.org/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/276FDF9B-DF30-44D0-B543-A6D6419A23D1/c45dd7714a8584c5189047b0df1ed5f8.png\",\n    \"name\": \"Coeur OBGYN\",\n    \"slgId\": \"279-8\",\n    \"url\": \"https://cob.ccmychart.org/COB/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/92971D29-C98F-4F6C-A8D4-71759E7BE6FB/fa86870d87d40bd52e0faead9cc7706d.png\",\n    \"name\": \"MetroHealth OH\",\n    \"slgId\": \"292\",\n    \"url\": \"https://mychart.metrohealth.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3074A2F0-E70A-4146-BD9A-A22FD518D98B/61bfbd606bc9998f5b844f86a23b99f0.png\",\n    \"name\": \"Spry Health\",\n    \"slgId\": \"292-1\",\n    \"url\": \"https://mychart.myspry.com/MySpry/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/23D9BA59-1625-4267-A268-15E46F605218/2922fed7b5fcd5168386ece0f1edbe37.png\",\n    \"name\": \"Lumina\",\n    \"slgId\": \"292-2\",\n    \"url\": \"https://mychart.luminaimaging.com/Lumina/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3B3C0989-D60E-476B-BE66-D41EBE099EF6/3cbb72d187bdf9287d8fb8b6d76f431f.png\",\n    \"name\": \"SprySenior\",\n    \"slgId\": \"292-3\",\n    \"url\": \"https://mychart.sprysenior.com/SprySenior/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/39492130-6268-4F1C-9B29-AB067887A9D8/92c2e031670e528de844655e5976229b.png\",\n    \"name\": \"Ovatient\",\n    \"slgId\": \"292-4\",\n    \"url\": \"https://mychart.ovatient.com/ovatient/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5A835B36-9F80-43D0-AE57-AC59DE99071E/aa9b8e3f8d1474c59d6bdb78200a5f49.png\",\n    \"name\": \"Rush University Medical Center\",\n    \"slgId\": \"294\",\n    \"url\": \"https://mychart.rush.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Upenn\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3C7E96BE-8641-4F8F-813C-9539EE54B6CF/542696a2dcac9778e716eca6218c8b79.png\",\n    \"name\": \"Penn Medicine\",\n    \"slgId\": \"297\",\n    \"url\": \"https://secure.mypennmedicine.org/MyPennMedicine/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D38BF378-B92B-4C28-9299-F9E19580FE23/935ebf7864e30980d896bfc2d3e81faa.png\",\n    \"name\": \"Parkland\",\n    \"slgId\": \"300\",\n    \"url\": \"https://mychart.parklandhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3FD9A7B3-AFC9-4C31-9949-D58F689D9E46/676681c052c5e9247841d2ce36327aa5.png\",\n    \"name\": \"Advocate Aurora Health\",\n    \"slgId\": \"301\",\n    \"url\": \"https://livewell.aah.org/Chart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FE78E453-C8C7-4A9D-86BF-E76BDFFEFACC/312c60284a35050e071495765a8af354.png\",\n    \"name\": \"BayCare Clinic\",\n    \"slgId\": \"301-2\",\n    \"url\": \"https://my.baycareclinic.com/BaycareClinicsMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2D572A81-B9EC-4FFB-86FD-5BD146E37323/796c3fead77ccb867a08d2c18a3691fe.png\",\n    \"name\": \"PediaTrust\",\n    \"slgId\": \"301-3\",\n    \"url\": \"https://mychart.pediatrust.com/pediatrust/\"\n  },\n  {\n    \"aliases\": [\n      \"The U\",\n      \"Moran\",\n      \"Huntsman\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/595156B8-337C-4601-B5BF-F8218D4A7C33/6f58596dec7c13c4690336e26a89a898.png\",\n    \"name\": \"University of Utah\",\n    \"slgId\": \"303\",\n    \"url\": \"https://mychart.med.utah.edu/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D71E825E-FC64-4339-877C-4036443A1B3B/36bc1465970095c7c6290420debddc23.png\",\n    \"name\": \"Carson Tahoe\",\n    \"slgId\": \"303-2\",\n    \"url\": \"https://mychart.carsontahoe.com/patientportal/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Kaukauna\",\n      \"Aascend\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D55B9BC2-44A1-45A5-8970-29C59A6E5971/875b3c10da497ed6e042cbf561aac26d.png\",\n    \"name\": \"Thedacare\",\n    \"slgId\": \"306\",\n    \"url\": \"https://my.thedacare.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Green\",\n      \"Iron\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CFA8861F-5520-41E1-B91D-29A78135B01A/baaafdbca6a10c4cff495c9b57e63e25.png\",\n    \"name\": \"Bellin\",\n    \"slgId\": \"306-2\",\n    \"url\": \"https://www.mybellin.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/46DDD7A6-096D-424D-8C73-5BE9C720F753/b9e14bf544f53f5a5a9a4c63d10d9b2c.png\",\n    \"name\": \"Partnership Community Health\",\n    \"slgId\": \"306-3\",\n    \"url\": \"https://my.thedacare.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/17F921B6-8A73-4DC0-9615-9619600A489F/de4898f3aef650477aeb039741af8423.png\",\n    \"name\": \"Neuroscience Group\",\n    \"slgId\": \"306-4\",\n    \"url\": \"https://my.thedacare.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"mhf\",\n      \"lhe\",\n      \"legacy\",\n      \"ump\",\n      \"university\",\n      \"rmg\",\n      \"Richfield\",\n      \"bfp\",\n      \"Burnsville\",\n      \"gich\",\n      \"grand\",\n      \"Itasca\",\n      \"rmc\",\n      \"range\",\n      \"UMP\",\n      \"healtheast\",\n      \"mhealth\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0F882D77-7848-48A6-A1BF-F6790CC1C5F2/94ae3c820c126746cedd5b85a1b13323.png\",\n    \"name\": \"M Health Fairview\",\n    \"slgId\": \"312\",\n    \"url\": \"https://mychart.fairview.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"bfp\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/63DF9584-1626-42D7-BDCD-E7E5E994811D/399ee137206d9099505c4101c9c0efd8.png\",\n    \"name\": \"Burnsville Family Physicians\",\n    \"slgId\": \"312-1\",\n    \"url\": \"https://mychart.fairview.org/BFP/\"\n  },\n  {\n    \"aliases\": [\n      \"Fairview\",\n      \"UMP\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/31C18269-5E97-4BDC-BBD8-11240B5637A5/e26f88e158d40bf491c7fc36372cb026.png\",\n    \"name\": \"University of Minnesota Physicians\",\n    \"slgId\": \"312-2\",\n    \"url\": \"https://mychart.fairview.org/UMP/\"\n  },\n  {\n    \"aliases\": [\n      \"rmc\",\n      \"mesaba\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/40E6016B-9A25-47A9-A889-3804EC7199E0/ee217b9ccac33d45345aaca2b0bfebcf.png\",\n    \"name\": \"Fairview Range\",\n    \"slgId\": \"312-3\",\n    \"url\": \"https://mychart.fairview.org/Range/\"\n  },\n  {\n    \"aliases\": [\n      \"rmg\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/432C8DD0-FF50-46EC-8114-03A072AF534B/2108af86b97b678f5ac8395685a161a4.png\",\n    \"name\": \"Richfield Medical Group\",\n    \"slgId\": \"312-4\",\n    \"url\": \"https://mychart.fairview.org/RMG/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CA938278-FF65-45A2-AB71-1B47A1CC5CBF/cdcfa6b6b432f6efe8046c96585d6030.png\",\n    \"name\": \"Carle\",\n    \"slgId\": \"316\",\n    \"url\": \"https://www.mycarle.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://www.mychristie.com/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1B7D5BE1-A97D-4DC2-BD02-0CC39BDFD363/a1f0cab512067455a94fcc53dcfb530a.png\",\n    \"name\": \"Christie Clinic\",\n    \"slgId\": \"316-1\",\n    \"url\": \"https://www.mychristie.com/Christie/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/17295821-B4C2-4C23-A54F-77D47DD40547/3834bdd477b3c5d4838bec8bb696bf1b.png\",\n    \"name\": \"Buffalo Medical Group\",\n    \"slgId\": \"317\",\n    \"url\": \"https://www.mybmgchart.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8209F764-AEB4-47FF-A078-A210F994CEA6/c8e9c2d496540359108ed7a4d7ff9de9.png\",\n    \"name\": \"TriHealth\",\n    \"slgId\": \"319\",\n    \"url\": \"https://mychart.trihealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/37EED2FE-14D4-4E63-B1A6-5AC2F88CE502/ddfe1f23cee07397455ebd18f7626c9d.png\",\n    \"name\": \"Highland District Hospital\",\n    \"slgId\": \"319-1\",\n    \"url\": \"https://mychart.hdh.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A96AB50C-F20B-42EE-999E-5A8835EB2D08/371222bc36a6ad232346ffd8808df3d5.png\",\n    \"name\": \"Highland Health Providers\",\n    \"slgId\": \"319-2\",\n    \"url\": \"https://mychart.hhproviders.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [\n      \"Martin\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9F5E6BE5-4466-4E1D-99AC-29A21E438E38/ffb08582202b9334a608314adae7b2ff.png\",\n    \"name\": \"Cleveland Clinic\",\n    \"slgId\": \"320\",\n    \"url\": \"https://mychart.clevelandclinic.org/\"\n  },\n  {\n    \"aliases\": [\n      \"AIDHC\",\n      \"NCH\",\n      \"Alfred\",\n      \"DuPont\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/160427A6-F11C-40BE-916F-1893ABFBAA0E/5081707338935aef0ed9d7258fafdeb2.png\",\n    \"name\": \"Nemours Children's Health\",\n    \"slgId\": \"321\",\n    \"url\": \"https://mychart.nemours.org/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"Solution Health\",\n      \"Elliot\",\n      \"Southern New Hampshire\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D42E60F8-AFCA-43E6-AEF4-D008A5A31EE3/0c4d40d2908d6cbdd1739131f4a3385f.png\",\n    \"name\": \"SolutionHealth\",\n    \"slgId\": \"333\",\n    \"url\": \"https://mychart.solutionhealth.org/mychartprd\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F5A6B613-9F03-4412-95F4-19E9C9DFF9B6/f0b8ad4617fae71e8848c6771a01e6fd.png\",\n    \"name\": \"Dreyer\",\n    \"slgId\": \"342\",\n    \"url\": \"https://myadvocateaurora.org/chart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/791816FD-6E8E-46AB-B3D1-BDE12000A275/432af8585fdeb046d327481792eab0d5.png\",\n    \"name\": \"Essentia Health\",\n    \"slgId\": \"343\",\n    \"url\": \"https://www.essentiamychart.org/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8B685F5C-822E-4779-94FA-37E4876E028F/bdfdf33b4123be94d0ac7e5e9cabbf88.png\",\n    \"name\": \"Bois Forte Health and Human Services\",\n    \"slgId\": \"343-3\",\n    \"url\": \"https://boisforte.com/services/medical-services/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://www.ebch.org/patients-visitor-info/billing-insurance\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B490D2E7-EE17-4C0C-A60C-A3D22B1C1220/257fcb0e55eee1d55b92d2e3f36d929f.png\",\n    \"name\": \"Ely Bloomenson Community Hospital\",\n    \"slgId\": \"343-4\",\n    \"url\": \"https://communityconnect.essentiahealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://haywardmemorialhospital.com/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/52960CD8-D9B7-4263-AE92-F6C95EE27C34/42601c4cfa6172b8f47b555f712615e2.png\",\n    \"name\": \"Hayward Medical Center\",\n    \"slgId\": \"343-5\",\n    \"url\": \"https://communityconnect.essentiahealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Tamarack Health\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5028C3F7-FF3B-4FF9-92E5-BB4242985511/aa2d5264cb4c201a6195e72d7359a9e4.png\",\n    \"name\": \"Ashland Medical Center\",\n    \"slgId\": \"343-7\",\n    \"url\": \"https://ashlandmmc.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FB72409C-3E95-4DAA-93DA-B7FD4E029C27/dc22584d143e2003aacdcb32b311e87f.png\",\n    \"name\": \"Ridgeview\",\n    \"slgId\": \"343-8\",\n    \"url\": \"https://www.ridgeviewmedical.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://www.spoonerhealth.com/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FE8B684E-5293-4DED-A769-9F052F131D32/2e853f2463ffd4b60ff22ed563e6cd5b.png\",\n    \"name\": \"Spooner Health\",\n    \"slgId\": \"343-9\",\n    \"url\": \"https://communityconnect.essentiahealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6F6EB782-17D6-4095-B3C3-F252275DC757/cece47a011c625a99569bac2c66fdea6.png\",\n    \"name\": \"Linton Regional Medical Center\",\n    \"slgId\": \"343-10\",\n    \"url\": \"https://communityconnect.essentiahealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3AC117A9-D74A-416A-A88B-C38DDB496439/ae5b42a197893ef38e483bbe080eae3d.png\",\n    \"name\": \"IMA Healthcare\",\n    \"slgId\": \"343-11\",\n    \"url\": \"https://communityconnect.essentiahealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Zale\",\n      \"Aston\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/558A1BEA-C6EB-431A-8012-43E2162DDD1D/92ee8059fcdcea8a43836b95fae5ea50.png\",\n    \"name\": \"UTSW\",\n    \"slgId\": \"408\",\n    \"url\": \"https://mychart.utsouthwestern.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Children’s\",\n      \"Philadelphia\",\n      \"Children’s Hospital of Philadelphia\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/18E45220-F3CD-43A5-8FDE-31AAD2F88ABD/7039100c2c9f44fa215d9538d34e53de.png\",\n    \"name\": \"CHOP\",\n    \"slgId\": \"410\",\n    \"url\": \"https://mychop.chop.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"American Family\",\n      \"AFCH\",\n      \"Swedish American\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E401A06A-B403-441B-BF27-3D87F580FD7D/9f7901eb0a267bd6a8a552b8e9346e72.png\",\n    \"name\": \"UW Health\",\n    \"slgId\": \"412\",\n    \"url\": \"https://uwhealthmychart.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Quartz Senior Preferred\",\n      \"Quartz Senior Choice\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1ADC3E93-7D5F-4081-B684-AFD33EDBB307/56f21032077aba820c7361525a10a797.png\",\n    \"name\": \"Quartz\",\n    \"slgId\": \"412-1\",\n    \"url\": \"https://quartzmychart.com/Quartz/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [\n      \"ACHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6BB8D9C9-6C62-4451-A5CF-274D71289206/c005810a10777f6d8d97ff8f4c335a7b.png\",\n    \"name\": \"Access Community Health Centers\",\n    \"slgId\": \"412-2\",\n    \"url\": \"https://accesshealthmychart.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://swedishamericanmychart.org/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F6A0997B-8D9E-4EB1-BE16-7475B0A4665B/977e1c7cc757a902f3604ea8a26b252f.png\",\n    \"name\": \"SwedishAmerican\",\n    \"slgId\": \"412-3\",\n    \"url\": \"https://mychart.uwhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Group Health Cooperative\",\n      \"GHCSCW\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4F234B9E-D476-4CC5-8FFD-3178D780288D/30bda73599f5dd83030f6f84dee78068.png\",\n    \"name\": \"GHC\",\n    \"slgId\": \"413\",\n    \"url\": \"https://ghcmychart.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E9101FD4-264D-4666-896F-06E2AEEB624E/39877533b927ee2f62a11ea8b664bd4a.png\",\n    \"name\": \"Presbyterian Healthcare Services\",\n    \"slgId\": \"416\",\n    \"url\": \"https://mychart.phs.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Harris County\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A96571E6-FAAC-4EC3-9673-CC8B2F33FF0A/f74079eff9f12269b7b88615c692919a.png\",\n    \"name\": \"Harris Health\",\n    \"slgId\": \"420\",\n    \"url\": \"https://myhealth.harrishealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A522E0E0-4E6C-4F47-AF21-AAC6E0A7F1D6/60a2ee98d7fa873487a8109f65255eb9.png\",\n    \"name\": \"Vecino Health Centers\",\n    \"slgId\": \"420-2\",\n    \"url\": \"https://myhealth.harrishealth.org/vecino/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/57BF0A9C-49F2-48E7-9F8C-030B55682769/bf43de329727c798ccbdfe9e7a978dbb.png\",\n    \"name\": \"Healthcare for the Homeless Houston\",\n    \"slgId\": \"420-3\",\n    \"url\": \"https://myhealth.harrishealth.org/hhh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B5F7B3C8-95EC-4FE3-B7BA-D32ADCF36042/abc046de800bc68223332d7ef87ab7db.png\",\n    \"name\": \"Harris County Public Health\",\n    \"slgId\": \"420-4\",\n    \"url\": \"https://myhealth.harrishealth.org/hcph/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/12EB952A-2347-44AF-A8B4-04440A931F00/7524437e17b50415ec42662536d07848.png\",\n    \"name\": \"Contra Costa Health Services\",\n    \"slgId\": \"421\",\n    \"url\": \"https://mychart.cchealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"PHN\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/25592EA5-5C98-43C0-AF5F-9634634D638D/3530a08e9d13af4b1c3e69972b46f40e.png\",\n    \"name\": \"Ascension - Providence HealthCare Network\",\n    \"slgId\": \"425\",\n    \"url\": \"https://mychart.providence-waco.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"IFH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F1378979-AD85-4637-B9D8-262641DEC2AC/caea9754af13c4e3b43017a84c875932.png\",\n    \"name\": \"The Institute for Family Health\",\n    \"slgId\": \"426\",\n    \"url\": \"https://mychartmyhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Northshore University Health System\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1D3707AA-9ABE-477E-B86D-4A558AB60A7F/74dd919094e150b021468576e0a80d3a.png\",\n    \"name\": \"Endeavor Health – NorthShore University HealthSystem\",\n    \"slgId\": \"431\",\n    \"url\": \"https://www.northshoreconnect.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Neighborcare\",\n      \"Adventist\",\n      \"Ahoskie\",\n      \"Alisal\",\n      \"Ambrose\",\n      \"AMC\",\n      \"Asher\",\n      \"Bastyr\",\n      \"BEACH\",\n      \"Beaverton\",\n      \"Bend\",\n      \"Benton\",\n      \"BHCHP\",\n      \"Boston\",\n      \"Braxton\",\n      \"BUC\",\n      \"Butte\",\n      \"CareOregon\",\n      \"Carino\",\n      \"Cascades\",\n      \"Cathlamet\",\n      \"Centro\",\n      \"CFHC\",\n      \"CHC\",\n      \"Chiloquin\",\n      \"Chowan\",\n      \"Clackamas\",\n      \"Clatsop\",\n      \"Clement\",\n      \"Cleveland\",\n      \"Codman\",\n      \"Colerain\",\n      \"Columbia\",\n      \"Corazon\",\n      \"Cornelius\",\n      \"Corvallis\",\n      \"Cowlitz\",\n      \"Crook\",\n      \"Cruz\",\n      \"CSTL\",\n      \"D.A.P\",\n      \"Deschutes\",\n      \"Donner\",\n      \"Door\",\n      \"DotHouse\",\n      \"Emeline\",\n      \"FMC\",\n      \"Forest\",\n      \"FQHC\",\n      \"Garcia\",\n      \"Gary\",\n      \"Grant\",\n      \"GRMDC-Greater\",\n      \"Grove\",\n      \"Harrison\",\n      \"Healdsburg\",\n      \"HealthNet\",\n      \"HFA\",\n      \"HHS\",\n      \"HPHP\",\n      \"HSC\",\n      \"Jane\",\n      \"Jefferson\",\n      \"K-8\",\n      \"Klamath,\",\n      \"KOD\",\n      \"Kodiak\",\n      \"LAGUNA\",\n      \"LCDC\",\n      \"Lincoln\",\n      \"Linn\",\n      \"Longview\",\n      \"Lynn\",\n      \"Madras\",\n      \"Mattapan\",\n      \"MCHD\",\n      \"McMinnville\",\n      \"Medford\",\n      \"Millvale\",\n      \"MMG\",\n      \"MMM\",\n      \"Molalla\",\n      \"Monterey\",\n      \"Mosaic\",\n      \"Multnomah\",\n      \"Nehalem\",\n      \"NFP\",\n      \"Norwood\",\n      \"NUNM\",\n      \"Olivet\",\n      \"P.C.\",\n      \"Pacific\",\n      \"Parkrose\",\n      \"Pasadena\",\n      \"Pauley\",\n      \"PCC\",\n      \"Pine\",\n      \"Portland\",\n      \"Prineville\",\n      \"Queenscare\",\n      \"RCCHC\",\n      \"RCH\",\n      \"Rinehart\",\n      \"Rogue\",\n      \"Romero\",\n      \"Santa\",\n      \"SBHC\",\n      \"Scappoose\",\n      \"Seattle\",\n      \"Southwest\",\n      \"Springfield\",\n      \"Stuhr\",\n      \"Tahoe\",\n      \"Tillamook\",\n      \"Truckee\",\n      \"TTMG\",\n      \"TUC\",\n      \"Upham's\",\n      \"VGFG\",\n      \"VGT\",\n      \"Virginia\",\n      \"WAC\",\n      \"Wahkiakum\",\n      \"Wallace\",\n      \"WCHC\",\n      \"WesternU\",\n      \"Wheeler\",\n      \"Whittier\",\n      \"WIC/MSS\",\n      \"Klamath\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7E9A3915-C089-4BAC-89D0-D1B23486D2DF/4fad490f0ba95053c298aca54710c32a.png\",\n    \"name\": \"OCHIN\",\n    \"slgId\": \"432\",\n    \"url\": \"https://mychart.ochin.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6A448D63-B6B4-42E3-B195-549FD2D28893/86c33a2548bfc097654d8dfeb836b187.png\",\n    \"name\": \"Saban\",\n    \"slgId\": \"432-2\",\n    \"url\": \"https://mychart.ochin.org/mychartsaban/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/62ED9D80-D9B9-4AA6-AB36-E1A9E6475BD0/0c7504a2bca16ad8cd9baa08396c1a38.png\",\n    \"name\": \"GoldenShore Medical\",\n    \"slgId\": \"432-3\",\n    \"url\": \"https://mychart.ochin.org/mychartgsm\"\n  },\n  {\n    \"aliases\": [\n      \"DAP\",\n      \"Totalcare\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4AC58483-55F8-4ED1-91FF-01F98E2B8CE0/77d4a8bc886c7048bd07485e9d023760.png\",\n    \"name\": \"DAP\",\n    \"slgId\": \"432-4\",\n    \"url\": \"https://mychart.ochin.org/mychartdap/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/01C8AF76-A7AA-4F72-AB19-B99EA3FAA4B1/2f340b67e813ef9f962268e5a2ad2318.png\",\n    \"name\": \"Mosaic Medical\",\n    \"slgId\": \"432-5\",\n    \"url\": \"https://mychart.ochin.org/mychartmosaic/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7ED173CC-1364-4D8C-B471-1B5F1DC9F832/0e8704357ff003736a921950d0885322.png\",\n    \"name\": \"Mercy Care\",\n    \"slgId\": \"432-6\",\n    \"url\": \"https://mychart.ochin.org/mychartsjmc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D6396F8F-25A7-4919-91A3-6AD977D4FF8B/89ee3df9732d45457a1fd0590eacdc6c.png\",\n    \"name\": \"South Boston Community Health Center\",\n    \"slgId\": \"432-7\",\n    \"url\": \"https://mychart.ochin.org/mychartsbchc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E500A88D-3426-4109-83A3-901AECBD726B/79e74a33abe16de85cac262d96637511.png\",\n    \"name\": \"Gracelight Community Health\",\n    \"slgId\": \"432-8\",\n    \"url\": \"https://mychart.ochin.org/MyChartGCH\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F853B2A9-E88C-4D96-9DD0-EA84E033B6CF/d8abea169563236de485d124132b2dfb.png\",\n    \"name\": \"Axis Community Health\",\n    \"slgId\": \"432-9\",\n    \"url\": \"https://mychart.ochin.org/mychartaxis/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/485C0155-3DBF-4AB4-BC2D-8D151C1EF56B/42defe97e6714299da7b231382150458.png\",\n    \"name\": \"Kintegra Health\",\n    \"slgId\": \"432-11\",\n    \"url\": \"https://mychart.ochin.org/mychartkintegra/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/218FB81D-FC48-48CE-BAD0-270E4715DE69/74b5c3d391973076f8ec8baa290cc8cc.png\",\n    \"name\": \"One Community Health\",\n    \"slgId\": \"432-12\",\n    \"url\": \"https://mychart.ochin.org/mychartoch/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CC224CC5-E694-4587-8A87-53E84D5E284B/815db0e5522a92da2eff1c0991b909a4.png\",\n    \"name\": \"Southern Jersey Family Medical Centers\",\n    \"slgId\": \"432-13\",\n    \"url\": \"https://mychart.ochin.org/mychartsjfmc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FE25B2B6-4871-45B9-94F9-087DE50AAFAA/8a561926ea824b6b77fa02e5be2d4e8b.png\",\n    \"name\": \"Carolina Health Centers\",\n    \"slgId\": \"432-14\",\n    \"url\": \"https://mychart.ochin.org/mychartchc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/79CFD047-9A6A-4CC2-B767-F1F1C5CA6BBD/e6fd8c881d8f30d9084570a30fcc3468.png\",\n    \"name\": \"Columbia River Health\",\n    \"slgId\": \"432-15\",\n    \"url\": \"https://mychart.ochin.org/MyChartCRH/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E39AA794-957B-4195-8419-1B93BDB39086/57b511f3e42748605f6824ba37d62528.png\",\n    \"name\": \"Full Circle Health\",\n    \"slgId\": \"432-16\",\n    \"url\": \"https://mychart.ochin.org/mychartfch/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D0B9B15D-7CAD-48C4-8CB8-87F6EDBC7C61/e70e2e9d789ee23aac55aefd0d3e888e.png\",\n    \"name\": \"LifeLong Medical\",\n    \"slgId\": \"432-17\",\n    \"url\": \"https://mychart.ochin.org/MyChartllmc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/14844414-FADD-45EC-9356-E193F1CAD6EB/09da2a8225d32b7e52bf8331322e0f28.png\",\n    \"name\": \"University of Minnesota\",\n    \"slgId\": \"432-18\",\n    \"url\": \"https://mychart.ochin.org/MyChartCUHCC/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/277667B0-D1CE-4942-AD51-DAB5998CA5E5/d2a85974df7cf0d01d57e79c34aa8edd.png\",\n    \"name\": \"North Lakes\",\n    \"slgId\": \"432-19\",\n    \"url\": \"https://mychart.ochin.org/MyChartNorthlakes/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FFA323BC-96F4-4401-979E-32FB5DC977A5/70effacf2389b68c197a3694d2d9ec51.png\",\n    \"name\": \"Baywell Health\",\n    \"slgId\": \"432-20\",\n    \"url\": \"https://mychart.ochin.org/mychartbaywell/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/37012B22-FD3E-4023-BCEE-59F20EE9D25D/34400d6b4084f43efba9db050d6a805c.png\",\n    \"name\": \"Western University\",\n    \"slgId\": \"432-21\",\n    \"url\": \"https://mychart.ochin.org/MyChartWesternU/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/36AC75A7-75CB-4671-BFBE-52EF768A04FD/2d9630bb9f4672efc60bdf9659a5483e.png\",\n    \"name\": \"Bay Area Community Health\",\n    \"slgId\": \"432-22\",\n    \"url\": \"https://mychart.ochin.org/mychartbach/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/00361412-16EC-478B-B986-5D51914833EA/ebb92b55bf3ca4108bae86cdb058ed6d.png\",\n    \"name\": \"Tiburcio Vasquez Health Center\",\n    \"slgId\": \"432-23\",\n    \"url\": \"https://mychart.ochin.org/mycharttiburcio/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3C8460A4-0913-409F-9DCD-D2A85785496E/263f65382ee8e5d2502fdc6ba5af9df8.png\",\n    \"name\": \"OpenDoor Community Health Center\",\n    \"slgId\": \"432-24\",\n    \"url\": \"https://mychart.ochin.org/mychartopendoor/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/622E01DA-AB25-4268-A4F4-3D19F9F382F8/ab9bb3a4c63c6b16c11bff38734f55e6.png\",\n    \"name\": \"ChapCare\",\n    \"slgId\": \"432-25\",\n    \"url\": \"https://mychart.ochin.org/mychartchap/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/17AE0813-7878-4209-B2D4-1F83C2B2BE45/6a7a711937f9b90b0fb19433e4401759.png\",\n    \"name\": \"Ravenswood Family Health Network\",\n    \"slgId\": \"432-26\",\n    \"url\": \"https://mychart.ochin.org/mychartrfhc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2628F2C4-0781-456C-9BD0-A16C62897A27/14bbfb44605224bd43872541df2e1a6b.png\",\n    \"name\": \"Neighborhood Health Center\",\n    \"slgId\": \"432-27\",\n    \"url\": \"https://mychart.ochin.org/mychartnhc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7EC9768C-F742-4E0D-B6F9-B9D670423324/45d5db97a91db7cb4a9c5fef14ad5096.png\",\n    \"name\": \"Native American Health Center\",\n    \"slgId\": \"432-28\",\n    \"url\": \"https://mychart.ochin.org/mychartnahc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B3D25E7F-308C-4D07-AC5B-5E76776A175C/4c3017abeb5b187ac1b2a6da7dd0ab5e.png\",\n    \"name\": \"Share Our Selves\",\n    \"slgId\": \"432-29\",\n    \"url\": \"https://mychart.ochin.org/mychartsos/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0786EE88-987D-4203-BA9C-D3D0484939FC/9b9241d75f665301f6001048442fe775.png\",\n    \"name\": \"La Clinica\",\n    \"slgId\": \"432-30\",\n    \"url\": \"https://mychart.ochin.org/mychartlclr/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/060C86B4-BF32-4A56-9F4F-79C100DF5C67/62565dc7411e54eeeadd577607118e56.png\",\n    \"name\": \"TrueCare\",\n    \"slgId\": \"432-31\",\n    \"url\": \"https://mychart.ochin.org/mycharttc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6149CB26-8A66-480F-92F4-679D7E6B9775/cd3f8e143b3e9a78ee4d78c680db9d22.png\",\n    \"name\": \"Laguna Beach\",\n    \"slgId\": \"432-32\",\n    \"url\": \"https://mychart.ochin.org/mychartlbcc/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/63325E8E-84DF-49CE-8F35-F7A7C80F2B4C/b9b819aa60328b7666d9324f3377e802.png\",\n    \"name\": \"Virginia Garcia Memorial Health Center\",\n    \"slgId\": \"432-33\",\n    \"url\": \"https://mychart.ochin.org/mychartvg/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/05A1EDE8-212F-486E-8C58-F2959D41E2A4/61686f4081b2215ef2789dbef7471452.png\",\n    \"name\": \"Harbor Health\",\n    \"slgId\": \"432-34\",\n    \"url\": \"https://mychart.ochin.org/mycharthh/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6D71DBC5-54F7-4BBA-978F-36EE9D077D57/e33da47b86ed19142e816a7a741e4ff3.png\",\n    \"name\": \"One Community Health\",\n    \"slgId\": \"432-35\",\n    \"url\": \"https://mychart.ochin.org/mychartochor/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B9471C78-6F72-41C2-B6BF-F9994485B0B5/52669d7b3a85d7e7de7c2c0dd39ee892.png\",\n    \"name\": \"Pacific University Oregon\",\n    \"slgId\": \"432-36\",\n    \"url\": \"https://mychart.ochin.org/mychartpuo/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4208FA0E-52A4-409D-BD2A-CAAD3CCED555/0a0c9b508cfc7be1e43fc285d63c74f1.png\",\n    \"name\": \"Sixteenth Street\",\n    \"slgId\": \"432-37\",\n    \"url\": \"https://mychart.ochin.org/mychartschc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E2D7EEEB-9C3D-4D91-9ABF-C2D25F1A3ED9/07a994883acff895820cb17e0ecfac56.png\",\n    \"name\": \"Gerald L. Ignace Indian Health Center\",\n    \"slgId\": \"432-38\",\n    \"url\": \"https://mychart.ochin.org/mychartgliihc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BB8FA15C-91F4-49F7-B700-7949A65CDA6C/9fbae2d4ec5a8082886d1b1bea793af6.png\",\n    \"name\": \"Elica Health Centers\",\n    \"slgId\": \"432-39\",\n    \"url\": \"https://mychart.ochin.org/mychartehc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/739DEC69-0918-4155-83B0-227BD3540A46/a590ca2913d68673723f3aabf0b8ce98.png\",\n    \"name\": \"Lummi Tribal Health Center\",\n    \"slgId\": \"432-40\",\n    \"url\": \"https://mychart.ochin.org/mychartlths/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7C15566E-BD9F-406F-8F76-E733BCDC0BA4/0d6883fd6eb79eba591a8017a7a1737c.png\",\n    \"name\": \"Tarzana Treatment Center\",\n    \"slgId\": \"432-41\",\n    \"url\": \"https://mychart.ochin.org/mychartttc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/86535C7B-CCDD-4DA9-A7C3-946EC194FFD9/a6e0122b522c73a489fb303e452932a0.png\",\n    \"name\": \"La Pine Community Health Center\",\n    \"slgId\": \"432-42\",\n    \"url\": \"https://mychart.ochin.org/mychartlpchc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3F080FAD-1731-490C-9C20-DE81644314E5/bb38a383890b8760d74c696f7db17cb8.png\",\n    \"name\": \"On Lok\",\n    \"slgId\": \"432-43\",\n    \"url\": \"https://mychart.ochin.org/mychartol/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/10519EF2-250D-4513-BF7B-A059BE9B5A4B/1e67ba4605c1972b6e7535fce4c4cb84.png\",\n    \"name\": \"Riverland Community Health\",\n    \"slgId\": \"432-44\",\n    \"url\": \"https://mychart.ochin.org/RCHealth\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ABC38F68-4CCF-4977-B324-035E9DFE615E/205e2f01b10f1f8cd039db3aac0fcb7c.png\",\n    \"name\": \"MCHC Health Centers\",\n    \"slgId\": \"432-45\",\n    \"url\": \"https://mychart.ochin.org/mychartmc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C590B2A9-87D7-4011-97FE-8D587FB17140/a84bff3662219d8a05d19cecfa2497e2.png\",\n    \"name\": \"Carolina Family Health Centers\",\n    \"slgId\": \"432-46\",\n    \"url\": \"https://mychart.ochin.org/mychartcfhc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B0E32677-2579-43F4-AF34-64B471BE7169/1583e9507fcd71452edfe1ca2dee3e81.png\",\n    \"name\": \"Lyon Martin\",\n    \"slgId\": \"432-47\",\n    \"url\": \"https://mychart.ochin.org/mychartlmhs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9606748F-BA40-41B4-AFF0-E67E9D15FF63/66ce3eaf24b6f60fd19b94036af6bcc9.png\",\n    \"name\": \"Rogue Community Health\",\n    \"slgId\": \"432-48\",\n    \"url\": \"https://mychart.ochin.org/mychartrogue/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8DA12D00-D6FC-42CE-90BB-961B18B8856B/e10e76f3a2fced3e083eb0db78492f8f.png\",\n    \"name\": \"Lakeshore Community Health Center\",\n    \"slgId\": \"432-49\",\n    \"url\": \"https://mychart.ochin.org/mychartlchc/\"\n  },\n  {\n    \"aliases\": [\n      \"myerie\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ED74911E-2400-41DF-9C2C-B571AC68209C/a40c0e3ec604fe1438568e359e94b48e.png\",\n    \"name\": \"Family Health Centers\",\n    \"slgId\": \"432-50\",\n    \"url\": \"https://mychart.ochin.org/MyErie/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/666C6071-1864-4050-9E3E-1CC160471530/2de1f59ff9f8581ee1363cb8f1041148.png\",\n    \"name\": \"Agape Health Services\",\n    \"slgId\": \"432-51\",\n    \"url\": \"https://mychart.ochin.org/mychartagape/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/750D7DC1-23CE-46D9-B683-7E784B841141/b7a50d0f260b01a3eb9da2f7122e7556.png\",\n    \"name\": \"Outer Cape Health Services\",\n    \"slgId\": \"432-52\",\n    \"url\": \"https://mychart.ochin.org/mychartochs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5D095EAA-3F72-4AC8-9870-34EBA61F464E/1c42c32ec467f38ad0fb7ab40b926d12.png\",\n    \"name\": \"Avenue 360\",\n    \"slgId\": \"432-53\",\n    \"url\": \"https://mychart.ochin.org/MyChartA360/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B1D3AAC9-FA2F-4D24-A341-4DC3DD6B4E08/db3ab4a6d21f688f8bf3ba075c53b498.png\",\n    \"name\": \"Hot Springs Health Program\",\n    \"slgId\": \"432-54\",\n    \"url\": \"https://mychart.ochin.org/MyChartHSH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B52274E6-40F1-4113-B4D4-CAD2AD2C53E3/bd0222ef5e8a4724dbeb762553ba8a56.png\",\n    \"name\": \"San Francisco Community Clinic Consortium\",\n    \"slgId\": \"432-55\",\n    \"url\": \"https://mychart.ochin.org/MyChartSFSOS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3463C7D4-5EDA-495C-B758-0BB4EA3E13C9/4a65cf6d84a459c40daab9a117d21783.png\",\n    \"name\": \"San Francisco Community Health Center\",\n    \"slgId\": \"432-56\",\n    \"url\": \"https://mychart.ochin.org/MyChartSFCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8C8FB58F-78D5-47E6-9757-1AEE0A3A10A7/3b3ac1fc170a86bdd622cfa7b569f271.png\",\n    \"name\": \"Coast Community Health Center\",\n    \"slgId\": \"432-57\",\n    \"url\": \"https://mychart.ochin.org/MyChartCCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0CED0B3E-A76A-4BD8-BFBF-9924D8F3273D/1ce3abe287c20ffe134b0184cfc67955.png\",\n    \"name\": \"Franklin Primary Health Center\",\n    \"slgId\": \"432-58\",\n    \"url\": \"https://mychart.ochin.org/MyChartFPHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9B186993-599F-4010-B482-D172F4715052/04b323aedf881ab53072ee11413b8136.png\",\n    \"name\": \"Pines Health Services\",\n    \"slgId\": \"432-59\",\n    \"url\": \"https://mychart.ochin.org/MyChartPHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/70D7A71C-A283-4D81-A42B-F86592F689D8/d3f25852a1b6ce0ccdea2317c5536ad9.png\",\n    \"name\": \"Mission Neighborhood Health Center\",\n    \"slgId\": \"432-60\",\n    \"url\": \"https://mychart.ochin.org/MyChartMNHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/03A65E6A-BFF7-40A2-9575-49A67F9F1096/0893e08bd5ee9a0e979cd268a0fa2f4f.png\",\n    \"name\": \"The Centers\",\n    \"slgId\": \"432-61\",\n    \"url\": \"https://mychart.ochin.org/MyChartCHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DEEBEB80-A4F3-4AD9-B700-DA16E41E4F94/d179f32bf647cc82fe05d7c19d4157cc.png\",\n    \"name\": \"Milwaukee Health Services\",\n    \"slgId\": \"432-62\",\n    \"url\": \"https://mychart.ochin.org/MyChartMHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5FAA9B87-01B8-41F2-929B-40F6F803CFF4/562656ef855fabedfc9d56454797e9e2.png\",\n    \"name\": \"St. Anthony's\",\n    \"slgId\": \"432-63\",\n    \"url\": \"https://mychart.ochin.org/MyChartSA/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/58156723-4559-47CA-80ED-16787A040919/5ef26b488cf48ae26265bbd40eb54737.png\",\n    \"name\": \"Multnomah County Health Department\",\n    \"slgId\": \"432-64\",\n    \"url\": \"https://mychart.ochin.org/MyChartmultco/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EE050ACE-D80A-42FB-8AC7-071C2D5D38B6/38130cdaa55acf774c25b2126e117c71.png\",\n    \"name\": \"Care Alliance Health Center\",\n    \"slgId\": \"432-65\",\n    \"url\": \"https://mychart.ochin.org/MyChartCA/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D55F16E1-C950-4F12-93F9-32571D212FC2/b502137c1b80c7281443f750b0d06e08.png\",\n    \"name\": \"Jane Pauley Community Health Center\",\n    \"slgId\": \"432-66\",\n    \"url\": \"https://mychart.ochin.org/MyChartJPCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/215F5F67-1DA6-4D4E-B135-FAB765B0227D/2256ebc340ed821050e59d7d0b7777fa.png\",\n    \"name\": \"Alliance Medical Center\",\n    \"slgId\": \"432-67\",\n    \"url\": \"https://mychart.ochin.org/MyChartAMC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A99D91FB-F7C8-4C38-9696-78479CB03122/24548ef8a018c09f016a4f400a179380.png\",\n    \"name\": \"Wallace\",\n    \"slgId\": \"432-68\",\n    \"url\": \"https://mychart.ochin.org/MyChartWallace/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4DB8EB80-D701-43C4-A251-FA32C3C41117/9303ca18afddfa61d08f32e5bcc3f68e.png\",\n    \"name\": \"Nehalem Bay Health Center\",\n    \"slgId\": \"432-69\",\n    \"url\": \"https://mychart.ochin.org/NehalemBayHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/04C1B101-2DD1-4208-9CDD-25A6DD231CA5/3023c8814f2bc8f369f4e3e560272f75.png\",\n    \"name\": \"King County Public Health\",\n    \"slgId\": \"432-70\",\n    \"url\": \"https://mychart.ochin.org/MyChartKingCounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5F4BA2F6-EB37-4FDC-9C5D-6D33007F1D38/279fc941a6793a7a3e49d10010c30878.png\",\n    \"name\": \"La Clinica\",\n    \"slgId\": \"432-71\",\n    \"url\": \"https://mychart.ochin.org/MyChartLaClinicaHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1D513D3A-EA60-4443-88DE-73406065BFAF/43a8e866db67136d15943d54aa628916.png\",\n    \"name\": \"Bartz-Altadonna Community Health Center\",\n    \"slgId\": \"432-72\",\n    \"url\": \"https://mychart.ochin.org/MyChartBACHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5388CEDC-4636-4326-AA38-2DBAF53CA453/8bebfb80e95a1e1c24d84dc4b9b71b87.png\",\n    \"name\": \"Clackamas County Health Centers\",\n    \"slgId\": \"432-73\",\n    \"url\": \"https://mychart.ochin.org/MyChartClackamas/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0C43C689-7288-4F42-A8EE-2F83C90E4E9C/4ee28ac4e1845ae6bbbb17bd686d4a60.png\",\n    \"name\": \"El Centro de Corazón\",\n    \"slgId\": \"432-74\",\n    \"url\": \"https://mychart.ochin.org/ECDC\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/92AC5B00-78FF-4EC5-82D0-0223785BF9DD/c03db45e2b258d256cc02c9c8fc57693.png\",\n    \"name\": \"South of Market Health Center\",\n    \"slgId\": \"432-75\",\n    \"url\": \"https://mychart.ochin.org/MyChartEquityHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DBE652C3-EAB7-4533-B83B-A5B375CF1627/f23408e34ce26a327bd8a76649f76275.png\",\n    \"name\": \"Tillamook County Community Health Centers\",\n    \"slgId\": \"432-76\",\n    \"url\": \"https://mychart.ochin.org/MyChartTillamook/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F2E7FB36-C014-42D9-A57B-125D55BC4371/90befd1150923919aeb3cfea9b11d847.png\",\n    \"name\": \"Clinica Romero\",\n    \"slgId\": \"432-77\",\n    \"url\": \"https://mychart.ochin.org/MyChartCR/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CE8F90E1-DCE9-4A9F-8FAA-69DFAF19ED69/617aafa6412730d5e7b1e2bd157a1c9b.png\",\n    \"name\": \"Terry Reilly Health Services\",\n    \"slgId\": \"432-78\",\n    \"url\": \"https://mychart.ochin.org/MyChartTRHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/73E2C0B0-2C13-4535-9901-98677569B00D/ac5f7174f1ed63f8fbb90cc024a1046d.png\",\n    \"name\": \"Variety Care Health Centers\",\n    \"slgId\": \"432-79\",\n    \"url\": \"https://mychart.ochin.org/MyChartVCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A38FF012-8055-4988-8017-FBAAB6565860/f7230e2d781646285abd68a648775d1c.png\",\n    \"name\": \"Southwest Community Health Center\",\n    \"slgId\": \"432-80\",\n    \"url\": \"https://mychart.ochin.org/MyChartSWCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F4B8B78B-3729-4EB9-80EC-5A5FFE586260/8fcb89dd0c22c02c97469a71081c7fc6.png\",\n    \"name\": \"United Community & Family Services Healthcare\",\n    \"slgId\": \"432-81\",\n    \"url\": \"https://mychart.ochin.org/mychartucfs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/19439B06-D589-4C13-AC30-C356A7322FDD/f82b30a737274cc871d443127d810744.png\",\n    \"name\": \"Equitas Health\",\n    \"slgId\": \"432-82\",\n    \"url\": \"https://mychart.ochin.org/mychartequitas/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/688F7A3C-0B0C-4AA8-A567-D7486A94A5CC/22c0625d40429882f18ccbdd8de4fe5c.png\",\n    \"name\": \"Albany County Department of Health\",\n    \"slgId\": \"432-83\",\n    \"url\": \"https://mychart.ochin.org/mychartach/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3182C82A-30A9-4AE1-8D7C-90E5B612E1DA/616a48c3eea06d38eae63df60d4bc46e.png\",\n    \"name\": \"Valley Family Health Care\",\n    \"slgId\": \"432-84\",\n    \"url\": \"https://mychart.ochin.org/mychartvfhc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6D07E243-12B9-4833-8EDA-C4EB55683171/b93d5c1ac8458296bb5543e7da7994b9.png\",\n    \"name\": \"Asian Health Services\",\n    \"slgId\": \"432-85\",\n    \"url\": \"https://mychart.ochin.org/mychartahs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C7A6B777-94FF-4A65-81C5-EB8DE7473182/c9f39dbafe30bc56e81532a888c9caa9.png\",\n    \"name\": \"Seattle Indian Health Board\",\n    \"slgId\": \"432-86\",\n    \"url\": \"https://mychart.ochin.org/mychartsihb/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3A144D86-0E39-4331-B0C1-CD47198C3FEF/146d1664038aee62f6b30cfe655628a8.png\",\n    \"name\": \"InterCommunity Health Care\",\n    \"slgId\": \"432-87\",\n    \"url\": \"https://mychart.ochin.org/mychartintercommunity/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0501FBA4-18AA-4389-9BD1-83BC91E1931B/aa60273fe33e5f1251a73b19def59ec1.png\",\n    \"name\": \"Asian Counseling and Referral Service\",\n    \"slgId\": \"432-88\",\n    \"url\": \"https://mychart.ochin.org/mychartacrs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6D533A14-2B62-4CEA-A24E-26FF3ECD5ED9/b8013c002959f1aa82461d052f647867.png\",\n    \"name\": \"Maple City Health Care Center\",\n    \"slgId\": \"432-89\",\n    \"url\": \"https://mychart.ochin.org/mychartMCHCC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2EBF76B5-5CDA-4D6D-88B9-50E58F666338/3c7e27644fc1ce787afefec317dd8353.png\",\n    \"name\": \"Adapt Integrated Health Care\",\n    \"slgId\": \"432-90\",\n    \"url\": \"https://mychart.ochin.org/mychartAdaptIHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3BD8D43D-60AD-44C0-B23E-ECC92E4CA755/cc13e0ef0aa702a74eb5ec3c0fd6547a.png\",\n    \"name\": \"Signature Health\",\n    \"slgId\": \"432-91\",\n    \"url\": \"https://mychart.ochin.org/mychartSH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D8C8B9AE-70B5-4DFA-B782-D00AA5DC5D71/72190965f493d6593fdf0dc78ddeb577.png\",\n    \"name\": \"Washington County Public Health\",\n    \"slgId\": \"432-92\",\n    \"url\": \"https://mychart.ochin.org/mychartwc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7A2280E4-47DC-4828-BA0A-4E5BE5BCCD83/565933f58662ab6210200a395a560526.png\",\n    \"name\": \"Amplify Health\",\n    \"slgId\": \"432-93\",\n    \"url\": \"https://mychart.ochin.org/mychartAdvanceCH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/44BBF4B1-80FD-4B2B-A354-A4A40AA1A5B6/39f3ea487b1d8355283b90cb953ff4d0.png\",\n    \"name\": \"Seattle Roots Community Health\",\n    \"slgId\": \"432-94\",\n    \"url\": \"https://mychart.ochin.org/MyChartSeattleroots/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3DF4AE17-FEEC-4BD7-954C-90884215E7DD/36745b49b5d403a3e5a7cb1e10bd1c94.png\",\n    \"name\": \"Community Health Systems\",\n    \"slgId\": \"432-95\",\n    \"url\": \"https://mychart.ochin.org/MyChartCHSOFWI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3C39E765-546B-4089-AF74-CB203579EA63/5bbfddff4e17e1f3b4eb055a0587e985.png\",\n    \"name\": \"HealthRIGHT 360\",\n    \"slgId\": \"432-96\",\n    \"url\": \"https://mychart.ochin.org/MyChartHealthRight360/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C90DBA43-9F17-4FDA-A0F0-ADEC5F31B83A/8e66884598c78bd23719a5b6ef890d1b.png\",\n    \"name\": \"Neighborcare Health\",\n    \"slgId\": \"432-97\",\n    \"url\": \"https://mychart.ochin.org/mychartnch/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/63398B17-14DA-41EF-BDA5-92EF5F288B79/80c0488ae1baa774ea38a9f3caecff3e.png\",\n    \"name\": \"Quality of Life Health Services\",\n    \"slgId\": \"432-98\",\n    \"url\": \"https://mychart.ochin.org/MyChartQOL/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8928F0FE-C562-49F3-B9DE-410C6685F8E4/5dfecde4e56730993a7bbf826b243a42.png\",\n    \"name\": \"Cempa Community Care\",\n    \"slgId\": \"432-99\",\n    \"url\": \"https://mychart.ochin.org/MyChartCempa/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/75EF3493-95FD-4FC7-8E1D-2B08D8D8DCF9/57c2de832812d6d95ea27a85dba252dd.png\",\n    \"name\": \"Indian Health Center of Santa Clara Valley\",\n    \"slgId\": \"432-100\",\n    \"url\": \"https://mychart.ochin.org/MyChartIHCSCV/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E93DFD2D-9427-4F58-A30A-9ED088E4CD1F/634221656af98dcb01d6fda348092bfe.png\",\n    \"name\": \"School Health Clinics of Santa Clara County\",\n    \"slgId\": \"432-101\",\n    \"url\": \"https://mychart.ochin.org/MyChartSHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/80179415-5280-4419-80AB-312BAD70C929/fc9174a087a810f56ba79ecc0777f1be.png\",\n    \"name\": \"Howard Brown Health\",\n    \"slgId\": \"432-102\",\n    \"url\": \"https://mychart.ochin.org/MyChartHBH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/50C1F16E-17A7-4496-820C-E14876D255AB/aaec7ae2d95e43f348ead00adf5f1938.png\",\n    \"name\": \"Prince George's County Health Department\",\n    \"slgId\": \"432-103\",\n    \"url\": \"https://mychart.ochin.org/mychartpgchd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/676F06F8-2A14-4DC4-928E-D9541955DC91/faab6e0cb83939e43f832cabf1121a44.png\",\n    \"name\": \"Bee Busy Wellness Center\",\n    \"slgId\": \"432-104\",\n    \"url\": \"https://mychart.ochin.org/mychartbbwc\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/93DA2024-412F-4CB5-BE51-6CAF6609F077/d75e9e06c04cdba8a6bef96fcef25968.png\",\n    \"name\": \"Planned Parenthood of Northern California\",\n    \"slgId\": \"432-106\",\n    \"url\": \"https://mychart.ochin.org/mychartppnorcal\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D9221D80-3879-41C4-A272-F6394C2A7D00/2f9852ee5dcef53b547c1d50b5a04365.png\",\n    \"name\": \"Gardner Health Services\",\n    \"slgId\": \"432-107\",\n    \"url\": \"https://mychart.ochin.org/MyChartGHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/153C15C4-9D22-45A4-B882-47C4440F105B/d6493e38fd8d58797142ca823259fea5.png\",\n    \"name\": \"Monterey County Health Department Clinic Services\",\n    \"slgId\": \"432-108\",\n    \"url\": \"https://mychart.ochin.org/MyChartMCHD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/211F2468-24AE-4E97-8D13-9FAB6F0B0C3D/6c01e99fd3e537e4ccc41e14d5170940.png\",\n    \"name\": \"Marin Community Clinic\",\n    \"slgId\": \"432-109\",\n    \"url\": \"https://mychart.ochin.org/MyChartMCC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4300D852-5172-44E9-96D9-4CC9F8A0983B/99039f14945298f6abf6582cd3a5f1cd.png\",\n    \"name\": \"Callen Lorde\",\n    \"slgId\": \"432-110\",\n    \"url\": \"https://mychart.ochin.org/MyChartCallen-Lorde/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/224FACF2-3CC0-49B3-B451-C57FB528FB5A/1c6bbdcd97bd4b336ff8519b99bff644.png\",\n    \"name\": \"VNA Health Care\",\n    \"slgId\": \"432-111\",\n    \"url\": \"https://mychart.ochin.org/MyChartVNAHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C7785A28-8697-454E-9FFD-23E143F9F672/caba6e8737d0c70cdbfd2f92d373084a.png\",\n    \"name\": \"AACI\",\n    \"slgId\": \"432-112\",\n    \"url\": \"https://mychart.ochin.org/MyChartAACI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BBC23DAA-6F60-4B30-9E42-516393ED3BB5/9fd763991c067adbf2a53b8aec05bf48.png\",\n    \"name\": \"Public Health Management Corporation\",\n    \"slgId\": \"432-113\",\n    \"url\": \"https://mychart.ochin.org/MyPHMCHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C295E7F2-3993-4E53-9850-C68E6158675C/f75c33cfa9c94736f0a83947eb6c6966.png\",\n    \"name\": \"Father Joe's Villages\",\n    \"slgId\": \"432-114\",\n    \"url\": \"https://mychart.ochin.org/MyChartSVDP/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ADA2016B-9C60-4CE2-9044-7E004B7824A1/91eef634b851b3e44f6ccf1b7c1ad137.png\",\n    \"name\": \"River Valley Primary Care Services\",\n    \"slgId\": \"432-115\",\n    \"url\": \"https://mychart.ochin.org/MyChartRVPCS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F620AAD2-C8E6-47C8-A836-3014DC17AA45/0d3ed06501eded08ff3a836cfa70ce58.png\",\n    \"name\": \"Prime Health Plus\",\n    \"slgId\": \"432-116\",\n    \"url\": \"https://mychart.ochin.org/MyChartPrimeHealthPlus/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1208897A-660C-4C3C-AAE5-DC0714B8D310/72571d26b97239b0498ea327a2b0706f.png\",\n    \"name\": \"Kenosha Community Health Center\",\n    \"slgId\": \"432-117\",\n    \"url\": \"https://mychart.ochin.org/MyChartKCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/539593C4-9C76-4C31-9C48-9D66623933F2/0f23cbe66890327773c9c981730e6d2b.png\",\n    \"name\": \"Eagle View Community Health Center\",\n    \"slgId\": \"432-118\",\n    \"url\": \"https://mychart.ochin.org/MyChartEagleViewHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D04BF8FE-C070-4C9D-8D72-3DE00F9FBB4C/4e7c6f9b7715b4993aa89fa48ef11172.png\",\n    \"name\": \"Whatley Health Services\",\n    \"slgId\": \"432-120\",\n    \"url\": \"https://mychart.ochin.org/MyChartWhatleyHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E55930C1-C809-4459-843F-21E1B7CD419F/5a05b7b94524b2c380036828cd4ff093.png\",\n    \"name\": \"Community Health of Central Washington\",\n    \"slgId\": \"432-121\",\n    \"url\": \"https://mychart.ochin.org/MyChartCHCW/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D801A561-12C6-43D8-9A4C-7E7689AB7678/c7c5aa9f8840e45cc2d687f2d38966db.png\",\n    \"name\": \"Western North Carolina Community Health Services\",\n    \"slgId\": \"432-122\",\n    \"url\": \"https://mychart.ochin.org/WNCCHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/28F69BDE-412C-4530-A7FE-41DAB59C6493/ad89c12ce9496bab8987cf6af5142b2a.png\",\n    \"name\": \"Community Mental Health Affiliates\",\n    \"slgId\": \"432-123\",\n    \"url\": \"https://mychart.ochin.org/CMHACC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DDF39E80-197E-4749-8113-E320A3DF8FBD/f62fe645dd83faef6e00cc83225d15cd.png\",\n    \"name\": \"Southside Health Center\",\n    \"slgId\": \"432-124\",\n    \"url\": \"https://mychart.ochin.org/SouthsideCHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/19E5DEBB-EC97-4490-8CBD-0D957A9CC46D/4ba3a776e3a49042f3492ce66892364b.png\",\n    \"name\": \"Cascadia Health\",\n    \"slgId\": \"432-125\",\n    \"url\": \"https://mychart.ochin.org/CascadiaHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F9CAD01E-259C-4ECC-A0AA-2B81E7E961B0/9a75f6ab56f59cfe0d477d229cadfd06.png\",\n    \"name\": \"Petaluma Health Center\",\n    \"slgId\": \"432-126\",\n    \"url\": \"https://mychart.ochin.org/PHealthCenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2AD2E55B-4C06-409B-A15E-549F2C43A1BA/26d75745a850ea255c54f7c98c7da7eb.png\",\n    \"name\": \"NOAH\",\n    \"slgId\": \"432-127\",\n    \"url\": \"https://mychart.ochin.org/NOAHHelps/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/159A973B-2918-4925-9D70-91B73C626FB4/68b03724029aa7cfcb0d1a3512976f94.png\",\n    \"name\": \"Friends of Family Health Center\",\n    \"slgId\": \"432-128\",\n    \"url\": \"https://mychart.ochin.org/FOFHealthCenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C525B4CB-211A-46B6-8B94-A7C501001E1F/dc103abd657729fd0cd513b74c8a75ff.png\",\n    \"name\": \"Minidoka Memorial Hospital\",\n    \"slgId\": \"432-129\",\n    \"url\": \"https://mychart.ochin.org/MyChartMinidoka/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/06B4796F-C3C5-43A9-86A5-3EA06E43DA7A/1bfd28bef55e25bd5936d7c529e503da.png\",\n    \"name\": \"Progressive Community Health Centers\",\n    \"slgId\": \"432-130\",\n    \"url\": \"https://mychart.ochin.org/ProgressiveCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4832E4EB-912A-4E15-8803-A570E35C8B19/b325bd2d793329d3df77d68450a9619c.png\",\n    \"name\": \"Triad Adult & Pediatric Medicine\",\n    \"slgId\": \"432-131\",\n    \"url\": \"https://mychart.ochin.org/TAPMedicine/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/999DE841-1045-468B-B794-51D92C5863F3/08680a136de3eafb0970d68fad6e4e30.png\",\n    \"name\": \"Santa Rosa Community Health\",\n    \"slgId\": \"432-132\",\n    \"url\": \"https://mychart.ochin.org/SRHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4B0CBEBC-DFC8-47E7-A8D2-C6815B9E74C3/db66cbb577c8c718e2298f57bb4bf172.png\",\n    \"name\": \"Bear Lake Memorial Clinic\",\n    \"slgId\": \"432-133\",\n    \"url\": \"https://mychart.ochin.org/BLMHospital/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BB1973F4-0799-459C-B928-63D16B1D26F2/48a60a3400fd9c10d4350b99a1a287f2.png\",\n    \"name\": \"SoHum Health\",\n    \"slgId\": \"432-134\",\n    \"url\": \"https://mychart.ochin.org/mychartshchd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2F9100B2-97C2-41CC-918C-C3DE25DFD258/3e3eacb71bd58294954df94a1a30074a.png\",\n    \"name\": \"Lower Lights Christian Health Center\",\n    \"slgId\": \"432-135\",\n    \"url\": \"https://mychart.ochin.org/LowerLightsHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/72430119-BAA6-4F8E-A7CD-AEA5FA5A7D0D/0506e27322cdaa0d96ef6f89b1e96403.png\",\n    \"name\": \"Star Valley Health\",\n    \"slgId\": \"432-136\",\n    \"url\": \"https://mychart.ochin.org/mychartsvh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B27E4AAC-C011-46D8-8B3A-9BDBDDA7FF6E/96ee1a100e1ed1aa20d7d936f4c8413a.png\",\n    \"name\": \"Sonoma Valley Community Health Center\",\n    \"slgId\": \"432-137\",\n    \"url\": \"https://mychart.ochin.org/svchc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AE5B2391-D019-4ADD-80FE-1946A1201A12/333913fc57eb1e5ebbd2241eea2dcfae.png\",\n    \"name\": \"River Hills Community Health Center\",\n    \"slgId\": \"432-138\",\n    \"url\": \"https://mychart.ochin.org/riverhillshealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E822B994-F4CA-40FC-BB96-2DA9E90D15AE/fae8e9457e3078ecd9bdd61e76be6c99.png\",\n    \"name\": \"Lakewood Health System\",\n    \"slgId\": \"432-139\",\n    \"url\": \"https://mychart.ochin.org/mychartlhs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0094CA64-764E-4585-A828-30631307EE1D/118c156fdb00f6a727d2d695d1404e6c.png\",\n    \"name\": \"Community Health Center of Southeastern Iowa\",\n    \"slgId\": \"432-140\",\n    \"url\": \"https://mychart.ochin.org/chcseia/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ACECE089-92F5-436A-9D64-AFEC42FE47EF/d928e082e6266b26a86de627d2681bc3.png\",\n    \"name\": \"All Care Health Center\",\n    \"slgId\": \"432-141\",\n    \"url\": \"https://mychart.ochin.org/allcarehealthcenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2AE1CA9E-6E6F-4C99-B3E6-35FEDBCEA56E/191ed72d3f2ec0da4c204e99584e5b2e.png\",\n    \"name\": \"Outreach Community Health Centers\",\n    \"slgId\": \"432-142\",\n    \"url\": \"https://mychart.ochin.org/ochc-milw/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F938B880-2585-4A9F-916A-1D1F3C7A1153/6c879a88cdeca08a80f2fd8d68a772a6.png\",\n    \"name\": \"Community Health Center of Fort Dodge\",\n    \"slgId\": \"432-143\",\n    \"url\": \"https://mychart.ochin.org/chcfd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F299C53-2D2D-4BAB-816F-6E2BB9DF4D26/9fd757e0e7d3785364d9adbbe561f138.png\",\n    \"name\": \"Peoples Community Health Clinic\",\n    \"slgId\": \"432-144\",\n    \"url\": \"https://mychart.ochin.org/peoples-clinic/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/37805BFF-41C2-4176-AFAD-3E00090DECA9/0635367692dd621794b3f94bebd252a8.png\",\n    \"name\": \"Crescent Community Health Center\",\n    \"slgId\": \"432-145\",\n    \"url\": \"https://mychart.ochin.org/crescentchc/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D5E69FAA-1AF0-412C-BBF4-1B83C1BE94A6/06602265edbefb53336168a965fbf7b8.png\",\n    \"name\": \"Family Health Center of Marshfield\",\n    \"slgId\": \"432-146\",\n    \"url\": \"https://mychart.ochin.org/familyhealthcenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F0352A6B-3594-4458-9D01-7A488B35686D/84de483b281f48ec791f9d1698a44ebe.png\",\n    \"name\": \"Primary Health Care\",\n    \"slgId\": \"432-147\",\n    \"url\": \"https://mychart.ochin.org/phciowa/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/922E13C7-D61E-4E17-992F-A3F2F06DD2CC/27f898aa7af37570810024cf07476905.png\",\n    \"name\": \"Infinity Health Care\",\n    \"slgId\": \"432-148\",\n    \"url\": \"https://mychart.ochin.org/weareinfinityhealth/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8007812C-F5BA-43B1-A640-EF2E4A4C232F/4f48cd9e96d4f3d067c7a4bc383caa06.png\",\n    \"name\": \"Siouxland Community Health Center\",\n    \"slgId\": \"432-149\",\n    \"url\": \"https://mychart.ochin.org/slandchc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/248A4B87-5720-4ABC-89C5-08FF3B1D5256/d230b21a9be9de163f32018b9d1ba5ff.png\",\n    \"name\": \"Community Health Care, Inc\",\n    \"slgId\": \"432-150\",\n    \"url\": \"https://mychart.ochin.org/chcqca/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8D9505B2-CE99-4BB0-97F0-658442628067/070e4e1e1df28d413313cf0c7dc3019f.png\",\n    \"name\": \"Harmony Health Medical Clinic\",\n    \"slgId\": \"432-151\",\n    \"url\": \"https://mychart.ochin.org/myharmonyhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/401BE3C7-7552-4194-93FD-F98BD47A6C8C/c11842fafc76cbb30c085cab74032582.png\",\n    \"name\": \"Burnett Medical Center\",\n    \"slgId\": \"432-152\",\n    \"url\": \"https://mychart.ochin.org/burnettmedicalcenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D5DBBC0F-029E-4B5A-B908-99EBE61BA6A0/6084b540697d7232c3dca63cf7200b2d.png\",\n    \"name\": \"United Community Health Center\",\n    \"slgId\": \"432-153\",\n    \"url\": \"https://mychart.ochin.org/unitedcommunityhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/09D011A2-B37F-42DD-A0CE-45EC081DB935/78c385c073271af6a3ded0427aad4049.png\",\n    \"name\": \"CamCare\",\n    \"slgId\": \"432-154\",\n    \"url\": \"https://mychart.ochin.org/camcare/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8F6220BF-C25D-48D3-ACA9-96B7A0272FFD/71d360e728fd698af78e9a2b2f75b680.png\",\n    \"name\": \"Central Outreach Wellness Center\",\n    \"slgId\": \"432-155\",\n    \"url\": \"https://mychart.ochin.org/centraloutreach/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6AB36D3F-44A3-4AAA-A44D-B6636BB02F34/7e738e96387e28dcfce39843ba02afc9.png\",\n    \"name\": \"Jewish Community Free Clinic\",\n    \"slgId\": \"432-156\",\n    \"url\": \"https://mychart.ochin.org/jewishfreeclinic/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E320317-86DA-4F3F-8524-685238B36351/6a08ca418c63e4561ed3c2808137ea1b.png\",\n    \"name\": \"Riverwood Healthcare Center\",\n    \"slgId\": \"432-157\",\n    \"url\": \"https://mychart.ochin.org/rwhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3B6AD5CD-A62E-4D70-92F0-A5D53622B096/d9728b0e0d96e88d2845f0403a11a322.png\",\n    \"name\": \"Sacramento County Public Health\",\n    \"slgId\": \"432-158\",\n    \"url\": \"https://mychart.ochin.org/scph/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ECDC6AFC-84CE-469A-9CBE-24E620C90C92/972f7c8e3debfe114c06ce67195477f6.png\",\n    \"name\": \"People's Community Clinic\",\n    \"slgId\": \"432-159\",\n    \"url\": \"https://mychart.ochin.org/mychartaustinpcc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D695FA26-596E-4BE7-AD26-67ED7810CA9E/6f3a3d66abd236c73862634ed5003148.png\",\n    \"name\": \"Citizens Health\",\n    \"slgId\": \"432-160\",\n    \"url\": \"https://mychart.ochin.org/cmciks/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/816E2922-9FF7-4A9A-B157-DA26055C45BC/04b22b29d7bb9581c12946a3d378a27d.png\",\n    \"name\": \"Central City Concern\",\n    \"slgId\": \"432-161\",\n    \"url\": \"https://mychart.ochin.org/centralcityconcern/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C7ABEA66-6A31-4430-A1BF-A9789EF79767/c358927ec4d20dc4b98398056a7db807.png\",\n    \"name\": \"Radiant Health Centers\",\n    \"slgId\": \"432-162\",\n    \"url\": \"https://mychart.ochin.org/MyChartRadiantHealthCenters/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6979D048-3583-448D-8C2C-455FC2460FFF/87e47fbad9a2626989f2571af4d29787.png\",\n    \"name\": \"Wilmington Community Clinic\",\n    \"slgId\": \"432-163\",\n    \"url\": \"https://mychart.ochin.org/wilmingtoncc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/55C55ABD-8200-4427-BED7-D5128A11A78B/f5044bbf1adfdd3a6311aba4c7a10f0a.png\",\n    \"name\": \"Ko-Kwel Wellness Center\",\n    \"slgId\": \"432-164\",\n    \"url\": \"https://mychart.ochin.org/mychartkokwelwellness/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F1CE3370-83C3-44D9-B03E-F754488BCE45/fd245b6e84bac918e54ee4b50502e688.png\",\n    \"name\": \"BestCare Treatment\",\n    \"slgId\": \"432-165\",\n    \"url\": \"https://mychart.ochin.org/bestcaretreatment/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DB167C99-1407-486E-9A32-145328CA1F44/b03223ca482affb88755a95c356744d0.png\",\n    \"name\": \"Native American Community Clinic\",\n    \"slgId\": \"432-166\",\n    \"url\": \"https://mychart.ochin.org/NACC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9C177F82-1946-4C6F-8D9C-3C02C559E09D/98d19b35f620857948e3bddf75c5376e.png\",\n    \"name\": \"Winters Healthcare\",\n    \"slgId\": \"432-167\",\n    \"url\": \"https://mychart.ochin.org/wintershealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/21E41F98-9F17-4626-9CE6-20CFFC47EFED/9207acb8995faabfb79d0c3205bd7502.png\",\n    \"name\": \"Mountain Valleys Health Centers\",\n    \"slgId\": \"432-168\",\n    \"url\": \"https://mychart.ochin.org/mountainvalleyshealthcenters/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D5997CD5-3340-4D84-9C24-4BA92EF30669/be202030e7f76840ce1a845a13a5864b.png\",\n    \"name\": \"Syracuse Community Health\",\n    \"slgId\": \"432-169\",\n    \"url\": \"https://mychart.ochin.org/syracusecommunityhealthmychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5B85E00A-AD87-4DC3-A37E-A34C079ECBD7/4d0319d4f9d686b6faf4b7fef446b908.png\",\n    \"name\": \"Baltimore City Health Department\",\n    \"slgId\": \"432-170\",\n    \"url\": \"https://mychart.ochin.org/health.baltimorecity/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5EC3B371-896A-4A0E-9598-9605AA9FA3CF/6b36621a766079a2652552bbe4f9010d.png\",\n    \"name\": \"Indian Health Board of Minneapolis\",\n    \"slgId\": \"432-171\",\n    \"url\": \"https://mychart.ochin.org/IHB/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/09804572-C521-4A36-843B-29C719E414F3/42060501e5d7ddb6375b88703470769b.png\",\n    \"name\": \"Gritman Medical Center\",\n    \"slgId\": \"432-172\",\n    \"url\": \"https://mychart.ochin.org/gritman/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4A98D79C-DA59-4930-938D-3BF29060934E/3e76e33e89a4f3ba182d45f41ad7207d.png\",\n    \"name\": \"Jordan Valley Community Health Center\",\n    \"slgId\": \"432-173\",\n    \"url\": \"https://mychart.ochin.org/jordanvalleymychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0D1A4BF9-B99D-4E94-9CA0-F902A5A1588A/a15ecfd1ecf78d0742e78ed496177207.png\",\n    \"name\": \"Nevada Health Centers\",\n    \"slgId\": \"432-174\",\n    \"url\": \"https://mychart.ochin.org/nvhc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AAB6F4F0-97F8-454F-9255-AED4478A9934/bfbef02c8eb9c47fb573f049573a2328.png\",\n    \"name\": \"River People Health Center\",\n    \"slgId\": \"432-175\",\n    \"url\": \"https://mychart.ochin.org/rphc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6498B7C4-6071-4036-8EAF-32CE5E9FF3AF/b4cb9db96b7d52e4d419b5f08d607ee3.png\",\n    \"name\": \"Lawndale Christian Health Center\",\n    \"slgId\": \"432-176\",\n    \"url\": \"https://mychart.ochin.org/mylawndale/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1BB9A5B5-85F9-4D05-8739-1E4B6FD53438/8f014813ba65dad37ec864de4a0427b0.png\",\n    \"name\": \"CommuniCare+OLE\",\n    \"slgId\": \"432-178\",\n    \"url\": \"https://mychart.ochin.org/ccolemychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8203680D-7E29-43D5-BBAA-B941BAE19B19/fa87268a5d76a07ff0e7558ccbe1ccc6.png\",\n    \"name\": \"Grace Health\",\n    \"slgId\": \"432-179\",\n    \"url\": \"https://mychart.ochin.org/gracehealthKY/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CCD497F0-3CEA-48B7-882D-E3DE4C2EA505/8e96765a52fe5535b10ffec83d00e03f.png\",\n    \"name\": \"Solano County\",\n    \"slgId\": \"432-180\",\n    \"url\": \"https://mychart.ochin.org/SolanoCountyHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/903C2FEF-D2D2-4B28-917D-2750D8637EAA/3741eacba5c1be926056f32f4c567ade.png\",\n    \"name\": \"Washoe Tribal Health Center\",\n    \"slgId\": \"432-181\",\n    \"url\": \"https://mychart.ochin.org/washoemychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/213AA6B4-B500-4CCD-BA8A-0009727FCC5A/5896a9817465e7c5f7e02fe43cefe944.png\",\n    \"name\": \"Indian Health Council\",\n    \"slgId\": \"432-182\",\n    \"url\": \"https://mychart.ochin.org/indianhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2E58325D-EBEB-431B-A914-D0A8850327B2/00e477005a618d8f81b2d6fa5e8bc5f5.png\",\n    \"name\": \"Osceola Medical Center\",\n    \"slgId\": \"432-183\",\n    \"url\": \"https://mychart.ochin.org/omc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2855C7CE-8EEB-44D7-A730-F7E576DFE7A8/957d20a065c0752a24bfcfd9a0173eef.png\",\n    \"name\": \"Kahuku Medical Center\",\n    \"slgId\": \"432-184\",\n    \"url\": \"https://mychart.ochin.org/kahukumedicalcenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/91E469B1-FA6C-4096-86FB-FD8BE2768E25/4729b42afb889bd6903db6b5ebc0e94d.png\",\n    \"name\": \"Santa Cruz Community Health\",\n    \"slgId\": \"432-185\",\n    \"url\": \"https://mychart.ochin.org/schealthcenters/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F3F6F9A-DBD3-4A0B-B336-A8C9CF3CC62F/604e08044b08e401e8aa74c5d7f984c3.png\",\n    \"name\": \"Stigler Health and Wellness Center\",\n    \"slgId\": \"432-186\",\n    \"url\": \"https://mychart.ochin.org/healthwellnssokMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"RRHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B1BC2BCB-6858-4F05-8EAD-0463491AA73E/81f1009b216e21517125d4e4a223cb05.png\",\n    \"name\": \"Redwoods Rural Health Center\",\n    \"slgId\": \"432-187\",\n    \"url\": \"https://mychart.ochin.org/RRHCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2CBD84C5-A8E3-4B7F-AF0A-5003C9842358/2cb199b6ca66d51e44e22f850a66ea29.png\",\n    \"name\": \"The NATIVE Project\",\n    \"slgId\": \"432-188\",\n    \"url\": \"https://mychart.ochin.org/NATIVEProject/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3E7EDDFB-3514-46C4-94EE-81980DA29E35/e186ebdbd26c056a39366f43c156319b.png\",\n    \"name\": \"Ray County Hospital and Healthcare\",\n    \"slgId\": \"432-189\",\n    \"url\": \"https://mychart.ochin.org/RCHH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A9CAAE9B-9B8D-4293-8963-714A3FD208AB/8d349467a259342b24c797dfdd9364a2.png\",\n    \"name\": \"Vivent Health\",\n    \"slgId\": \"432-190\",\n    \"url\": \"https://mychart.ochin.org/viventhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3EA05A3C-FEE9-431D-9950-527D8D185F63/9a380eb3c6f525d63d1961852df0bd2f.png\",\n    \"name\": \"Unity Care NW\",\n    \"slgId\": \"432-191\",\n    \"url\": \"https://mychart.ochin.org/UnityCareNW/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CB5F325B-884B-4043-9DF9-F1F8CA667957/5f79e599fd41c336743eaa746fcd9a7e.png\",\n    \"name\": \"Minnesota Community Care\",\n    \"slgId\": \"432-192\",\n    \"url\": \"https://mychart.ochin.org/mcc/\"\n  },\n  {\n    \"aliases\": [\n      \"PSP\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2478B855-7725-49A8-A469-99EB96923909/d614ea00e2e6c5fee89014efadd454eb.png\",\n    \"name\": \"Palouse Specialty Physicians\",\n    \"slgId\": \"432-193\",\n    \"url\": \"https://mychart.ochin.org/PSP/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/417DC34F-56DD-4626-947A-AC5DA87927F7/841fc55a90c2d2acfb7b4d82094de45f.png\",\n    \"name\": \"Madison Regional Health System\",\n    \"slgId\": \"432-194\",\n    \"url\": \"https://mychart.ochin.org/MRHSMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/55156957-DE12-4AC2-9FC4-283714DF63A5/f44dab71ed24fc74222fc348a54b9d00.png\",\n    \"name\": \"City of Milwaukee Health Department\",\n    \"slgId\": \"432-195\",\n    \"url\": \"https://mychart.ochin.org/mhdmychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/53C1DDD0-7ECF-43C2-A1CE-A9597CB44E7E/ea3a17ff486c18ee1c9feb547bad2159.png\",\n    \"name\": \"Habitat Health\",\n    \"slgId\": \"432-196\",\n    \"url\": \"https://mychart.ochin.org/habitathealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E44AB895-BD0B-4CA2-A38D-F2425F46C7F3/9f314ce04a5609f7c91dff0009a26a1a.png\",\n    \"name\": \"Venice Family Clinic\",\n    \"slgId\": \"432-197\",\n    \"url\": \"https://mychart.ochin.org/VFC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/95B888E5-1C06-464E-A7C1-8EE127A96617/5d7f15621fd82bfd48ffea06c9d612cc.png\",\n    \"name\": \"Community Medical Centers\",\n    \"slgId\": \"432-198\",\n    \"url\": \"https://mychart.ochin.org/cmcenters/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/33B6C564-B6AC-4E1C-9A84-89D12C2DD23D/485124110e7249d83d69b7fb9a3fa40b.png\",\n    \"name\": \"Columbia Community Mental Health\",\n    \"slgId\": \"432-199\",\n    \"url\": \"https://mychart.ochin.org/CCMH1/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3050BD27-49B3-4FE2-BCEF-D0198E307B44/0a2eee9e70f861c16630f2c08bca079f.png\",\n    \"name\": \"Elevated Community Health\",\n    \"slgId\": \"432-200\",\n    \"url\": \"https://mychart.ochin.org/ElevatedCH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A5DFE016-4ED4-45BA-B6E4-9F69CA640C41/7759a08f9adfbbf1c486516290ff0c64.png\",\n    \"name\": \"WellSpace Health\",\n    \"slgId\": \"432-201\",\n    \"url\": \"https://mychart.ochin.org/WellSpaceHealthMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E37EC101-5E9F-4A40-BD93-DBB65271EC90/8ad2cd657b5f396a0cb120b8f647a6ce.png\",\n    \"name\": \"Root Center for Advanced Recovery\",\n    \"slgId\": \"432-202\",\n    \"url\": \"https://mychart.ochin.org/rootcentermychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5C38BB2A-F20A-464F-8E8E-08C9FFFA09E2/a10fcae95209c621984deebdf793d728.png\",\n    \"name\": \"Sublette County Health\",\n    \"slgId\": \"432-203\",\n    \"url\": \"https://mychart.ochin.org/sublette/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2E6AAED8-6A0C-4E15-BE61-1F8FEA1C840B/b6d9380e74892de43ccb5f2c6ddbcf5f.png\",\n    \"name\": \"Lynn Community Health Center\",\n    \"slgId\": \"432-204\",\n    \"url\": \"https://mychart.ochin.org/LynnCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3DA8CE81-3FC6-431F-B497-41A91397C6CD/57c5d8776d44f45e1d8a9161287c9aa0.png\",\n    \"name\": \"Sonoma County Indian Health Project\",\n    \"slgId\": \"432-205\",\n    \"url\": \"https://mychart.ochin.org/SCIHP/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8F1B9611-B808-450A-8A57-ADB481127A3B/47188e029f3f4f076f202a11dbd2469c.png\",\n    \"name\": \"Muslim Community and Health Care\",\n    \"slgId\": \"432-206\",\n    \"url\": \"https://mychart.ochin.org/MyChartMCHCWI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F161287A-AC40-4F3E-B836-AA50A13B11A6/e312954180de1c85c283cc3b196820d2.png\",\n    \"name\": \"Bertie County Rural Health\",\n    \"slgId\": \"432-207\",\n    \"url\": \"https://mychart.ochin.org/BCRHA/\"\n  },\n  {\n    \"aliases\": [\n      \"CBWCHC, 王嘉廉社區醫療中心\",\n      \"CBWCHC\",\n      \"王嘉廉社區醫療中心\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/88DF1783-6E98-44F1-94A7-74D53B9F5F62/a7a84c743521db7604b661c31394ead2.png\",\n    \"name\": \"Charles B. Wang Community Health Center\",\n    \"slgId\": \"432-208\",\n    \"url\": \"https://mychart.ochin.org/cbwchc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/98743675-92EB-4514-B792-7F6896F2C6F8/fd6130b965986514ba4b7ca5023e5f49.png\",\n    \"name\": \"Clinicas Del Camino Real\",\n    \"slgId\": \"432-209\",\n    \"url\": \"https://mychart.ochin.org/clinicas/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/68CFBE44-6845-4DC6-B1D3-971E63308CB4/3e70b1329bd537f1e92104b55841f66c.png\",\n    \"name\": \"Sawtooth Mountain Clinic\",\n    \"slgId\": \"432-210\",\n    \"url\": \"https://mychart.ochin.org/smc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/49886CD4-5DD6-41E7-9CA9-DD07DE12A3D3/c18f25c9ae585ad6647db7396e2ec861.png\",\n    \"name\": \"Lake Superior Community Health Center\",\n    \"slgId\": \"432-211\",\n    \"url\": \"https://mychart.ochin.org/lschc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/456EAFE5-CED8-442A-BD6A-B056CC385F23/379d28a7a8581acd963faed44e14a432.png\",\n    \"name\": \"United Indian Health Services\",\n    \"slgId\": \"432-212\",\n    \"url\": \"https://mychart.ochin.org/uihs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8316AEB7-5769-43B6-9258-B02AFD07DCE6/e70d9f709c24a0c4088b4256027046cc.png\",\n    \"name\": \"Community Health Services, Inc\",\n    \"slgId\": \"432-213\",\n    \"url\": \"https://mychart.ochin.org/CHSImychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/874CB8EB-3BF9-4810-96F5-8C2E5DE690DC/7ab2c721c76987b7d2cb5fe96331c244.png\",\n    \"name\": \"Little Traverse Bay Bands\",\n    \"slgId\": \"432-214\",\n    \"url\": \"https://mychart.ochin.org/ltbbhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0A392736-7771-4937-9D5D-733C8885113C/7f36350a0d3fb670e6c92b0f77daa5a7.png\",\n    \"name\": \"Scenic Rivers Health Services\",\n    \"slgId\": \"432-215\",\n    \"url\": \"https://mychart.ochin.org/scenicrivershealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B257038A-ABF9-4CAF-95D3-09C0EECFB05F/d8fb5a38643d459a0d2d9da47d4db564.png\",\n    \"name\": \"Chehalis Tribal Wellness Center\",\n    \"slgId\": \"432-216\",\n    \"url\": \"https://mychart.ochin.org/ChehalistribeMychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/55D916CF-D4E3-4883-B5E1-14022B3823B4/3c9a0f088e4a105b4d496b30885606bb.png\",\n    \"name\": \"Marimn Health\",\n    \"slgId\": \"432-217\",\n    \"url\": \"https://mychart.ochin.org/marimnhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0725DDC1-8570-4F01-9E60-F9690B950E26/8be3e760ada046bf99871bb8f1d8f7ac.png\",\n    \"name\": \"Cascade Medical Center\",\n    \"slgId\": \"432-218\",\n    \"url\": \"https://mychart.ochin.org/cascademedicalcenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7C8820BB-56E5-4429-8B54-6F4A5050EFDF/0fadc24796c7e33affac82f2e0fcf77d.png\",\n    \"name\": \"Flandreau Santee Sioux Tribal Health Center\",\n    \"slgId\": \"432-219\",\n    \"url\": \"https://mychart.ochin.org/flandreautribalhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EEFDA95D-4689-4C49-8F66-70B77575A2A6/5eb711d5e0d193219e81d27cf8db140d.png\",\n    \"name\": \"Wallowa Valley Center for Wellness\",\n    \"slgId\": \"432-220\",\n    \"url\": \"https://mychart.ochin.org/wvcenterforwellness/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/46C79821-33C5-4698-9193-E5461B4A0344/29e8c5d18ccfcaaa90a95daa66bc0b71.png\",\n    \"name\": \"Immanuel PACE\",\n    \"slgId\": \"432-221\",\n    \"url\": \"https://mychart.ochin.org/immanuel/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B90F1919-CF5F-4717-BB71-270CBFDA579F/ac6c1fb8c4bad21028a63af962902ad1.png\",\n    \"name\": \"San Luis Obispo Public Health Department\",\n    \"slgId\": \"432-222\",\n    \"url\": \"https://mychart.ochin.org/slopublichealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A86D4D31-83F4-4B34-A0FC-C23429C6881E/db013ed494929e00254c1cb635f2b91f.png\",\n    \"name\": \"Peak Vista\",\n    \"slgId\": \"432-233\",\n    \"url\": \"https://mychart.ochin.org/PeakVista/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1A2BBC05-FAFC-40A7-862A-165F6CD42A7F/7aeda64b219f405fae4a8a4de11c88ba.png\",\n    \"name\": \"Open Door Health Center\",\n    \"slgId\": \"432-234\",\n    \"url\": \"https://mychart.ochin.org/ODHCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6982E93C-6458-4E04-BE2C-12D392F26099/f378e91f4336a15ebde44b0b873f7ed0.png\",\n    \"name\": \"Missouri Ozarks\",\n    \"slgId\": \"432-235\",\n    \"url\": \"https://mychart.ochin.org/missouriozarks/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9F50E3AE-47F1-4CCF-924C-86BC5CEBA39F/23c7f5dabf02986c82692ee630794f1c.png\",\n    \"name\": \"Pueblo Community Health Center\",\n    \"slgId\": \"432-236\",\n    \"url\": \"https://mychart.ochin.org/pueblocommunityhealthcenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B6B293CB-327E-4287-B18B-0DC8C0FA1A6D/f510a01137f78c94998d140353a1083c.png\",\n    \"name\": \"JAMHI\",\n    \"slgId\": \"432-237\",\n    \"url\": \"https://mychart.ochin.org/JAMHI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/519EBEA5-3253-4300-B32E-880B0E88310C/15db7bd3dd6e763fe3809d3da3b9914d.png\",\n    \"name\": \"Yakima Neighborhood Health\",\n    \"slgId\": \"432-238\",\n    \"url\": \"https://mychart.ochin.org/ynhsmychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/63D4BB72-9FD9-42B6-BF4F-6CC4EE440E28/48e094d9461b7a126be9a53d4c9580d1.png\",\n    \"name\": \"CITTHS\",\n    \"slgId\": \"432-239\",\n    \"url\": \"https://mychart.ochin.org/CITHHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/368F76C6-324C-4E1B-9B09-95603D0F2260/74aa6fc4c4539786c58b7ef49cd6d1ad.png\",\n    \"name\": \"Bigfork Valley\",\n    \"slgId\": \"432-240\",\n    \"url\": \"https://mychart.ochin.org/bigforkvalley/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7868F7F6-0EE9-4078-97D7-3F1801B01947/2215b3209e3e165480ca318cfef40ab1.png\",\n    \"name\": \"LALGBT Center\",\n    \"slgId\": \"432-241\",\n    \"url\": \"https://mychart.ochin.org/lalgbtcenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6890873E-0138-4B98-88CB-E7E7042CC99D/9e2b4e4ef86199c042de9e1d8badffec.png\",\n    \"name\": \"Puyallup Tribal Health Authority\",\n    \"slgId\": \"432-242\",\n    \"url\": \"https://mychart.ochin.org/ptha/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/185726C7-BEDC-47DB-8FCB-447D39DB5942/912b21062f84c104ea7f825f112147c4.png\",\n    \"name\": \"Muckleshoot Tribal Health & Wellness Center\",\n    \"slgId\": \"432-243\",\n    \"url\": \"https://mychart.ochin.org/muckleshoot/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0B37EE11-67CB-442E-A083-38CFE1831FB9/c3b4c254eac9d89ed9f07729e0b953e3.png\",\n    \"name\": \"One Health Center\",\n    \"slgId\": \"432-244\",\n    \"url\": \"https://mychart.ochin.org/OHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/71544DB8-1F4F-4B8D-94FA-A5A9AD332757/e9fc0784194f08e4bf8b235c8217c188.png\",\n    \"name\": \"Waianae Coast Comprehensive Care\",\n    \"slgId\": \"432-245\",\n    \"url\": \"https://mychart.ochin.org/wcchc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4598A388-E94E-4089-989B-28C0F137FFBD/1dc940163ebad8e765e562bef812df98.png\",\n    \"name\": \"PacificSource PACE\",\n    \"slgId\": \"432-246\",\n    \"url\": \"https://mychart.ochin.org/pacificsourcepace/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5C4080F9-4BE3-4AEB-BEC0-261B0FCABCE3/b55e00f90343b706edccea44562e4645.png\",\n    \"name\": \"Jackson County Regional Health Center\",\n    \"slgId\": \"432-247\",\n    \"url\": \"https://mychart.ochin.org/JCRHC/\"\n  },\n  {\n    \"aliases\": [\n      \"CHCB\",\n      \"Community Health Centers of Burlington\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A58429BB-B04B-4D7B-A4EB-93AFB13B181C/fd040509a98885db7a8c4eb2312fd6cb.png\",\n    \"name\": \"Community Health Centers Burlington\",\n    \"slgId\": \"432-248\",\n    \"url\": \"https://mychart.ochin.org/CHCB/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/28EF12BB-1E15-4339-8FF7-8BE58B26753B/a5e6089b12f008a5257637bd7aa61b61.png\",\n    \"name\": \"The Healthcare Connection\",\n    \"slgId\": \"432-249\",\n    \"url\": \"https://mychart.ochin.org/healthcareconnection/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E264DA44-3596-4954-A440-803BA9A5971A/deb5b3b024931a86dbd5519187976451.png\",\n    \"name\": \"Piedmont Health\",\n    \"slgId\": \"432-250\",\n    \"url\": \"https://mychart.ochin.org/piedmonthealth/\"\n  },\n  {\n    \"aliases\": [\n      \"RBHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2435C85A-FF6D-46EE-89BE-0FF79E14C932/4317c646b638fad82ec63931c04dd640.png\",\n    \"name\": \"Rocky Boy Health Center\",\n    \"slgId\": \"432-251\",\n    \"url\": \"https://mychart.ochin.org/RBHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E069B0EE-08E8-4D24-AF09-A859B8952F18/e00b0ee81e13f2b3115dcaf027505211.png\",\n    \"name\": \"Squaxin Island Tribal Health Center\",\n    \"slgId\": \"432-252\",\n    \"url\": \"https://mychart.ochin.org/Squaxin/\"\n  },\n  {\n    \"aliases\": [\n      \"CIBD\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AB46E058-FE98-447E-95A1-8AC214D867CA/1b77dd21055cb3a13756c59ab8f7d43e.png\",\n    \"name\": \"Center for Comprehensive Care & Diagnosis of Inherited Blood Disorders\",\n    \"slgId\": \"432-253\",\n    \"url\": \"https://mychart.ochin.org/CIBD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4F75B91D-9698-4A14-A96D-985F6C44ABB8/28a6147346c7a62ff00fd03473e67c9b.png\",\n    \"name\": \"Siskiyou Community Health Center\",\n    \"slgId\": \"432-254\",\n    \"url\": \"https://mychart.ochin.org/SiskiyouMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Kimaw Medical Center\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E4876C9F-E41F-4B7D-B594-17369955FD70/c253e73130b9521d88fd553e86209c83.png\",\n    \"name\": \"K'ima:w Medical Center\",\n    \"slgId\": \"432-255\",\n    \"url\": \"https://mychart.ochin.org/KimawMedicalCenter/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D0806623-37D6-4918-B444-1C2CC3952082/c37e62bf078c828f3e310541d62cd6b5.png\",\n    \"name\": \"San Diego County\",\n    \"slgId\": \"432-256\",\n    \"url\": \"https://mychart.ochin.org/sandiegocounty/\"\n  },\n  {\n    \"aliases\": [\n      \"Westside Family Healthcare\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9FFA9E64-A9C6-4028-A55F-44A6C6A0CC5B/2d74ccdf96b69853bc2e09df15436ff6.png\",\n    \"name\": \"West Side Family Healthcare\",\n    \"slgId\": \"432-257\",\n    \"url\": \"https://mychart.ochin.org/MyWestside/\"\n  },\n  {\n    \"aliases\": [\n      \"NHBP\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CAC45ADB-E10C-48D6-9626-5B56572D1E7A/f5f6820fd1d72eb5db2800157d669c54.png\",\n    \"name\": \"Nottawaseppi Huron Band of the Potawatomi\",\n    \"slgId\": \"432-258\",\n    \"url\": \"https://mychart.ochin.org/NHBP/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/00E2F375-0176-45D1-9B18-8FA73E4358AF/fb5587c599061c4c5557352cce842527.png\",\n    \"name\": \"Inland Behavioral and Health Services\",\n    \"slgId\": \"432-259\",\n    \"url\": \"https://mychart.ochin.org/Ibhealthmychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EF3C0132-BD37-4C1A-ABD3-EB8AB8E565D5/917d3c5f4ad06d3f51af3910995fa279.png\",\n    \"name\": \"Guthrie\",\n    \"slgId\": \"433\",\n    \"url\": \"https://e.guthrie.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"UHNJ\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7CEF7BFE-D567-429D-9B5D-5FF4B6AF40C2/042dcec91b61a70fb0acf022e5f07da4.png\",\n    \"name\": \"University Hospital\",\n    \"slgId\": \"434\",\n    \"url\": \"https://mychart.uhnj.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Prevea\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7CAF78B4-2EC3-4DE8-8DE3-FD21CA9BCA1B/e4149a9d0c46df36735eb0639ae5fcdc.png\",\n    \"name\": \"Hospital Sisters Health System\",\n    \"slgId\": \"441\",\n    \"url\": \"https://www.myhshs.org/myhshs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4E9DABBB-833A-4E83-BD3C-AF5AF78B88CD/ec556989b9522ba85cf6929b630b804f.png\",\n    \"name\": \"Prevea Health\",\n    \"slgId\": \"441-2\",\n    \"url\": \"https://www.myprevea.com/MyPrevea/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9B63B48A-5D8D-470C-90A9-F1F29F21503F/7ba21aa95ced5d5af82e9158d168cadf.png\",\n    \"name\": \"Prairie Cardiovascular\",\n    \"slgId\": \"441-3\",\n    \"url\": \"https://www.mychartportal.org/prairie/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/36C758B0-7538-4847-B60E-99AF752E6EF2/94e335d87cd630bb1d72bf3cf7bac76d.png\",\n    \"name\": \"HSHS Medical Group\",\n    \"slgId\": \"441-4\",\n    \"url\": \"https://www.myhshs.org/myhshs/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/86ACD128-532B-41BC-94C8-8111A8B93FA3/d65bc27e4e8664e5bf1a59b392bafe2b.png\",\n    \"name\": \"Hemophilia Outreach Center\",\n    \"slgId\": \"441-6\",\n    \"url\": \"https://www.mychartportal.org/myhoc/\"\n  },\n  {\n    \"aliases\": [\n      \"Rincon\",\n      \"TMCOne\",\n      \"TMC\",\n      \"SPG\",\n      \"Saguaro Physician Group\",\n      \"SAIDS\",\n      \"Souther Arizona Infection Disease\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/30C1002D-BE89-4D5E-B97A-6A6C5B74D9AD/043d1daed298747e37bbb77132b4f970.png\",\n    \"name\": \"Tucson Medical Center\",\n    \"slgId\": \"442\",\n    \"url\": \"https://mychart.tmcaz.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FB0436DE-7D06-490C-86F6-2E1EDA70EBF4/65ee238df441ab0dd3621b63c3a52d40.png\",\n    \"name\": \"Tucson Independent Physicians and Surgeons\",\n    \"slgId\": \"442-3\",\n    \"url\": \"https://mychart.tmcaz.com/tucson-physicians/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/14CEFB3C-948C-4AE5-9F3A-D8D8FD32441A/259f8d6a683bddacb3f1296f0643ada9.png\",\n    \"name\": \"Austin Regional Clinic\",\n    \"slgId\": \"443\",\n    \"url\": \"https://mychart.austinregionalclinic.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"CHA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E6901CD6-71E2-4209-89DF-77395BC8F1E4/4fa649328e6ad06b0c6ccccdaf9cb557.png\",\n    \"name\": \"Cambridge Health Alliance\",\n    \"slgId\": \"445\",\n    \"url\": \"https://mychart.challiance.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"UCDHS\"\n    ],\n    \"directoryUrl\": \"https://mychart.ucdavis.edu/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4AFE64F4-A4D8-4441-9C05-CD3986E0EB89/7cdf7ba6e2d8bd7a406522ed78bbf53d.png\",\n    \"name\": \"UC Davis\",\n    \"slgId\": \"451\",\n    \"url\": \"https://mychart.ucdavis.edu/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/10D5F19B-1B4E-4F2B-9C59-5FD3FE77A08C/60315c46bce72bec626b1dcf9dbb1113.png\",\n    \"name\": \"Marshall Medical Center\",\n    \"slgId\": \"451-2\",\n    \"url\": \"https://mychart.marshallmedical.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/32B5FFE1-4BDB-4BEC-9794-5D4C1E4A8A10/8fba9ab95f91cf5e766bd3793fb2112f.png\",\n    \"name\": \"Froedtert\",\n    \"slgId\": \"453\",\n    \"url\": \"https://www.mychartlink.com/mychart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F517C3F7-FD51-406B-82B2-5D7A3BFB6F3E/1f470d4865328e3aa40c5ebc3224e24e.png\",\n    \"name\": \"Froedtert South\",\n    \"slgId\": \"453-2\",\n    \"url\": \"https://mychart.froedtertsouth.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E5D6D6B5-0DC5-40E5-B00C-C79229C7B1DE/38edc4f7bd4ae63bd92f94143e707b1f.png\",\n    \"name\": \"Aspirus\",\n    \"slgId\": \"456\",\n    \"url\": \"https://myaspirus.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Kaiser Colorado\",\n      \"Kaiser Georgia\",\n      \"Kaiser Hawaii\",\n      \"Kaiser N Cal\",\n      \"Kaiser S Cal\",\n      \"Kaiser Washington\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/custom/kaiserPermanente.png\",\n    \"name\": \"Kaiser Permanente\",\n    \"slgId\": \"459\",\n    \"url\": \"https://healthy.kaiserpermanente.org/consumer-sign-on\"\n  },\n  {\n    \"aliases\": [\n      \"Gottlieb\",\n      \"LUMC\",\n      \"LUHS\"\n    ],\n    \"directoryUrl\": \"https://myloyola.luhs.org/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3F0B7093-E6C0-4664-ADDD-A6F4062ECA22/04b9d9ae43ae8f2a792e2ac130848228.png\",\n    \"name\": \"Loyola Medicine\",\n    \"slgId\": \"461\",\n    \"url\": \"https://mychart.trinity-health.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"District One\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2C3CA0E8-E5F9-4F56-9108-AC2A283E34C6/67136a05c353de39d6c5e35e3b639933.png\",\n    \"name\": \"Allina\",\n    \"slgId\": \"465\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5134AD77-1DCE-4E6C-B411-66F71548CBBE/0f96727606af1154503f65c100cd6d96.png\",\n    \"name\": \"Welia Health\",\n    \"slgId\": \"465-1\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5E01766F-84FF-4A89-8335-4F5D1A8BF8CA/a3ea5a0661660f752d16d0857f00ffdd.png\",\n    \"name\": \"Hutchinson Health\",\n    \"slgId\": \"465-4\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [\n      \"GRHS\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8ED825BC-FA2C-4198-8041-61F3EE8A3597/5edc97a94a05d646a78e90b1a981af55.png\",\n    \"name\": \"Glencoe Regional Health Services\",\n    \"slgId\": \"465-5\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [\n      \"DOH\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/731CEE7C-C285-4895-9D98-5B5B739568EA/a97ff635414345c91d2e471bfad21b34.png\",\n    \"name\": \"District One Hospital\",\n    \"slgId\": \"465-6\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8CC3212E-08D9-420F-BDD5-ED5ED1F83808/3d5233e69377c7920a142b2ff871c94d.png\",\n    \"name\": \"St. Croix Health\",\n    \"slgId\": \"465-7\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/75501A79-F5A3-436D-BDDE-C2F0F66D437D/a6a0cd5504cd044478fc728b4f7f91b6.png\",\n    \"name\": \"River's Edge Hospital & Clinic\",\n    \"slgId\": \"465-8\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/33CB0626-DC69-41E0-AEAD-0B122C00585F/fb92877ec17200794c572390e27ef241.png\",\n    \"name\": \"Cuyuna Regional Medical Center\",\n    \"slgId\": \"465-9\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3BEE6F0D-5FC2-43C8-9917-9E250A0139DB/75848629ef5f86f90e117920c50897a2.png\",\n    \"name\": \"Western Wisconsin Health\",\n    \"slgId\": \"465-11\",\n    \"url\": \"https://account.allinahealth.org/dashboard/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1E9EB932-73FE-4CB7-B922-1E21E74F4202/2c1e23f4e908db32d6ac737fc0295ad9.png\",\n    \"name\": \"Children's Healthcare of Atlanta\",\n    \"slgId\": \"469\",\n    \"url\": \"https://mychart.choa.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Straub\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4B602511-9CC9-4E28-9949-DFA544D71725/e644ac16e27023b050a042f8e9d78056.png\",\n    \"name\": \"Hawaii Pacific Health\",\n    \"slgId\": \"471\",\n    \"url\": \"https://mychart.hawaiipacifichealth.org/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4685804C-7F47-4032-AB65-84D19F137D37/1afa5be0a5372d95ca9d1cb09354a2b7.png\",\n    \"name\": \"UTMB\",\n    \"slgId\": \"477\",\n    \"url\": \"https://mychart.utmb.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Corewell Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AAD32F2C-1046-479B-9034-7A29070EB3D4/269a6eabc910db93cb7c80c7894f6fa8.png\",\n    \"name\": \"Beaumont\",\n    \"slgId\": \"485\",\n    \"url\": \"https://mybeaumontchart.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"THR\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/515041ED-C9A9-415E-BD9F-7AD703665BC0/9aa7ca08e48981948fcac8f27cbab26c.png\",\n    \"name\": \"Texas Health Resources\",\n    \"slgId\": \"491\",\n    \"url\": \"https://mychart.texashealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Dayton\",\n      \"Ohio\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C89AF8E5-75C9-44C6-956B-8D7A1EE88FBB/549998508d37daed945c267abf89621d.png\",\n    \"name\": \"Premier Health\",\n    \"slgId\": \"494\",\n    \"url\": \"https://mychart.premierhealthpartners.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C39350C0-4206-423C-96E2-C404C848F619/d66a5dd08cb783e8f767617264536798.png\",\n    \"name\": \"MemorialCare\",\n    \"slgId\": \"498\",\n    \"url\": \"https://mymemorialcare.memorialcare.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/38B7A014-5DA2-4514-B7FC-C930E63C39F3/e9c9354ed24fe9115dbbc37ed873709c.png\",\n    \"name\": \"The Queen's Health System\",\n    \"slgId\": \"501\",\n    \"url\": \"https://mychart.queens.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Kona\",\n      \"Kohala\",\n      \"Alii Health\",\n      \"West Hawaii Region\",\n      \"Queens\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/312B7F3F-9EC4-41E1-B7FE-2F05C7B043D3/2aac62790b42f661838144b8760ed865.png\",\n    \"name\": \"Queen's Connect\",\n    \"slgId\": \"501-1\",\n    \"url\": \"https://mychart.queens.org/QueensConnect/\"\n  },\n  {\n    \"aliases\": [\n      \"UCSD\",\n      \"University of California\",\n      \"San\",\n      \"Diego\",\n      \"SanDiego\",\n      \"UC\",\n      \"UC San Diego\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D7D8163C-58C3-4646-831D-5316CF76E920/ea788dd79fe9a5a47e4833666b8ecf38.png\",\n    \"name\": \"UC San Diego\",\n    \"slgId\": \"502\",\n    \"url\": \"https://myucsdchart.ucsd.edu/ucsd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3CA90A63-7820-4083-AEF9-0889A9B8822A/2795df851141b4d8876261b173a03cb8.png\",\n    \"name\": \"San Diego Sports Medicine\",\n    \"slgId\": \"502-1\",\n    \"url\": \"https://sdsm.healthmychart.org/sdsm/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B711966E-E22C-48BF-BBFF-A0C1953CE278/df64c060413fda3420a617d6824ac85b.png\",\n    \"name\": \"The Neurology Center\",\n    \"slgId\": \"502-2\",\n    \"url\": \"https://mychart.neurocenter.com/tnc/\"\n  },\n  {\n    \"aliases\": [\n      \"Riverside\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/78C91E1C-3C30-45FA-9618-6E094B2A38C6/2e01dba41c94c29b345bda30d31a408c.png\",\n    \"name\": \"UCR Health\",\n    \"slgId\": \"502-3\",\n    \"url\": \"https://mychart.ucrhealth.org/ucr/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4D7AA807-222E-435D-A123-9400C10615D4/93f958b877e7798f7c992df02d0a7ca9.png\",\n    \"name\": \"IGO Medical Group\",\n    \"slgId\": \"502-4\",\n    \"url\": \"https://mychart.igomed.com/igo/\"\n  },\n  {\n    \"aliases\": [\n      \"Irvine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3D311888-2477-47DA-A516-712E3796E19D/0bf6222c1a5443f6b86c8975b8ed79a4.png\",\n    \"name\": \"UCI Health Archive\",\n    \"slgId\": \"502-5\",\n    \"url\": \"https://my.ucihealth.org/UCI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D32682E7-5F3E-4FB5-A25C-945A1E5CB8B9/357d97f768fc87cbe37f06497c559a93.png\",\n    \"name\": \"Rancho Family Medical Group\",\n    \"slgId\": \"502-6\",\n    \"url\": \"https://mychart.ranchofamilymed.com/rfm/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6BC7002D-0E2B-48D2-88CC-F106E8B41B3A/74b3c105c75550bc88f822720aaeb4f8.png\",\n    \"name\": \"Optimas Family Medicine\",\n    \"slgId\": \"502-7\",\n    \"url\": \"https://optimas.healthmychart.org/ofm/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/92EBA383-BDE6-4AE6-863F-4CD695974F03/4062962f3ef4b3182bb1fe398baff5a8.png\",\n    \"name\": \"Well Being Health\",\n    \"slgId\": \"502-8\",\n    \"url\": \"https://mychart.wellbeingmed.org/wbmc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/08FDB36D-67E0-44DB-8052-897811C025BB/988ff9e305c02d639bed4ed40e3ecc26.png\",\n    \"name\": \"Perlman Clinic\",\n    \"slgId\": \"502-11\",\n    \"url\": \"https://myucsdchart.ucsd.edu/mpc/\"\n  },\n  {\n    \"aliases\": [\n      \"UCSDSHS\",\n      \"SHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3B6C6450-82B2-4872-B9D3-4E230FF1424C/ff559f45f4744c7a156011ed4be51649.png\",\n    \"name\": \"UC San Diego Student Health\",\n    \"slgId\": \"502-12\",\n    \"url\": \"https://mystudentchart.ucsd.edu/shs/\"\n  },\n  {\n    \"aliases\": [\n      \"NCFMG\",\n      \"NCMG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/72323DBD-8B47-4F11-BFAD-A792F557F77A/56146a451fef3bfd8f08cedee859d21d.png\",\n    \"name\": \"North Coast Family Medical Group\",\n    \"slgId\": \"502-13\",\n    \"url\": \"https://mychart.ncfmg.com/ncfmg/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1EA03B15-E28C-4C6C-9F8D-02877323AE18/79719faf1864b41b29cb3f20444f1114.png\",\n    \"name\": \"UC San Diego Employee SSO\",\n    \"slgId\": \"502-14\",\n    \"url\": \"https://myucsdchart.ucsd.edu/ucsd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Torrey\",\n      \"Pines\",\n      \"TPOMG\",\n      \"TPOSM\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C8558461-5CC6-442D-AB89-0DD2220B8FD5/9e5913117d59b4b8a12dcf43761ff6fe.png\",\n    \"name\": \"Torrey Pines Orthopaedics & Sports Medicine\",\n    \"slgId\": \"502-15\",\n    \"url\": \"https://mychart.tpomg.com/tpomg/\"\n  },\n  {\n    \"aliases\": [\n      \"Elsayed\",\n      \"MKE\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6F6E5DD9-3464-4182-9D55-76743B16AD81/22e3fcf02bf2d71980b9f8ca2109daec.png\",\n    \"name\": \"Oxford Care\",\n    \"slgId\": \"502-17\",\n    \"url\": \"https://oxfordcare.healthmychart.org/MKE/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2211B304-52D5-428B-9076-B7BBA3C9225B/b6a4e1ae030c779ca9e96e58a3fc1a61.png\",\n    \"name\": \"Aligned Geriatrics\",\n    \"slgId\": \"502-18\",\n    \"url\": \"https://rawimedical.healthmychart.org/RAW/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"DENT\",\n      \"DENTMD\",\n      \"SDENTS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8D1016A5-22FD-4318-9DF4-7D1729F80EC3/83a8103f0c8d69d5b1b7cacf79bc028e.png\",\n    \"name\": \"San Diego Ear, Nose & Throat Specialists MyChart\",\n    \"slgId\": \"502-19\",\n    \"url\": \"https://mychart.sdents.com/DENT/\"\n  },\n  {\n    \"aliases\": [\n      \"CCMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A8DB4FE4-7A5C-4B1F-BF26-6D3BC85942F7/855ac2b3b8294bdff8351dd927fdf315.png\",\n    \"name\": \"Compassionate Care Medical Center\",\n    \"slgId\": \"502-20\",\n    \"url\": \"https://mychart.et0502.epichosted.com/CCMC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D9678530-B848-451B-8F47-E04ECF1A67C9/49cf5502d53b83f2659ca66d949d8ad3.png\",\n    \"name\": \"Methodist Hospitals\",\n    \"slgId\": \"503\",\n    \"url\": \"https://mychart.methodisthospitals.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Knight\",\n      \"Doernbecher\",\n      \"OHSU\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4AEA3322-8629-41DF-B335-35B5DF379BE9/a3f6a549780ef1edb30769a0de8533c2.png\",\n    \"name\": \"Oregon Health and Science University\",\n    \"slgId\": \"504\",\n    \"url\": \"https://mychartweb.ohsu.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"AHCG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BFF57AAB-4154-4D38-BA94-EA862C49DF00/6c4dc84a30675d6ac842595c4eb14e1b.png\",\n    \"name\": \"Adventist Health Columbia Gorge\",\n    \"slgId\": \"504-2\",\n    \"url\": \"https://mychartweb.ohsu.edu/mychartmcmc/\"\n  },\n  {\n    \"aliases\": [\n      \"Hillsboro Medical Center\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FBE06E36-19AD-457E-8B48-5968CD6E662C/db57bbe93196531974c2dd25ad1eb137.png\",\n    \"name\": \"Tuality Healthcare\",\n    \"slgId\": \"504-3\",\n    \"url\": \"https://mychartweb.ohsu.edu/mychartmcmc/\"\n  },\n  {\n    \"aliases\": [\n      \"Viborg\",\n      \"Ortonville\",\n      \"Burke\",\n      \"Kittson\",\n      \"Riverview\",\n      \"Pioneer\",\n      \"Winner\",\n      \"Douglas\",\n      \"Jamestown\",\n      \"Mahnomen\",\n      \"Perham\",\n      \"Sidney\",\n      \"Windom\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4E4F2922-DC19-4360-AF7D-4B21F7D45755/4f0673e9e283f3f482e137f734f15da1.png\",\n    \"name\": \"Sanford\",\n    \"slgId\": \"507\",\n    \"url\": \"https://www.mysanfordchart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E5ACF3C3-105A-4938-BDA8-BA70B5CC38B5/444dbcdc2498b8795c6fd01fbc7406de.png\",\n    \"name\": \"Sanford Health Plan\",\n    \"slgId\": \"507-3\",\n    \"url\": \"https://member.sanfordhealthplan.org/portal/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6051EAA8-2D36-4734-ADCE-0B8680D8E09B/1b480c29959accffbd9afdd63bf024c5.png\",\n    \"name\": \"United Hospital District\",\n    \"slgId\": \"507-4\",\n    \"url\": \"https://www.mysanfordchart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4BEF4943-17BC-4FDD-8D3B-2825E0F2FD66/399ea3966bcee5fa5a76578f829addf6.png\",\n    \"name\": \"Lake Region Healthcare\",\n    \"slgId\": \"507-5\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F6A0F216-D162-43CA-89B7-0E64CD81866F/5e330e5f02fbc5556bdf8ef6095d6511.png\",\n    \"name\": \"Jamestown Regional Medical Center\",\n    \"slgId\": \"507-6\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0D7416D4-47D9-421B-A4C1-60EAB61A2E88/691f4c03975ac200bc918ae66a334193.png\",\n    \"name\": \"Coteau des Prairie Medical Center\",\n    \"slgId\": \"507-7\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/094DB9A2-5E32-49D3-AAD6-254182DC5A2B/34a97f4e7f27869af2967367ae2da176.png\",\n    \"name\": \"Community Memorial Hospital\",\n    \"slgId\": \"507-8\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6C4DDB04-0E63-4E9F-B936-D05C92546A6A/98382a1598faefbce99cdc73b46441a3.png\",\n    \"name\": \"Douglas County Memorial Hospital\",\n    \"slgId\": \"507-9\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FC84F98B-0293-4F27-90B1-5D21B000E1DD/c41f753768bfe59e1b01a4f1de5d0b68.png\",\n    \"name\": \"Lifescape\",\n    \"slgId\": \"507-10\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7BB8D9C9-5FB8-4221-8D75-8527E0D139C5/87029dc36182ebc3e0e2135f161c5a80.png\",\n    \"name\": \"Murray County Medical Center\",\n    \"slgId\": \"507-11\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6E6A1E87-676B-4472-A665-D15BAC883ECB/94173ea0f537edbd8401105a88298b83.png\",\n    \"name\": \"Orange City Area Health System\",\n    \"slgId\": \"507-12\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A6BEF191-D966-46C4-B86D-7FA41FBDC206/f5c133267785b4d027c06136ab3e4ab0.png\",\n    \"name\": \"Ortonville Area Health Services\",\n    \"slgId\": \"507-13\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/37C7E7C6-87DE-4763-9230-13A7489A196B/b6519d30a0cd54138eb3e6fb7269fd09.png\",\n    \"name\": \"Perham Health\",\n    \"slgId\": \"507-14\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1C7E0D4C-FE64-4B93-A923-2CE1D94F3E08/255f0bc2ec0ea1f70d0342c68d4c5a9e.png\",\n    \"name\": \"Pioneer Memorial Hospital\",\n    \"slgId\": \"507-15\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0263B35E-ED84-4AC0-AED8-01B31BA8A073/84364d28909754651fb3f294c10a8b23.png\",\n    \"name\": \"Rainy Lake Medical Center\",\n    \"slgId\": \"507-16\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A7F4880E-BA56-405D-BBD0-1B4F8A3BF7B5/8f65b93b83ab07acd74bb38147f19198.png\",\n    \"name\": \"Riverview Health\",\n    \"slgId\": \"507-17\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B8DF17FF-A023-4665-8ABC-226435C15062/a0f30ded16e79c8dd5c7d569d227484d.png\",\n    \"name\": \"Sidney Health Center\",\n    \"slgId\": \"507-18\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5B7D2BF0-92CC-44CD-A2A2-F1EBB3DE14E5/dea16804ebe5002b2b1582584ac67b36.png\",\n    \"name\": \"UND Center for Family Medicine\",\n    \"slgId\": \"507-19\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/10EA3CCC-EED7-41C1-A1AA-1EC316BFAD32/c6bc3c101b438e5d4547efb8a849a60a.png\",\n    \"name\": \"Windom Area Health\",\n    \"slgId\": \"507-20\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FCFBEB8F-9B06-4875-A51F-9AED1A51D8A5/904d6fb695632ed45811fc6a3481a638.png\",\n    \"name\": \"Jacobson Memorial Hospital\",\n    \"slgId\": \"507-21\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A1368752-75DD-4802-BED4-930419A46EF3/20b6f37447acaa87763146fb86cf7168.png\",\n    \"name\": \"Kittson Healthcare\",\n    \"slgId\": \"507-22\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/642CEB4C-C35F-4CEC-8C50-391B0F91B4CD/ba21c73560fc6961730d29c2ee4bd475.png\",\n    \"name\": \"Mahnomen Health Center\",\n    \"slgId\": \"507-23\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/57109FF9-0AEB-45DA-AD15-D57F420EC44D/0f94011dad734482955909420b985f34.png\",\n    \"name\": \"McKenzie County Healthcare\",\n    \"slgId\": \"507-24\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0A9B04E5-84D3-497B-B6BF-9C1085DD3E41/39989cbbb6f638c6b92d9fbaecb015e1.png\",\n    \"name\": \"Winner Regional Healthcare\",\n    \"slgId\": \"507-25\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/030AA01D-5021-49BA-AF84-2B2F0362CBFC/1d7a6a064cd2b26ed77fdfe9d4b00314.png\",\n    \"name\": \"Family Healthcare\",\n    \"slgId\": \"507-26\",\n    \"url\": \"https://www.mychartcp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D3B6E822-614A-4ED8-8F1D-B31DBFDFB6AC/d59d18875fb4188fbdec0754e9406336.png\",\n    \"name\": \"North Memorial\",\n    \"slgId\": \"509\",\n    \"url\": \"https://mychart.northmemorial.com/NorthMemorial/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A328F605-2BC6-40F7-921B-DCA5C039CE08/9c9e0929e7940ff2963c2a1dd25d27b7.png\",\n    \"name\": \"Stellis Health\",\n    \"slgId\": \"509-2\",\n    \"url\": \"https://mychart.northmemorial.com/StellisHealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E516761-C19C-45FE-A9C1-14F754B40473/270e6ca52ab2e22082c2e5e0eeef5613.png\",\n    \"name\": \"Broadway\",\n    \"slgId\": \"509-3\",\n    \"url\": \"https://mychart.northmemorial.com/UMPBroadway/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D2BE6D17-247A-4933-80CF-D4AAF4EF449F/43ee35de7f9406ca9f6082f4092fb2fd.png\",\n    \"name\": \"Minneapolis Clinic of Neurology MyChart\",\n    \"slgId\": \"509-4\",\n    \"url\": \"https://mychart.northmemorial.com/MplsClinicNeuro/\"\n  },\n  {\n    \"aliases\": [\n      \"North Lung\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DC9D17A6-327F-46B3-89BF-15FDB1E83D9D/3fd1a42b6c960c439b458c707c368e05.png\",\n    \"name\": \"Respiratory Consultants\",\n    \"slgId\": \"509-5\",\n    \"url\": \"https://mychart.northmemorial.com/NorthLung/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C724F0D0-4DFF-42CB-BBEA-EF270860D80D/3e2956a2ae40813f7d0da37b3acf361f.png\",\n    \"name\": \"Hennepin\",\n    \"slgId\": \"510\",\n    \"url\": \"https://mychart.hcmc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Atrius\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BFEF6499-59B0-4F2C-BF48-CC30117B413E/fead0c5626e854477a6a5415d1fd42bf.png\",\n    \"name\": \"Reliant Medical Group\",\n    \"slgId\": \"511\",\n    \"url\": \"https://mychart.reliantmedicalgroup.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5AD0DC52-FA58-44DA-9846-5A8334B797D7/8ca2c638a1aa5e49f9d2849c1a1fc0c2.png\",\n    \"name\": \"ProHealth Physicians\",\n    \"slgId\": \"511-1\",\n    \"url\": \"https://mychart.prohealthmd.com/PHCT/\"\n  },\n  {\n    \"aliases\": [\n      \"Mount Sinai\",\n      \"MyMountSinai\",\n      \"Mt Sinai\",\n      \"Mt Sinai MyChart\",\n      \" Mount Sinai Health System\",\n      \"mshs\",\n      \"The Mount Sinai Hospital\",\n      \"Mount Sinai West\",\n      \"Mount Sinai Morningside\",\n      \"Mount Sinai Queens\",\n      \"Mount Sinai Brooklyn\",\n      \"Mount Sinai Beth Israel\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/063BAE07-AA7A-4EB3-8CF7-F0FB981F3545/5779ebc5a4328ccd8acf3da2eddbbfce.png\",\n    \"name\": \"MountSinai\",\n    \"slgId\": \"513\",\n    \"url\": \"https://mychart.mountsinai.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3E1170D6-CE8E-405A-8CA3-FB79A99C5EB4/2386a6bd19924eadab1c59979cd3cb4a.png\",\n    \"name\": \"Mount Sinai New York - Concierge Care\",\n    \"slgId\": \"513-1\",\n    \"url\": \"https://mychart.mountsinai.org/ConciergeCare/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/30759592-F490-4B83-9379-6828DED67F20/456373027cff26e8b7a3ebc263fd827a.png\",\n    \"name\": \"Health Center, powered by Mount Sinai\",\n    \"slgId\": \"513-2\",\n    \"url\": \"https://mychart.mountsinai.org/healthcenter/\"\n  },\n  {\n    \"aliases\": [\n      \"Mount Sinai Doctors Concierge Care\",\n      \"New York Concierge Care\",\n      \"New York Mount Sinai Concierge Care\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A8A04CB3-00C5-472B-B6F7-31B9716C52EA/513d80e1d6334440de114feaf196e01a.png\",\n    \"name\": \"The Health Center at Hudson Yards\",\n    \"slgId\": \"513-3\",\n    \"url\": \"https://mychart.mountsinai.org/hchy/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/32294665-D793-4375-AE58-B98ECBB9E198/d6d555d7bf01bbec49e29aaf5cc6e8f6.png\",\n    \"name\": \"Renown\",\n    \"slgId\": \"514\",\n    \"url\": \"https://mychart.renown.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/44325FD0-D3C1-4802-8056-C86AFCCE3AC8/e15fa2ebf5cfef307870c12d341b6196.png\",\n    \"name\": \"Barton Health\",\n    \"slgId\": \"514-2\",\n    \"url\": \"https://mychart.bartonhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7C83BD7F-6D44-403E-AF17-6FE51528E654/a87167d3e341cc2d06136d082393f2dd.png\",\n    \"name\": \"Carson Valley Health\",\n    \"slgId\": \"514-3\",\n    \"url\": \"https://mychart.carsonvalleyhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Melrose\",\n      \"Prarie\",\n      \"Becker\",\n      \"Sauk\",\n      \"Northway\",\n      \"SCMC\",\n      \"Stevens\",\n      \"NovaCare\",\n      \"RC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E15B35A5-DF39-4849-B254-EC38914B2B05/f5c9ac66617e36a1042bf46f842f250b.png\",\n    \"name\": \"CentraCare\",\n    \"slgId\": \"515\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Alexandria\",\n      \"DCH\",\n      \"Alomere\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ACE154C2-7EE9-4397-BB8E-69C485026829/f635494bcee721ef939b196fba76da6f.png\",\n    \"name\": \"Alomere Health\",\n    \"slgId\": \"515-2\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"TCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B596854D-3BC5-4A5C-B37E-11D1FF1866A8/c81aabe9e274a8f218da283ff53a97d8.png\",\n    \"name\": \"Astera Health\",\n    \"slgId\": \"515-3\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B0541DEC-7D91-4C0F-BBD3-76AD297604C4/7755a8312098bc808c38e248dbf3dc83.png\",\n    \"name\": \"Rice Memorial Hospital\",\n    \"slgId\": \"515-4\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Unity\",\n      \"Randall\",\n      \"Little Falls\",\n      \"Albany\",\n      \"Avon\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/49A248BF-C9C7-47E9-8AE1-CF178CCBA23D/1093e01ea1566d4dd890396d1ff4b269.png\",\n    \"name\": \"St. Gabriel's Health\",\n    \"slgId\": \"515-5\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Olivia\",\n      \"Renville\",\n      \"Hector\",\n      \"RC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5779FE68-714D-4A16-A76E-398FE0D2DA51/05a84a0573fcf2def2bc9e3cf9348d84.png\",\n    \"name\": \"RC Hospitals & Clinics\",\n    \"slgId\": \"515-6\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1323A564-FEEB-49E9-BE15-310B0FE20579/ebe5627eac33e8c828a778b140751811.png\",\n    \"name\": \"Stevens Community Medical Center\",\n    \"slgId\": \"515-7\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4E77D6B4-79DC-4457-9CEB-FB35896203A7/be0fcf5f2d9870d990bd64aae97138e9.png\",\n    \"name\": \"CCM Health\",\n    \"slgId\": \"515-8\",\n    \"url\": \"https://mychart.centracare.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/00324E2F-5967-4B1E-BE31-CFD4C2CE4ED6/cb3e54e8791bfeef5eb18de04770415d.png\",\n    \"name\": \"Johnson Memorial Health Services\",\n    \"slgId\": \"515-9\",\n    \"url\": \"https://mychart.centracare.com/mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/32E8EAC3-A37A-4771-B718-4FA4B7A5EDA4/f2503ca5fc3001697278e2491ddb49ca.png\",\n    \"name\": \"Appleton Health\",\n    \"slgId\": \"515-10\",\n    \"url\": \"https://mychart.centracare.com/mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://millelacsband.com/home/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0F6068D5-2168-43F3-A6F5-1991E0BEC684/060194f15779a847328b7b11bd133f97.png\",\n    \"name\": \"Mille Lacs Band of Ojibwe\",\n    \"slgId\": \"515-11\",\n    \"url\": \"https://mychart.centracare.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5ECE09C3-890D-4C36-A016-C969C995BD8F/981a988f932ea01cea1fa9389771d29a.png\",\n    \"name\": \"Stellis Health\",\n    \"slgId\": \"515-13\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/75217D52-711C-4EDE-B119-AD68D74B201F/6d04041d5a2f15b2448fe4606ef7d1cc.png\",\n    \"name\": \"Janning ENT\",\n    \"slgId\": \"515-14\",\n    \"url\": \"https://mychart.centracare.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0425B269-A87B-4C65-9728-77E833F88F0B/65108cec87d0217e8256abd5a0fd529c.png\",\n    \"name\": \"Salem Health\",\n    \"slgId\": \"516\",\n    \"url\": \"https://mychart.salemhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"UHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/048D8305-D5BB-442E-B4AF-31A36AEF1561/8ad45df0b47a683164afaf5aa643d5a8.png\",\n    \"name\": \"ECU Health\",\n    \"slgId\": \"517\",\n    \"url\": \"https://mychart.vidanthealth.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BE3A4C0C-83A8-479A-AB67-D2D0C3E44FEC/f0d951031ea43d43cbdce806d4120809.png\",\n    \"name\": \"Lee Health Systems, Inc\",\n    \"slgId\": \"523\",\n    \"url\": \"https://mychart.leememorial.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3D70798B-E572-4C95-9AF6-53CF69759DAC/104e63ddee89a82c720cf41166fa1fd3.png\",\n    \"name\": \"Nationwide Children's Hospital\",\n    \"slgId\": \"525\",\n    \"url\": \"https://mychart.nationwidechildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/78208CF4-F153-4670-BE4C-ECB32E10673E/8103cc05d4c2ef789e5be917ce340584.png\",\n    \"name\": \"University of Michigan Health-West\",\n    \"slgId\": \"530\",\n    \"url\": \"https://mychart.metrohealth.net/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BC047D0E-5EF1-4EA9-A6AC-AC37FA0E27E6/a3bdcc23cb60f267f350d5c6c400d4b4.png\",\n    \"name\": \"Packard Health\",\n    \"slgId\": \"530-1\",\n    \"url\": \"https://mychart.metrohealth.net/packardhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AB230D47-7948-4527-AD17-3781C5DB67F9/24e321d3726898457f1693ce79ecc50d.png\",\n    \"name\": \"Sentara Health\",\n    \"slgId\": \"531\",\n    \"url\": \"https://myhealth.sentara.com/Login/Login.aspx\"\n  },\n  {\n    \"aliases\": [\n      \"LGH\",\n      \"LGHealth\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/19E5F01A-4F00-4C4B-B72A-1091F23101B9/00d1f9c196a5f0962795b5d9d6ea2597.png\",\n    \"name\": \"Lancaster\",\n    \"slgId\": \"538\",\n    \"url\": \"https://www.mylghealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/85AAEF8C-3F33-424A-AD87-870A22D6640F/7bc9132140aa4e74710016f7b42280d5.png\",\n    \"name\": \"Stanford\",\n    \"slgId\": \"541\",\n    \"url\": \"https://myhealth.stanfordhealthcare.org/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/01D28DBE-8575-4570-A9CC-B767A1F4F0DB/0530e6483d5689dd10f29868572ed2cc.png\",\n    \"name\": \"Covenant HealthCare\",\n    \"slgId\": \"545\",\n    \"url\": \"https://mychart.chs-mi.com/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8A153522-835A-4424-B6B4-7A22AC59722C/0fde66d3bc42d107589801236c7dcb70.png\",\n    \"name\": \"Mary Free Bed\",\n    \"slgId\": \"545-1\",\n    \"url\": \"https://mychart.chs-mi.com/MFBPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8CC4FFF5-DBF6-4530-AC88-EB0CB9125DD2/f9966d679e896c65fe9e987356b0cec1.png\",\n    \"name\": \"Scheurer\",\n    \"slgId\": \"545-2\",\n    \"url\": \"https://mychart.chs-mi.com/ScheurerPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/49891F3B-7BFC-4707-837D-BD013F2A64EF/ea9730ee08922ce7e4f608d1984e71c0.png\",\n    \"name\": \"Aspire\",\n    \"slgId\": \"545-3\",\n    \"url\": \"https://mychart.chs-mi.com/AspirePRD/\"\n  },\n  {\n    \"aliases\": [\n      \"CMU\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6D1ADF52-110E-4DE7-B5FC-75A12D529FCF/f7684f45d6a3e93fd718db2f9f872d60.png\",\n    \"name\": \"Central Michigan University\",\n    \"slgId\": \"545-4\",\n    \"url\": \"https://mychart.chs-mi.com/CMUPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"Mercy\",\n      \"MercyHealth\",\n      \"Mercy Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1AC5D4A7-9833-4FFF-926D-EA63A80FFCB2/ff1a45ded549203f5b6d66c910be7f06.png\",\n    \"name\": \"MHS\",\n    \"slgId\": \"549\",\n    \"url\": \"https://mychart.mercyhealthsystem.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"TCHP\",\n      \"Texas Childrens Health Plan\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2EF09046-00DA-4E7D-AADB-3FAFCF5270B1/c2db34e98e7818d4cc98d10d0a82e140.png\",\n    \"name\": \"Texas Children's\",\n    \"slgId\": \"551\",\n    \"url\": \"https://mychart.texaschildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/92339AF7-015E-4B0D-A289-0ED1BCEE6B02/f90690d70c0d2a5f1223eb4380013104.png\",\n    \"name\": \"Children's Nebraska\",\n    \"slgId\": \"553\",\n    \"url\": \"https://connect.childrensomaha.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"UMMS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AF7FB057-E834-4BE2-83CB-5E9BF750E9F5/3d6cba9393487636d4419b25b1169035.png\",\n    \"name\": \"University of Maryland Medical System\",\n    \"slgId\": \"555\",\n    \"url\": \"https://myportfolio.umm.edu/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MPCP\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5F281A93-70C5-42F5-B27F-20987BE5F9E8/adc4dde0e82e3e8eb28663293c95c74a.png\",\n    \"name\": \"Maryland Primary Care Physicians\",\n    \"slgId\": \"555-1\",\n    \"url\": \"https://mychart.umms.org/mpcp/\"\n  },\n  {\n    \"aliases\": [\n      \"Ohio State\",\n      \"Wexner\",\n      \"OSU\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/879BB6E5-F469-4F52-ADE3-8E89875767C4/925b87fbbd17555c3b732bf7dc7f5437.png\",\n    \"name\": \"The Ohio State University Wexner Medical Center\",\n    \"slgId\": \"557\",\n    \"url\": \"https://mychart.osu.edu/osumc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6F39ED51-3C17-4C1D-A3D8-839B331F06E2/ce37c6e1ce78c319a9ed57d53ea289f4.png\",\n    \"name\": \"Memorial Health\",\n    \"slgId\": \"557-1\",\n    \"url\": \"https://mychart.osu.edu/memorialhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/09BB305B-FDCA-4CEF-9257-E5BB77CFA993/2ca044a908f8e890ca777a83c12677f2.png\",\n    \"name\": \"Hocking Valley\",\n    \"slgId\": \"557-3\",\n    \"url\": \"https://mychart.osu.edu/hocking/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/734C3034-FC60-41FF-A3A7-AE1174B8AA50/4a7176f260b030cb6f8114b45a835dd8.png\",\n    \"name\": \"Mercer Health\",\n    \"slgId\": \"557-4\",\n    \"url\": \"https://mychart.osu.edu/mercerhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8DA5F271-EAF1-4D45-8CDA-E8032E1DE686/b93bab9aa3faa9e888381032633f9157.png\",\n    \"name\": \"Madison Health\",\n    \"slgId\": \"557-5\",\n    \"url\": \"https://mychart.osu.edu/madisonhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B4C0FF54-06D3-4617-859A-5B78B7C7338B/5ccdae7af13f9d5429b18e0a73d87ec1.png\",\n    \"name\": \"Avita Health System\",\n    \"slgId\": \"557-6\",\n    \"url\": \"https://mychart.osu.edu/avitahealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/12A4772E-A632-4C1F-A525-36D422F89AAC/37e8c53f6a77c4c309b2bddcf03da40c.png\",\n    \"name\": \"Adena Health System\",\n    \"slgId\": \"557-7\",\n    \"url\": \"https://mychart.osu.edu/adena/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E7625AA3-1F22-4C02-A9E4-AA5F13845B42/7d5035dac11ba1776a0d3e8eba70423b.png\",\n    \"name\": \"Heart of Ohio Family Health\",\n    \"slgId\": \"557-8\",\n    \"url\": \"https://mychart.osu.edu/HeartofOhioFamilyHealth/\"\n  },\n  {\n    \"aliases\": [\n      \"LCA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/82D522E1-FDC0-4908-84B1-9144814D3C2F/e9da6e143d60c854a497213625fea8fc.png\",\n    \"name\": \"LifeCare Alliance\",\n    \"slgId\": \"557-9\",\n    \"url\": \"https://mychart.osu.edu/lifecarealliance/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D2FA27D8-7812-4A27-AE15-E92AB1A0AD38/71bef75bd72f23f0215deb3e8feba5f3.png\",\n    \"name\": \"Wilson Health System\",\n    \"slgId\": \"557-10\",\n    \"url\": \"https://mychart.osu.edu/wilsonhealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/80EC87A0-4BF7-4965-AB71-554CA5DD7417/3549c89d93830a7209c92c073dfd4666.png\",\n    \"name\": \"Columbus Public Health\",\n    \"slgId\": \"557-11\",\n    \"url\": \"https://mychart.osu.edu/ColumbusPublicHealth/\"\n  },\n  {\n    \"aliases\": [\n      \"Ruby\",\n      \"WVU\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/944C4FAA-4372-41F4-A6DE-91283BB61000/8a077d32148684befc9670f9f0daaf37.png\",\n    \"name\": \"West Virginia University\",\n    \"slgId\": \"563\",\n    \"url\": \"https://mywvuchart.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2335DC7B-AD6A-43EA-BB97-91DA473D7748/8c72a966c049dcd8cc9ed4cbcf8cf8d9.png\",\n    \"name\": \"Peak Health\",\n    \"slgId\": \"563-1\",\n    \"url\": \"https://mypeak.peakhealth.org/MyPeak/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"CCHMC\",\n      \"MyPages\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/775C2DF0-43FC-4C94-9470-FB9B32E253C3/20f5dc0ddec235c408bceb58ccc6be1a.png\",\n    \"name\": \"Cincinnati Children's\",\n    \"slgId\": \"565\",\n    \"url\": \"https://mychart.cincinnatichildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3363E074-4E98-4106-A605-44A6B4B5DB2C/9e1eb7de55773d874a240674376c0a31.png\",\n    \"name\": \"Dayton Children's Hospital\",\n    \"slgId\": \"567\",\n    \"url\": \"https://mykidschart.childrensdayton.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"KUMed\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/975C8660-8337-4239-B8FF-E6232EA27CEA/5fb9be2cca9e0cd3833ce926ecd52c09.png\",\n    \"name\": \"The University of Kansas Health System\",\n    \"slgId\": \"569\",\n    \"url\": \"https://mychart.kansashealthsystem.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6FC0A06C-8DC2-401F-AD59-5514EBD84D5C/7cdca55ab88f0d5b0900eb298570dae5.png\",\n    \"name\": \"SLUCare\",\n    \"slgId\": \"571\",\n    \"url\": \"https://mychart.ssmhc.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Seattle Children's Primary Care Group\",\n      \"Richmond Pediatrics\",\n      \"SCPCG\",\n      \"UPPC\",\n      \"University Place Pediatric Clinic\",\n      \"Seattle Children’s Hospital\",\n      \"SCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/79F431F5-3C4D-4AA0-9114-B4C1A7572268/13b9bb93552546e39dac5e2510346f97.png\",\n    \"name\": \"Seattle Children's MyChart\",\n    \"slgId\": \"574\",\n    \"url\": \"https://mychart.seattlechildrens.org/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Olympia Pediatrics\",\n      \"Woodinville Pediatrics\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BA338701-936D-4FBB-97AD-5E4D73EF0544/16df04b7ab12cbd9f51e8197317695f5.png\",\n    \"name\": \"Seattle Childrens Community Connect\",\n    \"slgId\": \"574-1\",\n    \"url\": \"https://mychart.schconnect.org/schconnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F4D400B1-53ED-41D3-A877-37C1256D26CB/f6cc5827073147970dc83ba6f5272562.png\",\n    \"name\": \"CHI St. Vincent\",\n    \"slgId\": \"575-3\",\n    \"url\": \"https://www.chistvincentonecare.com/#/login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/236DF432-C3F3-4CDA-B4FC-D46A644C0CFF/90dd6f4eead15284cf816ef1f25ceac8.png\",\n    \"name\": \"RiverView Health\",\n    \"slgId\": \"575-4\",\n    \"url\": \"https://mychart.riverview.org/#/login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/78B8CA32-C3A1-43FA-988D-2FE1B8E72CA7/e257fc92b795ce37f6ee9b87314adcc5.png\",\n    \"name\": \"Tahoe Forest Health System\",\n    \"slgId\": \"575-5\",\n    \"url\": \"https://mychart.tfhd.com/#/login\"\n  },\n  {\n    \"aliases\": [\n      \"River Valley\",\n      \"Truckee\",\n      \"Tahoe\",\n      \"TTMG\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A47E6AA7-84ED-4CAF-9743-A7E8DD53A4CE/47ed46ba40977a487d8d275bed7e08ab.png\",\n    \"name\": \"MTS\",\n    \"slgId\": \"575-6\",\n    \"url\": \"https://www.mtsmychart.com/#/login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2AA87881-F601-4A6E-AF02-C1EFE5455AE6/7f778213ae8f380643f520caa0d4fa12.png\",\n    \"name\": \"Boys Town\",\n    \"slgId\": \"575-7\",\n    \"url\": \"https://www.myboystown.org/login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DBDF7C54-D184-4F55-8FD9-0FB7E44D8FFF/bdddae6d7d385e9491c4dadc91739d96.png\",\n    \"name\": \"Metro Imaging\",\n    \"slgId\": \"575-8\",\n    \"url\": \"https://mychart.metroimaging.org/app/login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/67AFD048-AC33-43F2-BAF6-68FD6376E63C/3105102222fc19fbbc1cadb500e6d4d0.png\",\n    \"name\": \"Cooper\",\n    \"slgId\": \"578\",\n    \"url\": \"https://my.cooperhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/custom/myMercy.png\",\n    \"name\": \"Mercy\",\n    \"slgId\": \"580\",\n    \"url\": \"https://www.mymercy.net/#/login\"\n  },\n  {\n    \"aliases\": [\n      \"University\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8D706906-7091-41AB-A566-4114E029BC43/01af5a56ce15c5e8ee695aba5d63af3e.png\",\n    \"name\": \"UT Medicine San Antonio\",\n    \"slgId\": \"582\",\n    \"url\": \"https://mychart.utmedicinesa.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Sound Family Medicine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/77AE67F2-7609-41B7-B29A-D5C4853F06F0/dd8023a950bd591a5f52a552fa5eef37.png\",\n    \"name\": \"Optum Care Washington\",\n    \"slgId\": \"584\",\n    \"url\": \"https://www.myhealthchart.com/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Uiowa\",\n      \"University\",\n      \"UIHC\",\n      \"University of Iowa Health Care\",\n      \"University of Iowa\",\n      \"Iowa Health Care\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/107E0750-CD77-4984-8BA6-FE1BF09114CB/770f185439c64560d23ea9df74faff3d.png\",\n    \"name\": \"UIHC\",\n    \"slgId\": \"592\",\n    \"url\": \"https://mychart.uihealthcare.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"ISH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/893E9FF5-F0AD-418C-9B67-6A04ADF173DD/d4f3094c9ca13ced956971c68f0665e6.png\",\n    \"name\": \"Iowa Specialty Hospitals and Clinics\",\n    \"slgId\": \"592-1\",\n    \"url\": \"https://mychart.uihealthcare.org/ish//\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B17DC221-4E41-4C3F-9B6E-66176687CAA7/83c2aa00d305bfbbf70420e25378ed70.png\",\n    \"name\": \"Cass County Health System\",\n    \"slgId\": \"592-2\",\n    \"url\": \"https://mychart.uihealthcare.org/cchs/\"\n  },\n  {\n    \"aliases\": [\n      \"WMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F595ED27-AAB5-4899-97C3-C174FFAC1C37/705abbc9a93046e2a5a58d8d0d2052b8.png\",\n    \"name\": \"Winneshiek Medical Center\",\n    \"slgId\": \"592-3\",\n    \"url\": \"https://mychart.uihealthcare.org/winmedical/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ACAA61E3-FBCB-4587-9F59-9C4C48A86225/3a2449e908b31a38c3e9c0270227bfe5.png\",\n    \"name\": \"Myrtue Medical Center\",\n    \"slgId\": \"592-4\",\n    \"url\": \"https://mychart.uihealthcare.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1B9FB4CA-6891-4AF7-A540-BBFB0AA49B99/9d78a4e053d19dce68871b59a76d4c9f.png\",\n    \"name\": \"Jefferson County Health Center\",\n    \"slgId\": \"592-5\",\n    \"url\": \"https://mychart.uihealthcare.org/JCHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8AAE9088-14D7-40E4-9693-7B2A1565DC3A/1f5f8bdbe02a27aaf6ea0a209c798f31.png\",\n    \"name\": \"Van Buren County Hospital\",\n    \"slgId\": \"592-6\",\n    \"url\": \"https://mychart.uihealthcare.org/vbch/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/01BDE635-2788-43A1-B03C-B42457AF418F/9188555afc72941d20a92e59ef4b4e08.png\",\n    \"name\": \"Audubon County Memorial Hospital & Clinics\",\n    \"slgId\": \"592-7\",\n    \"url\": \"https://mychart.uihealthcare.org/ACMH/\"\n  },\n  {\n    \"aliases\": [\n      \"WCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1A071253-19A2-4ECB-8FDE-8D52EEE3EEDA/f2ddb2185c3a6719f79d922b323c374e.png\",\n    \"name\": \"Washington County Hospital and Clinics\",\n    \"slgId\": \"592-8\",\n    \"url\": \"https://mychart.uihealthcare.org/wchc/\"\n  },\n  {\n    \"aliases\": [\n      \"VMH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C2DBEAA3-8442-42F9-A405-0E7733427DFB/4ea7005da4ec281459a1c7cf3af063d3.png\",\n    \"name\": \"Veterans Memorial Hospital\",\n    \"slgId\": \"592-9\",\n    \"url\": \"https://mychart.uihealthcare.org/VMH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/765ADE35-B76B-413F-91E2-335D98938E6D/d734c86fa40871c7ce06f7d314c52d4f.png\",\n    \"name\": \"Waverly Health Center\",\n    \"slgId\": \"592-10\",\n    \"url\": \"https://mychart.uihealthcare.org/Waverly/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/11CEBD0A-0DE0-4858-98EE-2B6842360A4C/21e448163e395b2e25f445f932174753.png\",\n    \"name\": \"Children's Health\",\n    \"slgId\": \"594\",\n    \"url\": \"https://mychart.childrens.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/29E5112F-3E84-455F-A45D-3791ED85ED8B/aa8ae18072ca53cc154f6d461638fa1c.png\",\n    \"name\": \"OSF HealthCare\",\n    \"slgId\": \"596\",\n    \"url\": \"https://www.osfmychart.org/osfmychart/\"\n  },\n  {\n    \"aliases\": [\n      \"CCSI\",\n      \"Cancer Care\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A83AE072-F921-480B-AB0C-FEF78E4C23B2/88fe7fb82bddbaf5d2999fe01250d629.png\",\n    \"name\": \"CancerCare Specialists\",\n    \"slgId\": \"596-3\",\n    \"url\": \"https://mychart.pchosted.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/84BCC9D1-6DC6-486D-8730-BC483AA3C49C/e1f0e7014e9941c2c186e3ec26909fbf.png\",\n    \"name\": \"Hannahville Indian Community Health and Human Services\",\n    \"slgId\": \"596-5\",\n    \"url\": \"https://hicmychart.org/hannahville/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"RCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/75881119-0691-4094-A3CA-303EFB86A8F3/7998d66c4c9f2f3f236947f48f58c657.png\",\n    \"name\": \"Rochelle Community Hospital\",\n    \"slgId\": \"596-7\",\n    \"url\": \"https://rch-mychart.pchosted.com/Rochelle/\"\n  },\n  {\n    \"aliases\": [\n      \"WGH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B2AF9CC9-3FEB-4B58-881B-1C6BDEF9DD8F/0b346aad78123fce3e90cbd800b3341e.png\",\n    \"name\": \"Wabash General Hospital\",\n    \"slgId\": \"596-8\",\n    \"url\": \"https://wghmychart.com/Wabash/\"\n  },\n  {\n    \"aliases\": [\n      \"HHSIL\",\n      \"HHS\",\n      \"HCHC\",\n      \"Heartland Clinic\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B99B6C94-82F8-4062-B53D-C7AB27A6CF71/34a4daef6fd6782b5170561a3f13e665.png\",\n    \"name\": \"Heartland Health Services\",\n    \"slgId\": \"596-9\",\n    \"url\": \"https://hhsilmychart.com/HHSIL/\"\n  },\n  {\n    \"aliases\": [\n      \"Schwab Rehab\",\n      \"SMG\",\n      \"Holy Cross Hospital\",\n      \"Mount Sinai Hospital\",\n      \"Mt Sinai Hospital\",\n      \"One Lawndale\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7965D0A5-FB51-4971-B827-AC2E1C2FDAA6/6b6b8007c14376760091c2a71137c70a.png\",\n    \"name\": \"Sinai Chicago\",\n    \"slgId\": \"596-10\",\n    \"url\": \"https://mysinaichicago.org/SinaiChicago/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/27263DF2-3A60-4915-B368-3A81DC26A684/c9985996009f5919ec785c1c2f815a00.png\",\n    \"name\": \"Salem Township Hospital\",\n    \"slgId\": \"596-11\",\n    \"url\": \"https://www.sthmychart.org/Salemtownshiphospital/\"\n  },\n  {\n    \"aliases\": [\n      \"CFM\",\n      \"Complete Family Medicine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7F8D03F1-DE7F-4847-AE86-13DE8D916874/eedef719681c679ff0acd8c01d44b018.png\",\n    \"name\": \"Hannibal Regional Healthcare System\",\n    \"slgId\": \"596-12\",\n    \"url\": \"https://www.myhannibalregional.org/HRHSMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/54646AF7-7FCB-40F3-B680-F4EEBF80CCA8/b34c51efde0987dcd9c62f9d7b92d264.png\",\n    \"name\": \"Leon Medical Centers\",\n    \"slgId\": \"598\",\n    \"url\": \"https://www.leonmediconnect.com/myChartLeonMediConnect/\"\n  },\n  {\n    \"aliases\": [\n      \"VA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2399C6C7-71CD-4463-B5CB-A70931EE17B1/edce0cedb3fa0b2c57a89d9fd4be3b60.png\",\n    \"name\": \"Carilion Clinic\",\n    \"slgId\": \"600\",\n    \"url\": \"https://mychart.carilionclinic.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Vernon\",\n      \"Gundersen\",\n      \"Bellin Health\",\n      \"Gundersen Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8FE41241-AA60-40F2-B230-8865DFA77207/895f8ce02bc15c59f08b03ee1de97b29.png\",\n    \"name\": \"Emplify Health\",\n    \"slgId\": \"605\",\n    \"url\": \"https://mychart.emplifyhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5F8B2E89-EC0D-421E-8984-0F5A993D2961/b4ad571683b16a57d04183a0b7fbde4b.png\",\n    \"name\": \"Vernon Memorial Healthcare\",\n    \"slgId\": \"605-1\",\n    \"url\": \"https://www.vmhmychart.org/vmh/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9CCCEF38-0478-4BC2-A23C-4C9F72C8FA49/60a508209265099c2fa3a36d74ba8aca.png\",\n    \"name\": \"Tomah Health\",\n    \"slgId\": \"605-2\",\n    \"url\": \"https://mychart.gundersenhealth.org/tmh/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0620BEB2-BF49-434E-9230-7BC71FA8AC33/ddd7f69a9053f8c5dc3201202f5cb347.png\",\n    \"name\": \"Crossing Rivers Health\",\n    \"slgId\": \"605-3\",\n    \"url\": \"https://mychart.crossingrivers.org/CRH/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/370D653B-F699-4821-AA2E-3A328DE92DF3/d99be10261517a16f58aec1a5da20712.png\",\n    \"name\": \"NorthEast Wisconsin Community Clinic\",\n    \"slgId\": \"605-4\",\n    \"url\": \"https://mychart.emplifyhealth.org/newcc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FBC393CB-FFA1-4E7B-AFC1-F1CBB1AB0891/d3dbd299ad32f623ff2e06bd2ef16a7f.png\",\n    \"name\": \"Urology Associates of Green Bay\",\n    \"slgId\": \"605-5\",\n    \"url\": \"https://mychart.emplifyhealth.org/uagb/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2FE3EA15-67C3-4AD6-B0FD-08B466E30056/905997d16ccbdf3529110ca683d4d8eb.png\",\n    \"name\": \"Unity\",\n    \"slgId\": \"605-6\",\n    \"url\": \"https://mychart.emplifyhealth.org/unity/\"\n  },\n  {\n    \"aliases\": [\n      \"Seders\",\n      \"Foothill Cardiology\",\n      \"Marina Hospital\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C835A918-CEA4-4A64-A9B5-A2C33D1E6B46/6fee18fce7850edfade671b6219bffb7.png\",\n    \"name\": \"Cedars-Sinai\",\n    \"slgId\": \"612\",\n    \"url\": \"https://patients.mycslink.org/mycslink/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/41FEF58C-8AAB-4358-AD0D-6AB0DAE27664/7aabdc975a3d7ec0be78e42d52bd7ab8.png\",\n    \"name\": \"Huntington Hospital\",\n    \"slgId\": \"612-1\",\n    \"url\": \"https://mycslink.cedars-sinai.org/mycslink/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"SMGS\",\n      \"Maryville\",\n      \"Francis\",\n      \"Dean\",\n      \"Monroe\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BBB11DF9-0909-4C61-9426-47E76373AFD4/5f07a715f751ed497cb3420a88fb54c9.png\",\n    \"name\": \"SSM Health\",\n    \"slgId\": \"618\",\n    \"url\": \"https://mychart.ssmhc.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"SG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EBB0A3BB-2087-4C54-8D76-9F104DD50CF5/16c93f72b69b90d613f57b543fba5be8.png\",\n    \"name\": \"Spaarne Gasthuis\",\n    \"slgId\": \"621\",\n    \"url\": \"https://www.mijnspaarnegasthuis.nl/MyChart_PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/46D5BF57-A9C2-4DE8-8C5F-DB0F0DC7B964/83ebcf05621dab1633b1f07ceaea3286.png\",\n    \"name\": \"UK King's Daughters\",\n    \"slgId\": \"631\",\n    \"url\": \"https://mychart.kdmc.net/MyChartPRODUCTION/\"\n  },\n  {\n    \"aliases\": [\n      \"Lincoln\",\n      \"NorDx\",\n      \"Pen Bay\",\n      \"Spring Harbor\",\n      \"St. Andrews\",\n      \"Synernet\",\n      \"Waldo\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5D863D48-5733-49C7-BF7B-2774228DA235/7aeae230b0382e123a0e3ce3bec7196f.png\",\n    \"name\": \"MaineHealth\",\n    \"slgId\": \"633\",\n    \"url\": \"https://mychart.mainehealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/72BEB453-FE00-432E-9E77-79468DAB336C/ff638a446864070cea27c02de8808cd5.png\",\n    \"name\": \"Rady Children's\",\n    \"slgId\": \"637\",\n    \"url\": \"https://www.mychartatradychildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"CVMC\",\n      \"CVPH\",\n      \"PMC\",\n      \"UVMHN\",\n      \"Fletcher Allen\",\n      \"FAHC\",\n      \"UVMMC\",\n      \"UVMH\",\n      \"UVM Health\",\n      \"UVMHealth\",\n      \"AHMC\",\n      \"ECH\",\n      \"HelenPorter\",\n      \"Porter\",\n      \"Alice Hyde\",\n      \"Elizabethtown\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/278ED610-FD31-41CE-AABD-2F10868BD947/cc8fc689b89141208da850dbe3575652.png\",\n    \"name\": \"University of Vermont Health Network\",\n    \"slgId\": \"639\",\n    \"url\": \"https://mychart.uvmhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SCLHS,SCL,SCL Health\",\n      \"SCLHS\",\n      \"SCL\",\n      \"SCL Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9015E058-3F3E-4311-828C-29C6AAC87479/d3a100469b462ab6dd5df6da59e7eda4.png\",\n    \"name\": \"Intermountain Health\",\n    \"slgId\": \"645\",\n    \"url\": \"https://mychart.intermountainhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4CEE1A4C-3CD3-4FBE-8009-EF1C1F00BAA2/5ffbd6a7c09359fd2e5beb7f7fbac2d4.png\",\n    \"name\": \"Cody Regional Health\",\n    \"slgId\": \"645-1\",\n    \"url\": \"https://mychart.sclhealth.org/CCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DEA44526-003B-4A4C-ACA2-87CDB626E9E9/2baa46ef57deb81ca03f16357c1b8d77.png\",\n    \"name\": \"Uptown Community Health Center\",\n    \"slgId\": \"645-4\",\n    \"url\": \"https://mychart.sclhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DA887866-9F39-419C-AE95-2AE14D5C71CA/bbad2175f84b4be9aa1e1f78f1acdcf6.png\",\n    \"name\": \"Memorial Regional Health\",\n    \"slgId\": \"645-5\",\n    \"url\": \"https://mychart.sclhealth.org/CCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/69F142A9-2C9B-40B7-9577-79C923A0EB72/3f9c39680ad0c3081bb58850c774d8ba.png\",\n    \"name\": \"Billings OBGYN\",\n    \"slgId\": \"645-6\",\n    \"url\": \"https://mychart.sclhealth.org/CCMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NJH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E90619C5-AD4B-4AE9-84A0-B1ADB69AADFF/daab3aac5793458d4c728ad378c35d3d.png\",\n    \"name\": \"National Jewish Health\",\n    \"slgId\": \"645-7\",\n    \"url\": \"https://mychart.sclhealth.org/CCMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SPH\",\n      \"Saint Peter's\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E6A825E4-5DC9-4794-B0AA-9364F42B273A/40d0aaf11bbf3724bfaee7577e4a2e10.png\",\n    \"name\": \"St. Peter's Health\",\n    \"slgId\": \"645-8\",\n    \"url\": \"https://mychart.sclhealth.org/CCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C76B7047-156D-4635-AC9E-5FEB669BF00A/7afb70e20fb4a92b2bcc075e1e6f226b.png\",\n    \"name\": \"Family Health West\",\n    \"slgId\": \"645-9\",\n    \"url\": \"https://mychart.sclhealth.org/CCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/60E01898-B245-4B08-A694-223AC79887D8/243cb10563937e8110f9e8f4a2e7778d.png\",\n    \"name\": \"Franciscan Alliance\",\n    \"slgId\": \"648\",\n    \"url\": \"https://franciscanmychart.org/Mychart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/520C14EC-91DD-46D9-AE4D-CE5788B04B80/79b26f5c77f70ff6761793e8c0014ee9.png\",\n    \"name\": \"Specialty Physicians of Illinois\",\n    \"slgId\": \"648-2\",\n    \"url\": \"https://spimychart.com/spimychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DA3DE8B4-971A-4436-926A-CEDF9C6CA778/1b2eaceb8131bd6104e458b7f45ed345.png\",\n    \"name\": \"Franciscan HealthConnect\",\n    \"slgId\": \"648-3\",\n    \"url\": \"https://franciscanmychart.org/HCC/\"\n  },\n  {\n    \"aliases\": [\n      \"NM\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/91B185AB-7DFE-4965-8344-EFC077935EDE/f06821151da4e846502826c030f80b07.png\",\n    \"name\": \"Northwestern Medicine\",\n    \"slgId\": \"650\",\n    \"url\": \"https://mychart.cdh.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"LRMC\",\n      \"LHA\",\n      \"Corewell Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6A9C528D-5BDF-4842-896D-520644B00DB2/dba71dfaf00f4b49d5144e6fb466afb2.png\",\n    \"name\": \"Lakeland HealthCare\",\n    \"slgId\": \"652\",\n    \"url\": \"https://mychart.lakelandregional.org/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/98703C3A-1EFF-4725-A69B-1F4854E90C4A/b0710d51a321e1636bd830bf31c966ee.png\",\n    \"name\": \"The Christ Hospital\",\n    \"slgId\": \"655\",\n    \"url\": \"https://www.thechristhospitalmychart.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"MSMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4BFF9297-4233-492A-84F7-F1256C553DAE/e68eb0cbb90fc1dc2394fdeca09d96fa.png\",\n    \"name\": \"Mount Sinai Florida\",\n    \"slgId\": \"658\",\n    \"url\": \"https://mychart.msmc.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Fox Chase\",\n      \"FoxChase\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ECBB1096-EFCC-437A-96EE-1F22E7CB53DB/ca30f4d7babe55b241b92608b91a7ff5.png\",\n    \"name\": \"TempleHealth\",\n    \"slgId\": \"660\",\n    \"url\": \"https://my.templehealth.org/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2D1263C9-A487-4F71-9EF2-329DBE9CA7FA/c4b7f415751acb59f0bdb1fc04f4438e.png\",\n    \"name\": \"Baylor\",\n    \"slgId\": \"663\",\n    \"url\": \"https://mychart.bcm.edu/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E359F4C6-159A-4EF8-A72A-7FE95EE7FC34/3989fc5af49d94ff6431854a239159f1.png\",\n    \"name\": \"Onvida\",\n    \"slgId\": \"665\",\n    \"url\": \"https://mycare.onvidahealth.org/mycare/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E50DDAF0-6BF3-4C55-BD69-6564C71D7A5B/a33edcf008cada7ff08b59e879ebb960.png\",\n    \"name\": \"Community Medical Centers\",\n    \"slgId\": \"668\",\n    \"url\": \"https://mychart.communitymedical.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E5150F9A-AF19-48CA-AF14-D0A8EA1F3140/597baa537a89d1662134c0c14c8f40c0.png\",\n    \"name\": \"Legacy Health System\",\n    \"slgId\": \"671\",\n    \"url\": \"https://myhealth.lhs.org/myhealth/\"\n  },\n  {\n    \"aliases\": [\n      \"UFHealth\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/398B304C-2708-4EA5-8E84-CA2CA2147E67/3fdae5a9e666e3cb68dec643e55d563b.png\",\n    \"name\": \"University of Florida\",\n    \"slgId\": \"677\",\n    \"url\": \"https://mychart.shands.org/mychartprd/\"\n  },\n  {\n    \"aliases\": [\n      \"McFarland\",\n      \"MFC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1D50C3B1-524F-4649-89C5-AAE635877933/16ff9f3dc0c3bedbf0a2afa8ee0fc214.png\",\n    \"name\": \"Health Ventures\",\n    \"slgId\": \"682\",\n    \"url\": \"https://www.mychartiowa.com/mychartprd/\"\n  },\n  {\n    \"aliases\": [\n      \"SHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ED36D834-A8D1-472F-AA30-B6F68CE65351/aed8fa182b9724c832840cadbd110b64.png\",\n    \"name\": \"University of Michigan Health-Sparrow\",\n    \"slgId\": \"684\",\n    \"url\": \"https://mychart.sparrow.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/211B76F5-67A1-48D2-89BD-0ACE0E09500F/3f2d3b8cd3e38177de38e94479a78f61.png\",\n    \"name\": \"Driscoll Children's Hospital\",\n    \"slgId\": \"686\",\n    \"url\": \"https://mychart.dchstx.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"luminis\",\n      \"Anne Arundel\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FE3757AE-90F5-442B-B5F6-258034AADF04/78ed38fa40a80f0cb9e1322e68ba6eeb.png\",\n    \"name\": \"Luminis Health\",\n    \"slgId\": \"688\",\n    \"url\": \"https://mychart.aahs.org/MyChart/default.asp\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AFB84EEC-5518-4972-91DA-7BE72AB56D83/43529dd660e981794f17b9fd30f5586b.png\",\n    \"name\": \"Akron Children's\",\n    \"slgId\": \"691\",\n    \"url\": \"https://mychart.akronchildrens.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0110F175-16F7-4119-BA43-6D1A65A2CDFE/b9a912e72d5cd3099b2193dc3e0d7873.png\",\n    \"name\": \"Summit County Public Health\",\n    \"slgId\": \"691-2\",\n    \"url\": \"https://mychart.akronchildrens.org/SCPH/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/592F912D-86D7-4B06-BE25-F116FB958DE6/fcd669eccb105f035792c2fd093ae310.png\",\n    \"name\": \"Child Guidance and Family Solutions\",\n    \"slgId\": \"691-3\",\n    \"url\": \"https://mychart.akronchildrens.org/CGFS/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"IHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0AA8401E-40F9-40B3-BC8D-10D1883DD3A0/f4e6e80ff3fba7ee3d6ca1a7998e0a3f.png\",\n    \"name\": \"Infirmary\",\n    \"slgId\": \"694\",\n    \"url\": \"https://www.myihchart.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/474E32F6-E1F3-45D2-8CA2-4B56431CD940/6b0d1c653b794698b2f95b7baacfdc90.png\",\n    \"name\": \"OLVG\",\n    \"slgId\": \"696\",\n    \"url\": \"https://www.mijnolvg.nl/mychart-prd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D4BEDA44-408B-44E1-9E5F-3C7E1332E3F8/fe909d8a3aee8022193cbddd8aa74987.png\",\n    \"name\": \"Hackensack Meridian Health\",\n    \"slgId\": \"701\",\n    \"url\": \"https://mychart.hmhn.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Memorial\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BA6EAC96-2856-4A0B-8763-E7DB6E21720D/8b75a971dc8a5a4baee0d2b3125e21a5.png\",\n    \"name\": \"Deaconess\",\n    \"slgId\": \"703\",\n    \"url\": \"https://www.viewmychart.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/93B8D786-EC37-46F5-8D6F-50774943CB6B/4c9b0955864988b6aa4dc425526e356e.png\",\n    \"name\": \"Good Samaritan\",\n    \"slgId\": \"703-1\",\n    \"url\": \"https://www.viewmychart.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Maricopa\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/20CF9756-DEE9-4B13-B08E-ED7492A5BD74/6375af2575da800a25b10602b79ee97c.png\",\n    \"name\": \"Valleywise\",\n    \"slgId\": \"706\",\n    \"url\": \"https://mychart.valleywisehealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/21A7DB9D-69B8-4164-A7BC-EC6E9D0993CE/8985a9076eaf7627f332177dd97e3dd8.png\",\n    \"name\": \"St. Elizabeth Healthcare\",\n    \"slgId\": \"712\",\n    \"url\": \"https://mychart.stelizabeth.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9EFF94E0-DEF8-421C-AF64-C45A80F5A1A1/97e1deb2631e9dca183137bd92f3db86.png\",\n    \"name\": \"Hendricks Regional Health\",\n    \"slgId\": \"712-2\",\n    \"url\": \"https://mychart.hendricks.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Coal Country Community Health Center\",\n      \"Dakota Regional Medical Center\",\n      \"First Care Health Center\",\n      \"Heart of America Medical Center\",\n      \"Langdon Prarie Health\",\n      \"LifeCare Medical Center\",\n      \"Nelson County Health\",\n      \"North Valley Health Center\",\n      \"Northwood Deaconess Health Center\",\n      \"Pembina County Memorial Hospital\",\n      \"Sakakawea Medical Center\",\n      \"Spectra Health\",\n      \"St. Luke’s Medical Center\",\n      \"Tioga Medical Center\",\n      \"Towner County Medical Center\",\n      \"Unity Medical Center\",\n      \"Langdon Prairie Health\",\n      \"Headwaters Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/55ED4CFD-4147-4673-879C-C17364D1D8C4/bc8b0f5dbd4df7221c9bbe4ee0600bd3.png\",\n    \"name\": \"Altru\",\n    \"slgId\": \"714\",\n    \"url\": \"https://mychart.altru.org/myhealth/\"\n  },\n  {\n    \"aliases\": [\n      \"Community Memorial Hospital\",\n      \"Cloquet\",\n      \"Raiter Family Clinic\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/903F3FCB-61AC-47DE-BFE3-7B294D0E2E97/5c9b10b4bdddbea66476c76b86426bff.png\",\n    \"name\": \"CMH\",\n    \"slgId\": \"714-2\",\n    \"url\": \"https://mychart.cmhmn.org/cmh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D3924E01-4465-4C6D-B757-E129E4A51E32/3bd574239be9067a47a37a1ade9ac640.png\",\n    \"name\": \"NYU Langone\",\n    \"slgId\": \"718\",\n    \"url\": \"https://mychart.nyulmc.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7DFF2013-647B-4194-9722-AE6C5E77EA1A/ff778ea23b18a3c160a9ff0c88c2e570.png\",\n    \"name\": \"Dartmouth\",\n    \"slgId\": \"722\",\n    \"url\": \"https://www.mydh.org/portal/\"\n  },\n  {\n    \"aliases\": [\n      \"Spectrum Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/52F5962D-E151-4CD5-BB5C-89CC80F7E4EF/5fc3cd3355449e8ce6fa46e4b5a63f11.png\",\n    \"name\": \"Corewell Health\",\n    \"slgId\": \"733\",\n    \"url\": \"https://mychart.spectrumhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ACBA36B5-D115-4A6F-B3F9-32077E061D28/55b2d95cbacfbcd9ceeadb982524a681.png\",\n    \"name\": \"Genesis\",\n    \"slgId\": \"735\",\n    \"url\": \"https://mychart.genesishcs.org/mychart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BE9C251E-2E1D-443C-AFF3-F8FE0F4B6075/be1723d491c964bc2be38f977a3f4ab0.png\",\n    \"name\": \"University of Virginia\",\n    \"slgId\": \"737\",\n    \"url\": \"https://mychart.healthsystem.virginia.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Hamilton County Public Health\",\n      \"CHP\",\n      \"Community\",\n      \"CMHP\",\n      \"Springfield\",\n      \"Humility\",\n      \"HMHP\",\n      \"Lourdes\",\n      \"Marcum\",\n      \"St. Joseph\",\n      \"St. Rita\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2BFEA94B-589A-4695-81AB-9D3D9CFBA3A7/2289de894db1e4ad5e83680a78c33789.png\",\n    \"name\": \"Mercy Health\",\n    \"slgId\": \"742\",\n    \"url\": \"https://chpepiceweb.health-partners.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/761372B4-6EB5-4993-9DBE-7C41706BE1D4/d3abe80fb22ead4b124ef7aa5ce8bd8f.png\",\n    \"name\": \"Wyandot Memorial Hospital\",\n    \"slgId\": \"742-4\",\n    \"url\": \"https://chpepiceweb.health-partners.org/MyChart\"\n  },\n  {\n    \"aliases\": [\n      \"Bon Secours\",\n      \"Greenville\",\n      \"Hampton Roads\",\n      \"Urology of Virginia\",\n      \"UVA\",\n      \"Richmond\",\n      \"Grove\",\n      \"Ditty\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/657EA875-EC52-4C4D-948C-955513172FCD/229cec6c5f83912351bd09fde56867e9.png\",\n    \"name\": \"Bon Secours Health System\",\n    \"slgId\": \"742-5\",\n    \"url\": \"https://mychart.bonsecours.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Boeing\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BE234A57-A6ED-4313-A0ED-28239B2ED68E/20b1a78b0dbc0488e91c9783f2413426.png\",\n    \"name\": \"Roper St. Francis\",\n    \"slgId\": \"742-6\",\n    \"url\": \"https://mychart.rsfh.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Bangor\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3BFB43C5-7147-4A09-AF05-14A91CE2A04F/d374f10bd77a33de25d29dec57cd211d.png\",\n    \"name\": \"Covenant Health\",\n    \"slgId\": \"742-7\",\n    \"url\": \"https://mychart.covh.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/21DF9195-B18F-415B-B7C9-E03C8B087651/3a6b6a0e9657403fd4cef49664aae050.png\",\n    \"name\": \"Chesapeake Regional Healthcare\",\n    \"slgId\": \"742-8\",\n    \"url\": \"https://mychart.chesapeakeregional.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Harness Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/37F6E802-D4E0-4F65-90DF-841CF9AF3FBB/e47a587f707b1257dd717283a8adee43.png\",\n    \"name\": \"Harness Health Pharmacy\",\n    \"slgId\": \"742-9\",\n    \"url\": \"https://chpepiceweb.health-partners.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/07C7A4A5-5A72-46F7-AECD-EE56F463EA08/12565453d8efe19743ae75d34be62953.png\",\n    \"name\": \"University of Miami\",\n    \"slgId\": \"747\",\n    \"url\": \"https://myuhealthchart.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AD66ED55-FD15-4CAC-A2F1-5E0A6B91D69F/a2f679b02dbb3a6ab1f2f6c0653cbf36.png\",\n    \"name\": \"Grady Health System\",\n    \"slgId\": \"748\",\n    \"url\": \"https://mychart.gradyhealth.org/mychart\"\n  },\n  {\n    \"aliases\": [\n      \"Pain Relief of Dayton\",\n      \"Pulmonary Critical Care and Sleep Medicine Associates LLC\",\n      \"Shiloh Family Medicine\",\n      \"Pulmonary Medicine of Dayton Inc\",\n      \"Springfield Heart Surgeons LLC\",\n      \"Cova OBGYN LLC\",\n      \"Scheidler Health Associates LLC\",\n      \"Total Health and Wellness OBGYN LLC\",\n      \"Dayton Springfield Heart and Vascular Medicine\",\n      \"Western Avenue Family Practice LLC\",\n      \"Gastrocare of Southwest Ohio LLC\",\n      \"Good Neighbor House\",\n      \"Brigid's Path\",\n      \"Dayton Kidney\",\n      \"Diabetes and Endocrinology Specialists of Southwestern Ohio\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0130089D-C56F-4761-A70D-65C4F88668C4/9eda43784d9dc6ab9cce742e818001ac.png\",\n    \"name\": \"Kettering\",\n    \"slgId\": \"749\",\n    \"url\": \"https://mychart.ketteringhealth.org/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4D16C807-AF3F-42AA-BB98-006C3410C763/d4c55d682e2740fb6431b332ee4cea52.png\",\n    \"name\": \"Powers Health\",\n    \"slgId\": \"750\",\n    \"url\": \"https://mychart.powershealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Highland\",\n      \"Strong Memorial\",\n      \"URMC\",\n      \"UR Medicine\",\n      \"Jones\",\n      \"St. James\",\n      \"Noye\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3AEAAF21-B7F8-4D76-B35F-2BC8D260D9A4/1e40fd1b6097546493ea557dbe947368.png\",\n    \"name\": \"University of Rochester\",\n    \"slgId\": \"751\",\n    \"url\": \"https://mychart.urmc.rochester.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Upstate\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E16EAD55-CF6B-447B-997D-85A74DE4BC3E/435522108c4c28207fe0714bc1f7dd7d.png\",\n    \"name\": \"SUNY\",\n    \"slgId\": \"753\",\n    \"url\": \"https://mychart.upstate.edu/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"University of Colorado Health\"\n    ],\n    \"directoryUrl\": \"https://www.uchealth.org/access-my-health-connection/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A2A9A284-29D2-45D1-8F3A-153B2D6A58A9/3facfb253594172257a07d169f497ef9.png\",\n    \"name\": \"UCHealth\",\n    \"slgId\": \"755\",\n    \"url\": \"https://mychart.uchealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SummitStone\",\n      \"Health\",\n      \"Partners\",\n      \"HealthPartners\",\n      \"Summit\",\n      \"Stone\",\n      \"UCH\",\n      \"UCHealth\",\n      \"Sheridan Health Services\",\n      \"Belleview Point Clinic\",\n      \"Bellview Point Clinic\",\n      \"RWMC\",\n      \"RWHS\",\n      \"RWPC\",\n      \"Regional\",\n      \"West\",\n      \"Scottsbluff\",\n      \"airlink\",\n      \"RWEMS\",\n      \"regionalwest\",\n      \"Regional West\",\n      \"GNVH\",\n      \"GVH\",\n      \"Gunnison\",\n      \"Valley\",\n      \"Gunnison Valley\",\n      \"CCH\",\n      \"Campbell County Hospital\",\n      \"Campbell\",\n      \"Campbell County Medical Group\",\n      \"campbellcounty\",\n      \"SCHR\",\n      \"Surgery Center of Highlands Ranch\",\n      \"Highlands\",\n      \"Ranch\",\n      \"SCOHR\",\n      \"SCA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DD42AC11-992A-4DED-9E66-8DCA82D339EC/e3f97a04666cc003bc44e36955a2292a.png\",\n    \"name\": \"UCHealth Affiliated Clinics and Hospitals MyChart\",\n    \"slgId\": \"755-1\",\n    \"url\": \"https://mychart.uchealth.org/Affiliates/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"OCR\",\n      \"orthopedic\",\n      \"rockies\",\n      \"OSCR\",\n      \"and\",\n      \"centers\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/84A43BB0-DFC6-4B82-9AFC-17374AD3AA6F/4651e381562e2b031362f4a6c97f7fd0.png\",\n    \"name\": \"Orthopaedic & Spine Center of the Rockies\",\n    \"slgId\": \"755-2\",\n    \"url\": \"https://mychart.connect.orthohealth.com/ocr/\"\n  },\n  {\n    \"aliases\": [\n      \"valleyviewhospital\",\n      \"valleyview\",\n      \"valleyviewhealth\",\n      \"vvh\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BBF4406C-291B-4EF8-9EEC-5F499311645C/37f7333c81a9b94111ab3a9526a2160c.png\",\n    \"name\": \"Valley View Hospital\",\n    \"slgId\": \"755-3\",\n    \"url\": \"https://mychart.connect.vvh.org/vvh/\"\n  },\n  {\n    \"aliases\": [\n      \"VailHealth\",\n      \"Vail\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B4DE327A-01B1-4CAE-87E9-25EABF7F287E/e21bde293699b3852894002f50464709.png\",\n    \"name\": \"Vail Health\",\n    \"slgId\": \"755-4\",\n    \"url\": \"https://mychart.portal.vailhealth.org/vail/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A61A26F5-F784-4F4E-AA1C-B0697994CADD/3d9e6c65b7b672eb8e019614ccf55e5a.png\",\n    \"name\": \"Providence, Alaska\",\n    \"slgId\": \"758\",\n    \"url\": \"https://mychartak.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E6EB5D3E-9E35-46C1-9CFB-4D66E501B744/9be6431d7cad1db67eec4a30fec322a3.png\",\n    \"name\": \"Central Peninsula Hospital\",\n    \"slgId\": \"758-2\",\n    \"url\": \"https://ak.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/35D312CF-84C5-4EC9-B701-2D3AA9C65DED/1b1d92e0e8d4d74a41944b3a5ed71ac6.png\",\n    \"name\": \"Alaska Neurology Center\",\n    \"slgId\": \"758-3\",\n    \"url\": \"https://mychartak.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/471F82D3-15A8-47FE-89DB-458507E89209/ee862ea38d32ac82ef92ca38698dcbd9.png\",\n    \"name\": \"Anchorage Neighborhood Health Center\",\n    \"slgId\": \"758-4\",\n    \"url\": \"https://ak.myonlinechart.org/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/91866C5F-E486-45D2-83CF-203CAA3EA0D9/230dee51190884422f1c114f286a1660.png\",\n    \"name\": \"Seward Community Health Center\",\n    \"slgId\": \"758-5\",\n    \"url\": \"https://ak.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A615067B-3A26-4E68-B6D0-7225DAB08D96/18faab404a1b3fc446be7963a99f59bd.png\",\n    \"name\": \"Anchorage Neurosurgical Associates\",\n    \"slgId\": \"758-6\",\n    \"url\": \"https://ak.myonlinechart.org/affiliate/authentication/login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/82B4A5FF-F481-479C-AC39-10A4CDD934C3/59dfe3f24aba26fa4869b854411fc444.png\",\n    \"name\": \"South Peninsula Hospital\",\n    \"slgId\": \"758-8\",\n    \"url\": \"https://ak.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A05C7056-537D-4C37-B087-E711ED6D735B/fd7eb1947599d9e4eaa9a90f539475cb.png\",\n    \"name\": \"Vancouver Clinic\",\n    \"slgId\": \"759\",\n    \"url\": \"https://mychart.tvc.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"TGH\",\n      \"TGMG\",\n      \"Bayshore\",\n      \"Kennedy\",\n      \"Healthpark\",\n      \"Brandon\",\n      \"Lois\",\n      \"University of South Florida\",\n      \"USF\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/81CA6B45-88CA-4DAD-B447-0F2DF3104384/8b53d2d2d63653276ef119b3ca6c14bd.png\",\n    \"name\": \"Tampa General Hospital\",\n    \"slgId\": \"761\",\n    \"url\": \"https://mychart.tgh.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"USF\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7ECAA2A5-C10F-4A3D-ADA0-7E3A86C5C00F/070dbb6c5a167b66bd65f280d1dc4eec.png\",\n    \"name\": \"University of South Florida\",\n    \"slgId\": \"761-2\",\n    \"url\": \"https://mychart.health.usf.edu/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/20D06619-9FB4-49C8-82D9-B56593A2FB16/848cef707d804833e15f2d0ebf9f495f.png\",\n    \"name\": \"Access Community Health Network\",\n    \"slgId\": \"762\",\n    \"url\": \"https://www.myaccesshealth.net/myaccesshealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/244E2594-848B-4AFD-9FB5-29785132A54A/e536b0be714135f96b28a396b7ae56b3.png\",\n    \"name\": \"Memorial Healthcare System\",\n    \"slgId\": \"763\",\n    \"url\": \"https://mychart.mhs.net/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F5D7D46-2F30-4CBB-BCCC-CE817BFB253C/ba5cff883e180b3e6254b992f21cdcab.png\",\n    \"name\": \"Communitycare PLAN\",\n    \"slgId\": \"763-2\",\n    \"url\": \"https://mychart.mhs.net/mychartCCP/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E160925D-DF5B-4EA3-A0E0-FDAE9725E71D/55cc0d9ae24d17c2f8560bf8069cdccd.png\",\n    \"name\": \"Connect PBC\",\n    \"slgId\": \"763-3\",\n    \"url\": \"https://mychart.mhs.net/connectpbc/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Wenatchee\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AA42D750-EBAF-46BF-9704-E7B04EF24AD0/77e0fb6666d2b33b207a95d9fef367fc.png\",\n    \"name\": \"Confluence Health\",\n    \"slgId\": \"764\",\n    \"url\": \"https://mychart.confluencehealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Orange\",\n      \"CRMC\",\n      \"Catskill\",\n      \"ORMC\",\n      \"GHV\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2F180C53-4CF2-4A86-8B53-251A4A2B0586/a142547691ae179e21370d44af7c3283.png\",\n    \"name\": \"Garnet Health\",\n    \"slgId\": \"765\",\n    \"url\": \"https://mychart.garnethealth.org/GH/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9E7312CB-3860-4B9B-9643-9655F9DA78ED/d243410566fc9c3609c59c67416be7c6.png\",\n    \"name\": \"Amphia\",\n    \"slgId\": \"767\",\n    \"url\": \"https://mijn.amphia.nl/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"SVHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EEE0EC9B-F4BA-4986-8D4D-D7D57DE1F98E/02273e78638628be1261291cc261f4dc.png\",\n    \"name\": \"Stormont Vail Health Care\",\n    \"slgId\": \"768\",\n    \"url\": \"https://mychart.stormontvail.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B7E9EC7D-740F-4724-BB3C-BE65F41ADD4A/12a2614efc22f209840ab0b73e6eba5a.png\",\n    \"name\": \"Riverside Medical Clinic\",\n    \"slgId\": \"771\",\n    \"url\": \"https://myhealthyconnection.riversidemedicalclinic.com/\"\n  },\n  {\n    \"aliases\": [\n      \"RGHS\",\n      \"RGH\",\n      \"Roc Regional\",\n      \"Rochester Regional Health System\",\n      \"Rochester Regional Health\",\n      \"Roc Health\",\n      \"RRH\",\n      \"UHS\",\n      \"Unity Health System\",\n      \"Unity Hospital\",\n      \"ViaHealth\",\n      \"SLH\",\n      \"St. Lawrence Health\",\n      \"Clifton Springs Hospital & Clinic\",\n      \"CSHC\",\n      \"Newark Wayne Community Hospital\",\n      \"NWCH\",\n      \"United Memorial Medical Center\",\n      \"UMMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EDA5C2E0-47C4-42B6-8700-B855427F9175/afdec1f6bdf11b879246a097b2fd7569.png\",\n    \"name\": \"Rochester Regional Health\",\n    \"slgId\": \"772\",\n    \"url\": \"https://mycare.rochesterregional.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A2D46505-1A70-47EC-A262-7B9F487526DE/85553598ab8c87b904ec9968668209c8.png\",\n    \"name\": \"Catholic Health Services of Long Island\",\n    \"slgId\": \"773\",\n    \"url\": \"https://mychart.chsli.org/mychartprod/\"\n  },\n  {\n    \"aliases\": [\n      \"Khoulani\",\n      \"Hammoud\",\n      \"WeCare Villa Linde\",\n      \"Korant\",\n      \"Alghanem\",\n      \"Arif\",\n      \"Aziem\",\n      \"Cypress Cardiology\",\n      \"Eustace\",\n      \"Fadl\",\n      \"Genesee Colorectal Center\",\n      \"Heart Rhythm Clinic of Michigan\",\n      \"Law\",\n      \"Michigan Health Specialists\",\n      \"Milford\",\n      \"MHS\",\n      \"Michigan Rheumatology Group\",\n      \"Mohamed\",\n      \"Saeed\",\n      \"Sharman\",\n      \"Syed\",\n      \"Blueberry Healthcare\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F572899-A5E3-4AD6-81B9-DB2A6E521AD0/9008bec0737d689af7d002541b47fa6d.png\",\n    \"name\": \"Hurley Medical Center\",\n    \"slgId\": \"774\",\n    \"url\": \"https://mychart.hurleymc.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Jamaica\",\n      \"Flushing\",\n      \"TJH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/82AC8D3A-BF04-4B1C-AFA3-30348523EC6B/54f585fd8d14db18d0560135743d7337.png\",\n    \"name\": \"MediSys Health Network\",\n    \"slgId\": \"775\",\n    \"url\": \"https://mychart.medisys.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/103D4643-4312-4F6C-8C7C-0B787BCD1C72/62f91b955281cf286c9c4f3c59803da4.png\",\n    \"name\": \"Bassett Healthcare\",\n    \"slgId\": \"778\",\n    \"url\": \"https://www.mybassetthealthconnection.org/mychart-prd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9DF460AE-AA00-4ED2-8192-BA97F931D6D4/a19c17bd05ec7b770c49faf2c136f649.png\",\n    \"name\": \"Lallie Kemp Regional Medical Center\",\n    \"slgId\": \"779\",\n    \"url\": \"https://www.mylsuhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B79AD562-1537-4170-8893-54AEC2650070/b0dc7271fd1dbf78f05b2b2c8b9edf8e.png\",\n    \"name\": \"LCMC Health\",\n    \"slgId\": \"779-1\",\n    \"url\": \"https://patientportal.lcmchealth.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E18583F4-83CD-43B0-9DC3-DF67D14D8419/a22425d4ef47685e12a5ced5f748b1d8.png\",\n    \"name\": \"Children's Heart Clinic of LA\",\n    \"slgId\": \"779-5\",\n    \"url\": \"https://ccpatientportal.lcmchealth.org/chcla/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EE737888-646F-442A-86A9-AF72563E1E72/cd03101983bb905765a87ff106204888.png\",\n    \"name\": \"Culicchia Neurological\",\n    \"slgId\": \"779-6\",\n    \"url\": \"https://ccpatientportal.lcmchealth.org/cnc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C892FFA3-BCAC-45D5-A350-79B69154210D/4a7c6b7847b15448369b84a0cca2aea0.png\",\n    \"name\": \"Dr Brain\",\n    \"slgId\": \"779-7\",\n    \"url\": \"https://patientportal.lcmchealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/141C9BDD-9E85-407E-8F86-8513A53D1F45/0d4de53b1714b48b7984718480ce21cb.png\",\n    \"name\": \"LSU Health Network\",\n    \"slgId\": \"779-9\",\n    \"url\": \"https://ccpatientportal.lsuhn.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CA31C1AA-C8D4-451A-95B5-AB74FC577E1C/369a7d582d0831fa5cf1c262b1f507eb.png\",\n    \"name\": \"MRI of Louisiana\",\n    \"slgId\": \"779-10\",\n    \"url\": \"https://ccpatientportal.lcmchealth.org/mriofla/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/23C7902C-A826-4246-81A2-21A776DA641C/6cb46304d841193565860afb8c3a324e.png\",\n    \"name\": \"Pennington Biomedical\",\n    \"slgId\": \"779-11\",\n    \"url\": \"https://ccpatientportal.lcmchealth.org/pbr/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/04990177-DA13-4EB0-99DB-BC3BD66B0AEC/1213bccd3082b26dc980c83d0c730c8e.png\",\n    \"name\": \"St Thomas Community Health Center\",\n    \"slgId\": \"779-12\",\n    \"url\": \"https://ccpatientportal.stthomaschc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/67D32C1B-2AD9-4CBE-8A14-D10EE03D6D69/0c5035458d49204a6148fa1dafa729b7.png\",\n    \"name\": \"Caplan Eye Clinic\",\n    \"slgId\": \"779-13\",\n    \"url\": \"https://patientportal.lcmchealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/553A24A4-988D-4F61-96CE-2AA3DCA98272/58404408b4bd4ca2cc31e8f9039be61c.png\",\n    \"name\": \"New Orleans Nephrology Associates\",\n    \"slgId\": \"779-14\",\n    \"url\": \"https://patientportal.lcmchealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"OMHS\",\n      \"Daviess\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/636FD587-BE76-4CD1-B232-C471EA0E0F09/b35aa09547fa7fba28fb3feec71d26d2.png\",\n    \"name\": \"Owensboro\",\n    \"slgId\": \"781\",\n    \"url\": \"https://mychart.omhs.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0C875055-71B8-4B5A-BB22-25BB856920C4/7350b2ecad87e8c2c4c5b20b854d5b98.png\",\n    \"name\": \"Baptist Health\",\n    \"slgId\": \"782\",\n    \"url\": \"https://mychart.baptist-health.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"UMMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/01609000-D36A-44E3-A5BA-FAE6ADAAB1D3/49d12a24ed4f474de826df65fbaa2820.png\",\n    \"name\": \"University of Mississippi Medical Center\",\n    \"slgId\": \"784\",\n    \"url\": \"https://www.umc.edu/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"MSDH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2EC9AA2A-411F-4A27-9264-DEA89051F42B/4bbc46253ee2b29bfa50c3a2f8deef99.png\",\n    \"name\": \"Mississippi State Department of Health\",\n    \"slgId\": \"784-1\",\n    \"url\": \"https://mymsdh.umc.edu/MyChart_MSDH_PRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/65E473E2-299B-4720-A22A-ADA3D711AE08/f6c30a4aae37791e48af3ab3a0eaa0bd.png\",\n    \"name\": \"GA Carmichael\",\n    \"slgId\": \"784-2\",\n    \"url\": \"https://mychart.umc.edu/GACFHCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/17E027C0-0DD9-447C-B5A8-32C32824B18A/92f0abdee038ecdaeffff55962df4d5f.png\",\n    \"name\": \"Sansum\",\n    \"slgId\": \"785\",\n    \"url\": \"https://mychart.sansumclinic.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Ressurrection\",\n      \"AMITA\",\n      \"Presence Health\",\n      \"Resurrection\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4699F483-BD08-4562-883D-3892023CA556/c22b8b23289562b831dc8d36f4bc2126.png\",\n    \"name\": \"Ascension Illinois\",\n    \"slgId\": \"787\",\n    \"url\": \"https://mychart.presencehealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"WHHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4F148F3D-FE5C-4605-935B-2256EF673C71/41ba6086256a9fa3214bf86a6503a7b1.png\",\n    \"name\": \"Washington Health\",\n    \"slgId\": \"788\",\n    \"url\": \"https://mychart.whhs.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/35107A90-FD80-4382-97B0-EEA6B4E2199D/33a290dccaf8a723643f3acc60c8b1c6.png\",\n    \"name\": \"JPS Health Network\",\n    \"slgId\": \"789\",\n    \"url\": \"https://jpsmychart.jpshealth.org/jpsmychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Meriter\",\n      \"RAMC\",\n      \"Reedsburg\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3623AD0C-0AAF-4029-BC3D-03503924D0C1/ac7ed77bd373a0425b7054c8fafb05a4.png\",\n    \"name\": \"UnityPoint Health\",\n    \"slgId\": \"790\",\n    \"url\": \"https://chart.myunitypoint.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A13E1601-F5D0-4278-BA67-71DC9DBA87E2/9270d09fb1eb44ad9d846b105d2c0c87.png\",\n    \"name\": \"Associated Physicians\",\n    \"slgId\": \"790-1\",\n    \"url\": \"https://chart.myunitypoint.org/associatedphysicians/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5795598C-F77D-4A82-850E-EFC61142D990/ae25e939a1d6e652244202c23f01cf3b.png\",\n    \"name\": \"Buchanan County Health Center\",\n    \"slgId\": \"790-2\",\n    \"url\": \"https://chart.myunitypoint.org/buchanancounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D722D7EE-87D5-4088-A1BA-CB58FFE6A602/504b5d518f3ceef7fa93cf79c3db7044.png\",\n    \"name\": \"Buena Vista Regional Medical Center\",\n    \"slgId\": \"790-3\",\n    \"url\": \"https://chart.myunitypoint.org/buenavista/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B3D17A2C-95CE-4379-B94A-71BF55CD599C/1ab80b372b24dab155af214bb23281ac.png\",\n    \"name\": \"Cherokee Regional Medical Center\",\n    \"slgId\": \"790-4\",\n    \"url\": \"https://chart.myunitypoint.org/cherokeeregional/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1FACDDD4-7CA6-42A9-B7F9-56C8017BCF3E/412da3ff1d20003bcf1d1cfbceec3dae.png\",\n    \"name\": \"Clarke County Hospital\",\n    \"slgId\": \"790-5\",\n    \"url\": \"https://chart.myunitypoint.org/clarkecounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/605DD804-6B49-4F49-AA9A-0D17D9AEB04E/ae5e1e7fcada0450410256448441bdc4.png\",\n    \"name\": \"Community Memorial Hospital\",\n    \"slgId\": \"790-6\",\n    \"url\": \"https://chart.myunitypoint.org/communitymemorial/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/650CC3C9-7BA0-4297-ACC1-F24AA6C4CA58/bc9382eb7eac4431b9705d811ef7b9f0.png\",\n    \"name\": \"Compass Memorial Healthcare (Marengo)\",\n    \"slgId\": \"790-7\",\n    \"url\": \"https://chart.myunitypoint.org/compassmemorial/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/42030861-19D0-40C8-865A-90AF480E83D2/82b5df6ca343420c53f5298b9463799f.png\",\n    \"name\": \"Family Medicine LLP\",\n    \"slgId\": \"790-8\",\n    \"url\": \"https://chart.myunitypoint.org/familymedicinellp/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E071ADD8-CF39-4740-8192-C7F7723B1C9F/fbfad517fe33b6476b43fb3202ea75a3.png\",\n    \"name\": \"Foot & Ankle of Iowa\",\n    \"slgId\": \"790-9\",\n    \"url\": \"https://chart.myunitypoint.org/footandankleofiowa/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2F475A3D-205D-45BB-B552-121112BEFCE5/04c59f3a16a1244dc358c30558ac95ae.png\",\n    \"name\": \"Grant Regional Health Center\",\n    \"slgId\": \"790-10\",\n    \"url\": \"https://chart.myunitypoint.org/grantregional/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/982E33EE-ED58-4E04-BCA0-037815DEAEB7/9cd9445865bf1aea7b87c0d2bcef56e5.png\",\n    \"name\": \"Greater Regional Health\",\n    \"slgId\": \"790-11\",\n    \"url\": \"https://chart.myunitypoint.org/greaterregional/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CB8FDB56-4FD4-4E78-9920-1F6373C98AFC/f5e6398caf063e245f7110721faebc4d.png\",\n    \"name\": \"Greene County Medical Center\",\n    \"slgId\": \"790-12\",\n    \"url\": \"https://chart.myunitypoint.org/greenecounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0A0E507E-17D9-415D-A1B6-4FCB090B63B3/bd5b64fe32e423a3ec62cc555452c75f.png\",\n    \"name\": \"Grundy County Memorial Hospital\",\n    \"slgId\": \"790-13\",\n    \"url\": \"https://chart.myunitypoint.org/grundycounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/71FC3755-E577-469E-8D66-C1AC7D6173A2/7703da116b79106692fab0cc88bdf712.png\",\n    \"name\": \"Guthrie County Hospital\",\n    \"slgId\": \"790-14\",\n    \"url\": \"https://chart.myunitypoint.org/guthriecounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CCB38BC4-70E2-4341-8C2A-631A5781B251/a384fe45c89b4558081930399405a3cd.png\",\n    \"name\": \"Hammond-Henry Hospital\",\n    \"slgId\": \"790-15\",\n    \"url\": \"https://chart.myunitypoint.org/hammondhenry/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E8C4CE3E-CE2B-4E6D-997B-126967CCD59A/16cc87e5df100bfcb8da69d9d4a60bb0.png\",\n    \"name\": \"Humboldt County Memorial Hospital\",\n    \"slgId\": \"790-16\",\n    \"url\": \"https://chart.myunitypoint.org/humboldtcounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/294341F7-515B-4100-8A20-0B41C0FB489E/325adcdd134639628d676619896fe509.png\",\n    \"name\": \"Lafayette Hospital and Clinics\",\n    \"slgId\": \"790-17\",\n    \"url\": \"https://chart.myunitypoint.org/lafayette/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C164E080-3B72-4ABA-B630-7537EB5C2388/6d6afa308b542912ffce796603f1e1cf.png\",\n    \"name\": \"Loring Hospital\",\n    \"slgId\": \"790-18\",\n    \"url\": \"https://chart.myunitypoint.org/loring/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AB56500B-37D4-461A-95AB-4CACC8B2CC40/7450841b69e8d7c750f138e094752c14.png\",\n    \"name\": \"Lucas County Health Center\",\n    \"slgId\": \"790-19\",\n    \"url\": \"https://chart.myunitypoint.org/lucascounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B858608-83CE-4F34-805E-D7A6A35C3DB5/4cc899c18d7c0ac8101efeb854c6cd25.png\",\n    \"name\": \"Madison Womens Health\",\n    \"slgId\": \"790-20\",\n    \"url\": \"https://chart.myunitypoint.org/madisonwomenshealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4E9696A7-AF48-41EB-9360-C28B1FF66119/5a87b2d989b68fb313f4d211849543af.png\",\n    \"name\": \"Mahaska Health Partnership\",\n    \"slgId\": \"790-21\",\n    \"url\": \"https://chart.myunitypoint.org/mahaska/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EEBF7EB8-ED5F-4EC5-BF2E-F2ACD76A5D1C/2a40b03016a8f2a23f7c994019b25639.png\",\n    \"name\": \"Memorial Hospital Association (Carthage)\",\n    \"slgId\": \"790-22\",\n    \"url\": \"https://chart.myunitypoint.org/memorial/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/744D03E4-2E9F-478F-B539-60B974E1566A/d37f247e7cc935f526d6f0d8b2db5aeb.png\",\n    \"name\": \"Pocahontas Community Hospital\",\n    \"slgId\": \"790-23\",\n    \"url\": \"https://chart.myunitypoint.org/pocahontas/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/018C7D00-67EE-4223-8BAB-4C102C2E5515/f87d14efa250384e0eaa466497f16045.png\",\n    \"name\": \"Quincy Medical Group\",\n    \"slgId\": \"790-24\",\n    \"url\": \"https://chart.myunitypoint.org/quincymedicalgroup/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/04ED8885-987B-456D-B97D-45B4FCFC3EF3/f179c80b24b87e95e1733579351963a3.png\",\n    \"name\": \"Reedsburg Area Medical Center\",\n    \"slgId\": \"790-25\",\n    \"url\": \"https://chart.myunitypoint.org/reedsburg/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6DDAEA34-8AA2-401D-B275-E16E72C80B02/393190480f93aa85f52b3efbb1567a63.png\",\n    \"name\": \"Stewart Memorial Community Hospital\",\n    \"slgId\": \"790-26\",\n    \"url\": \"https://chart.myunitypoint.org/stewartmemorial/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/29EAC1E0-1D3E-45E2-AD66-B7A44FED0AAE/ed9b231497a965fb9c131c4af4f4c30a.png\",\n    \"name\": \"Story County Hospital\",\n    \"slgId\": \"790-27\",\n    \"url\": \"https://chart.myunitypoint.org/storycounty/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1AA0FFD6-1767-409C-82ED-220518CF712B/ea793ba7cfcc6dde98c852a6cd7fe700.png\",\n    \"name\": \"Guttenberg Municipal Hospital\",\n    \"slgId\": \"790-28\",\n    \"url\": \"https://chart.myunitypoint.org/guttenberg/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F39A3784-4C24-4B95-A5AD-87AF47BF17B2/3a5f7143086627d52aeb7fa1ac6bdb22.png\",\n    \"name\": \"Virginia Gay Hospital\",\n    \"slgId\": \"790-29\",\n    \"url\": \"https://chart.myunitypoint.org/virginiagay/\"\n  },\n  {\n    \"aliases\": [\n      \"Michigan Medicine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/73F4A836-5CE7-4C3D-A057-E74FB8F745B5/7823b20b1f8a63271bc565047bb12e86.png\",\n    \"name\": \"University of Michigan Health\",\n    \"slgId\": \"791\",\n    \"url\": \"https://www.myuofmhealth.org/MyChart-PRD/\"\n  },\n  {\n    \"aliases\": [\n      \"PHCMA\",\n      \"Prohealth care\",\n      \"Pro health care\",\n      \"Prohealthcare\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2C504F61-EFF4-4580-B7E9-0C585B44B06A/3851c876a8e99b2a5815d1cbfc3493e8.png\",\n    \"name\": \"ProHealth Care\",\n    \"slgId\": \"792\",\n    \"url\": \"https://mychart.prohealthcare.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EF2B0CC2-04CC-40B6-9246-BAA5FA1526EF/b55ce44410fcba3ade804a81ecefa7ce.png\",\n    \"name\": \"Cleveland Clinic Abu Dhabi\",\n    \"slgId\": \"793\",\n    \"url\": \"https://patientportal.clevelandclinicabudhabi.ae/patientportal/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [\n      \"Forrest\",\n      \"Pine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/603BCC5F-3DAC-4EE3-9EF2-AE48B651AAB9/fcc6f2fd9e16bc3a91e9e23cc544a0ae.png\",\n    \"name\": \"Hattiesburg\",\n    \"slgId\": \"795\",\n    \"url\": \"https://iris.hattiesburgclinic.com/iris/\"\n  },\n  {\n    \"aliases\": [\n      \"Ochsner\",\n      \"MyOchsner\",\n      \"MyO\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B6687FEA-5B4C-4071-A6BA-9B82138A562B/bdca389591b106d5faf1857b2d3cd064.png\",\n    \"name\": \"Ochsner Health System\",\n    \"slgId\": \"796\",\n    \"url\": \"https://my.ochsner.org/prd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BEB5897E-410A-42F3-84AE-93C03845208A/6c9bea40d0547613e6262666d590f8e1.png\",\n    \"name\": \"St. Tammany\",\n    \"slgId\": \"796-2\",\n    \"url\": \"https://mychart.stph.org/mychartstph/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B3CA949C-E278-42EE-9B95-4FF45E7E175B/f0650e69755e877454f98bfcce137fab.png\",\n    \"name\": \"Terrebonne General Medical Center\",\n    \"slgId\": \"796-3\",\n    \"url\": \"https://www.ohnmychart.org/tgmc/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/322B65AA-FA9A-4BD7-B043-0826FD0E00EA/aad1f18ac11cdc01d6d6ac993d69d2ba.png\",\n    \"name\": \"Ochsner Health System Digital Medicine\",\n    \"slgId\": \"796-5\",\n    \"url\": \"https://mydigmed.ochsner.org/digitalmedicine/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3552B583-2C95-4EF6-A6D1-DF2DA7014785/72adab0fbb2cddd1ff8fd8211406698f.png\",\n    \"name\": \"Titus Regional Medical Center\",\n    \"slgId\": \"796-6\",\n    \"url\": \"https://ohnmychart.org/titus/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Moses\",\n      \"Wesley Long\",\n      \"Annie Penn\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/717CDFF8-6E3C-42BB-98D0-5A6D888514E9/7ab2cba203cdc402c6b713083c537c10.png\",\n    \"name\": \"Cone Health\",\n    \"slgId\": \"797\",\n    \"url\": \"https://mychart.conehealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"New Hanover\",\n      \"NHRMC\",\n      \"Novant Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ACB402FD-D40C-4ABA-A5CC-75CE3CA17123/281e39db68032c2bfd3d4638427ac67e.png\",\n    \"name\": \"Novant\",\n    \"slgId\": \"798\",\n    \"url\": \"https://www.novantmychart.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Independent\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A350394E-775D-4172-85D8-C52958B6F746/96c5edaeac6f14e33bcf32440d20e31e.png\",\n    \"name\": \"Novant Health Partners\",\n    \"slgId\": \"798-2\",\n    \"url\": \"https://www.nhmychartcc.org/MyChartCC/\"\n  },\n  {\n    \"aliases\": [\n      \"Saint\",\n      \"SLHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/65D343C9-1C9B-4DB9-8DE5-5037C0A527F9/7971701b144a26c359eb974f2a9fb113.png\",\n    \"name\": \"St. Luke's\",\n    \"slgId\": \"799\",\n    \"url\": \"https://mychart.slhs.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Lawrence Memorial\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C5BCA62F-5179-4370-A032-0739F45D1802/73bb9e522ed97b2ba9f45a270608e065.png\",\n    \"name\": \"Yale New Haven Health/Yale Medical Group\",\n    \"slgId\": \"800\",\n    \"url\": \"https://mychart.ynhhs.org/MyChart-PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E9F4A11-4D7F-4986-8353-3D6273B45C88/5c4087e71dec9a6c4cd8468fc6184ea1.png\",\n    \"name\": \"Providence, Washington, Idaho, Montana\",\n    \"slgId\": \"802\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/61772CB3-4352-4C44-8813-6E7A8BC96A2A/ab5b4230231b187fdcd308c50b0c9195.png\",\n    \"name\": \"Western Montana Clinics\",\n    \"slgId\": \"802-1\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F7C172F4-EFA8-472C-85DF-ECE8E3DB20D1/51afcb9f16c088ff3a430f5dee805194.png\",\n    \"name\": \"Olympic Medical Center\",\n    \"slgId\": \"802-2\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6C201B64-89B9-4DEC-AE35-BCF20F967348/ac537daff55a560c9c5fb613c5b7eeb8.png\",\n    \"name\": \"Missoula Surgical Associates\",\n    \"slgId\": \"802-3\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1C9F1662-D230-4FED-8636-957575A9C2C5/5babcec34d2d0f3dc3be0574c914d6e6.png\",\n    \"name\": \"Grande Ronde\",\n    \"slgId\": \"802-4\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5423E9E9-C16A-4384-8B8F-B2849D53EFF9/e25ed8425d4cbfbf1a4c157e36aa716c.png\",\n    \"name\": \"Jefferson Healthcare\",\n    \"slgId\": \"802-5\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/714FBD7C-866D-4DBC-981D-A55693430BEC/72308fb0d9611e5b9baff9fe27c31615.png\",\n    \"name\": \"Jamestown Family Health Clinic\",\n    \"slgId\": \"802-6\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BE3234E3-802D-4B16-AA06-51FED4638677/9c2e140a4855de419bb14d674c1bc4bc.png\",\n    \"name\": \"Proliance Hand, Wrist & Elbow Physicians\",\n    \"slgId\": \"802-7\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/845FE275-8DC7-416A-ABDD-695D83FA9E63/428d0d2c217a74e04ea3b9be47a6885c.png\",\n    \"name\": \"ProOrtho Orthopedics and Sports Medicine\",\n    \"slgId\": \"802-8\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4D9B6CE3-0405-4745-890C-009243C5311D/9046ca5f68344b7fa63c62fec89a435f.png\",\n    \"name\": \"Barrett Hospital and Healthcare\",\n    \"slgId\": \"802-9\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0EA9DABE-785F-4C49-AE9E-FCAF71A9F945/883ee1bf47f4b02b8be7dcc4ee7a22b8.png\",\n    \"name\": \"Community Hospital for Anaconda\",\n    \"slgId\": \"802-10\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7A7EEEFE-5326-4AC3-8DEE-C8B41EA0BFDC/5945421295c800ac37cd76ab7285c735.png\",\n    \"name\": \"Clark Fork Valley Hospital\",\n    \"slgId\": \"802-11\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/512605B4-21BC-47B4-A69B-8E899166884E/81bc388e29775647043ba6cd6ada3d60.png\",\n    \"name\": \"Everett Bone and Joint\",\n    \"slgId\": \"802-12\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4286737A-7E10-471B-9162-A962838C906D/d412346d7b7b9e2c6d74e2e566d7dc4d.png\",\n    \"name\": \"Tulalip Health System\",\n    \"slgId\": \"802-13\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D608C06A-CC4F-414A-B559-F3FC047391CE/912e1843aee2b04e1489e2f4ed7433ac.png\",\n    \"name\": \"North Olympic Healthcare Network\",\n    \"slgId\": \"802-14\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/74BF6467-D7F9-452E-B2F9-5817EFCF2CB8/2f59cf1a4e54ed6f2befebc8f5998a02.png\",\n    \"name\": \"Shodair Children's Hospital\",\n    \"slgId\": \"802-15\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8F4228AD-F321-4189-95E5-87BC9B182474/f3cfca9c9e1bf00ca836da68b37282f5.png\",\n    \"name\": \"Pacific Medical Center\",\n    \"slgId\": \"802-16\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9880C6A1-1E95-42F0-9C2E-5D27A0F1F1DC/3b207b5fdcde401296aee4e373ec5041.png\",\n    \"name\": \"Providence Swedish\",\n    \"slgId\": \"802-17\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F2CC3998-A0B7-4EB8-BE65-A23392AC0436/2637c2a2ec811c3c2ac4852d461ad921.png\",\n    \"name\": \"Prosser Memorial Health\",\n    \"slgId\": \"802-18\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DAD1044B-4E6E-4520-B7F3-7F960CA105F4/8472c8d5514003c90f669f914b30197d.png\",\n    \"name\": \"Kadlec Health System\",\n    \"slgId\": \"802-19\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/578CF391-3B7C-4815-97D7-092FA7F1BE7D/02effb35b60091aad856519997d4a412.png\",\n    \"name\": \"Columbia Basin Hospital\",\n    \"slgId\": \"802-20\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [\n      \"ICHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E6FFFC0-51D6-4CE5-B70F-2F7DE4C8437D/750fc7d3ea52857b96d95b0df1a6c22f.png\",\n    \"name\": \"International Health Community Services\",\n    \"slgId\": \"802-21\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/76A2EA74-D1A5-4A44-A432-57C3706A0BC3/5b951d96600e8378bd8a3c174622dc71.png\",\n    \"name\": \"Samaritan Healthcare\",\n    \"slgId\": \"802-22\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F7F7EB47-8291-4CDE-95C7-18D69A72DE1A/606251b17181dd1f361afa858ceeef1e.png\",\n    \"name\": \"Newport Hospital & Health Services\",\n    \"slgId\": \"802-23\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F0D3F643-ED51-4675-B3DA-D0D832C83227/3494861a294d8dc780caa61b0d7e18d2.png\",\n    \"name\": \"Cascade Community Health\",\n    \"slgId\": \"802-24\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [\n      \"Seattle Medical Associates\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/734C2EF6-0290-405D-B875-0411A37AC6F5/dc9e83382503f560a600327e8e14d23c.png\",\n    \"name\": \"Seattle Medical Associates\",\n    \"slgId\": \"802-25\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7A6322CA-12E5-43B7-A46F-A106F37360E6/edc859b49eb239f02b3d49c003b35132.png\",\n    \"name\": \"Kinwell\",\n    \"slgId\": \"802-26\",\n    \"url\": \"https://kinwell.myonlinechart.org/kinwellmychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3DCC1AE5-216C-4597-ACED-798785786B99/e94502cdc5ce59f7e7c2ec0ee1e4cceb.png\",\n    \"name\": \"Rocky Mountain ENT\",\n    \"slgId\": \"802-27\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F777730A-65B9-494D-B046-71125A475DB8/a67d88ce9660b22ceb626cc14d80d573.png\",\n    \"name\": \"Credena Health - Washington/Montana\",\n    \"slgId\": \"802-28\",\n    \"url\": \"https://credenahealthwm.myonlinechart.org/Credenahealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/45F91C5D-7E80-4B9C-A2E7-3AE92DBEA7C1/5c6961c45d141555b4dd57ddfb6a3a88.png\",\n    \"name\": \"Credena Health - Alaska\",\n    \"slgId\": \"802-29\",\n    \"url\": \"https://credenahealthak.myonlinechart.org/Credenahealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/19FD2450-B508-4F04-96AF-25E23B6172ED/82037d3cc823e482f9587313da7cc4b3.png\",\n    \"name\": \"Lincoln Hospital & Clinics\",\n    \"slgId\": \"802-30\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/73C7AF16-53E0-4414-A306-70AAB17FFF7B/a5c29f3c61a86d323f479d38fde77c60.png\",\n    \"name\": \"Excelsior Family Medicine\",\n    \"slgId\": \"802-31\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8177EAFD-B4BF-4836-B042-1A84898EA686/8ce71f563fbe9525fe57bc1b922b101b.png\",\n    \"name\": \"Stillaguamish Tribe of Indians\",\n    \"slgId\": \"802-32\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/60EA6ED0-FC6F-42CA-884F-DDDB9689E262/ee770a2ba918d278fd788b2adbbe1ab7.png\",\n    \"name\": \"Seattle Premier Health\",\n    \"slgId\": \"802-33\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CFA44219-0500-4ECE-BF3F-722760CAD9B1/580a0e8c732df6da49dfbb319ab6c2ba.png\",\n    \"name\": \"Providence Swedish Rehabilitation Hospital\",\n    \"slgId\": \"802-34\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/17EB6121-3A54-42FE-8159-35F463AF7CD6/cbfea791ad24da943243518bdc29fdf2.png\",\n    \"name\": \"Cancer Care NorthWest\",\n    \"slgId\": \"802-35\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CFACDBAA-1BF5-4A9C-9934-66575384A8C6/457d3f626eb87bd707d33247fdd427ea.png\",\n    \"name\": \"Pullman Regional Hospital\",\n    \"slgId\": \"802-36\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/19370AE7-6C5D-4B52-90C9-5AFC82628E81/ba76d904abbbfbdade77838c17a1fadc.png\",\n    \"name\": \"Summit Pacific Medical Center\",\n    \"slgId\": \"802-37\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1EBF7E83-1266-4863-8301-00A7E29B1BFD/9a97d78d13fe7b3ad768f8f8a228d245.png\",\n    \"name\": \"Wallowa Memorial Hospital and Medical Center\",\n    \"slgId\": \"802-38\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EDC2D7DF-7D11-4BEC-841D-5B24F0EDE0D1/8c97213d6e62ac52371b5dafd83cf040.png\",\n    \"name\": \"Whitman Hospital Medical Clinics\",\n    \"slgId\": \"802-39\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7B5AC2DA-29FB-4711-83AB-7FFD051ACC3D/b0fb9d95f4f8eb34865f458deea24c43.png\",\n    \"name\": \"Yelm Family Medicine\",\n    \"slgId\": \"802-40\",\n    \"url\": \"https://mychartwa.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B50AE7BF-B448-4822-9FEA-8DE22086D48B/efcdd1ce8e55040f90bcd3eae0a9ac51.png\",\n    \"name\": \"Butte Native Wellness\",\n    \"slgId\": \"802-41\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9D58F852-7BC2-45D9-B263-E174AA31C386/b61d0f920d522691bbf17841a3b74a9b.png\",\n    \"name\": \"Infinity Cancer Care\",\n    \"slgId\": \"802-42\",\n    \"url\": \"https://wamt.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"South Haven\",\n      \"SHHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/645DB9E1-CEC8-4BD8-A526-01643E039323/58f57d0c219173029892c6f9c8b84c0f.png\",\n    \"name\": \"Bronson\",\n    \"slgId\": \"804\",\n    \"url\": \"https://mychart.bronsonhealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5E54205F-2E6E-4677-8223-6CC6363B4E0A/156baed66e6f058c6a3f5fc76a45e131.png\",\n    \"name\": \"Kalamazoo College\",\n    \"slgId\": \"804-2\",\n    \"url\": \"https://mychart.bronsonhealth.com/hosted/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D72EE21C-0F53-4D0E-83D2-CD781BCC3196/b56543f8e8e2b44db1242e60a7ae2349.png\",\n    \"name\": \"Family Health Center\",\n    \"slgId\": \"804-3\",\n    \"url\": \"https://mychart.fhckzoo.com/MyChartFHC\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/48D39E1B-E0BE-44B5-A213-AB2489F51A24/7d2e17c909691f201f44a87ef5807db0.png\",\n    \"name\": \"Western Michigan University\",\n    \"slgId\": \"804-4\",\n    \"url\": \"https://mychart.wmed.edu/MyChartWMED/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7C7ED6A3-1DFB-4C8A-BF6E-E4BDF5779F08/7d5cc225f86f278077c8bd799f3c0272.png\",\n    \"name\": \"Kalamazoo Foot Surgery\",\n    \"slgId\": \"804-5\",\n    \"url\": \"https://mychart.bronsonhealth.com/mychartkfs/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/203F9561-E950-4EB9-9410-2507517D8F82/3c76dfcf75a4d881b3e6655655ccbcbc.png\",\n    \"name\": \"Advanced Vascular Surgery\",\n    \"slgId\": \"804-6\",\n    \"url\": \"https://mychart.avsurgery.com/mychartavs/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"WMCC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0BDA47B2-223A-4488-8815-B1708C11257D/2f95f34d47aa2d620171735d272895ae.png\",\n    \"name\": \"West Michigan Cancer Center\",\n    \"slgId\": \"804-7\",\n    \"url\": \"https://mychart.wmcc.org/mychartwmcc/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/20747028-2ECA-487A-9B37-8B5AC95CFC8F/7398b86bcd4146e1efd3bdd73b0ce9db.png\",\n    \"name\": \"Cereal City Pediatrics\",\n    \"slgId\": \"804-8\",\n    \"url\": \"https://mychart.bronsonhealth.com/mychartccp/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/05B25455-CBF0-499C-B6E7-984091778926/debfc67ae12adbcecf23bfbda5e7a1ed.png\",\n    \"name\": \"UCLA Medical Center\",\n    \"slgId\": \"806\",\n    \"url\": \"https://my.uclahealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4597D5AA-D3E9-40A2-872A-0DCFF09E713C/65a2e1fb16e32cbe494a2f0bd5fb994b.png\",\n    \"name\": \"UCLA Health Medicare Advantage Plan\",\n    \"slgId\": \"806-1\",\n    \"url\": \"https://my.uclahealthmedicareadvantage.org/HealthPlan/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DB6DD5F9-2568-44E0-A7D7-B59CCC27CBE4/d6eed7a7bda076c846ce114cd17ecee2.png\",\n    \"name\": \"Providence, Greater Portland Area\",\n    \"slgId\": \"808\",\n    \"url\": \"https://mychartor.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8DFE7B9B-B693-4184-962D-AEEFFDEF6B0A/6aaaefb88e3e2c7f30325a3cb05c9d2b.png\",\n    \"name\": \"Nor-Lea Hospital District\",\n    \"slgId\": \"808-1\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CC5542B1-C5B7-43A6-9A84-C012E02D5B57/c1ef59651e1047e14fce983d4afd262f.png\",\n    \"name\": \"Family Medical Group\",\n    \"slgId\": \"808-3\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AA91CDC5-7A2D-47D6-867C-1BCDFD3FCBA1/7e5d240290ab0b6d7a767ec81f1aa141.png\",\n    \"name\": \"Ocean Beach Hospital & Medical Center\",\n    \"slgId\": \"808-4\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/15F62B3C-2832-408F-BA17-72C4C246D9B5/4d3c497b44eab8f9931b0a17c9026416.png\",\n    \"name\": \"Southern Oregon Orthopedics\",\n    \"slgId\": \"808-5\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FFDF82AB-CE8B-4807-8DAD-E7173C3A0F25/6c4c48f6ca6770ab3e6a5fc48fd820c6.png\",\n    \"name\": \"Southern California Multi Specialty Center\",\n    \"slgId\": \"808-7\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CEAA1C3A-C697-4006-AB8B-789D5C103816/cf33ad6504f2cba782e44b243a6e6bf6.png\",\n    \"name\": \"Covenant Health\",\n    \"slgId\": \"808-8\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BD908C3B-D840-4411-AF4B-5CDCDBFDD3E4/524bdd4206b323ae4b04b041bd3b68dc.png\",\n    \"name\": \"Columbia Gorge Family Medicine\",\n    \"slgId\": \"808-9\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [\n      \"St Joseph Hospital Orange\",\n      \"Mission Hospital Mission Viejo Laguna Beach\",\n      \"St Jude Medical Center\",\n      \"St Mary's Medical Center\",\n      \"Heritage Medical Group\",\n      \"Petaluma Valley Hospital\",\n      \"Queen of the Valley Hospital\",\n      \"Redwood Memorial Hospital\",\n      \"Santa Rosa Memorial Hospital\",\n      \"St Joseph Hospital Eureka\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/869BE637-725C-4009-9CDD-BEB2C47959F3/accfa310c4e576c2698b155a1316835c.png\",\n    \"name\": \"Providence, Oregon, California\",\n    \"slgId\": \"808-10\",\n    \"url\": \"https://mychartor.providence.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ED74E469-625F-4885-8BA0-0D294BF94BF0/7ab8929b3a606c9427afc4ad958cbc81.png\",\n    \"name\": \"Orange County Thoracic and Cardiovascular Surgeons\",\n    \"slgId\": \"808-12\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4D1D1424-23B3-41D5-B89F-D7E71F0BBE15/eb5e29721ba1b1814c32090d8625666a.png\",\n    \"name\": \"Orange County Neurosurgical Associates\",\n    \"slgId\": \"808-13\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/48E269B9-C2C2-4257-9893-43E718AB7089/66f3e4f48e2e71a290582ae6acd2c430.png\",\n    \"name\": \"Greater Orange County Ear, Nose, Throat, Head & Neck Surgeons\",\n    \"slgId\": \"808-14\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0B268BD7-F418-4F97-9442-8167B14DA875/7d2a0ebac5be81c99d1a54238f458ae6.png\",\n    \"name\": \"Fairchild Medical Center\",\n    \"slgId\": \"808-15\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8340D3E3-D1EC-49EE-AE9E-0C3EDD2FD1AB/b5674c9f6c906df1fe873be9c06fe383.png\",\n    \"name\": \"Sonoma Valley Hospital\",\n    \"slgId\": \"808-18\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B445DE9D-BC94-4AE9-A26B-21CF8445F1F4/ac2278547d47a639fe00bb135c9326a1.png\",\n    \"name\": \"Credena Health, Pharmacy Home Delivery\",\n    \"slgId\": \"808-21\",\n    \"url\": \"https://credenahealthoc.myonlinechart.org/Credenahealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/19AEB223-15F0-43D7-BB02-E8D05047AEEF/a4c7088abdd63c858c8402ec2d671fa1.png\",\n    \"name\": \"South Tabor Family Physicians & Services\",\n    \"slgId\": \"808-22\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/56C91476-BA75-4A18-84C7-137F40C300CB/cbea2d41a474ff1bceb4492e3130a602.png\",\n    \"name\": \"Providence Cedars Sinai Tarzana\",\n    \"slgId\": \"808-24\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B78C3C0-A4A3-4BAE-A5D6-3C1B59B0CB98/2ddfd72704898f9c6b58c80418bf5080.png\",\n    \"name\": \"The Oregon Clinic\",\n    \"slgId\": \"808-25\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/928EDFBE-D925-4E18-80AE-ED5E5F4FEFE7/19f7d679adba3a53d09b05ae36845645.png\",\n    \"name\": \"Head and Neck Associates of Orange County\",\n    \"slgId\": \"808-26\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0719F247-3BFE-4520-8E1F-457E5476CF87/6166e5cd84b5737e69b29a5f6e008957.png\",\n    \"name\": \"Curry Health Network\",\n    \"slgId\": \"808-27\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C5A6E270-05F9-4907-95C2-854A78536936/f28983bee5aa15e898934bbcaa73a2b5.png\",\n    \"name\": \"Southern Coos Hospital & Health Center\",\n    \"slgId\": \"808-28\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B8456BB-6CA9-4E2D-B543-B51692CEF45D/58cdc26aba12567b3ad7109d219da0c6.png\",\n    \"name\": \"Oregon Heart Center\",\n    \"slgId\": \"808-29\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/532DDBCA-D4FA-49F4-B3E6-91C212640C80/ed24102687d3f941902312a4c1073f5d.png\",\n    \"name\": \"Community Memorial Healthcare\",\n    \"slgId\": \"808-30\",\n    \"url\": \"https://orca.myonlinechart.org/affiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"UCP\",\n      \"UCH\",\n      \"Drake\",\n      \"West Chester\",\n      \"University\",\n      \"UPSH\",\n      \"Pointe\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1C44AA8C-A88E-45C2-A3FE-E0AE35315703/2ed357a7c955d082822b46cc748719f2.png\",\n    \"name\": \"UC Health\",\n    \"slgId\": \"814\",\n    \"url\": \"https://my.uchealth.com/myuchealth/\"\n  },\n  {\n    \"aliases\": [\n      \"LCOH\",\n      \"Lindner\",\n      \"Center\",\n      \"Hope\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/87A5E3CC-31EE-4776-9ADF-412526DC1B95/55dc1a45a5796deb154f382de797ae9d.png\",\n    \"name\": \"Lindner Center of Hope\",\n    \"slgId\": \"814-1\",\n    \"url\": \"https://lcohmychart.uchealth.com/mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/131BAC01-1DEC-419C-A418-270A6A966FFF/060cc37ce6621aa0ed67ce27a0386cb9.png\",\n    \"name\": \"Children's Wisconsin\",\n    \"slgId\": \"815\",\n    \"url\": \"https://mychart.chw.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"HIS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6881AD79-20B1-484B-8A28-54A69449AE32/fdaee56afc80837dc7a6ce4349afad2a.png\",\n    \"name\": \"Inova Health System\",\n    \"slgId\": \"816\",\n    \"url\": \"https://mychart.inova.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F7066955-4F2F-4E7A-B379-A8760ADD0FDD/5fe625d7f1c92a9f88f0ec3cbf78055a.png\",\n    \"name\": \"Valley Health\",\n    \"slgId\": \"816-1\",\n    \"url\": \"https://mychart.inova.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7DB5FC4B-CE33-4E83-9879-151AA3E63702/cf706e2fa6030f47dbc8bd289f0b2009.png\",\n    \"name\": \"Valley Medical Center\",\n    \"slgId\": \"817\",\n    \"url\": \"https://mychart.valleymed.org/MyChart_PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1B4FBEA3-9FE8-4A9C-8A63-264CA99F964E/a528363e490e3d51e769fed82b1f9f25.png\",\n    \"name\": \"Norton Healthcare\",\n    \"slgId\": \"819\",\n    \"url\": \"https://mychart.nortonhealthcare.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"SRHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/765F0F7E-8B74-43D9-B76E-D3C317E821F0/5158213da2f7fdf3d77bebb1d30800b1.png\",\n    \"name\": \"Singing River Health System\",\n    \"slgId\": \"822\",\n    \"url\": \"https://mychart.mysrhs.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Medical\",\n      \"University\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/71A90C87-3BF8-431F-9536-2857DF670282/3e7210acd71e18c742cbf2d34a42c745.png\",\n    \"name\": \"MUSC Health\",\n    \"slgId\": \"824\",\n    \"url\": \"https://mychart.muschealth.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DE48C199-21A0-4D4D-9D9A-B43ABDC18453/306f18f77668eff696dc5f34f73fd45f.png\",\n    \"name\": \"Tidelands Health\",\n    \"slgId\": \"824-2\",\n    \"url\": \"https://mychart.tidelandshealth.org/tidelands-cc/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EC5D603A-31D7-490B-9BFE-E9F7C83E64F4/0da8aba7619c6bd40255ce4728f055dc.png\",\n    \"name\": \"Neighbors Pediatrics Health\",\n    \"slgId\": \"824-3\",\n    \"url\": \"https://mychart.neighborspediatrics.com/neighbors-cc/\"\n  },\n  {\n    \"aliases\": [\n      \"NMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E390E48B-D07A-40AE-9C82-2007E77B098F/ae02767f17999f23206afa9784f775ca.png\",\n    \"name\": \"The Nebraska Medical Center\",\n    \"slgId\": \"825\",\n    \"url\": \"https://www.onechartpatient.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Faith Regional\",\n      \"Beatrice\",\n      \"Mary Lanning\",\n      \"Great Plains\",\n      \"North Platte\",\n      \"Platte Valley\",\n      \"Clarkson Heart Center\",\n      \"Neurology Consults of Nebraska\",\n      \"Plattsmouth\",\n      \"McGill Family Practice\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C65BB700-301F-4443-915D-4328A9EB45CA/382b33d8d7cf2997cace3b4a30e8d185.png\",\n    \"name\": \"OneChart\",\n    \"slgId\": \"825-2\",\n    \"url\": \"https://www.onechartpatient.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Scottsdale\",\n      \"John C. Lincoln\",\n      \"JCL\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/451C9930-6B7E-4B90-B45D-B263206CC019/d53970ae6c6881d7d56de1a74cad1d04.png\",\n    \"name\": \"Honor Health\",\n    \"slgId\": \"826\",\n    \"url\": \"https://mychart.honorhealth.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"WFH\",\n      \"WFMG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/827E7E2C-E47A-45E0-8DDC-B2AFE0F46E82/1f1c93dd0b584a232d17f0bf7931a565.png\",\n    \"name\": \"Ascension Wisconsin\",\n    \"slgId\": \"827\",\n    \"url\": \"https://wimychart.ascension.org/mychartprd/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/45E8D52C-4641-4932-A12C-7DAE84ECE8D3/4051a6bb1970238e818db53f76cc5d51.png\",\n    \"name\": \"Brookwood Baptist Health\",\n    \"slgId\": \"829\",\n    \"url\": \"https://mychart.bhsala.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"OLL\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7487DFCD-0B80-44C9-8266-8DF08B4AE63A/06c501c3810f7f728ad35d82dede9d5c.png\",\n    \"name\": \"FMOL Health | Our Lady of the Lake\",\n    \"slgId\": \"830\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"BRC\",\n      \"CASSO\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/168FA899-EAD4-4624-816A-3C2D9557590F/9a4db355f42afbfbba69f13e3cadca6c.png\",\n    \"name\": \"The Baton Rouge Clinic\",\n    \"slgId\": \"830-2\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"OLL\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/28F4F242-3EAC-43C6-85B7-61DA289715FA/72d8fb4cf9d2217f9f21e32d7384a951.png\",\n    \"name\": \"FMOL Health | Our Lady of Lourdes\",\n    \"slgId\": \"830-4\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Francis\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/24D5D933-1947-4D70-8E9E-544E01EC43AE/1802c9fe24a7c30c0146bfbbb6f8066f.png\",\n    \"name\": \"FMOL Health | St. Francis\",\n    \"slgId\": \"830-5\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E5066F7A-1A19-48AF-962B-D56E7B75A92C/7995f4ce21b24c0f460cc7c637165ad4.png\",\n    \"name\": \"FMOL Health | Our Lady of the Angels\",\n    \"slgId\": \"830-6\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E6EC69E3-657C-46FB-B3B9-72BE396F455E/0f925594da812a69e2cb95a1349ae5a3.png\",\n    \"name\": \"Complete Cardiovascular Care\",\n    \"slgId\": \"830-7\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/80646B14-3A59-46F1-9973-DC9D44E69F2C/d869caa1ba0a611e22b66904dd597bf1.png\",\n    \"name\": \"FMOL Health | St. Dominic\",\n    \"slgId\": \"830-8\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EA695BB8-D257-4755-B111-CB45B6A7256B/f4280258b7b349708cbb207e67e8124a.png\",\n    \"name\": \"FMOL Health | Our Lady of the Lake Children's\",\n    \"slgId\": \"830-9\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/88A9E1F0-F454-4B4A-9A1A-0D87646A8BCE/e1777f04a3d8ce3b563673b638cd659a.png\",\n    \"name\": \"Urgent Care - Lake/Lourdes/St. Francis\",\n    \"slgId\": \"830-10\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7E3D02BB-5D39-4EA7-B9D4-010D5FD68CF9/b0b47728a2b104647eac3770887d6b55.png\",\n    \"name\": \"Our Lady of the Lake LSU\",\n    \"slgId\": \"830-11\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"ENT\",\n      \"ENT Jackson\",\n      \"ENT Surgical\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AFED4FB4-AEA9-4028-95A9-B8BE3CD4DAA2/a76e1f9ada322753e5391a120dcdc85e.png\",\n    \"name\": \"Ear, Nose, & Throat Surgical\",\n    \"slgId\": \"830-12\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SMRMC\",\n      \"Southwest Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/61192979-1913-47F3-943F-D6A3870F9B8C/15617faa333f982f3a6d99cea2175f54.png\",\n    \"name\": \"Southwest Mississippi Regional Medical Center\",\n    \"slgId\": \"830-13\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F0A185A0-3358-49C6-B25C-51B0B7120ACB/a46fa403ff5e77ff24fb7316707b8c25.png\",\n    \"name\": \"MEA Medical Clinic\",\n    \"slgId\": \"830-15\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Lane\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/77F41977-9EF6-467B-BA43-F1F07C162B64/b985719a257ff9f7ac2b08587a0fab30.png\",\n    \"name\": \"Lane Regional Medical Center\",\n    \"slgId\": \"830-16\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MRMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B57D8C4D-B84B-47D7-8BFE-759AD98D9CDE/950de1b60f7252114d32c5a9804c6315.png\",\n    \"name\": \"Madison Ridgeland Medical Clinic\",\n    \"slgId\": \"830-17\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"LCMHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B3EF9AB-A388-437A-8CD9-5EE59B72EB17/81668e3ed5074a772c2b5deea8ca0226.png\",\n    \"name\": \"Lake Charles Memorial Health System\",\n    \"slgId\": \"830-18\",\n    \"url\": \"https://mychart.lcmh.com/memorialmychart/\"\n  },\n  {\n    \"aliases\": [\n      \"BROC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9E018D94-2560-4CC5-9220-CD7B922C5E94/00175307f75171b5fed31bafa1459feb.png\",\n    \"name\": \"Baton Rouge Orthopaedic Clinic\",\n    \"slgId\": \"830-19\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Neighborhood Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F962E051-D010-499A-BF8C-958BEEA02D2D/daf951c89a645e4f8fd280d73e4fc125.png\",\n    \"name\": \"Neighborhood Health Clinic\",\n    \"slgId\": \"830-20\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"LOS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4626EEF3-25B6-46E6-940D-48C78689F9B5/389570b67dc521ee3e29c0422bfb3cd1.png\",\n    \"name\": \"Louisiana Orthopaedic Specialists\",\n    \"slgId\": \"830-21\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"TWC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7B619047-C78D-462B-883D-EC3E9014DDD1/3a21c4a1814921d7f9d3a02160876657.png\",\n    \"name\": \"The Woman's Clinic\",\n    \"slgId\": \"830-22\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BAC050DD-ECDF-43EF-9897-9BEE501A2E90/172397e53c35c18e59079a8c36cd4557.png\",\n    \"name\": \"Jackson Pulmonary Associates\",\n    \"slgId\": \"830-24\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5AB52ECB-297B-4580-BEBF-F2C88433D16C/26a00341ae270a7e06d4c8b68b0b53f6.png\",\n    \"name\": \"West Ascension Parish Hospital\",\n    \"slgId\": \"830-25\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1020DB21-5FB1-4F0E-8E39-9A6CE19ACB42/5767d91cb1f3c2fb26e4cbd70299b0f6.png\",\n    \"name\": \"North Sunflower Medical Center\",\n    \"slgId\": \"830-27\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/514548BC-6B46-4752-867B-DC24B4DD7C7E/7b6be8a5e972d137fc1d452806253ec2.png\",\n    \"name\": \"Mississippi Arthritis Clinic\",\n    \"slgId\": \"830-28\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F7CD8425-6926-4268-BC25-C4777F8D999A/d90166a01bc30e5d00c1b289012614d7.png\",\n    \"name\": \"Point Coupee General Hospital\",\n    \"slgId\": \"830-29\",\n    \"url\": \"https://mychart.fmolhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B712DAFA-91AF-49AA-97E8-9183F91B12BA/116b2af0e855dcb96ff04b670d9f6317.png\",\n    \"name\": \"Christus Health\",\n    \"slgId\": \"832\",\n    \"url\": \"https://mychart.christushealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9C069438-ED42-49DE-A3D1-A6B2444D5287/109843ebfebd8274dcba895b901c2097.png\",\n    \"name\": \"Santa Fe Imaging\",\n    \"slgId\": \"832-2\",\n    \"url\": \"https://mychart.christushealth.org/santafeimaging/\"\n  },\n  {\n    \"aliases\": [\n      \"CHN\",\n      \"eCommunity\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4D8F61A2-72EE-4393-B30F-094B9FA7ADE8/598e3464a778862e899b8b94c3fc0c3f.png\",\n    \"name\": \"Community Health Network\",\n    \"slgId\": \"834\",\n    \"url\": \"https://mychart.ecommunity.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"DUHS\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/23C0FDA8-3E56-4EB5-A0AB-A5E3135186F2/884de02423e5c24e1fcb02a1dc2ffbf6.png\",\n    \"name\": \"Duke University Health System\",\n    \"slgId\": \"835\",\n    \"url\": \"https://www.dukemychart.org/home/\"\n  },\n  {\n    \"aliases\": [\n      \"LLUMC\",\n      \"Murrieta\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8BA17FEA-13B6-4677-9A68-68B7EAC7FA10/8a922e69af67ca6566f54953784b9b6a.png\",\n    \"name\": \"Loma Linda\",\n    \"slgId\": \"836\",\n    \"url\": \"https://mylluhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"SACHS\",\n      \"Social Action Corps\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3839A5BE-24E6-4078-AFFA-7A10A989C9E1/7b4ee6c913938eb9065fe8ca3dac5b88.png\",\n    \"name\": \"SAC Health System\",\n    \"slgId\": \"836-1\",\n    \"url\": \"https://mychart.ieccn.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"RUHS\",\n      \"RCRMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E3523E5-35E8-4AFE-9C36-3D641B051102/54fcc62d9b338574c83d23840a1561f2.png\",\n    \"name\": \"Riverside University Health System\",\n    \"slgId\": \"836-2\",\n    \"url\": \"https://myruhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D8C128C8-0AD1-4AFE-80F4-4C79E393A86E/98c65432ae6f899762133b42bfef045f.png\",\n    \"name\": \"Maren Medical Group\",\n    \"slgId\": \"836-3\",\n    \"url\": \"https://mymaren.ieccn.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"PRMC\",\n      \"PPG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EB61B1BA-A5C6-4C48-A348-54D50436E32A/14091d75cea99d26e34de84875a8462b.png\",\n    \"name\": \"Parkview Health\",\n    \"slgId\": \"838\",\n    \"url\": \"https://mychart.parkview.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CMCH\",\n      \"CHF\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F4789A15-BF2B-4BB1-A1C9-C12EB7368F1A/d75cde5b0093a8e401954f6301f2806b.png\",\n    \"name\": \"Cameron Health\",\n    \"slgId\": \"838-1\",\n    \"url\": \"https://cameronmch.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E702DF93-5E06-4EBD-9EA4-4F373586CD9F/d1b70e268d67c6c358fcf6c148812d70.png\",\n    \"name\": \"Hillsdale Hospital\",\n    \"slgId\": \"838-2\",\n    \"url\": \"https://hillsdale.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/510B0FB2-ED8D-4CF7-8B6E-0B3EA7164E25/30b5299aa0769cec447d40359b98a4a7.png\",\n    \"name\": \"Adams Memorial Hospital\",\n    \"slgId\": \"838-4\",\n    \"url\": \"https://adams.mychartcc.com/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://chwc.mychartcc.com/Authentication/Login\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/343C85BE-0F2B-485A-A3E6-BCE4F40950D6/ae520d1326cf550867fd1e5b304f1a66.png\",\n    \"name\": \"Parkview Bryan and Montpelier Hospitals\",\n    \"slgId\": \"838-5\",\n    \"url\": \"https://mychart.parkview.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/324535A1-F2A0-4457-ADDF-FC5B5FD03E4B/1ab176ed4042fe6f84deafc0ac2139a1.png\",\n    \"name\": \"Paulding County Hospital\",\n    \"slgId\": \"838-6\",\n    \"url\": \"https://pauldingcountyhospital.mychartcc.com/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/60B5C3C7-3E9D-4745-92C9-028368EB292C/af7f0c99a68164427411fa515e24e893.png\",\n    \"name\": \"Alliance Health Centers\",\n    \"slgId\": \"838-7\",\n    \"url\": \"https://alliance.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [\n      \"Woodlawn\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E0FC6D79-D546-4741-AE2D-62629824687B/62ac0771314466981299a1ec800791d8.png\",\n    \"name\": \"Woodlawn Health\",\n    \"slgId\": \"838-8\",\n    \"url\": \"https://woodlawnhealth.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [\n      \"Aging\",\n      \"&\",\n      \"In\",\n      \"Home\",\n      \"Services\",\n      \"and\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E121FD30-2354-4956-940C-FA93F7A792C1/97851e43fc2197ca1225377753341278.png\",\n    \"name\": \"AIHS Guide\",\n    \"slgId\": \"838-9\",\n    \"url\": \"https://aihsguide.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3054B3B8-694E-4A8F-ABA2-51E663316603/b4764cd38ddfd7c899367539cc7074f9.png\",\n    \"name\": \"Iridescent Health\",\n    \"slgId\": \"838-10\",\n    \"url\": \"https://iridescenthealth.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/57A3F558-510D-4140-853A-9607C685D5A5/29dd70c4a026fc69ca388228780ffcf3.png\",\n    \"name\": \"Linke Urology and Robotics\",\n    \"slgId\": \"838-11\",\n    \"url\": \"https://linkeurology.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E6DADB2C-E9C7-4F7F-94AC-D37F8731B4F6/18ee77437416bd86960ba3361bc3d509.png\",\n    \"name\": \"Monarch Medicine\",\n    \"slgId\": \"838-12\",\n    \"url\": \"https://monarchmedicine.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/236DF432-C3F3-4CDA-B4FC-D46A644C0CFF/90dd6f4eead15284cf816ef1f25ceac8.png\",\n    \"name\": \"Riverview Health\",\n    \"slgId\": \"838-13\",\n    \"url\": \"https://riverview.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C34E48E0-A791-4757-A056-C5A2C78FDF77/47856cf85d1562329b8d205f4643bb1e.png\",\n    \"name\": \"Healthier Moms and Babies\",\n    \"slgId\": \"838-14\",\n    \"url\": \"https://healthiermomsandbabiesin.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/497CC94C-C02A-4242-AA1C-95D510D56015/9c58026edf03bb7c7c0264ebf4af48dd.png\",\n    \"name\": \"Elyussif Orthopedic & Knee Pain Center\",\n    \"slgId\": \"838-16\",\n    \"url\": \"https://thekneepaincenter.mychartcc.com/\"\n  },\n  {\n    \"aliases\": [\n      \"Piedmont\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2AC1AD6E-FB64-4FC2-90C0-C16117EF4879/bd3b3cb1881e0ef78a2e934bcca1c152.png\",\n    \"name\": \"Piedmont Healthcare\",\n    \"slgId\": \"839\",\n    \"url\": \"https://mychart.piedmont.org/prd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DD4F0CF3-D112-4099-88F4-8CE7EB3C6471/4ad49c3b1db4ef3a9fc996b1658ef741.png\",\n    \"name\": \"Shepherd Center\",\n    \"slgId\": \"839-1\",\n    \"url\": \"https://mychart.shepherd.org/ShepherdPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/62CA190A-CD7B-4D6C-96D7-C5CA68C087DC/f21f74b71d915f59e4abdbf7473df6f2.png\",\n    \"name\": \"North Oaks Health System\",\n    \"slgId\": \"840\",\n    \"url\": \"https://mychart.northoaks.org/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/13D24BF9-140F-49AA-B7C6-05C4411A1EFF/a5120b283edc5985c80fd09dd35776a5.png\",\n    \"name\": \"Connecticut Children's\",\n    \"slgId\": \"841\",\n    \"url\": \"https://mychart.connecticutchildrens.org/MYC-PRD/\"\n  },\n  {\n    \"aliases\": [\n      \"JHHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C5D0BEDF-5F17-49DF-B66F-1D43AFB57252/f8e476ec25e63cca7ba5cbce4ca128f2.png\",\n    \"name\": \"Johns Hopkins Medicine\",\n    \"slgId\": \"842\",\n    \"url\": \"https://mychart.hopkinsmedicine.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"AHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/84B96C64-703B-45F5-B769-64D7077A2E20/f2954a7af360f34f49ad773a7d2626f0.png\",\n    \"name\": \"Asante Health System\",\n    \"slgId\": \"843\",\n    \"url\": \"https://mychart.asante.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C26956B7-AF7F-419F-89D5-78923EBC6B82/3dc0a5abafa6f1973a58e9b0bcedd3d8.png\",\n    \"name\": \"Sky Lakes\",\n    \"slgId\": \"843-2\",\n    \"url\": \"https://mychart.skylakes.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Reading\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/90E9776E-43B4-436E-8E03-0FB327016C59/609d8f50ac1f1887cd7ecb5c31d6d450.png\",\n    \"name\": \"Tower Health\",\n    \"slgId\": \"844\",\n    \"url\": \"https://www.mytowerhealth.org/mytowerhealth/\"\n  },\n  {\n    \"aliases\": [\n      \"CHI Memorial\",\n      \"CHI Saint Joseph Health\",\n      \"St. Luke's Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6698C9C0-1B95-47C1-8DD6-DE8D328D6DF9/a286af8b729b95cca13de8d46c5f9985.png\",\n    \"name\": \"CommonSpirit - AR/GA/KY/TN/TX\",\n    \"slgId\": \"845\",\n    \"url\": \"https://patientportalsouth.commonspirit.org/PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C721898C-9665-4060-B39F-FFA501B4EF49/070e7bc0043a792b063e713b3a3becf9.png\",\n    \"name\": \"CHI Memorial\",\n    \"slgId\": \"845-1\",\n    \"url\": \"https://mychart.memorial.org/TN/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F67F60E8-6106-4C86-BCA2-6CA87008DB3E/0620aa27bf215c5b4f2298fac6d18b9a.png\",\n    \"name\": \"CHI St. Joseph's Health\",\n    \"slgId\": \"845-2\",\n    \"url\": \"https://mychart.chisaintjosephhealth.org/KY/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EC1F62FD-C317-4356-9D3E-E7C9D59A9A3E/06e6a340fd58f0da914e6247bb799438.png\",\n    \"name\": \"Memorial Health\",\n    \"slgId\": \"846\",\n    \"url\": \"https://mychart.memorialhealth.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Henry\",\n      \"HFHS\",\n      \"HF\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CEB997CA-8757-4A9D-B3EF-AC551B8CC521/9a482cc0a907e048581eb7c2078daffc.png\",\n    \"name\": \"Henry Ford Health\",\n    \"slgId\": \"848\",\n    \"url\": \"https://mychart.hfhs.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"SHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8C5AD834-CF0A-4291-B940-F9BD7616225B/a4e479c1a3a918853ebc6a08ff4959e6.png\",\n    \"name\": \"Samaritan Health Services\",\n    \"slgId\": \"849\",\n    \"url\": \"https://mychart.samhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/06F5BE68-3546-4EF2-ACE6-D3B1A2F30FFD/4f737ef9cfc0c3426b553c74b5b2bf84.png\",\n    \"name\": \"Overlake\",\n    \"slgId\": \"851\",\n    \"url\": \"https://mychart.overlakehospital.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E8320063-570E-4B21-870C-48AAD9435851/8ff28c03be2b0e6f13d816c488340ee2.png\",\n    \"name\": \"Snoqualmie Valley Health\",\n    \"slgId\": \"851-1\",\n    \"url\": \"https://mychart.connectomc.org/SVH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EE83FA7F-4A04-4E81-8783-50B72685782F/21a7760bec9eef7952add26b645e1d7d.png\",\n    \"name\": \"Proliance Orthopedics & Sports Medicine\",\n    \"slgId\": \"851-2\",\n    \"url\": \"https://mychart.connectomc.org/posm/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FBE69B45-3DDF-4179-8C53-B9C3F1D35F39/5875fd3680b38e03075588b739b60352.png\",\n    \"name\": \"Lexington County Health Services\",\n    \"slgId\": \"852\",\n    \"url\": \"https://mychart.lexmed.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FCD20A6A-4978-4963-8711-B68684F179B5/e1d69a1690361f0e7cbaa79c11a7f86f.png\",\n    \"name\": \"PeaceHealth\",\n    \"slgId\": \"853\",\n    \"url\": \"https://my.peacehealth.org/MyPeaceHealth/\"\n  },\n  {\n    \"aliases\": [\n      \"CRMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A60E703B-B56B-48EA-AA51-A8C80AB4181B/43145ba2012c274ef76a5b15411ed6aa.png\",\n    \"name\": \"Cheyenne Regional Medical Center\",\n    \"slgId\": \"854\",\n    \"url\": \"https://mychart.crmcwy.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6535AF2A-C023-4FFF-A83D-1D1744072B00/1b0f7595746ce9b83c3675fb6c0719d9.png\",\n    \"name\": \"Thunder Basin\",\n    \"slgId\": \"854-1\",\n    \"url\": \"https://mychart.crmcwy.org/tbo/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"MWSS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2C89C12F-E3F4-4535-B772-9A90FB7893C1/194c3fa2c2f672e3e96c8b4f7dd43511.png\",\n    \"name\": \"Mountain West Surgical Specialists\",\n    \"slgId\": \"854-2\",\n    \"url\": \"https://mychart.crmcwy.org/mwss/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/44FFDC06-A2B7-40FF-A953-F3504F4155E9/5dc280e0d8acb3c61f001e754d9c69cd.png\",\n    \"name\": \"Santa Clara\",\n    \"slgId\": \"855\",\n    \"url\": \"https://myhealthonline.sccgov.org/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://my.bswhealth.com/login\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7326D257-ECB8-42BA-B0B3-7A20B6DEFECA/a3be589781fa99427c15a8429dd6e01c.png\",\n    \"name\": \"Baylor Scott & White Health\",\n    \"slgId\": \"856\",\n    \"url\": \"https://mychart.bswhealth.com/fa/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5EAE5BED-5204-4BAB-9516-33CEB7B406FA/23d556db335df3fd939323b76b33db27.png\",\n    \"name\": \"Stanford Children's Health\",\n    \"slgId\": \"857\",\n    \"url\": \"https://mychart.stanfordchildrens.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Mountainstar\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9B635151-ED5B-4D63-8C16-1D00525659B2/7a18cc16db2df899da02ea382f636a5f.png\",\n    \"name\": \"HCA\",\n    \"slgId\": \"858\",\n    \"url\": \"https://mychart.hca-west.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EDC8F1E7-6EDD-44D2-99A1-CD35BBF392EB/6f478b7ef8db619c64e463e92cb7914d.png\",\n    \"name\": \"Alaska Regional Hospital\",\n    \"slgId\": \"858-2\",\n    \"url\": \"https://mychart.mountainstarhealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DA19A269-D8BD-4FC8-8ED2-01D82CFA7CA5/c5ca149d8a01aeb93c292c9c78dfaac1.png\",\n    \"name\": \"WellStar\",\n    \"slgId\": \"863\",\n    \"url\": \"https://mychart.wellstar.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6151ABF4-E436-4268-989A-760A619143AD/6b7070c8708426af3a3ad1c50f0c6904.png\",\n    \"name\": \"LaGrange Internal Medicine\",\n    \"slgId\": \"863-1\",\n    \"url\": \"https://mychart.wellstar.org/WellConnected/\"\n  },\n  {\n    \"aliases\": [\n      \"MMC\",\n      \"MPS\",\n      \"IAI\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5851F94D-CFD1-49C3-AFBE-F5E1BF118FE4/40a0ac732c4de263ee2194dc1b1a124e.png\",\n    \"name\": \"Mercy Medical Center\",\n    \"slgId\": \"864\",\n    \"url\": \"https://mychart.mercycare.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F89AEA0F-9276-461E-9147-274ABE403092/1f938267d075a44feb174adee4bbadf2.png\",\n    \"name\": \"Steindler Orthopedic Clinic\",\n    \"slgId\": \"864-1\",\n    \"url\": \"https://mychart.steindler.com/Steindler/\"\n  },\n  {\n    \"aliases\": [\n      \"UAMS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/62CF4EF0-2872-4C2E-9938-DE66D7A4FD04/7fbd8f7557c6ec3a0a8ca6be901aa2d5.png\",\n    \"name\": \"University of Arkansas for Medical Sciences\",\n    \"slgId\": \"865\",\n    \"url\": \"https://mychart.uamshealth.com/\"\n  },\n  {\n    \"aliases\": [\n      \"FHS\",\n      \"Catholic Health Initiatives\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AB49B66B-952D-47D9-AEE2-1D70FD72AC64/f1162ef5704d1e25da3ba8ef512c7433.png\",\n    \"name\": \"CHI Franciscan Health\",\n    \"slgId\": \"866\",\n    \"url\": \"https://mychart.catholichealth.net/PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8AB9F4D9-8A55-4064-8E13-608414C4DBE9/ed7cdb4fde49b544e0c22e479282d5bc.png\",\n    \"name\": \"Puget Sound Orthopaedics\",\n    \"slgId\": \"866-2\",\n    \"url\": \"https://mychart.pugetsoundorthopaedics.com/CCPSO/\"\n  },\n  {\n    \"aliases\": [\n      \"JMH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E946AAF2-6B96-4AFB-8E22-D7808A6F1A16/28bd1b566592496db28cf8c8d4a5fc52.png\",\n    \"name\": \"John Muir Health\",\n    \"slgId\": \"869\",\n    \"url\": \"https://mychart.johnmuirhealth.com/mychartmcmprd/\"\n  },\n  {\n    \"aliases\": [\n      \"ACH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ACDC2B5D-7F8E-456D-8ABF-89F1C0FCA3B3/71cbef931feb53b570cf63c342ba8701.png\",\n    \"name\": \"CHI Health\",\n    \"slgId\": \"870\",\n    \"url\": \"https://mychart.chihealth.com/prd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EDB4A9A3-F909-4737-A959-1F086A4F95B6/ad761fab00b00ffbfb1a044f7da64728.png\",\n    \"name\": \"CHI St. Alexius Health\",\n    \"slgId\": \"870-2\",\n    \"url\": \"https://mychartsta.chihealth.com/staprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B7811BF0-DD2D-476B-894D-010D9E79DF0A/5fb87a648dc2521c85a47b37e39ff7f4.png\",\n    \"name\": \"Children's Hospital Oakland\",\n    \"slgId\": \"871\",\n    \"url\": \"https://mychart.cho.org/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/custom/mijnRadboud.png\",\n    \"name\": \"Radboudumc\",\n    \"slgId\": \"872\",\n    \"url\": \"https://mijnradboud.radboudumc.nl/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/74774E90-2F9C-4050-9241-50A4657B7F5C/5e691cd553acc1c9e4f3886dc56356d9.png\",\n    \"name\": \"Mass General Brigham\",\n    \"slgId\": \"873\",\n    \"url\": \"https://patientgateway.massgeneralbrigham.org/mychart-prd/\"\n  },\n  {\n    \"aliases\": [\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FAE2802B-6C96-40ED-8F18-453A7390A17C/5e4917652a5c0a01dd37a1d5f0a85cba.png\",\n    \"name\": \"Cambridge University Hospitals\",\n    \"slgId\": \"874\",\n    \"url\": \"https://mychart.addenbrookes.nhs.uk/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4A168067-CA73-4461-AF7A-A9FC06FE8CC3/b17f858671d85976daeb46aacbf8e0f2.png\",\n    \"name\": \"Baptist Memorial Health Care\",\n    \"slgId\": \"875\",\n    \"url\": \"https://mychart.baptistonecare.org/prd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E8C6DA21-2284-4310-92E2-FFE9972D1734/83d757150eac6ae1844572f171d2abf9.png\",\n    \"name\": \"Hometown Health Clinic\",\n    \"slgId\": \"875-1\",\n    \"url\": \"https://mychart.baptistonecare.org/HometownPRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://epicconnect.org/ccprd/CommunityConnect/mychartcc.html\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6EEC02FD-5902-4F32-9092-1EC2858B6116/a6b47bd92ca3c6e24ced3c6937b96650.png\",\n    \"name\": \"Mitchell Family Medicine and The Ark Children's Clinic\",\n    \"slgId\": \"875-2\",\n    \"url\": \"https://epicconnect.org/ccprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6C2578B5-0B9E-44E8-B0E5-3131BB541D85/7401e51b04d540eb1f3c190acce15c28.png\",\n    \"name\": \"Yazoo City Medical Clinic\",\n    \"slgId\": \"875-3\",\n    \"url\": \"https://mychart.baptistonecare.org/YCMCPRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D32D5570-700B-4937-BF40-8D70DD4FFA97/07b2b1fdf9d14d45771d92a3129767db.png\",\n    \"name\": \"Mississippi Pediatric Endocrine Care, PLLC\",\n    \"slgId\": \"875-5\",\n    \"url\": \"https://mychart.baptistonecare.org/MSPedEndPRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3B54CC08-1CA3-48E0-8AF0-EE56342B9BB8/05418a6120126b1bb273e66581cb817c.png\",\n    \"name\": \"Khumalo Foot and Ankle Clinic\",\n    \"slgId\": \"875-6\",\n    \"url\": \"https://mychart.baptistonecare.org/Khumaloprd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/97640920-3E47-4AF0-8D4D-53D169934037/7780fc11ec08ca7796e5aef1e2a8db56.png\",\n    \"name\": \"Harmony\",\n    \"slgId\": \"875-7\",\n    \"url\": \"https://mychart.baptistonecare.org/HarmonyPRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A6415FA1-DF10-4CF7-9FA5-7B0B222AEE08/e50c5a6025ead75752a96e7c2c70f5ff.png\",\n    \"name\": \"University Clinical Health\",\n    \"slgId\": \"875-8\",\n    \"url\": \"https://mychart.baptistonecare.org/UCHprd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B5373D21-81DF-4161-BEFD-A503C6C5B60F/d718af3fc576815cdb5d647cfadeb4d7.png\",\n    \"name\": \"Surgical Clinic Associates\",\n    \"slgId\": \"875-9\",\n    \"url\": \"https://mychart.baptistonecare.org/SCAprd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2424106F-D50E-428E-8A47-C2F005D58A38/2137dfcd33da5fc7710c99a82dda8d1a.png\",\n    \"name\": \"Oxford Neurology\",\n    \"slgId\": \"875-10\",\n    \"url\": \"https://mychart.baptistonecare.org/OxfordNeurologyPRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/06E88294-ED88-41D1-9A32-E36C12B1D6AE/541e572e1603346c266a15dca3a3ba1b.png\",\n    \"name\": \"MCAM\",\n    \"slgId\": \"875-11\",\n    \"url\": \"https://mychart.baptistonecare.org/MCAMprd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/09CF7C56-09FB-4F7E-A7F8-6FBEE862BBD2/a5d4c152f1f09f2622a582156a18a689.png\",\n    \"name\": \"Central Surgical Associates\",\n    \"slgId\": \"875-12\",\n    \"url\": \"https://mychart.baptistonecare.org/CSAPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/65AE6B5B-C955-4135-89F0-FBF42738D638/b10f59e1820dd9d5aed396d4545444fe.png\",\n    \"name\": \"Mercy Health Services\",\n    \"slgId\": \"876\",\n    \"url\": \"https://mychart.mdmercy.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CE9A1099-7088-40E4-89AF-7CBF93AB430B/d48db7c71683b89d45fd13d1d66df3cd.png\",\n    \"name\": \"Saint Luke's Health System\",\n    \"slgId\": \"877\",\n    \"url\": \"https://mysaintlukes.corp.saint-lukes.org/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"covenant\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/10E4EA37-8728-4D78-B59E-924BCA870EF5/d20905dba73c6936b6b77a99142012cc.png\",\n    \"name\": \"MercyOne\",\n    \"slgId\": \"878-2\",\n    \"url\": \"https://mychart.trinity-health.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B9D54CE4-0EA7-41CF-A3D8-FEC61D3F0BFA/bb9a017751b51aab748921c12a197ff7.png\",\n    \"name\": \"Ballad Health\",\n    \"slgId\": \"879\",\n    \"url\": \"https://mychart.balladhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"East Tennessee State University Health\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FF631305-2062-4344-AFE5-22680E0546F6/e57e99ac5106106c3c731fcdf223cf3a.png\",\n    \"name\": \"ETSU Health\",\n    \"slgId\": \"879-1\",\n    \"url\": \"https://mychart.etsuhealth.org/community_connect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/61D74F94-186E-4D5F-947E-95FF89E27837/8d6c1610075f8c7eeabd99d4b4b2afff.png\",\n    \"name\": \"Boston Medical Center\",\n    \"slgId\": \"880\",\n    \"url\": \"https://mychart.bmc.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1A977980-2A0E-4399-B7AC-E95044D27380/6e62fe46b4aa82e0e0fa47f2195ae27a.png\",\n    \"name\": \"Codman Square Health Center\",\n    \"slgId\": \"880-1\",\n    \"url\": \"https://mychart.bmc.org/codman/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F9CA7AB0-AD5E-46C5-A3A5-14D641F22228/d6c744f76a30fb19eb7cb908c5565f60.png\",\n    \"name\": \"DotHouse Health\",\n    \"slgId\": \"880-2\",\n    \"url\": \"https://mychart.bmc.org/dothouse/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5844A7C9-600F-40D3-86A4-30FEC5C26BB7/29c4f17888d5fcd37dca1f47ba76103d.png\",\n    \"name\": \"Endeavor Health\",\n    \"slgId\": \"881\",\n    \"url\": \"https://mychart.nch.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AE54B7C8-F0F2-4A17-97E9-5EB470F29246/3227ded2ab09c813e650dbde5b1a052e.png\",\n    \"name\": \"UNC Health Care\",\n    \"slgId\": \"882\",\n    \"url\": \"https://myuncchart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/614F0865-DBF4-4DA7-8EF3-FEDA4569E66C/19a6c24d376b8bc82f29170ee8e4f330.png\",\n    \"name\": \"Alignment Corporation\",\n    \"slgId\": \"882-1\",\n    \"url\": \"https://www.myuncchart.org/Alignment/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B334ECF1-DA70-4BBE-8310-74F49BE41A8F/5fd6a1ef9bde0fb288a8deae4a676659.png\",\n    \"name\": \"Robeson Health Care\",\n    \"slgId\": \"882-2\",\n    \"url\": \"https://www.myuncchart.org/RHCC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/193EED33-572F-4752-842C-F34679C312BB/24240b9719fbf0608721527dca77fb67.png\",\n    \"name\": \"Adams School of Dentistry for UNC\",\n    \"slgId\": \"882-3\",\n    \"url\": \"https://www.myuncchart.org/UNCADAMSDENTISTRY/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5CE8F8A6-6C84-4EE7-8742-B4B582416C89/9b50b9e18bdb1710c4e311946639d4e6.png\",\n    \"name\": \"OIC of Rocky Mount\",\n    \"slgId\": \"882-4\",\n    \"url\": \"https://www.myuncchart.org/oicmedical/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0F62C1F3-1899-4037-B80F-5C3C5613A8EA/425d1e7305f13b6e2ef0ad95f3b60639.png\",\n    \"name\": \"DCO Public Health\",\n    \"slgId\": \"882-5\",\n    \"url\": \"https://www.myuncchart.org/dcopublichealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C81C4691-E961-4185-8073-685FE184B592/7940d15afaf1b9383f5ffa9324e08b96.png\",\n    \"name\": \"MedNorth\",\n    \"slgId\": \"882-7\",\n    \"url\": \"https://www.myuncchart.org/Mednorth/\"\n  },\n  {\n    \"aliases\": [\n      \"Kingsbrook\",\n      \"Interfaith\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9C7E68F5-097F-41D6-A537-0704459F0316/a1493e3af5bfad40c8ec476a67d454e1.png\",\n    \"name\": \"One Brooklyn Health System\",\n    \"slgId\": \"883\",\n    \"url\": \"https://www.myonebrooklynhealth.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Brooklyn\",\n      \"Bronx\",\n      \"Manhattan\",\n      \"Queens\",\n      \"Elmhurst\",\n      \"Coney\",\n      \"Woodhull\",\n      \"Bellevue\",\n      \"Jacobi\",\n      \"Lincoln\",\n      \"Harlem\",\n      \"Metropolitan\",\n      \"Gotham\",\n      \"Kings\",\n      \"Seaview\",\n      \"Morrisania\",\n      \"Belvis\",\n      \"Cumberland\",\n      \"East\",\n      \"Gouverneur\",\n      \"Sydenham\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1A5BB2C5-BFB9-4A27-9E95-DF0DE118172D/dc7fa496b1cd059ceb5c0f6a012aa785.png\",\n    \"name\": \"NYC Health and Hospitals\",\n    \"slgId\": \"884\",\n    \"url\": \"https://epicmychart.nychhc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E08F31BA-3D62-40A8-B27D-BB3EA3436E97/428b0e8126fc27cd74871ecacbe3f4aa.png\",\n    \"name\": \"OhioHealth\",\n    \"slgId\": \"886\",\n    \"url\": \"https://mychart.ohiohealth.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ED842E96-3B8D-46B7-963B-1BA952EA0D45/c64aa70c56e871729930569d5d6121e0.png\",\n    \"name\": \"Saint Francis Health System\",\n    \"slgId\": \"888\",\n    \"url\": \"https://mychart.saintfrancis.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/11524199-737B-4E97-8578-F066DC0F1D13/992c559586faa7949ddea7917ef65c1a.png\",\n    \"name\": \"Oklahoma State University\",\n    \"slgId\": \"888-1\",\n    \"url\": \"https://osumedicinemychart.com/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"TBJ\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5D40FA6E-B3EE-47D4-B66C-2234DFE4B4E2/51e1bf2dde95c1164dee8c58c2b51c5c.png\",\n    \"name\": \"Tulsa Bone and Joint Associates\",\n    \"slgId\": \"888-3\",\n    \"url\": \"https://mychart.sfcommunityconnect.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"BILH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5FA8CC57-8E3F-4B3B-896F-1E83AA84FA0D/089af2cebe6770cfaeddddcbb94d8ef5.png\",\n    \"name\": \"Beth Israel Lahey Health\",\n    \"slgId\": \"890\",\n    \"url\": \"https://mychart.bilh.org/MyChart-BILH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9A280F32-02D4-4EE7-B500-ECBC94467244/a8270461925a6dd5d76461ecca9da048.png\",\n    \"name\": \"WakeMed Health and Hospitals\",\n    \"slgId\": \"892\",\n    \"url\": \"https://mychart.wakemed.org/MyChart-PRD/\"\n  },\n  {\n    \"aliases\": [\n      \"CNE\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5EB94F36-F4D3-4FA1-9195-F904CED9F1F7/a623b216252db68078aca64934bc5096.png\",\n    \"name\": \"Care New England\",\n    \"slgId\": \"893\",\n    \"url\": \"https://mychart.carene.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C3E6ABA4-8EFD-4D81-8A0C-53D2C6336D84/fbf985daeac42eb1333975aa5f6b945d.png\",\n    \"name\": \"CaroMont Health\",\n    \"slgId\": \"894\",\n    \"url\": \"https://mychart.caromonthealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Lifespan\",\n      \"Brown University Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BAA79554-A977-4EFF-BA2E-FEDE13CF1177/e1e883d7a99b02bbb150c281c78864f2.png\",\n    \"name\": \"Lifespan\",\n    \"slgId\": \"895\",\n    \"url\": \"https://mychart.brownhealth.org/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2505588D-11C0-496F-82BE-CFBFD92B9A91/a4c300ad433613cea454696090342f54.png\",\n    \"name\": \"Women's College Hospital\",\n    \"slgId\": \"897\",\n    \"url\": \"https://www.wchchart.ca/Mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B405BED2-B252-41FC-9404-F3ED010E1885/f90ab097bb84da3c8362a5847e68f1b8.png\",\n    \"name\": \"Allegheny Health Network\",\n    \"slgId\": \"898\",\n    \"url\": \"https://mychart.ahn.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CFF3443F-D12E-44FB-A7A7-6288BE98C38A/b221d5efc2c953c70d26b2f1c211189c.png\",\n    \"name\": \"AdvantageCare Physicians\",\n    \"slgId\": \"901\",\n    \"url\": \"https://my.acpny.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/717B36AE-A43F-45D2-9C27-BFA38D21A056/fd026f79e4c1a23ccdad123b23d9e43e.png\",\n    \"name\": \"Lehigh Valley Health Network\",\n    \"slgId\": \"902\",\n    \"url\": \"https://www.mylvhn.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9D088464-A6BA-4EBA-9C24-AE6CDFEE5970/70e201e3bc4600326f481e13000dae02.png\",\n    \"name\": \"Valley Health Partners\",\n    \"slgId\": \"902-1\",\n    \"url\": \"https://www.myvhponline.org/myvhp/\"\n  },\n  {\n    \"aliases\": [\n      \"Bureau\",\n      \"Allentown Health Bureau\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DEE421D5-3D21-48D7-BA92-81F4412DAFCA/1f2b7db3efb1165c05c2eb16f72e45a4.png\",\n    \"name\": \"City of Allentown Pennsylvania\",\n    \"slgId\": \"902-2\",\n    \"url\": \"https://myahbonline.org/myahb/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D130BB07-1D7A-4747-A0F2-A4155C05F190/2ef82012f8349240ecf60ae979c1eb77.png\",\n    \"name\": \"Bethlehem Health Bureau\",\n    \"slgId\": \"902-3\",\n    \"url\": \"https://www.mybhbonline.org/mybhb/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/77164E2C-0394-4091-9BF4-71A653E6B33E/3c25530161bcf294a52aa5ec033cae37.png\",\n    \"name\": \"Pocano Ambulatory Surgery Center\",\n    \"slgId\": \"902-4\",\n    \"url\": \"https://mypasconline.com/mypasc/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/42955B06-F734-4DD7-9079-5B37A412BC40/68cc40de2cf89a28a7c2abee1cbbc16c.png\",\n    \"name\": \"MyConnect Health Portal\",\n    \"slgId\": \"902-5\",\n    \"url\": \"https://myconnectportal.com/MyConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/80160441-B729-415B-BC37-9A2A6295AC45/c01baf2efd6261836c1f6bb6cd48cbd0.png\",\n    \"name\": \"City of Hope\",\n    \"slgId\": \"903\",\n    \"url\": \"https://www.mycityofhope.org/Mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5B5F51E5-FD95-4551-8594-B58CF51B3390/32d87356d64c7c13dff565bdfc979f9b.png\",\n    \"name\": \"Hamilton Health Sciences\",\n    \"slgId\": \"904\",\n    \"url\": \"https://mychart.hhsc.ca/MyChartEpicPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"Navicent\",\n      \"Wake Forest\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0CDF57FF-11CD-4A21-98A7-3D40E5EE2897/0eacd6be74fe01705d56a13bc1140f5a.png\",\n    \"name\": \"Atrium Health\",\n    \"slgId\": \"905\",\n    \"url\": \"https://my.atriumhealth.org/MyAtriumHealth/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/173FB720-D1EF-4C5F-BD2C-82AC96E45AE3/a38a5d191894615763d3693a0cfa08c1.png\",\n    \"name\": \"Scotland Health Care System\",\n    \"slgId\": \"905-2\",\n    \"url\": \"https://www.myscotlandhealth.org/MyScotlandHealth/\"\n  },\n  {\n    \"aliases\": [\n      \"Foothills\",\n      \"Saluda\",\n      \"Rosenberg\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8AE55A04-272D-4EFD-8A5F-752C00340089/dc1f366f04878d6dfd6b22db937aea9b.png\",\n    \"name\": \"St. Luke's Hospital\",\n    \"slgId\": \"905-3\",\n    \"url\": \"https://www.mystlukeschart.org/MyStLukesChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/37B2D188-184A-42E3-8F05-54C478367804/f781af4b7e950c5c6e2f9cd27a554789.png\",\n    \"name\": \"Morehouse Medicine\",\n    \"slgId\": \"905-5\",\n    \"url\": \"https://my.morehousehealthcare.com/MHC/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/418DB21D-C916-46DB-82A3-63E73AF47143/717b03b2935aa65b18b74842c150c694.png\",\n    \"name\": \"Alleghany Health\",\n    \"slgId\": \"905-6\",\n    \"url\": \"https://my.alleghanyhealth.org/alh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D4364012-0ACC-4DA8-8FC4-335BFCDE9C56/47d0374e5dd73277c8f8a0e41be3cb58.png\",\n    \"name\": \"Camino Health Center\",\n    \"slgId\": \"905-7\",\n    \"url\": \"https://my.caminosalud.com/camino/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2B678280-B07D-4FA6-9EB6-97C0B54CE0CE/7555db616560cfc11efccafefc51d7ff.png\",\n    \"name\": \"St. David's\",\n    \"slgId\": \"906\",\n    \"url\": \"https://mychart.stdavids.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6527C52A-44F7-40FB-985A-3CF31A46C950/447a463f27ddec7657e251bf395e753f.png\",\n    \"name\": \"Arlington Maternal Fetal Specialists\",\n    \"slgId\": \"906-1\",\n    \"url\": \"https://mychart.stdavids.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"AHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D501183C-0DDA-4029-941D-3536832FE333/2ec809264c9751f0c91952b772ca86c2.png\",\n    \"name\": \"Atlantic Health\",\n    \"slgId\": \"907\",\n    \"url\": \"https://mychart.atlantichealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1BDD6F86-E733-4510-A168-371C7490C2A1/94720c6a8396d7c4768a995beed1c7ff.png\",\n    \"name\": \"Hartford Healthcare\",\n    \"slgId\": \"908\",\n    \"url\": \"https://mychartplus.org/myChart/\"\n  },\n  {\n    \"aliases\": [\n      \"AdRad\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E88D994D-C733-48F9-AB68-6D5F3C21DBDD/7dea4929845bd35d4f6f4ca7eff2f7e0.png\",\n    \"name\": \"Advanced Radiology\",\n    \"slgId\": \"908-1\",\n    \"url\": \"https://mychartplus.org/AdRad/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4110F5B8-FF29-4662-8DD1-96F339D5611E/d3cdbc95899c0faef456b2420fd4345b.png\",\n    \"name\": \"Connecticut GI\",\n    \"slgId\": \"908-2\",\n    \"url\": \"https://mychartplus.org/CTGI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DF896436-C493-4A8C-866A-7984D93BB1C3/fcd5e4d822537ec9c0b0adbb908abe87.png\",\n    \"name\": \"Physicians Alliance of Connecticut\",\n    \"slgId\": \"908-3\",\n    \"url\": \"https://mychartplus.org/PACT/authentication/login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/23DB0C23-BA84-4A4A-B690-0862892B052A/8e310ec307dce4dcbc86a744d3184a8f.png\",\n    \"name\": \"Starling\",\n    \"slgId\": \"908-4\",\n    \"url\": \"https://mychartplus.org/Starling/\"\n  },\n  {\n    \"aliases\": [\n      \"OAH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B3BC08F6-B0AA-4653-A6E8-D7FBD9CCB89F/1cd8f7e6ef8279adf97ca2e53c96ae7c.png\",\n    \"name\": \"Orthopedic Associates of Hartford\",\n    \"slgId\": \"908-5\",\n    \"url\": \"https://mychartplus.org/OAH/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1ACD605C-1D25-441A-B855-3F526249CD5B/3f594a71e15c5a5586a2c7c8f3714935.png\",\n    \"name\": \"Connecticut Orthopaedics\",\n    \"slgId\": \"908-6\",\n    \"url\": \"https://mychartplus.org/CTOR/\"\n  },\n  {\n    \"aliases\": [\n      \"CT ENT\",\n      \"ENT Kids\",\n      \"CT Ear, Nose & Throat\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/484DE8C6-7074-41C3-93A2-1868A3A5C48E/740a2eceeb19dc4b635f757dbf60d3bc.png\",\n    \"name\": \"Connecticut Ear, Nose & Throat Associates\",\n    \"slgId\": \"908-7\",\n    \"url\": \"https://mychartplus.org/ctent/\"\n  },\n  {\n    \"aliases\": [\n      \"ECC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F5368E6-4766-4D5C-AFCA-A99C794E3434/163c690ca7f30f15af10ad7de84fff0c.png\",\n    \"name\": \"Endoscopy Center of Connecticut\",\n    \"slgId\": \"908-8\",\n    \"url\": \"https://mychartplus.hhchealth.org/ecc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1839A31E-643A-4343-AFE6-662DFFF5DCE7/78544f462d14498e39aee1f1e2b7bffe.png\",\n    \"name\": \"Comprehensive Orthopaedics\",\n    \"slgId\": \"908-9\",\n    \"url\": \"https://mychartplus.org/comc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AB4031CD-A7C0-450E-A244-67909DC1ACD7/150ba516764d3b84653b253596ac19de.png\",\n    \"name\": \"SCA Health\",\n    \"slgId\": \"908-10\",\n    \"url\": \"https://mychartplus.org/sca/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FE256D2B-99F2-4B36-90B0-F440BB33D60F/1e254930653a134c1216f3c871a2ce6b.png\",\n    \"name\": \"University of Texas MD Anderson Cancer Center\",\n    \"slgId\": \"909\",\n    \"url\": \"https://my.mdanderson.org/Account/Login\"\n  },\n  {\n    \"aliases\": [\n      \"WPH\",\n      \"MMC\",\n      \"MHS\",\n      \"SMG\",\n      \"MNH\",\n      \"MMV\",\n      \"MNR\",\n      \"White Plains\",\n      \"Scarsdale\",\n      \"Nyack\",\n      \"St. Luke's Cornwall\",\n      \"Burke\",\n      \"Mount Vernon\",\n      \"New Rochelle\",\n      \"Cedar\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0F68B341-F4DB-48E0-9282-4EEAE630A07E/35323924f8ac7b3afc7174fa29cfc651.png\",\n    \"name\": \"Montefiore Health System, Inc\",\n    \"slgId\": \"910\",\n    \"url\": \"https://mychart.montefiore.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/545A6802-0061-41F3-982A-4D2900FD1713/39d15abf00e208d277f1681d90aca3b1.png\",\n    \"name\": \"Amsterdam UMC\",\n    \"slgId\": \"911\",\n    \"url\": \"https://mijndossier.amsterdamumc.nl/MyChart-PRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DB28FC91-3A6F-4455-9020-80152607E838/19e8b662a864effb099ed0f6220ad07f.png\",\n    \"name\": \"Prime Healthcare\",\n    \"slgId\": \"913\",\n    \"url\": \"https://mychart.primehealthcare.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8AAB2380-49D2-4C40-98A0-1172562CA450/8fce41f1d6ba7e04e1794f34caa75f5b.png\",\n    \"name\": \"Southcoast Health System\",\n    \"slgId\": \"914\",\n    \"url\": \"https://mychart.southcoast.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C0ED286C-818F-4137-8FDA-BF0289B5013D/bdf28ce6cc2b0fa2d81fcd8dcf41405d.png\",\n    \"name\": \"Prisma Health\",\n    \"slgId\": \"915\",\n    \"url\": \"https://mychart.prismahealth.org/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A8EC5AF4-5AA5-42C2-AF08-F2D7BA98B02D/7c1466b666de6b9830ca8cbe9f039e26.png\",\n    \"name\": \"MinSP\",\n    \"slgId\": \"916\",\n    \"url\": \"https://minsundhedsplatform.dk/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5668A828-7983-49D4-BD26-6261D74243DA/c0ef1e594616ca3c3663c2e1bab5b486.png\",\n    \"name\": \"Johns Hopkins Aramco Healthcare\",\n    \"slgId\": \"918\",\n    \"url\": \"https://mychart.jhah.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://www.slhn.org/mychart/login\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B3C09DF4-55A7-4E4F-B6BE-34FDC97CD330/4f4692c692a7ef4d01dab35e3e799f64.png\",\n    \"name\": \"St Luke's\",\n    \"slgId\": \"919\",\n    \"url\": \"https://mychart.slhn.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"David Chui, MD\",\n      \"Modern Orthopedics\",\n      \"Peter Youn, MD\",\n      \"Manjul Patwardhan, MD\",\n      \"Shiva Mohtashami, MD\",\n      \"Marc Zare, MD\",\n      \"Mountain View Surgery Center\",\n      \"Agah Medical\",\n      \"SJ Ear and Sinus Center\",\n      \"Western Radiation Oncology\",\n      \"Silicon Valley Chest and Sleep Medicine\",\n      \"Andrew Kees Roorda, M.D.\",\n      \"South Bay Allergy and Asthma\",\n      \"Silicon Valley Sports Medicine\",\n      \"Vivaya Jujare, MD\",\n      \"Advanced Cardiology Specialists\",\n      \"San Jose Pacific Neurology Center\",\n      \"El Camino GI Medical Associates\",\n      \"Los Gatos Premiere Medicine\",\n      \"Valley Medical Consultants (Cardio)\",\n      \"Valley Medical Consultants (Neuro)\",\n      \"Apex Cardiology\",\n      \"San Jose Integrative Wellness Center\",\n      \"California Movement Disordrs Center\",\n      \"John Dang, MD\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/09C31F41-339C-476E-AB0D-D37843033FED/61fd2ac5fc0b298ab2d2e7878e4f5324.png\",\n    \"name\": \"El Camino Health\",\n    \"slgId\": \"920\",\n    \"url\": \"https://mycare.elcaminohospital.org/mychart\"\n  },\n  {\n    \"aliases\": [\n      \"Silicon Valley Sports Medicine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/default.png\",\n    \"name\": \"El Camino\",\n    \"slgId\": \"920-1\",\n    \"url\": \"https://mycare.elcaminohospital.org/ccmycare/\"\n  },\n  {\n    \"aliases\": [\n      \"CVS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F85923ED-C0AA-4FDE-9C4F-CE7747CD1D88/059442a8be78fd9f7d096ccad6714c11.png\",\n    \"name\": \"Minute Clinic\",\n    \"slgId\": \"921\",\n    \"url\": \"https://mychart.minuteclinic.com/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F5218193-AE72-494D-95B3-6F96A12C2978/86320775d23c39ebf4eaf1d6670830b4.png\",\n    \"name\": \"Houston Methodist\",\n    \"slgId\": \"922\",\n    \"url\": \"https://mychart.houstonmethodist.org/mychart-prod/\"\n  },\n  {\n    \"aliases\": [\n      \"MCH\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/92D41D89-93C0-4627-8FE4-3FF0319725DE/e8b319523ab9ebce60c4814734206dec.png\",\n    \"name\": \"Medical Clinic of Houston L.L.P.\",\n    \"slgId\": \"922-1\",\n    \"url\": \"https://mchllp.houstonmethodist.org/MCHMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F02487C-9F5E-4B3D-BD3D-BD76E908E6B4/bf8e73d698f96fc655b302ccdbe3bc3d.png\",\n    \"name\": \"ProMedica\",\n    \"slgId\": \"924\",\n    \"url\": \"https://mychart.promedica.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"HSS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3D29CC50-4211-4E3B-9286-0BB05C025E16/86a4eb775d933ee90213c43183aed0d1.png\",\n    \"name\": \"Hospital for Special Surgery\",\n    \"slgId\": \"927\",\n    \"url\": \"https://myhss.hss.edu/MyHSS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D051F1F4-565C-45B8-BE9F-D17E52B05D49/f9fb237b8789e9e0fa2428ac00a318da.png\",\n    \"name\": \"The Royal Childrens Hospital\",\n    \"slgId\": \"929\",\n    \"url\": \"https://myrchportal.rch.org.au/MyRCHPortal/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [\n      \"Royal Women\",\n      \"Royal Melbourne\",\n      \"Peter Mac\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1A109291-F542-4AA7-B060-9DEE35007EC5/cbcda4d04e5e2f932ab2dd61e06b270a.png\",\n    \"name\": \"Parkville Health Services\",\n    \"slgId\": \"929-1\",\n    \"url\": \"https://health-hub.org.au/Health-Hub/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7C458233-67C2-40F0-8F48-A9C563EE1E11/d492bd1e9bc841933e26b5bdab29b142.png\",\n    \"name\": \"Denver Health\",\n    \"slgId\": \"932\",\n    \"url\": \"https://mychart.denverhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9C784D95-5407-47CF-9DFC-F6121C36A67F/dcd935651ed015f221bde993cfc0e697.png\",\n    \"name\": \"Medisch Centrum Leeuwarden\",\n    \"slgId\": \"933\",\n    \"url\": \"https://www.mijnmcl.nl/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/639936F9-A667-4674-9431-6D3E00A8E8FB/ba4ca39d91601dea26ea133014c8d5f9.png\",\n    \"name\": \"INTEGRIS Health\",\n    \"slgId\": \"934\",\n    \"url\": \"https://integrisandme.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/74413C11-99B6-49DF-BBD5-FE118FB6D16C/4e6603523d94fa42fa74205b312b68ec.png\",\n    \"name\": \"HPI\",\n    \"slgId\": \"934-1\",\n    \"url\": \"https://mychart.communityhospitalokc.com/MyChartHPI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/62B09227-2FE9-4787-8176-124A7A3165B9/cec9aa5fca8ffbcae48aebbebef7ee12.png\",\n    \"name\": \"Baptist Healthcare\",\n    \"slgId\": \"935\",\n    \"url\": \"https://mychart.baptisthealth.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"BMC\",\n      \"Total Care\",\n      \"Bend Memorial Clinic\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BDDBAB36-1221-4ACF-811E-97645B88F0C7/f2f2322a846e292e273cc968a7781c4f.png\",\n    \"name\": \"Summit Health - Oregon\",\n    \"slgId\": \"936\",\n    \"url\": \"https://mychart.bmctotalcare.com/mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/75BDDD65-DDDA-4E5A-9BBC-0DFBAC683B34/ed01377a03c452fb4596ee713fcec9e5.png\",\n    \"name\": \"Riverside Medical Center\",\n    \"slgId\": \"937\",\n    \"url\": \"https://www.riversidemychart.org/MyChart-PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4B717686-2BC4-47F7-8E8B-2A1F2835D34F/412ed3077f949f4a167b20590a866933.png\",\n    \"name\": \"Spartanburg Regional Healthcare System\",\n    \"slgId\": \"939\",\n    \"url\": \"https://mychart.spartanburgregional.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6AE2D9DA-DA59-4C0B-B68D-5E912C915A47/7ecd554547e66a1034518e6faca0a6dc.png\",\n    \"name\": \"Cottage Health System\",\n    \"slgId\": \"941\",\n    \"url\": \"https://mychart.sbch.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EF4FBA96-A9EB-4FB0-A8C0-790F97DC0BE6/477a1263357ea878b81b0397240793c8.png\",\n    \"name\": \"CommonSpirit Mountain Region\",\n    \"slgId\": \"942\",\n    \"url\": \"https://epic.mycenturahealth.org/MCH/\"\n  },\n  {\n    \"aliases\": [\n      \"YFVWC\",\n      \"Family Medical Center\",\n      \"Unify Community Health\",\n      \"Salud\",\n      \"Rosewood\",\n      \"Lancaster\",\n      \"Miramar\",\n      \"Mirasol\",\n      \"Mountainview\",\n      \"MC. View\",\n      \"Grandview\",\n      \"SSIC\",\n      \"Lincoln\",\n      \"Valley Vista\",\n      \"FMC\",\n      \"Mid-Valley\",\n      \"Sunnyside\",\n      \"Toppenish\",\n      \"Granger\",\n      \"Coastal\",\n      \"Clatskanie\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B1578C03-1EC4-48B1-B0DF-0AF47B4E2983/c3a01644e8e230233e6be61a76e6aa86.png\",\n    \"name\": \"Yakima Valley Farm Workers Clinic\",\n    \"slgId\": \"943\",\n    \"url\": \"https://mychart.yvfwc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C3FC5B53-A627-4B32-8FD2-3674F2E10BC2/7945f4461dfd1195f1a847dc4d98e3ea.png\",\n    \"name\": \"Bayhealth Medical Center\",\n    \"slgId\": \"944\",\n    \"url\": \"https://epmychart.bayhealth.org/Mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AFAF5298-4BCF-445F-AF9C-36E063FE3A9C/c4e4506c88eb827b4f917bf51e4c7971.png\",\n    \"name\": \"First State Infectious Diseases\",\n    \"slgId\": \"944-2\",\n    \"url\": \"https://epmychart.bayhealth.org/FirstStateID\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E6CBB7C1-E95D-4227-A918-74AAF94578E5/37b6d9d10d2cc880a9c144d58a8468d7.png\",\n    \"name\": \"Dedicated to Women\",\n    \"slgId\": \"944-3\",\n    \"url\": \"https://epmychart.bayhealth.org/DedicatedtoWomen/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D644C857-F331-4581-AF6F-4271872491DD/e10b4fe8edb40c379e53def3981dfe95.png\",\n    \"name\": \"CNMRI\",\n    \"slgId\": \"944-5\",\n    \"url\": \"https://epmychart.bayhealth.org/CNMRI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B00B16B7-5334-482A-B973-ED703F1C7DB9/a3c88780575d9f34f7a772485ad1e39f.png\",\n    \"name\": \"Eranga Cardiology\",\n    \"slgId\": \"944-6\",\n    \"url\": \"https://epmychart.bayhealth.org/ErangaCardio/\"\n  },\n  {\n    \"aliases\": [\n      \"Saint Francis Healthcare System - Cape Girardeau, MO\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8917CCD9-A056-4E54-B818-450B3DB05F24/4129d31cede6de839e4ebf7173f301ee.png\",\n    \"name\": \"Saint Francis Healthcare System\",\n    \"slgId\": \"945\",\n    \"url\": \"https://mychart.sfmc.net/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/51AE420F-AF16-42E2-8A0E-15BB509669A5/0605f6207946201c571fa3fa519eba93.png\",\n    \"name\": \"Select Medical\",\n    \"slgId\": \"948\",\n    \"url\": \"https://mychart.selectmedical.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F45BA4A4-86BC-41C8-9143-1E5312151BFE/b43cf5d87bd5d8e2c57d00c51e2398c8.png\",\n    \"name\": \"Concentra\",\n    \"slgId\": \"948-1\",\n    \"url\": \"https://mychart.concentra.com/ConcentraMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B153A67F-20D7-4C9E-8735-6C4231DD7F16/ba1f649a0ad817c31b6c89863772cfac.png\",\n    \"name\": \"University Health\",\n    \"slgId\": \"950\",\n    \"url\": \"https://mychart.uhsystem.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"GBMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B5F5D67-1075-4EA8-92D1-039B42B801CE/ddcc3683b017d31fb6c22dac5d29aabe.png\",\n    \"name\": \"Greater Baltimore Medical Center\",\n    \"slgId\": \"954\",\n    \"url\": \"https://eportal.gbmc.org/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7BF485B2-90B3-4825-B5D5-E97C91B1F400/2e46ace04669e7d96ad08296cc573bcb.png\",\n    \"name\": \"St Jansdal Ziekenhuis\",\n    \"slgId\": \"955\",\n    \"url\": \"https://mijn.stjansdal.nl/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Jefferson Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/39361CA4-41B4-4557-BC9C-16A95EF57FB1/fd17fa4bc03e2b062f78cde379135da8.png\",\n    \"name\": \"Thomas Jefferson University Health System\",\n    \"slgId\": \"957\",\n    \"url\": \"https://mychart.jefferson.edu/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/custom/mayoClinic.png\",\n    \"name\": \"Mayo Clinic\",\n    \"slgId\": \"958\",\n    \"url\": \"https://mayoclinichealthsystem.org/patient-online-services\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B02E68E5-1674-4498-BDBC-B66908BBFEDE/f67bcf3e55401ffdee2d6cc03d0c06aa.png\",\n    \"name\": \"Riverside Health System\",\n    \"slgId\": \"961\",\n    \"url\": \"https://mychart.riversideonline.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2A86AEDF-EAE9-4183-8289-FC59EE023BB1/e60ef962e47f7de8c6e34681c830f024.png\",\n    \"name\": \"Conemaugh Health System\",\n    \"slgId\": \"962\",\n    \"url\": \"https://mychart.conemaugh.org/MyChart-2017-PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/121426FC-79BA-45FE-8DD6-9433794305BF/f8b104110b49b44c77f0249ad9c8f3ac.png\",\n    \"name\": \"Eskenazi\",\n    \"slgId\": \"963\",\n    \"url\": \"https://mychart.eskenazihealth.edu/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/777E282F-A340-4F4F-AFE4-74416556D53C/9d32ea62685134b84716b26269c80299.png\",\n    \"name\": \"Scripps Health\",\n    \"slgId\": \"964\",\n    \"url\": \"https://myscripps.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"WUSM\",\n      \"Barnes-Jewish\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F1C8D6ED-4747-4E4E-A4EC-8408D8C7ED8E/d0a51cbbbbe544c2e2b54f930d742ded.png\",\n    \"name\": \"BJC Healthcare & Washington University\",\n    \"slgId\": \"965\",\n    \"url\": \"https://www.mypatientchart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BF5A7E23-3452-4000-9AB6-B7400AADA87B/38d8b8debe4a30b6632f89f79e30016b.png\",\n    \"name\": \"Erlanger Health System\",\n    \"slgId\": \"967\",\n    \"url\": \"https://mychart.erlanger.org/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/259DDE9A-6C0B-4B65-8325-389418E5FD71/e0f5d86ad7fb66c77f80243c3e26b795.png\",\n    \"name\": \"Texas Scottish Rite Hospital for Children\",\n    \"slgId\": \"970\",\n    \"url\": \"https://mychart.scottishriteforchildren.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4282099D-90A9-4A91-8BFD-BD6FA1CBA21F/8d7dac2d574456adb36a6f03f5ee724a.png\",\n    \"name\": \"AnMed Health\",\n    \"slgId\": \"971\",\n    \"url\": \"https://mychart.anmed.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/97FE6CD8-A93F-4007-9423-ED25A700AB7C/de2ee50874f53da79d7a9ef7f614fd9c.png\",\n    \"name\": \"TidalHealth\",\n    \"slgId\": \"972\",\n    \"url\": \"https://mychart.tidalhealth.org/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9D766DA8-0ABB-4E13-BA35-CE65AF1DF840/d9622b9280f4f2837ce1a8c90a4f74fb.png\",\n    \"name\": \"Dubai Health\",\n    \"slgId\": \"973\",\n    \"url\": \"https://services.dubaihealth.ae/Mychart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DF0F67EC-8537-40B2-B7EC-F6EE3E7AEC67/a79888901ee8714fca017bb7ab5088bf.png\",\n    \"name\": \"WellSpan\",\n    \"slgId\": \"975\",\n    \"url\": \"https://login.wellspan.org/mywellspan/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/911CA0AC-DA57-4447-8AFD-8F69CB1921B6/1270c8325d14217443fa7dd4751d5db5.png\",\n    \"name\": \"Keystone Health\",\n    \"slgId\": \"975-1\",\n    \"url\": \"https://my.keystonehealth.org/mykeystonehealth\"\n  },\n  {\n    \"aliases\": [\n      \"Quest,QuestBH,MyQuestBH\",\n      \"QuestBH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C4EB685D-B265-4E4D-9916-CB3D8E1FBE27/39dd8310ec8f85f7f27409d2c4602bb2.png\",\n    \"name\": \"Quest Behavioral Health\",\n    \"slgId\": \"975-2\",\n    \"url\": \"https://my.questbh.com/myquestbh\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/722AF7E8-FF49-4181-BE97-FA1524B1D024/f777a745763094ee654f3ee9f4c56e39.png\",\n    \"name\": \"UMass Memorial Health\",\n    \"slgId\": \"978\",\n    \"url\": \"https://mychartonline.umassmemorial.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/614ED497-6585-40B9-B63A-FA0F6751B053/840b36bacc39943642aa0714c5cafd98.png\",\n    \"name\": \"Community Health Connections\",\n    \"slgId\": \"978-1\",\n    \"url\": \"https://www.mychart.chcfhc.org/CHCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/691222C8-A3DD-4B27-8CFA-DE8334D2AED5/0c4679c5cd82afaa540b2a8ff970e61c.png\",\n    \"name\": \"Mackenzie Health\",\n    \"slgId\": \"979\",\n    \"url\": \"https://mychart.mackenziehealth.ca/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0615A748-816B-450A-AB70-05A2A9CC8252/1d6ee4529607f98760515ee2c9f8435b.png\",\n    \"name\": \"Casey House\",\n    \"slgId\": \"979-1\",\n    \"url\": \"https://mychart.caseyhouse.ca/caseyhouse/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/86CED80A-B5A6-4920-8DDF-C24D3FCD641D/b2c3e5bd915c75026674dfede4d9c8d9.png\",\n    \"name\": \"Methodist Health System\",\n    \"slgId\": \"980\",\n    \"url\": \"https://mychart.methodisthealthsystem.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Chalmers\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/66945EAC-FFEF-48FF-B06E-89DB7BABF5E5/d4db06a35d9160a1c691014a57b41054.png\",\n    \"name\": \"Department of Veterans Affairs\",\n    \"slgId\": \"985-1\",\n    \"url\": \"https://www.myhealth.va.gov/mhv-portal-web/user-login\"\n  },\n  {\n    \"aliases\": [\n      \"SIH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/78B71354-7339-413C-BE2D-9381A3B6ABD1/0acb46fb97b0f1435eaad30b817974d0.png\",\n    \"name\": \"Southern Illinois Healthcare\",\n    \"slgId\": \"986\",\n    \"url\": \"https://mychart.sih.net/mychartprd/\"\n  },\n  {\n    \"aliases\": [\n      \"Hardin County General Hospital and Clinic\",\n      \"Physicians Surgery Center\",\n      \"Urology Institute of Southern Illinois\",\n      \"Vitalysis\",\n      \"Thomas Kupferer\",\n      \"Hornik Neurosciences PLLC\",\n      \"Hanson Medical Services\",\n      \"KDMS Consultants\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6D7615E7-F026-4550-A99D-F720C7562A54/960b593fab9c85ee1d8fbf59b87200c5.png\",\n    \"name\": \"SIH Affiliates\",\n    \"slgId\": \"986-1\",\n    \"url\": \"https://mychart.southernilcc.net/MyChartCCPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"Boston Children's\",\n      \"PPOC\",\n      \"Aida\",\n      \"Yavshayan\",\n      \"Alena\",\n      \"Ashenberg\",\n      \"Amherst\",\n      \"Ann\",\n      \"Nicoloff\",\n      \"Becker\",\n      \"Arlington\",\n      \"Bedford\",\n      \"Belmont\",\n      \"Cambridge\",\n      \"Brookline\",\n      \"Briarpatch\",\n      \"Nantucket\",\n      \"Sandwich\",\n      \"Yarmouth\",\n      \"Port\",\n      \"1180\",\n      \"Beacon\",\n      \"Benjamin\",\n      \"Spingarn\",\n      \"Rottenberg\",\n      \"Bridgewater\",\n      \"Crown\",\n      \"Colony\",\n      \"Garden\",\n      \"Auburn\",\n      \"Shrewsbury\",\n      \"Chestnut\",\n      \"Hill\",\n      \"Andover\",\n      \"Cove\",\n      \"Commonwealth\",\n      \"Elena\",\n      \"Gorlovsky\",\n      \"East\",\n      \"Milton\",\n      \"Fairview\",\n      \"Fellsway\",\n      \"Falmouth\",\n      \"Framingham\",\n      \"Greater\",\n      \"Lowell\",\n      \"Westford\",\n      \"Heather\",\n      \"Davidson\",\n      \"Heena\",\n      \"Banker\",\n      \"Holliston\",\n      \"Milford\",\n      \"Horizon\",\n      \"Holyoke\",\n      \"Hadley\",\n      \"Hyde\",\n      \"Jeffrey\",\n      \"Feldman\",\n      \"Lexington\",\n      \"Longwood\",\n      \"Leominster\",\n      \"Meel\",\n      \"Marion\",\n      \"Main\",\n      \"Street\",\n      \"Northampton\",\n      \"Adams\",\n      \"Williamstown\",\n      \"Needham\",\n      \"Waltham\",\n      \"Newton\",\n      \"Wellesley\",\n      \"Reading\",\n      \"Neponset\",\n      \"Valley\",\n      \"Brockton\",\n      \"Springfield\",\n      \"Westfield\",\n      \"Hampden\",\n      \"Malden\",\n      \"Associates\",\n      \"Primary\",\n      \"Mathur\",\n      \"Purple\",\n      \"Crayon\",\n      \"Medford\",\n      \"House\",\n      \"Call\",\n      \"Stavitsky\",\n      \"Belchertown\",\n      \"Wilbraham\",\n      \"Lynn\",\n      \"Melrose\",\n      \"Peabody\",\n      \"Salem\",\n      \"Plymouth\",\n      \"Post\",\n      \"Road\",\n      \"Roslindale\",\n      \"Roth\",\n      \"Rotter\",\n      \"Laster\",\n      \"Singular\",\n      \"Start\",\n      \"Line\",\n      \"Suburban\",\n      \"Steven\",\n      \"Harris\",\n      \"Swansea\",\n      \"TLC\",\n      \"Village\",\n      \"Wayland\",\n      \"West\",\n      \"Walpole\",\n      \"Westwood\",\n      \"Easton\",\n      \"Mansfield\",\n      \"Woburn\",\n      \"Wareham\",\n      \"Walden\",\n      \"Pond\",\n      \"Bramblebush\",\n      \"Cape Cod\",\n      \"South Deerfield\",\n      \"Northern Bershire\",\n      \"North Adams\",\n      \"Canton\",\n      \"West Bridgewater\",\n      \"Stoneham\",\n      \"Chelsea\",\n      \"Winchester\",\n      \"Pediatrics at Newton Wellesley\",\n      \"Washington\",\n      \"Community Pediatrics\",\n      \"Haverhill\",\n      \"Newburyport\",\n      \"Rowley\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CEB3A622-A9D9-4EF9-9321-EFD871459494/d9b42ce50bd788b2c1c10d0d70deb893.png\",\n    \"name\": \"Pediatric Physicians' Organization at Children's\",\n    \"slgId\": \"988\",\n    \"url\": \"https://mychart.chppoc.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/site/en-us/images/login/custom/apotti.png\",\n    \"name\": \"Apotti\",\n    \"slgId\": \"990\",\n    \"url\": \"https://www.maisa.fi/maisa/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0DF5F6AB-7D34-42AB-8F2C-04643134FE47/4763dee8c8c646428a52a2e4ff6b3d31.png\",\n    \"name\": \"FirstHealth of the Carolinas\",\n    \"slgId\": \"991\",\n    \"url\": \"https://www.firsthealthmychart.org/mychartprd\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5D086AC3-EDAF-4FDB-A008-9E61A2589435/207bb06567c6ffcf097468dd496b4401.png\",\n    \"name\": \"UConn Health\",\n    \"slgId\": \"996\",\n    \"url\": \"https://mychart.uconn.edu/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/11F68621-BBD5-4167-8456-8BD40BE69D76/73d0b89b77d29c4e76b2cea1f78eab34.png\",\n    \"name\": \"UHI\",\n    \"slgId\": \"996-1\",\n    \"url\": \"https://mychart.uconn.edu/UHI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4D9FA37B-F3F9-4606-8BEB-09980767F5DA/e85a1aec3e0d34f8d0cb1fc94726b2fd.png\",\n    \"name\": \"Eisenhower Health\",\n    \"slgId\": \"997\",\n    \"url\": \"https://mychart.eisenhowerhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1863FC1B-895D-4957-A494-78DEC5FAD000/1b2bc0c2940d9356b0d26fa1e8fca898.png\",\n    \"name\": \"Watson Clinic\",\n    \"slgId\": \"998\",\n    \"url\": \"https://mychart.watsonclinic.com/prd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E2D628D6-2E3D-4974-83D1-B8E885B2B7FA/30526bf5c0638ecc3855fb160a83458f.png\",\n    \"name\": \"Sint Antonius Ziekenhuis\",\n    \"slgId\": \"999\",\n    \"url\": \"https://mijnantonius.antoniusziekenhuis.nl/MijnAntonius/\"\n  },\n  {\n    \"aliases\": [\n      \"Charlotte Eye Ear Nose and Throat Associates\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/63FF35D3-C24D-451F-8969-C98CCD857AC4/25c0911ed71c386409ca0141addbb228.png\",\n    \"name\": \"CEENTA\",\n    \"slgId\": \"1001\",\n    \"url\": \"https://myceentachart.com/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B7834CEC-7E2B-44F1-9B60-89D191237B7B/bf5527698f295c258fbf2f6178ed3681.png\",\n    \"name\": \"South Shore Health\",\n    \"slgId\": \"1002\",\n    \"url\": \"https://mychart.southshorehealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8A39E5B3-872B-4970-9E9B-F3F8250FAB41/0ac0322df620466a492395eb4599ce9a.png\",\n    \"name\": \"MyMichigan Health\",\n    \"slgId\": \"1003\",\n    \"url\": \"https://mymidmichigan.midmichigan.net/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F8976298-3862-44FE-A6E0-C0B57F22C2E1/63b1de29b7ee82bfb11dd7f288fe280b.png\",\n    \"name\": \"Mackinac Straits Health System\",\n    \"slgId\": \"1003-1\",\n    \"url\": \"https://my.midmichigan.net/mshs/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6052AC20-DA7F-4480-92C6-42BDF8B85241/6263600de3a9bf4e0d6b3733cf5f5def.png\",\n    \"name\": \"Helen Newberry Joy\",\n    \"slgId\": \"1003-2\",\n    \"url\": \"https://my.midmichigan.net/hnj/authentication/login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A384D828-B4EF-423A-B4A8-DE6E35284F44/807696c2ea60bf2e9f39346d0a0e46bd.png\",\n    \"name\": \"Nimkee\",\n    \"slgId\": \"1003-3\",\n    \"url\": \"https://mymidmichigan.midmichigan.net/SCIT/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3A22CCA2-8ED3-41F2-9EBB-FDBD6B3A9CA2/d61d764e03cab697340905c995de150e.png\",\n    \"name\": \"Karu Medical Associates\",\n    \"slgId\": \"1003-4\",\n    \"url\": \"https://mymidmichigan.midmichigan.net/IPP/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/675AD1D5-F245-4E64-B5A7-D174B15465E0/5570be166c95db7b7fc07eb13fb37b32.png\",\n    \"name\": \"Great Lakes Surgical Associates\",\n    \"slgId\": \"1003-5\",\n    \"url\": \"https://mymidmichigan.midmichigan.net/IPP/\"\n  },\n  {\n    \"aliases\": [\n      \"MKHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9ED02A16-5CFC-436A-B288-ECA50BDB0558/49202f90110eb4d415c96f3dce3780bc.png\",\n    \"name\": \"McKenzie Health System\",\n    \"slgId\": \"1003-6\",\n    \"url\": \"https://mymidmichigan.midmichigan.net/MKHS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3EE1FB19-DF05-40DD-B407-C3E353D50DDA/9b65b699b9cb97ffddecfb5a7b700b0f.png\",\n    \"name\": \"Monument Health\",\n    \"slgId\": \"1004\",\n    \"url\": \"https://mychart.regionalhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4EA4D718-63DB-4B05-9D9B-1CB8DC2C22DC/53d0c532827207c1a0285af1b8f02812.png\",\n    \"name\": \"Skagit\",\n    \"slgId\": \"1005\",\n    \"url\": \"https://mychart.skagitregionalhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NGHS\",\n      \"NGPG\",\n      \"THC\",\n      \"Heart\",\n      \"GNC\",\n      \"Good\",\n      \"News\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C77647B1-C28F-44CF-92B4-836945333B23/febda5efbe507ba808e4e8656d99d0a5.png\",\n    \"name\": \"Northeast Georgia Health System\",\n    \"slgId\": \"1006\",\n    \"url\": \"https://mychart.nghs.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"LC\",\n      \"TLC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F6F34575-C5D5-47F7-B5E9-DAAC68F302AB/eb42462130555bc3a90b4fd64840dc82.png\",\n    \"name\": \"Longstreet Clinic\",\n    \"slgId\": \"1006-2\",\n    \"url\": \"https://mychart.longstreetclinic.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/64EDEEE3-60C5-4A81-850B-BF01813EEBC0/52fb31433bb6eaef6dff20e58b382a19.png\",\n    \"name\": \"Main Line Health\",\n    \"slgId\": \"1007\",\n    \"url\": \"https://my.mainlinehealth.org/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BB9FAB99-DAC5-4FBA-B1C8-F85FEEF1FD93/62407d3ddd2390799d7daed2f66d10c6.png\",\n    \"name\": \"Vanderbilt University Medical Center\",\n    \"slgId\": \"1008\",\n    \"url\": \"https://myhealthatvanderbilt.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3EEB9012-D693-4F4C-A72C-2E1C730CD9C8/955c420d83fa87608224c0d8b9716127.png\",\n    \"name\": \"Heritage Medical Associates\",\n    \"slgId\": \"1008-1\",\n    \"url\": \"https://www.heritage.connecttomyhealth.com/hma/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/15D61105-034F-41ED-9B8E-42DCFBEADE28/e16ddf79c878547d9e75e435cfb02ef1.png\",\n    \"name\": \"UMCG\",\n    \"slgId\": \"1012\",\n    \"url\": \"https://mijn.umcg.nl/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F6DE0AF5-9DAF-4B10-ADD9-3A33E0B8997C/735a5e2514996c3224f34699138e30f3.png\",\n    \"name\": \"Hill Physicians Medical Group\",\n    \"slgId\": \"1013\",\n    \"url\": \"https://www.myhillchart.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/12E9CC92-D549-4312-9F0E-753D9A49B4DE/905fb3f29ac6b49a514105d2401cf741.png\",\n    \"name\": \"OrthoVirginia\",\n    \"slgId\": \"1015\",\n    \"url\": \"https://mychart.orthovirginia.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/52E0E9E0-177A-4F9D-84AF-602B684CB2B5/1731a57fb9a8708b28fbcfe6a407b702.png\",\n    \"name\": \"MTOSC\",\n    \"slgId\": \"1015-1\",\n    \"url\": \"https://mychart.orthovirginia.com/MTOSC/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"AUB\",\n      \"AUBMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5293132D-DB7B-4320-A661-3E0EF9A0AECA/238b4c2e1c0e29f8e19dbbf5b1637ab2.png\",\n    \"name\": \"American University of Beirut Medical Center\",\n    \"slgId\": \"1016\",\n    \"url\": \"https://myaubhealth.aubmc.org.lb/mychartprd/\"\n  },\n  {\n    \"aliases\": [\n      \"Summit Surgical\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/84F79C38-7893-4F3C-90B9-A546C190ED32/77a71ff895f5021c6f4f50be5d418020.png\",\n    \"name\": \"Virtua Health\",\n    \"slgId\": \"1017\",\n    \"url\": \"https://secure.myvirtua.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4108CB0C-FDFC-4332-AFA6-9DACE689FBCA/97b55a0ff454172f4bd521198ca67756.png\",\n    \"name\": \"Cherry Hill Free Clinic\",\n    \"slgId\": \"1017-1\",\n    \"url\": \"https://cherryhillfreeclinic.virtua.org/cherryhillfreeclinic/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EA9B428C-D2A4-441D-9715-A5529FA6F3AE/10e054be50256d0356357694e4e11b29.png\",\n    \"name\": \"Summit Surgical Center\",\n    \"slgId\": \"1017-2\",\n    \"url\": \"https://summitsurgical.virtua.org/SummitSurgical/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D6BBEADF-B3CE-4878-BDAF-C1508F20E5B2/92c7de961add386941c0134bf13cabd1.png\",\n    \"name\": \"Elisabeth-TweeSteden Ziekenhuis\",\n    \"slgId\": \"1019\",\n    \"url\": \"https://www.mijnetz.nl/mychart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9009E1A8-40A6-4973-AD98-3BA471D9D4CA/216e3e35b79d4300579c4c7254857cd9.png\",\n    \"name\": \"Shannon\",\n    \"slgId\": \"1020\",\n    \"url\": \"https://mychart.shannonhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/58A2DEFE-C856-4E4E-AEB5-98F42F34DAF2/d76359edcdc479d3de54b6701f52e594.png\",\n    \"name\": \"La Esperanza Clinic\",\n    \"slgId\": \"1020-1\",\n    \"url\": \"https://mychart.shannonhealth.org/lec/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EC23B4CB-D0CD-4970-A76B-4B4AA9D326E8/75ce5902ac461fa788e2b1dc93966fdd.png\",\n    \"name\": \"Heart of Texas\",\n    \"slgId\": \"1020-2\",\n    \"url\": \"https://mychart.shannonhealth.org/hths/\"\n  },\n  {\n    \"aliases\": [\n      \"UMCSN\",\n      \"UMConnect\",\n      \"University Medical Center\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B998ECD0-405A-45F7-BD31-EE53D2BD21AA/d22a29b8b40589c27a25afe9e6494e4a.png\",\n    \"name\": \"UMC Southern Nevada\",\n    \"slgId\": \"1023\",\n    \"url\": \"https://umconnect.umcsn.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2CF73B6B-4177-40AD-B6AD-2A63F8DA3594/78031a93470623dc1985496c99c13652.png\",\n    \"name\": \"UNLV Health\",\n    \"slgId\": \"1023-1\",\n    \"url\": \"https://mychart.unlvhealth.org/UNLVMyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/01A4DDD7-3B8D-4358-993A-A511F1D828B8/2fb869d9105c7f81ccb0338bba5029ec.png\",\n    \"name\": \"SGMC\",\n    \"slgId\": \"1024\",\n    \"url\": \"https://mychart.sgmc.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/53B4924C-D981-437E-90F6-16C3202AB790/e847b1e90c7a975696902077c183eccf.png\",\n    \"name\": \"Wiregrass Student Health Clinic\",\n    \"slgId\": \"1024-1\",\n    \"url\": \"https://mychart.sgmc.org/wiregrass/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1C599F5E-7667-474A-9A38-B2ADC9AB216F/8e6303b7c7ae86a1efe1d53ec556eaa4.png\",\n    \"name\": \"Lovelace Health\",\n    \"slgId\": \"1025-1\",\n    \"url\": \"https://mychart.lovelace.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/83BEFC51-2BA0-4EA0-8DBB-2B1B7D74DE3F/141eee7d1c8e30b644a0b61c2bb89631.png\",\n    \"name\": \"BSA\",\n    \"slgId\": \"1025-2\",\n    \"url\": \"https://mychart.bsahs.org/bsa/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/304BAD4D-4A89-4FD1-8662-AFAE485BE886/eb70a73c489d11889b8b3512b85b6683.png\",\n    \"name\": \"Hillcrest\",\n    \"slgId\": \"1025-4\",\n    \"url\": \"https://mychart.hillcrest.com/hmc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/355CDED0-6997-4A89-B234-A1B510B4D0E9/d7a428d964b94b329bd9859a6fbd7d80.png\",\n    \"name\": \"Tulsa Spine & Specialty Hospital\",\n    \"slgId\": \"1025-5\",\n    \"url\": \"https://mychart.tulsaspinehospital.com/tssh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/56882A83-9A28-413C-91DC-51C437B4C2B4/72906376696c7ed51466ea309f15137f.png\",\n    \"name\": \"Oklahoma Heart Institute\",\n    \"slgId\": \"1025-6\",\n    \"url\": \"https://mychart.oklahomaheart.com/ohi/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/573F4397-5D58-49D7-BF56-A437154B0797/2f569dda1e0df9a87ea55612e829db8c.png\",\n    \"name\": \"Bailey Medical Center\",\n    \"slgId\": \"1025-7\",\n    \"url\": \"https://mychart.baileymedicalcenter.com/bmc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/91403112-021B-44F2-89E6-F381EF47A3DD/b5d4e869c85c20bb8829c5223f4d05e1.png\",\n    \"name\": \"Utica Park Clinic\",\n    \"slgId\": \"1025-8\",\n    \"url\": \"https://mychart.uticaparkclinic.com/upc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4F810753-0790-4EF5-876A-F81F5037A2D8/2150e6b0cc7ec00d479e6e5c5d962378.png\",\n    \"name\": \"Portneuf Medical Center\",\n    \"slgId\": \"1025-9\",\n    \"url\": \"https://mychart.portneuf.org/pmc/\"\n  },\n  {\n    \"aliases\": [\n      \"Hackensack\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/90F51E58-8D99-4AF5-8742-97EB3ADEE875/17edbf5472b4f363864c8b4a528f691a.png\",\n    \"name\": \"Pascack Valley Medical Center\",\n    \"slgId\": \"1025-10\",\n    \"url\": \"https://mychart.pvmedicalcenter.com/pvc/\"\n  },\n  {\n    \"aliases\": [\n      \"Hackensack\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DE7D15CC-5DE6-4409-96B8-17B96C0AEE78/af67c88a4ffa3fb6b95b72856122e535.png\",\n    \"name\": \"Mountainside Medical Center\",\n    \"slgId\": \"1025-11\",\n    \"url\": \"https://mychart.mountainsidemedicalcenter.com/MMC/\"\n  },\n  {\n    \"aliases\": [\n      \"St. Francis\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/66DB8964-598C-40D0-BA93-47E31CA5D65D/f7228f1f91eb24a4cfdb96bcb7baf6dc.png\",\n    \"name\": \"University of Kansas Health System\",\n    \"slgId\": \"1025-12\",\n    \"url\": \"https://mychart.kutopeka.com/ukh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/48B5AA19-0E08-4BD0-906E-9C3DB0070FAD/97db58ee178ef6567c9f0740ff3d9c5b.png\",\n    \"name\": \"Seton Medical Center and Wellstone Health Partners\",\n    \"slgId\": \"1025-13\",\n    \"url\": \"https://mychart.setonharkerheights.net/smc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BCF90258-395C-4E87-8CAD-90FB8D8193AD/bdc88a3803e254c0738ee99d2cf18305.png\",\n    \"name\": \"UT Health East Texas\",\n    \"slgId\": \"1025-14\",\n    \"url\": \"https://mychart.uthealtheasttexas.com/UTHET/\"\n  },\n  {\n    \"aliases\": [\n      \"SCHS\",\n      \"Harney\",\n      \"HDH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5C79CED2-54C9-4A1A-A9C5-8CB8640D5B4A/491a25cbc68dbbbfcacff3f5b0c7b0a1.png\",\n    \"name\": \"St. Charles Health System\",\n    \"slgId\": \"1030\",\n    \"url\": \"https://mychart.stcharleshealthcare.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"NBMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0CF979CB-F955-472C-BB97-4526C28E2763/c3209e221c0571bb1aa1d55c2ff064f4.png\",\n    \"name\": \"Bay Area Hospital\",\n    \"slgId\": \"1030-2\",\n    \"url\": \"https://mychart.bayareahospital.org/BAH/\"\n  },\n  {\n    \"aliases\": [\n      \"NBMC\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E7E6E38B-6577-4AE1-B8E3-7A0CF0F5EAF4/77596848ef0f0ec5bedd4ed2b1bbfe64.png\",\n    \"name\": \"Bay Clinic\",\n    \"slgId\": \"1030-3\",\n    \"url\": \"https://bayclinic.net/Bay-Clinic-pp.html\"\n  },\n  {\n    \"aliases\": [\n      \"NBMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EC06E0E8-E455-4B5C-B6FA-E93EC0DC9252/08bdfe5b49d42070755f11e3af3f934e.png\",\n    \"name\": \"Santiam Hospital\",\n    \"slgId\": \"1030-4\",\n    \"url\": \"https://mychart.santiamhospital.org/Santiam/\"\n  },\n  {\n    \"aliases\": [\n      \"Harney,HDH\",\n      \"Harney\",\n      \"HDH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F7D1FE04-326C-4772-871F-80AAE7229DA6/e471aaae3f0b31a4e9afc4af676ced6c.png\",\n    \"name\": \"Harney District Hospital\",\n    \"slgId\": \"1030-5\",\n    \"url\": \"https://mychart.harneydh.com/Harney/\"\n  },\n  {\n    \"aliases\": [\n      \"VIM\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5E9A9C67-B9F7-4934-A568-AFC0C53ABD19/0991af772322265dd584d29e481ae6e7.png\",\n    \"name\": \"Volunteers in Medicine Cascades\",\n    \"slgId\": \"1030-6\",\n    \"url\": \"https://mychart.vim-cascades.org/VIM/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/051B89BB-841B-4E13-BC2C-A9D6F6DD3ADC/dad77771a4f44e4c2b804d5eb8b5f9a3.png\",\n    \"name\": \"Bryan Health\",\n    \"slgId\": \"1031\",\n    \"url\": \"https://mychart.bryanhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0FD2F72E-EFA4-4327-999F-FB970DC207B7/900ff851ee6d495294ad770604e678a6.png\",\n    \"name\": \"New Life Clinic\",\n    \"slgId\": \"1031-1\",\n    \"url\": \"https://newlifeclinic.myhealthplace.org/NLC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/663027A0-E89D-45E4-B43C-18AD272F78D4/2cfc0b524342726f35f0b5ad0b482662.png\",\n    \"name\": \"Community Medical Center\",\n    \"slgId\": \"1031-2\",\n    \"url\": \"https://cmcfc.myhealthplace.org/CMC\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/25596E68-43BE-4A36-9835-35DFD7E8B7B2/f7ccd3f0894a36291128995262a55203.png\",\n    \"name\": \"Lincoln Medical Education Partnership\",\n    \"slgId\": \"1031-3\",\n    \"url\": \"https://lmep.myhealthplace.org/LMEP/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5CCB1E8D-BDB3-444B-9DDF-DDFE2769F7B3/febdba4e8d8387b90cbf33a5790b88b1.png\",\n    \"name\": \"Dialysis Center of Lincoln\",\n    \"slgId\": \"1031-4\",\n    \"url\": \"https://dcl-kidneycare.myhealthplace.org/dcl/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/94985280-B4DD-41D3-A246-E5D343F8F74A/51c973ebd97b1c96cd07aa9141001a84.png\",\n    \"name\": \"Enloe Medical Center\",\n    \"slgId\": \"1034\",\n    \"url\": \"https://mychart.enloe.org/MyChart\"\n  },\n  {\n    \"aliases\": [\n      \"SPHP\",\n      \"Muskegon\",\n      \"Hackley\",\n      \"Lakeshore\",\n      \"Johnson\",\n      \"Plymouth\",\n      \"Diley\",\n      \"Ridge\",\n      \"Shelby\",\n      \"Saint\",\n      \"Mary\",\n      \"Grand\",\n      \"Rapids\",\n      \"Hauenstein\",\n      \"Baker\",\n      \"Lacks\",\n      \"Mishawaka\",\n      \"Germantown\",\n      \"Ada\",\n      \"West\",\n      \"Olive\",\n      \"Joe\",\n      \"Bend\",\n      \"Ann\",\n      \"Arbor\",\n      \"St\",\n      \"Joseph\",\n      \"Livingston\",\n      \"Brighton\",\n      \"Howell\",\n      \"Oakland\",\n      \"Pontiac\",\n      \"Chelsea\",\n      \"Livonia\",\n      \"Reichert\",\n      \"Health\",\n      \"Silver\",\n      \"Spring\",\n      \"Albany\",\n      \"IHA\",\n      \"SJMG\",\n      \"Ypsilanti\",\n      \"Carmel\",\n      \"Elite\",\n      \"MCMG\",\n      \"Trinity\",\n      \"Holy\",\n      \"Cross\",\n      \"Detroit\",\n      \"Peter\",\n      \"Mount\",\n      \"Mercy\",\n      \"Agnes\",\n      \"MidAtlantic\",\n      \"Grove\",\n      \"Alphonsus\",\n      \"Nampa\",\n      \"Ontario\",\n      \"Boise\",\n      \"Specialist\",\n      \"Clarkston\",\n      \"Independence\",\n      \"Premier\",\n      \"Samaritan\",\n      \"Sacred\",\n      \"Catholic\",\n      \"Nazareth\",\n      \"Francis\",\n      \"Syracuse\",\n      \"Fresno\",\n      \"THONE\",\n      \"England\",\n      \"Stafford\",\n      \"Sinai\",\n      \"Hartford\",\n      \"Waterbury\",\n      \"Springfield\",\n      \"Iowa\",\n      \"MercyOne\",\n      \"Loyola\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/224B95D1-6016-4C8E-8EF5-776385B8B187/5d57bd9b146eeb6ab4093161e417ef44.png\",\n    \"name\": \"Trinity Health\",\n    \"slgId\": \"1035\",\n    \"url\": \"https://mychart.trinity-health.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1D2C3CC3-96EA-43D6-AB8A-F08D1EB49B89/a1063d825ad00774880b1bcf79dbc101.png\",\n    \"name\": \"Arkansas Children's\",\n    \"slgId\": \"1036\",\n    \"url\": \"https://mychart.archildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C4E1B2F9-8A0B-413B-87BF-EA761CD94DFC/7db1eb23cedd03658e30549b31460e21.png\",\n    \"name\": \"Hot Springs Pediatric Clinic\",\n    \"slgId\": \"1036-2\",\n    \"url\": \"https://mychart.archildrens.org/HotSpringsPediatricClinic/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9E13F600-0859-4D4C-B5FD-AF7099C0BA7B/290eff47042cd0219fe25ef29de48233.png\",\n    \"name\": \"Cook Children's\",\n    \"slgId\": \"1037\",\n    \"url\": \"https://mychart.cookchildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Epic\",\n      \"Beaver Medical Group\",\n      \"Inland Empire & San Diego\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/25243763-094F-47A8-85B5-525A6554D218/44d12ed605176b9d4881be2fa438d4c9.png\",\n    \"name\": \"Optum Medical Care of Inland Empire and San Diego\",\n    \"slgId\": \"1038\",\n    \"url\": \"https://www.mybeaverchart.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3CFED9A3-10BF-4CA5-962E-A4B71A24D638/450225700ea69f1b6b22aa6e82b8c486.png\",\n    \"name\": \"VHC Health\",\n    \"slgId\": \"1039\",\n    \"url\": \"https://myvhc.virginiahospitalcenter.com/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4C51A8D9-B5B3-470A-9A8B-675C45DF9877/7888c68c4d75439902c309d3e5e7ecc9.png\",\n    \"name\": \"Acumen Physician Solutions\",\n    \"slgId\": \"1041\",\n    \"url\": \"https://mychart.acumenmd.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"The Brooklyn Hospital Center\",\n      \"TBHC\",\n      \"TBH Center\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9B16EC7C-FC58-4A43-A784-D124E162F412/7d7c70c5a4a0100488fe3c60fb5eb80d.png\",\n    \"name\": \"Brooklyn Health\",\n    \"slgId\": \"1043\",\n    \"url\": \"https://mychart.tbh.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C1F3AD3B-E298-4840-B7D2-3EFB25BB4123/530cd57184b64b4395909d6a052680e6.png\",\n    \"name\": \"St. Joseph's Healthcare Hamilton\",\n    \"slgId\": \"1045\",\n    \"url\": \"https://mydovetale.ca/MyDovetale/\"\n  },\n  {\n    \"aliases\": [\n      \"JBH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0EE85096-6A57-438E-8A02-885AEF98C60B/2f03f3864a69619e44e2c6680ffa2c97.png\",\n    \"name\": \"Joseph Brant Hospital\",\n    \"slgId\": \"1045-2\",\n    \"url\": \"https://mydovetale.ca/josephbranthospital/\"\n  },\n  {\n    \"aliases\": [\n      \"Dayton\",\n      \"Ohio\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/16926741-135F-4126-82D5-00BD8EFD165E/0dbfbce4d4e4c32a23318bbfbe14d1e5.png\",\n    \"name\": \"Premise Health\",\n    \"slgId\": \"1052\",\n    \"url\": \"https://www.mypremisehealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/15F7CBF6-8C86-4375-B51F-CDEA5E46462D/7f76b5893d5c91a03bc82639ecad3590.png\",\n    \"name\": \"University College London Hospitals\",\n    \"slgId\": \"1053\",\n    \"url\": \"https://mycare.uclh.nhs.uk/MyCare/\"\n  },\n  {\n    \"aliases\": [\n      \"MW\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E615349D-921C-411A-A6A1-73547A7174E0/95d7c9543f0fa11c4d75c481e684aafe.png\",\n    \"name\": \"Mary Washington\",\n    \"slgId\": \"1055\",\n    \"url\": \"https://mychart.mwhc.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5F0573E6-E62E-4E74-BBD7-02FA58B698D8/0aa82e78a2554ed85e0e42a8074fea24.png\",\n    \"name\": \"Columbus Regional Health\",\n    \"slgId\": \"1056\",\n    \"url\": \"https://mychart.crh.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F46A644C-3893-45DF-95AB-CF57467FE0A7/6b65f8b051077a228ee84fe61d631e19.png\",\n    \"name\": \"Molina Healthcare\",\n    \"slgId\": \"1057\",\n    \"url\": \"https://mychart.molinahealthcare.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"CHOMP\",\n      \"Monterey\",\n      \"Peninsula\",\n      \"MMG\",\n      \"CHI\",\n      \"COMMUNITY\",\n      \"INNOVATIONS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F666E02-F9D6-47BA-A477-3A4646024792/599e45d4a0c91e4bdd0138848770e975.png\",\n    \"name\": \"Montage Health\",\n    \"slgId\": \"1058\",\n    \"url\": \"https://mychart.montagehealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"GOSH\",\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E3786FC-A083-4C45-A4E9-B39D9E174A75/b200dddca2b142df04f05b2f957173f1.png\",\n    \"name\": \"Great Ormond Street Hospital\",\n    \"slgId\": \"1059\",\n    \"url\": \"https://my.gosh.nhs.uk/mychart\"\n  },\n  {\n    \"aliases\": [\n      \"The Royal Marsden\",\n      \"The Marsden\",\n      \"Marsden Hospital\",\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E2C06A5F-0E2A-4065-9469-B79B7BE0E3DC/9b3c08417e37df06aea2538b870ca073.png\",\n    \"name\": \"RMH\",\n    \"slgId\": \"1059-1\",\n    \"url\": \"https://mymarsden.rmh.nhs.uk/MyMarsden/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E9EDC1A3-9022-4B17-A86A-A36DF5696970/9c32d443de8a8d92c61d99cbf6bee0bd.png\",\n    \"name\": \"North Mississippi Health Services\",\n    \"slgId\": \"1060\",\n    \"url\": \"https://myconnection.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EBAC404A-A835-4D92-BB0C-688A630F97F9/f4b04ee5b09439201d080bbe181345c0.png\",\n    \"name\": \"Meritus\",\n    \"slgId\": \"1062\",\n    \"url\": \"https://mychart.meritushealth.com/meritus/\"\n  },\n  {\n    \"aliases\": [\n      \"Atlas\",\n      \"GHC\",\n      \"Group Health Centre\",\n      \"TOH\",\n      \"Renfrew\",\n      \"Hawkesbury\",\n      \"Heart\",\n      \"St. Francis\",\n      \"Winchester\",\n      \"Deep River\",\n      \"Kemptville\",\n      \"The Atlas Alliance\",\n      \"Arnprior Regional Health\",\n      \"Deep River & District Health\",\n      \"Glengarry Memorial Hospital\",\n      \"Group Health Centre (Sault Ste. Marie)\",\n      \"Hawkesbury District General Hospital\",\n      \"Kemptville District Hospital\",\n      \"Hôpital Montfort\",\n      \"Mississippi River Health Alliance \",\n      \"Almonte General Hospital\",\n      \"Carleton Place & District Memorial Hospital\",\n      \"Pembroke Regional Hospital\",\n      \"Queensway Carleton Hospital\",\n      \"Renfrew Victoria Hospital\",\n      \"St. Francis Memorial Hospital\",\n      \"The Ottawa Hospital\",\n      \"The Ottawa Hospital Academic Family Health Team\",\n      \"The Royal\",\n      \"The University of Ottawa Heart Institute\",\n      \"Winchester District Memorial Hospital\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/77047401-579A-4300-A96F-EAA8A17105CD/635603672104e9af26d820bf7a33e4ef.png\",\n    \"name\": \"The Ottawa Hospital\",\n    \"slgId\": \"1063\",\n    \"url\": \"https://www.myatlasalliance.ca/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BB20310D-E0EA-4AF0-AA91-1979C7F581CA/572cbbffea071823d2763b484ec8c675.png\",\n    \"name\": \"Community First Medical Center\",\n    \"slgId\": \"1070\",\n    \"url\": \"https://mychart.cfmedicalcenter.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9E1B4481-2F53-4295-9E6B-279BE2A9822D/8af264411a29b323fbe7f469eb785805.png\",\n    \"name\": \"Luzerner Kantonsspital\",\n    \"slgId\": \"1072\",\n    \"url\": \"https://meinluks.ch/mychartprd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"EHMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D6CD39C7-036C-49FF-ACD9-5C2E7762C308/555d77af5aa453e06fe077087a552f66.png\",\n    \"name\": \"Englewood\",\n    \"slgId\": \"1073\",\n    \"url\": \"https://mychart.englewoodhealth.org/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/26871DF8-2BBA-4474-8444-307D0D29310D/9ff354a65b6c10408d9b3cad80d8247f.png\",\n    \"name\": \"Alameda Health System\",\n    \"slgId\": \"1075\",\n    \"url\": \"https://my.alamedahealthsystem.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8D6BAA57-FF6B-4088-BC3E-D2ECB48AEB0D/eeb818cdcce7ecc611ddb6be8a66a471.png\",\n    \"name\": \"Cleveland Clinic London\",\n    \"slgId\": \"1076\",\n    \"url\": \"https://mychart.clevelandcliniclondon.uk/prd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D2189D0E-EFCE-4E17-ADC1-4676F4E19784/e5078085ec302a92414cb95385eeb919.png\",\n    \"name\": \"Olmsted Medical Center\",\n    \"slgId\": \"1077\",\n    \"url\": \"https://mychart.olmmed.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Dentist\",\n      \"Dental\",\n      \"Dentistry\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3AF4F7E7-1A7E-46E9-80B9-0BED833AAA66/cf91b426db99c7eaeb8b579c3416ffe7.png\",\n    \"name\": \"Smile Generation MyChart\",\n    \"slgId\": \"1079\",\n    \"url\": \"https://www.smilegenerationmychart.com/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/85CEBD71-5F23-486D-B96D-F40C850CA145/cc71d129036ad2e67d26eba9dc287501.png\",\n    \"name\": \"San Francisco Dept of Public Health\",\n    \"slgId\": \"1082\",\n    \"url\": \"https://mychart.sfdph.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C5042050-796F-43BF-9E39-DD1C4A89B519/e0d8e666291dfd0a3ea2eafe76c8bc9d.png\",\n    \"name\": \"UI Health\",\n    \"slgId\": \"1085\",\n    \"url\": \"https://mychart.uillinois.edu/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/53F7AE02-DD80-41DF-944D-999B9687109C/6727528f7b28726a73f8b0d03c266ea6.png\",\n    \"name\": \"Pine Rest\",\n    \"slgId\": \"1086\",\n    \"url\": \"https://mychart.pinerest.org/mychartPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"CFLKS\",\n      \"Central Florida Kidney Specialists\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8AE049BE-87DA-41E2-8557-2758CF01DB0B/6130b35a59a307d46db67b0093c244a8.png\",\n    \"name\": \"DaVita Physician Solutions\",\n    \"slgId\": \"1087\",\n    \"url\": \"https://mychart.davitaphysiciansolutions.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F96C0AD0-46B5-49E1-A804-7FDA45CFC728/d6aa50eae6ba38dbc70eebda6b838498.png\",\n    \"name\": \"Alberta Health Services\",\n    \"slgId\": \"1088\",\n    \"url\": \"https://myhealth.alberta.ca/MyHealthRecords\"\n  },\n  {\n    \"aliases\": [\n      \"WCM\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3F0700C0-F2D2-4806-A9B7-C9DEF017D036/8de956d62c4cfe42f68ad8fb7b928f3d.png\",\n    \"name\": \"Weill Cornell Medicine\",\n    \"slgId\": \"1089-1\",\n    \"url\": \"https://www.myconnectnyc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NYP\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/107E07C9-5D9A-4D2D-85E3-D23F84722720/0a55aca1d9025584feb859f034c6a51e.png\",\n    \"name\": \"New York Presbyterian\",\n    \"slgId\": \"1089-2\",\n    \"url\": \"https://www.myconnectnyc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CUIMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2A2A0217-F474-4CB5-91EB-1ED65F3EF3C8/d809ca0900e0c3c97fa035f33e615038.png\",\n    \"name\": \"Columbia University Irving Medical Center\",\n    \"slgId\": \"1089-3\",\n    \"url\": \"https://www.myconnectnyc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/75BCC020-27AE-42DC-B8CB-CD56310D5BBE/bb75c1caa9b7a8af244cc3b56bda5de6.png\",\n    \"name\": \"Cliniques universitaires Saint-Luc\",\n    \"slgId\": \"1090\",\n    \"url\": \"https://mon.saintluc.be/mon\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AA313BD4-13A7-41F1-824F-C5FF8F842020/cef2f60ba0b0f9fdd450182c0810d3d9.png\",\n    \"name\": \"Cape Fear Valley\",\n    \"slgId\": \"1094\",\n    \"url\": \"https://mychart.capefearvalley.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/65093B0C-32EA-43B0-83D5-4AA56AD601C8/246d6170cfbe5d9bbabb6523e28b5ab1.png\",\n    \"name\": \"Kennedy Krieger Institute\",\n    \"slgId\": \"1095\",\n    \"url\": \"https://mychart.kennedykrieger.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6CC5B21F-EE0D-47CB-BD0C-BCC68FD2DD53/b61dd0a1e9b7972943cd5d12f7d61120.png\",\n    \"name\": \"United Regional\",\n    \"slgId\": \"1096\",\n    \"url\": \"https://mychart.unitedregional.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B80C7977-1344-453D-A37C-9262A258F183/c31b180fc7fa025f4851235acb50302a.png\",\n    \"name\": \"Tanner Health System\",\n    \"slgId\": \"1098\",\n    \"url\": \"https://www.tannermychart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/049BB6E0-673B-45DA-9CC6-617CA3810A3C/948a4d24c3802559e2ee3b81d1a9e240.png\",\n    \"name\": \"Valley Children's Hospital\",\n    \"slgId\": \"1100\",\n    \"url\": \"https://mychart.valleychildrens.org/portal/\"\n  },\n  {\n    \"aliases\": [\n      \"MVHS\",\n      \"Wynn\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2F853737-CC25-46ED-9085-86B3F413FA8B/a5b34ad905e34cacb2950cc8d33d6957.png\",\n    \"name\": \"Mohawk Valley Health System\",\n    \"slgId\": \"1103\",\n    \"url\": \"https://mychart.mvhealthsystem.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SDMG\",\n      \"SD\",\n      \"Slocum\",\n      \"Dickson\",\n      \"Slocum Dickson\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/554369CF-51ED-4346-90AB-46E3173673E3/f6ee5701a55eeb61f5109f8b7c9156a3.png\",\n    \"name\": \"Slocum-Dickson Medical Group\",\n    \"slgId\": \"1103-1\",\n    \"url\": \"https://mychart.sdmg.com/sdmg/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/09DD5BB0-2676-4384-BCD7-EEA99675DC1D/ea122484c1d9054ad74f2892e2933aa2.png\",\n    \"name\": \"Boulder Community Health\",\n    \"slgId\": \"1105\",\n    \"url\": \"https://my.bch.org/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BADB8061-127B-4DEA-8C40-DD274C7B9C1A/8058faa46ce0fe7be916569803b718f2.png\",\n    \"name\": \"The Pediatric Center Boulder\",\n    \"slgId\": \"1105-1\",\n    \"url\": \"https://tpcportal.bch.org/MyChartPRD-PEDS/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/53B07B98-855C-4079-AAEE-F431DD757531/8f8f80b19e4a74837a8ec377e1569a32.png\",\n    \"name\": \"Boulder Medical Center\",\n    \"slgId\": \"1105-2\",\n    \"url\": \"https://bmcportal.bch.org/MyChartPRD-BMC/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/601425BC-1E3D-4C3E-8A85-B26D2E977093/4e6410f51517ac6d89c1632088392884.png\",\n    \"name\": \"King Fahad Medical City\",\n    \"slgId\": \"1107\",\n    \"url\": \"https://www.kfmc.med.sa/EN/Pages/Home.aspx\"\n  },\n  {\n    \"aliases\": [\n      \"Helseplattformen\",\n      \"Helsetjenester\",\n      \"HMN\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BD5D4E9E-0F61-4950-AB44-31325D2D0127/d6047f2408b7f3f40fecc22fd7b83825.png\",\n    \"name\": \"Helse Midt-Norge\",\n    \"slgId\": \"1114\",\n    \"url\": \"https://tjenester.helsami.no/HelsaMi/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8D72E1AE-0A37-4882-B1A5-FA75474161BB/a5b14e6b5faf7f0d58c82f21e0c49c26.png\",\n    \"name\": \"Trillium Health Partners\",\n    \"slgId\": \"1116\",\n    \"url\": \"https://mychart.thp.ca/MYCHART/\"\n  },\n  {\n    \"aliases\": [\n      \"Dart\",\n      \"Wichita\",\n      \"Domtar\",\n      \"Dow\",\n      \"Greenheck\",\n      \"Harbor\",\n      \"Hillenbrand\",\n      \"Huntington\",\n      \"HII\",\n      \"Kohl\",\n      \"Mayville\",\n      \"MEC\",\n      \"McKee\",\n      \"Miller\",\n      \"Nissin\",\n      \"Rexnord\",\n      \"Reynolds\",\n      \"Rockwell\",\n      \"Safeway\",\n      \"West Bend\",\n      \"WBMI\",\n      \"Tapco\",\n      \"Weldall\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F17D6880-2E7D-4337-839A-37678E54707B/77f91c5480d5cb9a0e089714802fb7fb.png\",\n    \"name\": \"Quadmed\",\n    \"slgId\": \"1121\",\n    \"url\": \"https://mychart.myquadmedical.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"nhs\",\n      \"Royal Devon University Healthcare\",\n      \"Torbay and South Devon\",\n      \"University Hospitals Plymouth\",\n      \"Plymouth\",\n      \"Derriforf Hospital\",\n      \"Exeter\",\n      \"North Devon District\",\n      \"Wonford Hospital\",\n      \"Derriford Hospital\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3674DC60-1F58-4E03-9676-E1F2ECC1EBFE/1b279cb5581578162559fa4be47bebdf.png\",\n    \"name\": \"MY CARE (Devon)\",\n    \"slgId\": \"1122\",\n    \"url\": \"https://mycare.exe.nhs.uk/mycare/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/767EF97E-14ED-4997-A73E-ABE303EAD8A3/bb32f99a75ab1e6c0e1fcd6d3a38a571.png\",\n    \"name\": \"AltaMed\",\n    \"slgId\": \"1123\",\n    \"url\": \"https://www.myaltamed.net/MyAltaMed/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E3C66043-C44F-42DD-A986-2764154B1FCB/3ec396f20daf41798af3ce79373c5277.png\",\n    \"name\": \"Middlesex Health\",\n    \"slgId\": \"1124\",\n    \"url\": \"https://mychart.middlesexhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/98ADA73A-6957-4A3D-8115-DADF53DF90D7/d0d9bb440f0d5d7ed1298b559b8329e2.png\",\n    \"name\": \"Exact Sciences\",\n    \"slgId\": \"1126\",\n    \"url\": \"https://mychart.exactscienceslabs.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"UHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/15951AC9-7B72-4CE5-BEB0-538AB8ABFA43/0ff87ebb250601fac8589d1df66a43b8.png\",\n    \"name\": \"United Health Services\",\n    \"slgId\": \"1127\",\n    \"url\": \"https://mychart.nyuhs.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"UHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CB4100E5-C3CD-47D4-A56D-CAD4644D4F01/26cf697c0e4cfe75121ea8e3094b72cb.png\",\n    \"name\": \"University Health System\",\n    \"slgId\": \"1130\",\n    \"url\": \"https://mychart.universityhealthsystem.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Bayfront Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2627DB95-972F-4389-9E5B-33C7B35F5F33/476732561e24e0cdb828e99c1dca5764.png\",\n    \"name\": \"Orlando Health\",\n    \"slgId\": \"1131\",\n    \"url\": \"https://mychart.orlandohealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/19552AF8-4A2D-472F-90CA-0E5168B0AA6D/09d354a1833cbbf936896a84e81f87da.png\",\n    \"name\": \"Baptist Health\",\n    \"slgId\": \"1131-1\",\n    \"url\": \"https://mychart.baptisthealthal.com/Baptist/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/71054E59-7788-4F4B-AECA-6CFED948FCA4/3415aac4f89cc57cd138fa1738c3c450.png\",\n    \"name\": \"Phelps Health\",\n    \"slgId\": \"1134\",\n    \"url\": \"https://mychart.phelpshealth.org/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/113896C4-E574-44AB-A4AD-3844CF9709A3/91db14b2c4426d807e23d1e57a860f17.png\",\n    \"name\": \"Evernorth Care Group\",\n    \"slgId\": \"1136\",\n    \"url\": \"https://mychart.cignamedicalgroup.com/Chart/\"\n  },\n  {\n    \"aliases\": [\n      \"My Wellness Center\",\n      \"TheCure\",\n      \"Cirrus\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F17C1137-98DB-44EE-B914-485C8DCAE301/8541c586c414299c91629038593dda44.png\",\n    \"name\": \"Evernorth Workplace Care\",\n    \"slgId\": \"1136-1\",\n    \"url\": \"https://mychart.evernorthworkplacecare.com/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B059F58-ABFC-4BF8-A2E9-B406956B91BA/a86bb760112bb4a405d508b069062695.png\",\n    \"name\": \"Evernorth Home-Based Care\",\n    \"slgId\": \"1136-2\",\n    \"url\": \"https://mychart.alegiscare.com/ChartAC/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Altais Medical Group Riverside\",\n      \" Brown and Toland Physicians\",\n      \"Family Care Specialists Medical Group\",\n      \"Altais Medical Group\",\n      \"Family Care Specialists\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E4C1336B-DCDC-4AF0-9DD6-71823DA87A19/93032dd9bfc98bb93cabad3ee141d77c.png\",\n    \"name\": \"Altais Health Solutions\",\n    \"slgId\": \"1138\",\n    \"url\": \"https://mychart.brownandtoland.com/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E9E8A499-E770-4D73-815D-B84795A1DDD3/5ee22f7d01c4bb814264f704efcf6824.png\",\n    \"name\": \"Catholic Health\",\n    \"slgId\": \"1144\",\n    \"url\": \"https://mychart.chsbuffalo.org/MyChart\"\n  },\n  {\n    \"aliases\": [\n      \"BNMM\",\n      \"Buffalo NMM\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AA3D9D5C-9D01-438E-BB93-1447430470BE/004880cf501a9f9d4e09feb013add345.png\",\n    \"name\": \"Buffalo Neuromusculoskeletal Medicine\",\n    \"slgId\": \"1144-2\",\n    \"url\": \"https://buffalonmm.mychartwny.org/BNM/\"\n  },\n  {\n    \"aliases\": [\n      \"Medical Care of WNY\",\n      \"Dejac\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C428CB22-C618-480A-9988-F47E88753C70/d0d82480eef7737d8f0260af96bb4d20.png\",\n    \"name\": \"Medical Care of Western New York\",\n    \"slgId\": \"1144-3\",\n    \"url\": \"https://medicalcareofwny.mychartwny.org/DEJAC/\"\n  },\n  {\n    \"aliases\": [\n      \"Fare Well\",\n      \"Alisha Lall\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/48E1107E-5969-451B-9F82-CF72A554940D/aa545e7ebad5ebb1428a4c46e08de4cd.png\",\n    \"name\": \"Fare Well Medical Practice\",\n    \"slgId\": \"1144-4\",\n    \"url\": \"https://farewellhealth.mychartwny.org/FAREWELL/\"\n  },\n  {\n    \"aliases\": [\n      \"O'Gorman\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FB3EBF1C-7EF5-4701-A37B-E56A68521FC6/bad53662cc7177a296bc2a041992bca9.png\",\n    \"name\": \"Eden Primary Care\",\n    \"slgId\": \"1144-5\",\n    \"url\": \"https://edenprimarycare.mychartwny.org/EDEN/\"\n  },\n  {\n    \"aliases\": [\n      \"Niagara Kidney\",\n      \"NPN\",\n      \"Nephrology Niagara\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/77284D20-EDDC-47B5-8F99-C46C2A4DD9F1/c0772da363008bd6af2dc95143d51156.png\",\n    \"name\": \"Nephrology Practice of Niagara\",\n    \"slgId\": \"1144-6\",\n    \"url\": \"https://niagarakidney.mychartwny.org/NPN/\"\n  },\n  {\n    \"aliases\": [\n      \"SAWNY\",\n      \"Surgical Associates of WNY\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AFBA15DD-3165-4458-BF52-40D37D796588/8d50ab71292e5807bbdd57f06a2008cf.png\",\n    \"name\": \"Surgical Associates of Western New York\",\n    \"slgId\": \"1144-7\",\n    \"url\": \"https://surgicalassociateswny.mychartwny.org/SAWNY/\"\n  },\n  {\n    \"aliases\": [\n      \"Southtowns Neurology WNY\",\n      \"Southtowns Neuro\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/207ADDA1-29E9-47A8-AD81-4B5BDE917267/eb1332da3b2f127afccbe09100bc68a5.png\",\n    \"name\": \"Southtowns Neurology of Western New York\",\n    \"slgId\": \"1144-8\",\n    \"url\": \"https://southtownsneurology.mychartwny.org/SN/\"\n  },\n  {\n    \"aliases\": [\n      \"Gaddi\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9BE46423-EC8E-4CF1-9AFF-CEFEA1490C4A/62aa3336d6253f22b6ea27aad2290666.png\",\n    \"name\": \"Gaddi Family Medicine PLLC\",\n    \"slgId\": \"1144-9\",\n    \"url\": \"https://GaddiFamilyMed.mychartwny.org/GADDI/\"\n  },\n  {\n    \"aliases\": [\n      \"SVMHS\",\n      \"SVH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4E2396AD-C101-4230-910C-A914CB7A4637/536f6ede46d32c693ff574cab2bd4d03.png\",\n    \"name\": \"Salinas Valley Health\",\n    \"slgId\": \"1146\",\n    \"url\": \"https://mychart.svmh.com/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/08B67D45-D6B8-410F-9209-FE32F4AA1089/3afeaaf4c8fd1e9eb7c7c1050468cb77.png\",\n    \"name\": \"Doctors on Duty\",\n    \"slgId\": \"1146-1\",\n    \"url\": \"https://mychart.svmh.com/dod/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"CCN\",\n      \"Central Coast Nephrology\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A3106F5E-106D-41D4-81D1-F243C8A83FD8/7735a648b2529453f89cdf9e7f39f93f.png\",\n    \"name\": \"Central Coast Nephrology\",\n    \"slgId\": \"1146-2\",\n    \"url\": \"https://mychart.svmh.com/affiliates/\"\n  },\n  {\n    \"aliases\": [\n      \"SLMG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3920CE86-AFD1-4738-A763-E4AED8A38E05/1f642c8a13c74bfa3786c440879ffae7.png\",\n    \"name\": \"Santa Lucia Medical Group\",\n    \"slgId\": \"1146-3\",\n    \"url\": \"https://mychart.svmh.com/affiliates/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F8C19397-F24E-4B1A-93A2-37FB4B9033EE/009bceba4c27872c5916f99663aab82b.png\",\n    \"name\": \"Johnny Blanchard, MD\",\n    \"slgId\": \"1146-4\",\n    \"url\": \"https://mychart.salinasvalleyhealth.com/affiliates/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/651BCCF3-A563-45C8-B6B5-4FD7737F425A/b2bf674e25012b46c05f1e37aa1d5b98.png\",\n    \"name\": \"Cape Cod Healthcare\",\n    \"slgId\": \"1149\",\n    \"url\": \"https://mychart.capecodhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CEHC\",\n      \"Scarborough Health Network\",\n      \"SHN\",\n      \"Peterborough Regional Health Centre\",\n      \"PRHC\",\n      \"Lakeridge Health\",\n      \"LH\",\n      \"Ross Memorial\",\n      \"RMH\",\n      \"Campbellford Memorial Hospital\",\n      \"CMH\",\n      \"Haliburton Highlands Health Service\",\n      \"HHHS\",\n      \"Northumberland Hills Hospital\",\n      \"NHH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4EF9DB2E-BE4E-4C1A-B167-E5CEA385A2A8/4f33dcb405afb26ee25f0a4ccb0ebade.png\",\n    \"name\": \"Central East Hospital Cluster\",\n    \"slgId\": \"1150\",\n    \"url\": \"https://mychart.ourepic.ca/MyChartPRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"armc\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E3A4003F-3CA8-4B75-BC91-41CBD3EB3208/5ac0339d835766a82c9055adf05b3bff.png\",\n    \"name\": \"Arrowhead Regional Medical Center\",\n    \"slgId\": \"1152\",\n    \"url\": \"https://mychart.arrowheadregional.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Urology\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/33A2302B-A69A-4F22-A08F-D45D77809990/58988de05b30158b65dea5abea7ccd2d.png\",\n    \"name\": \"Summit Health\",\n    \"slgId\": \"1153\",\n    \"url\": \"https://mychart.njurology.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E24E83C8-3C7A-4CAB-91FD-1D077185523D/8c6ea7eacaa0f648cb071f0b4f91e0e9.png\",\n    \"name\": \"Planned Parenthood\",\n    \"slgId\": \"1154\",\n    \"url\": \"https://www.myplannedparenthoodchart.org/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [\n      \"University\",\n      \"Kentucky\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A45F73F5-B283-4F8F-891A-8C199464A5F4/7c397a07c1bdad974525d1e9a5829d34.png\",\n    \"name\": \"UK Healthcare\",\n    \"slgId\": \"1155\",\n    \"url\": \"https://mychart.uky.edu/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/936E9C2E-B8B9-4BC4-BDAF-A29A0E5DACF9/0459010045bcf487b61dab3efff96b35.png\",\n    \"name\": \"Rockcastle Regional\",\n    \"slgId\": \"1155-1\",\n    \"url\": \"https://mychart.uky.edu/RockcastleMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AB2FED51-43CF-4565-A14A-16FFF1A54117/386a17b9ad95b74c53f0b97d098ad795.png\",\n    \"name\": \"Southeast Health\",\n    \"slgId\": \"1156\",\n    \"url\": \"https://mychart.southeasthealth.org/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5F1FF0AD-BC9B-4273-ADA9-9E938E5DDE5A/16db880478a22ecef34fbfb660c28c8a.png\",\n    \"name\": \"RWJBarnabas Health\",\n    \"slgId\": \"1157\",\n    \"url\": \"https://mychart.rwjbh.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/941BE324-66F3-43C0-9F48-67692E0E3BBF/609faa875d3dd2cba10fcd85a8665825.png\",\n    \"name\": \"Saint James Health\",\n    \"slgId\": \"1157-1\",\n    \"url\": \"https://mychart.rwjbh.org/saintjameshealth/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5A449825-200B-4D03-BEBF-7493BD8912B8/fc266e5fd827b6944887f8d11de9dd5a.png\",\n    \"name\": \"Rutgers Health University Behavioral Health Care\",\n    \"slgId\": \"1157-2\",\n    \"url\": \"https://mychart.rwjbh.org/ubhc/\"\n  },\n  {\n    \"aliases\": [\n      \"Community\",\n      \"Care\",\n      \"CUC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B9737BAA-04D6-478D-BC7D-CE0DD8BD57B5/0f917dc7c1483ea7829f5cb6978b4411.png\",\n    \"name\": \"CommUnityCare\",\n    \"slgId\": \"1164\",\n    \"url\": \"https://mychart.communitycaretx.org/mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B155FBA-37DE-42EA-9905-9CA888A32F30/74fbd8dc2aec75a5bd8ebb0091fc1016.png\",\n    \"name\": \"Central Health\",\n    \"slgId\": \"1164-1\",\n    \"url\": \"https://mychart.centralhealth.net/CentralHealth/\"\n  },\n  {\n    \"aliases\": [\n      \"Licking\",\n      \"LMH\",\n      \"LMHS\",\n      \"Licking Memorial\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/706E2DDB-B6FC-4978-91CA-659371A4CC1F/1f697e5d7907ae2dbeca9b389abc55d3.png\",\n    \"name\": \"Licking Memorial Health System\",\n    \"slgId\": \"1168\",\n    \"url\": \"https://mychart.lmhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"GVHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C6FD7F9C-921A-4165-B5C0-3BDC454D062F/d77915325af1e94451c728a196d9bff2.png\",\n    \"name\": \"Golden Valley Health Centers\",\n    \"slgId\": \"1170\",\n    \"url\": \"https://mychart.gvhc.org/MyChartPRD/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"NI\",\n      \"HSC\",\n      \"HSCNI\",\n      \"SET\",\n      \"SEHSCT\",\n      \"BHSCT\",\n      \"NHSCT\",\n      \"WHSCT\",\n      \"SHSCT\",\n      \"South Eastern Trust\",\n      \"Belfast Trust\",\n      \"Northern Trust\",\n      \"Southern Trust\",\n      \"Western Trust\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/690AA3D4-93A0-4B69-B405-7A4472E14EA6/889314e7975ef0ede8bc15e0c35cfe7a.png\",\n    \"name\": \"Health and Social Care Northern Ireland\",\n    \"slgId\": \"1175\",\n    \"url\": \"https://mycare.encompass.hscni.net/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"MyUTP\",\n      \" UTP\",\n      \"Houston\",\n      \"University\",\n      \"Texas\",\n      \"HCPC\",\n      \"Harris\",\n      \"County\",\n      \"Psychiatric\",\n      \"UT Physicians\",\n      \"UT Health\",\n      \"UTPhysicians\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9C9518CF-2615-45A3-8A70-7D2C4A397AE0/02436ec0847224f2d673880eeb82a480.png\",\n    \"name\": \"UTHealth Houston\",\n    \"slgId\": \"1178\",\n    \"url\": \"https://MyUTHealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8A7A6C21-A838-4A2A-8BDA-C2131591FC7D/4b6e7c7803d10917b1f33e10473f0810.png\",\n    \"name\": \"Tufts Medicine\",\n    \"slgId\": \"1180\",\n    \"url\": \"https://www.mytuftsmed.org/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"DMEI\",\n      \"DEAN MCGEE\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CD708F45-A873-4755-9D8D-5BD881984052/c9924271b6e130727c969e619626588b.png\",\n    \"name\": \"OU Health\",\n    \"slgId\": \"1181\",\n    \"url\": \"https://mychart.ouhealth.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5B02B32A-CB5F-44FA-9C47-C4B949D65E22/fefdd5a8146e6bd92eef597d613234ad.png\",\n    \"name\": \"OrthoCarolina\",\n    \"slgId\": \"1182\",\n    \"url\": \"https://my.orthocarolina.com/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"UHN\",\n      \"TGH\",\n      \"Toronto General Hospital\",\n      \"TWH\",\n      \"Toronto Western Hospital\",\n      \"PMH\",\n      \"Princess Margaret Hospital\",\n      \"TRI\",\n      \"Toronto Rehab Institute\",\n      \"University Centre\",\n      \"UC\",\n      \"Lyndhurst\",\n      \"Rumsey\",\n      \"Bickle\",\n      \"Altum Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1B6360A7-ABF1-4B31-93C5-C906FC74AF10/39c5f2fd7461b1f2b3a490dd661f5e76.png\",\n    \"name\": \"University Health Network\",\n    \"slgId\": \"1183\",\n    \"url\": \"https://mychartprd.uhn.ca/mychartprd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/127508E6-0447-4669-B51E-AD9EAF3C0CC6/8465e6c8943c3d244dbc199cdefffcf4.png\",\n    \"name\": \"Arizona Community Physicians\",\n    \"slgId\": \"1186\",\n    \"url\": \"https://mychart.azacp.com/mychartprd/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/05A16420-F690-4434-A23B-29264804CD58/7224c32d2bd84a9e53ffad71eb7d6f6e.png\",\n    \"name\": \"FastMed\",\n    \"slgId\": \"1190\",\n    \"url\": \"https://mychart.fastmed.com/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0A45D1B2-3F3F-4A4F-85A8-E8D861DBB948/4df886ec6d0b2c3888892dbf77476b70.png\",\n    \"name\": \"AvanceCare\",\n    \"slgId\": \"1190-4\",\n    \"url\": \"https://mychart.avancecare.com/Avancecare/\"\n  },\n  {\n    \"aliases\": [\n      \"ULP\",\n      \"UofL\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E297D59-55F5-4F40-A4F3-8A929DB161FA/ee785a012f0a270ed5bb9ca6c2279391.png\",\n    \"name\": \"University of Louisville Physicians\",\n    \"slgId\": \"1193\",\n    \"url\": \"https://mychart.uoflhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CC85D943-9FBE-40AA-A985-8E95868905D2/e0ca51ff101d42d8b4a793c58f4a3d23.png\",\n    \"name\": \"AdventHealth\",\n    \"slgId\": \"1194\",\n    \"url\": \"https://account.adventhealth.com/login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/98C25AA4-35C6-40EC-91EC-1A5BF69C0D45/43638628ee3c21de033254083e8df028.png\",\n    \"name\": \"Florida Advanced Gastroenterology Center\",\n    \"slgId\": \"1194-7\",\n    \"url\": \"https://mychart.adventhealth.com/shepherdshope/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F2A55EDD-9C86-4946-AEC6-C8BC484765A8/1ae577e91e0b278f678edc5be920ab42.png\",\n    \"name\": \"Shepherd's Hope\",\n    \"slgId\": \"1194-8\",\n    \"url\": \"https://mychart.adventhealth.com/shepherdshope/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8EA7F1B9-BB68-4C6A-8D7B-1C63E92D5A61/83266b9c2de5dda1120ab8d6aafbe4fa.png\",\n    \"name\": \"Grace Medical Home\",\n    \"slgId\": \"1194-9\",\n    \"url\": \"https://mychart.adventhealth.com/gracemedical/\"\n  },\n  {\n    \"aliases\": [\n      \"IBJI\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5AEFF82B-A7DF-419D-B670-7EC06D4EE737/2e61bdf22297d9949b2e2c6d1e30af9a.png\",\n    \"name\": \"Illinois Bone & Joint Institute\",\n    \"slgId\": \"1195\",\n    \"url\": \"https://mychart.ibji.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AAB04E1C-171D-4D5F-90B5-A6BD85C3B3EB/772bec42bd61d988568616d7e8271e38.png\",\n    \"name\": \"Hoag Memorial Hospital Presbyterian\",\n    \"slgId\": \"1197\",\n    \"url\": \"https://www.hoagconnect.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D38AC1AA-A175-47EB-B689-34B48BC86E4F/86889000d1398a8c6f1489cca563ce91.png\",\n    \"name\": \"Insel Gruppe\",\n    \"slgId\": \"1199\",\n    \"url\": \"https://myinsel.insel.ch/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7A274B6D-2E95-4BE1-9169-DE97F49CC8AD/45000712b28f1316f3238d05d465d96b.png\",\n    \"name\": \"VCU Health\",\n    \"slgId\": \"1200\",\n    \"url\": \"https://mychart.vcuhealth.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"MFT\",\n      \"NHS\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0E72A436-25BF-41B0-A5E3-BE4C37A51D98/e3a2d66647081cabb81d74f86aaff44d.png\",\n    \"name\": \"Manchester Foundation Trust\",\n    \"slgId\": \"1203\",\n    \"url\": \"https://my.mft.nhs.uk/MyMFT/\"\n  },\n  {\n    \"aliases\": [\n      \"Deaconess\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D1592944-2F90-461E-BD2E-5A7A2A8A2280/343e11af0a61137c257f0f6b8b9d2074.png\",\n    \"name\": \"Memorial Hospital and Healthcare Center\",\n    \"slgId\": \"1204\",\n    \"url\": \"https://mychart.mhhcc.org/MyChartPRD\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C9B49438-D822-4E1C-805A-6C1BC028AD03/8721cda77555adde4d37fe96018ccb86.png\",\n    \"name\": \"Baptist Health - Northeast Florida\",\n    \"slgId\": \"1206\",\n    \"url\": \"https://my.baptistchart.com/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5177420A-83D9-49D8-B854-D69E319220D3/8799e767929fa6fcc1e5e96c6991266c.png\",\n    \"name\": \"Men's Mental Health\",\n    \"slgId\": \"1206-1\",\n    \"url\": \"https://mensmentalhealthservices.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"directoryUrl\": \"https://www.floridalungclinic.com/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1BAC3F22-56F9-4095-B86A-F43F1E583F38/ce838180dddb8a2e312dfc16cc82988c.png\",\n    \"name\": \"Jacksonville Lung Clinic\",\n    \"slgId\": \"1206-2\",\n    \"url\": \"https://my.baptistchart.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/05F40EF7-4771-4B03-9794-47CD294F7109/b1996afa66221604fe72fe0e2dd38539.png\",\n    \"name\": \"Emory Healthcare\",\n    \"slgId\": \"1208\",\n    \"url\": \"https://mychart.emoryhealthcare.org/MyChart-prd/\"\n  },\n  {\n    \"aliases\": [\n      \"Canberra\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0375D893-E2A0-44BA-A546-55AE93CD05EE/021db640d92dcab0f7f0c8b7904f6b62.png\",\n    \"name\": \"ACT Health\",\n    \"slgId\": \"1211\",\n    \"url\": \"https://www.mydhr.act.gov.au/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D090E776-C5CF-4DB6-91A6-7B913584C21C/6a1049130d6b48a2e8b7197765acb118.png\",\n    \"name\": \"King's College Hospital\",\n    \"slgId\": \"1212-1\",\n    \"url\": \"https://mychart.kch.nhs.uk/KCH/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/34A6C107-9B0E-4D00-8071-44E5D18AC6DF/8d6937438bcbd09542ad94b6e8fd4f30.png\",\n    \"name\": \"Guy's and St Thomas'\",\n    \"slgId\": \"1212-2\",\n    \"url\": \"https://mychart.gstt.nhs.uk/GSTT/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"NHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F32ECCE8-3D9C-4578-B0B6-233BF9C84245/fb49b4a9e025d592bd24cb6f2e33fe87.png\",\n    \"name\": \"Frimley Health Foundation NHS Trust\",\n    \"slgId\": \"1214\",\n    \"url\": \"https://myfrimleyhealthrecord.fhft.nhs.uk/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7526BFD6-6BE1-4A53-B435-5AB7329A1B00/19de522fb8e24393f8c2f7df0af6014c.png\",\n    \"name\": \"Reid Health\",\n    \"slgId\": \"1220\",\n    \"url\": \"https://myreidhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MCN\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3FD89B98-3959-4F5C-BF3B-70F1B85B0ABF/de43be67a4d4c0c7b828c571e2a2fef2.png\",\n    \"name\": \"Muscogee Creek Nation\",\n    \"slgId\": \"1221\",\n    \"url\": \"https://mychart.creekhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/787F96F2-DE94-4D1E-ACA0-B7EB9C129B6B/7b0fc6c208a9e59c46d6d56fefa5a8cb.png\",\n    \"name\": \"Osage Nation Health System\",\n    \"slgId\": \"1221-1\",\n    \"url\": \"https://mychart.osagehealth.org/Osage/\"\n  },\n  {\n    \"aliases\": [\n      \"MFA\",\n      \"George Washington Medical Faculty Associates\",\n      \"GW\",\n      \"Medical Faculty Associates\",\n      \"CMG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/695D75A8-C662-4184-9BDC-3D7693B6EC3B/7ffcf7d30d47f808ca2ca2168b7ba228.png\",\n    \"name\": \"Capital Medical Group\",\n    \"slgId\": \"1222\",\n    \"url\": \"https://mychart.gwdocs.com/MyChart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C0200738-F8E0-4A98-886A-6042621484A5/576e7ebe9e5432864c0f8048b9601fd0.png\",\n    \"name\": \"Pikeville Medical Center\",\n    \"slgId\": \"1225\",\n    \"url\": \"https://mychart.pikevillehospital.org/MyChart\"\n  },\n  {\n    \"aliases\": [\n      \"Health Alliance\",\n      \"Simplete\",\n      \"OSF MedAvantage\",\n      \"FirstCarolina\",\n      \"FirstMedicare\",\n      \"New Hanover\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/884D56AC-3BC0-4E4C-A28E-4FBEFA4E1837/a7505319c6405319fec9b2a35e28cb55.png\",\n    \"name\": \"Hally\",\n    \"slgId\": \"1228\",\n    \"url\": \"https://mychart.hally.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NCH\",\n      \"Naples Comprehensive Health\",\n      \"Naples\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/726A1428-09CE-4E3E-A603-8018A72AB297/8f17cccf63b80480a28f2a004ef20398.png\",\n    \"name\": \"NCH Healthcare System\",\n    \"slgId\": \"1233\",\n    \"url\": \"https://www.mychart-nchmd.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/402C29DE-774D-467F-A414-636F173262F4/f81c4170e383356ddfb552777b5759a4.png\",\n    \"name\": \"Integris Physician Group\",\n    \"slgId\": \"1233-2\",\n    \"url\": \"https://mychart-cc-ipg-nchmd.org/mychart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/45F9CB14-F48B-4325-8A26-D673F1BF33A9/00835d2dc677a63f9e8758cc8ced9406.png\",\n    \"name\": \"Upwell Primary Care\",\n    \"slgId\": \"1233-3\",\n    \"url\": \"https://mychart-cc-sghu-nchmd.org/mychart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7807AEFD-A099-4910-966A-9E4287C34881/bf039b1e096c755b36ea1a3a9257c8cb.png\",\n    \"name\": \"Infectious Disease Associates of Naples\",\n    \"slgId\": \"1233-4\",\n    \"url\": \"https://mychart-cc-ida-nchmd.org/mychart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5683FEAA-589A-47E3-8D8D-31F5F5A76A38/480a23ef3e21d3da220067725ff4f1c5.png\",\n    \"name\": \"BioSpine Institute\",\n    \"slgId\": \"1233-5\",\n    \"url\": \"https://mychart-cc-bsh-nchmd.org/mychart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0440E6F4-A2CD-4D82-B75D-8CEB85CEDF44/1a83dfa648836eed6c459bddeb62cb56.png\",\n    \"name\": \"Winmind Behavioral Health & Addiction Medicine\",\n    \"slgId\": \"1233-6\",\n    \"url\": \"https://mychart-cc-sghw-nchmd.org/mychart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/13525C6A-6D92-41FC-B17E-7A711BC23E0A/84453b7b7df3440ab650c83b059eb305.png\",\n    \"name\": \"HSS at NCH\",\n    \"slgId\": \"1233-7\",\n    \"url\": \"https://mychart-cc-hssasc-nchmd.org/MyChart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/308F59AA-45E7-4185-A7CB-83AAC5BB1760/504cbc6546a8ea766f09c3a2e4fd304e.png\",\n    \"name\": \"Naples Concierge Cardiology and Internal Medicine\",\n    \"slgId\": \"1233-8\",\n    \"url\": \"https://mychart-cc-ncc-nchmd.org/MyChart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/89096E9C-B017-4341-9B58-C42FA11A9F7F/1e7960b3ee216528293f9cbedd5bc303.png\",\n    \"name\": \"EverWell Precision Health\",\n    \"slgId\": \"1233-9\",\n    \"url\": \"https://mychart-cc-ewp-nchmd.org/MyChart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1534C6D7-2AC1-4442-9D48-22D614FEE760/e642e3b7c5f94665d8937507092d00d1.png\",\n    \"name\": \"Old Naples Concierge Medicine\",\n    \"slgId\": \"1233-10\",\n    \"url\": \"https://mychart-cc-oncm-nchmd.org/MyChart-cc-nchmd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3A990C86-2529-4C6E-8F27-DD5F13935EF1/28942f9bd7cfa51a00d12bde29bd8c8b.png\",\n    \"name\": \"St. Jude\",\n    \"slgId\": \"1234\",\n    \"url\": \"https://mychart.stjude.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5EACDF3B-2666-4B19-B58B-906DEDE4E7F2/55880d62089d39491cd661144a9d85cd.png\",\n    \"name\": \"Self Regional\",\n    \"slgId\": \"1235\",\n    \"url\": \"https://mychart.selfregional.org/MySRH/\"\n  },\n  {\n    \"aliases\": [\n      \"amstelland\",\n      \"ZHA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/72622A05-601E-4338-A305-D6B704DFBF49/521fa90a1dbedbd056067e6f1dcf4316.png\",\n    \"name\": \"Ziekenhuis Amstelland Directory\",\n    \"slgId\": \"1236\",\n    \"url\": \"https://mijnzha.ziekenhuisamstelland.nl/MyChart-ZHAPRD/\"\n  },\n  {\n    \"aliases\": [\n      \"Health On Broadway\",\n      \"Health On Tucson\",\n      \"Health On University\",\n      \"St. Elizabeth Health Center\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/511B9B46-A6C2-4879-B366-B6AF1D8AD059/9253f22708bc9040f78199810dc2eca2.png\",\n    \"name\": \"El Rio Health\",\n    \"slgId\": \"1240\",\n    \"url\": \"https://elriomychart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3ED4A7D7-0782-4743-A1BD-DF6831B8F04C/81f3d34cf6066cd47cce42e8c9902a26.png\",\n    \"name\": \"West Tennessee Healthcare\",\n    \"slgId\": \"1243\",\n    \"url\": \"https://mychart.wth.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"UT\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/260AD984-F297-4E1B-BD77-7DC1F865D436/924c4a1069997bab58739edbdaa9e599.png\",\n    \"name\": \"University of Toledo\",\n    \"slgId\": \"1245\",\n    \"url\": \"https://mychart.utoledo.edu/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/41B1C806-9EA7-43A4-9D24-36A3004923B0/53e9caa411feeade6ec271eaa150315a.png\",\n    \"name\": \"Children's of Alabama\",\n    \"slgId\": \"1246\",\n    \"url\": \"https://mychart.childrensal.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7F45E59E-C30E-40E4-8868-EA76EF175B5A/2d68533d91b5bb0bd075b5896d80955c.png\",\n    \"name\": \"Bozeman Health\",\n    \"slgId\": \"1252\",\n    \"url\": \"https://mychart.bozemanhealth.org/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BED21DD1-A7E8-4763-A502-34429BACCE84/682cda0771b335be222f4c59a9f65bd5.png\",\n    \"name\": \"Community Health Partners\",\n    \"slgId\": \"1252-1\",\n    \"url\": \"https://mc.bh.bozemanhealth.org/CHPMyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7ACB281B-3875-4FDD-8A0F-90B6A58941F2/ec84296564bcd9a327fca38a507a3f7a.png\",\n    \"name\": \"Chickasaw Nation Health\",\n    \"slgId\": \"1253\",\n    \"url\": \"https://mychart.chickasawnationhealth.net/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6338E8AF-E486-444B-98E3-B195B1AF09AD/326b4af8e79bd213f9babaf66f5c5235.png\",\n    \"name\": \"Aspen Valley Health\",\n    \"slgId\": \"1254\",\n    \"url\": \"https://mychart.aspenvalleyhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CHI\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/46EBFAE9-F6FD-4FBB-BD71-85CA6A1BBEB9/9a98c7ba4349b414408b6aefa20eee36.png\",\n    \"name\": \"Community Health of South Florida\",\n    \"slgId\": \"1256-1\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B873017B-03C2-4E23-A9C4-9B92ED267ACF/7e7f1afbd08b5e8be4b05c0c5f469c62.png\",\n    \"name\": \"Evara Health\",\n    \"slgId\": \"1256-2\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"JTCHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D595F7FD-8B65-401F-B0D8-711517017DF4/0d8bf3c56ee7ea706e6f3d2d1717cc8f.png\",\n    \"name\": \"Jessie Trice Community Health System\",\n    \"slgId\": \"1256-3\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MBCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E11D833-1CBB-486A-B6BA-B9922DD1166D/1e1f46b69027276cc747a17e15a37bdc.png\",\n    \"name\": \"Miami Beach Community Health Center\",\n    \"slgId\": \"1256-4\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"TFHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F7AA022C-2691-4DC5-913B-2A557B08AD8A/f52f867c7e39adad6a25c8c6e7892925.png\",\n    \"name\": \"Tampa Family Health Centers\",\n    \"slgId\": \"1256-5\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"BCOM\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/20DD93D8-EC30-4FF3-B2F3-CF3B73A21581/d84628bc85ad7ef51caa931bfa07189a.png\",\n    \"name\": \"Broward Community and Family Health Centers\",\n    \"slgId\": \"1256-6\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CHCL\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/510843B9-D5B5-4A8F-A827-B25D0DB600C2/7b11b7fd377b95e7d2c23532b3376bdc.png\",\n    \"name\": \"Community Health Center of Lubbock\",\n    \"slgId\": \"1256-7\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CWH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/13C6E5CB-E8E3-4246-8231-5D5E94052B74/16eb024d6a1754e77cb7e9db93b66e0a.png\",\n    \"name\": \"CommWell Health\",\n    \"slgId\": \"1256-8\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"FCHSTL\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0531DFBA-2793-4B8A-A1AF-44BA65F8458B/bf0250e2eee4543db71c73d6d56aac80.png\",\n    \"name\": \"Family Care Health Centers of St. Louis\",\n    \"slgId\": \"1256-9\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"FNDCR\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/75B7894B-883A-4AC4-BDED-5CD6A878A0E9/d0692ad265481d5aae9910e3b3fc5578.png\",\n    \"name\": \"FoundCare\",\n    \"slgId\": \"1256-10\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"LCFHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5F894984-4F44-4775-8392-103D10E390F4/54a214fb288acdc3d5b3e70b1f7d020a.png\",\n    \"name\": \"La Casa Family Health Centers\",\n    \"slgId\": \"1256-11\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"OBFH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/04AC8535-1B9F-45D8-860B-4ECF6BD30125/5e8623df03218fe417d6fba9faeeb933.png\",\n    \"name\": \"Orange Blossom Family Health\",\n    \"slgId\": \"1256-12\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B31C6EE9-24BE-454E-818A-B4C02C454814/a3a9aeaa6ef9d26b0b0c0071a49c674b.png\",\n    \"name\": \"CareArc\",\n    \"slgId\": \"1256-13\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"HICHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/89E35EF7-B46A-4390-8B2D-23F26635A606/7505aae79f269378a8e29497cc597209.png\",\n    \"name\": \"Hawaii Island Community Health Center\",\n    \"slgId\": \"1256-14\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"PCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CF8FA0E7-7E61-473A-9A71-CB491B29441A/a551e16f961658efc6bf28a142b587a7.png\",\n    \"name\": \"Providence Community Health Centers\",\n    \"slgId\": \"1256-15\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CAM\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A7A9A76B-BE6C-44FD-A8AD-F94A381B4154/87fdd1d0dcf08ea977e66f2e7bd07be4.png\",\n    \"name\": \"Camillus Health Concern\",\n    \"slgId\": \"1256-16\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"EUCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3F312342-838C-43EA-B343-0A46E98A6858/2dccc2ad2c463f70101dce7c925d7979.png\",\n    \"name\": \"Empower U\",\n    \"slgId\": \"1256-17\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/941B7185-0543-4A8C-A100-8BDB28DE1724/6a90446d0b3156e63b09d7c006bdb4eb.png\",\n    \"name\": \"NeoMed Center\",\n    \"slgId\": \"1256-18\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"LCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8CD89AAF-6694-448B-BF93-FE358D667685/ae128c26790ad7f6ae26de2d7520a8d3.png\",\n    \"name\": \"Legacy Community Health\",\n    \"slgId\": \"1256-19\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"PCHG\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DA993771-F0AC-46E2-B924-553535E8E482/6814aa5ae065867fe94242cf8573c959.png\",\n    \"name\": \"Premier Community HealthCare\",\n    \"slgId\": \"1256-20\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"GCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5BFB639E-1AD8-4B51-B713-FBAB849993C0/16a4e2c42872812e92d0b1f00ef8cc57.png\",\n    \"name\": \"Genesis Community Health\",\n    \"slgId\": \"1256-21\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7ED585C7-C536-43A3-8EEB-C3B54867B134/b7325a79ae72b7d20268386cd2071828.png\",\n    \"name\": \"Malama I Ke Ola Health Center\",\n    \"slgId\": \"1256-22\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"TCCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/86F6A51B-710A-433E-9B0C-562C48D65CA8/c75fd1edf8439bab63d7d0a7dbf5b037.png\",\n    \"name\": \"Treasure Coast Community Health\",\n    \"slgId\": \"1256-23\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MCHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6EB303B3-BA81-4957-9AE7-C66EFF3AF61A/8988eb69bcbb24a583a917f51f9fdf8c.png\",\n    \"name\": \"Med Centro\",\n    \"slgId\": \"1256-24\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"FCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6FDE0587-E2B1-44A6-84B4-9C41A9198D36/c3c55c8590ba464d1e22848a39770bf1.png\",\n    \"name\": \"Florida Community Health Centers\",\n    \"slgId\": \"1256-25\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"THC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8A87ECE2-A66B-4AE5-BDCD-1386B304056C/f29b0fc874315e603cc4f255d29757f9.png\",\n    \"name\": \"True Health\",\n    \"slgId\": \"1256-26\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"PHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/697E10C2-698C-4D61-9699-A9BFBD84DBD7/1714748850174a49c4af7288f96f962e.png\",\n    \"name\": \"Partnership Health Center\",\n    \"slgId\": \"1256-27\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"BAHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/51851463-1745-4256-92C0-FFD61DFA946F/5c8a3d4cfc3fe574dcb7d05e4dbdcbb0.png\",\n    \"name\": \"Ben Archer Health Center\",\n    \"slgId\": \"1256-28\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"HCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B364EFC0-0F5D-4AE6-AB88-0437AE2D8606/5eaa27de834b5948f184c50951b58a80.png\",\n    \"name\": \"Homestead Community Health Center\",\n    \"slgId\": \"1256-29\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"DHCS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1B43073F-2B17-4A17-A92D-08BEB266823A/17a9800232d7735eda03f6fadc20e5a5.png\",\n    \"name\": \"District Health Care Services\",\n    \"slgId\": \"1256-30\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"HCDPBC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1882D2BD-C452-4FF6-A008-6AFD49ECBD1C/a46d72fe4c85871d58189e3d1b19e9dd.png\",\n    \"name\": \"Health Care District of Palm Beach County\",\n    \"slgId\": \"1256-31\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CFHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B6789E46-E667-4836-9A2C-2C39D2EF093C/e13974812eb269107513a64b1bb47e6b.png\",\n    \"name\": \"Chicago Family Health Center\",\n    \"slgId\": \"1256-32\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"TCAH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2A685D17-B17B-42B4-8CD6-382FA85DF776/01944c57022b18ce5af7af9535271e6b.png\",\n    \"name\": \"TCA Health\",\n    \"slgId\": \"1256-33\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DAF7DDC8-AA3E-4DE1-8635-BA206ED9C2DD/2e919721a6f617014270c4d5bca3a22f.png\",\n    \"name\": \"Christian Community Health Center\",\n    \"slgId\": \"1256-34\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"FCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/848D546D-6F43-45AD-8D0C-DC0A45ADD924/9f83cbe79bc7781300318e81b27c4b83.png\",\n    \"name\": \"Family Christian Health Center\",\n    \"slgId\": \"1256-35\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"BCFWC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A3536A2F-788C-4E5B-AF3E-0A15F15ABF9E/f8aba643060a029f8687adc71d5ee266.png\",\n    \"name\": \"Beloved Community Family Wellness Center\",\n    \"slgId\": \"1256-36\",\n    \"url\": \"https://mychart.hcnetwork.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CHNWF\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F1E0A063-3B98-410A-ABA1-ABBDE3135CD5/dab6207c9d861bbc536c42913861933e.png\",\n    \"name\": \"Community Health Northwest Florida\",\n    \"slgId\": \"1256-37\",\n    \"url\": \"https://mychart.hcnetwork.org/CHNWFMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"HCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EF4B8554-8276-49FE-8955-561DEF1BE6D8/2ecfaeb3d112bc60e3ed1d1c06bf6e60.png\",\n    \"name\": \"Honor Community Health\",\n    \"slgId\": \"1256-38\",\n    \"url\": \"https://mychart.hcnetwork.org/HCHMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MFC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/052D985B-905F-4B31-8BD5-DA1EDB3F4F8A/cd8667da053e68cdef413fef8757f806.png\",\n    \"name\": \"Muskegon Family Care\",\n    \"slgId\": \"1256-39\",\n    \"url\": \"https://mychart.hcnetwork.org/MFCMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0839E985-B1A9-40D5-B532-9EC8EE1C7173/fb7cd3ab179202187671d5654d8b508a.png\",\n    \"name\": \"MyCare Health Center\",\n    \"slgId\": \"1256-40\",\n    \"url\": \"https://mychart.hcnetwork.org/MYCAREMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"TBCHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9C52CA36-2276-4AA0-8C3C-CDB5F056D86C/92d9c7f6844b4148a65d30cfeab24f73.png\",\n    \"name\": \"Thunder Bay Community Health Service Inc\",\n    \"slgId\": \"1256-41\",\n    \"url\": \"https://mychart.hcnetwork.org/TBCHSMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"WCHD\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/151BC7DD-9C46-4AAE-A1B2-B3100ADD99E2/3a6d8306c064dcb50baaf76bcc80daad.png\",\n    \"name\": \"Whiteside County Community Health Clinic\",\n    \"slgId\": \"1256-42\",\n    \"url\": \"https://mychart.hcnetwork.org/WCHDMyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ABDB6072-60C5-470B-82E1-B67F54E9C1E3/a7765b01ffd22ecfab6a93c68b0ff4bb.png\",\n    \"name\": \"Lakeland Regional Health\",\n    \"slgId\": \"1257\",\n    \"url\": \"https://mychart.mylrh.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/92891993-135D-4EE0-86F6-4FD4E6C374A2/2dc5b53064b00182295070e5ede71ac6.png\",\n    \"name\": \"University Hospitals Cleveland\",\n    \"slgId\": \"1258\",\n    \"url\": \"https://mychart.uhhospitals.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Florence Nephrology Associates\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/139A5FC8-8ECA-418D-BC96-1AB23F936DEB/fac7861c9ec6e92549fd8cbe29602125.png\",\n    \"name\": \"McLeod Health\",\n    \"slgId\": \"1267\",\n    \"url\": \"https://www.mcleodmychart.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/698F813F-5655-4091-B6BD-C3B3644F3D34/3c32139bd6e74b02c0d9f845c78d6641.png\",\n    \"name\": \"Valley Health Plan\",\n    \"slgId\": \"1268\",\n    \"url\": \"https://vhpconnect.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/16FE68FA-CAC3-4FBD-9A5C-C3FBA5EF1451/e942eae2e91aa29be6461ea4cc614de2.png\",\n    \"name\": \"EvergreenHealth\",\n    \"slgId\": \"1270\",\n    \"url\": \"https://mychart.evergreenhealth.com/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C3D54A75-CAB9-443A-9A61-2E54F678560B/c3a31cc437d7560af72ab9108a807cbb.png\",\n    \"name\": \"Mosaic Life Care\",\n    \"slgId\": \"1274\",\n    \"url\": \"https://mychart.mymlc.com/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D368C663-E245-41D7-A308-C4828F33D2EE/e1cc66085ea6094b44e70320525fd81a.png\",\n    \"name\": \"InnovAge\",\n    \"slgId\": \"1276\",\n    \"url\": \"https://mychart.innovage.com/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4EACF4AD-DEEA-49E2-B0B8-CF38866F18F8/34e144f86d39ca2884d186d3af5e1033.png\",\n    \"name\": \"Valley Health\",\n    \"slgId\": \"1277\",\n    \"url\": \"https://mychart.valleyhealth.org/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/865CB55A-478E-4E4C-91D4-9EBF8BCFCE58/05ce9742cd8b27a9056f6b75e0540e38.png\",\n    \"name\": \"Shriner's Childrens\",\n    \"slgId\": \"1283\",\n    \"url\": \"https://mychart.shrinerschildrens.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/56EA92E0-8C39-40A7-B5CF-4CF083A467B8/926864fb713ff5f116d37ccb7f6d9802.png\",\n    \"name\": \"KeyCare\",\n    \"slgId\": \"1284\",\n    \"url\": \"https://mychart.keycare.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5C63E782-9C41-414C-8B0B-2BF3C3E6FA96/a76872ecbeac67837de32a509268d7ea.png\",\n    \"name\": \"Array\",\n    \"slgId\": \"1284-1\",\n    \"url\": \"https://mychart.arraybc.com/Array/\"\n  },\n  {\n    \"aliases\": [\n      \"Northern Ohio Medical Specialists\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C5A76E45-46D5-420E-805A-54AF83C83761/038549ab80ded0c575c7a76588aab7e4.png\",\n    \"name\": \"NOMS\",\n    \"slgId\": \"1285\",\n    \"url\": \"https://mychart.nomshealthcare.com/MyChart-Prod/\"\n  },\n  {\n    \"aliases\": [\n      \"BCBSLA\",\n      \"LABLUE\",\n      \"LA Blue\",\n      \"Blue Cross Louisiana\",\n      \"MYLABlue\",\n      \"Blue Cross LA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F21AFA3E-883D-43DE-9F08-CF8DA1438EE9/a6ef5d249fb450868208d55c4d5b3a80.png\",\n    \"name\": \"Louisiana Blue\",\n    \"slgId\": \"1288\",\n    \"url\": \"https://my.lablue.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/704A0B3A-5A34-4A99-8DBB-0029493CF39B/9269986f82a8a3a70f3189ff1b4807ea.png\",\n    \"name\": \"Summa Health\",\n    \"slgId\": \"1289\",\n    \"url\": \"https://mychart.summahealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/960A00A7-E39F-4029-8206-EDBA60720EE7/35f7958841e864858f159e6f7c8488f6.png\",\n    \"name\": \"Charles River Community Health\",\n    \"slgId\": \"1290-1\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2659C5F0-C68C-4351-80DF-D961653C8133/46f0f7e86fa2824a229637d62fcbac1c.png\",\n    \"name\": \"Brockton Neighborhood Health Center\",\n    \"slgId\": \"1290-2\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E1A557E5-7AA1-4ABC-9D9C-A4CF728F9049/d00648e812aca98917b88eb18f260477.png\",\n    \"name\": \"Duffy Health Center\",\n    \"slgId\": \"1290-3\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/26B5A533-C7DC-4D4A-A505-2203636DBBA4/6792edfb6f722d3a462adf2554579f1c.png\",\n    \"name\": \"Fenway Health\",\n    \"slgId\": \"1290-4\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D4FA60DF-4145-4362-8A47-07733F18C2EB/4cc17c90f8e76e504540dff3268c39d6.png\",\n    \"name\": \"Community Health Center of Franklin County\",\n    \"slgId\": \"1290-5\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FC9C2C2A-CF30-40E5-AA80-71DCFE9662B0/2322045abd983a490cfe7b9af6f18a1e.png\",\n    \"name\": \"New Bedford Community Health\",\n    \"slgId\": \"1290-6\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/36031890-FB4A-4A19-821C-E71D4A7773A9/5b4518b3f8dfa652fddc50eccd1dda97.png\",\n    \"name\": \"Health First Family Care Center\",\n    \"slgId\": \"1290-7\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FAE608F3-BEFC-40D3-9697-83F1721B7374/154ea076ec0eef8af0269d41052b651c.png\",\n    \"name\": \"Hilltown Community Health Center\",\n    \"slgId\": \"1290-8\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/99FF2FCF-EF44-4788-A5F1-6641708DD8A6/229b3b8ad47024ba1a31c35ed765b1c1.png\",\n    \"name\": \"Holyoke Health\",\n    \"slgId\": \"1290-9\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D711D6B0-057F-4772-98A0-D3906A21B7D8/9918f3e71a5bbc8ba37f75a35e8c319e.png\",\n    \"name\": \"Island Health Care\",\n    \"slgId\": \"1290-10\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0798C82E-98EF-4DD6-B154-1EA7EDD80297/1454b218ebb4ac4e20100f5559ca8211.png\",\n    \"name\": \"Lowell Community Health Center\",\n    \"slgId\": \"1290-11\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CD2B6BF8-208B-427E-A2B9-DF3323D14C15/ade04e6b876f287324565311b9189cd9.png\",\n    \"name\": \"North Shore Community Health\",\n    \"slgId\": \"1290-12\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E4F38C0D-3797-444A-AAE0-85ED9D90CA0C/f2dd243140e4af2a57c11cdc17127ebf.png\",\n    \"name\": \"Family Health Center of Worcester\",\n    \"slgId\": \"1290-13\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/00A5D920-0EC2-4AF3-8C64-DF4DB97D10FC/559aed467ca0a57170d11282ab846b54.png\",\n    \"name\": \"High Country Community Health\",\n    \"slgId\": \"1290-14\",\n    \"url\": \"https://mychartepic.c3ctc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0C6D582E-0783-4631-A2EF-724C6082FE19/b9f376868e52408902c57829a7667f50.png\",\n    \"name\": \"Oregon Medical Group\",\n    \"slgId\": \"1292\",\n    \"url\": \"https://epicpnwmychart.optum.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"OptumCare\",\n      \"Midwest\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/40DB1D0C-A64C-487E-A8DE-E5A08A8BEA0D/f4616dc8b91484820a9566dc304c5ef9.png\",\n    \"name\": \"Optum Mountain West\",\n    \"slgId\": \"1292-1\",\n    \"url\": \"https://epicpnwmychart.optum.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Optum,SMA\",\n      \"Optum\",\n      \"SMA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EE31B0D9-F646-4C4F-B67F-F9FBB8B5474E/83487a93675d7de109b0ba0c2e76330a.png\",\n    \"name\": \"Southwest Medical\",\n    \"slgId\": \"1292-2\",\n    \"url\": \"https://epicpnwmychart.optum.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"OCCA\",\n      \"LA\",\n      \"OC\",\n      \"OCLA\",\n      \"Optum California\",\n      \"Los Angeles & Orange County\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EBC1365B-C229-4A1F-9BA9-9293A500809B/f50476f0fa9490e3395284764dc591d5.png\",\n    \"name\": \"Optum Medical Care of Los Angeles and Orange County\",\n    \"slgId\": \"1292-3\",\n    \"url\": \"https://epicpnwmychart.optum.com/MyChartCALI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8B52AFDB-EF84-4357-9809-51021E9DC768/f249145d347b7716779183523a0d758a.png\",\n    \"name\": \"Duly Health and Care\",\n    \"slgId\": \"1296\",\n    \"url\": \"https://mychart.dupagemedicalgroup.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1F54615D-A983-4BBC-B4A5-0F262908FAE8/bc725500a0f161122f647a50c62f39ea.png\",\n    \"name\": \"Albany Med Health System\",\n    \"slgId\": \"1299\",\n    \"url\": \"https://mychart.albanymed.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C1882AA3-CAF0-4E2A-90D6-381D5AD41BB8/db2f5191e58bab2aa9fee4c1aeb56a9c.png\",\n    \"name\": \"Ohio Department of Behavioral Health\",\n    \"slgId\": \"1316\",\n    \"url\": \"https://mychart.dbh.ohio.gov/Mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/092D168A-DF54-44FD-86A1-64ACD9568015/98e13510f35dabd201340e8a70164fee.png\",\n    \"name\": \"Central Ohio Primary Care Physicians\",\n    \"slgId\": \"1318\",\n    \"url\": \"https://mychart.copcp.com/mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"Winchester\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F9B7FB6D-98AA-499D-B783-D64FB080DECF/d08cda39ed050a25d8a730ee400c9c6f.png\",\n    \"name\": \"Valley Health System\",\n    \"slgId\": \"1320\",\n    \"url\": \"https://mychart.valleyhealthlink.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B12E70A1-40AD-4C09-82CC-9A68A3E755BC/0a3c4b6d420c2af4844533e4ae87920e.png\",\n    \"name\": \"Family Care Network\",\n    \"slgId\": \"1323\",\n    \"url\": \"https://mychart.fcn.net/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SBH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/18CDFEE6-CD6C-4E05-8E66-8483332086A4/70452ae530a08258571f28389b468adb.png\",\n    \"name\": \"St. Barnabas Health\",\n    \"slgId\": \"1324\",\n    \"url\": \"https://sbhmychart.barnabas.network/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C72E5CF4-A3AD-49ED-9770-B1A23DC0548C/ed66ad2b7a6e0b00255fd8f10bd2fa1b.png\",\n    \"name\": \"Memorial Hermann Health System\",\n    \"slgId\": \"1326\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E72445F2-5D81-4136-87AD-2F4EF17E031A/cc96a89193b6c7a0a11e001e6fa5b537.png\",\n    \"name\": \"Maeville Pediatrics\",\n    \"slgId\": \"1326-1\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9A2B7013-5514-4AE6-965B-6D452C22BF3D/76eb20c050d121a058682ec180869f21.png\",\n    \"name\": \"Digestive Specialists PA\",\n    \"slgId\": \"1326-2\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/786F8F55-BD94-4E9D-A06D-590EE5754541/6d5b026ec61681b5245d8652950da33f.png\",\n    \"name\": \"Wishing Well Pediatrics\",\n    \"slgId\": \"1326-3\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/40F9BC3B-8235-4781-BAD7-86D51F73B986/415a8e417f8bd0265e4e768a483c0fa6.png\",\n    \"name\": \"Prestige Medical Sai\",\n    \"slgId\": \"1326-4\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/008A6F9F-64A4-43DA-AB02-5F589FE800EB/be6ca3ffe91107106eaf7ea135f2d773.png\",\n    \"name\": \"Bellaire Allergy & Asthma\",\n    \"slgId\": \"1326-5\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/403E055A-1C30-4BEF-9B3A-37FA97EF2F4A/780699093d4463c1a987d8c7812a403b.png\",\n    \"name\": \"Moonat Med Associates\",\n    \"slgId\": \"1326-6\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F5D3236C-BC6D-4CAB-B5DC-02090179C11D/e7cb9aca41750037a6207c667ed4f4df.png\",\n    \"name\": \"Pearland Family Wellness Clinic\",\n    \"slgId\": \"1326-7\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9224C230-CFA8-4CCC-B3BD-992405E09B42/5c2e5ba76273e742663b89be5ac3ef55.png\",\n    \"name\": \"Over the Moon Pediatrics\",\n    \"slgId\": \"1326-8\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DFD54DAE-F813-4551-B321-85DEEAA29A2A/bbc68b2ce5a9d859aebff4b54675c9ec.png\",\n    \"name\": \"Houston Foot and Ankle Professional Group\",\n    \"slgId\": \"1326-9\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/299ACE88-C0F9-44A2-A2CF-E67741CD19B9/5faa1c5a5a4ed93ef82600a265a03ca6.png\",\n    \"name\": \"Magnolia Lane Pediatrics\",\n    \"slgId\": \"1326-10\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9ECE7CAC-8A0D-4AF2-9F16-B9D1C7682D9D/86714509e2bbf3c975bfef5d8e311d24.png\",\n    \"name\": \"Sugar Land Pain and Spine Specialists\",\n    \"slgId\": \"1326-11\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/43F480B5-C626-4AA2-A2F2-F4429A6BBBC0/96676213f006c2a5f5ddf25e44747673.png\",\n    \"name\": \"Pinnacle Primary Care\",\n    \"slgId\": \"1326-12\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2B346A62-C66B-4070-B7CB-A840CDE6A21E/2d97984d41d7628610505d5cb7104f47.png\",\n    \"name\": \"Gentle Pediatrics\",\n    \"slgId\": \"1326-13\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F8077EFA-C8AC-48C9-82DC-6B9986F33B85/6f15bde55df1cc6063c1a21593fd44c1.png\",\n    \"name\": \"Nurture Women's Care\",\n    \"slgId\": \"1326-14\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7236D2B8-AA39-45FB-B0AD-C1B5A8B375F5/1d0ec6506e41d8c5531368abcee4ecbe.png\",\n    \"name\": \"Family and Aging Center\",\n    \"slgId\": \"1326-15\",\n    \"url\": \"https://mychart.memorialhermann.org/MyChartaffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CFDF6003-CECB-4B1A-9A4E-CD186549E579/ff09b384266485ee39262424a78cb241.png\",\n    \"name\": \"Whole Care Pediatrics\",\n    \"slgId\": \"1326-16\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5B6A4F24-1EAF-4BFD-9DD2-38FFAFF85E00/a159cf591ba429daa66ada735bd932de.png\",\n    \"name\": \"Rukmini D. Kumar MD\",\n    \"slgId\": \"1326-17\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"HLHV\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CA0F1C92-997F-462E-AFF5-D1091EB52955/5f072623c3e11e4348aec8b1ddc1c249.png\",\n    \"name\": \"Healthy Living Heart and Vein\",\n    \"slgId\": \"1326-18\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D3183EAC-4B4F-4357-BD04-8C176481FD2B/7c816762e1616e8675a617ffb83599bd.png\",\n    \"name\": \"Pediatric Digestive Care\",\n    \"slgId\": \"1326-19\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"XOWE\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7D024E1C-DF45-4681-8916-FD153673B122/83412d8cc67259a1f28b01649d639add.png\",\n    \"name\": \"XO Wellness\",\n    \"slgId\": \"1326-20\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5F0285EA-D3BF-4BA1-9F2F-59AC90D1ABA1/e6d88787dcccb71dbb68dde8e9b55fb7.png\",\n    \"name\": \"Macie Medical\",\n    \"slgId\": \"1326-21\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"ORVA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CC859AB6-0155-42F8-9414-DDF7E88FE762/4b316a86c9dd2875b6beffd5f65b1e12.png\",\n    \"name\": \"Optimcurea Renal and Vascular Access Care\",\n    \"slgId\": \"1326-22\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"POZI\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6D916A0E-37FB-4F8D-8726-4A88655E735A/4574780dd6025f6f0f84494124336f96.png\",\n    \"name\": \"Pozitiv Wellness\",\n    \"slgId\": \"1326-23\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"HDLD\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/974BA05C-7E37-4B6D-9AD9-590D9F593DD2/bb8edf523bdb4bb1fce2063db4170b42.png\",\n    \"name\": \"Hope Digestive and Liver Disease Clinic\",\n    \"slgId\": \"1326-24\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"TXFC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2E575D0A-EB98-4DC4-A1B6-3B44DC9B0E7A/65b8a760937b7f467035401ed944a53e.png\",\n    \"name\": \"Texas Family Clinic\",\n    \"slgId\": \"1326-25\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4B58153F-BC6D-4F2B-A888-084AFB650FF9/5ed268a7540dccdbb3864f86cf4bcf53.png\",\n    \"name\": \"Kids First Pediatrics\",\n    \"slgId\": \"1326-26\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AF08205B-5329-407E-9A8E-D8100705AB98/0431b42077f4175e50a688269489d2e9.png\",\n    \"name\": \"JW Family Medicine\",\n    \"slgId\": \"1326-27\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5DB65212-A7B9-4133-B894-C2FDA2526646/af730db0fd85a17a8309c0b14fba1ed3.png\",\n    \"name\": \"Concierge Health Partners\",\n    \"slgId\": \"1326-28\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ADACCCD3-0D6D-4574-B4BE-6E4DBC25401B/7c6a0bd424eea902595f42ee4589331f.png\",\n    \"name\": \"Advanced Spine and Pain Specialists\",\n    \"slgId\": \"1326-29\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [\n      \"JIKE\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CAF70DF2-D8A5-4F6A-A514-AAD666F9E214/89444c1de5f5d2d85790889a641baf71.png\",\n    \"name\": \"JOHN IKE, MD, MPH, PA\",\n    \"slgId\": \"1326-30\",\n    \"url\": \"https://mhcc.memorialhermann.org/MyChartAffiliate/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AC4C7713-F9AA-435D-96D1-EC0C71DD3A0E/a8d067f6e0ecd32036f929350e3f5817.png\",\n    \"name\": \"San Ysidro Health\",\n    \"slgId\": \"1327\",\n    \"url\": \"https://mychart.syhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"clonoSEQ\",\n      \"Adaptive\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4F31E525-3D57-494A-94BD-55C508BC10BD/f437a67880016b7db902265d8e212d31.png\",\n    \"name\": \"clonoSEQ by Adaptive Biotech\",\n    \"slgId\": \"1328\",\n    \"url\": \"https://mychart.clonoseq.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CF4D8B8D-9C32-49EF-A677-1B9BCAEE3EC0/ee2ad858737584e435d385f47bfc49e0.png\",\n    \"name\": \"Midwestern University Clinics\",\n    \"slgId\": \"1329\",\n    \"url\": \"https://mychart.mwuclinics.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"NEMS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1835BCB2-65D8-4C6A-8065-4DB3531BE311/9034623fab46909c24619380dac10d9c.png\",\n    \"name\": \"North East Medical Services\",\n    \"slgId\": \"1332\",\n    \"url\": \"https://mychart.nems.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6B8F4530-BFD6-4511-8F59-6ACB13467BAC/55f595e794b65101204bab3d6fd5cb96.png\",\n    \"name\": \"Go East Medical Services\",\n    \"slgId\": \"1332-1\",\n    \"url\": \"https://mychart.nems.org/NV/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2749B0C4-BE53-4CEB-BC26-E650AE83F4C4/a9127bf54eb3f3f6dc86febb4d6192a7.png\",\n    \"name\": \"Benefis Health System\",\n    \"slgId\": \"1334\",\n    \"url\": \"https://mychart.benefis.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Hamilton Medical Center and Physician Practices\",\n      \"Bradley Medical Center and Physician Practices\",\n      \"HMC\",\n      \"BMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8E20384C-DED4-4186-B133-64889420CB5C/97fd4129ad37cdad6272b7b1f6646fa6.png\",\n    \"name\": \"Vitruvian Health\",\n    \"slgId\": \"1336\",\n    \"url\": \"https://mychart.vitruvianhealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"UT Medicine\"\n    ],\n    \"directoryUrl\": \"https://portal.utmedicine.org/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/72BE0AC7-B091-4E8D-A556-1607289991BB/2a15c9f3acc22e885e04ec6a6fba7582.png\",\n    \"name\": \"UT Dell Medicine\",\n    \"slgId\": \"1337\",\n    \"url\": \"https://portal.utdellmedicine.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"OHH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EEDE6E71-0DDC-4CF5-93EE-E64B39122A13/f770203ed1e7845094844ec9131dac77.png\",\n    \"name\": \"Oklahoma Heart Hospital\",\n    \"slgId\": \"1338\",\n    \"url\": \"https://myohh.okheart.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CF701E59-32C4-4CFF-B643-8CB294CFC8A5/4e6ef38b5ba9468b22165038748aff66.png\",\n    \"name\": \"Woman's\",\n    \"slgId\": \"1339\",\n    \"url\": \"https://mychart.womans.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4AF64FED-159E-4B83-8CE0-0DF6061177E5/febf27baba19c96b99a9db4b6d9a891d.png\",\n    \"name\": \"Unity Health Toronto\",\n    \"slgId\": \"1341\",\n    \"url\": \"https://mychart.unityhealth.to/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MLH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E28BAD57-CF8A-4BF5-88E2-F2C18433ED9B/950a22c03cd6ca769196be0aa486b5ba.png\",\n    \"name\": \"Methodist Le Bonheur Healthcare\",\n    \"slgId\": \"1342\",\n    \"url\": \"https://mychart.methodisthealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DD703A2F-FD37-476C-93EE-2F0F82881E39/d9b0f3a551e28aaf06725c9e91e73bfd.png\",\n    \"name\": \"Boston Children's Hospital\",\n    \"slgId\": \"1351\",\n    \"url\": \"https://mychart.childrenshospital.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/87FD1C9F-E3AD-4A78-BAA4-0218FC22229D/2caa39fbf88647d1287f4a0d9022c1d0.png\",\n    \"name\": \"Franciscan Children's Hospital\",\n    \"slgId\": \"1351-2\",\n    \"url\": \"https://mychart.franciscanchildrens.org/franciscan/\"\n  },\n  {\n    \"aliases\": [\n      \"MSKCC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C226DD79-BED2-4888-8633-A8C3A4B21865/d5dd8eb5f5ccb9cce5f133a8e620001c.png\",\n    \"name\": \"Memorial Sloan Kettering Cancer Center\",\n    \"slgId\": \"1353\",\n    \"url\": \"https://mskmychart.mskcc.org/MyChart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/38423683-FDCD-4987-A39B-1D47409E2377/2ba02f1fa531b562d03b272cfc0cff8a.png\",\n    \"name\": \"Baton Rouge General\",\n    \"slgId\": \"1355\",\n    \"url\": \"https://mychart.brgeneral.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1C607F30-2C88-4C71-A771-596DAF86F067/d3da602093e4db6c6769619d15acab38.png\",\n    \"name\": \"County of San Mateo\",\n    \"slgId\": \"1356\",\n    \"url\": \"https://mychart.smchealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/51BCB4E9-3B38-4B46-8CE5-D57FFE33511A/c5b84c63b8e98fdc1e2d3875cc5eb778.png\",\n    \"name\": \"Carelon\",\n    \"slgId\": \"1358\",\n    \"url\": \"https://mychart.carelonhealth.com/\"\n  },\n  {\n    \"aliases\": [\n      \"FHCP\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/62BF519C-A911-4512-968F-344864586AAD/97c6da816bdf3815ac22ecc3abd4c5ff.png\",\n    \"name\": \"Florida Health Care Plans\",\n    \"slgId\": \"1359\",\n    \"url\": \"https://mychart.fhcp.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Northwell Health System\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E7B53360-500D-49B5-8A26-0861252DD5ED/c70e79730c6ae7706bd5f01d77c93784.png\",\n    \"name\": \"Northwell Health\",\n    \"slgId\": \"1361\",\n    \"url\": \"https://my.northwell.edu/Mychart/Authentication/Login?\"\n  },\n  {\n    \"aliases\": [\n      \"NCDHHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/328AB1EA-60BE-43AD-BAC2-7774810047AB/4ab2264e4ec238a961c63c1c23c3b531.png\",\n    \"name\": \"North Carolina Department of Health and Human Services\",\n    \"slgId\": \"1364\",\n    \"url\": \"https://mychart.ncdhhs.gov/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"JMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BEDE774F-85F6-44B5-911E-60A801CCC685/51c07ec66f2e8266eef9ffc7dbedc84c.png\",\n    \"name\": \"Jupiter Medical Center\",\n    \"slgId\": \"1365\",\n    \"url\": \"https://mychart.jupitermed.com/MyChartPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A4F80BDE-DA1C-4BE7-B128-92638CA4D8F6/87505dd9254417f1415e671ca20dc4f2.png\",\n    \"name\": \"NL Health Services\",\n    \"slgId\": \"1368\",\n    \"url\": \"https://mychart.epic.nlhealthservices.ca/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3C33BBCB-9B91-42F9-A260-34F9790CA74E/fd53e2217a6c014077a6fcd7695120c1.png\",\n    \"name\": \"Broward Health\",\n    \"slgId\": \"1369\",\n    \"url\": \"https://mychart.browardhealth.org/Mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [\n      \"MUMC+\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1576ADA1-2DA1-4F86-831D-CDDCA78552E9/eaed1fbde453ead70b299d77051333d6.png\",\n    \"name\": \"Maastricht UMC+\",\n    \"slgId\": \"1371\",\n    \"url\": \"https://mijn.mumc.nl/MyChart-PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3CB9C16E-2649-4C7C-BE49-6F8849BA2A61/e3d8bf17bdaab8b60209e2927cace1d7.png\",\n    \"name\": \"Ciro\",\n    \"slgId\": \"1371-1\",\n    \"url\": \"https://mychart.mijnciro.nl/MyChart-Ciro-PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C4EF51E4-D2C2-4C39-8C56-FDBAA6DD1481/8dbfde4379058ed341a20813ea0d44d6.png\",\n    \"name\": \"Stamford Health\",\n    \"slgId\": \"1378\",\n    \"url\": \"https://mychart.stamfordhealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CNHSA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/DDAE89F4-F3A5-41BF-B4D6-1890859004A2/d5165ecc66bedb311c1fcd7daca1c519.png\",\n    \"name\": \"Choctaw Nation\",\n    \"slgId\": \"1380\",\n    \"url\": \"https://mychart.cnhsa.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Cayuga Health\",\n      \"Arnot Health\",\n      \"Cayuga Medical Center\",\n      \"Schuyler Hospital\",\n      \"Arnot Ogden Medical Center\",\n      \"Ira Davenport Memorial Hospital\",\n      \"St. Joseph's Hospital\",\n      \"Xtensys Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A3C32A64-A83D-4777-997B-9ACE5141922E/2f21c2ddccf2e2507045d0c8c0a570d0.png\",\n    \"name\": \"Centralus Health\",\n    \"slgId\": \"1381\",\n    \"url\": \"https://mychart.centralushealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C6BB4EA3-D980-4D14-88AE-A248BBFA58CF/9f0354328b857ddc3d782f5ba4a09675.png\",\n    \"name\": \"Crouse Health\",\n    \"slgId\": \"1381-1\",\n    \"url\": \"https://mycrousechart.crouse.org/crouse/\"\n  },\n  {\n    \"aliases\": [\n      \"CEHS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BFD5DA81-8A36-4D4B-8187-53FCBA499980/1c117ba9304806b8fdb420cd3ed89e00.png\",\n    \"name\": \"CarolinaEast Health System\",\n    \"slgId\": \"1385\",\n    \"url\": \"https://mychart.carolinaeasthealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"TMH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2D2A9EBA-FBEF-447F-9179-06870514E150/554533df65f78eb358e4d783042ec22b.png\",\n    \"name\": \"Tallahassee Memorial Healthcare\",\n    \"slgId\": \"1387\",\n    \"url\": \"https://mychart.TMH.org\"\n  },\n  {\n    \"aliases\": [\n      \"MyUPMC\",\n      \"UPMC Central\",\n      \"UPMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8B5CBC9A-AE3B-469F-9BB9-BAE130EC2E92/912e19934ad18a4247a861ca1092e99c.png\",\n    \"name\": \"MyUPMC\",\n    \"slgId\": \"1392\",\n    \"url\": \"https://myupmc.upmc.com/MyUPMC/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/91403B91-BE0F-4877-B0AC-645809266D36/7528bfbf7709cb1e6b23bba1e0c10f80.png\",\n    \"name\": \"Halifax Hospital Medical Center\",\n    \"slgId\": \"1393\",\n    \"url\": \"https://mychart.halifaxhealth.org/MyChart\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B40F23AD-254A-4AC5-9FA5-EC74076582F4/4406f9b78e486f85cbab28e36c79ee0b.png\",\n    \"name\": \"HealthPoint\",\n    \"slgId\": \"1395\",\n    \"url\": \"https://mychart.healthpointchc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Mon dossier sante\",\n      \"mon dossier santé\",\n      \"Sante Quebec\",\n      \"Santé Québec\",\n      \"mondossiersante\",\n      \"MonDossierSanté\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1472CE2E-953E-4DAF-88A5-EBC58CDC823A/53b463865be86c9d250a3beb63433841.png\",\n    \"name\": \"Mon dossier santé\",\n    \"slgId\": \"1396\",\n    \"url\": \"https://mondossiersante.sante.quebec/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C6CDB99F-FB46-4BD7-B9A7-818DE9791C5C/1e056b316afe3b7754c2ec7d71b5ee77.png\",\n    \"name\": \"Birmingham Women's and Children's\",\n    \"slgId\": \"1398\",\n    \"url\": \"https://mychart.bwc.nhs.uk/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7E41E352-2D1A-496A-ADDF-FF0E680E7CAE/3e6405b0ea3984478e137c7da2f50903.png\",\n    \"name\": \"CoxHealth\",\n    \"slgId\": \"1402\",\n    \"url\": \"https://mychart.coxhealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Penn State\",\n      \"Penn State Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CCC5C684-4864-4A55-85EC-C883AD5C784C/cfb77d56862b9bc0afb3fd72b9e40983.png\",\n    \"name\": \"PennState Health\",\n    \"slgId\": \"1407\",\n    \"url\": \"https://mychart.pennstatehealth.org/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"PHNY\",\n      \"ProHealth\",\n      \"Riverside\",\n      \"Pro Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6384D169-2C79-4F6E-B9E3-AE40A3080AC8/6d1d062874af3d1dd22bcdfa3af890d4.png\",\n    \"name\": \"Optum Medical Care\",\n    \"slgId\": \"1409-1\",\n    \"url\": \"https://epicmychart.optum.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"ESNEFT\",\n      \"Colchester\",\n      \"Ipswich\",\n      \"Aldeburgh\",\n      \"Felixstowe\",\n      \"Bluebird Lodge\",\n      \"Clacton\",\n      \"Harwich\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/4B8B6827-3D2B-41B4-9056-774C63AEF72C/ff007dfe02d85068744c23c3214f0f26.png\",\n    \"name\": \"East Suffolk and North Essex NHS Foundation Trust\",\n    \"slgId\": \"1418\",\n    \"url\": \"https://mychart.esneft.nhs.uk/MyChart-PRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/EF90E438-E8A9-4C37-8181-516BA6C15EA9/e74b0339c18f2d577c4a637bd858d38c.png\",\n    \"name\": \"Beebe Healthcare\",\n    \"slgId\": \"1421\",\n    \"url\": \"https://mychart.beebehealthcare.org/Mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1E92ECF0-65DE-46B6-BF3F-C04FF0069C9E/ca1f13d7adad952bd5b481051eb96ec3.png\",\n    \"name\": \"Children's Mercy Kansas City\",\n    \"slgId\": \"1422\",\n    \"url\": \"https://mychart.et1422.epichosted.com/Mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F4CB8E77-6BE9-4BD6-A260-9F09DEBC65CA/b3b2b1471d3d2263a0bee2855ba799fb.png\",\n    \"name\": \"Health First\",\n    \"slgId\": \"1426\",\n    \"url\": \"https://mychart.hf.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/76691FF5-8451-489E-B4E4-4158EB9A7BFF/7692e251fb479f64239c2ff3552b8031.png\",\n    \"name\": \"Clinica Sierra Vista\",\n    \"slgId\": \"1430\",\n    \"url\": \"https://mychart.clinicasierravista.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B25EB9D4-C0E9-4E48-92A6-5B4A13CD17AC/024ebe245d1f5492198b3a3d7a8a81d3.png\",\n    \"name\": \"Unity Health Care\",\n    \"slgId\": \"1432\",\n    \"url\": \"https://mychart.cachconnect.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C7A8DF5F-8B1B-47D5-B217-01523B2ED41B/299d044273fb1fbdd5e63f5ae0461f74.png\",\n    \"name\": \"Whitman Walker Health\",\n    \"slgId\": \"1432-1\",\n    \"url\": \"https://mychart.cachconnect.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/20DE3902-A30A-4580-92CA-6139254EAFA3/0dbc7b14f5cffa969e89ed12c180fdd1.png\",\n    \"name\": \"Health First Health Plans\",\n    \"slgId\": \"1433\",\n    \"url\": \"https://mychart.myhfhp.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Dental Dental of California\",\n      \"Delta Dental of CA\",\n      \"Emerge\",\n      \"Emergebright\",\n      \"Harmony Whole Person Oral HealthCare\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0F3450E4-1344-4C59-A16A-AD6E6BFBA2A8/3d07cf9ea0b722d941f0f63b5b0fb201.png\",\n    \"name\": \"Harmony\",\n    \"slgId\": \"1434-1\",\n    \"url\": \"https://mychart.harmonyoralhealth.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CGHMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FB1A6990-BD22-4272-AC62-B7A380BD1437/f6c1a248285987444a4d7c7983d432b2.png\",\n    \"name\": \"CGH Medical Center\",\n    \"slgId\": \"1437\",\n    \"url\": \"https://mychart.cghmc.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/7BD499FB-74B8-4356-BC46-71651418D547/2b65ef996cfe0676f99e91498d088a0b.png\",\n    \"name\": \"Adventist Health\",\n    \"slgId\": \"1438\",\n    \"url\": \"https://mychart.adventisthealth.org/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Avera Health Plans\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/27E46713-6A1F-43C4-9366-D120E5D66DD6/abd900db78ad02597dfa8653d1eabc02.png\",\n    \"name\": \"Avera Health\",\n    \"slgId\": \"1439\",\n    \"url\": \"https://averamychart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A4D7C76A-F32A-47B2-8C27-C759F1198CAF/8034ec43f628d1b0994780d24c7db3ee.png\",\n    \"name\": \"Surgical Institute of South Dakota, PC\",\n    \"slgId\": \"1439-1\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/31EB623C-3B54-4636-8889-23FB021E3ECE/ec0d385cc0053479a1a3e5932ea9a003.png\",\n    \"name\": \"Access Health\",\n    \"slgId\": \"1439-2\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/16B01E91-815D-47E8-806F-2094B4702C24/2fa869e560a57ce93278b5d35b71380a.png\",\n    \"name\": \"Bowdle Healthcare Center\",\n    \"slgId\": \"1439-3\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/347FFA0D-049E-4A65-9A54-010705F54355/a37adb54bf5229be48b0dd14c4646f33.png\",\n    \"name\": \"Brookings Health System\",\n    \"slgId\": \"1439-4\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9077B1A8-39C3-48F2-9C03-F48F467761A1/94ac422ea81a3472743e47d7b6e07b6e.png\",\n    \"name\": \"Community Memorial Hospital and Redfield Clinic\",\n    \"slgId\": \"1439-5\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/505CF7C0-C898-4960-8986-6074FA9D6F36/05c65f2b337141600a7040a55f00c6f9.png\",\n    \"name\": \"Eureka Community Health Services Avera and Clinics\",\n    \"slgId\": \"1439-6\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/2EEDB4FA-90BC-4DAD-9612-EEC73E668DBF/4750d74b9cf18ac11447145a52110191.png\",\n    \"name\": \"Floyd Valley Healthcare\",\n    \"slgId\": \"1439-7\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6ECD70E9-6B1A-4D92-9495-CCA66611FBFE/3de277f6c751fd84f1dc210615d4651a.png\",\n    \"name\": \"Hegg Health Center\",\n    \"slgId\": \"1439-8\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B10E2691-5715-4E92-A6BB-CD6B4C9CDB2C/92479937172d47b6a3cf889fb2c195a7.png\",\n    \"name\": \"Lakes Regional Healthcare\",\n    \"slgId\": \"1439-9\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1B48D0F0-72DB-4A86-B88A-CC6C3810CDAE/107ea65cd015844967538c05634e8c94.png\",\n    \"name\": \"Landmann Jungman Memorial Hospital Avera and Scotland Medical Clinic Avera\",\n    \"slgId\": \"1439-10\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E70CD587-2EB4-48AC-A380-662B841AB89C/1a4e21521810a06d24bc840dff647969.png\",\n    \"name\": \"Marshall County Healthcare Center Avera\",\n    \"slgId\": \"1439-11\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8980E103-1E91-473E-AC4A-2B9941830ACD/298ce53889d774d3130e1850cb64af69.png\",\n    \"name\": \"Wagner Community Memorial Hospital Avera\",\n    \"slgId\": \"1439-12\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F7E1F18B-1030-47D2-B57F-AC648B8A2547/2f4494f71b900fa0315f92f0d70bd25f.png\",\n    \"name\": \"NWIA Bone, Joint & Sports Surgeons\",\n    \"slgId\": \"1439-13\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/01F6E124-8238-4420-A532-176DC75D2B02/31f78bd5b05c873768f099d75dfc859d.png\",\n    \"name\": \"Northwest Iowa Surgeons, PC\",\n    \"slgId\": \"1439-14\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FBD144FF-9B72-407E-9B8F-908AB0BACFCE/d7c792b6dcd40f7541b19fd1a75adfdd.png\",\n    \"name\": \"Osceola Regional Health Center\",\n    \"slgId\": \"1439-15\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1CB4E82D-AC88-4942-B3BD-395F64D4D4A3/bbffe4e744bac073e6ad3df94976ae26.png\",\n    \"name\": \"Pipestone County Medical Center and Family Clinic Avera\",\n    \"slgId\": \"1439-16\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/05E700D0-7656-46B7-9E61-0B9A0C7131AF/0ecf7ce4ea8970a2508fc7ae54fbaf72.png\",\n    \"name\": \"Platte Health Center Avera\",\n    \"slgId\": \"1439-17\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/83FE8907-F79F-4083-AD47-936B6306989F/71b2db91adb55079261244792aa39f24.png\",\n    \"name\": \"Regional Health Services of Howard County\",\n    \"slgId\": \"1439-18\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/37C6B940-7FF0-4857-B0EA-2919DEE37348/6781607210b235d7aa3d60d49dd25e2e.png\",\n    \"name\": \"Sioux Center Health\",\n    \"slgId\": \"1439-19\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B716D7AE-745C-45DB-B024-6CB9D715DA94/0ccfa49b5e45cd517d1d53b9cfb81cec.png\",\n    \"name\": \"Spencer Hospital\",\n    \"slgId\": \"1439-20\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CA2F1725-DFEC-41D9-A5B3-27AC315D0952/42efe6729496631a5dcee671a32a9d33.png\",\n    \"name\": \"St. Michael's Hospital Avera and Bon Homme Family Practice\",\n    \"slgId\": \"1439-21\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F27C8140-5266-4243-A446-3FE99AB500E0/69220e0e0d3a7edd7d1db3f785e9f664.png\",\n    \"name\": \"Hendricks Community Hospital Association\",\n    \"slgId\": \"1439-22\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D8C107AA-56DA-489B-9843-56F3091ABB8C/4e328fb497a0e12d4611dbbba92bdf0d.png\",\n    \"name\": \"Freeman Regional Health Services\",\n    \"slgId\": \"1439-23\",\n    \"url\": \"https://mychartconnectsites.org/MyChartConnect/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/256BAB67-0606-4386-8343-22E00E5D189F/0ac0b4b63c935eddc6492c990df15655.png\",\n    \"name\": \"Avera Health Plans\",\n    \"slgId\": \"1439-24\",\n    \"url\": \"https://averamychart.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/57A1DF79-715C-4BFE-960F-C0DF29BB1527/d245963213488aeacc7ebd3014624117.png\",\n    \"name\": \"Washington Regional Medical System\",\n    \"slgId\": \"1440\",\n    \"url\": \"https://mychart.wregional.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"TTUHSC\",\n      \"Texas Tech\",\n      \"Health Sciences Center\",\n      \"University Medical Center\",\n      \"Lubbock\",\n      \"UMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/539A9385-8352-4850-9B28-23D1B3D9613A/343e04440a9f3afe35f81a1af758a42f.png\",\n    \"name\": \"UMC Health System\",\n    \"slgId\": \"1442\",\n    \"url\": \"https://mychart.umchealthsystem.com/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/50C57D55-0CA0-4F02-B530-244740A13DBF/e70d089254c04421ea51a1f30f6615ba.png\",\n    \"name\": \"Children's Minnesota\",\n    \"slgId\": \"1444\",\n    \"url\": \"https://mychart.childrensmn.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"WOHS\",\n      \"OSler\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/68E56014-A864-4AF8-A15D-CF60FC44252F/9471abc8cbf0396d03f589d1284b3c34.png\",\n    \"name\": \"William Osler Health Care\",\n    \"slgId\": \"1445\",\n    \"url\": \"https://mychartportal.williamoslerhs.ca/MYCHARTPRD/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/862B44FE-632A-42B6-8A9E-41E95C1C03DA/f543a5b8bf30dc29d0b51251f46b68ae.png\",\n    \"name\": \"Citizen Potawatomi Nation\",\n    \"slgId\": \"1447\",\n    \"url\": \"https://mychart.cpnhs.org/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Irvine\",\n      \"UC Irvine\",\n      \"UCI\",\n      \"UCI Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/AC73CE0E-76E1-4AA4-A4E7-600B681BA7C8/007cf478b9f6afb6dfef0b41dc98334c.png\",\n    \"name\": \"UC Irvine\",\n    \"slgId\": \"1448\",\n    \"url\": \"https://my.ucihealth.org/UCI/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CFC92655-608D-46A9-BFE2-77F7387B8D85/9aa1ce5eec5731e372946c4c716c8a1b.png\",\n    \"name\": \"PacificSource\",\n    \"slgId\": \"1452\",\n    \"url\": \"https://mychart.pacificsource.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SCRMC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D2D6DBF5-6BEA-4A72-A65D-934A09882D64/9168803e2df9bafd91e72d8e5f46d74b.png\",\n    \"name\": \"South Central Regional Medical Center\",\n    \"slgId\": \"1453\",\n    \"url\": \"https://mychart.scrmc.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"CCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ABE81B04-AE5B-4133-8286-EFB33593FBBB/f78ecbf925e5e5b059232b11a6d4173d.png\",\n    \"name\": \"Covington County Hospital\",\n    \"slgId\": \"1453-1\",\n    \"url\": \"https://mychart.covingtoncountyhospital.com/CCHMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"SCH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/CB9FEE91-E922-4626-8594-E2EE8E76BE29/0f0687716e1cdc01e8af0d50445904ca.png\",\n    \"name\": \"Simpson General Hospital\",\n    \"slgId\": \"1453-2\",\n    \"url\": \"https://mychart.simpsongeneral.com/SGHMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MGH\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8C41DA1D-C345-4ECD-8093-01E40D0DCF87/67888cef3a104ff378ff3fc63c688609.png\",\n    \"name\": \"Magee General Hospital\",\n    \"slgId\": \"1453-3\",\n    \"url\": \"https://mychart.mghosp.org/MGHMyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"HHSC\",\n      \"Hilo Benioff Medical Center\",\n      \"East Hawaii Health Clinics\",\n      \"Honoka'a Hospital\",\n      \"Ka'u Hospital\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/283FF0A2-DA8E-4E20-8D62-5146884D9085/222d4a970d6fa8c9716fa8c0852257e7.png\",\n    \"name\": \"Hawaii Health Systems Corp\",\n    \"slgId\": \"1454\",\n    \"url\": \"https://mychart.ehr.hhsc.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"GPPC\",\n      \"General Physicians\",\n      \"General Physician\",\n      \"General Physician PC\",\n      \"OMP\",\n      \"Olean Medical Group\",\n      \"Olean Medical Practice\",\n      \"Olean General Hospital\",\n      \"LEMs\",\n      \"Lake Erie Medical Services\",\n      \"Bradford\",\n      \"Bradford Regional Medical Center\",\n      \"Brooks\",\n      \"Brooks-TLC Hospital\",\n      \"Cuba Memorial Hospital\",\n      \"Queen City\",\n      \"Buffalo General Hospital\",\n      \"Buffalo General Medical Center\",\n      \"BGMC\",\n      \"BGH\",\n      \"Gates Vascular Institute\",\n      \"GVI\",\n      \"Oishei Children's Hospital\",\n      \"OCH\",\n      \"Galisano Children's Hospital\",\n      \"GCH\",\n      \"Children's Hospital of Buffalo\",\n      \"Millard Fillmore Hospital\",\n      \"Millard Fillmore Suburban Hospital\",\n      \"MFSH\",\n      \"Degraff Hospital\",\n      \"DeGraff Medical Park\",\n      \"Harlem Road Ambulatory Surgery Center\",\n      \"Southtowns Surgery Center\",\n      \"Kaleida Labs\",\n      \"Kaleida Health Laboratories\",\n      \"Highpointe\",\n      \"Highpointe on Michigan\",\n      \"Degraff Rehabilitation and Skilled Nursing Facility\",\n      \"VNA of WNY\",\n      \"Visiting Nurses Association of WNY\",\n      \"Great Lakes Cardiovascular\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6D1FA575-F237-4CF3-9C0D-07AF13CF664E/de596286442227757bf067082c886413.png\",\n    \"name\": \"Kaleida\",\n    \"slgId\": \"1455\",\n    \"url\": \"https://mychart.kaleidahealth.org/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Erie County Medical Center\",\n      \"Premier Health Partners\",\n      \"PHP\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/46F72A03-24C0-4139-908E-381F55477A8E/6f67f1da7321dbbda727af94e6a8300f.png\",\n    \"name\": \"ECMC\",\n    \"slgId\": \"1455-1\",\n    \"url\": \"https://mychart.ecmc.edu/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"University of Buffalo Medical Center\",\n      \"UBMD Physicians Group\",\n      \"University of Buffalo Physicians Group\",\n      \"UB Orthopedics\",\n      \"UB  Neurology\",\n      \"UB Primary Care\",\n      \"UB Surgery\",\n      \"UB Psychology\",\n      \"UB Internal Medicine\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/ABFCAA43-4B8A-4D0F-8CED-2C451E2B40EF/eb954e0477ed468cf46edb3c3a6c727d.png\",\n    \"name\": \"UBMD\",\n    \"slgId\": \"1455-2\",\n    \"url\": \"https://mychart.ubmd.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"St. Vincent’s\",\n      \"St Vincents\",\n      \"STV\",\n      \"Saint Vincents\",\n      \"UAB St. Vincent's\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6431665A-3398-4E07-8157-CBB34EFDB8B8/b587e5a27faf44cb8ac177512617accc.png\",\n    \"name\": \"UAB Medicine\",\n    \"slgId\": \"1460\",\n    \"url\": \"https://www.mychart.uabmedicine.org/Mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/91F9C35F-E073-4521-8BBC-C01E19262FB2/645276ecd757266818e5dbd32e0114f6.png\",\n    \"name\": \"ChristianaCare\",\n    \"slgId\": \"1461\",\n    \"url\": \"https://mychart.christianacare.org/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"GoHealthUC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/9FCA289F-6659-4B67-9DC9-3CE30A058254/e54542c8e3b9c52c2996afc2ed12b16e.png\",\n    \"name\": \"GoHealth Urgent Care\",\n    \"slgId\": \"1462\",\n    \"url\": \"https://mychart.gohealthuc.com/Mychart/Authentication/Login\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8FB522F7-F987-4C3E-8831-CC6F375CADEB/32255a81a2dca2cc217746e6c9c5d75d.png\",\n    \"name\": \"Blessing Health\",\n    \"slgId\": \"1464\",\n    \"url\": \"https://mychart.blessinghealth.org/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"Sarasota Memorial Hospital\",\n      \"Sarasota Memorial Health Care System\",\n      \"Sarasota Memorial Healthcare System\",\n      \"Venice Hospital\",\n      \"SMH\",\n      \"First Physicians Group\",\n      \"FPG\",\n      \"Newtown Clinic\",\n      \"Newtown Internal Medicine\",\n      \"Brian D Jellison Cancer Institute\",\n      \"Cornell Behavioral Health Pavilion\",\n      \"Sarasota Memorial Rehab Pavilion\",\n      \"Sarasota Rehab Pavilion\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/30BBE314-0D63-432F-A713-438E04E652B6/f937ae28c6a71160cb01ce21474e21db.png\",\n    \"name\": \"Sarasota Memorial Health MyChart\",\n    \"slgId\": \"1465\",\n    \"url\": \"https://mychart.smh.com/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Inspira\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5AAE9412-35C6-4EAE-901B-F5C161E36E45/d549412c78ba96ce9dc03fab8636fda1.png\",\n    \"name\": \"InspiraHealth\",\n    \"slgId\": \"1473-3\",\n    \"url\": \"https://mychart.inspirahealth.org/\"\n  },\n  {\n    \"aliases\": [\n      \"MNMC\",\n      \"Mt. Nittany\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/85F3309E-7700-4CEA-BE4C-508D2011A438/0010ed3a0021688e9c5fb4ce7a5aa011.png\",\n    \"name\": \"Mount Nittany Health\",\n    \"slgId\": \"1474\",\n    \"url\": \"https://mychart.mymountnittany.org/mychart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/522F5E02-A5B5-40AA-94BB-C447598AA0E8/32488a188b56b4e0287f3e2e32d1606e.png\",\n    \"name\": \"Great River Health\",\n    \"slgId\": \"1475\",\n    \"url\": \"https://mychart.greatriverhealth.org/mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"Virginia Mason Franciscan Health\",\n      \"The Doctors Clinic\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/08773F96-2735-4CFC-959B-44BE5018FFC4/a31dfb07b0e5b9b6d48ceb3954e43d2e.png\",\n    \"name\": \"CommonSpirit Health\",\n    \"slgId\": \"1482\",\n    \"url\": \"https://patientportal.commonspirit.org/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B39D03A0-A7B0-4781-A863-11FB07003E03/28d4e97dbd044ca4976b1397772b796c.png\",\n    \"name\": \"Freeman Health\",\n    \"slgId\": \"1491\",\n    \"url\": \"https://mychart.freemanhealth.com/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"ENTA\",\n      \"ENT & Allergy Associates\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/778399B2-D7BA-49EB-9F66-D42E4FF50B94/2c3bd190077450ab6fa3927bad3462ee.png\",\n    \"name\": \"ENT and Allergy Associates\",\n    \"slgId\": \"1512\",\n    \"url\": \"https://mychart.entandallergy.com/MyChart/\"\n  },\n  {\n    \"aliases\": [\n      \"MedCenter  Health\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/22810545-F327-480A-95AD-5E0B7E0D0E7C/ccf0544bcad67ddb1b993ca17533b3ec.png\",\n    \"name\": \"Med Center Health\",\n    \"slgId\": \"1514\",\n    \"url\": \"https://mychart.medcenterhealth.org/Mychart/\"\n  },\n  {\n    \"aliases\": [\n      \"DVCH\",\n      \"CHDC\",\n      \"Union\",\n      \"The Alliance\",\n      \"Delaware Valley Community Health\",\n      \"Union Community Care\",\n      \"Community Health & Dental Care\",\n      \"PAHCTA\",\n      \"PA Alliance\",\n      \"PA Health Center Technology Alliance\",\n      \"Community Health and Dental Care\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/368599C6-5655-4AA4-B681-3E30B34FDFD4/59c0fdd64cc07d51773e59f2491474e3.png\",\n    \"name\": \"PA Health Center Technology Alliance\",\n    \"slgId\": \"1528\",\n    \"url\": \"https://thealliancepa.epicmychart.com/MyChart/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/FC28AF4F-20FB-45B8-B0EE-8D6964491689/49caeb6186d8431d7098057ecc46a592.png\",\n    \"name\": \"Drexel\",\n    \"slgId\": \"4001-1\",\n    \"url\": \"https://drexel.epicmychart.com/drx/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/70F05B10-AA33-4190-9578-7216339771D8/6d52d4eba3fb6c4117c02ef57942da5e.png\",\n    \"name\": \"MY DR NOW\",\n    \"slgId\": \"4001-2\",\n    \"url\": \"https://mydrnow.epicmychart.com/mdn/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D310D4A8-4141-487B-BC75-858C432EA8D8/9b447200e9aae8ead397a9b70345cfeb.png\",\n    \"name\": \"Foothill Family Clinic\",\n    \"slgId\": \"4001-3\",\n    \"url\": \"https://foothill.epicmychart.com/ffc/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/154B6A20-3838-41AA-815E-20A958D5B297/ee6c69e721c9d3606856852328226028.png\",\n    \"name\": \"Bruce W Moskowitz\",\n    \"slgId\": \"4001-4\",\n    \"url\": \"https://moskowitz.epicmychart.com/bwm/\"\n  },\n  {\n    \"aliases\": [\n      \"Burket Family Medicine\"\n    ],\n    \"down\": true,\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1BD55650-7303-43C6-BE22-8AAFE796623D/347c48af778d37cf0726f90cdc6797db.png\",\n    \"name\": \"Neighborhood Family Medicine\",\n    \"slgId\": \"4001-5\",\n    \"url\": \"https://burket.epicmychart.com/bkt/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1EA8127E-BA53-4838-98B6-5C3177D10AAD/b9864f7f9c4b8dac21d088a04a72cc66.png\",\n    \"name\": \"Caldera Family Medicine\",\n    \"slgId\": \"4001-6\",\n    \"url\": \"https://caldera.epicmychart.com/cfm/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/BDCFF2CC-21A2-417D-B4E1-94EF8835D0FF/19f47a33a8e489e17b5ca69e5b1ef3d1.png\",\n    \"name\": \"Cascade Internal Medicine\",\n    \"slgId\": \"4001-7\",\n    \"url\": \"https://cascadeinternal.epicmychart.com/cim/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/12986920-7CFF-4316-8C17-78329BEF4263/188105c3e1b56b024d39a1781ed6054a.png\",\n    \"name\": \"East Cascade Women's Group\",\n    \"slgId\": \"4001-8\",\n    \"url\": \"https://eastcascadewomens.epicmychart.com/ecwg/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F386BA04-382D-495C-B2FC-5FE71403A3E7/cc2dfc4c5974d939d16cafd78d9a750b.png\",\n    \"name\": \"Fall Creek Internal Medicine\",\n    \"slgId\": \"4001-9\",\n    \"url\": \"https://fallcreek.epicmychart.com/fcim/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B65F1DFF-7266-44D1-AEBD-AC7CDFB3D7B6/0ad8b8f44cc37a47a43e8518f6cc3845.png\",\n    \"name\": \"Pine Springs Health\",\n    \"slgId\": \"4001-10\",\n    \"url\": \"https://pinesprings.epicmychart.com/psh/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/F46820D0-BDF8-4024-95C1-004DE22E0D3D/fc4c82d06a2d3931b1f91e519d515f17.png\",\n    \"name\": \"Ritual Medical\",\n    \"slgId\": \"4001-11\",\n    \"url\": \"https://ritual.epicmychart.com/rit/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/32B9B624-074F-4853-A58B-8EF31160C1A4/dc75461e4ae0ce69562ed53880404939.png\",\n    \"name\": \"West Bend Family Medicine\",\n    \"slgId\": \"4001-12\",\n    \"url\": \"https://westbend.epicmychart.com/wbfm/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/D684E987-F829-4625-B05B-D1C3A7F63D3B/5bfea8ee6bb654dd9c6e2960cd974cd5.png\",\n    \"name\": \"Innovista Medical Center\",\n    \"slgId\": \"4001-13\",\n    \"url\": \"https://innovista.epicmychart.com/inv/\"\n  },\n  {\n    \"aliases\": [\n      \"DMA\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/1311069C-D762-47C0-9AFE-2B2E1851F985/13434776325357086437781cbc79cf4a.png\",\n    \"name\": \"Dickson Medical Associates\",\n    \"slgId\": \"4001-14\",\n    \"url\": \"https://dicksonmd.epicmychart.com/dma/\"\n  },\n  {\n    \"aliases\": [\n      \"CCHC\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/32CF22CD-EA8A-4357-B8C2-7048EFEF89FF/6879fdfc5ac4f352c08da67beaa26f0f.png\",\n    \"name\": \"Coastal Carolina Health Care\",\n    \"slgId\": \"4001-15\",\n    \"url\": \"https://cchchealthcare.epicmychart.com/cchc/\"\n  },\n  {\n    \"aliases\": [\n      \"OakLeaf Medical Network MyChart\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0C14FD8D-AA93-403A-80DD-7360C68F749A/342560743356954e25389fbac76b5f45.png\",\n    \"name\": \"Eau Claire GI Associates – OakLeaf Medical Network\",\n    \"slgId\": \"4001-16\",\n    \"url\": \"https://eauclairegi.epicmychart.com/ecgi/\"\n  },\n  {\n    \"aliases\": [\n      \"OakLeaf Medical Network MyChart\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/3023E928-BDD4-47FC-8B5A-0396C2AE72B3/d35c4249bcd52996db7411ef7dad3f1e.png\",\n    \"name\": \"Evergreen Surgical – OakLeaf Medical Network\",\n    \"slgId\": \"4001-17\",\n    \"url\": \"https://evergreensurgical.epicmychart.com/evg/\"\n  },\n  {\n    \"aliases\": [\n      \"OakLeaf Medical Network MyChart\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/306B2D26-BBDF-4645-8E31-78ED523B715A/cc55cc63b0cc7f5c40a503f3da30d08f.png\",\n    \"name\": \"Foot and Ankle Clinic – OakLeaf Medical Network\",\n    \"slgId\": \"4001-18\",\n    \"url\": \"https://footandankleclinic.epicmychart.com/fac/\"\n  },\n  {\n    \"aliases\": [\n      \"OakLeaf Medical Network MyChart\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8AC9AB35-005E-401E-A588-648A5C086FCF/86168fbc4eff60e342b44704b2fe6926.png\",\n    \"name\": \"OakLeaf Clinics – OakLeaf Medical Network\",\n    \"slgId\": \"4001-19\",\n    \"url\": \"https://oakleafclinics.epicmychart.com/oak/\"\n  },\n  {\n    \"aliases\": [\n      \"OakLeaf Medical Network MyChart\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/A067998D-946C-4EC6-90A4-44C59645721B/a5ed5ef744aa58642df7951cebd4ff52.png\",\n    \"name\": \"Western Wisconsin Urology – OakLeaf Medical Network\",\n    \"slgId\": \"4001-20\",\n    \"url\": \"https://wwu.epicmychart.com/wwu/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E51A552E-118A-410D-97C4-CF06DD88524F/2f2dbfc19af2a9a8bf7592b0b607a135.png\",\n    \"name\": \"The Portland Clinic\",\n    \"slgId\": \"4001-21\",\n    \"url\": \"https://theportlandclinic.epicmychart.com/tpc/\"\n  },\n  {\n    \"aliases\": [\n      \"TAMU\",\n      \"Texas A&M University\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/52921226-1098-42D8-A0E9-FE50FF2C5BCC/68232874ca16b59732fae9f2ea758989.png\",\n    \"name\": \"Texas A&M Health\",\n    \"slgId\": \"4001-22\",\n    \"url\": \"https://tamu.epicmychart.com/tamu/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/6ABC9525-0B8A-4BC0-8741-5772F30818F3/2323760bb7d66c81cdb8654de420a4d6.png\",\n    \"name\": \"Salem Clinic\",\n    \"slgId\": \"4001-23\",\n    \"url\": \"https://salemclinic.epicmychart.com/slm/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/E6E3BA33-BDB1-4CDF-8D8B-DF368CFDCE83/373b178737986481597926029aee9466.png\",\n    \"name\": \"eleHealth\",\n    \"slgId\": \"4001-24\",\n    \"url\": \"https://elehealth.epicmychart.com/ele/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B44A2931-D3DC-451C-BA07-EDB7D419ED40/965c5a5c8fe1856f463ab08d5f4167b2.png\",\n    \"name\": \"The Center\",\n    \"slgId\": \"4006-1\",\n    \"url\": \"https://thecenter.epicmychart.com/ctr/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/B27994FC-CEFB-457A-BB55-DBA552C3141F/db1714569ea9a7b18ea46b9bc30fcabe.png\",\n    \"name\": \"Articularis\",\n    \"slgId\": \"4006-2\",\n    \"url\": \"https://articularis.epicmychart.com/art/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/8D936264-1F96-4739-B367-B7DDAFABD6FE/b3356158f157e42a8b03dfd63a5be1c9.png\",\n    \"name\": \"Rebound Orthopedic and Neurosurgery\",\n    \"slgId\": \"4006-3\",\n    \"url\": \"https://reboundmd.epicmychart.com/rbd/\"\n  },\n  {\n    \"aliases\": [],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/C288A38B-5098-4FCC-A073-3CF46D2FF53E/11a8344fabd56a1913c0ae40a2b68a59.png\",\n    \"name\": \"Reno Orthopedic Center\",\n    \"slgId\": \"4006-4\",\n    \"url\": \"https://renoortho.epicmychart.com/roc/\"\n  },\n  {\n    \"aliases\": [\n      \"NWOS\"\n    ],\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/5B32FD50-D656-4B17-92C4-A68D6FFE9A20/dffc37eb19310822567f0ee2380102be.png\",\n    \"name\": \"Northwest Orthopaedic Specialists\",\n    \"slgId\": \"4006-5\",\n    \"url\": \"https://nwos.epicmychart.com/nwos/\"\n  },\n  {\n    \"aliases\": [\n      \"NBMC\"\n    ],\n    \"directoryUrl\": \"https://www.nbmchealth.com/mychart/\",\n    \"logoUrl\": \"https://media.epic.com/mychartdotorg/directus/organizations/0F10BD21-79BE-4B81-89FA-92A3730EE1A0/598bea4d6499381b95346594ea3f2430.png\",\n    \"name\": \"North Bend Medical Center\",\n    \"slgId\": \"1001534\",\n    \"url\": \"https://mychart.stcharleshealthcare.org/MyChart/\"\n  }\n]\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The MyChart directory — every Epic instance in the world, and its logo.\n *\n * Epic publishes the list that powers the org picker on mychart.org. Three\n * functions live here:\n *\n *  - {@link fetchMyChartDirectory} — Epic's live list, one request: the first\n *    half of the refresh (`refreshDirectory.ts`) that writes\n *    `mychart-instances.json` at release and reruns monthly in clients.\n *  - {@link listMyCharts} — the checked-in `mychart-instances.json`: what a\n *    client offers until its first refresh. The one scraper that makes no\n *    request.\n *  - {@link fetchMyChartIcon} — one instance's logo, as bytes and a data URI.\n *\n * ## Where the list comes from\n *\n * It used to be inlined into the HTML of `/LoginSignup` as\n * `window.PageContext = { Directory: JSON.parse('…') }`, and that is what this\n * repo scraped until mychart.org was rebuilt as a Next.js app. The page now\n * ships no organizations at all — the picker fetches\n * `/cached-api/help/organizations/` client-side — so the old regex matched\n * nothing and the scrape threw. Anything reading the HTML is reading a page\n * that no longer contains the answer.\n *\n * The payload also carries `countryData` and `stateData` (name/alias/ZIP\n * dictionaries, together the large majority of its ~1.8 MB). Neither says\n * anything about an instance, so neither is parsed or stored.\n *\n * ## Where the logo comes from\n *\n * Reimplemented from the picker's own render path, in its order, because the\n * fallbacks are not decorative: eight organizations have no `logo` record, and\n * seven of those are large systems (Mayo, Kaiser, HealthPartners, …) whose\n * logo is a hand-placed file keyed by directory id.\n *\n *   1. the organization's own Directus image,\n *   2. else the per-organization override in {@link CUSTOM_LOGOS},\n *   3. else Epic's generic MyChart logo.\n *\n * Every logo in the directory is served by `media.epic.com` — one host, so\n * `scraperFetch`'s per-host permit is what paces a bulk fetch, and fetching\n * all ~1400 of them is 1400 gated round trips. Fetch the ones you are about to\n * show, not the whole set.\n *\n * The directory URL and the media base are both overridable, and both default\n * to Epic's. fake-mychart serves the pair, which is what keeps CI off Epic\n * entirely.\n */\n\nimport { scraperFetch } from '../http';\nimport bundledInstances from './mychart-instances.json';\n\n/** The org-picker's data source. `locale` only changes the localized names. */\nexport const MYCHART_DIRECTORY_API_URL =\n  'https://www.mychart.org/cached-api/help/organizations/?locale=en-us&includeOrganizations=1';\n\n/**\n * Where the directory's images live. A separate host from the directory\n * itself, so it is a separate knob: {@link fetchMyChartDirectory} takes both,\n * and fake-mychart serves both from its own origin.\n */\nexport const MYCHART_MEDIA_BASE = 'https://media.epic.com/mychartdotorg';\n\n/**\n * The origin every logo is served from. A sandboxed UI (the MCPB setup widget)\n * has to name it in its CSP, or the host serves it `img-src 'none'`.\n */\nexport const MYCHART_MEDIA_ORIGIN = new URL(MYCHART_MEDIA_BASE).origin;\n\n/** The generic logo, shown for an organization that has none of its own. */\nexport function defaultLogoUrl(mediaBase: string = MYCHART_MEDIA_BASE): string {\n  return `${mediaBase}/site/en-us/images/login/default.png`;\n}\n\n/**\n * Logos Epic ships as site assets rather than directory records, keyed by\n * `slgId`. Lifted verbatim from the picker bundle; every id here belongs to an\n * organization whose directory entry has no `logo`.\n */\nconst CUSTOM_LOGOS: Readonly<Record<string, string>> = {\n  '192': 'login/custom/globalHealth.png',\n  '227': 'login/custom/healthPartners.png',\n  '338': 'login/custom/northwestern.png',\n  '459': 'login/custom/kaiserPermanente.png',\n  '580': 'login/custom/myMercy.png',\n  '872': 'login/custom/mijnRadboud.png',\n  '896': 'login/custom/chi.png',\n  '958': 'login/custom/mayoClinic.png',\n  '990': 'login/custom/apotti.png',\n};\n\n/** An organization's image record, as the directory publishes it. */\ninterface DirectoryLogo {\n  imageId: string;\n  fileName: string;\n  subAreaName: string;\n}\n\n/** One organization, as the directory publishes it. */\nexport interface DirectoryOrganization {\n  slgId: string;\n  name: string;\n  loginUrl: string;\n  // Read as `org.logo?.imageId`, and parsed off a directory entry that may not\n  // carry the key at all, so absent and undefined already behaved identically.\n  logo?: DirectoryLogo | undefined;\n  brandName?: string;\n  aliases?: string[];\n  states?: string[];\n  countries?: string[];\n  liveOnCentral?: boolean;\n  phone?: string;\n  email?: string;\n  emailHref?: string;\n  faq?: string;\n}\n\n/**\n * One MyChart instance, in the shape every client consumes — and the shape of\n * each entry in `mychart-instances.json`.\n */\nexport interface MyChartInstance {\n  /** Display name, e.g. \"UCHealth\". */\n  name: string;\n  /** The portal's login URL — what to connect to. */\n  url: string;\n  /**\n   * The login URL Epic's directory publishes. Usually the same as `url`; it\n   * differs when Epic's points somewhere that isn't the portal (UCSF's is an\n   * information page) and a refresh found the real one.\n   */\n  directoryUrl: string;\n  /** Absolute logo URL, always set — the generic one when unbranded. */\n  logoUrl: string;\n  /** Epic's directory id, e.g. \"432-112\". Survives a rename; the name doesn't. */\n  slgId: string;\n  /** Other names the same organization is searched by. */\n  aliases: string[];\n  /** Two-letter US state codes the organization operates in. */\n  states: string[];\n  /** Two-letter country codes. */\n  countries: string[];\n  /** What the organization calls its portal — \"MyChart\", \"Maisa\", \"MyUCHealth\". */\n  brandName: string;\n  /**\n   * True when the last refresh (`fetchResolvedMyChartDirectory`) found the\n   * portal broken in a way that is the same from anywhere — hostname gone,\n   * connection refused, TLS failure, a 5xx — twice. A hang is not counted. A\n   * snapshot from that refresh, not a live check, and never set by a plain\n   * directory fetch.\n   */\n  down?: boolean;\n  /** Whether the instance participates in MyChart Central. */\n  liveOnCentral: boolean;\n  /**\n   * The organization's MyChart support line, as Epic's picker shows it.\n   * Present for about two thirds of the directory; null when the entry has\n   * none.\n   */\n  phone: string | null;\n  /** The organization's MyChart support email, when the entry has one. */\n  email: string | null;\n  /** The organization's FAQ page — nearly always its own `stdfile` FAQ. */\n  faqUrl: string | null;\n}\n\n/**\n * The subset of an instance that ships in `mychart-instances.json`.\n *\n * That file is bundled into two clients, so it carries only fields something\n * actually reads: the picker renders `name`/`logoUrl`, connects to `url`,\n * searches `aliases`, and keys its icon cache on `slgId` (an organization can\n * be renamed; its directory id survives). Everything else stays available from\n * {@link fetchMyChartDirectory} at runtime.\n */\nexport type MyChartInstanceSeed = Pick<\n  MyChartInstance,\n  'name' | 'url' | 'logoUrl' | 'slgId' | 'aliases' | 'down'\n> & {\n  /** Stored only when it differs from `url` — it is how a correction is recorded. */\n  directoryUrl?: string;\n};\n\n/**\n * How both JSON files are written: entries sorted by `slgId` (numerically, so\n * `320` precedes `320-1` and `1001534`), each entry's keys alphabetically, so\n * a refresh's diff shows only what changed.\n */\nexport function toSortedJson(entries: readonly ({ slgId: string } & object)[]): string {\n  const sorted = [...entries]\n    .sort((a, b) => a.slgId.localeCompare(b.slgId, 'en', { numeric: true }))\n    .map((entry) => Object.fromEntries(Object.entries(entry).sort(([a], [b]) => (a < b ? -1 : 1))));\n  return `${JSON.stringify(sorted, null, 2)}\\n`;\n}\n\n/** Narrow a full instance to what the checked-in seed stores. */\nexport function toSeedEntry(instance: MyChartInstance): MyChartInstanceSeed {\n  return {\n    name: instance.name,\n    url: instance.url,\n    logoUrl: instance.logoUrl,\n    slgId: instance.slgId,\n    aliases: instance.aliases,\n    ...(instance.directoryUrl !== instance.url ? { directoryUrl: instance.directoryUrl } : {}),\n    ...(instance.down ? { down: true } : {}),\n  };\n}\n\nlet fingerprint: string | null = null;\n\n/**\n * Identifies the checked-in `mychart-instances.json`, so a client can tell\n * whether a refresh it saved was made beside this release's file or an older\n * one. A saved run from an older release is older than the file that replaced\n * it, and should not win over it. (FNV-1a over the file's contents.)\n */\nexport function bundledDirectoryFingerprint(): string {\n  if (fingerprint) return fingerprint;\n  const text = JSON.stringify(bundledInstances);\n  let hash = 0x811c9dc5;\n  for (let i = 0; i < text.length; i++) hash = Math.imul(hash ^ text.charCodeAt(i), 0x01000193);\n  fingerprint = (hash >>> 0).toString(16);\n  return fingerprint;\n}\n\n/**\n * Every MyChart the checked-in `mychart-instances.json` knows: Epic's\n * directory, every login URL checked, as of the last MCPB release. Unlike the\n * other scrapers it makes no request; it is what a client offers until its\n * first monthly refresh (`refreshMyChartDirectory`) finishes.\n */\nexport function listMyCharts(): MyChartInstanceSeed[] {\n  return bundledInstances;\n}\n\n/** The logo URL Epic's own picker would render for this organization. */\nexport function logoUrlFor(\n  org: DirectoryOrganization,\n  mediaBase: string = MYCHART_MEDIA_BASE,\n): string {\n  if (org.logo?.imageId && org.logo.fileName) {\n    const area = org.logo.subAreaName || 'organizations';\n    return `${mediaBase}/directus/${area}/${org.logo.imageId}/${org.logo.fileName}`;\n  }\n  const custom = CUSTOM_LOGOS[org.slgId];\n  if (custom) return `${mediaBase}/site/en-us/images/${custom}`;\n  return defaultLogoUrl(mediaBase);\n}\n\nfunction asStringArray(value: unknown): string[] {\n  if (!Array.isArray(value)) return [];\n  return value.filter((v): v is string => typeof v === 'string' && v.length > 0);\n}\n\n/**\n * Turn one raw directory entry into an instance, or null if it can't be one.\n *\n * An entry with no `loginUrl` is dropped rather than defaulted: three of them\n * exist, and a picker row that navigates nowhere is worse than a missing row.\n */\nfunction toInstance(raw: unknown, mediaBase: string): MyChartInstance | null {\n  if (typeof raw !== 'object' || raw === null) return null;\n  const org = raw as Record<string, unknown>;\n\n  const name = typeof org.name === 'string' ? org.name.trim() : '';\n  const slgId = typeof org.slgId === 'string' ? org.slgId : '';\n  const directoryUrl = typeof org.loginUrl === 'string' ? org.loginUrl.trim() : '';\n  if (!name || !directoryUrl) return null;\n\n  const logo = org.logo as DirectoryLogo | undefined;\n  return {\n    name,\n    url: directoryUrl,\n    directoryUrl,\n    logoUrl: logoUrlFor({ slgId, name, loginUrl: directoryUrl, logo }, mediaBase),\n    slgId,\n    aliases: asStringArray(org.aliases),\n    states: asStringArray(org.states),\n    countries: asStringArray(org.countries),\n    brandName: typeof org.brandName === 'string' ? org.brandName : '',\n    liveOnCentral: org.liveOnCentral === true,\n    phone: nonEmptyString(org.phone),\n    email: nonEmptyString(org.email),\n    faqUrl: nonEmptyString(org.faq),\n  };\n}\n\n/** The directory sends `\"\"` rather than omitting a contact field it lacks. */\nfunction nonEmptyString(value: unknown): string | null {\n  return typeof value === 'string' && value.trim().length > 0 ? value.trim() : null;\n}\n\n/**\n * Parse the directory API's response body.\n *\n * Throws when `organizations` is missing entirely — that means the endpoint\n * changed shape, and silently returning an empty list would look to every\n * client exactly like \"Epic has no organizations\", which is the failure the\n * old HTML scrape spent months in.\n */\nexport function parseDirectoryPayload(\n  payload: unknown,\n  mediaBase: string = MYCHART_MEDIA_BASE,\n): MyChartInstance[] {\n  const organizations = (payload as { organizations?: unknown } | null)?.organizations;\n  if (!Array.isArray(organizations)) {\n    throw new Error(\n      'MyChart directory response has no \"organizations\" array — the endpoint shape changed.',\n    );\n  }\n  return mergeDuplicates(\n    organizations.map((org) => toInstance(org, mediaBase)).filter((i): i is MyChartInstance => i !== null),\n  );\n}\n\n/**\n * Collapse entries with the same name **and** the same URL into one, which a\n * picker would otherwise show twice: Epic lists Cleveland Clinic once for the\n * US (`320`) and once for Canada (`320-1`). The shortest `slgId` — the\n * parent's — is kept, with every entry's aliases.\n *\n * Same name alone is not a duplicate (\"Baptist Health\" is two systems, in\n * Alabama and Arkansas), and neither is same portal alone (affiliates sharing\n * a parent's MyChart are searched by their own names).\n */\nexport function mergeDuplicates(instances: MyChartInstance[]): MyChartInstance[] {\n  const groups = new Map<string, MyChartInstance[]>();\n  for (const instance of instances) {\n    const key = `${instance.name.toLowerCase()}|${instance.url}`;\n    groups.set(key, [...(groups.get(key) ?? []), instance]);\n  }\n  return [...groups.values()].map((group) => {\n    const kept = group.reduce((a, b) => (b.slgId.length < a.slgId.length ? b : a));\n    return { ...kept, aliases: [...new Set(group.flatMap((i) => i.aliases))] };\n  });\n}\n\n/**\n * Fetch every MyChart instance Epic publishes. One request; ~1400 entries.\n *\n * Both endpoints are overridable, and they move together: an entry's `logo` is\n * an id and a filename, not a URL, so a directory served from somewhere else\n * has its images somewhere else too. Point them at fake-mychart and nothing\n * touches Epic.\n */\nexport async function fetchMyChartDirectory(\n  options: { directoryUrl?: string; mediaBase?: string } = {},\n): Promise<MyChartInstance[]> {\n  const url = options.directoryUrl ?? MYCHART_DIRECTORY_API_URL;\n  const response = await scraperFetch(url, { headers: { Accept: 'application/json' } });\n  if (!response.ok) {\n    throw new Error(`MyChart directory request failed: ${response.status} ${response.statusText}`);\n  }\n  return parseDirectoryPayload(await response.json(), options.mediaBase);\n}\n\n/** A fetched logo, ready to render or to store. */\nexport interface MyChartIcon {\n  /** Where it came from. */\n  url: string;\n  /** As reported by the server, defaulted to PNG (what Epic serves). */\n  contentType: string;\n  bytes: Uint8Array;\n  /** `data:<contentType>;base64,…` — renderable directly by an `<Image>`. */\n  dataUri: string;\n}\n\nfunction contentTypeFor(response: Response, url: string): string {\n  const header = response.headers.get('content-type');\n  if (header) {\n    const type = header.split(';')[0]?.trim();\n    if (type) return type;\n  }\n  if (/\\.svg$/i.test(url)) return 'image/svg+xml';\n  if (/\\.jpe?g$/i.test(url)) return 'image/jpeg';\n  return 'image/png';\n}\n\n/**\n * Fetch one instance's logo.\n *\n * Takes the instance itself or a bare logo URL, so a caller holding a whole\n * directory entry doesn't have to reach into it. Returns null when the logo is\n * simply not there (a 404, an unreachable host) — a missing logo is a blank\n * square in a picker, never a reason to fail whatever the caller was doing.\n * A malformed argument still throws, because that is a bug in the caller.\n */\nexport async function fetchMyChartIcon(\n  instanceOrUrl: string | Pick<MyChartInstance, 'logoUrl'>,\n): Promise<MyChartIcon | null> {\n  const url = typeof instanceOrUrl === 'string' ? instanceOrUrl : instanceOrUrl.logoUrl;\n  if (!url) return null;\n\n  let response: Response;\n  try {\n    response = await scraperFetch(url, {\n      headers: { Accept: 'image/avif,image/webp,image/apng,image/*,*/*;q=0.8' },\n    });\n  } catch {\n    return null;\n  }\n  if (!response.ok) return null;\n\n  const bytes = new Uint8Array(await response.arrayBuffer());\n  if (bytes.length === 0) return null;\n\n  const contentType = contentTypeFor(response, url);\n  return {\n    url,\n    contentType,\n    bytes,\n    dataUri: `data:${contentType};base64,${Buffer.from(bytes).toString('base64')}`,\n  };\n}\n\n/**\n * Every mount prefix the bundled directory publishes for a host, most-listed\n * first. A host that serves several tenants (`mychart.adventhealth.com/gracemedical`,\n * `/shepherdshope`, …) often has no default at its root, so discovery has\n * nowhere to land — but Epic's own picker knows every mount on it.\n */\nexport function directoryPrefixesFor(hostname: string): string[] {\n  const wanted = hostname.toLowerCase();\n  const counts = new Map<string, number>();\n  for (const instance of listMyCharts()) {\n    let url: URL;\n    try {\n      url = new URL(instance.url);\n    } catch {\n      continue;\n    }\n    if (url.host.toLowerCase() !== wanted) continue;\n    const prefix = url.pathname.split('/').find(Boolean);\n    if (!prefix || prefix.toLowerCase() === 'authentication') continue;\n    counts.set(prefix, (counts.get(prefix) ?? 0) + 1);\n  }\n  return [...counts].sort((a, b) => b[1] - a[1]).map(([prefix]) => prefix);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { MyChartRequest } from \"../core/myChartRequest\";\nimport { directoryPrefixesFor } from '../../list-all-mycharts/directory';\nimport * as cheerio from 'cheerio';\n\nimport { getRequestVerificationTokenFromBody } from \"../core/util\";\nimport { sendTelemetryEvent } from \"../../../shared/telemetry\";\nimport { acceptTermsAndConditions } from \"./termsAndConditions\";\nimport { isBlockedInstance } from \"./blockedInstances\";\nimport { createAssertion, type PasskeyCredential } from \"./softwareAuthenticator\";\nimport { logger } from '../../../shared/logger';\n\n\n// MyChart's login route. When a root redirect lands on it, everything in front\n// of it is the deployment prefix — and for root-mounted instances that's nothing.\nconst MYCHART_LOGIN_ROUTE = '/authentication/';\n\n/**\n * Where a MyChart deployment actually lives: the host serving it, and the\n * prefix its routes sit under (null for a root-mounted instance).\n *\n * The host is part of it because portals move. `patients.mycslink.org` redirects\n * to `mycslink.cedars-sinai.org/mycslink`, `login.wellspan.org` to\n * `my.wellspan.org/mywellspan` — the hostname a user hands us is often a\n * vanity alias for a deployment that lives somewhere else entirely.\n */\nexport type MountLocation = { hostname: string; firstPathPart: string | null };\n\n/** How many hops to follow before deciding a redirect chain is a loop. */\nconst MAX_DISCOVERY_HOPS = 10;\n\n/** Does this redirect path land on a MyChart route we recognize? */\nexport function landsOnMyChartRoute(path: string): boolean {\n  return path.toLowerCase().includes(MYCHART_LOGIN_ROUTE);\n}\n\n/**\n * The deployment prefix carried by a path, whatever announced it.\n *\n *   /MyChart/                   → 'MyChart'      (uhhospitals.org and most others)\n *   /UCSFMyChart/               → 'UCSFMyChart'\n *   /Authentication/Login       → null           (Cleveland Clinic — no prefix)\n *   /prd/Authentication/Login   → 'prd'\n *\n * null means \"no prefix\": nothing at all goes in front of MyChart's routes.\n */\nfunction firstPathPartFromPathname(pathname: string): string | null {\n  const routeStart = pathname.toLowerCase().indexOf(MYCHART_LOGIN_ROUTE);\n  // Path went straight to a MyChart route — take whatever precedes it.\n  if (routeStart >= 0) return pathname.slice(1, routeStart) || null;\n  return pathname.split('/')[1] || null;\n}\n\n/**\n * Where a root page's `<meta http-equiv=\"refresh\">` points, or null if there\n * isn't one we can use.\n *\n *   0; URL=/MyChart/                              → https://<host>/MyChart/\n *   1 ;url=https://mychart.renown.org/mychart     → as written (Renown)\n *\n * The target may be relative or absolute, so it goes through `new URL` rather\n * than string surgery — stripping every `/` out of an absolute URL folds the\n * host into the prefix (`https:mychart.renown.orgmychart`).\n *\n * Pass `hostname` to reject targets pointing at another host, the same way the\n * Location-header path does: a marketing page's path is not a MyChart prefix.\n *\n * Pass `baseUrl` when the page came from somewhere other than the bare host —\n * a relative `url=DefaultAsp` partway down a redirect chain resolves against\n * the page carrying it, not against `/`.\n */\nexport function parseMetaRefreshTarget(html: string, hostname?: string, baseUrl?: string): URL | null {\n  const $ = cheerio.load(html);\n  const content = $('meta[http-equiv=\"REFRESH\"]').attr('content');\n  if (!content) return null;\n\n  // content is `<seconds>; url=<target>`. Split on the first `=` only — the target\n  // can carry its own query string (`?id=…`).\n  const afterDelay = content.split(';').slice(1).join(';');\n  const equals = afterDelay.indexOf('=');\n  if (equals < 0) return null;\n\n  const target = afterDelay.slice(equals + 1).trim().replace(/^['\"]|['\"]$/g, '');\n  if (!target) return null;\n\n  // A placeholder base resolves relative targets; absolute ones ignore it.\n  let url: URL;\n  try {\n    url = new URL(target, baseUrl ?? `https://${hostname || 'mychart.invalid'}`);\n  } catch {\n    return null;\n  }\n\n  if (hostname && url.host !== hostname) {\n    logger.debug('Meta refresh points off-host:', hostname, '->', url.host);\n    return null;\n  }\n\n  return url;\n}\n\n/**\n * Work out the deployment prefix from a `<meta http-equiv=\"refresh\">` on the root page.\n *\n *   0; URL=/MyChart/                              → 'MyChart'\n *   1 ;url=https://mychart.renown.org/mychart     → 'mychart'   (Renown — absolute URL)\n *   0; URL=/Authentication/Login                  → null        (root-mounted)\n *\n * null is ambiguous here — it means either \"root-mounted\" or \"no usable refresh\n * tag\". Callers that need to tell those apart use `parseMetaRefreshTarget` and\n * check `landsOnMyChartRoute` on the result.\n */\nexport function parseFirstPathPartFromHtml(html: string, hostname?: string): string | null {\n  const target = parseMetaRefreshTarget(html, hostname);\n  return target ? firstPathPartFromPathname(target.pathname) : null;\n}\n\n/**\n * Work out the deployment prefix from the redirect a root probe returns. See\n * `firstPathPartFromPathname` for what the shapes map to; null means \"no\n * prefix\": nothing at all goes in front of MyChart's routes.\n */\nexport function parseFirstPathPartFromLocation(locationHeader: string, hostname: string, protocol = 'https'): string | null {\n  const { pathname } = new URL(locationHeader, protocol + '://' + hostname);\n  return firstPathPartFromPathname(pathname);\n}\n\nexport function parseFirstPathPartFromInput(input: string): string | null {\n  const trimmed = input.trim();\n  try {\n    const parsed = new URL(trimmed.includes('://') ? trimmed : `https://${trimmed}`);\n    const part = parsed.pathname.split('/').find(Boolean);\n    // `part` is `.split('/').find(Boolean)`-shaped: undefined or a\n    // non-empty string, never '' — so `!part?.…` and the old `!part || !part.…`\n    // take identical branches.\n    if (!part?.toLowerCase().includes('mychart')) {\n      return null;\n    }\n    return part;\n  } catch {\n    return null;\n  }\n}\n\nexport function looksLikeLoginPage(html: string): boolean {\n  const bodyLower = html.toLowerCase();\n  return bodyLower.includes('__requestverificationtoken')\n    || bodyLower.includes('login with passkey')\n    || bodyLower.includes('forgot login information')\n    || bodyLower.includes('error: please enable cookies to log in')\n    || bodyLower.includes('secondaryvalidationcontroller')\n    || bodyLower.includes('mychart® licensed from epic');\n}\n\n/**\n * Where a root page's `window.location = \"…\"` points, or null if there isn't one.\n *\n * A handful of instances (mydovetale.ca) announce the mount from a script tag\n * instead of a meta refresh:\n *\n *   <script>window.location=\"https://mydovetale.ca/MyDovetale/\";</script>\n *\n * The target is resolved against `baseUrl` and returned as-is — whether a\n * target on another host is worth following is the caller's decision.\n */\nexport function parseScriptRedirectTarget(html: string, baseUrl: string): URL | null {\n  // window.location = \"…\" / window.location.href = '…' / location.replace(\"…\")\n  const match = (/\\b(?:window\\.)?location(?:\\.href)?\\s*=\\s*[\"']([^\"']+)[\"']/i.exec(html))\n    ?? (/\\b(?:window\\.)?location\\.(?:replace|assign)\\s*\\(\\s*[\"']([^\"']+)[\"']\\s*\\)/i.exec(html));\n  if (!match) return null;\n  try {\n    return new URL(match[1]!, baseUrl); // both patterns have one non-optional capture group\n  } catch {\n    return null;\n  }\n}\n\n/**\n * Every MyChart mount a page links to, most-linked first.\n *\n * Landing pages come in two flavours and both are covered here:\n *\n *   - an affiliate chooser that links straight at the route\n *     (`https://mychart.example.org/prd/Authentication/Login`), and\n *   - a hospital marketing homepage that links at the mount\n *     (`https://mychart.example.org/MyChart/`).\n *\n * Ranking, in order: links that name the login route, then links on the host we\n * were asked about, then paths that read like a MyChart mount, then how often\n * the page refers to them. Nothing here is trusted on sight — the caller checks\n * each candidate for a login page — so the ordering only decides how quickly we\n * get to the right one, which is why a bare `/NorthMemorial/` stays in the\n * running even though it names neither the route nor MyChart.\n */\nexport function extractMountsFromLinks(html: string, preferHostname?: string): MountLocation[] {\n  const $ = cheerio.load(html);\n  const candidates = new Map<string, MountLocation & { hits: number; namesRoute: boolean; namesMyChart: boolean }>();\n\n  const urls: string[] = [];\n  $('a[href], link[href], area[href]').each((_i, el) => { const v = $(el).attr('href'); if (v) urls.push(v); });\n  $('script[src], img[src], iframe[src], form[action]').each((_i, el) => {\n    const v = $(el).attr('src') ?? $(el).attr('action'); if (v) urls.push(v);\n  });\n  // Absolute URLs sitting in inline script/JSON that cheerio's selectors miss.\n  for (const m of html.matchAll(/https?:\\/\\/[^\\s\"'<>()]+/g)) urls.push(m[0]);\n\n  for (const raw of urls) {\n    let url: URL;\n    try { url = new URL(raw, `https://${preferHostname || 'mychart.invalid'}`); } catch { continue; }\n    if (url.protocol !== 'https:' && url.protocol !== 'http:') continue;\n\n    const namesRoute = landsOnMyChartRoute(url.pathname);\n    const prefix = firstPathPartFromPathname(url.pathname);\n    const namesMyChart = !!prefix && /mychart|chart|portal|prd/i.test(prefix);\n    const trimmed = url.pathname.replace(/\\/$/, '');\n    const segments = trimmed.split('/').filter(Boolean).length;\n\n    // `/Authentication/Login` on the bare host is a root mount; anything else\n    // with no prefix at all carries no information.\n    if (!namesRoute && !prefix) continue;\n    // A deep path is only interesting when its first segment already reads as a\n    // mount (`/MyChart/Scripts/…` on a marketing page). Otherwise it's the\n    // site's own content: `/patients-and-visitors/find-a-doctor.html`.\n    if (!namesRoute && !namesMyChart && segments > 1) continue;\n    // Files aren't mounts — keeps `/style.css` and `/logo.png` out of it.\n    if (!namesRoute && !namesMyChart && /\\.[a-z0-9]{2,5}$/i.test(trimmed)) continue;\n\n    const key = `${url.host}|${(prefix ?? '').toLowerCase()}`;\n    const existing = candidates.get(key);\n    if (existing) {\n      existing.hits++;\n      existing.namesRoute ||= namesRoute;\n    } else {\n      candidates.set(key, { hostname: url.host, firstPathPart: prefix, hits: 1, namesRoute, namesMyChart });\n    }\n  }\n\n  return [...candidates.values()]\n    .sort((a, b) =>\n      Number(b.namesRoute) - Number(a.namesRoute)\n      || Number(b.hostname === preferHostname) - Number(a.hostname === preferHostname)\n      || Number(b.namesMyChart) - Number(a.namesMyChart)\n      || b.hits - a.hits)\n    .map(({ hostname, firstPathPart }) => ({ hostname, firstPathPart }));\n}\n\nconst COMMON_FIRST_PATH_PART_CANDIDATES = ['MyChart', 'MyChart-PRD', 'MyChartPRD'];\n\nexport async function probeFirstPathPartByTryingCommonLoginPaths(mychartRequest: MyChartRequest): Promise<string | null> {\n  // The directory's own prefixes come last: on a host with one tenant the\n  // common names usually hit first, and on a host with several this is the\n  // only way to find any of them.\n  const candidates = [...COMMON_FIRST_PATH_PART_CANDIDATES];\n  for (const prefix of directoryPrefixesFor(mychartRequest.hostname)) {\n    if (!candidates.some((c) => c.toLowerCase() === prefix.toLowerCase())) candidates.push(prefix);\n  }\n  for (const candidate of candidates) {\n    const candidateUrl = `${mychartRequest.protocol}://${mychartRequest.hostname}/${candidate}/Authentication/Login`;\n    try {\n      const resp = await mychartRequest.makeRequest({ url: candidateUrl });\n      const finalUrl = new URL(resp.url || candidateUrl, candidateUrl);\n      const html = await resp.text();\n\n      if (finalUrl.host !== mychartRequest.hostname) {\n        logger.debug(`Skipping ${candidate} probe: redirected off-host to ${finalUrl.host}`);\n        continue;\n      }\n\n      if (resp.status >= 400) {\n        continue;\n      }\n\n      const finalPathPart = finalUrl.pathname.split('/').find(Boolean);\n      if (finalPathPart?.toLowerCase() === candidate.toLowerCase() && looksLikeLoginPage(html)) {\n        logger.debug('Recovered firstPathPart by probing common login path:', finalPathPart || candidate);\n        return finalPathPart || candidate;\n      }\n    } catch (error) {\n      logger.debug(`Failed ${candidate} probe:`, error);\n    }\n  }\n\n  return null;\n}\n\n/**\n * Does this URL serve a MyChart login page? Used to sanity-check a mount we\n * only guessed at — a link on a landing page, or a host a redirect handed us.\n */\nasync function verifyMount(mychartRequest: MyChartRequest, mount: MountLocation): Promise<boolean> {\n  const url = `${mychartRequest.protocol}://${mount.hostname}${mount.firstPathPart ? '/' + mount.firstPathPart : ''}/Authentication/Login`;\n  try {\n    const resp = await mychartRequest.makeRequest({ url });\n    if (resp.status >= 400) {\n      logger.debug('mount check failed:', url, resp.status);\n      return false;\n    }\n    const ok = looksLikeLoginPage(await resp.text());\n    logger.debug('mount check', ok ? 'passed:' : 'failed (not a login page):', url);\n    return ok;\n  } catch (e) {\n    logger.debug('mount check errored:', url, e);\n    return false;\n  }\n}\n\nfunction mountFromUrl(url: URL): MountLocation {\n  return { hostname: url.host, firstPathPart: firstPathPartFromPathname(url.pathname) };\n}\n\n/**\n * Walk the redirect chain from the root the way a browser would, and stop the\n * moment it lands on a MyChart route.\n *\n * Following the whole chain rather than just the first hop is what makes this\n * reliable. The canonical MyChart bounce is three hops, and only the last one\n * names the mount:\n *\n *   /                        302 → /MyChart/\n *   /MyChart/                302 → DefaultAsp          ← relative, no leading slash\n *   /MyChart/DefaultAsp      302 → /MyChart/Authentication/Login?\n *\n * Reading one hop is enough for the instances that redirect straight to\n * `/MyChart/`, but a root-mounted instance's first hop is the bare\n * `DefaultAsp` — which, read as a prefix, is nonsense. So we keep going, and\n * whatever precedes `/Authentication/` at the end of the chain is the answer.\n *\n * The chain is also allowed to leave the host: portals get consolidated, and a\n * vanity hostname redirecting to the deployment that now serves it is the norm,\n * not an anomaly. Whether to trust the new host is the caller's call.\n *\n * Returns the mount if the chain found one, plus the last page fetched so the\n * caller can mine a landing page for links when it didn't.\n */\nasync function followChainToMyChartRoute(\n  mychartRequest: MyChartRequest,\n  startUrl: string,\n): Promise<{ mount: MountLocation | null; finalUrl: string; html: string | null }> {\n  let url = startUrl;\n  let html: string | null = null;\n  const seen = new Set<string>();\n\n  for (let hop = 0; hop < MAX_DISCOVERY_HOPS; hop++) {\n    if (seen.has(url)) {\n      logger.debug('discovery: redirect loop back to', url);\n      break;\n    }\n    seen.add(url);\n\n    let response: Response;\n    try {\n      response = await mychartRequest.makeRequest({ followRedirects: false, url });\n    } catch (e) {\n      logger.debug('discovery: request failed', url, e);\n      break;\n    }\n\n    // Some runtimes (iOS) ignore redirect:'manual' and follow the chain\n    // themselves, in which case the response URL is already the end of it.\n    const followedTo = !response.headers.get('Location') && response.url && response.url !== url\n      ? response.url\n      : null;\n    const next = response.headers.get('Location') ?? followedTo;\n\n    if (next) {\n      let resolved: URL;\n      try {\n        resolved = new URL(next, url);\n      } catch {\n        logger.debug('discovery: uninterpretable redirect target', next);\n        break;\n      }\n      logger.debug('discovery:', response.status, url, '->', resolved.href);\n      if (landsOnMyChartRoute(resolved.pathname)) {\n        return { mount: mountFromUrl(resolved), finalUrl: resolved.href, html: null };\n      }\n      url = resolved.href;\n      continue;\n    }\n\n    html = await response.text().catch(() => '');\n    logger.debug('discovery:', response.status, url, `(${html.length} bytes, no redirect)`);\n\n    // Landed on the login page itself: this URL *is* the mount, and its own\n    // `<meta refresh>` points at nojs.asp — following that would lose it.\n    if (response.status < 400 && looksLikeLoginPage(html)) {\n      return { mount: mountFromUrl(new URL(url)), finalUrl: url, html };\n    }\n\n    // Not a redirect at the HTTP level, but the page may still announce the\n    // mount: a meta refresh (Renown) or a scripted window.location (Dovetale).\n    const target = parseMetaRefreshTarget(html, undefined, url) ?? parseScriptRedirectTarget(html, url);\n    if (!target) break;\n\n    logger.debug('discovery: body redirect', url, '->', target.href);\n    if (landsOnMyChartRoute(target.pathname)) {\n      return { mount: mountFromUrl(target), finalUrl: target.href, html };\n    }\n    url = target.href;\n  }\n\n  return { mount: null, finalUrl: url, html };\n}\n\n/**\n * Pin a discovered mount onto the request, moving hosts if that's where the\n * deployment turned out to live.\n *\n * A host move is only ever accepted on the strength of a login page actually\n * being served there (`verified`) — the host we end up on is the one that gets\n * sent the user's password. The scheme is not up for grabs either: only the\n * host is taken from the chain, so a session that started on https stays there\n * even if some hop along the way was plain http.\n */\nfunction applyMount(mychartRequest: MyChartRequest, mount: MountLocation, verified: boolean): boolean {\n  if (mount.hostname !== mychartRequest.hostname) {\n    if (!verified) return false;\n    logger.debug('MyChart moved hosts:', mychartRequest.hostname, '->', mount.hostname);\n    mychartRequest.setHostname(mount.hostname);\n  }\n  logger.debug('MyChart mount:', mychartRequest.hostname, mount.firstPathPart\n    ? `is prefixed with ${mount.firstPathPart}`\n    : 'is mounted at the domain root');\n  mychartRequest.setFirstPathPart(mount.firstPathPart);\n  return true;\n}\n\nexport async function determineFirstPathPart(mychartRequest: MyChartRequest): Promise<MyChartRequest | null> {\n\n  if (mychartRequest.firstPathPart) {\n    logger.debug('first path part already determined', mychartRequest.firstPathPart)\n    return mychartRequest;\n  }\n\n  const startedOnHostname = mychartRequest.hostname;\n  const root = mychartRequest.protocol + '://' + mychartRequest.hostname;\n  const { mount, html } = await followChainToMyChartRoute(mychartRequest, root);\n\n  if (mount) {\n    // A chain that stayed put proved the prefix by landing on it. One that\n    // moved hosts has to prove the new host serves MyChart before we trust it.\n    const sameHost = mount.hostname === startedOnHostname;\n    if (applyMount(mychartRequest, mount, sameHost || await verifyMount(mychartRequest, mount))) {\n      return mychartRequest;\n    }\n  }\n\n  // The chain ran out on a page that isn't MyChart — an affiliate chooser, a\n  // hospital homepage, an SSO stop. Those pages nearly always link at the real\n  // mount, so read it off them rather than guessing.\n  if (html) {\n    for (const candidate of extractMountsFromLinks(html, startedOnHostname).slice(0, 5)) {\n      logger.debug('trying mount linked from the landing page:', candidate.hostname, candidate.firstPathPart);\n      if (await verifyMount(mychartRequest, candidate) && applyMount(mychartRequest, candidate, true)) {\n        return mychartRequest;\n      }\n    }\n  }\n\n  const probed = await probeFirstPathPartByTryingCommonLoginPaths(mychartRequest);\n  if (probed) {\n    mychartRequest.setFirstPathPart(probed);\n    return mychartRequest;\n  }\n\n  logger.debug('Could not work out where MyChart is mounted on', mychartRequest.hostname);\n  return mychartRequest;\n}\n\nexport type TwoFaDeliveryInfo = {\n  method: 'email' | 'sms';\n  // Masked contact, e.g. \"***-***-1234\" or \"ab***@example.com\". Scraped, so it\n  // may arrive as an explicit undefined when the page didn't render one.\n  contact?: string | undefined;\n}\n\nexport type LoginResult = {\n  state: 'logged_in' | 'need_2fa' | 'invalid_login' | 'error'\n  error?: string\n  mychartRequest: MyChartRequest;\n\n  // only set if need2fa is true\n  twoFaSentTime?: number;\n  twoFaDelivery?: TwoFaDeliveryInfo | undefined;\n\n}\n\n/**\n * Masked contacts as MyChart prints them on the 2FA page — a masked address\n * and a masked number. Both are rewrites of patterns whose adjacent quantifiers\n * could each claim the same `*`, so a long run of mask characters with no `@`\n * or trailing digits — easy to plant in scraped portal HTML — got divided\n * between them every possible way: 800 stars took 25s, on the login path. Each\n * accepts exactly the same strings as the pattern it replaces. The lookbehinds\n * are the other half of the fix: a match can never start mid-run (the star\n * before it would have started an equally good match one character earlier),\n * and refusing those start offsets is what takes the scan to linear.\n */\nconst MASKED_EMAIL_RE = /(?<![\\w*])[\\w*]\\w*\\*[\\w*]*@[\\w.]+/;\nconst MASKED_PHONE_RE = /(?<!\\*)\\*\\*[\\d*-]*\\d{4}/;\n\n/**\n * Parse the secondary validation (2FA) page to detect which delivery methods are available.\n * Real MyChart pages show buttons like \"Email to me\" or \"Text to my phone\".\n * Returns which methods are available and any masked contact info found near the buttons.\n */\nexport function parse2faDeliveryMethods(html: string): {\n  hasEmail: boolean;\n  hasSms: boolean;\n  // Scraped off the page, so \"not found\" arrives as an explicit undefined.\n  emailContact?: string | undefined;\n  smsContact?: string | undefined;\n} {\n  const $ = cheerio.load(html);\n  let hasEmail = false;\n  let hasSms = false;\n  let emailContact: string | undefined;\n  let smsContact: string | undefined;\n\n  // Look at all buttons and links on the page for delivery method indicators\n  $('button, a, [role=\"button\"]').each((_, el) => {\n    const text = $(el).text().toLowerCase().trim();\n    if (text.includes('email')) {\n      hasEmail = true;\n      // Try to extract masked email from button text or nearby elements\n      const fullText = $(el).text().trim();\n      const emailMatch = MASKED_EMAIL_RE.exec(fullText);\n      if (emailMatch) emailContact = emailMatch[0];\n    }\n    if (text.includes('text') || text.includes('phone') || text.includes('sms')) {\n      hasSms = true;\n      // Try to extract masked phone from button text or nearby elements\n      const fullText = $(el).text().trim();\n      const phoneMatch = /[\\d*][\\d*-]+[\\d*]/.exec(fullText);\n      if (phoneMatch) smsContact = phoneMatch[0];\n    }\n  });\n\n  // Also look in paragraph/span text near the buttons for masked contact info\n  $('p, span, div').each((_, el) => {\n    const text = $(el).text();\n    if (!emailContact) {\n      const emailMatch = MASKED_EMAIL_RE.exec(text);\n      if (emailMatch) emailContact = emailMatch[0];\n    }\n    if (!smsContact) {\n      const phoneMatch = MASKED_PHONE_RE.exec(text);\n      if (phoneMatch) smsContact = phoneMatch[0];\n    }\n  });\n\n  return { hasEmail, hasSms, emailContact, smsContact };\n}\n\n// takes in the user + pass\n// and returns 1 of two things:\n// 1. login success and were golden\n// 2. we need 2fa code to complete login process\n// Note that this flow will trigger the 2fa code to be sent to the user's email\n// if were going the 2fa flow\n/**\n * The hidden bookkeeping fields MyChart's login form posts back alongside the\n * credentials. They are page-load telemetry, not secrets, but an instance that\n * renders them expects them echoed — so they're read off the page rather than\n * invented, with the defaults MyChart's own JS uses when a field is absent.\n */\nexport function parseLoginPageFields(html: string) {\n  const $ = cheerio.load(html);\n  return {\n    navRequestMetrics: $('input[name=\"__NavigationRequestMetrics\"]').attr('value') || '',\n    navRedirectMetrics: $('input[name=\"__NavigationRedirectMetrics\"]').attr('value') || '[]',\n    redirectChainIncludesLogin: $('input[name=\"__RedirectChainIncludesLogin\"]').attr('value') || '0',\n    currentPageLoadDescriptor: $('input[name=\"__CurrentPageLoadDescriptor\"]').attr('value') || '',\n    rttCaptureEnabled: $('input[name=\"__RttCaptureEnabled\"]').attr('value') || '1',\n  };\n}\n\n/** The name MyChart's login controller JS gives the username credential. */\nexport function usernameFieldFromControllerJs(js: string): 'LoginIdentifier' | 'Username' {\n  const credMatch = /Credentials:\\s*\\{([^}]{0,300})\\}/.exec(js);\n  const creds = credMatch?.[1];\n  if (creds && creds.includes('Username') && !creds.includes('LoginIdentifier')) {\n    return 'Username';\n  }\n  return 'LoginIdentifier';\n}\n\n/**\n * Whether this instance calls the username credential `LoginIdentifier` (the\n * newer name) or `Username`, read out of the login controller JS the page\n * references. Falls back to the newer name when the script can't be fetched.\n */\nexport async function detectUsernameField(mychartRequest: MyChartRequest, loginPageHtml: string): Promise<'LoginIdentifier' | 'Username'> {\n  const $ = cheerio.load(loginPageHtml);\n  const loginControllerSrc = $('script[src*=\"loginpagecontroller\"]').attr('src');\n  if (!loginControllerSrc) return 'LoginIdentifier';\n\n  try {\n    const jsUrl = loginControllerSrc.startsWith('http')\n      ? loginControllerSrc\n      // mychartRequest.hostname, not the raw hostname the caller passed: that\n      // one may still carry the scheme and path the user typed, and discovery\n      // may since have moved the session to the host that serves MyChart.\n      : mychartRequest.protocol + '://' + mychartRequest.hostname + loginControllerSrc;\n    const jsResp = await mychartRequest.makeRequest({ url: jsUrl });\n    const usernameField = usernameFieldFromControllerJs(await jsResp.text());\n    logger.debug('Detected credential field:', usernameField);\n    return usernameField;\n  } catch (e) {\n    logger.debug('Could not detect credential field, defaulting to LoginIdentifier', e);\n    return 'LoginIdentifier';\n  }\n}\n\nexport async function myChartUserPassLogin ({hostname, user, pass, skipSendCode, protocol}: {hostname: string, user: string, pass: string, skipSendCode?: boolean | undefined, protocol?: string | undefined}): Promise<LoginResult> {\n  // Fire-and-forget telemetry — never blocks or breaks the scraper\n  sendTelemetryEvent('scraper_login_started', { hostname }, 'scraper');\n\n  if (!hostname || !user || !pass) {\n    // Which one is missing, never the values: the sink is whatever the host\n    // wired up, and a plaintext password belongs in none of them.\n    logger.debug('missing hostname, user, or pass', {\n      hostname: hostname || '(missing)',\n      user: user ? '(present)' : '(missing)',\n      pass: pass ? '(present)' : '(missing)',\n    })\n    throw new Error('Missing hostname, user, or pass')\n  }\n\n  if (isBlockedInstance(hostname)) {\n    throw new Error(`${hostname} is not supported. central.mychart.org is a portal aggregator and cannot be scraped directly. Please use the individual hospital MyChart instance instead.`);\n  }\n\n\n  // Use HTTP for localhost and hostnames without a dot (e.g. Docker service names like \"fake-mychart:3000\")\n  const hostnameWithoutPort = hostname.split(':')[0]!; // split() always yields a first element\n  const effectiveProtocol = protocol ?? (hostnameWithoutPort === 'localhost' || !hostnameWithoutPort.includes('.') ? 'http' : 'https');\n  const mychartRequest = new MyChartRequest(hostname, { protocol: effectiveProtocol });\n  const firstPathPartFromInput = parseFirstPathPartFromInput(hostname);\n  if (firstPathPartFromInput) {\n    logger.debug('Using firstPathPart from user input:', firstPathPartFromInput);\n    mychartRequest.setFirstPathPart(firstPathPartFromInput);\n  }\n\n  const foundMyChartFirstPathPart = await determineFirstPathPart(mychartRequest)\n\n  if (!foundMyChartFirstPathPart) {\n    logger.debug('could not determine first path part')\n    return {state: 'error', error: 'could not determine first path part', mychartRequest}\n  }\n\n\n  // The homepage has a __RequestVerificationToken that we need to extract.\n  // Also get the cookies in the jar as well\n  const firstRequst = await mychartRequest.makeRequest({path: '/Authentication/Login'})\n\n  const loginPageHtml = await firstRequst.text()\n\n  let requestVerificationToken = getRequestVerificationTokenFromBody(loginPageHtml)\n\n  const { navRequestMetrics, navRedirectMetrics, redirectChainIncludesLogin, currentPageLoadDescriptor, rttCaptureEnabled } =\n    parseLoginPageFields(loginPageHtml);\n\n  const usernameField = await detectUsernameField(mychartRequest, loginPageHtml);\n\n  // b64EncodeUnicode handles unicode chars properly (matching WP.Utils.b64EncodeUnicode from MyChart JS)\n  const b64EncodeUnicode = (str: string) => btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, (_, p1) => String.fromCharCode(parseInt(p1, 16))));\n\n  const LoginInfo = encodeURIComponent(JSON.stringify({\n    \"Type\": \"StandardLogin\",\n    \"Credentials\": {\n      [usernameField]: b64EncodeUnicode(user),\n      \"Password\": b64EncodeUnicode(pass)\n    }}\n  ))\n\n  const loginBody = \"__RequestVerificationToken=\" + requestVerificationToken\n    + \"&DeviceId=&postLoginUrl=&LoginInfo=\" + LoginInfo\n    + \"&__NavigationRequestMetrics=\" + encodeURIComponent(navRequestMetrics)\n    + \"&__NavigationRedirectMetrics=\" + encodeURIComponent(navRedirectMetrics)\n    + \"&__RedirectChainIncludesLogin=\" + redirectChainIncludesLogin\n    + \"&__CurrentPageLoadDescriptor=\" + encodeURIComponent(currentPageLoadDescriptor)\n    + \"&__RttCaptureEnabled=\" + rttCaptureEnabled;\n\n  const res = await mychartRequest.makeRequest({\n    path: \"/Authentication/Login/DoLogin\",\n    \"headers\": {\n      \"Content-Type\": \"application/x-www-form-urlencoded\",\n    },\n    \"body\": loginBody,\n    \"method\": \"POST\",\n  });\n\n  const secondaryAuthPage = await res.text()\n  const responseUrl = res.url || '';\n\n  logger.debug(`[login] DoLogin response: status=${res.status} url=${responseUrl}`);\n  logger.debug(`[login] Page checks: has_secondaryvalidationcontroller=${secondaryAuthPage.includes('secondaryvalidationcontroller')} has_md_home_index=${secondaryAuthPage.toLowerCase().includes('md_home_index')} has_termsconditions=${responseUrl.toLowerCase().includes('termsconditions')}`);\n\n  // If the user is required to set up 2fa but hasn't set up 2fa yet, there may be a message stating that they have to set up 2fa.\n\n  // Check for login failure first (can appear in URL or body)\n  const bodyLower = secondaryAuthPage.toLocaleLowerCase();\n  const urlLower = responseUrl.toLocaleLowerCase();\n  if (bodyLower.includes('login failed') || bodyLower.includes('login unsuccessful') || urlLower.includes('loginfailed')) {\n    logger.debug('Login failed with username ', user, hostname)\n    return {\n      state: 'invalid_login',\n      error: 'Username or password is incorrect',\n      mychartRequest\n    }\n  }\n\n  // If we need to do 2fa (check both body content and response URL):\n  if (secondaryAuthPage.includes('secondaryvalidationcontroller') || urlLower.includes('secondaryvalidation')) {\n\n    requestVerificationToken = getRequestVerificationTokenFromBody(secondaryAuthPage)\n    if (!requestVerificationToken) {\n      logger.debug('could not find request verification token on the 2FA page')\n      return {state: 'error', error: 'could not find request verification token', mychartRequest}\n    }\n\n    const codeSendTimeBefore = Date.now()\n\n    // Detect which 2FA delivery methods are available on the page\n    const deliveryMethods = parse2faDeliveryMethods(secondaryAuthPage);\n    logger.debug('2FA delivery methods:', JSON.stringify(deliveryMethods));\n\n    let twoFaDelivery: TwoFaDeliveryInfo | undefined;\n\n    // When using TOTP, we skip SendCode — the code is generated locally.\n    if (!skipSendCode) {\n      // I don't think we need to do this, but just in case\n      await mychartRequest.makeRequest({path: '/Authentication/SecondaryValidation/GetSMSConsentStrings?noCache=' + Math.random()})\n\n      // Determine delivery method:\n      // - Both detected → use email (deliveryMethodEmail=true)\n      // - Only one detected → use that one\n      // - Neither detected (JS-rendered page) → try all three param formats\n      //\n      // MyChart instances use different SendCode parameter names:\n      //   - deliveryMethodEmail=true  (send via email)\n      //   - deliveryMethodEmail=false (send via SMS on older instances)\n      //   - deliveryMethodSMS=true    (send via SMS on newer instances like bilh.org)\n      let sentMethod: 'email' | 'sms' | null = null;\n\n      const sendCodeHeaders = {\n        \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\",\n        '__RequestVerificationToken': requestVerificationToken,\n      };\n\n      async function trySendCode(body: string, label: string): Promise<boolean> {\n        const resp = await mychartRequest.makeRequest({\n          path: \"/Authentication/SecondaryValidation/SendCode?noCache=\" + Math.random(),\n          headers: sendCodeHeaders,\n          body,\n          method: \"POST\",\n        });\n        const respBody = await resp.text();\n        const success = respBody.includes('\"Success\":true');\n        logger.debug(`[login] SendCode ${label}: status=${resp.status} success=${success}`);\n        return success;\n      }\n\n      if (deliveryMethods.hasEmail && deliveryMethods.hasSms) {\n        logger.debug('[login] Both email and SMS detected, using email');\n        if (await trySendCode('deliveryMethodEmail=true&resendCode=false&workflow=1', 'email')) {\n          sentMethod = 'email';\n        }\n      } else if (deliveryMethods.hasEmail) {\n        logger.debug('[login] Only email detected, using email');\n        if (await trySendCode('deliveryMethodEmail=true&resendCode=false&workflow=1', 'email')) {\n          sentMethod = 'email';\n        }\n      } else if (deliveryMethods.hasSms) {\n        logger.debug('[login] Only SMS detected, using SMS');\n        if (await trySendCode('deliveryMethodEmail=false&resendCode=false&workflow=1', 'sms-legacy')) {\n          sentMethod = 'sms';\n        }\n      }\n\n      // If nothing detected or detected method failed, try all formats\n      if (!sentMethod) {\n        logger.debug('[login] Trying all SendCode formats...');\n        // Try SMS formats first (more common for text-only instances)\n        if (await trySendCode('deliveryMethodSMS=true&resendCode=false&workflow=1', 'sms-new')) {\n          sentMethod = 'sms';\n        } else if (await trySendCode('deliveryMethodEmail=false&resendCode=false&workflow=1', 'sms-legacy')) {\n          sentMethod = 'sms';\n        } else if (await trySendCode('deliveryMethodEmail=true&resendCode=false&workflow=1', 'email')) {\n          sentMethod = 'email';\n        }\n      }\n\n      if (!sentMethod) {\n        logger.debug('[login] All SendCode attempts failed — could not send 2FA code');\n      }\n\n      // Try to extract masked contact info\n      let contact: string | undefined;\n      if (sentMethod === 'email') {\n        contact = deliveryMethods.emailContact;\n        twoFaDelivery = { method: 'email', contact };\n        logger.debug(`Asked for a 2FA code to be sent to email${contact ? ` (${contact})` : ''}, waiting for email to arrive`);\n      } else {\n        contact = deliveryMethods.smsContact;\n        twoFaDelivery = { method: 'sms', contact };\n        logger.debug(`Asked for a 2FA code to be sent via SMS${contact ? ` (${contact})` : ''}`);\n      }\n    } else {\n      logger.debug(\"Skipping SendCode (using TOTP)\")\n    }\n\n    return {\n      state: 'need_2fa',\n      twoFaSentTime: codeSendTimeBefore,\n      twoFaDelivery,\n      mychartRequest\n    }\n\n  }\n\n  // We are logged in!\n  if (bodyLower.includes('md_home_index')) {\n    return {\n      state: 'logged_in',\n      mychartRequest\n    }\n  }\n\n  // Check if we landed on Terms & Conditions page — auto-accept silently\n  // Use the response URL to avoid false positives from pages that merely\n  // reference \"termsconditions\" in CSS/JS/footer links.\n  if (urlLower.includes('termsconditions') || (bodyLower.includes('terms and conditions') && !urlLower.includes('/home'))) {\n    logger.debug('Landed on Terms & Conditions page after login, auto-accepting');\n    const accepted = await acceptTermsAndConditions(mychartRequest);\n    if (accepted) {\n      return {\n        state: 'logged_in',\n        mychartRequest\n      }\n    }\n    logger.debug('Failed to auto-accept Terms & Conditions');\n    return {\n      state: 'error',\n      error: 'Failed to accept MyChart Terms & Conditions',\n      mychartRequest\n    }\n  }\n\n  logger.debug('i am at some page, i dont know what to do!')\n  logger.debug('Response URL:', responseUrl)\n\n  return {\n    state: 'error',\n    error: 'Login failed: ended up on an unexpected page',\n    mychartRequest\n  }\n\n}\n\n\n// We have the 2fa code from the user's email, now we need to complete the login flow and get the remaining cookies\n// then we have full access to the user's mychart account.\n\nexport type TwoFaResult = {\n  state: 'logged_in' | 'invalid_2fa' | 'error'\n  mychartRequest: MyChartRequest\n}\n\nexport async function complete2faFlow({mychartRequest, code, twofaCodeArray, isTOTP}: {mychartRequest: MyChartRequest, code?: string, twofaCodeArray?: {code: string; score: number}[], isTOTP?: boolean | undefined}): Promise<TwoFaResult> {\n\n  // Accept either a single code string or an array of scored codes\n  const codeArray = twofaCodeArray ?? (code ? [{code, score: 1}] : []);\n  // Copy before sorting: `twofaCodeArray` belongs to the caller, and an\n  // in-place sort would reorder their array as a side effect of completing 2FA.\n  const sortedCodes = [...codeArray].sort((a, b) => b.score - a.score);\n\n  // // To make sure we don't grab an old code from the user's email, we only look for emails that arrived after the above API request was made. \n  // // Also, look up to 5 seconds before the request was made.\n  // // And check continously for a code to arrive for up to a minute. \n  // const code = await get2FaCodeFromEmail(codeSendTimeBefore - 1000 * 5, fromEmail!);\n\n\n\n  // Make another HTTP call to the secondary auth page to get the request verification token. \n  // This isn't necessary, but is the easiest way if we want to split the before 2fa and after 2fa steps. \n  const res = await mychartRequest.makeRequest({path: \"/Authentication/SecondaryValidation\"});\n\n  const secondaryAuthPage = await res.text()\n  const requestVerificationToken = getRequestVerificationTokenFromBody(secondaryAuthPage)\n\n  if (!requestVerificationToken) { \n    logger.debug('could not find request verification token on the 2FA page')\n    return {\n      state: 'error',\n      mychartRequest\n    }\n  }\n\n\n  // The codes themselves are live credentials — log how many arrived, not what they are.\n  logger.debug(\"Got 2fa codes from email:\", sortedCodes.length, \"candidate(s), scores:\", sortedCodes.map(c => c.score))\n\n  let invalidCode = false;\n\n  for (const candidate of sortedCodes) {\n    logger.debug('Trying code with score', candidate.score)\n    const resp = await mychartRequest.makeRequest({\n      path: \"/Authentication/SecondaryValidation/Validate?noCache=\" + Math.random(),\n      \"headers\": { \n        \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\",\n        '__RequestVerificationToken': requestVerificationToken,\n      },\n      \"body\": \"TwoFactorCode=\" + candidate.code + \"&RememberMe=checked&IsPostLogin2FA=false&EnrollDeviceTrackingOnRemember=false&DeviceId=&Workflow=1&isTOTP=\" + (isTOTP ? \"true\" : \"false\"),\n      \"method\": \"POST\",\n    });\n\n    const respBody = await resp.json()\n\n    if (respBody.Success === true) {\n      const insideResp = await mychartRequest.makeRequest({path: '/inside.asp'})\n      const insideBody = await insideResp.text();\n      const insideBodyLower = insideBody.toLowerCase();\n\n      // Check if we landed on Terms & Conditions page — auto-accept silently\n      // Use the response URL (not just body content) to avoid false positives from\n      // pages that merely reference \"termsconditions\" in CSS/JS/footer links.\n      const insideUrl = (insideResp.url || '').toLowerCase();\n      if (insideUrl.includes('termsconditions') || (insideBodyLower.includes('terms and conditions') && !insideUrl.includes('/home'))) {\n        logger.debug('Landed on Terms & Conditions page after 2FA, auto-accepting');\n        const accepted = await acceptTermsAndConditions(mychartRequest);\n        if (!accepted) {\n          logger.debug('Failed to auto-accept Terms & Conditions after 2FA');\n          return {\n            state: 'error',\n            mychartRequest\n          };\n        }\n      }\n\n      return {\n        state: 'logged_in',\n        mychartRequest\n      };\n\n    }\n\n    if (respBody.TwoFactorCodeFailReason === 'codewrong') {\n      // wrong code!\n      logger.debug('wrong code! score:', candidate.score)\n      invalidCode = true;\n    }\n  }\n\n\n  if (invalidCode) {\n    return {\n      state: 'invalid_2fa',\n      mychartRequest\n    };\n  }\n\n  logger.debug('i am at some page after 2fa validation call, i dont know what to do!')\n  return {\n    state: 'error',\n    mychartRequest\n  };\n\n}\n\n\n/**\n * Login to MyChart using a passkey credential.\n * This completely replaces username/password + 2FA with a single WebAuthn assertion.\n *\n * Flow:\n * 1. Get login page + CSRF token (same as password login)\n * 2. POST /Authentication/Login/GetPasskeyGetParams — get WebAuthn challenge\n * 3. Software authenticator signs the challenge\n * 4. POST /Authentication/Login/DoLogin with Type: \"PasskeyLogin\"\n */\nexport async function myChartPasskeyLogin({hostname, credential, protocol}: {\n  hostname: string,\n  credential: PasskeyCredential,\n  protocol?: string | undefined,\n}): Promise<LoginResult> {\n  sendTelemetryEvent('scraper_passkey_login_started', { hostname }, 'scraper');\n\n  if (!hostname || !credential) {\n    throw new Error('Missing hostname or passkey credential');\n  }\n\n  if (isBlockedInstance(hostname)) {\n    throw new Error(`${hostname} is not supported.`);\n  }\n\n  const hostnameWithoutPort = hostname.split(':')[0]!; // split() always yields a first element\n  const effectiveProtocol = protocol ?? (hostnameWithoutPort === 'localhost' || !hostnameWithoutPort.includes('.') ? 'http' : 'https');\n  const mychartRequest = new MyChartRequest(hostname, { protocol: effectiveProtocol });\n  const firstPathPartFromInput = parseFirstPathPartFromInput(hostname);\n  if (firstPathPartFromInput) {\n    logger.debug('Using firstPathPart from user input:', firstPathPartFromInput);\n    mychartRequest.setFirstPathPart(firstPathPartFromInput);\n  }\n\n  const foundMyChartFirstPathPart = await determineFirstPathPart(mychartRequest);\n  if (!foundMyChartFirstPathPart) {\n    return { state: 'error', error: 'could not determine first path part', mychartRequest };\n  }\n\n  // Get login page + CSRF token\n  const loginPageResp = await mychartRequest.makeRequest({ path: '/Authentication/Login' });\n  const loginPageHtml = await loginPageResp.text();\n  const requestVerificationToken = getRequestVerificationTokenFromBody(loginPageHtml);\n\n  if (!requestVerificationToken) {\n    return { state: 'error', error: 'could not find request verification token', mychartRequest };\n  }\n\n  // Get passkey challenge\n  logger.debug('  Getting passkey challenge...');\n  const getParamsResp = await mychartRequest.makeRequest({\n    path: '/Authentication/Login/GetPasskeyGetParams?force=true&noCache=' + Math.random(),\n    method: 'POST',\n    headers: {\n      '__RequestVerificationToken': requestVerificationToken,\n      'X-Requested-With': 'XMLHttpRequest',\n    },\n  });\n\n  if (getParamsResp.status !== 200) {\n    logger.debug('  GetPasskeyGetParams failed:', getParamsResp.status);\n    return { state: 'error', error: 'Failed to get passkey challenge', mychartRequest };\n  }\n\n  const getParamsResult = await getParamsResp.json();\n  if (!getParamsResult.Success || !getParamsResult.PasskeyGetParams) {\n    logger.debug('  GetPasskeyGetParams unsuccessful. Success:', getParamsResult.Success);\n    return { state: 'error', error: 'Passkey login not available on this instance', mychartRequest };\n  }\n\n  const passkeyParams = getParamsResult.PasskeyGetParams;\n  logger.debug('  Got passkey challenge. RpId:', passkeyParams.RpId || '(default)');\n\n  // Create assertion using software authenticator\n  const origin = `${effectiveProtocol}://${mychartRequest.hostname}`;\n  const assertion = createAssertion(credential, passkeyParams.Challenge, origin);\n\n  // Extract additional hidden fields from the login page\n  const { navRequestMetrics, navRedirectMetrics, redirectChainIncludesLogin, currentPageLoadDescriptor, rttCaptureEnabled } =\n    parseLoginPageFields(loginPageHtml);\n\n  // Submit passkey login\n  const LoginInfo = encodeURIComponent(JSON.stringify({\n    Type: 'PasskeyLogin',\n    Credentials: assertion,\n  }));\n\n  const loginBody = '__RequestVerificationToken=' + requestVerificationToken\n    + '&DeviceId=&postLoginUrl=&LoginInfo=' + LoginInfo\n    + '&__NavigationRequestMetrics=' + encodeURIComponent(navRequestMetrics)\n    + '&__NavigationRedirectMetrics=' + encodeURIComponent(navRedirectMetrics)\n    + '&__RedirectChainIncludesLogin=' + redirectChainIncludesLogin\n    + '&__CurrentPageLoadDescriptor=' + encodeURIComponent(currentPageLoadDescriptor)\n    + '&__RttCaptureEnabled=' + rttCaptureEnabled;\n\n  logger.debug('  Submitting passkey login...');\n  const res = await mychartRequest.makeRequest({\n    path: '/Authentication/Login/DoLogin',\n    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n    body: loginBody,\n    method: 'POST',\n  });\n\n  const responseBody = await res.text();\n  const responseUrl = res.url || '';\n  const bodyLower = responseBody.toLocaleLowerCase();\n  const urlLower = responseUrl.toLocaleLowerCase();\n\n  // Check for login failure\n  if (bodyLower.includes('login failed') || bodyLower.includes('login unsuccessful') || urlLower.includes('loginfailed')) {\n    logger.debug('  Passkey login failed');\n    return { state: 'invalid_login', error: 'Passkey authentication failed', mychartRequest };\n  }\n\n  // Success — logged in directly (passkey bypasses 2FA)\n  if (bodyLower.includes('md_home_index')) {\n    logger.debug('  Passkey login successful!');\n    return { state: 'logged_in', mychartRequest };\n  }\n\n  // Terms & Conditions\n  if (urlLower.includes('termsconditions') || (bodyLower.includes('terms and conditions') && !urlLower.includes('/home'))) {\n    logger.debug('  Landed on Terms & Conditions page, auto-accepting');\n    const accepted = await acceptTermsAndConditions(mychartRequest);\n    if (accepted) {\n      return { state: 'logged_in', mychartRequest };\n    }\n    return { state: 'error', error: 'Failed to accept Terms & Conditions', mychartRequest };\n  }\n\n  // Unexpected page — might still need 2FA (shouldn't happen with passkey, but handle gracefully)\n  if (responseBody.includes('secondaryvalidationcontroller') || urlLower.includes('secondaryvalidation')) {\n    logger.debug('  Passkey login still requires 2FA — unexpected');\n    return { state: 'need_2fa', mychartRequest };\n  }\n\n  logger.debug('  Passkey login ended on unexpected page');\n  logger.debug('  Response URL:', responseUrl);\n  return { state: 'error', error: 'Passkey login ended on unexpected page', mychartRequest };\n}\n\nexport async function areCookiesValid(mychartRequest: MyChartRequest): Promise<boolean> {\n  const res = await mychartRequest.makeRequest({path: '/Home', followRedirects: false})\n  logger.debug(\"are cookies valid?\", res.status === 200, res.headers.get('Location'))\n  return res.status === 200\n}\n\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport * as cheerio from 'cheerio';\nimport { logger } from '../../../shared/logger';\n\n\nexport function getRequestVerificationTokenFromBody(html: string): string | undefined {\n  const $ = cheerio.load(html);\n\n  const tokenEle = $('input[name=\"__RequestVerificationToken\"]')\n\n  const requestVerificationToken = tokenEle?.[0]?.attribs?.value\n\n  if (!requestVerificationToken) {\n    logger.debug('could not find request verification token')\n    return undefined;\n  }\n\n  return requestVerificationToken;\n\n}\n\n/**\n * A MyChart activity page that carried no `__RequestVerificationToken`. The\n * API behind every activity refuses a request without one, so there is no\n * honest way to continue — and returning an empty result here is how \"the\n * session died\" used to read as \"this patient has no allergies\".\n */\nexport class MissingVerificationTokenError extends Error {\n  constructor(pagePath: string) {\n    super(\n      `No request verification token on ${pagePath}. The session may have expired, or this ` +\n        'instance does not serve that activity.',\n    );\n    this.name = 'MissingVerificationTokenError';\n  }\n}\n\n/** The page's antiforgery token, or a {@link MissingVerificationTokenError}. */\nexport function requireVerificationToken(html: string, pagePath: string): string {\n  const token = getRequestVerificationTokenFromBody(html);\n  if (!token) throw new MissingVerificationTokenError(pagePath);\n  return token;\n}\n\n/**\n * Sentinel returned by parseMyChartDate for missing/unparseable input.\n * Negative-infinity sorts before any valid date (including pre-1970),\n * so a newest-first sort using this key always places undated items last.\n */\nexport const MISSING_DATE = Number.NEGATIVE_INFINITY;\n\n/**\n * Parse a MyChart date string (ISO 8601 preferred, falls back to human\n * display like \"May 12, 2026 8:56 PM\") into epoch milliseconds.\n * Returns MISSING_DATE for empty/unparseable input so undated items sort\n * after any valid date (including pre-1970) in newest-first comparisons.\n */\nexport function parseMyChartDate(s: string | undefined | null): number {\n  if (!s) return MISSING_DATE;\n  const ms = Date.parse(s);\n  return Number.isNaN(ms) ? MISSING_DATE : ms;\n}\n\n/**\n * Sort items newest-first in place using a date extractor. Items returning\n * MISSING_DATE from the key fn land at the end. Returns the same array.\n */\nexport function sortNewestFirstByDate<T>(items: T[], keyFn: (item: T) => number): T[] {\n  return items.sort((a, b) => keyFn(b) - keyFn(a));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Anonymous usage telemetry, modelled after Next.js / Vercel CLI:\n *\n * - One stable random UUID per computer, stored as `deviceId` in\n *   `~/.openrecord.json` and shared by the CLI and the MCPB. Never derived\n *   from identifying information.\n * - Event payload is event name + properties + OS platform/arch +\n *   runtime version. No OS hostname, no git config.\n * - An event sent with a `user` (the MCPB's per-tool-call event) is NOT\n *   anonymous: it carries the user's email and MyChart username, and asks\n *   Amplitude to record the request's IP address.\n * - Opt out by setting `MYCHART_CLI_TELEMETRY_DISABLED` to any\n *   truthy value.\n *\n * Every event fans out to two independent sinks:\n *   1. Amplitude (product analytics UI)\n *   2. our own analytics Lambda, which writes to CloudWatch Logs\n *      (repo: Fan-Pier-Labs/openrecord-analytics)\n * Both are best-effort; a failure in one never affects the other.\n *\n * Fire-and-forget. Never throws, never blocks the caller.\n */\n\nimport * as os from 'os';\nimport * as path from 'path';\nimport * as fs from 'fs';\nimport { randomUUID } from 'crypto';\n\nconst AMPLITUDE_API_KEY = 'a7d8557f623f24012e62edc61bbc0fd6';\nconst AMPLITUDE_HTTP_API = 'https://api2.amplitude.com/2/httpapi';\n\n/**\n * Self-hosted analytics sink (API Gateway → Lambda → CloudWatch Logs).\n * Redirect it with `OPENRECORD_ANALYTICS_ENDPOINT`, or turn this sink\n * off on its own with `OPENRECORD_ANALYTICS_DISABLED`.\n * `MYCHART_CLI_TELEMETRY_DISABLED` still disables everything at once.\n *\n * Read at call time rather than module load so tests (and consumers\n * that set env vars during startup) see the current value.\n */\nconst DEFAULT_ANALYTICS_ENDPOINT = 'https://pumlxw0t7e.execute-api.us-east-2.amazonaws.com';\n\nfunction analyticsEndpoint(): string {\n  if (process.env.OPENRECORD_ANALYTICS_DISABLED) return '';\n  return process.env.OPENRECORD_ANALYTICS_ENDPOINT || DEFAULT_ANALYTICS_ENDPOINT;\n}\n\n/** How long we'll wait on a telemetry request before giving up. */\nconst REQUEST_TIMEOUT_MS = 5000;\n\n/**\n * The opt-out for telemetry events. The version check ignores it — it sends\n * nothing but the request itself. Exported so the MCPB can skip the MyChart\n * email lookup behind its tool-call event, not just the send.\n *\n * `bun test` sets NODE_ENV=test, and every CI run would otherwise post its\n * deliberately failing tool calls and fake-mychart logins to production\n * analytics. Child processes inherit it, so the built CLI the integration\n * suites spawn stays quiet too. The telemetry suites set it back themselves.\n */\nexport function isTelemetryDisabled(): boolean {\n  return Boolean(process.env.MYCHART_CLI_TELEMETRY_DISABLED) || process.env.NODE_ENV === 'test';\n}\n\n/** Used only when `~/.openrecord.json` can't be read or written. */\nlet fallbackDeviceId: string | undefined;\n\n/**\n * Read or create a stable random UUID in `~/.openrecord.json`. The ID is not\n * derived from any identifying information; it exists purely to tie one\n * computer's events together. Re-read on every event rather than cached, so\n * a CLI run and the MCPB that start at once settle on whichever ID landed.\n */\nexport function getAnonymousId(): string {\n  const file = path.join(os.homedir(), '.openrecord.json');\n  try {\n    let config: Record<string, unknown> = {};\n    if (fs.existsSync(file)) {\n      config = JSON.parse(fs.readFileSync(file, 'utf8')) as Record<string, unknown>;\n      if (typeof config.deviceId === 'string' && config.deviceId) return config.deviceId;\n    }\n    const fresh = randomUUID();\n    fs.writeFileSync(file, `${JSON.stringify({ ...config, deviceId: fresh }, null, 2)}\\n`, { mode: 0o600 });\n    return fresh;\n  } catch {\n    // A corrupt file or a read-only home: don't overwrite it, but keep one ID\n    // for the life of the process so this run's events still group.\n    return (fallbackDeviceId ??= randomUUID());\n  }\n}\n\nexport interface EnvInfo {\n  platform: string;\n  arch: string;\n  runtime_version: string;\n  os_version: string;\n}\n\n/** Gather non-identifying environment info. */\nexport function gatherEnvInfo(): EnvInfo {\n  return {\n    platform: os.platform(),\n    arch: os.arch(),\n    // Read off globalThis so this file typechecks under tsconfigs without bun\n    // types (the expo app imports it directly).\n    runtime_version: (() => {\n      const bun = (globalThis as { Bun?: { version: string } }).Bun;\n      return bun ? `bun ${bun.version}` : `node ${process.version}`;\n    })(),\n    os_version: os.release(),\n  };\n}\n\n/** POST a JSON body, aborting after REQUEST_TIMEOUT_MS. Never throws. */\nasync function postJson(url: string, body: unknown): Promise<void> {\n  try {\n    const controller = new AbortController();\n    const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);\n    try {\n      await fetch(url, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application/json' },\n        body: JSON.stringify(body),\n        signal: controller.signal,\n      });\n    } finally {\n      clearTimeout(timeout);\n    }\n  } catch {\n    // Silently ignore — telemetry must never break the app.\n  }\n}\n\nexport interface ErrorReport {\n  name: string;\n  message: string;\n  /** The full stack, then each `cause`'s stack in turn. */\n  stack: string;\n}\n\n/** Anything thrown, as name + message + stack. A non-Error throw has no stack to give. */\nexport function describeError(error: unknown): ErrorReport {\n  if (!(error instanceof Error)) {\n    const text = typeof error === 'string' ? error : JSON.stringify(error) ?? String(error);\n    return { name: 'NonError', message: text, stack: text };\n  }\n  const stacks: string[] = [];\n  // Bounded, since a cause chain can loop.\n  for (let e: unknown = error; e !== undefined && stacks.length < 10; e = (e as Error).cause) {\n    stacks.push(e instanceof Error ? (e.stack ?? `${e.name}: ${e.message}`) : describeError(e).stack);\n  }\n  // The home folder is usually named after the macOS user.\n  const stack = stacks.join('\\nCaused by: ').replaceAll(os.homedir(), '~');\n  return { name: error.name, message: error.message, stack };\n}\n\nlet app: { name: string; version: string } | undefined;\n\n/**\n * Each client calls this once at startup so every event says which build sent\n * it — including the scraper's own events, which can't otherwise tell an MCPB\n * login from a CLI one. Library consumers never call it; their events go\n * without.\n */\nexport function setTelemetryApp(name: string, version: string): void {\n  app = { name, version };\n}\n\n/** The app `setTelemetryApp` named, for reporters that tag events with it. */\nexport function telemetryApp(): { name: string; version: string } | undefined {\n  return app;\n}\n\n/**\n * Send a telemetry event to both sinks (Amplitude and our analytics\n * Lambda). Fire-and-forget. Never throws. Returns immediately when\n * telemetry is disabled via `MYCHART_CLI_TELEMETRY_DISABLED`.\n *\n * `source` identifies the client emitting the event ('cli', 'scraper',\n * 'openclaw', …) and is only used by the self-hosted sink; Amplitude\n * distinguishes clients by event name. `error` rides along as name, message\n * and full stack: as event properties on Amplitude, which truncates long\n * values, and whole as a top-level `error` for the Lambda.\n */\nexport function sendTelemetryEvent(\n  eventType: string,\n  eventProperties: Record<string, unknown> = {},\n  source = 'node',\n  user?: { email?: string | undefined; username?: string | undefined },\n  error?: unknown,\n): void {\n  if (isTelemetryDisabled()) return;\n\n  void (async () => {\n    try {\n      const envInfo = gatherEnvInfo();\n      const deviceId = getAnonymousId();\n      const properties = {\n        ...eventProperties,\n        ...(app ? { app: app.name, app_version: app.version } : {}),\n        arch: envInfo.arch,\n        runtime_version: envInfo.runtime_version,\n      };\n      const failure = error === undefined ? undefined : describeError(error);\n\n      const email = user?.email;\n      const username = user?.username;\n      const amplitude = postJson(AMPLITUDE_HTTP_API, {\n        api_key: AMPLITUDE_API_KEY,\n        events: [\n          {\n            device_id: deviceId,\n            event_type: eventType,\n            time: Date.now(),\n            platform: envInfo.platform,\n            os_name: envInfo.platform,\n            os_version: envInfo.os_version,\n            // Amplitude's built-in Version, so its version filters work.\n            ...(app ? { app_version: app.version } : {}),\n            event_properties: failure\n              ? { ...properties, error_name: failure.name, error_message: failure.message, error_stack: failure.stack }\n              : properties,\n            // '$remote' tells Amplitude to record the IP the upload came from.\n            ...(user ? { ip: '$remote' } : {}),\n            ...(email ? { user_id: email } : {}),\n            ...(email || username\n              ? { user_properties: { ...(email ? { email } : {}), ...(username ? { username } : {}) } }\n              : {}),\n          },\n        ],\n      });\n\n      const endpoint = analyticsEndpoint();\n      const selfHosted = endpoint\n        ? postJson(endpoint, {\n            source,\n            deviceId,\n            // The key's presence tells the Lambda to log this event's email and\n            // the request's IP, which it reads off the request itself.\n            ...(user ? { email: email ?? null, username: username ?? null } : {}),\n            ...(failure ? { error: failure } : {}),\n            event: eventType,\n            ts: Date.now(),\n            properties: {\n              ...properties,\n              platform: envInfo.platform,\n              os_version: envInfo.os_version,\n            },\n          })\n        : Promise.resolve();\n\n      // Independent sinks: one failing must not cancel the other.\n      await Promise.allSettled([amplitude, selfHosted]);\n    } catch {\n      // Silently ignore — telemetry must never break the app.\n    }\n  })();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport * as cheerio from 'cheerio';\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { getRequestVerificationTokenFromBody } from '../core/util';\nimport { logger } from '../../../shared/logger';\n\n/**\n * Accept MyChart's Terms & Conditions on behalf of the user.\n *\n * Some MyChart instances present a T&C page\n * after login/2FA that must be accepted before any other page or API will work.\n * Every request redirects to /Authentication/TermsConditions until accepted.\n *\n * This is called automatically during login/2FA when the T&C page is detected.\n * The user consents to this at signup via the app-level Terms of Service checkbox.\n *\n * Returns true if T&C was accepted successfully, false if it failed.\n */\nexport async function acceptTermsAndConditions(mychartRequest: MyChartRequest): Promise<boolean> {\n  // Navigate to the T&C page\n  const res = await mychartRequest.makeRequest({ path: '/Authentication/TermsConditions' });\n  const body = await res.text();\n\n  const $ = cheerio.load(body);\n\n  // Extract the CSRF token from the T&C page\n  const csrfToken = getRequestVerificationTokenFromBody(body);\n\n  // Look for a form on the page\n  const form = $('form');\n  let formAction = '';\n  if (form.length > 0) {\n    formAction = form.attr('action') || '';\n  }\n\n  // Collect all hidden form fields\n  const formFields: Record<string, string> = {};\n  $('input[type=\"hidden\"]').each((_, el) => {\n    const name = $(el).attr('name');\n    const value = $(el).attr('value') || '';\n    if (name) {\n      formFields[name] = value;\n    }\n  });\n\n  if (!csrfToken) {\n    logger.debug('[terms] No CSRF token found on Terms & Conditions page');\n    return false;\n  }\n\n  // Build form-encoded body with all hidden fields\n  const formBody = Object.entries(formFields)\n    .map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`)\n    .join('&');\n\n  // Determine the POST URL\n  let postPath = formAction;\n  if (!postPath || postPath === '#') {\n    // Use path (not root-relative) so makeRequest prepends the firstPathPart\n    postPath = '/Authentication/TermsConditions';\n  }\n\n  // If the form action starts with \"/\" it's a root-relative path that already\n  // includes the firstPathPart (e.g. \"/MyChart/Authentication/TermsConditions\").\n  // Convert it to an absolute URL to avoid makeRequest prepending firstPathPart again.\n  const isAbsolute = postPath.startsWith('http');\n  const isRootRelative = postPath.startsWith('/') && formAction && formAction !== '#';\n  let requestConfig: { url?: string; path?: string };\n  if (isAbsolute) {\n    requestConfig = { url: postPath };\n  } else if (isRootRelative) {\n    // Form action from the page already includes firstPathPart\n    requestConfig = { url: `${mychartRequest.protocol}://${mychartRequest.hostname}${postPath}` };\n  } else {\n    // Fallback or relative path — let makeRequest prepend firstPathPart\n    requestConfig = { path: postPath };\n  }\n\n  logger.debug('[terms] Posting T&C acceptance to:', postPath);\n  logger.debug('[terms] Form fields:', Object.keys(formFields).join(', '));\n\n  const acceptResp = await mychartRequest.makeRequest({\n    ...requestConfig,\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/x-www-form-urlencoded',\n    },\n    body: formBody,\n  });\n\n  const acceptBody = await acceptResp.text();\n  const acceptUrl = acceptResp.url || '';\n\n  // Check if we're no longer on the T&C page\n  if (!acceptUrl.toLowerCase().includes('termsconditions') &&\n      !acceptBody.toLowerCase().includes('termsconditions')) {\n    logger.debug('[terms] Terms & Conditions accepted successfully');\n    return true;\n  }\n\n  // If still on T&C, try clicking accept links\n  logger.debug('[terms] First POST did not clear T&C page');\n  logger.debug('[terms] Response status:', acceptResp.status);\n\n  // Look for accept buttons/links\n  const $accept = cheerio.load(acceptBody);\n  const acceptLinks: string[] = [];\n  $accept('a, button').each((_, el) => {\n    const text = $accept(el).text().toLowerCase().trim();\n    if (text.includes('accept') || text.includes('agree') || text.includes('continue') || text.includes('i accept')) {\n      const href = $accept(el).attr('href');\n      if (href) acceptLinks.push(href);\n    }\n  });\n\n  for (const link of acceptLinks) {\n    logger.debug('[terms] Trying accept link:', link);\n    const linkIsAbsolute = link.startsWith('http');\n    const linkIsRootRelative = link.startsWith('/');\n    let linkConfig: { url?: string; path?: string };\n    if (linkIsAbsolute) {\n      linkConfig = { url: link };\n    } else if (linkIsRootRelative) {\n      linkConfig = { url: `${mychartRequest.protocol}://${mychartRequest.hostname}${link}` };\n    } else {\n      linkConfig = { path: link };\n    }\n    const linkResp = await mychartRequest.makeRequest(linkConfig);\n    const linkBody = await linkResp.text();\n    const linkUrl = linkResp.url || '';\n\n    if (!linkUrl.toLowerCase().includes('termsconditions') &&\n        !linkBody.toLowerCase().includes('termsconditions')) {\n      logger.debug('[terms] Terms & Conditions accepted via link');\n      return true;\n    }\n  }\n\n  logger.debug('[terms] Could not accept Terms & Conditions');\n  return false;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * MyChart instances that are known to not work and should be blocked\n * from being added by users.\n */\nexport const BLOCKED_MYCHART_INSTANCES: readonly string[] = [\n  'central.mychart.org',\n];\n\n/**\n * Check if a hostname is blocked. Compares against the blocklist\n * after normalizing to lowercase.\n */\nexport function isBlockedInstance(hostname: string): boolean {\n  const normalized = hostname.toLowerCase().trim();\n  return BLOCKED_MYCHART_INSTANCES.some(\n    (blocked) => normalized === blocked || normalized.endsWith('.' + blocked)\n  );\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport crypto from 'crypto';\n\n/**\n * Serialized passkey credential for storage.\n * Contains everything needed to authenticate with a MyChart account via WebAuthn.\n */\nexport interface PasskeyCredential {\n  /** Base64-encoded credential ID (raw bytes) */\n  credentialId: string;\n  /** Base64-encoded ECDSA P-256 private key (DER/PKCS8 format) */\n  privateKey: string;\n  /** The relying party ID used during registration */\n  rpId: string;\n  /** Base64-encoded user handle from registration */\n  userHandle: string;\n  /** Sign counter (incremented on each use) */\n  signCount: number;\n}\n\n/**\n * Result of creating a new passkey credential.\n * Contains the server-bound response fields AND the credential for local storage.\n */\nexport interface RegistrationResult {\n  /** Data to send to MyChart's CreatePasskey API */\n  serverResponse: {\n    rawId: string;\n    attestationData: string;\n    clientDataJSON: string;\n    indexForDefaultName: number;\n  };\n  /** Credential to store locally for future authentication */\n  credential: PasskeyCredential;\n}\n\n/**\n * Result of authenticating with a passkey credential.\n * Contains the fields to send in the DoLogin request.\n */\nexport interface AuthenticationResult {\n  id: string;\n  type: 'public-key';\n  rawId: string;\n  authenticatorAssertion: {\n    clientDataJSON: string;\n    authenticatorData: string;\n    signature: string;\n    userHandle: string;\n  };\n}\n\n/**\n * WebAuthn creation options as returned by MyChart's GenerateCreateRequest API.\n */\nexport interface MyChartCreationOptions {\n  rp: { id: string; name: string };\n  attestation: string;\n  authenticatorSelection: {\n    requireResidentKey: boolean;\n    residentKey: string;\n    userVerification: string;\n  };\n  challenge: string; // base64\n  pubKeyCredParams: Array<{ type: string; alg: number }>;\n  timeout: number;\n  user: { id: string; name: string; displayName: string };\n  excludeCredentials: Array<{ id: string; type: string }>;\n}\n\n// ─── Minimal CBOR encoder ───\n// Only handles the types needed for WebAuthn: maps, text strings, byte strings, integers.\n// Uses compact encoding (1-byte lengths for small values).\n\nfunction cborEncodeUint(majorType: number, value: number): Buffer {\n  const mt = majorType << 5;\n  if (value < 24) return Buffer.from([mt | value]);\n  if (value < 256) return Buffer.from([mt | 24, value]);\n  if (value < 65536) { const b = Buffer.alloc(3); b[0] = mt | 25; b.writeUInt16BE(value, 1); return b; }\n  const b = Buffer.alloc(5); b[0] = mt | 26; b.writeUInt32BE(value, 1); return b;\n}\n\nfunction cborEncodeNegInt(value: number): Buffer {\n  // CBOR negative: major type 1, value = -1 - n\n  return cborEncodeUint(1, -1 - value);\n}\n\nfunction cborEncodeTextString(str: string): Buffer {\n  const strBuf = Buffer.from(str, 'utf-8');\n  return Buffer.concat([cborEncodeUint(3, strBuf.length), strBuf]);\n}\n\nfunction cborEncodeByteString(buf: Buffer | Uint8Array): Buffer {\n  return Buffer.concat([cborEncodeUint(2, buf.length), Buffer.from(buf)]);\n}\n\nfunction cborEncodeMap(entries: Array<{ key: number | string; value: Buffer }>): Buffer {\n  const header = cborEncodeUint(5, entries.length);\n  const parts = [header];\n  for (const { key, value } of entries) {\n    if (typeof key === 'number') {\n      parts.push(key >= 0 ? cborEncodeUint(0, key) : cborEncodeNegInt(key));\n    } else {\n      parts.push(cborEncodeTextString(key));\n    }\n    parts.push(value);\n  }\n  return Buffer.concat(parts);\n}\n\n/**\n * CBOR-encode a COSE public key Map (integer keys).\n */\nfunction cborEncodeCoseKey(entries: Map<number, number | Buffer>): Buffer {\n  const mapEntries: Array<{ key: number; value: Buffer }> = [];\n  for (const [key, value] of entries) {\n    let encodedValue: Buffer;\n    if (typeof value === 'number') {\n      encodedValue = value >= 0 ? cborEncodeUint(0, value) : cborEncodeNegInt(value);\n    } else {\n      encodedValue = cborEncodeByteString(value);\n    }\n    mapEntries.push({ key, value: encodedValue });\n  }\n  return cborEncodeMap(mapEntries);\n}\n\n/**\n * CBOR-encode the attestation object: { fmt: \"none\", attStmt: {}, authData: <bytes> }\n */\nfunction cborEncodeAttestationObject(authData: Buffer): Buffer {\n  return cborEncodeMap([\n    { key: 'fmt', value: cborEncodeTextString('none') },\n    { key: 'attStmt', value: cborEncodeMap([]) }, // empty map\n    { key: 'authData', value: cborEncodeByteString(authData) },\n  ]);\n}\n\n/**\n * Convert a standard base64 string to a Buffer.\n * MyChart uses standard base64 (btoa/atob), not base64url.\n */\nfunction base64ToBuffer(b64: string): Buffer {\n  return Buffer.from(b64, 'base64');\n}\n\n/**\n * Convert a Buffer to standard base64 string.\n */\nfunction bufferToBase64(buf: Buffer | Uint8Array | ArrayBuffer): string {\n  return Buffer.from(buf as ArrayBuffer).toString('base64');\n}\n\n/**\n * Coerce whatever the runtime crypto returned (Node Buffer, Hermes\n * ArrayBuffer, or a TypedArray view) into a real Buffer. react-native-quick-crypto\n * hands back ArrayBuffers from generateKeyPairSync; the rest of this file\n * assumes Buffer-style byte indexing (`b[i]`) and `subarray`, so we normalize.\n */\nfunction toBuffer(input: Buffer | ArrayBuffer | Uint8Array): Buffer {\n  if (Buffer.isBuffer(input)) return input;\n  if (ArrayBuffer.isView(input)) {\n    return Buffer.from(input.buffer, input.byteOffset, input.byteLength);\n  }\n  return Buffer.from(input);\n}\n\n/**\n * Build the COSE-encoded public key for an ECDSA P-256 key.\n * COSE key format for EC2 (RFC 8152):\n *   1 (kty): 2 (EC2)\n *   3 (alg): -7 (ES256)\n *  -1 (crv): 1 (P-256)\n *  -2 (x): 32-byte x coordinate\n *  -3 (y): 32-byte y coordinate\n */\nfunction buildCosePublicKey(publicKeyDer: Buffer): Buffer {\n  // Extract raw x,y coordinates from the uncompressed public key point (04 || x || y)\n  const rawPubKey = extractRawPublicKey(publicKeyDer);\n  const x = rawPubKey.subarray(1, 33); // skip 0x04 prefix\n  const y = rawPubKey.subarray(33, 65);\n\n  // CBOR-encode the COSE key map\n  const coseKey = new Map<number, number | Buffer>();\n  coseKey.set(1, 2);   // kty: EC2\n  coseKey.set(3, -7);  // alg: ES256\n  coseKey.set(-1, 1);  // crv: P-256\n  coseKey.set(-2, x);  // x coordinate\n  coseKey.set(-3, y);  // y coordinate\n\n  return cborEncodeCoseKey(coseKey);\n}\n\n/**\n * Extract the raw uncompressed public key (65 bytes: 04 || x || y) from a DER-encoded SPKI public key.\n *\n * Accepts any byte container (Buffer, Uint8Array, ArrayBuffer) because\n * react-native-quick-crypto returns ArrayBuffers from generateKeyPairSync,\n * which don't support `[i]` byte indexing.\n */\nfunction extractRawPublicKey(spkiDer: Buffer | ArrayBuffer | Uint8Array): Buffer {\n  const bytes = toBuffer(spkiDer);\n  // The uncompressed point is at the end of the SPKI structure.\n  // For P-256, it's always 65 bytes (0x04 + 32 bytes x + 32 bytes y).\n  // Find the 0x04 byte that starts the uncompressed point.\n  // In SPKI format, it's preceded by a BIT STRING tag with a 0x00 unused-bits byte.\n  for (let i = bytes.length - 65; i >= 0; i--) {\n    if (bytes[i] === 0x04 && bytes.length - i >= 65) {\n      return Buffer.from(bytes.subarray(i, i + 65));\n    }\n  }\n  throw new Error(\n    `Could not extract raw public key from SPKI DER (length=${bytes.length})`,\n  );\n}\n\n/**\n * Build the authenticatorData for a registration (create) operation.\n *\n * Format (variable length):\n *   rpIdHash (32 bytes) || flags (1 byte) || signCount (4 bytes) || attestedCredentialData\n *\n * attestedCredentialData:\n *   aaguid (16 bytes) || credIdLen (2 bytes) || credentialId || credentialPublicKey (COSE)\n *\n * Flags: UP (0x01) | UV (0x04) | AT (0x40) = 0x45\n */\nfunction buildAuthDataForCreate(\n  rpId: string,\n  credentialId: Buffer,\n  publicKeyDer: Buffer,\n  signCount: number,\n): Buffer {\n  const rpIdHash = crypto.createHash('sha256').update(rpId).digest();\n  const flags = Buffer.from([0x45]); // UP + UV + AT\n  const counter = Buffer.alloc(4);\n  counter.writeUInt32BE(signCount);\n\n  // Attested credential data\n  const aaguid = Buffer.alloc(16); // all zeros for software authenticator\n  const credIdLen = Buffer.alloc(2);\n  credIdLen.writeUInt16BE(credentialId.length);\n  const cosePublicKey = buildCosePublicKey(publicKeyDer);\n\n  return Buffer.concat([rpIdHash, flags, counter, aaguid, credIdLen, credentialId, cosePublicKey]);\n}\n\n/**\n * Build the authenticatorData for an authentication (get) operation.\n *\n * Format:\n *   rpIdHash (32 bytes) || flags (1 byte) || signCount (4 bytes)\n *\n * Flags: UP (0x01) | UV (0x04) = 0x05\n */\nfunction buildAuthDataForGet(rpId: string, signCount: number): Buffer {\n  const rpIdHash = crypto.createHash('sha256').update(rpId).digest();\n  const flags = Buffer.from([0x05]); // UP + UV\n  const counter = Buffer.alloc(4);\n  counter.writeUInt32BE(signCount);\n\n  return Buffer.concat([rpIdHash, flags, counter]);\n}\n\n/**\n * Build the clientDataJSON for a WebAuthn operation.\n * This is a JSON object that gets base64-encoded.\n *\n * MyChart uses standard base64 (btoa), not base64url.\n */\nfunction base64ToBase64Url(b64: string): string {\n  return b64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}\n\nfunction buildClientDataJSON(\n  type: 'webauthn.create' | 'webauthn.get',\n  challenge: string, // base64 from server\n  origin: string,\n): Buffer {\n  // WebAuthn spec: challenge in clientDataJSON must be base64url-encoded.\n  // The server sends it as standard base64, so convert: decode → re-encode as base64url.\n  // (Avoid `.toString('base64url')` — Hermes' Buffer polyfill doesn't support it.)\n  const challengeBase64url = base64ToBase64Url(challenge);\n  const clientData = {\n    type,\n    challenge: challengeBase64url,\n    origin,\n    crossOrigin: false,\n  };\n  return Buffer.from(JSON.stringify(clientData));\n}\n\n/**\n * Create a new passkey credential for registration with a MyChart account.\n *\n * This replaces what the browser's `navigator.credentials.create()` does:\n * 1. Generates an ECDSA P-256 key pair\n * 2. Builds the clientDataJSON\n * 3. Builds the attestationObject with \"none\" attestation\n * 4. Returns both the server response and the credential for local storage\n */\nexport function createCredential(\n  options: MyChartCreationOptions,\n  origin: string,\n  indexForDefaultName: number = 0,\n): RegistrationResult {\n  // Generate ECDSA P-256 key pair. On Node these come back as Buffers;\n  // on Hermes / react-native-quick-crypto they come back as ArrayBuffers.\n  // Normalize once so the rest of the code can rely on Buffer semantics.\n  const { publicKey, privateKey } = crypto.generateKeyPairSync('ec', {\n    namedCurve: 'P-256',\n    publicKeyEncoding: { type: 'spki', format: 'der' },\n    privateKeyEncoding: { type: 'pkcs8', format: 'der' },\n  });\n  const publicKeyBuf = toBuffer(publicKey);\n  const privateKeyBuf = toBuffer(privateKey);\n\n  // Generate a random credential ID (32 bytes)\n  const credentialId = crypto.randomBytes(32);\n\n  // Determine the RP ID: empty string in MyChart means use the origin's hostname\n  const rpId = options.rp.id || new URL(origin).hostname;\n\n  // Build clientDataJSON\n  const clientDataJSON = buildClientDataJSON('webauthn.create', options.challenge, origin);\n\n  // Build authenticator data with attested credential data\n  const authData = buildAuthDataForCreate(rpId, credentialId, publicKeyBuf, 0);\n\n  // Build attestation object (CBOR-encoded) with \"none\" format\n  const attestationObject = cborEncodeAttestationObject(authData);\n\n  return {\n    serverResponse: {\n      rawId: bufferToBase64(credentialId),\n      attestationData: bufferToBase64(attestationObject),\n      clientDataJSON: bufferToBase64(clientDataJSON),\n      indexForDefaultName,\n    },\n    credential: {\n      credentialId: bufferToBase64(credentialId),\n      privateKey: bufferToBase64(privateKeyBuf),\n      rpId,\n      userHandle: options.user.id,\n      signCount: 0,\n    },\n  };\n}\n\n/**\n * Authenticate with a stored passkey credential.\n *\n * This replaces what the browser's `navigator.credentials.get()` does:\n * 1. Builds the clientDataJSON\n * 2. Builds the authenticatorData\n * 3. Signs (authenticatorData || SHA-256(clientDataJSON)) with the private key\n * 4. Returns the assertion response for the DoLogin request\n */\nexport function createAssertion(\n  credential: PasskeyCredential,\n  challenge: string, // base64 from server\n  origin: string,\n): AuthenticationResult {\n  // Increment sign counter\n  credential.signCount++;\n\n  // Build clientDataJSON\n  const clientDataJSON = buildClientDataJSON('webauthn.get', challenge, origin);\n\n  // Build authenticator data (no attested credential data for get)\n  const authData = buildAuthDataForGet(credential.rpId, credential.signCount);\n\n  // Sign: authenticatorData || SHA-256(clientDataJSON)\n  const clientDataHash = crypto.createHash('sha256').update(clientDataJSON).digest();\n  const signatureBase = Buffer.concat([authData, clientDataHash]);\n\n  // Import the private key and sign\n  const privateKeyObj = crypto.createPrivateKey({\n    key: base64ToBuffer(credential.privateKey),\n    format: 'der',\n    type: 'pkcs8',\n  });\n\n  // ECDSA signature in DER format (which is what WebAuthn expects)\n  const signature = crypto.sign('SHA256', signatureBase, privateKeyObj);\n\n  // The browser's PublicKeyCredential.id is base64url-encoded,\n  // while rawId is standard base64 (btoa of the ArrayBuffer bytes).\n  const idBase64url = base64ToBase64Url(credential.credentialId);\n\n  return {\n    id: idBase64url,\n    type: 'public-key',\n    rawId: credential.credentialId,\n    authenticatorAssertion: {\n      clientDataJSON: bufferToBase64(clientDataJSON),\n      authenticatorData: bufferToBase64(authData),\n      signature: bufferToBase64(signature),\n      userHandle: credential.userHandle,\n    },\n  };\n}\n\n/**\n * Serialize a passkey credential to a JSON string for storage.\n */\nexport function serializeCredential(credential: PasskeyCredential): string {\n  return JSON.stringify(credential);\n}\n\n/**\n * Deserialize a passkey credential from a JSON string.\n */\nexport function deserializeCredential(json: string): PasskeyCredential {\n  return JSON.parse(json) as PasskeyCredential;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Read MyChart credentials the user has already saved in their browser.\n *\n * Strictly read-only, on this machine only: nothing here writes to a browser\n * store or to the OS keychain, and no credential leaves the process. Reading\n * the macOS Keychain puts up the system's own \"wants to access\" prompt, which\n * is the consent gate for the whole feature.\n *\n * Upstream of the decryption work: bojangabric/browser-password-extractor (MIT).\n * The Firefox path has been substantially rewritten — see `firefox.ts`.\n */\n\nimport { readdirSync } from 'fs';\nimport { chromiumProfileRoots, getChromiumLogins } from './chromium';\nimport { firefoxProfileRoots, getFirefoxLogins } from './firefox';\nimport { classifyMyChartEntries } from './myChartFilter';\nimport type { MyChartCandidate, PasswordStoreEntry, PasswordStoreEntryWithKey } from './types';\n\nexport type { MyChartCandidate, PasswordStoreEntry, PasswordStoreEntryWithKey } from './types';\n\n/** True when this platform has a password store we know how to read. */\nexport function isSupportedPlatform(): boolean {\n  return process.platform === 'darwin' || process.platform === 'win32';\n}\n\n/**\n * Browsers whose saved passwords macOS will not let this process read.\n *\n * macOS shields some browsers' data folders from other apps. The refusal is an\n * EPERM on reading the folder, which the scan otherwise swallows exactly like\n * \"nothing saved\". Only the user can lift it, by giving the app this process\n * runs under Full Disk Access, so the caller has to tell them how.\n */\nexport function blockedBrowsers(): string[] {\n  if (process.platform !== 'darwin') return [];\n  const roots = [...chromiumProfileRoots(), ...firefoxProfileRoots().map(root => ({ name: 'Firefox', root }))];\n  return roots.filter(({ root }) => isPermissionDenied(root)).map(({ name }) => name);\n}\n\nfunction isPermissionDenied(directory: string): boolean {\n  try {\n    readdirSync(directory);\n    return false;\n  } catch (error) {\n    return (error as NodeJS.ErrnoException).code === 'EPERM';\n  }\n}\n\n/**\n * Every credential in every supported browser, decrypted, unfiltered.\n *\n * Exported for diagnostics; product code wants `findMyChartCandidates`, which\n * narrows to health portals.\n */\nexport async function getAllBrowserLogins(): Promise<PasswordStoreEntry[]> {\n  if (!isSupportedPlatform()) return [];\n  // Independent stores, so a slow Keychain prompt on one need not hold the other.\n  const [chromium, firefox] = await Promise.all([\n    getChromiumLogins().catch(() => [] as PasswordStoreEntry[]),\n    getFirefoxLogins().catch(() => [] as PasswordStoreEntry[]),\n  ]);\n  return [...chromium, ...firefox];\n}\n\n/**\n * The saved logins confirmed to be MyChart accounts, each tagged with how it\n * was confirmed. Anything we could not confirm is dropped — see\n * `myChartFilter.ts`.\n */\nexport async function findMyChartCandidates(\n  options: { probeUnknownHosts?: boolean } = {},\n): Promise<MyChartCandidate[]> {\n  return classifyMyChartEntries(await getAllBrowserLogins(), options);\n}\n\n/**\n * Confirmed MyChart accounts, in the shape the CLI's\n * `--read-login-from-browser` has always expected.\n */\nexport async function getMyChartAccounts(): Promise<PasswordStoreEntryWithKey[]> {\n  return findMyChartCandidates();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Chromium-family password stores (Chrome, Arc, Brave, Edge, Vivaldi, Opera).\n *\n * Every one of them keeps the same two things: a `Login Data` SQLite file whose\n * `logins` table holds an encrypted `password_value`, and a per-browser master\n * key held by the OS. Only how the master key is protected differs by platform.\n */\n\nimport { execFile } from 'child_process';\nimport { createDecipheriv, pbkdf2Sync } from 'crypto';\nimport { existsSync, readFileSync, readdirSync } from 'fs';\nimport { homedir } from 'os';\nimport * as path from 'path';\nimport { promisify } from 'util';\nimport { toBuffer, toText, withDatabaseCopy } from './sqlite';\nimport type { PasswordStoreEntry } from './types';\n\nconst execFileAsync = promisify(execFile);\n\ninterface ChromiumBrowser {\n  /** Display name, also the Keychain *account* for the \"<name> Safe Storage\" item. */\n  name: string;\n  /** Keychain account on macOS, when it differs from the display name. */\n  keychainAccount?: string;\n  /** Profile root, relative to the platform's application-data directory. */\n  macDir?: string;\n  winDir?: string;\n}\n\n/**\n * Ordered so the browsers people actually keep health logins in come first.\n * Adding one is a single entry — the extraction path is shared.\n */\nconst BROWSERS: ChromiumBrowser[] = [\n  { name: 'Chrome', macDir: 'Google/Chrome', winDir: 'Google/Chrome/User Data' },\n  { name: 'Arc', macDir: 'Arc/User Data', winDir: 'Arc/User Data' },\n  { name: 'Brave', macDir: 'BraveSoftware/Brave-Browser', winDir: 'BraveSoftware/Brave-Browser/User Data' },\n  { name: 'Edge', keychainAccount: 'Microsoft Edge', macDir: 'Microsoft Edge', winDir: 'Microsoft/Edge/User Data' },\n  { name: 'Vivaldi', macDir: 'Vivaldi', winDir: 'Vivaldi/User Data' },\n  { name: 'Opera', keychainAccount: 'Opera', macDir: 'com.operasoftware.Opera', winDir: 'Opera Software/Opera Stable' },\n];\n\n/**\n * Every `Login Data` under a browser's root. Chromium writes one per profile\n * folder, and the folder names are not predictable (`Profile 28` is real), so\n * each folder is checked rather than a list of names. Opera keeps its single\n * profile in the root itself.\n */\nfunction loginDatabases(root: string): string[] {\n  let folders: string[];\n  try {\n    folders = readdirSync(root, { withFileTypes: true })\n      .filter(entry => entry.isDirectory())\n      .map(entry => path.join(root, entry.name));\n  } catch {\n    // Unreadable root (macOS can refuse it outright): skip this browser, not the scan.\n    return [];\n  }\n  return [root, ...folders].map(folder => path.join(folder, 'Login Data')).filter(existsSync);\n}\n\nfunction applicationSupportRoot(): string {\n  return process.platform === 'win32'\n    ? process.env.LOCALAPPDATA ?? path.join(homedir(), 'AppData', 'Local')\n    : path.join(homedir(), 'Library', 'Application Support');\n}\n\nfunction profileRoot(browser: ChromiumBrowser): string | null {\n  const relative = process.platform === 'win32' ? browser.winDir : browser.macDir;\n  return relative ? path.join(applicationSupportRoot(), relative) : null;\n}\n\n/** Each Chromium browser's profile root, for the access check in `index.ts`. */\nexport function chromiumProfileRoots(): { name: string; root: string }[] {\n  return BROWSERS.flatMap(browser => {\n    const root = profileRoot(browser);\n    return root ? [{ name: browser.name, root }] : [];\n  });\n}\n\n/**\n * macOS: the master key is a PBKDF2 stretch of the \"<Browser> Safe Storage\"\n * Keychain password. The salt and iteration count are Chromium's, hardcoded in\n * `os_crypt_mac.mm`, and have not changed since the feature shipped.\n *\n * This is the call that makes macOS put up \"…wants to access your keychain\".\n * That prompt is the consent gate, so it is deliberately not suppressed.\n */\nasync function macMasterKey(account: string): Promise<Buffer | null> {\n  try {\n    // execFile, not exec: the account name goes in as an argv entry so a\n    // browser name can never be read as shell syntax.\n    const { stdout } = await execFileAsync('security', ['find-generic-password', '-wa', account]);\n    const secret = stdout.trim();\n    if (!secret) return null;\n    return pbkdf2Sync(secret, Buffer.from('saltysalt', 'utf-8'), 1003, 16, 'sha1');\n  } catch {\n    // No such item, or the user clicked Deny. Both mean \"skip this browser\".\n    return null;\n  }\n}\n\n/**\n * Windows: the master key sits in `Local State` as DPAPI-protected bytes.\n *\n * Unwrapped through PowerShell's ProtectedData rather than a native DPAPI\n * addon, to keep this package free of per-platform binaries.\n */\nasync function windowsMasterKey(profileRootPath: string): Promise<Buffer | null> {\n  const localState = path.join(profileRootPath, 'Local State');\n  if (!existsSync(localState)) return null;\n\n  try {\n    const parsed = JSON.parse(readFileSync(localState, 'utf-8')) as {\n      os_crypt?: { encrypted_key?: string; app_bound_encrypted_key?: string };\n    };\n    const encoded = parsed.os_crypt?.encrypted_key;\n    if (!encoded) return null;\n\n    // Strip the 5-byte \"DPAPI\" tag Chromium prepends before base64-ing.\n    const blob = Buffer.from(encoded, 'base64').subarray(5);\n    const script =\n      'Add-Type -AssemblyName System.Security;' +\n      `$b=[Convert]::FromBase64String('${blob.toString('base64')}');` +\n      '[Convert]::ToBase64String([Security.Cryptography.ProtectedData]::Unprotect($b,$null,0))';\n    const { stdout } = await execFileAsync(\n      'powershell.exe',\n      ['-NoProfile', '-NonInteractive', '-Command', script],\n      { windowsHide: true },\n    );\n    const key = Buffer.from(stdout.trim(), 'base64');\n    return key.length === 32 ? key : null;\n  } catch {\n    return null;\n  }\n}\n\n/**\n * Decrypt one `password_value` blob.\n *\n * The 3-byte prefix names the scheme. `v10`/`v11` are the OS-key schemes we\n * handle. `v20` is Chrome 127+ **app-bound encryption** on Windows, which binds\n * the key to the Chrome executable itself; it cannot be unwrapped from another\n * process by design, so we report it rather than pretending the row is corrupt.\n *\n * `scheme` is passed in rather than read from `process.platform` so both branches stay\n * reachable from a test on either OS. Exported for that reason.\n */\nexport function decryptPassword(\n  masterKey: Buffer,\n  blob: Buffer,\n  osScheme: 'mac' | 'windows',\n): { text?: string; reason?: string } {\n  if (blob.length === 0) return { text: '' };\n  const scheme = blob.subarray(0, 3).toString('latin1');\n\n  if (scheme === 'v20') return { reason: 'app-bound encryption (Chrome 127+ on Windows)' };\n\n  if (scheme !== 'v10' && scheme !== 'v11') {\n    // No recognised prefix: pre-encryption Chromium stored the password as-is.\n    return { text: blob.toString('utf-8') };\n  }\n\n  try {\n    if (osScheme === 'windows') {\n      // AES-256-GCM: 12-byte nonce, 16-byte tag at the end.\n      const nonce = blob.subarray(3, 15);\n      const body = blob.subarray(15);\n      const decipher = createDecipheriv('aes-256-gcm', masterKey, nonce);\n      decipher.setAuthTag(body.subarray(body.length - 16));\n      return { text: Buffer.concat([decipher.update(body.subarray(0, body.length - 16)), decipher.final()]).toString('utf-8') };\n    }\n\n    // macOS: AES-128-CBC with a fixed IV of sixteen spaces (0x20).\n    const ciphertext = blob.subarray(3);\n    if (ciphertext.length < 16 || ciphertext.length % 16 !== 0) return { reason: 'bad ciphertext length' };\n    const decipher = createDecipheriv('aes-128-cbc', masterKey, Buffer.alloc(16, 32));\n    return { text: Buffer.concat([decipher.update(ciphertext), decipher.final()]).toString('utf-8') };\n  } catch (error) {\n    return { reason: (error as Error).message };\n  }\n}\n\n/** Every credential this machine's Chromium browsers have saved. */\nexport async function getChromiumLogins(): Promise<PasswordStoreEntry[]> {\n  const isMac = process.platform === 'darwin';\n  if (!isMac && process.platform !== 'win32') return [];\n\n  const entries: PasswordStoreEntry[] = [];\n\n  for (const browser of BROWSERS) {\n    const root = profileRoot(browser);\n    if (!root || !existsSync(root)) continue;\n\n    const databases = loginDatabases(root);\n    if (databases.length === 0) continue;\n\n    const masterKey = isMac\n      ? await macMasterKey(browser.keychainAccount ?? browser.name)\n      : await windowsMasterKey(root);\n    if (!masterKey) continue;\n\n    for (const database of databases) {\n      try {\n        const rows = await withDatabaseCopy(database, db =>\n          db.all('SELECT origin_url, username_value, password_value FROM logins'),\n        );\n\n        for (const row of rows) {\n          const blob = toBuffer(row.password_value);\n          const { text, reason } = blob\n            ? decryptPassword(masterKey, blob, isMac ? 'mac' : 'windows')\n            : { reason: 'no password blob' };\n          entries.push({\n            url: toText(row.origin_url) ?? '',\n            user: toText(row.username_value),\n            pass: text ?? null,\n            success: text != null,\n            source: browser.name,\n            ...(reason ? { failureReason: reason } : {}),\n          });\n        }\n      } catch {\n        // A profile that will not open (locked, corrupt, mid-upgrade) must not\n        // take the other profiles or browsers down with it.\n      }\n    }\n  }\n\n  return entries;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Read-only access to the SQLite files browsers keep their passwords in\n * (Chromium's `Login Data`, Firefox's `key4.db`).\n *\n * Backed by `node-sqlite3-wasm`: real SQLite, compiled to WebAssembly, so there\n * is no `.node` binary to build or ship per platform. That matters twice over —\n * the MCPB bundles to a single `dist/server.cjs`, and `node:sqlite` is not an\n * option because tsup targets node20 while that module needs Node 22.5+.\n *\n * The build copies `node-sqlite3-wasm.wasm` next to the bundle, because the\n * package resolves it as `__dirname + \"/node-sqlite3-wasm.wasm\"` at load time.\n */\n\nimport { copyFileSync, mkdtempSync, rmSync } from 'fs';\nimport { tmpdir } from 'os';\nimport * as path from 'path';\n\n/**\n * Run `read` against a private copy of a browser database.\n *\n * Always a copy, never the original: the browser may be running, and SQLite\n * takes locks and writes `-wal`/`-journal` siblings. Opening the live file\n * risks `SQLITE_BUSY` at best and touching the user's real password store at\n * worst — and this whole package is strictly read-only by policy.\n */\nexport async function withDatabaseCopy<T>(\n  databasePath: string,\n  read: (db: { all(sql: string): Record<string, unknown>[] }) => T,\n): Promise<T> {\n  // Load-bearing dynamic import: node-sqlite3-wasm instantiates a 1.2 MB\n  // WebAssembly module at require time. A static import would make every\n  // consumer of this package — including the capability registry, which is\n  // imported by all four clients — pay that cost on startup even when nobody\n  // ever reads a password store.\n  // eslint-disable-next-line no-restricted-syntax\n  const { Database } = await import('node-sqlite3-wasm');\n\n  const scratch = mkdtempSync(path.join(tmpdir(), 'openrecord-pwstore-'));\n  const copy = path.join(scratch, path.basename(databasePath));\n  try {\n    copyFileSync(databasePath, copy);\n    const db = new Database(copy, { readOnly: true });\n    try {\n      return read({ all: (sql: string) => db.all(sql) });\n    } finally {\n      db.close();\n    }\n  } finally {\n    // The copy holds decryptable credentials; do not leave it in the temp dir.\n    rmSync(scratch, { recursive: true, force: true });\n  }\n}\n\n/**\n * Coerce a column that should be text into a string.\n *\n * Written out rather than using `String(value)` because a driver may hand back\n * a Buffer for a TEXT column, and `String(buffer)` would stringify the object\n * rather than decode it.\n */\nexport function toText(value: unknown): string | null {\n  if (value == null) return null;\n  if (typeof value === 'string') return value;\n  if (typeof value === 'number' || typeof value === 'bigint' || typeof value === 'boolean') return String(value);\n  if (Buffer.isBuffer(value)) return value.toString('utf-8');\n  if (value instanceof Uint8Array) return Buffer.from(value).toString('utf-8');\n  return null;\n}\n\n/** Coerce a column that should be binary into a Buffer, whatever the driver hands back. */\nexport function toBuffer(value: unknown): Buffer | null {\n  if (value == null) return null;\n  if (Buffer.isBuffer(value)) return value;\n  if (value instanceof Uint8Array) return Buffer.from(value);\n  if (typeof value === 'string') return Buffer.from(value, 'binary');\n  return null;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Firefox password store (NSS): `key4.db` holds the wrapped keys, `logins.json`\n * the encrypted credentials.\n *\n * Three things here are easy to get wrong, and each was found by running this\n * against a real 969-login profile rather than by reading the format:\n *\n *  1. **Modern Firefox encrypts login fields with AES-256-CBC, not 3DES.** The\n *     algorithm is named per field, so it must be dispatched on, not assumed.\n *  2. **The PBES2 IV is stored as 14 bytes**; the real AES IV is `04 0e` followed\n *     by those 14. Passing the raw 14 bytes fails outright.\n *  3. **`nssPrivate` holds several wrapped keys that share one CKA_ID** — a\n *     24-byte legacy 3DES key and a 32-byte AES key, under the same id. So the\n *     key must be chosen by the length its cipher needs, not by id alone.\n */\n\nimport { createDecipheriv, createHash, createHmac, pbkdf2Sync } from 'crypto';\nimport { existsSync, readFileSync, readdirSync } from 'fs';\nimport { homedir } from 'os';\nimport * as path from 'path';\nimport { child, oidToString, parseDer, readInteger, stripPadding, type DerNode } from './der';\nimport { toBuffer, withDatabaseCopy } from './sqlite';\nimport type { PasswordStoreEntry } from './types';\n\nconst OID_PBES2 = '1.2.840.113549.1.5.13';\nconst OID_PBKDF2 = '1.2.840.113549.1.5.12';\nconst OID_3DES_CBC = '1.2.840.113549.3.7';\nconst OID_AES256_CBC = '2.16.840.1.101.3.4.1.42';\n\n/** Cipher parameters keyed by the OID a field declares. */\nconst FIELD_CIPHERS: Record<string, { algorithm: string; keyLength: number; blockSize: number }> = {\n  [OID_AES256_CBC]: { algorithm: 'aes-256-cbc', keyLength: 32, blockSize: 16 },\n  [OID_3DES_CBC]: { algorithm: 'des-ede3-cbc', keyLength: 24, blockSize: 8 },\n};\n\nconst sha1 = (...parts: Buffer[]): Buffer => {\n  const hash = createHash('sha1');\n  for (const part of parts) hash.update(part);\n  return hash.digest();\n};\n\nconst hmacSha1 = (key: Buffer, ...parts: Buffer[]): Buffer => {\n  const hmac = createHmac('sha1', key);\n  for (const part of parts) hmac.update(part);\n  return hmac.digest();\n};\n\n/**\n * Undo one NSS password-based encryption blob.\n *\n * `algorithm` is the AlgorithmIdentifier SEQUENCE; `ciphertext` the OCTET STRING\n * beside it. Handles both the modern PBES2/AES form and the legacy\n * pbeWithSha1AndTripleDES form, because a long-lived profile can still hold the\n * latter.\n */\nexport function pbeDecrypt(algorithm: DerNode, ciphertext: Buffer, globalSalt: Buffer, masterPassword: Buffer): Buffer {\n  const algorithmOid = oidToString(child(algorithm, 0).content);\n  const parameters = child(algorithm, 1);\n\n  if (algorithmOid === OID_PBES2) {\n    const keyDerivation = child(parameters, 0);\n    if (oidToString(child(keyDerivation, 0).content) !== OID_PBKDF2) {\n      throw new Error('firefox: PBES2 with an unexpected key-derivation function');\n    }\n\n    const kdfParameters = child(keyDerivation, 1);\n    const salt = child(kdfParameters, 0).content;\n    const iterations = readInteger(child(kdfParameters, 1));\n    const keyLength = readInteger(child(kdfParameters, 2));\n\n    const storedIv = child(parameters, 1, 1).content;\n    // NSS stores 14 IV bytes and reconstructs the DER OCTET STRING header in\n    // front of them to make the 16 AES needs.\n    const iv = storedIv.length === 14 ? Buffer.concat([Buffer.from([0x04, 0x0e]), storedIv]) : storedIv;\n\n    const key = pbkdf2Sync(sha1(globalSalt, masterPassword), salt, iterations, keyLength, 'sha256');\n    const decipher = createDecipheriv('aes-256-cbc', key, iv);\n    decipher.setAutoPadding(false);\n    return stripPadding(Buffer.concat([decipher.update(ciphertext), decipher.final()]), 16);\n  }\n\n  // Legacy: pbeWithSha1AndTripleDES-CBC. Key and IV both fall out of one\n  // HMAC ladder over the global salt and this entry's salt.\n  const entrySalt = child(parameters, 0).content;\n  const hashedPassword = sha1(globalSalt, masterPassword);\n  const paddedSalt = Buffer.concat([Buffer.alloc(Math.max(0, 20 - entrySalt.length)), entrySalt]).subarray(0, 20);\n  const combined = sha1(hashedPassword, entrySalt);\n  const firstHalf = hmacSha1(combined, paddedSalt, entrySalt);\n  const tk = hmacSha1(combined, paddedSalt);\n  const secondHalf = hmacSha1(combined, tk, entrySalt);\n  const material = Buffer.concat([firstHalf, secondHalf]);\n\n  const decipher = createDecipheriv('des-ede3-cbc', material.subarray(0, 24), material.subarray(material.length - 8));\n  decipher.setAutoPadding(false);\n  return stripPadding(Buffer.concat([decipher.update(ciphertext), decipher.final()]), 8);\n}\n\n/**\n * Unwrap every key in `key4.db`.\n *\n * Returns the raw key material, longest first, so a caller asking for 32 bytes\n * gets the AES key and one asking for 24 gets a 3DES-sized key — the two\n * routinely share a CKA_ID, which makes id alone useless as a discriminator.\n */\nasync function unwrapKeys(key4Path: string, masterPassword: Buffer): Promise<Buffer[]> {\n  const { meta, privateRows } = await withDatabaseCopy(key4Path, db => ({\n    meta: db.all(\"SELECT item1, item2 FROM metaData WHERE id = 'password'\")[0],\n    privateRows: db.all('SELECT a11 FROM nssPrivate'),\n  }));\n\n  const globalSalt = toBuffer(meta?.item1);\n  const passwordCheck = toBuffer(meta?.item2);\n  if (!globalSalt || !passwordCheck) throw new Error('firefox: key4.db has no password metadata');\n\n  // Confirms the (empty) master password before anything else is attempted, so\n  // a profile with a real master password fails with a clear reason.\n  const check = parseDer(passwordCheck);\n  const checkText = pbeDecrypt(child(check, 0), child(check, 1).content, globalSalt, masterPassword).toString('utf-8');\n  if (checkText !== 'password-check') {\n    throw new Error('firefox: profile is protected by a primary password');\n  }\n\n  const keys: Buffer[] = [];\n  for (const row of privateRows) {\n    const wrapped = toBuffer(row.a11);\n    if (!wrapped) continue;\n    try {\n      const node = parseDer(wrapped);\n      keys.push(pbeDecrypt(child(node, 0), child(node, 1).content, globalSalt, masterPassword));\n    } catch {\n      // One unusable key entry should not cost us the others.\n    }\n  }\n  return keys.sort((a, b) => b.length - a.length);\n}\n\n/** Decrypt one base64 ASN.1 field from logins.json. Exported for tests. */\nexport function decryptField(encoded: string, keys: Buffer[]): string {\n  const node = parseDer(Buffer.from(encoded, 'base64'));\n  const cipherOid = oidToString(child(node, 1, 0).content);\n  const spec = FIELD_CIPHERS[cipherOid];\n  if (!spec) throw new Error(`firefox: unsupported field cipher ${cipherOid}`);\n\n  // Exact length first. `length >= keyLength` alone would hand a 3DES field the\n  // first 24 bytes of the 32-byte AES key — which decrypts to garbage rather\n  // than failing, so nothing downstream would notice. Only fall back to a longer\n  // key when no key is exactly the right size.\n  const key =\n    keys.find(candidate => candidate.length === spec.keyLength) ??\n    keys.find(candidate => candidate.length > spec.keyLength);\n  if (!key) throw new Error(`firefox: no key of at least ${spec.keyLength} bytes`);\n\n  const decipher = createDecipheriv(spec.algorithm, key.subarray(0, spec.keyLength), child(node, 1, 1).content);\n  decipher.setAutoPadding(false);\n  const plaintext = Buffer.concat([decipher.update(child(node, 2).content), decipher.final()]);\n  return stripPadding(plaintext, spec.blockSize).toString('utf-8');\n}\n\nexport function firefoxProfileRoots(): string[] {\n  const home = homedir();\n  if (process.platform === 'darwin') return [path.join(home, 'Library', 'Application Support', 'Firefox', 'Profiles')];\n  if (process.platform === 'win32') {\n    const appData = process.env.APPDATA ?? path.join(home, 'AppData', 'Roaming');\n    return [path.join(appData, 'Mozilla', 'Firefox', 'Profiles')];\n  }\n  return [path.join(home, '.mozilla', 'firefox')];\n}\n\n/** Every credential this machine's Firefox profiles have saved. */\nexport async function getFirefoxLogins(): Promise<PasswordStoreEntry[]> {\n  const entries: PasswordStoreEntry[] = [];\n\n  for (const root of firefoxProfileRoots()) {\n    if (!existsSync(root)) continue;\n\n    for (const directory of readdirSync(root, { withFileTypes: true })) {\n      if (!directory.isDirectory()) continue;\n      const profile = path.join(root, directory.name);\n      const loginsPath = path.join(profile, 'logins.json');\n      const key4Path = path.join(profile, 'key4.db');\n      if (!existsSync(loginsPath) || !existsSync(key4Path)) continue;\n\n      let keys: Buffer[];\n      try {\n        keys = await unwrapKeys(key4Path, Buffer.alloc(0));\n      } catch {\n        continue; // Primary password set, or an unreadable key store.\n      }\n\n      let logins: { encryptedUsername?: string; encryptedPassword?: string; hostname?: string; formSubmitURL?: string }[];\n      try {\n        logins = JSON.parse(readFileSync(loginsPath, 'utf-8')).logins ?? [];\n      } catch {\n        continue;\n      }\n\n      for (const login of logins) {\n        if (!login.encryptedPassword) continue;\n        try {\n          entries.push({\n            url: login.hostname || login.formSubmitURL || '',\n            user: login.encryptedUsername ? decryptField(login.encryptedUsername, keys) : null,\n            pass: decryptField(login.encryptedPassword, keys),\n            success: true,\n            source: 'Firefox',\n          });\n        } catch {\n          entries.push({\n            url: login.hostname || login.formSubmitURL || '',\n            user: null,\n            pass: null,\n            success: false,\n            source: 'Firefox',\n          });\n        }\n      }\n    }\n  }\n\n  return entries;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The sliver of ASN.1 DER that Firefox's NSS key store is written in.\n *\n * Only what the key-unwrapping path actually walks: definite-length SEQUENCEs,\n * OCTET STRINGs, INTEGERs and OBJECT IDENTIFIERs. Indefinite lengths, BER and\n * every other tag are out of scope — NSS never emits them here.\n */\n\nexport interface DerNode {\n  tag: number;\n  /** The node's contents, excluding tag and length bytes. */\n  content: Buffer;\n  /** Offset just past this node, relative to the buffer it was parsed from. */\n  end: number;\n  /** Present for constructed types (SEQUENCE, SET). */\n  children?: DerNode[];\n}\n\nexport const TAG_OCTET_STRING = 0x04;\nexport const TAG_SEQUENCE = 0x30;\nconst TAG_SET = 0x31;\n\n/** Parse one DER node at `offset`. */\nexport function parseDer(buffer: Buffer, offset = 0): DerNode {\n  const tag = buffer[offset];\n  if (tag === undefined) throw new Error('der: read past end of buffer');\n\n  let length = buffer[offset + 1];\n  if (length === undefined) throw new Error('der: truncated length');\n  let cursor = offset + 2;\n\n  // Long form: the low 7 bits say how many bytes carry the real length.\n  if (length & 0x80) {\n    const byteCount = length & 0x7f;\n    if (byteCount === 0 || byteCount > 4) throw new Error('der: unsupported length encoding');\n    length = 0;\n    for (let i = 0; i < byteCount; i++) {\n      const byte = buffer[cursor++];\n      if (byte === undefined) throw new Error('der: truncated long-form length');\n      length = length * 256 + byte;\n    }\n  }\n\n  const end = cursor + length;\n  if (end > buffer.length) throw new Error('der: node runs past end of buffer');\n  const content = buffer.subarray(cursor, end);\n\n  const node: DerNode = { tag, content, end };\n  if (tag === TAG_SEQUENCE || tag === TAG_SET) {\n    node.children = [];\n    let inner = 0;\n    while (inner < content.length) {\n      const element = parseDer(content, inner);\n      node.children.push(element);\n      inner = element.end;\n    }\n  }\n  return node;\n}\n\n/** Fetch a required child by index, with a message that says what was missing. */\nexport function child(node: DerNode, ...indexes: number[]): DerNode {\n  let current = node;\n  for (const index of indexes) {\n    const next = current.children?.[index];\n    if (!next) throw new Error(`der: expected a child at index ${index}`);\n    current = next;\n  }\n  return current;\n}\n\n/** Render an OBJECT IDENTIFIER's contents in dotted-decimal form. */\nexport function oidToString(content: Buffer): string {\n  const first = content[0];\n  if (first === undefined) return '';\n\n  // The first byte packs the two leading arcs as 40 * a + b.\n  const parts = [Math.floor(first / 40), first % 40];\n  let accumulator = 0;\n  for (let i = 1; i < content.length; i++) {\n    const byte = content[i]!;\n    accumulator = accumulator * 128 + (byte & 0x7f);\n    if ((byte & 0x80) === 0) {\n      parts.push(accumulator);\n      accumulator = 0;\n    }\n  }\n  return parts.join('.');\n}\n\n/** Read a DER INTEGER that is known to be small (iteration counts, key sizes). */\nexport function readInteger(node: DerNode): number {\n  if (node.content.length === 0) return 0;\n  if (node.content.length > 6) throw new Error('der: integer too large');\n  return node.content.readUIntBE(0, node.content.length);\n}\n\n/**\n * Strip PKCS#7 padding.\n *\n * Kept separate from the ciphers because NSS pads plaintext that is already a\n * whole number of blocks with a full block, and a naive \"last byte is the\n * count\" strip on unpadded data would silently truncate a key.\n */\nexport function stripPadding(plaintext: Buffer, blockSize: number): Buffer {\n  const padLength = plaintext[plaintext.length - 1];\n  if (padLength === undefined || padLength === 0 || padLength > blockSize || padLength > plaintext.length) {\n    return plaintext;\n  }\n  for (let i = plaintext.length - padLength; i < plaintext.length; i++) {\n    if (plaintext[i] !== padLength) return plaintext;\n  }\n  return plaintext.subarray(0, plaintext.length - padLength);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Decide which saved credentials are Epic MyChart logins.\n *\n * Two independent checks, combined as a union:\n *\n *   1. **Directory match** — the hostname is one of the ~1300 known instances in\n *      `mychart-instances.json`. Offline, exact, and free, so it runs against\n *      every entry and short-circuits the network entirely for most real hits.\n *   2. **Redirect probe** — for hosts the directory does not know, follow the\n *      saved URL's redirects and look for Epic's login markup. This is what\n *      catches a health system that renamed or merged: the browser holds the\n *      password against the *old* domain, and the 302 chain lands on the new\n *      one, which the directory does know.\n *\n * An entry that passes neither is dropped. A host we cannot reach is a host we\n * cannot log into either, so offering it would only produce a failed login —\n * and the user can always type the account in by hand, or re-run the import once\n * the portal is back up.\n */\n\nimport { createHash } from 'crypto';\nimport rawInstances from '../../../scrapers/list-all-mycharts/mychart-instances.json';\nimport { scraperFetch } from '../../../scrapers/http';\nimport type { MyChartCandidate, MyChartConfidence, PasswordStoreEntry } from './types';\n\n/** Hostnames worth probing even though the directory has never heard of them. */\nconst NAME_HINTS = /mychart|patientportal|patient-portal|patientgateway|myhealth|healthportal|epicmychart/i;\n\n/** How many redirect hops to follow before giving up on a saved URL. */\nconst MAX_REDIRECTS = 6;\n\n/** Epic's login page marker, present on every instance we have captured. */\nconst LOGIN_MARKERS = ['mainLoginContent', 'Authentication/Login'];\n\ninterface DirectoryEntry {\n  name: string;\n  hostname: string;\n}\n\nlet directoryCache: Map<string, DirectoryEntry> | null = null;\n\n/** Hostname → instance, built once from the bundled directory. */\nfunction directory(): Map<string, DirectoryEntry> {\n  if (directoryCache) return directoryCache;\n  const map = new Map<string, DirectoryEntry>();\n  for (const raw of rawInstances as { name: string; url: string }[]) {\n    try {\n      map.set(new URL(raw.url).hostname.toLowerCase(), { name: raw.name, hostname: new URL(raw.url).hostname.toLowerCase() });\n    } catch {\n      // A malformed directory row should not break the lookup table.\n    }\n  }\n  directoryCache = map;\n  return map;\n}\n\nfunction hostnameOf(url: string): string | null {\n  try {\n    return new URL(url).hostname.toLowerCase();\n  } catch {\n    return null;\n  }\n}\n\n/**\n * Trim a saved URL back to the MyChart mount point.\n *\n * Browsers save whatever page the form was on — `/accesscheck.asp`,\n * `/Authentication/PasswordReset`, `/app/activation/credentials`. Keeping the\n * first path segment keeps the Epic mount (`/MyChart`, `/mychart-prd`) while\n * dropping the rest.\n */\nfunction toMountUrl(url: string): string | null {\n  try {\n    const parsed = new URL(url);\n    const [, first = ''] = parsed.pathname.split('/');\n    parsed.pathname = first ? `/${first}` : '/';\n    parsed.search = '';\n    parsed.hash = '';\n    return parsed.toString();\n  } catch {\n    return null;\n  }\n}\n\n/**\n * Follow the redirect chain by hand and report where it ends up.\n *\n * `scraperFetch` deliberately does not follow redirects — it owns the per-host\n * permit, and holding one across a whole chain could deadlock — so each hop is\n * its own call, exactly as `MyChartRequest.makeRequest` does it.\n */\nasync function probe(url: string): Promise<{ finalUrl: string; isLogin: boolean } | null> {\n  let current = url;\n\n  for (let hop = 0; hop < MAX_REDIRECTS; hop++) {\n    let response: Response;\n    try {\n      response = await scraperFetch(current, { redirect: 'manual' });\n    } catch {\n      return null;\n    }\n\n    const location = response.headers.get('location');\n    if (response.status >= 300 && response.status < 400 && location) {\n      try {\n        current = new URL(location, current).toString();\n      } catch {\n        return null;\n      }\n      continue;\n    }\n\n    if (!response.ok) return { finalUrl: current, isLogin: false };\n\n    let body = '';\n    try {\n      body = await response.text();\n    } catch {\n      return { finalUrl: current, isLogin: false };\n    }\n    return { finalUrl: current, isLogin: LOGIN_MARKERS.some(marker => body.includes(marker)) };\n  }\n\n  return { finalUrl: current, isLogin: false };\n}\n\n/** Stable id for a credential, so the UI can refer to one without echoing it. */\nfunction candidateKey(hostname: string, user: string | null, pass: string): string {\n  return createHash('sha256').update(`${hostname}\u0000${user ?? ''}\u0000${pass}`).digest('hex').slice(0, 16);\n}\n\n/**\n * Classify decrypted store entries into confirmed MyChart candidates.\n *\n * `probeUnknownHosts: false` makes this entirely offline: no outbound requests,\n * and only hostnames the bundled directory already knows are returned.\n */\nexport async function classifyMyChartEntries(\n  entries: PasswordStoreEntry[],\n  options: { probeUnknownHosts?: boolean } = {},\n): Promise<MyChartCandidate[]> {\n  const probeUnknownHosts = options.probeUnknownHosts ?? true;\n  const known = directory();\n\n  // Only decrypted rows with a password can become an account.\n  const usable = entries.filter(entry => entry.success && entry.pass);\n\n  const resolved: MyChartCandidate[] = [];\n  const toProbe: PasswordStoreEntry[] = [];\n\n  for (const entry of usable) {\n    const host = hostnameOf(entry.url);\n    if (!host) continue;\n\n    const match = known.get(host);\n    if (match) {\n      resolved.push({\n        ...entry,\n        pass: entry.pass!,\n        hostname: host,\n        confidence: 'directory',\n        instanceName: match.name,\n        key: candidateKey(host, entry.user, entry.pass!),\n      });\n      continue;\n    }\n\n    // Not a known instance. Probing every saved password would mean ~1000\n    // outbound requests, so only URLs that read like a patient portal qualify.\n    if (NAME_HINTS.test(entry.url)) toProbe.push(entry);\n  }\n\n  // Nothing to probe when host checks are off — directory hits are the answer.\n  if (!probeUnknownHosts) return dedupe(resolved);\n\n  for (const entry of toProbe) {\n    const host = hostnameOf(entry.url)!;\n    const mount = toMountUrl(entry.url);\n    const outcome = mount ? await probe(mount) : null;\n    if (!outcome) continue; // Host did not respond; we could not log in either.\n\n    const finalHost = hostnameOf(outcome.finalUrl) ?? host;\n    // A redirect can land on a host the directory *does* know — that is the\n    // renamed-health-system case, and it is a directory match, not a probe one.\n    const redirectedInto = known.get(finalHost);\n    if (!redirectedInto && !outcome.isLogin) continue;\n\n    resolved.push({\n      ...entry,\n      pass: entry.pass!,\n      hostname: finalHost,\n      confidence: redirectedInto ? 'directory' : 'probed',\n      ...(redirectedInto ? { instanceName: redirectedInto.name } : {}),\n      key: candidateKey(finalHost, entry.user, entry.pass!),\n    });\n  }\n\n  return dedupe(resolved);\n}\n\n/**\n * Collapse duplicates on the **resolved** hostname.\n *\n * Deduping on the saved URL would keep an old domain and the domain it\n * redirects into as two separate accounts for the same login. Username is\n * compared case-insensitively because MyChart logins are.\n */\nfunction dedupe(candidates: MyChartCandidate[]): MyChartCandidate[] {\n  const rank: Record<MyChartConfidence, number> = { directory: 0, probed: 1 };\n  const best = new Map<string, MyChartCandidate>();\n\n  for (const candidate of candidates) {\n    const id = `${candidate.hostname}|${(candidate.user ?? '').toLowerCase()}|${candidate.pass}`;\n    const existing = best.get(id);\n    if (!existing || rank[candidate.confidence] < rank[existing.confidence]) best.set(id, candidate);\n  }\n\n  return [...best.values()].sort(\n    (a, b) => rank[a.confidence] - rank[b.confidence] || a.hostname.localeCompare(b.hostname),\n  );\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Whether an HTML body is the login page an EXPIRED session gets bounced to.\n *\n * Deliberately much stricter than `looksLikeLoginPage` in `../auth/login.ts`:\n * that one answers \"could this be a MyChart login page?\" during mount\n * discovery, where matching an authenticated page costs nothing. Here a false\n * positive would declare a live session dead and trigger a re-login, so only\n * markers that never appear on post-login pages count —\n * `__RequestVerificationToken` is on every page and the Epic license line is\n * in every footer, which is exactly why the loose check can't be reused for\n * expiry detection.\n */\nexport function looksLikeSignedOutPage(html: string): boolean {\n  const bodyLower = html.toLowerCase();\n  // A class token only: signed-in pages on some instances embed routing JSON\n  // carrying `\"isPrelogin\":false`, which a bare substring match mistakes for\n  // the login page.\n  return /class\\s*=\\s*[\"'][^\"']*\\bisprelogin\\b/.test(bodyLower) // <body class=\"… isPrelogin\">\n    || bodyLower.includes('login with passkey')     // real instances\n    || bodyLower.includes('sign in with passkey')\n    || bodyLower.includes('forgot login information')\n    || bodyLower.includes('loginpagecontroller')    // the login page's own JS\n    || bodyLower.includes('authentication/login/dologin'); // the login form action\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Unified in-memory session store and keepalive for MyChart sessions.\n *\n * Used by both the CLI and the web app. Each session is a token -> MyChartRequest\n * mapping. The keepalive calls /Home/KeepAlive and /keepalive.asp every 30s\n * (matching MyChart's own JS) to prevent session expiry.\n *\n * Usage:\n *   import { sessionStore } from './sessionStore';\n *   sessionStore.set('my-token', mychartRequest);\n *   const req = sessionStore.get('my-token');\n *   const stop = sessionStore.startKeepalive();\n *   // ... later\n *   stop();\n */\n\nimport type { MyChartRequest } from './myChartRequest';\nimport { logger } from '../../../shared/logger';\n\nconst KEEPALIVE_INTERVAL_MS = 30 * 1000; // 30 seconds, matches MyChart's own JS interval\n\ninterface SessionEntry {\n  request: MyChartRequest;\n  hostname: string;\n  status: 'logged_in' | 'need_2fa' | 'expired' | 'error';\n  createdAt: Date;\n}\n\nconst KEEPALIVE_MAX_ERRORS = 3;\n\nclass SessionStore {\n  private readonly sessions = new Map<string, SessionEntry>();\n  private intervalHandle: ReturnType<typeof setInterval> | null = null;\n  private keepAliveCounter = 0;\n  private readonly keepAliveErrors = new Map<string, number>();\n  private autoTokenCounter = 0;\n\n  /** Store a session. */\n  set(token: string, request: MyChartRequest, opts?: { hostname?: string; status?: SessionEntry['status'] }) {\n    this.sessions.set(token, {\n      request,\n      hostname: opts?.hostname ?? request.hostname,\n      status: opts?.status ?? 'logged_in',\n      createdAt: new Date(),\n    });\n  }\n\n  /** Get the MyChartRequest for a token. Returns undefined if not found. */\n  get(token: string): MyChartRequest | undefined {\n    return this.sessions.get(token)?.request;\n  }\n\n  /** Get the full session entry. */\n  getEntry(token: string): SessionEntry | undefined {\n    return this.sessions.get(token);\n  }\n\n  /** Update session status. */\n  setStatus(token: string, status: SessionEntry['status']) {\n    const entry = this.sessions.get(token);\n    if (entry) entry.status = status;\n  }\n\n  /** Delete a session. */\n  delete(token: string) {\n    this.sessions.delete(token);\n    this.keepAliveErrors.delete(token);\n  }\n\n  /** Check if a session exists. */\n  has(token: string): boolean {\n    return this.sessions.has(token);\n  }\n\n  /**\n   * Remove every entry pointing at this request. Clients call this when they\n   * discard a session (account removed, session cleared) so the keepalive\n   * stops pinging something nobody holds anymore.\n   */\n  unregister(request: MyChartRequest) {\n    for (const [token, entry] of this.sessions) {\n      if (entry.request === request) this.delete(token);\n    }\n  }\n\n  /** Get all sessions. */\n  all(): Map<string, SessionEntry> {\n    return this.sessions;\n  }\n\n  /** Get all logged-in sessions. */\n  active(): [string, SessionEntry][] {\n    return Array.from(this.sessions).filter(([, e]) => e.status === 'logged_in');\n  }\n\n  /** Number of sessions. */\n  get size(): number {\n    return this.sessions.size;\n  }\n\n  /**\n   * Start the keepalive interval. Pings keepalive endpoints for all active sessions.\n   * Returns a stop function to cancel the interval.\n   */\n  startKeepalive(): () => void {\n    if (this.intervalHandle) {\n      return () => this.stopKeepalive();\n    }\n    logger.debug(`[keepalive] Starting keepalive (every ${KEEPALIVE_INTERVAL_MS / 1000}s)`);\n    this.intervalHandle = setInterval(() => void this.runKeepalive(), KEEPALIVE_INTERVAL_MS);\n    // The heartbeat must never be the thing holding a process open — a CLI run\n    // that finished its scrape should exit, not ping forever. unref doesn't\n    // exist on React Native's timers, where there is no process to hold open.\n    const handle = this.intervalHandle as unknown as { unref?: () => void };\n    if (typeof handle.unref === 'function') handle.unref();\n    return () => this.stopKeepalive();\n  }\n\n  /**\n   * Idempotently enroll a request in the keepalive heartbeat.\n   *\n   * Called by makeAuthenticatedRequest after every successful authenticated\n   * request, so any session actively being used stays alive between uses\n   * without the client having to manage intervals itself. If the request is\n   * already registered (under any token — the CLI and tests register under\n   * their own), its entry is just marked logged_in again, which is also how a\n   * renewed session re-enters the ping rotation after being marked expired.\n   */\n  registerForKeepalive(request: MyChartRequest) {\n    for (const entry of this.sessions.values()) {\n      if (entry.request === request) {\n        entry.status = 'logged_in';\n        this.startKeepalive();\n        return;\n      }\n    }\n    this.autoTokenCounter++;\n    this.set(`auto:${request.hostname}:${this.autoTokenCounter}`, request);\n    this.startKeepalive();\n  }\n\n  /** Stop the keepalive interval. */\n  stopKeepalive() {\n    if (this.intervalHandle) {\n      clearInterval(this.intervalHandle);\n      this.intervalHandle = null;\n      logger.debug('[keepalive] Stopped');\n    }\n  }\n\n  /** Run a single keepalive cycle. Pings /Home for each active session. */\n  async runKeepalive() {\n    const activeSessions = this.active();\n    const allSessions = Array.from(this.sessions.entries());\n    const statusSummary = allSessions.map(([, e]) => `${e.hostname}:${e.status}`).join(', ');\n    logger.debug(`[keepalive] Cycle start | total=${this.sessions.size} active=${activeSessions.length} | ${statusSummary || 'none'}`);\n\n    for (const [token, entry] of activeSessions) {\n      await this.pingSession(token, entry);\n    }\n  }\n\n  /**\n   * Ping a single session using MyChart's actual keepalive endpoints.\n   * MyChart's JS calls both /Home/KeepAlive and /keepalive.asp every 30s.\n   * Each returns \"1\" if alive, \"0\" if expired.\n   */\n  private async pingSession(token: string, entry: SessionEntry) {\n    const label = token.length > 12 ? token.slice(0, 8) + '...' : token;\n    const host = entry.hostname;\n    this.keepAliveCounter++;\n    const cnt = this.keepAliveCounter;\n    const sessionAge = Math.round((Date.now() - entry.createdAt.getTime()) / 1000);\n    try {\n      const infoBefore = entry.request.getCookieInfo();\n      logger.debug(`[keepalive] ${label} (${host}): ping #${cnt} | age=${sessionAge}s cookies=${infoBefore.count} [${infoBefore.names.join(', ')}]`);\n\n      const start = Date.now();\n      const [dotNetResp, aspResp] = await Promise.all([\n        entry.request.makeRequest({\n          path: `/Home/KeepAlive?cnt=${cnt}`,\n          followRedirects: false,\n        }),\n        entry.request.makeRequest({\n          path: `/keepalive.asp?cnt=${cnt}`,\n          followRedirects: false,\n        }),\n      ]);\n      const elapsed = Date.now() - start;\n\n      const dotNetBody = await dotNetResp.text();\n      const aspBody = await aspResp.text();\n      const dotNetStatus = dotNetResp.status;\n      const aspStatus = aspResp.status;\n      const dotNetLocation = dotNetResp.headers.get('Location') ?? '';\n      const aspLocation = aspResp.headers.get('Location') ?? '';\n\n      logger.debug(\n        `[keepalive] ${label} (${host}): response in ${elapsed}ms | ` +\n        `KeepAlive: status=${dotNetStatus} body=\"${dotNetBody.trim().slice(0, 50)}\" location=\"${dotNetLocation}\" | ` +\n        `keepalive.asp: status=${aspStatus} body=\"${aspBody.trim().slice(0, 50)}\" location=\"${aspLocation}\"`\n      );\n\n      // \"0\" means session explicitly expired.\n      // Only trust /Home/KeepAlive — keepalive.asp returns \"0\" on many modern MyChart\n      // instances even when the session is alive (endpoint may not exist → 404/empty).\n      // If keepalive.asp also returns \"0\" we log it, but it doesn't drive expiry alone.\n      //\n      // A dead heartbeat never logs back in from here: that turned one\n      // instance's heartbeat into a passkey sign-in every 30s for hours. The\n      // next real request renews on demand (makeAuthenticatedRequest), and its\n      // success puts the session back in rotation.\n      if (dotNetBody.trim() === '0') {\n        logger.warn(`[keepalive] ${label} (${host}): EXPIRED — /Home/KeepAlive returned \"0\" (keepalive.asp=${aspBody.trim()})`);\n        entry.status = 'expired';\n        return;\n      }\n      if (aspBody.trim() === '0') {\n        logger.warn(`[keepalive] ${label} (${host}): keepalive.asp returned \"0\" but /Home/KeepAlive returned \"${dotNetBody.trim()}\" — treating as alive`);\n      }\n\n      if (dotNetStatus === 200 || aspStatus === 200) {\n        this.keepAliveErrors.delete(token);\n        const infoAfter = entry.request.getCookieInfo();\n        logger.debug(`[keepalive] ${label} (${host}): ALIVE | cookies: ${infoBefore.count} -> ${infoAfter.count}`);\n        return;\n      }\n\n      // Neither endpoint returned 200 — likely a redirect to login page\n      logger.warn(\n        `[keepalive] ${label} (${host}): EXPIRED — neither endpoint returned 200 | ` +\n        `KeepAlive: ${dotNetStatus} -> \"${dotNetLocation}\" | keepalive.asp: ${aspStatus} -> \"${aspLocation}\"`\n      );\n      entry.status = 'expired';\n    } catch (err) {\n      const errorCount = (this.keepAliveErrors.get(token) ?? 0) + 1;\n      this.keepAliveErrors.set(token, errorCount);\n      const errMsg = (err as Error).message;\n      const errStack = (err as Error).stack ?? '';\n      logger.error(\n        `[keepalive] ${label} (${host}): network error (${errorCount}/${KEEPALIVE_MAX_ERRORS}) — ${errMsg}\\n` +\n        errStack.split('\\n').slice(0, 3).join('\\n')\n      );\n      if (errorCount >= KEEPALIVE_MAX_ERRORS) {\n        logger.error(`[keepalive] ${label} (${host}): marking as ERROR after ${KEEPALIVE_MAX_ERRORS} consecutive failures`);\n        entry.status = 'error';\n        this.keepAliveErrors.delete(token);\n      }\n    }\n  }\n}\n\n/**\n * Singleton session store via globalThis.\n * Next.js bundles each API route separately, so a plain module-level singleton\n * creates separate instances per bundle. Using globalThis ensures all bundles\n * (API routes, instrumentation, etc.) share the same SessionStore.\n */\nconst globalKey = '__mychart_session_store__' as const;\nexport const sessionStore: SessionStore =\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  (globalThis as any)[globalKey] ??= new SessionStore();\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Silent session renewal — the one place an expired MyChart session is\n * re-logged-in and put back on the right patient.\n *\n * Only a real request renews (`makeAuthenticatedRequest`, when it bounces to\n * the login page) — never the keepalive heartbeat, whose \"dead\" turned into a\n * sign-in every 30 seconds on one instance. This is deliberately a LEAF\n * module, importing nothing from the scraper layer, so the graph stays acyclic:\n *\n *   makeAuthenticatedRequest ─→ sessionRenewal ─→ (nothing)\n *   proxyContext ─→ makeAuthenticatedRequest\n *\n * What makes the leaf possible is that both capabilities renewal needs travel\n * ON the request object itself: `reauthenticate` (wired by each client at\n * login) and `restoreProxyContext` (armed by proxyContext whenever the active\n * patient is recorded, alongside `activeProxyTarget`). Renewal calls them; it\n * doesn't need to know where they come from.\n */\n\nimport type { MyChartRequest } from './myChartRequest';\nimport { logger } from '../../../shared/logger';\n\n// Per-request-object renewal state. WeakMap rather than fields on the class so\n// the transport stays serialization-clean.\ntype RenewalState = { renewPromise: Promise<boolean> | null };\nconst renewalStates = new WeakMap<MyChartRequest, RenewalState>();\n\nfunction stateFor(mychartRequest: MyChartRequest): RenewalState {\n  let state = renewalStates.get(mychartRequest);\n  if (!state) {\n    state = { renewPromise: null };\n    renewalStates.set(mychartRequest, state);\n  }\n  return state;\n}\n\n/**\n * Renew an expired session via the request's `reauthenticate` hook, then\n * restore the active proxy patient if the session had been switched to one.\n *\n * Single-flight per request object: concurrent callers all await the same\n * renewal.\n */\nexport async function renewMyChartSession(mychartRequest: MyChartRequest): Promise<boolean> {\n  const state = stateFor(mychartRequest);\n  state.renewPromise ??= doRenew(mychartRequest).finally(() => {\n      state.renewPromise = null;\n    });\n  return state.renewPromise;\n}\n\nasync function doRenew(mychartRequest: MyChartRequest): Promise<boolean> {\n  const reauthenticate = mychartRequest.reauthenticate;\n  if (!reauthenticate) {\n    logger.debug(`MyChart session for ${mychartRequest.hostname} expired and no reauthenticate hook is wired.`);\n    return false;\n  }\n\n  logger.warn(`MyChart session for ${mychartRequest.hostname} expired — attempting automatic re-login.`);\n  let loggedIn: boolean;\n  try {\n    loggedIn = await reauthenticate();\n  } catch (error) {\n    logger.error(`Automatic re-login for ${mychartRequest.hostname} threw:`, error);\n    return false;\n  }\n  if (!loggedIn) {\n    logger.warn(`Automatic re-login for ${mychartRequest.hostname} was not possible.`);\n    return false;\n  }\n\n  // Re-login resets MyChart's server-side proxy context to the account holder.\n  // If this session had been deliberately switched to another patient's\n  // record, put it back BEFORE any caller retries — a renewed session that\n  // silently reads the wrong patient's chart is the one failure this app must\n  // never produce. `restoreProxyContext` is armed together with\n  // `activeProxyTarget` (see proxyContext); it re-runs the verified switch\n  // with autoRenew: false, so it can only ever fail, never re-enter this\n  // renewal. A recorded non-self target with no restore closure fails the\n  // renewal outright — never retry on the wrong chart.\n  const target = mychartRequest.activeProxyTarget;\n  if (target && !target.isSelf) {\n    const restore = mychartRequest.restoreProxyContext;\n    if (!restore) {\n      logger.error(\n        `Re-login for ${mychartRequest.hostname} succeeded but no restore hook is armed for the active patient record ('${target.displayName}').`,\n      );\n      return false;\n    }\n    try {\n      await restore();\n    } catch (error) {\n      logger.error(\n        `Re-login for ${mychartRequest.hostname} succeeded but restoring the active patient record ('${target.displayName}') failed:`,\n        error,\n      );\n      return false;\n    }\n  }\n\n  logger.info(`MyChart session for ${mychartRequest.hostname} renewed.`);\n  return true;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * makeAuthenticatedRequest — MyChartRequest.makeRequest for post-login calls.\n *\n * MyChart answers an expired session by bouncing the request to the login\n * page: a 302 to /Authentication/Login that a redirect-following client turns\n * into a 200 HTML login page. A scraper that doesn't check lands in one of two\n * failure modes: `.json()` throws on the HTML, or — far worse for a health\n * app — a token-extraction guard quietly returns an empty result and an\n * expired session renders as \"this patient has no allergies\".\n *\n * This wrapper is the one place that failure is handled. It detects the login\n * bounce, silently re-logs-in through the `reauthenticate` hook the client\n * wired onto the request (single-flight — a 30-category scrape whose session\n * dies mid-run triggers ONE re-login, not thirty), restores the active proxy\n * patient if the session had been switched to one, retries the original\n * request exactly once, and keeps the session registered for the 30-second\n * keepalive heartbeat so expiry stays rare in the first place. Only when all\n * of that fails does the caller see a typed `SessionExpiredError` — never a\n * fake-empty result.\n *\n * Division of labor with `makeRequest`: the raw method stays the transport for\n * everything pre-login — mount discovery, DoLogin, 2FA, terms, the keepalive\n * pings themselves — which is also what makes this wrapper safe: the re-login\n * path is built entirely from raw calls (plus `autoRenew: false` wrapped\n * calls), so a renewal can never end up awaiting its own single-flight\n * promise.\n */\n\nimport type { MyChartRequest } from './myChartRequest';\nimport type { RequestConfig } from './types';\nimport { looksLikeSignedOutPage } from './signedOutPage';\nimport { sessionStore } from './sessionStore';\nimport { renewMyChartSession } from './sessionRenewal';\nimport { sendTelemetryEvent } from '../../../shared/telemetry';\n\n// Re-exported for callers that treat this module as the session-expiry\n// surface (the npm package's index, tests). The implementation lives in\n// sessionRenewal.ts — a leaf module — so this file, sessionStore and\n// proxyContext form an acyclic graph.\nexport { renewMyChartSession } from './sessionRenewal';\n\n/**\n * An expired MyChart session that could not be renewed automatically — either\n * no `reauthenticate` hook is wired, the hook failed (password changed,\n * interactive 2FA required), or the renewed session was bounced again.\n * Clients catch this at their boundary and tell the user to sign in again.\n */\nexport class SessionExpiredError extends Error {\n  constructor(message?: string) {\n    super(message ?? 'The MyChart session has expired and could not be renewed automatically. Sign in again to continue.');\n    this.name = 'SessionExpiredError';\n  }\n}\n\nexport type AuthenticatedRequestOptions = {\n  /**\n   * When false, a login bounce throws SessionExpiredError immediately instead\n   * of attempting a re-login. This is how the renewal path calls back into\n   * wrapped code (proxy-context restore) without any chance of waiting on its\n   * own in-flight renewal. Defaults to true. Callers forward a possibly-undefined\n   * value straight through and the read is `=== false`, so an explicit undefined\n   * is identical to an absent key.\n   */\n  autoRenew?: boolean | undefined;\n};\n\nconst LOGIN_URL_RE = /\\/authentication\\/login/i;\n\nconst REDIRECT_STATUSES = [301, 302, 303, 307, 308];\n\n/**\n * Rebuild a Response whose body has been read, so callers can still call\n * `.text()` / `.json()` as if nothing happened. `Response.url` is read-only\n * and empty on constructed responses, so it's carried over explicitly.\n */\nfunction rebuildResponse(original: Response, bodyText: string): Response {\n  const rebuilt = new Response(bodyText, {\n    status: original.status,\n    statusText: original.statusText,\n    headers: original.headers,\n  });\n  Object.defineProperty(rebuilt, 'url', { value: original.url });\n  return rebuilt;\n}\n\n/**\n * Make the request and decide whether the response is actually the login page.\n *\n * Three signals, cheapest first:\n *  1. The final URL is /Authentication/Login — covers both the Node path\n *     (makeRequest recursed through the 302 chain) and iOS (the platform fetch\n *     auto-follows, so only the final URL survives).\n *  2. An unfollowed redirect whose Location is the login page, for callers\n *     that pass `followRedirects: false`.\n *  3. A 200 HTML body bearing markers that only ever appear on the login page\n *     (see looksLikeSignedOutPage) — the fallback for platforms where the URL\n *     isn't reported. Reading the body is fine (MyChart bodies are small); the\n *     response is rebuilt so the caller can still consume it. Non-HTML\n *     responses (JSON, PDFs, images) are never touched.\n */\nasync function requestDetectingSignOut(\n  mychartRequest: MyChartRequest,\n  config: RequestConfig,\n): Promise<{ response: Response; signedOut: boolean }> {\n  const response = await mychartRequest.makeRequest(config);\n\n  if (LOGIN_URL_RE.test(response.url ?? '')) {\n    return { response, signedOut: true };\n  }\n\n  if (REDIRECT_STATUSES.includes(response.status)) {\n    const location = response.headers.get('Location') ?? '';\n    if (LOGIN_URL_RE.test(location)) {\n      return { response, signedOut: true };\n    }\n  }\n\n  const contentType = response.headers.get('content-type') ?? '';\n  if (response.status === 200 && contentType.includes('text/html')) {\n    const text = await response.text();\n    return { response: rebuildResponse(response, text), signedOut: looksLikeSignedOutPage(text) };\n  }\n\n  return { response, signedOut: false };\n}\n\n/**\n * Keep the session alive between requests: register it with the shared\n * keepalive (30s /Home/KeepAlive pings, matching MyChart's own JS) after any\n * successful authenticated request. Registration is idempotent, and the\n * interval never holds a process open (see sessionStore).\n */\nfunction registerKeepalive(mychartRequest: MyChartRequest) {\n  if (mychartRequest.disableAutoKeepalive) return;\n  sessionStore.registerForKeepalive(mychartRequest);\n}\n\n/**\n * Drop-in replacement for `mychartRequest.makeRequest(config)` for every\n * post-login call. Same config, same Response back; the login-bounce handling\n * documented at the top of this file happens in between.\n */\nexport async function makeAuthenticatedRequest(\n  mychartRequest: MyChartRequest,\n  config: RequestConfig,\n  options?: AuthenticatedRequestOptions,\n): Promise<Response> {\n  const first = await requestDetectingSignOut(mychartRequest, config);\n  if (!first.signedOut) {\n    registerKeepalive(mychartRequest);\n    return first.response;\n  }\n\n  if (options?.autoRenew === false) {\n    throw new SessionExpiredError();\n  }\n\n  const renewed = await renewMyChartSession(mychartRequest);\n  // How often each host needs a re-login, and which request found the session\n  // dead — a host that re-logs-in on most requests isn't keeping its sessions.\n  // The query string is dropped: it can carry record ids.\n  sendTelemetryEvent('scraper_relogin', {\n    hostname: mychartRequest.hostname,\n    path: config.path?.split('?')[0] ?? (config.url ? new URL(config.url).pathname : ''),\n    renewed,\n  }, 'scraper');\n  if (!renewed) {\n    throw new SessionExpiredError();\n  }\n\n  const second = await requestDetectingSignOut(mychartRequest, config);\n  if (second.signedOut) {\n    throw new SessionExpiredError(\n      'The MyChart session expired, and the request was signed out again immediately after a successful re-login.',\n    );\n  }\n  registerKeepalive(mychartRequest);\n  return second.response;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { makeAuthenticatedRequest } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { getRequestVerificationTokenFromBody } from '../../core/util';\n\n/**\n * Fetch the request verification token that every `/api/conversations/*` and\n * `/api/medicaladvicerequests/*` POST has to carry, by loading the communication\n * center page it is embedded in.\n *\n * Leaf module on purpose: every messaging module needs this, and several of them\n * import each other, so it lives apart from any of them to keep the graph acyclic.\n *\n * Returns undefined when the page has no token — callers decide what that means.\n */\nexport async function getVerificationToken(mychartRequest: MyChartRequest): Promise<string | undefined> {\n  const res = await makeAuthenticatedRequest(mychartRequest, { path: '/app/communication-center' });\n  const html = await res.text();\n  return getRequestVerificationTokenFromBody(html);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * An error whose full explanation names chart data: a family member, a\n * document, a provider, what MyChart's page said. `message` says what went\n * wrong without any of it, and is all that error reporting (Sentry, analytics)\n * reads. `detailedMessage` is the full explanation, shown to Claude and the user.\n */\nexport class DetailedError extends Error {\n  readonly detailedMessage: string;\n\n  constructor(message: string, detailed: string) {\n    super(message);\n    this.detailedMessage = detailed;\n  }\n}\n\n/** What to show Claude or the user for anything thrown: the detailed message when there is one. */\nexport function detailedMessage(err: unknown): string {\n  if (!(err instanceof Error)) return String(err);\n  const detailed = (err as Partial<DetailedError>).detailedMessage;\n  return typeof detailed === 'string' ? detailed : err.message;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Attaching files to an outgoing message or reply.\n *\n * The portal's composer (`epic.px.client.message-composer` with\n * `epic.px.client.file-upload`) does it in two steps before the send: it\n * checks each file against `GetComposeSettings`' `attachmentSettings`, then\n * posts them as multipart to `DocumentUpload/UploadFile` — mount-relative, not\n * under `/api/` — and puts the `DocumentId` of each into the send body's\n * `documentIds`. The upload fields are the composer's own:\n * `{ isPending: true, addDCSToCache: true, dcsSource: \"820\" }`.\n */\nimport { makeAuthenticatedRequest } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport type { FilePayload } from '../../core/filePayload';\nimport { DetailedError } from '../../../../shared/detailedError';\n\n/** `GetComposeSettings`' `attachmentSettings`. File sizes are in KB. */\nexport interface AttachmentSettings {\n  canAttach: boolean;\n  maxNumberOfAttachments: number;\n  docAndImageSettings: { maxFileSize: number; allowedFileExtensions: string[] };\n  videoSettings: { maxFileSize: number; allowedFileExtensions: string[] };\n}\n\nasync function getAttachmentSettings(\n  mychartRequest: MyChartRequest,\n  token: string,\n  organizationId = '',\n): Promise<AttachmentSettings | undefined> {\n  const res = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/conversations/GetComposeSettings',\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json; charset=utf-8',\n      '__RequestVerificationToken': token,\n    },\n    body: JSON.stringify({ organizationId }),\n  });\n  if (!res.ok) return undefined;\n  const data = await res.json().catch(() => null) as { attachmentSettings?: AttachmentSettings } | null;\n  return data?.attachmentSettings ?? undefined;\n}\n\n// The composer's own filename check: an extension, and none of these.\nconst FORBIDDEN_NAME_CHARS = /[/\\\\:*?\"<>|]/;\n\nfunction extensionOf(fileName: string): string {\n  const dot = fileName.lastIndexOf('.');\n  return dot === -1 ? '' : fileName.slice(dot + 1).toUpperCase();\n}\n\n/**\n * Why these files can't go on this instance, or undefined when they can.\n * Mirrors the composer's validation, so a file it would refuse is refused here\n * with its reason rather than sent to be rejected by the server.\n */\nexport function checkAttachments(files: readonly FilePayload[], settings: AttachmentSettings): string | undefined {\n  if (!settings.canAttach) return 'This MyChart does not allow attachments on messages.';\n  if (files.length > settings.maxNumberOfAttachments) {\n    return `This MyChart allows at most ${settings.maxNumberOfAttachments} attachment(s) per message; got ${files.length}.`;\n  }\n  const docs = settings.docAndImageSettings;\n  const videos = settings.videoSettings;\n  const allowed = (list: string[]) => list.map((e) => e.toUpperCase());\n  const docExts = allowed(docs.allowedFileExtensions);\n  const videoExts = allowed(videos.allowedFileExtensions);\n  for (const file of files) {\n    const ext = extensionOf(file.fileName);\n    if (!ext || FORBIDDEN_NAME_CHARS.test(file.fileName)) {\n      return `\"${file.fileName}\" needs a file extension and none of / \\\\ : * ? \" < > | in its name.`;\n    }\n    const sizeKb = file.bytes.length / 1024;\n    const limitKb = docExts.includes(ext) ? docs.maxFileSize : videoExts.includes(ext) ? videos.maxFileSize : undefined;\n    if (limitKb === undefined) {\n      return `\"${file.fileName}\": this MyChart accepts only ${[...docExts, ...videoExts].join(', ')} files.`;\n    }\n    if (sizeKb > limitKb) {\n      return `\"${file.fileName}\" is ${Math.ceil(sizeKb)} KB; this MyChart's limit for ${ext} files is ${limitKb} KB.`;\n    }\n  }\n  return undefined;\n}\n\nconst encoder = new TextEncoder();\n\n/** A `multipart/form-data` body laid out the way a browser's FormData is. */\nexport function buildUploadBody(\n  files: readonly FilePayload[],\n  organizationId: string,\n): { body: Uint8Array<ArrayBuffer>; contentType: string } {\n  const boundary = `----OpenRecordFormBoundary${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`;\n  const parts: Uint8Array[] = [];\n  const quote = (s: string) => s.replace(/[\"\\r\\n]/g, (c) => encodeURIComponent(c));\n\n  for (const file of files) {\n    parts.push(encoder.encode(\n      `--${boundary}\\r\\n` +\n      `Content-Disposition: form-data; name=\"__file__[]\"; filename=\"${quote(file.fileName)}\"\\r\\n` +\n      `Content-Type: ${file.mimeType || 'application/octet-stream'}\\r\\n\\r\\n`,\n    ));\n    parts.push(file.bytes);\n    parts.push(encoder.encode('\\r\\n'));\n  }\n  const fields: Array<[string, string]> = [\n    ['AddDCSToCache', 'true'],\n    ['IsPending', 'true'],\n    ['DCSSource', '820'],\n    ['TargetPatientID', ''],\n    ['OrganizationId', organizationId],\n  ];\n  for (const [name, value] of fields) {\n    parts.push(encoder.encode(`--${boundary}\\r\\nContent-Disposition: form-data; name=\"${name}\"\\r\\n\\r\\n${value}\\r\\n`));\n  }\n  parts.push(encoder.encode(`--${boundary}--\\r\\n`));\n\n  const body = new Uint8Array(parts.reduce((n, p) => n + p.length, 0));\n  let offset = 0;\n  for (const part of parts) {\n    body.set(part, offset);\n    offset += part.length;\n  }\n  return { body, contentType: `multipart/form-data; boundary=${boundary}` };\n}\n\ntype UploadResponse = { Success?: boolean; Data?: Array<{ DocumentId?: string }> | null };\n\nfunction parseUploadResponse(text: string): UploadResponse | null {\n  try {\n    return JSON.parse(text) as UploadResponse;\n  } catch {\n    return null;\n  }\n}\n\n/** Upload files for a message, returning their `DocumentId`s in order. Throws on any failure. */\nasync function uploadAttachments(\n  mychartRequest: MyChartRequest,\n  token: string,\n  files: readonly FilePayload[],\n  organizationId = '',\n): Promise<string[]> {\n  const { body, contentType } = buildUploadBody(files, organizationId);\n  const res = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/DocumentUpload/UploadFile',\n    method: 'POST',\n    headers: {\n      'Content-Type': contentType,\n      'Accept': 'application/json',\n      '__RequestVerificationToken': token,\n    },\n    body,\n  });\n  const text = await res.text();\n  const data = parseUploadResponse(text);\n  const ids = (data?.Data ?? []).map((d) => d.DocumentId ?? '');\n  if (!res.ok || !data?.Success || ids.length !== files.length || ids.some((id) => !id)) {\n    throw new DetailedError(\n      `Attachment upload failed with status ${res.status} (${ids.filter(Boolean).length} of ${files.length} files stored).`,\n      `Attachment upload failed with status ${res.status}: ${JSON.stringify(text.slice(0, 500))}`,\n    );\n  }\n  return ids;\n}\n\n/**\n * Check then upload, the composer's order. Returns the `documentIds` for the\n * send body, or the reason nothing was uploaded.\n */\nexport async function prepareAttachments(\n  mychartRequest: MyChartRequest,\n  token: string,\n  files: readonly FilePayload[],\n  organizationId = '',\n): Promise<{ documentIds: string[] } | { error: string }> {\n  if (files.length === 0) return { documentIds: [] };\n  const settings = await getAttachmentSettings(mychartRequest, token, organizationId);\n  if (!settings) return { error: 'Could not load this MyChart\\'s attachment settings (GetComposeSettings).' };\n  const refusal = checkAttachments(files, settings);\n  if (refusal) return { error: refusal };\n  try {\n    return { documentIds: await uploadAttachments(mychartRequest, token, files, organizationId) };\n  } catch (e) {\n    return { error: (e as Error).message };\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Send a new message (medical advice request) to a provider in MyChart.\n *\n * Flow:\n * 1. Get request verification token from /app/communication-center\n * 2. GetSubtopics - get available message topics/categories\n * 3. GetMedicalAdviceRequestRecipients - get list of providers\n * 4. GetViewers - get patient viewer info (wprId)\n * 5. GetComposeId - get unique compose ID\n * 6. With attachments: GetComposeSettings, then DocumentUpload/UploadFile\n * 7. SendMedicalAdviceRequest - send the message\n * 8. RemoveComposeId - cleanup\n */\n\nimport { makeAuthenticatedRequest } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport type { FilePayload } from '../../core/filePayload';\nimport { getVerificationToken } from './communicationCenterToken';\nimport { prepareAttachments } from './messageUpload';\nimport { logger } from '../../../../shared/logger';\n\nexport type MessageRecipient = {\n  recipientType: number;\n  displayName: string;\n  specialty: string;\n  userId: string;\n  departmentId: string;\n  poolId: string;\n  providerId: string;\n  organizationId: string;\n  pcpTypeDisplayName?: string;\n  photoUrl?: string;\n  /** Out-of-context flag; absent on most instances, required on some. */\n  oocContext?: number;\n};\n\nexport type MessageTopic = {\n  displayName: string;\n  value: string;\n};\n\nexport type SendNewMessageParams = {\n  /** The provider to send the message to */\n  recipient: MessageRecipient;\n  /** The topic/category of the message */\n  topic: MessageTopic;\n  /** The subject line of the message */\n  subject: string;\n  /** The message body text */\n  messageBody: string;\n  /** Organization ID (usually empty string for default org) */\n  organizationId?: string;\n  /** Files to attach; uploaded before the send. */\n  attachments?: readonly FilePayload[];\n};\n\nexport type SendNewMessageResult = {\n  success: boolean;\n  conversationId?: string;\n  error?: string;\n};\n\n/** Helper to make authenticated JSON POST requests to MyChart API */\nasync function makeApiRequest(\n  mychartRequest: MyChartRequest,\n  path: string,\n  body: unknown,\n  token: string,\n): Promise<{ status: number; json: unknown; text: string }> {\n  const res = await makeAuthenticatedRequest(mychartRequest, {\n    path,\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json; charset=utf-8',\n      '__RequestVerificationToken': token,\n    },\n    body: JSON.stringify(body),\n  });\n  const text = await res.text();\n  let json: unknown = null;\n  try {\n    json = JSON.parse(text);\n  } catch {\n    // not JSON\n  }\n  return { status: res.status, json, text };\n}\n\n/** Re-exported for the public API surface; the implementation is the shared leaf module. */\nexport { getVerificationToken };\n\n/** Get available message topics/subtopics */\nexport async function getMessageTopics(\n  mychartRequest: MyChartRequest,\n  token: string,\n  organizationId = '',\n): Promise<MessageTopic[]> {\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/medicaladvicerequests/GetSubtopics',\n    { organizationId },\n    token,\n  );\n  const data = result.json as { topicList?: MessageTopic[] } | null;\n  return data?.topicList ?? [];\n}\n\n/** Get list of providers who can receive messages */\nexport async function getMessageRecipients(\n  mychartRequest: MyChartRequest,\n  token: string,\n  organizationId = '',\n): Promise<MessageRecipient[]> {\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/medicaladvicerequests/GetMedicalAdviceRequestRecipients',\n    { organizationId },\n    token,\n  );\n  // Some instances return a bare array; others wrap it in an object.\n  if (Array.isArray(result.json)) {\n    return result.json as MessageRecipient[];\n  }\n  const data = result.json as Record<string, unknown> | null;\n  const list =\n    data?.recipients ??\n    data?.recipientList ??\n    data?.Providers ??\n    data?.providers ??\n    data?.ProviderList ??\n    data?.providerList;\n  return Array.isArray(list) ? (list as MessageRecipient[]) : [];\n}\n\n/** Get the viewer (patient) wprId needed for sending */\nasync function getViewerWprId(\n  mychartRequest: MyChartRequest,\n  token: string,\n  organizationId = '',\n): Promise<string | undefined> {\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/medicaladvicerequests/GetViewers',\n    { organizationId },\n    token,\n  );\n  const data = result.json as {\n    viewers?: Array<{ wprId: string; isSelf: boolean }>;\n  } | null;\n  const selfViewer = data?.viewers?.find((v) => v.isSelf);\n  return selfViewer?.wprId;\n}\n\n/** Get a compose ID for a new message */\nasync function getComposeId(\n  mychartRequest: MyChartRequest,\n  token: string,\n): Promise<string | undefined> {\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/conversations/GetComposeId',\n    {},\n    token,\n  );\n  if (typeof result.json === 'string') {\n    return result.json;\n  }\n  return undefined;\n}\n\n/** Remove a compose ID after sending */\nasync function removeComposeId(\n  mychartRequest: MyChartRequest,\n  token: string,\n  composeId: string,\n): Promise<void> {\n  await makeApiRequest(\n    mychartRequest,\n    '/api/conversations/RemoveComposeId',\n    { composeId },\n    token,\n  );\n}\n\nconst SEND_PATH = '/api/medicaladvicerequests/SendMedicalAdviceRequest';\n\n/**\n * The body `sendNewMessage` posts to `SEND_PATH`, split out so tests can send\n * the real shape rather than a hand-copied one that drifts from it.\n *\n * `recipientType` and `oocContext` are harmless on instances that ignore them\n * and required on some, so they always go out.\n */\nexport function buildSendPayload(\n  params: SendNewMessageParams,\n  session: { wprId: string; composeId: string; documentIds?: string[] },\n): Record<string, unknown> {\n  return {\n    recipient: {\n      recipientType: params.recipient.recipientType,\n      displayName: params.recipient.displayName,\n      userId: params.recipient.userId,\n      poolId: params.recipient.poolId,\n      providerId: params.recipient.providerId,\n      departmentId: params.recipient.departmentId,\n      oocContext: params.recipient.oocContext ?? 0,\n    },\n    topic: {\n      title: params.topic.displayName,\n      value: params.topic.value,\n    },\n    conversationId: '',\n    organizationId: params.organizationId ?? '',\n    viewers: [{ wprId: session.wprId }],\n    messageBody: [params.messageBody],\n    messageSubject: params.subject,\n    documentIds: session.documentIds ?? [],\n    includeOtherViewers: false,\n    composeId: session.composeId,\n  };\n}\n\n/**\n * Per-instance Epic quirk: the send endpoint answers HTTP 200 with an empty\n * conversation id, and files nothing, for message bodies over this length.\n * Measured, and modelled by fake-mychart — see the behavioral contract in\n * `fake-mychart/README.md`. Other instances may accept more; the\n * 200-without-id branch below still catches any silent drop regardless of\n * cause.\n */\nconst MAX_MESSAGE_BODY_LENGTH = 500;\n/** Cap on raw response-body text kept for diagnostics. */\nconst MAX_LOGGED_BODY = 2000;\n\n/**\n * Send a new message to a provider.\n *\n * This creates a new conversation (medical advice request). Never reports\n * success without a durable conversation id: some Epic instances answer\n * HTTP 200 with an empty body when they silently drop the request (e.g.\n * under-populated recipient or an over-limit body) — treated as\n * indeterminate, not success, because the caller cannot safely retry.\n */\nexport async function sendNewMessage(\n  mychartRequest: MyChartRequest,\n  params: SendNewMessageParams,\n): Promise<SendNewMessageResult> {\n  if (params.messageBody.length > MAX_MESSAGE_BODY_LENGTH) {\n    return {\n      success: false,\n      error: `Message body is ${params.messageBody.length} characters; an Epic instance we've tested silently drops bodies over ${MAX_MESSAGE_BODY_LENGTH}. Shorten the message or split it into multiple sends.`,\n    };\n  }\n  const organizationId = params.organizationId ?? '';\n\n  // Step 1: Get verification token\n  const token = await getVerificationToken(mychartRequest);\n  if (!token) {\n    return { success: false, error: 'Could not get verification token' };\n  }\n\n  // Step 2: Get viewer wprId\n  const wprId = await getViewerWprId(mychartRequest, token, organizationId);\n  if (!wprId) {\n    return { success: false, error: 'Could not get viewer wprId' };\n  }\n\n  // Step 3: Get compose ID\n  const composeId = await getComposeId(mychartRequest, token);\n  if (!composeId) {\n    return { success: false, error: 'Could not get compose ID' };\n  }\n\n  const prepared = await prepareAttachments(mychartRequest, token, params.attachments ?? [], organizationId);\n  if ('error' in prepared) {\n    await removeComposeId(mychartRequest, token, composeId);\n    return { success: false, error: prepared.error };\n  }\n\n  // Step 4: Send the message\n  const result = await makeApiRequest(\n    mychartRequest,\n    SEND_PATH,\n    buildSendPayload(params, { wprId, composeId, documentIds: prepared.documentIds }),\n    token,\n  );\n\n  // Step 5: Cleanup compose ID\n  await removeComposeId(mychartRequest, token, composeId);\n\n  if (result.status === 200 && typeof result.json === 'string' && result.json.length > 0) {\n    return { success: true, conversationId: result.json };\n  }\n  if (result.status === 200) {\n    // Some Epic instances answer 200 with an empty string when they silently\n    // drop the request (e.g. under-populated recipient). Treat as\n    // indeterminate, never success — and log the raw response for debugging.\n    const rawBody = result.text.slice(0, MAX_LOGGED_BODY);\n    logger.error(\n      '[sendMessage] indeterminate send: HTTP 200 without a conversation id. ' +\n      `path=${SEND_PATH} ` +\n      `body=${JSON.stringify(rawBody)}`,\n    );\n    return {\n      success: false,\n      error: 'Send returned HTTP 200 but no conversation id — indeterminate; ' +\n        'the message may not exist.',\n    };\n  }\n  return {\n    success: false,\n    error: `Send failed with status ${result.status}: ` +\n      JSON.stringify(result.text.slice(0, MAX_LOGGED_BODY)),\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Send a reply to an existing conversation in MyChart.\n *\n * Flow:\n * 1. Get request verification token from /app/communication-center\n * 2. GetConversationDetails - refuse a thread whose replyFlags.canReply is false\n * 3. GetViewers - get patient viewer info (wprId)\n * 4. GetComposeId - get unique compose ID\n * 5. With attachments: GetComposeSettings, then DocumentUpload/UploadFile\n * 6. SendReply - send the reply\n * 7. RemoveComposeId - cleanup\n */\n\nimport { makeAuthenticatedRequest } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport type { FilePayload } from '../../core/filePayload';\nimport { getVerificationToken } from './communicationCenterToken';\nimport { prepareAttachments } from './messageUpload';\n\nexport type SendReplyParams = {\n  /** The conversation ID (hthId) to reply to */\n  conversationId: string;\n  /** The reply message body text */\n  messageBody: string;\n  /** Organization ID (usually empty string for default org) */\n  organizationId?: string;\n  /** Files to attach; uploaded before the send. */\n  attachments?: readonly FilePayload[];\n};\n\nexport type SendReplyResult = {\n  success: boolean;\n  conversationId?: string;\n  error?: string;\n};\n\n/** Helper to make authenticated JSON POST requests to MyChart API */\nasync function makeApiRequest(\n  mychartRequest: MyChartRequest,\n  path: string,\n  body: unknown,\n  token: string,\n): Promise<{ status: number; json: unknown }> {\n  const res = await makeAuthenticatedRequest(mychartRequest, {\n    path,\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json; charset=utf-8',\n      '__RequestVerificationToken': token,\n    },\n    body: JSON.stringify(body),\n  });\n  const text = await res.text();\n  let json: unknown = null;\n  try {\n    json = JSON.parse(text);\n  } catch {\n    // not JSON\n  }\n  return { status: res.status, json };\n}\n\n/**\n * Why the thread can't take a reply, or `undefined` when it can. MyChart\n * answers SendReply to a closed thread with 200 and an empty id and files\n * nothing, so the check has to happen before the send.\n */\nasync function replyRefusal(\n  mychartRequest: MyChartRequest,\n  token: string,\n  conversationId: string,\n): Promise<string | undefined> {\n  // The read endpoints key the thread on `id`, not `conversationId`.\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/conversations/GetConversationDetails',\n    { id: conversationId, maxReadMessages: 1, PageNonce: '' },\n    token,\n  );\n  if (result.status !== 200) {\n    return `Could not read conversation ${conversationId} to check it accepts replies (status ${result.status})`;\n  }\n  // A literal `null` is MyChart saying the active patient has no such conversation.\n  if (result.json === null || typeof result.json !== 'object') {\n    return `MyChart has no conversation ${conversationId} on the active patient record — take the id from get_messages`;\n  }\n  const flags = (result.json as { replyFlags?: { canReply?: unknown } }).replyFlags;\n  if (flags?.canReply !== false) return undefined;\n  return `MyChart does not accept replies on conversation ${conversationId}. ` +\n    'Nothing was sent; send_message starts a new conversation instead.';\n}\n\n/** Get the viewer (patient) wprId needed for sending */\nasync function getViewerWprId(\n  mychartRequest: MyChartRequest,\n  token: string,\n  organizationId = '',\n): Promise<string | undefined> {\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/medicaladvicerequests/GetViewers',\n    { organizationId },\n    token,\n  );\n  const data = result.json as {\n    viewers?: Array<{ wprId: string; isSelf: boolean }>;\n  } | null;\n  const selfViewer = data?.viewers?.find((v) => v.isSelf);\n  return selfViewer?.wprId;\n}\n\n/** Get a compose ID for a new message */\nasync function getComposeId(\n  mychartRequest: MyChartRequest,\n  token: string,\n): Promise<string | undefined> {\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/conversations/GetComposeId',\n    {},\n    token,\n  );\n  if (typeof result.json === 'string') {\n    return result.json;\n  }\n  return undefined;\n}\n\n/** Remove a compose ID after sending */\nasync function removeComposeId(\n  mychartRequest: MyChartRequest,\n  token: string,\n  composeId: string,\n): Promise<void> {\n  await makeApiRequest(\n    mychartRequest,\n    '/api/conversations/RemoveComposeId',\n    { composeId },\n    token,\n  );\n}\n\n/**\n * Send a reply to an existing conversation.\n */\nexport async function sendReply(\n  mychartRequest: MyChartRequest,\n  params: SendReplyParams,\n): Promise<SendReplyResult> {\n  const organizationId = params.organizationId ?? '';\n\n  // Step 1: Get verification token\n  const token = await getVerificationToken(mychartRequest);\n  if (!token) {\n    return { success: false, error: 'Could not get verification token' };\n  }\n\n  // Step 2: Refuse a thread that does not take replies\n  const refusal = await replyRefusal(mychartRequest, token, params.conversationId);\n  if (refusal) {\n    return { success: false, error: refusal };\n  }\n\n  // Step 3: Get viewer wprId\n  const wprId = await getViewerWprId(mychartRequest, token, organizationId);\n  if (!wprId) {\n    return { success: false, error: 'Could not get viewer wprId' };\n  }\n\n  // Step 4: Get compose ID\n  const composeId = await getComposeId(mychartRequest, token);\n  if (!composeId) {\n    return { success: false, error: 'Could not get compose ID' };\n  }\n\n  // Step 5: Upload attachments\n  const prepared = await prepareAttachments(mychartRequest, token, params.attachments ?? [], organizationId);\n  if ('error' in prepared) {\n    await removeComposeId(mychartRequest, token, composeId);\n    return { success: false, error: prepared.error };\n  }\n\n  // Step 6: Send the reply\n  const sendBody = {\n    conversationId: params.conversationId,\n    organizationId,\n    viewers: [{ wprId }],\n    messageBody: [params.messageBody],\n    documentIds: prepared.documentIds,\n    includeOtherViewers: false,\n    composeId,\n  };\n\n  const result = await makeApiRequest(\n    mychartRequest,\n    '/api/conversations/SendReply',\n    sendBody,\n    token,\n  );\n\n  // Step 7: Cleanup compose ID\n  await removeComposeId(mychartRequest, token, composeId);\n\n  if (result.status === 200 && typeof result.json === 'string' && result.json.length > 0) {\n    return { success: true, conversationId: result.json };\n  }\n  // What a closed thread answers (200, empty string, nothing filed). The\n  // canReply check above should stop that first; this keeps a silent drop from\n  // ever reading as success.\n  if (result.status === 200 && result.json === '') {\n    return {\n      success: false,\n      error: 'MyChart accepted the reply but filed nothing (HTTP 200, empty conversation id).',\n    };\n  }\n\n  return {\n    success: false,\n    error: `Reply failed with status ${result.status}: ${JSON.stringify(result.json)}`,\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The raw envelope every read scraper returns.\n *\n * A scraper's job is to talk to MyChart and hand back exactly what MyChart\n * sent. Deciding what a caller gets to see is the processor's job\n * (`scrapers/myChart/processors/`). Half the scrapers issue more than one\n * request — labs is four list calls plus two or three per order, billing is a\n * page scrape plus three JSON calls per account, past visits pages — so \"the\n * raw HTTP response\" is a list of requests, not one body.\n *\n * `raw` output mode returns {@link unwrapRaw} of this: the single body when\n * there was one request, the whole envelope otherwise.\n *\n * A request MyChart did not answer properly — a 5xx, a WAF block page, the\n * ASP.NET error page a November 2025 instance bounces a failed request to —\n * is recorded and then THROWN as a {@link MyChartResponseError}, in every\n * output mode. It used to be recorded and left for the processor to notice,\n * and five of twenty-nine did; for the rest, a 500 read as `{}`, projected to\n * `[]`, and rendered as \"no allergies on file\". The same care that keeps an\n * expired session from reading as an empty chart applies to a server error.\n * A scraper whose request is genuinely best-effort opts out per call with\n * `tolerateFailure`, and its processor is then the one reporting the gap.\n */\n\nimport type { MyChartRequest } from './myChartRequest';\nimport type { RequestConfig } from './types';\nimport { makeAuthenticatedRequest, type AuthenticatedRequestOptions } from './makeAuthenticatedRequest';\nimport { requireVerificationToken } from './util';\nimport { DetailedError } from '../../../shared/detailedError';\n\nexport interface RawRequestRecord {\n  /** The path as sent, minus the `noCache` cache-buster. */\n  path: string;\n  method: 'GET' | 'POST';\n  /**\n   * The body we posted, when it matters for reading the response (an order\n   * key, a CSN, a page cursor). JSON bodies are recorded parsed.\n   */\n  requestBody?: unknown;\n  status: number;\n  contentType: string;\n  /** Parsed JSON when the response was JSON, otherwise the text. */\n  body: unknown;\n  /**\n   * `token` marks the activity-page fetch made only to obtain the antiforgery\n   * token. It is part of the exchange, so it is recorded, but it is not the\n   * payload: {@link unwrapRaw} looks past it.\n   */\n  purpose?: 'token';\n  /**\n   * Why the answer was not the data, when it was not\n   * ({@link describeResponseFailure}). Set on every failed record, tolerated\n   * or thrown, so a processor reading a tolerated record can tell Epic's\n   * 200 error page from data without repeating the classification.\n   */\n  failure?: string;\n}\n\nexport interface RawResponse {\n  requests: RawRequestRecord[];\n}\n\n/**\n * MyChart answered a request with something other than the data: a non-2xx\n * status, its own error page, or a WAF's block page. Thrown by\n * {@link RawCollector.send} after the answer is recorded, so the envelope a\n * tolerant caller keeps still shows what came back. Clients surface the\n * detailed message as-is; nothing about it is an empty chart.\n */\nexport class MyChartResponseError extends DetailedError {\n  readonly method: string;\n  readonly path: string;\n  readonly status: number;\n\n  constructor(record: RawRequestRecord, reason: string, excerpt: string, notServedActivity?: string) {\n    const lead = `MyChart answered ${record.method} ${record.path} with ${reason}`;\n    const rest =\n      '. The request failed; nothing was read, so this is not an empty result. ' +\n      'Retry later, and if it keeps failing the instance may be down or blocking this request shape.' +\n      // Both facts, not a verdict: a Home landing plus a 500 is what an\n      // instance that does not serve the activity answers (1 of 4 real\n      // accounts, one activity), but a WAF block or a passing 500 after the\n      // same landing reads identically here, and retrying does help those.\n      (notServedActivity\n        ? ` GET ${notServedActivity} had also landed on the Home page instead of the activity, which is how an ` +\n          'instance that does not serve it answers — if this keeps failing, this MyChart most likely has no such page.'\n        : '');\n    // What the page said only in the detailed message: a MyChart page can carry the patient's name.\n    super(lead + rest, lead + (excerpt ? `: \"${excerpt}\"` : '') + rest);\n    this.name = 'MyChartResponseError';\n    this.method = record.method;\n    this.path = record.path;\n    this.status = record.status;\n  }\n}\n\n/**\n * ASP.NET's error pages. A November 2025 instance answers a failed request\n * with a 302 to `/Home/FiveHundred` (or `/Home/FourOhFour`), which 302s on to\n * `/Home/Error?code=14`, a 200 HTML page — so after the redirects are\n * followed, the only trace of the failure is the URL the response came from.\n * An August 2025 instance answers a bare 500 instead, which the status catches.\n */\nconst ASPNET_ERROR_PAGE_RE = /\\/home\\/(error|fivehundred|fourohfour)(?:[/?#]|$)/i;\n\n/** F5's block page: HTTP 200, `text/html`, and this text where the data should be. */\nconst WAF_BLOCK_RE = /Request Rejected|The requested URL was rejected/i;\n\nfunction isAspNetErrorPage(url: string | null | undefined): boolean {\n  if (!url) return false;\n  let pathname = url;\n  try {\n    pathname = new URL(url).pathname;\n  } catch {\n    // A relative Location header: test it as-is.\n  }\n  return ASPNET_ERROR_PAGE_RE.test(pathname);\n}\n\n/**\n * Why a response is not the data it was asked for, or null when it might be.\n * Cheapest signal first. A redirect a caller asked to see for itself\n * (`followRedirects: false`) is only a failure when it points at the error\n * page; where it points otherwise is the caller's to read.\n *\n * The error-page check reads `response.url`, so it needs the transport to\n * report where the final response came from. Node and Bun do. On device the\n * transport is `expo/fetch` (`scrapers/http.ts`), whose `FetchResponse.url`\n * is the native response URL (`metadata.url`, checked in Expo SDK 57) — and\n * `makeRequest` follows redirects itself with `redirect: 'manual'`, so the\n * response being classified is always the last hop's own, not a\n * platform-followed one.\n */\nexport function describeResponseFailure(\n  response: Response,\n  text: string,\n  config: Pick<RequestConfig, 'followRedirects'>,\n): string | null {\n  const contentType = response.headers.get('content-type') ?? '';\n  if (response.status >= 300 && response.status < 400 && config.followRedirects === false) {\n    const location = response.headers.get('Location') ?? '';\n    return isAspNetErrorPage(location)\n      ? `HTTP ${response.status} to its error page ${location}`\n      : null;\n  }\n  if (response.status < 200 || response.status >= 300) {\n    return `HTTP ${response.status}${contentType ? ` (${contentType})` : ''}`;\n  }\n  if (isAspNetErrorPage(response.url)) {\n    return `HTTP ${response.status} from its error page ${response.url}`;\n  }\n  if (contentType.includes('text/html') && WAF_BLOCK_RE.test(text.slice(0, 2000))) {\n    return (\n      `HTTP ${response.status} and a WAF block page in place of the data — the request was rejected ` +\n      'by the web application firewall in front of MyChart, not answered by MyChart'\n    );\n  }\n  return null;\n}\n\n/** Whether a followed activity-page GET ended on `/Home` — a URL the transport reports, so '' when it cannot. */\nfunction landedOnHome(url: string): boolean {\n  try {\n    return /\\/home\\/?$/i.test(new URL(url).pathname);\n  } catch {\n    return false;\n  }\n}\n\n/**\n * The first line or so of a body, tags stripped, for an error message. This\n * is page text — an error page's apology, a WAF's support id — never chart\n * data: a failed answer carries none, which is the point. It does reach\n * whatever logs the error message.\n */\nfunction excerptOf(text: string): string {\n  const plain = text\n    .replace(/<script[\\s\\S]*?<\\/script>/gi, ' ')\n    .replace(/<style[\\s\\S]*?<\\/style>/gi, ' ')\n    .replace(/<[^>]+>/g, ' ')\n    .replace(/\\s+/g, ' ')\n    .trim();\n  return plain.length > 160 ? `${plain.slice(0, 157)}...` : plain;\n}\n\n/** Strip the cache-busting `noCache=<random>` query param scrapers append. */\nexport function displayPath(path: string): string {\n  return path\n    .replace(/([?&])noCache=[^&]*&?/, '$1')\n    .replace(/[?&]$/, '');\n}\n\nfunction parseRequestBody(config: RequestConfig): unknown {\n  if (config.body === undefined) return undefined;\n  if (typeof config.body !== 'string') return `<${config.body.length} bytes>`;\n  const contentType = config.headers?.['Content-Type'] ?? config.headers?.['content-type'] ?? '';\n  if (contentType.includes('json')) {\n    try {\n      return JSON.parse(config.body);\n    } catch {\n      return config.body;\n    }\n  }\n  return config.body;\n}\n\nexport interface SendOptions {\n  /** Marks the activity-page fetch made only for its antiforgery token. */\n  purpose?: 'token';\n  /**\n   * Record a failed answer and return it instead of throwing. Only for a\n   * request whose failure the scraper's processor reports as a gap\n   * (`externalProvidersUnavailable`), never for the payload.\n   */\n  tolerateFailure?: boolean;\n}\n\n/**\n * Records every request a scraper makes so the envelope is the untouched\n * record of the exchange. Wraps `makeAuthenticatedRequest`, so the session\n * expiry handling and the active-patient restore still apply to every call.\n */\nexport class RawCollector {\n  readonly requests: RawRequestRecord[] = [];\n  /**\n   * The activity page the last {@link pageToken} asked for, when the instance\n   * redirected it to Home instead. Not a failure by itself: a mistyped or\n   * guessed activity path lands on Home too and its API still answers. Only\n   * when the API then fails does it say why — the activity is not served here.\n   */\n  private tokenPageLandedOnHome: string | null = null;\n\n  constructor(\n    private readonly request: MyChartRequest,\n    private readonly options?: AuthenticatedRequestOptions,\n  ) {}\n\n  /**\n   * Issue a request (named `send`, not `fetch`: http.unit.test.ts greps the\n   * scrapers for bare `fetch(` calls, and this is not a second network path —\n   * it wraps makeAuthenticatedRequest), record it, and return the response\n   * plus its body: parsed JSON when the body parses as JSON, otherwise the\n   * text. The Response has already been read; use the returned body.\n   *\n   * An answer that is not the data ({@link describeResponseFailure}) is\n   * recorded and then thrown as a {@link MyChartResponseError}. With\n   * `tolerateFailure` it is recorded and returned with `failure` set instead —\n   * for a request that is best-effort by design (an optional endpoint, a\n   * speculative probe), whose processor then reports the gap honestly. Never\n   * for the payload: a tolerated 500 on the payload is the empty chart this\n   * exists to prevent.\n   */\n  async send(\n    config: RequestConfig,\n    options: SendOptions = {},\n  ): Promise<{ response: Response; body: unknown; text: string; failure: MyChartResponseError | null }> {\n    const response = await makeAuthenticatedRequest(this.request, config, this.options);\n    const text = await response.text();\n    const contentType = response.headers.get('content-type') ?? '';\n    let body: unknown = text;\n    if (text.length > 0) {\n      try {\n        body = JSON.parse(text);\n      } catch {\n        body = text;\n      }\n    }\n    const record: RawRequestRecord = {\n      path: displayPath(config.path ?? config.url ?? ''),\n      method: config.method ?? 'GET',\n      ...(config.body !== undefined ? { requestBody: parseRequestBody(config) } : {}),\n      status: response.status,\n      contentType,\n      body,\n      ...(options.purpose ? { purpose: options.purpose } : {}),\n    };\n    this.requests.push(record);\n\n    const reason = describeResponseFailure(response, text, config);\n    if (reason) record.failure = reason;\n    const notServed = record.method === 'POST' && this.tokenPageLandedOnHome ? this.tokenPageLandedOnHome : undefined;\n    // An API that answered proves the activity is served, whatever its page did.\n    if (!reason && record.method === 'POST') this.tokenPageLandedOnHome = null;\n    const failure = reason ? new MyChartResponseError(record, reason, excerptOf(text), notServed) : null;\n    if (failure && !options.tolerateFailure) throw failure;\n    return { response, body, text, failure };\n  }\n\n  /**\n   * Fetch an activity page and return its antiforgery token. Throws when the\n   * page has none — the API behind it would refuse every call anyway.\n   */\n  async pageToken(pagePath: string): Promise<string> {\n    const page = await this.send({ path: pagePath }, { purpose: 'token' });\n    this.tokenPageLandedOnHome = landedOnHome(page.response.url) ? pagePath : null;\n    return requireVerificationToken(page.text, pagePath);\n  }\n\n  /** POST a JSON body with the antiforgery token, the way the React `/api/*` routes expect. */\n  async postJson(path: string, token: string, body: unknown = {}, options: SendOptions = {}): Promise<unknown> {\n    const result = await this.send(\n      {\n        path,\n        method: 'POST',\n        headers: { 'Content-Type': 'application/json', __RequestVerificationToken: token },\n        body: JSON.stringify(body),\n      },\n      options,\n    );\n    return result.body;\n  }\n\n  /** The envelope so far. */\n  toRaw(): RawResponse {\n    return { requests: this.requests };\n  }\n}\n\n/**\n * What `raw` mode returns: the one payload body when the scraper made one\n * payload request (token-page fetches do not count), the whole envelope when\n * it made several. A CLI user asking for the raw medications payload wants\n * MyChart's JSON, not a wrapper around it and the page that carried the token.\n */\nexport function unwrapRaw(raw: RawResponse): unknown {\n  const payloads = raw.requests.filter((r) => r.purpose !== 'token');\n  return payloads.length === 1 ? payloads[0]!.body : raw;\n}\n\n/**\n * Whether a recorded request is the endpoint `name` names: its path (query\n * string aside, case aside) is `name`, or ends with `/name`. Whole segments\n * only — `Load` never matches `LoadExternal`, `GetFlowsheets` never matches\n * `GetFlowsheetReadings`. A substring match here once returned the outside\n * providers as the whole care team whenever `LoadExternal` answered first,\n * because parallel requests land in the envelope in whatever order they\n * resolved.\n */\nfunction isRequestFor(record: RawRequestRecord, name: string): boolean {\n  const pathname = record.path.split('?')[0]!.toLowerCase();\n  const needle = name.toLowerCase().replace(/^\\/+/, '');\n  return pathname === `/${needle}` || pathname === needle || pathname.endsWith(`/${needle}`);\n}\n\n/** The first recorded request for the endpoint `name` (a path, or its trailing segments). */\nexport function findRequest(raw: RawResponse, name: string): RawRequestRecord | undefined {\n  return raw.requests.find((r) => isRequestFor(r, name));\n}\n\n/** Every recorded request for the endpoint `name`. */\nexport function findRequests(raw: RawResponse, name: string): RawRequestRecord[] {\n  return raw.requests.filter((r) => isRequestFor(r, name));\n}\n\n/** The body of the first request for the endpoint `name`, or undefined. */\nexport function bodyOf(raw: RawResponse, name: string): unknown {\n  return findRequest(raw, name)?.body;\n}\n\n/** Whether a recorded request came back as the data: recorded, no `failure`, 2xx. */\nexport function answered(record: RawRequestRecord | undefined): record is RawRequestRecord {\n  return record !== undefined && record.failure === undefined && record.status >= 200 && record.status < 300;\n}\n\n/**\n * The body of the first request for `name` when it answered, otherwise\n * `undefined` — for a processor reading a request its scraper tolerated\n * (`tolerateFailure`). Reading `bodyOf` there would turn a recorded 500 into\n * `{}` and then into empty fields; this returns nothing, and the processor\n * reports the gap under a name (`contactInformationUnavailable`,\n * `unavailable: ['GetStatementList']`) instead of as empty data.\n */\nexport function okBodyOf(raw: RawResponse, name: string): unknown {\n  const record = findRequest(raw, name);\n  return answered(record) ? record.body : undefined;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Readers for untyped payloads.\n *\n * Processors run against whatever an Epic release actually sent, not against\n * what a type says it sent, so a field an instance omits has to come out as an\n * empty value rather than a crash mid-scrape. These never throw.\n */\n\n/** A payload with no response type: a bare record. */\nexport function rec(value: unknown): Record<string, unknown>;\n/**\n * A payload we have a response type for: `rec<LoadAllergies>(body)`.\n *\n * Those types live in each scraper's `mychart.types.ts` and record what real\n * instances answered, with every field optional — three instances out of ~750,\n * and the next one is free to omit any of it. So this checks the field *names*\n * (a typo, or a field no instance ever sent, does not compile) without\n * promising a value is there: it still has to come out through `text()` /\n * `num()` / `list()`. `as LoadAllergies` would check the same names and then\n * claim the values too, which is the crash these readers exist to prevent.\n */\nexport function rec<T>(value: unknown): T;\nexport function rec(value: unknown): unknown {\n  return value !== null && typeof value === 'object' && !Array.isArray(value) ? value : {};\n}\n\nexport function list(value: unknown): unknown[] {\n  return Array.isArray(value) ? value : [];\n}\n\nexport function text(value: unknown): string {\n  return typeof value === 'string' ? value : '';\n}\n\n/** A string, or null when MyChart sent nothing. Distinguishes \"\" from absent. */\nexport function textOrNull(value: unknown): string | null {\n  return typeof value === 'string' ? value : null;\n}\n\nexport function bool(value: unknown): boolean {\n  return value === true;\n}\n\n/** A boolean, or null when MyChart sent nothing. */\nexport function boolOrNull(value: unknown): boolean | null {\n  return typeof value === 'boolean' ? value : null;\n}\n\n/** A finite number, or null. */\nexport function num(value: unknown): number | null {\n  return typeof value === 'number' && Number.isFinite(value) ? value : null;\n}\n\n/** A list of strings, dropping anything that is not one. */\nexport function strings(value: unknown): string[] {\n  return list(value).filter((v): v is string => typeof v === 'string');\n}\n\n/** Epic's `/Date(1761851400000)/` as epoch millis, or null. */\nexport function epicInstantMs(value: unknown): number | null {\n  const match = /\\/Date\\((-?\\d+)\\)\\//.exec(text(value));\n  return match ? Number(match[1]) : null;\n}\n\n/** Epoch millis as ISO-8601 UTC, or null. */\nexport function isoFromMs(ms: number | null): string | null {\n  return ms === null ? null : new Date(ms).toISOString();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Markup to plain text, for the `<field>Text` fields.\n *\n * Markup never leaves `raw` (rule 9 in `docs/processor-layer-proposal.md`).\n * This produces the text the other modes carry, via `html-to-text`: block\n * elements become line breaks, headings sit on their own lines, list items\n * become bullets, tables become aligned columns. cheerio's `.text()` is not\n * enough on its own — it drops every block boundary, so a note's paragraphs,\n * list items and table cells run together into one line.\n *\n * The converter parses to a tree and never re-emits markup, so nothing it\n * returns is ever rendered as HTML downstream.\n */\n\nimport { convert, type HtmlToTextOptions } from 'html-to-text';\n\nconst OPTIONS: HtmlToTextOptions = {\n  wordwrap: false,\n  preserveNewlines: false,\n  selectors: [\n    // MyChart's notes are prose, not shouting: keep headings as written.\n    ...['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].map((selector) => ({ selector, options: { uppercase: false } })),\n    // A link's href is portal plumbing; its text is the content.\n    { selector: 'a', options: { ignoreHref: true } },\n    { selector: 'img', format: 'skip' },\n    { selector: 'ul', options: { itemPrefix: '- ' } },\n    { selector: 'ol', options: { itemPrefix: '- ' } },\n    // Lab and visit tables read as columns; header cells stay as written.\n    { selector: 'table', format: 'dataTable', options: { uppercaseHeaderCells: false } },\n  ],\n};\n\n/**\n * Trailing spaces on a line, non-breaking ones included.\n *\n * A blank line in Epic's message formatter is a paragraph holding a single\n * `&nbsp;`, and the converter hands that back as a line containing U+00A0 —\n * invisible, but not empty, so a body read as `\"...day.\\n\\u00a0\\nYour...\"`\n * rather than having the blank line the sender typed. Same story wherever\n * MyChart pads a cell or a heading out with spaces.\n */\nconst TRAILING_SPACE = /[^\\S\\r\\n]+$/gm;\n\n/** HTML (a fragment or a whole document) as plain text. */\nexport function htmlToText(html: string): string {\n  if (!html) return '';\n  return convert(html, OPTIONS).replace(TRAILING_SPACE, '').trim();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Conversations (inbox) processor. Field decisions:\n * docs/processor-layer-proposal.md, `get_messages`.\n *\n * The scraper records one `GetConversationList` answer per page. This merges\n * the pages into one list in inbox order, de-duplicated by `hthId`, with the\n * unread count from the first page and the paging summary from the last.\n *\n * The message element shape is shared with `get_message_thread`, so the\n * per-message projection and the name resolution live here and the thread\n * processor imports them.\n *\n * `senderName` follows the order the portal's own `getAuthorInfo` uses: a\n * `wprKey` resolves through `viewers`, an `empKey` through the conversation's\n * `userOverrideNames` and then the shared `users` map, and `displayName` is\n * the last resort. On every captured instance `displayName` is `\"\"` on every\n * message, so without the maps every message would be anonymous.\n *\n * Concise is the inbox as a list of threads — id, subject, who, when, and the\n * flags that change what a reader does next — and never the messages: the\n * listing only ever inlines the newest five of a thread, and a reader who\n * wants the messages takes the `hthId` to `get_message_thread`.\n */\n\nimport { findRequests, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { htmlToText } from '../../processors/htmlText';\nimport { bool, boolOrNull, list, num, rec, text, textOrNull } from '../../processors/read';\nimport type { Attachment, GetConversationList, Message, User, Viewer } from './mychart.types';\nimport type { ConversationStandard, ConversationsConcise, ConversationsStandard, MessageConcise, MessageDirectory, MessageStandard } from './standardized.types';\n\nexport type { ConversationStandard, ConversationsStandard, MessageAttachmentConcise, MessageAttachmentStandard, MessageConcise, MessageDirectory, MessageStandard } from './standardized.types';\n\n/** Read the three name maps off a conversation payload (or the listing that carries it). */\nexport function messageDirectory(...sources: unknown[]): MessageDirectory {\n  const directory: MessageDirectory = { users: {}, viewers: {}, userOverrideNames: {} };\n  for (const source of sources) {\n    const s = rec(source);\n    Object.assign(directory.users, rec(s.users));\n    Object.assign(directory.viewers, rec(s.viewers));\n    Object.assign(directory.userOverrideNames, rec(s.userOverrideNames));\n  }\n  return directory;\n}\n\n/**\n * MyChart identifies an author by key, not by role: staff carry an `empKey`,\n * patient-side viewers a `wprKey`. An author with a staff key is never the\n * patient, and one with only a viewer key always is.\n */\nexport function isFromPatient(author: unknown): boolean {\n  const a = rec(author);\n  return !text(a.empKey) && !!text(a.wprKey);\n}\n\nexport function senderName(author: unknown, directory: MessageDirectory): string {\n  const a = rec(author);\n  const wprKey = text(a.wprKey);\n  const empKey = text(a.empKey);\n  const displayName = text(a.displayName);\n  if (wprKey) return text(rec<Viewer>(directory.viewers[wprKey]).name) || displayName;\n  if (empKey) {\n    return text(directory.userOverrideNames[empKey]) || text(rec<User>(directory.users[empKey]).name) || displayName;\n  }\n  return displayName;\n}\n\nexport function messageStandard(value: unknown, directory: MessageDirectory): MessageStandard {\n  const m = rec<Message>(value);\n  const author = rec(m.author);\n  return {\n    wmgId: textOrNull(m.wmgId),\n    deliveryInstantISO: textOrNull(m.deliveryInstantISO),\n    senderName: senderName(author, directory),\n    isFromPatient: isFromPatient(author),\n    isUnread: boolOrNull(m.isUnread),\n    bodyText: htmlToText(text(m.body)),\n    author: { empKey: textOrNull(author.empKey), wprKey: textOrNull(author.wprKey) },\n    attachments: list(m.attachments).map((attachment) => {\n      const a = rec<Attachment>(attachment);\n      return { name: textOrNull(a.name), fileExtension: textOrNull(a.fileExtension), dcsId: textOrNull(a.dcsId), type: num(a.type) };\n    }),\n    tasks: list(m.tasks),\n    suggestedActions: list(m.suggestedActions),\n  };\n}\n\nexport function messageConcise(m: MessageStandard): MessageConcise {\n  return {\n    deliveryInstantISO: m.deliveryInstantISO,\n    senderName: m.senderName,\n    isFromPatient: m.isFromPatient,\n    bodyText: m.bodyText,\n    attachments: m.attachments.map((a) => ({ name: a.name, dcsId: a.dcsId })),\n  };\n}\n\nfunction conversationStandard(value: unknown, listing: GetConversationList): ConversationStandard {\n  const c = rec(value);\n  // The listing's `users` / `viewers` are shared; `userOverrideNames` is per conversation.\n  const directory = messageDirectory({ users: listing.users, viewers: listing.viewers }, { userOverrideNames: c.userOverrideNames });\n  const messages = list(c.messages).map((m) => messageStandard(m, directory));\n  // Pages arrive ascending by deliveryInstantISO; the newest is the max either way.\n  const latest = messages.reduce<string | null>(\n    (best, m) => (m.deliveryInstantISO !== null && (best === null || m.deliveryInstantISO > best) ? m.deliveryInstantISO : best),\n    null,\n  );\n  const audience = list(c.audience).map((a) => ({ name: textOrNull(rec(a).name) }));\n  const unread = boolOrNull(rec(c.tags).Unread);\n  return {\n    hthId: textOrNull(c.hthId),\n    subject: textOrNull(c.subject),\n    audience,\n    audienceNames: audience.map((a) => a.name ?? ''),\n    latestMessageInstantISO: latest,\n    tags: { Unread: unread },\n    hasUnreadMessages: unread,\n    hasUrgentMsgs: boolOrNull(c.hasUrgentMsgs),\n    hasMoreMessages: boolOrNull(c.hasMoreMessages),\n    previewText: textOrNull(c.previewText),\n    hasAttachments: boolOrNull(c.hasAttachments),\n    hasTasks: boolOrNull(c.hasTasks),\n    messageType: textOrNull(c.messageType),\n    messages,\n  };\n}\n\nexport const conversationsProcessor: Processor<ConversationsStandard> = {\n  standard(raw: RawResponse): ConversationsStandard {\n    const requests = findRequests(raw, 'GetConversationList');\n    const pages = requests.map((r) => rec<GetConversationList>(r.body));\n    const first = pages[0] ?? {};\n    const last = pages[pages.length - 1] ?? {};\n\n    const seen = new Set<string>();\n    const conversations: ConversationStandard[] = [];\n    for (const page of pages) {\n      for (const value of list(page.conversations)) {\n        const conversation = conversationStandard(value, page);\n        const key = conversation.hthId ?? '';\n        if (key && seen.has(key)) continue;\n        if (key) seen.add(key);\n        conversations.push(conversation);\n      }\n    }\n\n    const summary = rec(last.localSummary);\n    // The scraper stops with `hasMoreConversations` still set in two cases: at\n    // its page cap, and when a page ends at the very instant it asked to start\n    // from (asking again would loop forever). Only the cap leaves threads\n    // unread; the second is the server repeating itself, so the inbox is whole.\n    const askedFrom = text(rec(rec(requests[requests.length - 1]?.requestBody).localLoadParams).loadStartInstantISO);\n    const stoppedRepeating = text(summary.oldestLoadedInstantISO) === askedFrom;\n    return {\n      legacyXUnreadCount: num(first.legacyXUnreadCount),\n      truncated: bool(summary.hasMoreConversations) && list(last.conversations).length > 0 && !stoppedRepeating,\n      conversations,\n      localSummary: {\n        hasMoreConversations: boolOrNull(summary.hasMoreConversations),\n        oldestLoadedInstantISO: textOrNull(summary.oldestLoadedInstantISO),\n      },\n    };\n  },\n\n  concise(standard): ConversationsConcise {\n    return {\n      legacyXUnreadCount: standard.legacyXUnreadCount,\n      truncated: standard.truncated,\n      conversations: standard.conversations.map((c) => ({\n        hthId: c.hthId,\n        subject: c.subject,\n        audienceNames: c.audienceNames,\n        latestMessageInstantISO: c.latestMessageInstantISO,\n        hasUnreadMessages: c.hasUnreadMessages,\n        hasUrgentMsgs: c.hasUrgentMsgs,\n        hasAttachments: c.hasAttachments,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The inbox: every conversation on the active patient record.\n *\n * `GetConversationList` answers 50 conversations per page (measured on the one\n * instance with more than 50) and says so with `localSummary.hasMoreConversations`.\n * The portal loads the next page by re-posting with `localLoadParams` set to\n * `{ loadStartInstantISO: <oldestLoadedInstantISO of the page it has>,\n * loadEndInstantISO: '', pagingInfo: <the page's pagingInfo> }`, and this\n * scraper does the same until the summary says there is nothing older. Every\n * page is recorded; the processor merges them.\n */\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { logger } from '../../../../shared/logger';\nimport { list, num, rec, text } from '../../processors/read';\nimport { conversationsProcessor, type ConversationsStandard } from './conversations.processor';\n\nexport type {\n  ConversationsStandard,\n  ConversationStandard,\n  MessageStandard,\n  MessageConcise,\n  MessageAttachmentStandard,\n  MessageAttachmentConcise,\n  MessageDirectory,\n} from './conversations.processor';\nexport { conversationsProcessor } from './conversations.processor';\n\n/** Bound the paging loop, so a server that never clears `hasMoreConversations` can't spin forever. */\nexport const MAX_PAGES = 40;\n\n/**\n * `GET /app/communication-center` for the token every `/api/conversations/*`\n * POST has to carry, then `POST /api/conversations/GetConversationList` with\n * the request the portal's inbox sends, once per page.\n */\nexport async function fetchConversationsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/communication-center');\n\n  let localLoadParams: Record<string, unknown> = { loadStartInstantISO: '', loadEndInstantISO: '', pagingInfo: 1 };\n  for (let page = 1; ; page++) {\n    const { body } = await collector.send({\n      path: '/api/conversations/GetConversationList',\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json; charset=utf-8',\n        __RequestVerificationToken: token,\n      },\n      body: JSON.stringify({\n        tag: 1,\n        localLoadParams,\n        externalLoadParams: {},\n        searchQuery: '',\n        PageNonce: '',\n      }),\n    });\n\n    const payload = rec(body);\n    const summary = rec(payload.localSummary);\n    if (summary.hasMoreConversations !== true) break;\n    if (page === MAX_PAGES) {\n      logger.debug(`Stopped paging the inbox after ${MAX_PAGES} pages`);\n      break;\n    }\n    // A page that carried nothing, or that ends where the last one did, would\n    // ask for the same instant forever: treat it as the end of the inbox.\n    const oldest = text(summary.oldestLoadedInstantISO);\n    if (!oldest || list(payload.conversations).length === 0 || oldest === localLoadParams.loadStartInstantISO) break;\n    localLoadParams = { loadStartInstantISO: oldest, loadEndInstantISO: '', pagingInfo: num(summary.pagingInfo) ?? 0 };\n  }\n\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function listConversations(mychartRequest: MyChartRequest): Promise<ConversationsStandard> {\n  return conversationsProcessor.standard(await fetchConversationsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport * as cheerio from 'cheerio';\n\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { makeAuthenticatedRequest, SessionExpiredError, type AuthenticatedRequestOptions } from '../core/makeAuthenticatedRequest';\nimport { getMyChartProfile } from '../chart/profile/profile';\nimport { logger } from '../../../shared/logger';\nimport { bool, list, rec, text } from '../processors/read';\nimport type { ProxySwitch } from './mychart.types';\nimport { DetailedError } from '../../../shared/detailedError';\n\nexport type ProxyTarget = {\n  /**\n   * Epic's identifier for the patient record: a long opaque `WP-…` string,\n   * different on every organization and meaningless outside the session that\n   * produced it. Never parse or construct one.\n   *\n   * The account holder's own record carries a real id like any other — it is\n   * **not** blank. Identify it with `isSelf`, never by inspecting the id.\n   * (Confirmed on UCSF, Renown and Carson Tahoe; see PR #206.)\n   */\n  id: string;\n  displayName: string;\n  isSelf: boolean;\n  isSelected: boolean;\n  /**\n   * Whether `isSelected` actually came from the portal, or is just a default.\n   * The `EpicPx.ReactContext.personalizations.proxySubjects` script block does\n   * not carry a selection flag, so targets recovered from it report\n   * `selectionKnown: false` and `isSelected: false`. Consumers must not read\n   * `isSelected === false` as \"this record is not active\" unless\n   * `selectionKnown` is true.\n   */\n  selectionKnown: boolean;\n  linkUrl: string;\n  source: 'proxy-switch-json' | 'home-html';\n};\n\n/**\n * How to name the record you want. Exactly one of these is needed.\n *\n * Prefer `self: true` over an id when returning to the account holder — proxy\n * ids are opaque and organization-specific, and the portal's own `IsSelf` flag\n * is the only portable way to name that record.\n */\nexport type ProxyTargetSelector = {\n  /** The account holder's own record, whatever its id happens to be. */\n  self?: boolean;\n  /** An opaque id from `discoverProxyTargets`. */\n  id?: string;\n  /** Display name; rejected if more than one record shares it. */\n  displayName?: string;\n};\n\n/** Max redirects to follow before giving up on a proxy-switch chain. */\nconst MAX_SWITCH_REDIRECTS = 5;\n\n/**\n * Display names some instances use for the account holder's own entry instead\n * of the person's actual name. These can't be compared against the scraped\n * profile name, so identity verification treats them as \"no opinion\".\n */\nconst GENERIC_SELF_LABELS = new Set(['me', 'myself', 'you', 'self', 'my record', 'my chart']);\n\n/** Name suffixes that carry no identity signal. */\nconst NAME_SUFFIXES = new Set(['jr', 'sr', 'ii', 'iii', 'iv', 'v', 'md', 'do', 'phd']);\n\nfunction isDebugEnabled(): boolean {\n  return process.env.MYCHART_DEBUG_PROXY_CONTEXT === '1';\n}\n\nfunction debugLog(message: string, details?: unknown): void {\n  if (!isDebugEnabled()) return;\n  if (details === undefined) {\n    logger.debug(`[proxy-context] ${message}`);\n    return;\n  }\n  logger.debug(`[proxy-context] ${message}`, details);\n}\n\nfunction summarizeTargets(targets: ProxyTarget[]): string {\n  return targets\n    .map((target) => `${target.displayName}${target.isSelected ? '*' : ''}${target.isSelf ? ' (self)' : ''}`)\n    .join(', ');\n}\n\nfunction normalize(value: string): string {\n  return value.trim().toLowerCase();\n}\n\n/**\n * The deployment prefix, ready to concatenate. Root-mounted instances have no\n * prefix at all (`firstPathPart` is null), so they get the empty string rather\n * than a literal `/null`.\n */\nfunction mountPath(mychartRequest: MyChartRequest): string {\n  return mychartRequest.firstPathPart ? `/${mychartRequest.firstPathPart}` : '';\n}\n\nfunction absoluteUrl(mychartRequest: MyChartRequest, value: string): string {\n  if (value.startsWith('http://') || value.startsWith('https://')) return value;\n  return new URL(value, `${mychartRequest.protocol}://${mychartRequest.hostname}`).href;\n}\n\nfunction normalizeLinkUrl(mychartRequest: MyChartRequest, value: string, id: string, isSelf: boolean): string {\n  if (value && value !== '#') {\n    if (value.startsWith('http://') || value.startsWith('https://')) return value;\n    return value.startsWith('/') ? value : `${mountPath(mychartRequest)}/${value}`;\n  }\n  if (isSelf) {\n    return `${mountPath(mychartRequest)}/inside.asp?mode=self`;\n  }\n  return `${mountPath(mychartRequest)}/inside.asp?mode=proxyswitch&action=switchcontext&src=0&eid=${encodeURIComponent(id)}`;\n}\n\nfunction dedupeTargets(targets: ProxyTarget[]): ProxyTarget[] {\n  const seen = new Set<string>();\n  const deduped: ProxyTarget[] = [];\n\n  for (const target of targets) {\n    const key = `${target.id}::${target.displayName}::${target.isSelf}`;\n    if (seen.has(key)) continue;\n    seen.add(key);\n    deduped.push(target);\n  }\n\n  return deduped;\n}\n\nfunction parseProxyTargetsFromJson(mychartRequest: MyChartRequest, json: ProxySwitch): ProxyTarget[] {\n  return dedupeTargets(\n    list(json.ProxySubjectList)\n      .map((value) => {\n        const entry = rec(value);\n        const id = text(entry.Id);\n        const isSelf = bool(entry.IsSelf);\n        return {\n          id,\n          displayName: text(entry.DisplayName),\n          isSelf,\n          isSelected: bool(entry.IsSelected),\n          selectionKnown: true,\n          linkUrl: normalizeLinkUrl(mychartRequest, text(entry.LinkUrl), id, isSelf),\n          source: 'proxy-switch-json' as const,\n        };\n      })\n      .filter((entry) => entry.displayName)\n  );\n}\n\nfunction parseProxyTargetsFromHomeHtml(mychartRequest: MyChartRequest, html: string): ProxyTarget[] {\n  const $ = cheerio.load(html);\n  const targets: ProxyTarget[] = [];\n\n  $('.proxySubjectLink').each((_, el) => {\n    const link = $(el);\n    const displayName = link.find('.proxySelectorDropDownNameEllipsis').first().text().trim();\n    const id = (link.attr('data-id') || '').trim();\n    const href = link.attr('href') || '';\n    const isSelected = link.hasClass('currentContext');\n    // Self is NOT \"the one without an id\" — the account holder's record has a\n    // real id too. What distinguishes it is that its link does not carry the\n    // switch-context query, which is the one thing the confirmed `/ProxySwitch`\n    // payload tells us about link shape: proxies get `mode=proxyswitch&…&eid=`,\n    // self gets a bare page URL.\n    const looksLikeProxySwitch = /mode=proxyswitch|[?&]eid=/i.test(href);\n    const isSelf = href.includes('mode=self')\n      || /access your record/i.test(link.attr('aria-label') || '')\n      || (!!href && !looksLikeProxySwitch);\n\n    if (!displayName) return;\n    targets.push({\n      id,\n      displayName,\n      isSelf,\n      isSelected,\n      // The anchor markup marks the active record with `currentContext`, so the\n      // absence of that class is a real \"not selected\", not a missing signal.\n      selectionKnown: true,\n      linkUrl: normalizeLinkUrl(mychartRequest, href, id, isSelf),\n      source: 'home-html',\n    });\n  });\n\n  // Last-resort fallback: the React personalization payload. It lists the\n  // records but says nothing about which one is active, hence selectionKnown.\n  const scriptRegex = /EpicPx\\.ReactContext\\.personalizations\\.proxySubjects\\.push\\((\\{[\\s\\S]*?\\})\\);/g;\n  let match: RegExpExecArray | null;\n  while ((match = scriptRegex.exec(html)) !== null) {\n    const block = match[1]!; // the regex's one capture group is non-optional\n    const displayName = (/displayName:\"([^\"]+)\"/.exec(block))?.[1] || '';\n    const id = (/\\{type:\"INTERNAL\",value:\"([^\"]+)\"\\}/.exec(block))?.[1] || '';\n    if (!displayName) continue;\n    // Prefer an explicit self flag (`isSelf:!0` once minified). Falling back to\n    // \"has no id\" is a last resort and is known to be wrong wherever the\n    // account holder carries a real id, which is every instance measured so far.\n    const selfFlag = /\\bisSelf:\\s*(!0|true)/.test(block);\n    const isSelf = selfFlag || !id;\n    targets.push({\n      id,\n      displayName,\n      isSelf,\n      isSelected: false,\n      selectionKnown: false,\n      linkUrl: normalizeLinkUrl(mychartRequest, '', id, isSelf),\n      source: 'home-html',\n    });\n  }\n\n  return dedupeTargets(targets);\n}\n\nasync function loadHomeHtml(mychartRequest: MyChartRequest, options?: AuthenticatedRequestOptions): Promise<string> {\n  const resp = await makeAuthenticatedRequest(mychartRequest, { path: '/Home' }, options);\n  return resp.text();\n}\n\nasync function followProxySwitchChain(mychartRequest: MyChartRequest, startPathOrUrl: string): Promise<void> {\n  let currentUrl = absoluteUrl(mychartRequest, startPathOrUrl);\n  let resp = await mychartRequest.makeRequest({ url: currentUrl, followRedirects: false });\n  debugLog(`switch url=${currentUrl} status=${resp.status}`);\n\n  let hops = 0;\n  while ([301, 302].includes(resp.status)) {\n    if (hops >= MAX_SWITCH_REDIRECTS) {\n      // Bailing out quietly here used to leave the caller to fail later with\n      // the confusing \"could not be confirmed\" error. Say what went wrong.\n      throw new Error(\n        `Proxy switch redirect chain exceeded ${MAX_SWITCH_REDIRECTS} hops (last url ${currentUrl}).`\n      );\n    }\n    const location = resp.headers.get('Location');\n    debugLog('redirect location=', location || null);\n    if (!location) break;\n    currentUrl = new URL(location, currentUrl).href;\n    resp = await mychartRequest.makeRequest({ url: currentUrl, followRedirects: false });\n    hops += 1;\n    debugLog(`redirect follow url=${currentUrl} status=${resp.status}`);\n  }\n\n  const finalHome = await mychartRequest.makeRequest({ path: '/Home', followRedirects: false });\n  debugLog(`final home url=${finalHome.url} status=${finalHome.status}`);\n}\n\nfunction resolveTarget(targets: ProxyTarget[], target: ProxyTargetSelector): ProxyTarget {\n  // Returning to the account holder is the most common thing a caller does\n  // after switching away, and it must not depend on knowing an opaque\n  // organization-specific id. `isSelf` is the portal's own marker for it.\n  //\n  // `id: ''` is accepted as a spelling of the same request: no observed\n  // instance issues a blank id, so it cannot collide with a real record, and on\n  // any instance that did use blank-for-self it resolves to the same entry.\n  if (target.self === true || target.id === '') {\n    const matches = targets.filter((entry) => entry.isSelf);\n    if (matches.length !== 1) {\n      throw new Error(\n        `Could not resolve the account holder's own record: ${matches.length} of ${targets.length} ` +\n        `discovered records are flagged as self.`\n      );\n    }\n    return matches[0]!;\n  }\n\n  if (target.id !== undefined) {\n    const matches = targets.filter((entry) => entry.id === target.id);\n    if (matches.length !== 1) {\n      throw new Error(`Could not resolve proxy target by id '${target.id}'.`);\n    }\n    return matches[0]!;\n  }\n\n  if (target.displayName) {\n    const wanted = normalize(target.displayName);\n    const matches = targets.filter((entry) => normalize(entry.displayName) === wanted);\n    if (matches.length === 0) {\n      throw new DetailedError(\n        'No patient record has that displayName.',\n        `Could not resolve proxy target by displayName '${target.displayName}'.`,\n      );\n    }\n    if (matches.length > 1) {\n      throw new DetailedError(\n        'More than one patient record has that displayName. Use its id instead.',\n        `Ambiguous proxy target displayName '${target.displayName}'.`,\n      );\n    }\n    return matches[0]!;\n  }\n\n  throw new Error('Proxy target must include self, id or displayName.');\n}\n\nfunction nameTokens(value: string): string[] {\n  return value\n    // Linked-account (Happy Together) labels carry the org in parentheses, e.g.\n    // \"Bart (Springfield General)\"; the org is not part of the name.\n    .replace(/\\([^)]*\\)/g, ' ')\n    .toLowerCase()\n    .normalize('NFD')\n    .replace(/[\\u0300-\\u036f]/g, '')\n    .replace(/[^a-z0-9\\s]/g, ' ')\n    .split(/\\s+/)\n    .filter((token) => token.length > 1 && !NAME_SUFFIXES.has(token));\n}\n\n/** \"Bart\" vs \"Bartholomew\": a short form of the same given name. */\nfunction isShortFormOf(a: string, b: string): boolean {\n  const [shorter, longer] = a.length <= b.length ? [a, b] : [b, a];\n  return shorter.length >= 3 && longer.startsWith(shorter);\n}\n\n/**\n * Compare the profile name scraped after a switch against the display name of\n * the record we asked for.\n *\n * Deliberately three-valued. MyChart's proxy list and its profile page do not\n * agree on how a name is written — the list says \"Bart Simpson\" where the\n * profile says \"Bartholomew JoJo Simpson\" — so a two-valued match/mismatch\n * would reject perfectly good switches. `unknown` is the honest answer whenever\n * the two names share a surname but not a recognizable given name: that is\n * either a nickname or a sibling, and this function cannot tell which. The\n * caller disambiguates by checking the profile against the *other* known\n * records (see `switchProxyTarget`).\n *\n * `mismatch` is reserved for names with nothing in common, which is what\n * landing on an unrelated patient actually looks like.\n */\nexport function compareProfileNames(expected: string, actual: string): 'match' | 'mismatch' | 'unknown' {\n  if (!expected || !actual) return 'unknown';\n  if (GENERIC_SELF_LABELS.has(normalize(expected)) || GENERIC_SELF_LABELS.has(normalize(actual))) {\n    return 'unknown';\n  }\n\n  const a = nameTokens(expected);\n  const b = nameTokens(actual);\n  if (a.length === 0 || b.length === 0) return 'unknown';\n\n  const setA = new Set(a);\n  const setB = new Set(b);\n  // Dropped middle names: \"Homer Simpson\" vs \"Homer Jay Simpson\".\n  if (a.every((token) => setB.has(token)) || b.every((token) => setA.has(token))) return 'match';\n\n  const surnameShared = a[a.length - 1] === b[b.length - 1];\n  if (surnameShared && isShortFormOf(a[0]!, b[0]!)) return 'match'; // both non-empty per the check above\n\n  // Reordered renderings (\"Simpson, Homer Jay\").\n  const shared = a.filter((token) => setB.has(token));\n  if (shared.length >= 2) return 'match';\n\n  // Same surname, unfamiliar given name — a nickname we don't know how to\n  // expand, or a family member. Not enough to condemn the switch on its own.\n  if (surnameShared) return 'unknown';\n\n  return 'mismatch';\n}\n\nexport async function discoverProxyTargets(\n  mychartRequest: MyChartRequest,\n  options?: AuthenticatedRequestOptions,\n): Promise<ProxyTarget[]> {\n  try {\n    const resp = await makeAuthenticatedRequest(mychartRequest, {\n      path: `/ProxySwitch?noCache=${Math.random()}`,\n      headers: {\n        Accept: 'application/json, text/javascript, */*; q=0.01',\n        'X-Requested-With': 'XMLHttpRequest',\n      },\n    }, options);\n\n    if (resp.ok) {\n      const json = rec<ProxySwitch>(await resp.json());\n      const targets = parseProxyTargetsFromJson(mychartRequest, json);\n      if (targets.length > 0) {\n        debugLog(`discovered targets source=proxy-switch-json count=${targets.length} [${summarizeTargets(targets)}]`);\n        return targets;\n      }\n    }\n  } catch (error) {\n    // An unrenewable expired session is a real answer, not a reason to fall\n    // through to the HTML surface — that would just attempt a second re-login\n    // and then parse a login page into \"no proxy targets\".\n    if (error instanceof SessionExpiredError) throw error;\n    debugLog('proxy-switch-json discovery failed', error instanceof Error ? error.message : String(error));\n  }\n\n  const html = await loadHomeHtml(mychartRequest, options);\n  const targets = parseProxyTargetsFromHomeHtml(mychartRequest, html);\n  debugLog(`discovered targets source=home-html count=${targets.length} [${summarizeTargets(targets)}]`);\n  return targets;\n}\n\nexport async function verifyActiveProxyTarget(\n  mychartRequest: MyChartRequest,\n  options?: { proxyTargets?: ProxyTarget[] } & AuthenticatedRequestOptions\n): Promise<{\n  profileName: string | null;\n  profileDob: string | null;\n  proxyTargets: ProxyTarget[];\n  selectedTarget: ProxyTarget | null;\n  /** False when discovery could not tell which record is active at all. */\n  selectionKnown: boolean;\n}> {\n  const renewOptions = { autoRenew: options?.autoRenew };\n  const [profile, proxyTargets] = await Promise.all([\n    getMyChartProfile(mychartRequest, renewOptions),\n    options?.proxyTargets ? Promise.resolve(options.proxyTargets) : discoverProxyTargets(mychartRequest, renewOptions),\n  ]);\n\n  const selectionKnown = proxyTargets.some((entry) => entry.selectionKnown);\n  const selectedTarget = proxyTargets.find((entry) => entry.selectionKnown && entry.isSelected) ?? null;\n  const result = {\n    profileName: profile?.name || null,\n    profileDob: profile?.dob || null,\n    proxyTargets,\n    selectedTarget,\n    selectionKnown,\n  };\n\n  debugLog(`verified profile name=${result.profileName ?? 'null'} dob=${result.profileDob ?? 'null'}`);\n  debugLog(`selected target after verification=${selectedTarget ? `${selectedTarget.displayName}${selectedTarget.isSelected ? '*' : ''}` : 'null'} selectionKnown=${selectionKnown}`);\n  return result;\n}\n\n/** Strings a human might type to mean \"the account holder's own record\". */\nconst SELF_QUERIES = new Set(['self', 'me', 'myself', 'my record', 'account holder']);\n\n/**\n * Resolve a human-supplied string to exactly one record.\n *\n * Accepts, in order of precedence: a self alias (\"me\", \"self\"), an exact id, an\n * exact display name, or a unique case-insensitive partial name. Ambiguity is\n * always an error listing the candidates — guessing which patient was meant is\n * precisely the failure this codebase must never produce.\n */\nexport function findProxyTarget(targets: ProxyTarget[], query: string): ProxyTarget {\n  const wanted = normalize(query);\n  if (!wanted) throw new Error('Patient query is empty.');\n\n  const describe = () => targets.map((t) => `'${t.displayName}'${t.isSelf ? ' (you)' : ''}`).join(', ');\n\n  if (SELF_QUERIES.has(wanted)) {\n    const selves = targets.filter((entry) => entry.isSelf);\n    if (selves.length === 1) return selves[0]!;\n    // Only one record is reachable at all, so it IS the account holder —\n    // whether or not the portal bothered to flag it. This matters because the\n    // HTML and script discovery surfaces are inferred rather than captured: a\n    // single-record account whose markup we misparse must not get locked out\n    // of a tool that has nothing to do with proxy access.\n    if (targets.length === 1) return targets[0]!;\n    throw new DetailedError(\n      `Could not identify the account holder's own record among the ${targets.length} records this account can access.`,\n      `Could not identify the account holder's own record among: ${describe()}.`,\n    );\n  }\n\n  // Ids are opaque and exact — check them before any name matching so a record\n  // can always be named unambiguously even if display names collide.\n  const byId = targets.filter((entry) => entry.id === query.trim());\n  if (byId.length === 1) return byId[0]!;\n\n  const exact = targets.filter((entry) => normalize(entry.displayName) === wanted);\n  if (exact.length === 1) return exact[0]!;\n  if (exact.length > 1) {\n    const rest = ' more than one patient record. Use --patient with the record id instead.';\n    throw new DetailedError(`That name matches${rest}`, `'${query}' matches${rest}`);\n  }\n\n  const partial = targets.filter((entry) => normalize(entry.displayName).includes(wanted));\n  if (partial.length === 1) return partial[0]!;\n  if (partial.length > 1) {\n    throw new DetailedError(\n      `That name matches ${partial.length} patient records. Be more specific, or use the record id from list_proxy_targets.`,\n      `'${query}' matches ${partial.length} patient records (${partial.map((t) => `'${t.displayName}'`).join(', ')}). Be more specific.`,\n    );\n  }\n\n  throw new DetailedError(\n    'No patient record matches that name. list_proxy_targets lists every record this account can access.',\n    `No patient record matches '${query}'. Available: ${describe()}.`,\n  );\n}\n\nexport type ProxyContextCheck = {\n  /** Every record this account can reach. Empty for single-record accounts. */\n  targets: ProxyTarget[];\n  /** The record the caller asked for. Null when the account has no proxy access. */\n  wanted: ProxyTarget | null;\n  /** The record the portal is actually on, as best we can determine. */\n  current: ProxyTarget | null;\n  /** True when the portal is already on `wanted`. */\n  active: boolean;\n  /**\n   * How `current` was established: the portal's own selection flag, or by\n   * matching the scraped profile name when the portal doesn't report one.\n   * 'unknown' means neither worked and `active` must not be trusted.\n   */\n  determinedBy: 'selection-flag' | 'profile-name' | 'unknown';\n};\n\n/**\n * Report whether the portal is already on a given patient, WITHOUT changing\n * anything.\n *\n * This is the read-only counterpart to `switchProxyTarget`, for callers that\n * want to verify before acting rather than mutate a session as a side effect of\n * reading. Passing no query asks about the account holder.\n *\n * Where the portal reports a selection, that's used. Where it doesn't — the\n * script-block discovery surface never does — the active record is inferred by\n * comparing the scraped profile against each known record, which is stronger\n * evidence than a flag anyway.\n */\nexport async function checkProxyContext(\n  mychartRequest: MyChartRequest,\n  query?: string,\n  options?: { discoveredTargets?: ProxyTarget[] } & AuthenticatedRequestOptions\n): Promise<ProxyContextCheck> {\n  const renewOptions = { autoRenew: options?.autoRenew };\n  const targets = options?.discoveredTargets ?? await discoverProxyTargets(mychartRequest, renewOptions);\n  if (targets.length === 0) {\n    return { targets, wanted: null, current: null, active: true, determinedBy: 'unknown' };\n  }\n\n  const wanted = findProxyTarget(targets, query ?? 'me');\n\n  const flagged = targets.find((entry) => entry.selectionKnown && entry.isSelected);\n  if (flagged) {\n    return {\n      targets,\n      wanted,\n      current: flagged,\n      active: flagged.id === wanted.id,\n      determinedBy: 'selection-flag',\n    };\n  }\n\n  // No selection flag: ask the profile page who we are.\n  const profile = await getMyChartProfile(mychartRequest, renewOptions);\n  const profileName = profile?.name || '';\n  const byName = profileName\n    ? targets.filter((entry) => compareProfileNames(entry.displayName, profileName) === 'match')\n    : [];\n\n  const namedCurrent = byName.length === 1 ? byName[0] : undefined;\n  if (namedCurrent) {\n    return {\n      targets,\n      wanted,\n      current: namedCurrent,\n      active: namedCurrent.id === wanted.id,\n      determinedBy: 'profile-name',\n    };\n  }\n\n  return { targets, wanted, current: null, active: false, determinedBy: 'unknown' };\n}\n\n/**\n * Run `fn` with the portal pointed at `target`.\n *\n * MyChart has no per-request patient parameter — the active record is\n * server-side session state, reached only by following a switch URL. That makes\n * \"which patient am I reading?\" invisible at the call site and, because\n * sessions are resumed from cached cookies, it can persist across processes.\n * This wrapper puts the target back at the call site: state the patient you\n * mean, every time, and let the switching be an implementation detail.\n *\n * Passing no target means the account holder — explicitly, not \"whoever the\n * session happens to be pointed at\". The switch is skipped when the portal\n * already reports the wanted record as active, so the common case costs one\n * discovery request rather than a full switch.\n *\n * Accounts with no proxy access have no proxy surface at all; there `fn` simply\n * runs.\n */\n/**\n * Record which patient record this session is on, and arm the restore hook\n * session renewal uses to put it back after a silent re-login. Set together\n * on purpose: renewal fails closed if it ever finds a recorded non-self\n * target without a restore hook (see sessionRenewal.ts). The hook re-runs the\n * verified switch with autoRenew: false, so it can only ever fail, never\n * re-enter renewal.\n */\nfunction recordActiveTarget(\n  mychartRequest: MyChartRequest,\n  resolved: Pick<ProxyTarget, 'id' | 'isSelf' | 'displayName'>,\n): void {\n  mychartRequest.activeProxyTarget = {\n    id: resolved.id,\n    isSelf: resolved.isSelf,\n    displayName: resolved.displayName,\n  };\n  mychartRequest.restoreProxyContext = async () => {\n    await switchProxyTarget(\n      mychartRequest,\n      resolved.isSelf ? { self: true } : { id: resolved.id },\n      { autoRenew: false },\n    );\n  };\n}\n\nexport async function withProxyTarget<T>(\n  mychartRequest: MyChartRequest,\n  target: ProxyTargetSelector | string | undefined,\n  fn: () => Promise<T>\n): Promise<T> {\n  const discovered = await discoverProxyTargets(mychartRequest);\n\n  if (discovered.length === 0) {\n    if (typeof target === 'string' || (target && (target.id !== undefined || target.displayName))) {\n      throw new Error('This account has access to only one patient record, so a patient cannot be selected.');\n    }\n    return fn();\n  }\n\n  const resolved = typeof target === 'string'\n    ? findProxyTarget(discovered, target)\n    : resolveTarget(discovered, target ?? { self: true });\n\n  // Already there — don't pay for a redirect chain we don't need. Still record\n  // the intent: if the session expires inside fn(), automatic renewal must\n  // know which record to restore even though no switch happened on this call.\n  if (resolved.selectionKnown && resolved.isSelected) {\n    recordActiveTarget(mychartRequest, resolved);\n  } else {\n    await switchProxyTarget(\n      mychartRequest,\n      resolved.isSelf ? { self: true } : { id: resolved.id },\n      { discoveredTargets: discovered }\n    );\n  }\n\n  return fn();\n}\n\nexport async function switchProxyTarget(\n  mychartRequest: MyChartRequest,\n  target: ProxyTargetSelector,\n  options?: { discoveredTargets?: ProxyTarget[] } & AuthenticatedRequestOptions\n): Promise<{ target: ProxyTarget; verifiedProfileName: string | null; verifiedDob: string | null }> {\n  const renewOptions = { autoRenew: options?.autoRenew };\n  const discovered = options?.discoveredTargets ?? await discoverProxyTargets(mychartRequest, renewOptions);\n  if (discovered.length === 0) {\n    throw new Error('No proxy targets were discovered for this session.');\n  }\n\n  const resolved = resolveTarget(discovered, target);\n  debugLog('chosen target=', resolved);\n\n  if (resolved.isSelf) {\n    const explicitSelf = target.self === true\n      || (target.id !== undefined && (target.id === '' || target.id === resolved.id))\n      || (!!target.displayName && normalize(target.displayName) === normalize(resolved.displayName));\n    if (!explicitSelf) {\n      throw new Error('Refusing to switch to self without an explicit self target request.');\n    }\n  }\n\n  await followProxySwitchChain(mychartRequest, resolved.linkUrl);\n  const refreshedTargets = await discoverProxyTargets(mychartRequest, renewOptions);\n  const verified = await verifyActiveProxyTarget(mychartRequest, { proxyTargets: refreshedTargets, autoRenew: options?.autoRenew });\n  const selected = verified.selectedTarget;\n\n  // Compare the patient the portal is now showing us against the one we asked\n  // for. Never trust `IsSelected` alone — scraping the wrong patient's chart is\n  // the worst failure mode this app has.\n  const identity = compareProfileNames(resolved.displayName, verified.profileName || '');\n\n  // The sharpest signal available: the profile we landed on matches a\n  // *different* record in the list. That is a switch that went to the wrong\n  // patient — most often a sibling, whom a surname comparison alone would wave\n  // through — and it is never acceptable.\n  if (identity !== 'match' && verified.profileName) {\n    // The same person's record linked from another org (\"Marge (Springfield General)\" next to\n    // \"Marge (Shelbyville Clinic)\") is not an impostor.\n    const impostor = refreshedTargets.find((entry) =>\n      entry.id !== resolved.id\n      && compareProfileNames(entry.displayName, resolved.displayName) !== 'match'\n      && compareProfileNames(entry.displayName, verified.profileName!) === 'match');\n    if (impostor) {\n      throw new DetailedError(\n        'Proxy switch landed on the wrong patient: the portal is showing another record on this account, ' +\n        'not the one asked for.',\n        `Proxy switch landed on the wrong patient: asked for '${resolved.displayName}', ` +\n        `portal is showing '${verified.profileName}' (${impostor.displayName}).`,\n      );\n    }\n  }\n\n  if (identity === 'mismatch') {\n    throw new DetailedError(\n      \"Proxy switch landed on the wrong patient: the portal's profile does not match the record asked for.\",\n      `Proxy switch landed on the wrong patient: asked for '${resolved.displayName}', ` +\n      `portal reports '${verified.profileName}'.`,\n    );\n  }\n\n  // Remember which record this session is now on. Automatic session renewal\n  // (sessionRenewal.ts) reads this to restore the context after a re-login,\n  // which resets MyChart to the account holder server-side.\n  const recordSwitch = () => recordActiveTarget(mychartRequest, resolved);\n\n  if (verified.selectionKnown) {\n    const confirmed = resolved.isSelf ? !!selected?.isSelf : !!selected && selected.id === resolved.id;\n    if (!confirmed) {\n      throw new Error('Proxy target switch could not be confirmed after redirect chain.');\n    }\n    recordSwitch();\n    return {\n      target: selected!,\n      verifiedProfileName: verified.profileName,\n      verifiedDob: verified.profileDob,\n    };\n  }\n\n  // Discovery could not report a selection flag (the script-block fallback).\n  // The profile name is then the only evidence available, so require it.\n  if (identity !== 'match') {\n    const lead = 'Proxy target switch could not be confirmed: the portal does not report which record is active, ';\n    throw new DetailedError(\n      lead + 'and its profile name could not be matched against the record asked for.',\n      lead + `and the profile name ('${verified.profileName ?? 'unknown'}') could not be matched against ` +\n      `'${resolved.displayName}'.`,\n    );\n  }\n\n  const refreshed = refreshedTargets.find((entry) => entry.id === resolved.id) ?? resolved;\n  recordSwitch();\n  return {\n    target: { ...refreshed, isSelected: true },\n    verifiedProfileName: verified.profileName,\n    verifiedDob: verified.profileDob,\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `/Home` print header: `Name: … | DOB: … | MRN: … | PCP: …`.\n *\n * Shared by the profile processor and by the proxy-context verification in\n * `proxy/proxyContext.ts`, which reads the same header to confirm which\n * patient MyChart is on.\n */\n\nimport * as cheerio from 'cheerio';\nimport { logger } from '../../../../shared/logger';\n\nexport type ProfileData = {\n  name: string;\n  dob: string;\n  mrn: string;\n  pcp: string;\n};\n\nexport function parseProfileHtml(body: string): ProfileData | null {\n  const $ = cheerio.load(body);\n  const printheaderDiv = $('.printheader').text();\n\n  // Full format: Name | DOB | MRN | PCP (most MyChart instances)\n  const fullRegex = /Name: (.+) \\| DOB: (\\d{1,2}\\/\\d{1,2}\\/\\d{4}) \\| MRN: (\\d+) \\| PCP: (.*)/;\n  const fullMatch = fullRegex.exec(printheaderDiv);\n  if (fullMatch) {\n    return {\n      // All four capture groups are non-optional, so they exist on any match.\n      name: fullMatch[1]!.trim(),\n      dob: fullMatch[2]!,\n      mrn: fullMatch[3]!,\n      pcp: fullMatch[4]!.trim(),\n    };\n  }\n\n  // Partial format: Name | DOB only (e.g. MyChart Central at central.mychart.org)\n  const partialRegex = /Name: (.+?) \\| DOB: (\\d{1,2}\\/\\d{1,2}\\/\\d{4})/;\n  const partialMatch = partialRegex.exec(printheaderDiv);\n  if (partialMatch) {\n    // Try to pick up MRN and PCP if present after DOB with different formats\n    const afterDob = printheaderDiv.slice(partialMatch.index + partialMatch[0].length);\n    const mrnMatch = /MRN:\\s*(\\d+)/.exec(afterDob);\n    const pcpMatch = /PCP:\\s*(.*)/.exec(afterDob);\n    return {\n      // Both capture groups are non-optional, so they exist on any match.\n      name: partialMatch[1]!.trim(),\n      dob: partialMatch[2]!,\n      mrn: mrnMatch?.[1] || '',\n      pcp: pcpMatch?.[1]?.trim() || '',\n    };\n  }\n\n  logger.debug('Could not parse profile from /Home page, no regex match', printheaderDiv.trim());\n  return null;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Profile processor. Field decisions: docs/processor-layer-proposal.md, `get_profile`.\n *\n * Two sources: the `/Home` page's print header (name, DOB, MRN, PCP — parsed,\n * so derived) and `GetContactInformation` (the rest). The contact call is\n * optional on some instances, so every field from it is nullable — and the\n * scraper tolerates its failure, so a failed answer is reported as\n * `contactInformationUnavailable` rather than as a patient with no phone.\n */\n\nimport { findRequest, okBodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { rec, strings, text, textOrNull } from '../../processors/read';\nimport type { GetContactInformation } from './mychart.types';\nimport type { AddressStandard, ProfileStandard } from './standardized.types';\n\nexport type { AddressStandard, ProfileStandard, TemporaryAddressStandard } from './standardized.types';\nimport { parseProfileHtml } from './profileHtml';\n\nfunction address(value: unknown): AddressStandard {\n  const a = rec(value);\n  return {\n    FormattedValues: strings(a.FormattedValues),\n    Street: textOrNull(a.Street),\n    City: textOrNull(a.City),\n    State: { Title: textOrNull(rec(a.State).Title) },\n    Zip: textOrNull(a.Zip),\n    Country: { Title: textOrNull(rec(a.Country).Title) },\n    HouseNumber: textOrNull(a.HouseNumber),\n    Building: textOrNull(a.Building),\n    Floor: textOrNull(a.Floor),\n    Unit: textOrNull(a.Unit),\n    PhoneNumber: textOrNull(a.PhoneNumber),\n  };\n}\n\nexport const profileProcessor: Processor<ProfileStandard> = {\n  standard(raw: RawResponse): ProfileStandard {\n    const home = text(findRequest(raw, '/Home')?.body);\n    const header = parseProfileHtml(home) ?? { name: '', dob: '', mrn: '', pcp: '' };\n    const contactBody = okBodyOf(raw, 'GetContactInformation');\n    const contact = rec<GetContactInformation>(contactBody);\n    const secure = rec(contact.SecureCommunicationInfo);\n    const temporary = rec(contact.TemporaryAddress);\n    return {\n      ...header,\n      SecureCommunicationInfo: {\n        EmailAddress: textOrNull(secure.EmailAddress),\n        MobilePhone: textOrNull(secure.MobilePhone),\n      },\n      HomePhone: textOrNull(contact.HomePhone),\n      WorkPhone: textOrNull(contact.WorkPhone),\n      PreferredDevice: textOrNull(contact.PreferredDevice),\n      PermanentAddress: address(contact.PermanentAddress),\n      TemporaryAddress: {\n        ...address(temporary),\n        StartDateDisplay: textOrNull(temporary.StartDateDisplay),\n        EndDateDisplay: textOrNull(temporary.EndDateDisplay),\n        StartDateISO: textOrNull(temporary.StartDateISO),\n        EndDateISO: textOrNull(temporary.EndDateISO),\n      },\n      contactInformationUnavailable: contactBody === undefined,\n    };\n  },\n  concise(standard) {\n    return {\n      name: standard.name,\n      dob: standard.dob,\n      mrn: standard.mrn,\n      pcp: standard.pcp,\n      EmailAddress: standard.SecureCommunicationInfo.EmailAddress,\n      contactInformationUnavailable: standard.contactInformationUnavailable,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { makeAuthenticatedRequest, SessionExpiredError, type AuthenticatedRequestOptions } from '../../core/makeAuthenticatedRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { getRequestVerificationTokenFromBody } from '../../core/util';\nimport { logger } from '../../../../shared/logger';\nimport { rec, textOrNull } from '../../processors/read';\nimport type { GetContactInformation } from './mychart.types';\nimport { parseProfileHtml, type ProfileData } from './profileHtml';\nimport { profileProcessor, type ProfileStandard } from './profile.processor';\n\nexport { parseProfileHtml, type ProfileData } from './profileHtml';\nexport type { ProfileStandard, AddressStandard, TemporaryAddressStandard } from './profile.processor';\nexport { profileProcessor } from './profile.processor';\n\n/**\n * The print-header identity read on its own: name, DOB, MRN, PCP. This is the\n * lightweight primitive the proxy-context verification uses to confirm which\n * patient MyChart is on, so it keeps its historical `null` on a session that\n * could not be renewed rather than throwing mid-verification.\n */\nexport async function getMyChartProfile(\n  mychartRequest: MyChartRequest,\n  options?: AuthenticatedRequestOptions,\n): Promise<ProfileData | null> {\n  // followRedirects: false so a redirect to somewhere other than the login\n  // page (some instances bounce /Home through a landing route) can be followed\n  // and parsed explicitly. A login redirect is handled by the wrapper — renewed\n  // when possible, otherwise surfaced here as the historical `null`.\n  let resp: Response;\n  try {\n    resp = await makeAuthenticatedRequest(mychartRequest, { path: '/Home', followRedirects: false }, options);\n  } catch (error) {\n    if (error instanceof SessionExpiredError) {\n      logger.debug('[profile] Session expired and could not be renewed');\n      return null;\n    }\n    throw error;\n  }\n\n  if ([301, 302].includes(resp.status)) {\n    const location = resp.headers.get('Location') || '';\n    logger.debug(`[profile] /Home returned ${resp.status} → ${location}`);\n    // The wrapper only recognizes /Authentication/Login as a session bounce.\n    // Keep the historical looser check here too: an instance sending /Home to\n    // any login-ish URL means \"not signed in\", and following it would parse a\n    // login page into a bogus profile.\n    if (location.toLowerCase().includes('login')) {\n      logger.debug('[profile] Session expired — redirected to login page');\n      return null;\n    }\n    // Non-login redirect: follow it and parse\n    const followResp = await makeAuthenticatedRequest(\n      mychartRequest,\n      { url: new URL(location, mychartRequest.protocol + '://' + mychartRequest.hostname).href },\n      options,\n    );\n    const body = await followResp.text();\n    logger.debug(`[profile] Followed redirect to ${location}, response URL: ${followResp.url}, status: ${followResp.status}`);\n    return parseProfileHtml(body);\n  }\n\n  logger.debug(`[profile] /Home returned ${resp.status}, URL: ${resp.url}`);\n  const body = await resp.text();\n  return parseProfileHtml(body);\n}\n\n/**\n * `GET /Home` (the print header) plus `GET /PersonalInformation` for a token\n * and `POST /PersonalInformation/GetContactInformation`. The contact endpoint\n * is missing on some instances, so a failure there is recorded (when there\n * was a response) and otherwise tolerated — the header is the point.\n */\nexport async function fetchProfileRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  await collector.send({ path: '/Home' });\n  try {\n    await fetchContactInformation(collector);\n  } catch (error) {\n    if (error instanceof SessionExpiredError) throw error;\n    logger.debug('[profile] contact information unavailable:', (error as Error).message);\n  }\n  return collector.toRaw();\n}\n\nasync function fetchContactInformation(collector: RawCollector): Promise<unknown> {\n  const page = await collector.send({ path: '/PersonalInformation' }, { tolerateFailure: true });\n  const token = getRequestVerificationTokenFromBody(page.text);\n  if (!token) {\n    logger.debug('could not find request verification token');\n    return null;\n  }\n  const result = await collector.send(\n    {\n      path: '/PersonalInformation/GetContactInformation?noCache=' + Math.random(),\n      headers: {\n        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n        __RequestVerificationToken: token,\n      },\n      method: 'POST',\n      body: 'useLoginUserEpt=false',\n    },\n    { tolerateFailure: true },\n  );\n  return result.body;\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getProfile(mychartRequest: MyChartRequest): Promise<ProfileStandard> {\n  return profileProcessor.standard(await fetchProfileRaw(mychartRequest));\n}\n\n/** The account email alone, from `GetContactInformation`; `null` when the endpoint is unavailable. */\nexport async function getEmail(mychartRequest: MyChartRequest): Promise<string | null> {\n  const collector = new RawCollector(mychartRequest);\n  const body = await fetchContactInformation(collector);\n  return textOrNull(rec(rec<GetContactInformation>(body).SecureCommunicationInfo).EmailAddress);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { TOTP } from 'totp-generator';\n\n/**\n * Generate a TOTP code from a Base32-encoded secret.\n * MyChart uses standard 6-digit, 30-second TOTP codes.\n */\nexport async function generateTotpCode(secret: string, timestamp?: number): Promise<string> {\n  // Clean up the secret: remove spaces, uppercase\n  const cleanSecret = secret.replace(/\\s+/g, '').toUpperCase();\n  const options = timestamp !== undefined ? { timestamp } : {};\n  const { otp } = await TOTP.generate(cleanSecret, options);\n  return otp;\n}\n\n/**\n * Parse an otpauth:// URI (from a QR code) and extract the secret.\n * Format: otpauth://totp/Label?secret=BASE32SECRET&issuer=Issuer\n */\nexport function parseTotpUri(uri: string): { secret: string; issuer: string; account: string } {\n  const url = new URL(uri);\n  const secret = url.searchParams.get('secret') || '';\n  const issuer = url.searchParams.get('issuer') || '';\n  const account = decodeURIComponent(url.pathname.replace('/totp/', '').replace(/^\\//, ''));\n  return { secret, issuer, account };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Session-scoped CSRF tokens (`__RequestVerificationToken`).\n *\n * MyChart's `/api/*` endpoints reject a POST that arrives without an\n * antiforgery token. Chart scrapers harvest one from the hidden input on their\n * own category page, but the flows that have no category page — TOTP and\n * passkey enrollment, the eUnity imaging handoff — ask `/Home/CSRFToken` for a\n * token directly, and that endpoint is one of the least consistent surfaces\n * across Epic instances. It answers with any of:\n *\n *   - JSON: `{\"Token\": \"...\"}`, or the same key camel-cased, or\n *     `RequestVerificationToken` in either casing\n *   - the bare token as the entire response body\n *   - a full HTML page with the usual hidden input\n *   - an empty 200 (seen on at least one live instance), which is why the\n *     `/Home` page fallback exists\n *\n * Getting this wrong doesn't fail loudly — it produces a token-less POST that\n * the instance answers with ASP.NET's redirect dance, which reads downstream as\n * \"this account has no imaging\" rather than as an error. Three copies of the\n * parsing had drifted apart before this module existed; keep it as the one.\n */\n\nimport { makeAuthenticatedRequest } from './makeAuthenticatedRequest';\nimport type { MyChartRequest } from './myChartRequest';\nimport { getRequestVerificationTokenFromBody } from './util';\nimport { logger } from '../../../shared/logger';\n\n/** JSON keys instances use for the token, in the order we try them. */\nconst JSON_TOKEN_KEYS = [\n  'Token',\n  'token',\n  'RequestVerificationToken',\n  'requestVerificationToken',\n] as const;\n\n/**\n * A bare-string body has to clear this length to be believed. It rules out\n * short error strings (\"0\", \"null\") without excluding any real token — Epic's\n * are base64-ish and dozens of characters long.\n */\nconst MIN_BARE_TOKEN_LENGTH = 10;\n\n/**\n * The token out of a JSON envelope, or undefined when the body is a JSON\n * object that carries none. Returns null when the body isn't a JSON object at\n * all, which is the signal to go on and try the other shapes.\n */\nfunction tokenFromJsonEnvelope(trimmed: string): string | undefined | null {\n  if (!trimmed.startsWith('{')) return null;\n\n  let parsed: unknown;\n  try {\n    parsed = JSON.parse(trimmed);\n  } catch {\n    return null; // Starts with '{' but isn't JSON — treat it as an opaque body.\n  }\n  if (parsed === null || typeof parsed !== 'object') return null;\n\n  const record = parsed as Record<string, unknown>;\n  for (const key of JSON_TOKEN_KEYS) {\n    const value = record[key];\n    if (typeof value === 'string' && value) {\n      logger.debug('Got CSRF token from JSON response');\n      return value;\n    }\n  }\n  return undefined;\n}\n\n/** Pull the token out of a `/Home/CSRFToken` body, whatever shape it arrived in. */\nfunction parseTokenFromCsrfEndpoint(body: string): string | undefined {\n  const trimmed = body.trim();\n\n  // A JSON envelope either carries the token under a known key or carries none.\n  // It must never fall through to the bare-string branch below: `{\"error\":\"x\"}`\n  // has no angle brackets and clears the length bar, so the whole envelope\n  // would be sent as the token and every /api/* POST would be rejected.\n  const fromJson = tokenFromJsonEnvelope(trimmed);\n  if (fromJson !== null) return fromJson;\n\n  // The entire body is the token.\n  if (trimmed && !trimmed.includes('<') && trimmed.length > MIN_BARE_TOKEN_LENGTH) {\n    logger.debug('Got CSRF token as plain string');\n    return trimmed;\n  }\n\n  return getRequestVerificationTokenFromBody(body);\n}\n\n/**\n * Fetch a CSRF token good for this session's `/api/*` POSTs, without going\n * through any particular category page.\n *\n * Returns null when no token can be had — including when the session has been\n * bounced to Terms & Conditions, where `/Home` would only bounce again, so the\n * fallback is deliberately skipped. Callers must treat null as a hard failure:\n * a POST sent without the header is rejected in a way that is easy to misread\n * as an empty chart.\n */\nexport async function fetchSessionCsrfToken(mychartRequest: MyChartRequest): Promise<string | null> {\n  const res = await makeAuthenticatedRequest(mychartRequest, {\n    // Cache-busted so no proxy between us and the instance can serve a stale token.\n    path: '/Home/CSRFToken?noCache=' + Math.random(),\n  });\n  logger.debug('CSRFToken response status:', res.status);\n\n  const body = await res.text();\n\n  const lowered = body.toLowerCase();\n  if (lowered.includes('termsconditions') || lowered.includes('terms and conditions')) {\n    logger.debug('CSRF token request landed on Terms & Conditions page');\n    return null;\n  }\n\n  const token = parseTokenFromCsrfEndpoint(body);\n  if (token) return token;\n\n  logger.debug('CSRFToken endpoint returned no token (length:', body.length, '), trying /Home page fallback');\n  try {\n    const homeRes = await makeAuthenticatedRequest(mychartRequest, { path: '/Home' });\n    const homeToken = getRequestVerificationTokenFromBody(await homeRes.text());\n    if (homeToken) {\n      logger.debug('Got CSRF token from /Home page fallback');\n      return homeToken;\n    }\n    logger.debug('Could not extract CSRF token from /Home page either');\n  } catch (err) {\n    logger.debug('/Home page fallback failed:', err);\n  }\n\n  return null;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { makeAuthenticatedRequest } from '../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { fetchSessionCsrfToken } from '../core/csrf';\nimport { generateTotpCode } from './totp';\nimport { logger } from '../../../shared/logger';\n\nexport interface SetupTotpResult {\n  secret: string | null;\n  error?: string;\n}\n\n// Deliberately status-only: the headers carry Set-Cookie and the bodies of\n// these endpoints carry the TOTP secret, so neither is safe to log.\nfunction logUnexpectedResponse(label: string, resp: Response) {\n  logger.debug(`  ${label} unexpected status: ${resp.status}`);\n}\n\nfunction fail(error: string): SetupTotpResult {\n  return { secret: null, error };\n}\n\n/**\n * Set up TOTP authenticator app on a MyChart account.\n *\n * Flow (discovered via Playwright on a MyChart instance):\n * 1. POST /api/secondary-validation/GetTwoFactorInfo — check current 2FA settings\n * 2. POST /api/secondary-validation/VerifyPasswordAndUpdateContact — verify password\n * 3. POST /api/secondary-validation/TotpQrCode — get QR code data with secret\n * 4. POST /api/secondary-validation/VerifyCode — verify setup with generated code\n * 5. POST /api/secondary-validation/UpdateTwoFactorTotpOptInStatus — finalize opt-in\n *\n * Returns the TOTP secret if setup succeeds, or null with an error message if it fails.\n */\nexport async function setupTotp(mychartRequest: MyChartRequest, password: string): Promise<SetupTotpResult> {\n\n  // Get CSRF token for API requests\n  const csrfToken = await fetchSessionCsrfToken(mychartRequest);\n  if (!csrfToken) {\n    logger.debug('  Could not get CSRF token.');\n    return fail('Could not get CSRF token. The session may have expired.');\n  }\n\n  const apiHeaders: Record<string, string> = {\n    'Content-Type': 'application/json',\n    '__RequestVerificationToken': csrfToken,\n  };\n\n  // Step 1: Check current 2FA settings\n  logger.debug('  Checking current 2FA settings...');\n  const twoFactorInfoResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/GetTwoFactorInfo',\n    method: 'POST',\n    headers: apiHeaders,\n    body: '{}',\n  });\n  if (twoFactorInfoResp.status !== 200) {\n    logUnexpectedResponse('GetTwoFactorInfo', twoFactorInfoResp);\n    if (twoFactorInfoResp.status === 500) {\n      return fail('This MyChart instance does not support authenticator app setup. You can still use SMS/email 2FA codes.');\n    }\n    return fail(`Failed to check 2FA settings (HTTP ${twoFactorInfoResp.status}). The session may have expired.`);\n  }\n  const twoFactorInfo = await twoFactorInfoResp.json();\n  logger.debug('  2FA info keys:', Object.keys(twoFactorInfo).join(', '));\n\n  // Check if TOTP is already enabled\n  if (twoFactorInfo.IsTotpEnabled || twoFactorInfo.isTotpEnabled) {\n    logger.debug('  TOTP authenticator app is already enabled on this account.');\n    logger.debug('  To get the secret, you need to disable and re-enable TOTP in MyChart settings.');\n    return fail('TOTP is already enabled on this MyChart account. To re-configure, disable it in MyChart settings first.');\n  }\n\n  // Step 2: Verify password\n  logger.debug('  Verifying password...');\n  const verifyResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/VerifyPasswordAndUpdateContact',\n    method: 'POST',\n    headers: apiHeaders,\n    body: JSON.stringify({ Password: password }),\n  });\n  if (verifyResp.status !== 200) {\n    logUnexpectedResponse('VerifyPasswordAndUpdateContact', verifyResp);\n    return fail(`Password verification failed (HTTP ${verifyResp.status}).`);\n  }\n  const verifyResult = await verifyResp.json();\n  logger.debug('  VerifyPassword result. IsPasswordValid:', verifyResult.IsPasswordValid ?? verifyResult.isPasswordValid);\n\n  if (verifyResult.IsPasswordValid === false || verifyResult.isPasswordValid === false) {\n    logger.debug('  Password verification failed.');\n    return fail('Password verification failed. The saved password may be incorrect.');\n  }\n  logger.debug('  Password verified.');\n\n  // Step 3: Get QR code / TOTP secret\n  logger.debug('  Requesting TOTP setup...');\n  const qrResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/TotpQrCode',\n    method: 'POST',\n    headers: apiHeaders,\n    body: '{}',\n  });\n  if (qrResp.status !== 200) {\n    logUnexpectedResponse('TotpQrCode', qrResp);\n    return fail(`Failed to get TOTP QR code (HTTP ${qrResp.status}).`);\n  }\n  const qrResult = await qrResp.json();\n  logger.debug('  TotpQrCode response keys:', Object.keys(qrResult).join(', '));\n\n  // The secret key may be in various fields depending on the MyChart version\n  const secret = qrResult.encodedSecretKey || qrResult.EncodedSecretKey || qrResult.SecretKey || qrResult.secretKey || qrResult.Secret || qrResult.secret || qrResult.ManualEntryKey || qrResult.manualEntryKey;\n\n  if (!secret) {\n    // Never log the response itself — this is the payload that carries the\n    // shared secret. The key list above is what a new field name shows up in.\n    logger.debug('  Could not extract TOTP secret from response (no recognized secret field).');\n    return fail('Could not extract TOTP secret from server response.');\n  }\n\n  logger.debug('  Got TOTP secret (length:', secret.length, ')');\n\n  // Step 4: Verify the setup by generating and submitting a TOTP code\n  logger.debug('  Verifying TOTP setup...');\n  const code = await generateTotpCode(secret);\n  logger.debug('  Generated verification code.');\n\n  const verifyTotpResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/VerifyCode',\n    method: 'POST',\n    headers: apiHeaders,\n    body: JSON.stringify({ Code: code }),\n  });\n  const verifyTotpText = await verifyTotpResp.text();\n  logger.debug('  VerifyCode response status:', verifyTotpResp.status, 'success:', verifyTotpText.includes('\"Success\":true'));\n\n  if (verifyTotpResp.status !== 200) {\n    logger.debug('  TOTP code verification failed.');\n    return fail(`TOTP code verification failed (HTTP ${verifyTotpResp.status}).`);\n  }\n\n  // Step 5: Finalize the opt-in\n  logger.debug('  Finalizing TOTP opt-in...');\n  const optInResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/UpdateTwoFactorTotpOptInStatus',\n    method: 'POST',\n    headers: apiHeaders,\n    body: '{}',\n  });\n  logger.debug('  OptIn response status:', optInResp.status);\n\n  if (optInResp.status !== 200) {\n    logUnexpectedResponse('UpdateTwoFactorTotpOptInStatus', optInResp);\n    return fail(`Failed to finalize TOTP opt-in (HTTP ${optInResp.status}).`);\n  }\n\n  logger.debug('  TOTP setup complete! Authenticator app is now enabled.');\n  return { secret };\n}\n\n/**\n * Disable TOTP authenticator app on a MyChart account.\n *\n * Flow:\n * 1. POST /api/secondary-validation/VerifyPasswordAndUpdateContact — verify password\n * 2. POST /api/secondary-validation/VerifyCode — verify with current TOTP code\n * 3. POST /api/secondary-validation/UpdateTwoFactorTotpOptInStatus — finalize opt-out\n */\nexport async function disableTotp(mychartRequest: MyChartRequest, password: string, totpSecret: string): Promise<boolean> {\n  const csrfToken = await fetchSessionCsrfToken(mychartRequest);\n  if (!csrfToken) {\n    logger.debug('  Could not get CSRF token.');\n    return false;\n  }\n\n  const apiHeaders: Record<string, string> = {\n    'Content-Type': 'application/json',\n    '__RequestVerificationToken': csrfToken,\n  };\n\n  // Step 1: Verify password\n  logger.debug('  Verifying password...');\n  const verifyResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/VerifyPasswordAndUpdateContact',\n    method: 'POST',\n    headers: apiHeaders,\n    body: JSON.stringify({ Password: password }),\n  });\n  const verifyResult = await verifyResp.json();\n\n  if (verifyResult.IsPasswordValid === false || verifyResult.isPasswordValid === false) {\n    logger.debug('  Password verification failed.');\n    return false;\n  }\n  logger.debug('  Password verified.');\n\n  // Step 2: Verify with current TOTP code\n  logger.debug('  Generating TOTP code for verification...');\n  const code = await generateTotpCode(totpSecret);\n  logger.debug('  Generated code.');\n\n  const verifyCodeResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/VerifyCode',\n    method: 'POST',\n    headers: apiHeaders,\n    body: JSON.stringify({ Code: code }),\n  });\n\n  if (verifyCodeResp.status !== 200) {\n    logger.debug('  TOTP code verification failed (status:', verifyCodeResp.status, ')');\n    return false;\n  }\n\n  // Step 3: Finalize opt-out\n  logger.debug('  Disabling TOTP...');\n  const optOutResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/secondary-validation/UpdateTwoFactorTotpOptInStatus',\n    method: 'POST',\n    headers: apiHeaders,\n    body: '{}',\n  });\n  logger.debug('  OptOut response status:', optOutResp.status);\n\n  logger.debug('  TOTP disabled! Authenticator app has been removed.');\n  return true;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport * as fs from 'fs';\nimport * as path from 'path';\n\n// Stored relative to the user's current working directory so secrets\n// live in the user's project, not inside node_modules. Override with\n// `MYCHART_TOTP_DIR=/abs/path` if needed.\nconst TOTP_DIR = process.env.MYCHART_TOTP_DIR\n  ? path.resolve(process.env.MYCHART_TOTP_DIR)\n  : path.join(process.cwd(), '.totp-secrets');\n\nfunction getSecretPath(hostname: string): string {\n  return path.join(TOTP_DIR, `${hostname}.txt`);\n}\n\nexport async function saveTotpSecret(hostname: string, secret: string): Promise<void> {\n  await fs.promises.mkdir(TOTP_DIR, { recursive: true });\n  await fs.promises.writeFile(getSecretPath(hostname), secret, 'utf-8');\n  console.log(`  TOTP secret saved to .totp-secrets/${hostname}.txt`);\n}\n\nexport async function loadTotpSecret(hostname: string): Promise<string | null> {\n  try {\n    const secret = await fs.promises.readFile(getSecretPath(hostname), 'utf-8');\n    return secret.trim();\n  } catch {\n    return null;\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { serializeCredential, deserializeCredential, type PasskeyCredential } from '../../../scrapers/myChart/auth/softwareAuthenticator';\n\n// Stored relative to the user's current working directory so credentials\n// live in the user's project, not inside node_modules (which gets nuked\n// on reinstall). Override with `MYCHART_PASSKEY_DIR=/abs/path` if needed.\nconst PASSKEY_DIR = process.env.MYCHART_PASSKEY_DIR\n  ? path.resolve(process.env.MYCHART_PASSKEY_DIR)\n  : path.join(process.cwd(), '.passkey-credentials');\n\nfunction getCredentialPath(hostname: string): string {\n  return path.join(PASSKEY_DIR, `${hostname}.json`);\n}\n\nexport async function savePasskeyCredential(hostname: string, credential: PasskeyCredential): Promise<void> {\n  await fs.promises.mkdir(PASSKEY_DIR, { recursive: true });\n  const basePath = getCredentialPath(hostname);\n\n  // Never overwrite an existing credential — archive it first\n  try {\n    await fs.promises.access(basePath);\n    // File exists — rename to hostname.TIMESTAMP.json\n    const ts = new Date().toISOString().replace(/[:.]/g, '-');\n    const archivePath = path.join(PASSKEY_DIR, `${hostname}.${ts}.json`);\n    await fs.promises.rename(basePath, archivePath);\n    console.log(`  Archived previous passkey to ${hostname}.${ts}.json`);\n  } catch {\n    // No existing file — nothing to archive\n  }\n\n  await fs.promises.writeFile(basePath, serializeCredential(credential), 'utf-8');\n  console.log(`  Passkey credential saved to .passkey-credentials/${hostname}.json`);\n}\n\nexport async function loadPasskeyCredential(hostname: string): Promise<PasskeyCredential | null> {\n  try {\n    const json = await fs.promises.readFile(getCredentialPath(hostname), 'utf-8');\n    return deserializeCredential(json.trim());\n  } catch {\n    return null;\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { PasskeyCredential } from './softwareAuthenticator';\nimport type { LoginResult } from './login';\n\n// How many times we'll bump the WebAuthn signature counter and retry a passkey\n// login before giving up. The server's counter only ever moves a little ahead\n// of ours, so a handful of attempts is plenty; the cap just bounds the work if\n// the passkey is genuinely invalid (every attempt would fail regardless).\nexport const MAX_SIGN_COUNT_BUMPS = 10;\n\n/**\n * Run a passkey login, recovering from WebAuthn signature-counter desync.\n *\n * MyChart enforces a strictly-increasing signature counter on each passkey\n * assertion. Our locally-stored counter can fall behind the server's — a prior\n * login advanced the server but the bumped value was never persisted (e.g. the\n * login was treated as failed, or the process exited first), or the same\n * passkey was used from another device. When that happens the first assertion\n * is rejected because its counter is too low, and the previous behaviour was to\n * give up immediately.\n *\n * Here we treat an `invalid_login` as a possible counter mismatch: bump the\n * counter and retry, up to `maxBumps` times. `attempt` is expected to run the\n * real login (which increments `credential.signCount` while building the\n * assertion), so on success `credential.signCount` holds the value the server\n * accepted and the caller can persist it. Non-counter outcomes (`logged_in`,\n * `need_2fa`, `error`) return immediately — bumping wouldn't help those.\n *\n * `credential` is mutated in place (its `signCount` is advanced); callers\n * should persist it after a successful return.\n *\n * Shared by the CLI (`clients/npm-package/cli/cli.ts`) and the Expo app\n * (`clients/expo-app/src/lib/scrapers/session-manager.ts`) — both auto-login with a\n * locally-stored passkey credential and hit the same desync.\n */\nexport async function passkeyLoginWithCounterRetry(\n  attempt: (credential: PasskeyCredential) => Promise<LoginResult>,\n  credential: PasskeyCredential,\n  maxBumps: number = MAX_SIGN_COUNT_BUMPS,\n): Promise<LoginResult> {\n  const startCount = credential.signCount;\n  let result: LoginResult | undefined;\n\n  for (let bump = 0; bump <= maxBumps; bump++) {\n    // attempt() (via createAssertion) increments signCount before signing, so\n    // setting it to startCount + bump means the server sees startCount + bump +\n    // 1 — a strictly increasing sequence across retries with no gaps or repeats.\n    credential.signCount = startCount + bump;\n    result = await attempt(credential);\n\n    // Anything other than a counter rejection is final.\n    if (result.state !== 'invalid_login') return result;\n  }\n\n  return result!;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The two ways a client logs in with stored credentials, split by who asked.\n *\n * - `machineLogin` — nobody asked: session renewal mid-request, background\n *   refreshes, app-launch reconnects. It either works silently or fails. It\n *   NEVER makes MyChart send a 2FA code.\n * - `humanLogin` — a person just asked for something (a tool call they\n *   prompted, a CLI command, a sign-in screen). It may make MyChart text or\n *   email a code, and hands back the pending login so the caller can collect\n *   that code and finish with `complete2faFlow`.\n *\n * The rule behind the split: a code may only be sent by a caller that keeps\n * the pending login and can accept the code afterwards. A renewal hook can't —\n * it would send a code nobody can type in, then discard the login. Two\n * functions rather than a flag, so a background caller can't pick the wrong\n * mode by accident. Diagrams: docs/login-modes.md.\n *\n * Both share one ladder: saved passkey (with WebAuthn signature-counter\n * retry) → username + password → TOTP-secret 2FA. Only the last rung differs.\n */\n\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { myChartUserPassLogin, myChartPasskeyLogin, complete2faFlow, type TwoFaDeliveryInfo } from './login';\nimport { passkeyLoginWithCounterRetry } from './passkeyLoginRetry';\nimport { generateTotpCode } from './totp';\nimport type { PasskeyCredential } from './softwareAuthenticator';\nimport { logger } from '../../../shared/logger';\n\n/**\n * Every optional here is `| undefined` on purpose: each client reads these out of\n * its own credential store, where \"nothing saved\" surfaces as an explicit\n * undefined, and every read below is a truthiness or `??` check — so an absent\n * key and an undefined one mean the same thing.\n */\nexport type StoredLoginParams = {\n  hostname: string;\n  username?: string | undefined;\n  password?: string | undefined;\n  /** TOTP secret for non-interactive 2FA. */\n  totpSecret?: string | null | undefined;\n  /**\n   * Locally stored passkey. Mutated in place — a login advances its WebAuthn\n   * signature counter — so persist it from `onPasskeyUsed` or the next login\n   * starts a counter-desync recovery dance.\n   *\n   * (No transport parameter: scrapers/http.ts picks the platform's transport —\n   * native-cookie fetch on device, jar-driven fetch on Node/Bun — on its own.)\n   */\n  passkey?: PasskeyCredential | null | undefined;\n  /** 'http' for local fake-mychart; defaults to https. */\n  protocol?: string | undefined;\n  /** A passkey login succeeded — persist the bumped signature counter. */\n  onPasskeyUsed?: ((credential: PasskeyCredential) => void | Promise<void>) | undefined;\n  /** The passkey was rejected as invalid (not a network error) — safe to delete. */\n  onPasskeyInvalid?: ((credential: PasskeyCredential) => void | Promise<void>) | undefined;\n};\n\nexport type MachineLoginOutcome =\n  | { state: 'logged_in'; mychartRequest: MyChartRequest }\n  /** MyChart wants a 2FA code and nothing stored can answer it. Retrying won't help; a person has to sign in. */\n  | { state: 'needs_human'; reason: string }\n  | { state: 'failed'; reason: string };\n\nexport type HumanLoginOutcome =\n  | { state: 'logged_in'; mychartRequest: MyChartRequest }\n  /**\n   * MyChart sent a code. Keep `mychartRequest` — it is the half-finished\n   * login — and pass it with the user's code to `complete2faFlow`.\n   */\n  | {\n      state: 'need_2fa';\n      mychartRequest: MyChartRequest;\n      delivery?: TwoFaDeliveryInfo | undefined;\n      sentAt?: number | undefined;\n    }\n  | { state: 'invalid_login'; reason: string }\n  | { state: 'failed'; reason: string };\n\n/** Log in without a person present. Never sends a 2FA code. */\nexport async function machineLogin(params: StoredLoginParams): Promise<MachineLoginOutcome> {\n  const outcome = await loginLadder(params, false);\n  if (outcome.state === 'need_2fa') {\n    // Unreachable in practice — the ladder only reports need_2fa when it sent\n    // a code — but a pending login here has nobody to finish it.\n    return { state: 'needs_human', reason: '2FA required and no TOTP secret is stored' };\n  }\n  if (outcome.state === 'invalid_login') return { state: 'failed', reason: `login failed (invalid_login: ${outcome.reason})` };\n  return outcome;\n}\n\n/**\n * Log in because a person asked to. May make MyChart text or email a code;\n * on `need_2fa` the caller owns the pending login and must collect the code.\n */\nexport async function humanLogin(params: StoredLoginParams): Promise<HumanLoginOutcome> {\n  const outcome = await loginLadder(params, true);\n  if (outcome.state === 'needs_human') {\n    // Also unreachable: with sending allowed, a 2FA wall comes back as need_2fa.\n    return { state: 'failed', reason: outcome.reason };\n  }\n  return outcome;\n}\n\nasync function loginLadder(\n  params: StoredLoginParams,\n  maySendCode: boolean,\n): Promise<HumanLoginOutcome | { state: 'needs_human'; reason: string }> {\n  const { hostname, protocol } = params;\n\n  if (params.passkey) {\n    const credential = params.passkey;\n    try {\n      const result = await passkeyLoginWithCounterRetry(\n        (cred) => myChartPasskeyLogin({ hostname, credential: cred, protocol }),\n        credential,\n      );\n      if (result.state === 'logged_in') {\n        await params.onPasskeyUsed?.(credential);\n        return { state: 'logged_in', mychartRequest: result.mychartRequest };\n      }\n      logger.warn(`Passkey login for ${hostname} failed (${result.state}), falling back to password`);\n      if (result.state === 'invalid_login') {\n        // Genuinely rejected, not a network blip — counter retry already ruled\n        // out a signature-counter desync.\n        await params.onPasskeyInvalid?.(credential);\n      }\n    } catch (error) {\n      // Network/timeout errors keep the passkey — it may be perfectly valid.\n      logger.warn(`Passkey login for ${hostname} threw (${(error as Error).message}), falling back to password`);\n    }\n  }\n\n  if (!params.username || !params.password) {\n    return { state: 'failed', reason: params.passkey ? 'passkey login failed and no password is available' : 'no stored credentials' };\n  }\n\n  const sendCode = maySendCode && !params.totpSecret;\n  const userPass = await myChartUserPassLogin({\n    hostname,\n    user: params.username,\n    pass: params.password,\n    skipSendCode: !sendCode,\n    protocol,\n  });\n\n  if (userPass.state === 'logged_in') {\n    return { state: 'logged_in', mychartRequest: userPass.mychartRequest };\n  }\n\n  if (userPass.state === 'need_2fa') {\n    if (params.totpSecret) {\n      const code = await generateTotpCode(params.totpSecret);\n      const twoFa = await complete2faFlow({\n        mychartRequest: userPass.mychartRequest,\n        code,\n        isTOTP: true,\n      });\n      if (twoFa.state === 'logged_in') {\n        // complete2faFlow returns its own request object — that is the one\n        // carrying the authenticated cookies.\n        return { state: 'logged_in', mychartRequest: twoFa.mychartRequest };\n      }\n      return { state: 'failed', reason: `TOTP code rejected (${twoFa.state})` };\n    }\n    if (!sendCode) {\n      return { state: 'needs_human', reason: '2FA required and no TOTP secret is stored' };\n    }\n    return {\n      state: 'need_2fa',\n      mychartRequest: userPass.mychartRequest,\n      delivery: userPass.twoFaDelivery,\n      sentAt: userPass.twoFaSentTime,\n    };\n  }\n\n  if (userPass.state === 'invalid_login') {\n    return { state: 'invalid_login', reason: userPass.error ?? 'Username or password is incorrect' };\n  }\n\n  return { state: 'failed', reason: `login failed (${userPass.state}${userPass.error ? `: ${userPass.error}` : ''})` };\n}\n\n/**\n * Wire a request's `reauthenticate` hook to `machineLogin` — renewal happens\n * mid-request with nobody to type a code, so it is always machine mode.\n *\n * `getParams` runs at renewal time, not wiring time, so it can re-read\n * credential stores that may have changed since login (a passkey registered\n * mid-session, an updated password). On success the fresh session state is\n * adopted onto the SAME request object — everything holding a reference keeps\n * working — and `onRenewed` runs so the client can re-persist its cookie\n * cache.\n */\nexport function wireSilentReauthentication(\n  mychartRequest: MyChartRequest,\n  getParams: () => StoredLoginParams | Promise<StoredLoginParams>,\n  onRenewed?: (mychartRequest: MyChartRequest) => void | Promise<void>,\n): void {\n  mychartRequest.reauthenticate = async () => {\n    const params = await getParams();\n    const outcome = await machineLogin(params);\n    if (outcome.state !== 'logged_in') {\n      logger.warn(`Silent re-login for ${mychartRequest.hostname} failed (${outcome.state}): ${outcome.reason}`);\n      return false;\n    }\n    mychartRequest.adoptStateFrom(outcome.mychartRequest);\n    await onRenewed?.(mychartRequest);\n    return true;\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Whether this client is on the version we publish.\n *\n * Reads a small JSON manifest from our own site — `versions` and `updateUrls`,\n * keyed by the things that ship. Four keys because they version separately: the\n * extension is on 2.x while the CLI is on 1.x, so a single \"the version\" would\n * be wrong for someone. The update URL travels in the document so an installed\n * client can be sent somewhere new without needing the update it is announcing.\n *\n * Best-effort throughout: unreachable, 404, not JSON, malformed, not semver —\n * all `null`, meaning \"couldn't tell\". Never a throw, and never a claim of\n * being up to date, which is a different fact.\n */\n\nimport { compareVersions, validate } from 'compare-versions';\n\nimport { scraperFetch } from '../http';\n\nexport const VERSION_MANIFEST_URL = 'https://openrecord.fanpierlabs.com/mcpb_version.json';\n\nexport const VERSION_TARGETS = ['scrapers', 'cli', 'mcpb', 'app'] as const;\nexport type VersionTarget = (typeof VERSION_TARGETS)[number];\n\nexport interface VersionManifest {\n  versions: Record<VersionTarget, string>;\n  updateUrls: Record<VersionTarget, string>;\n}\n\nexport interface VersionCheck {\n  target: VersionTarget;\n  currentVersion: string;\n  latestVersion: string;\n  updateAvailable: boolean;\n  updateUrl: string;\n}\n\nfunction hasEveryTarget(value: unknown): value is Record<VersionTarget, string> {\n  if (typeof value !== 'object' || value === null) return false;\n  const record = value as Record<string, unknown>;\n  return VERSION_TARGETS.every((t) => typeof record[t] === 'string' && record[t] !== '');\n}\n\n/**\n * Validate a parsed document, or return null. Exported because the generator's\n * test checks the committed file with it — the document a client will accept is\n * the one this accepts, and a copy of these rules in a test would only prove\n * the copy agrees with itself.\n */\nexport function parseVersionManifest(value: unknown): VersionManifest | null {\n  if (typeof value !== 'object' || value === null) return null;\n  const doc = value as Record<string, unknown>;\n  if (!hasEveryTarget(doc.versions) || !hasEveryTarget(doc.updateUrls)) return null;\n  return { versions: doc.versions, updateUrls: doc.updateUrls };\n}\n\nexport async function fetchVersionManifest(\n  url: string = VERSION_MANIFEST_URL,\n): Promise<VersionManifest | null> {\n  try {\n    const response = await scraperFetch(url, { headers: { Accept: 'application/json' } });\n    return response.ok ? parseVersionManifest(await response.json()) : null;\n  } catch {\n    return null;\n  }\n}\n\n/**\n * Whether `currentVersion` is behind what we publish for `target`.\n *\n * Runs even when telemetry is off: it sends nothing but the GET itself, and a\n * user who never hears about a fix keeps running the broken scraper.\n */\nexport async function checkVersion(options: {\n  currentVersion: string;\n  target: VersionTarget;\n  /** Skip the fetch and check against a manifest already in hand. */\n  manifest?: VersionManifest;\n  /** Override the manifest location. Tests and staging only. */\n  url?: string;\n}): Promise<VersionCheck | null> {\n  const manifest = options.manifest ?? (await fetchVersionManifest(options.url));\n  if (!manifest) return null;\n\n  const latestVersion = manifest.versions[options.target];\n  // `compareVersions` throws on anything that isn't semver, and both sides can\n  // be — a local build stamped `dev`, a manifest field that is a string but not\n  // a version. The call site is `void checkVersion(...)`, so that would be an\n  // unhandled rejection.\n  if (!validate(options.currentVersion) || !validate(latestVersion)) return null;\n\n  return {\n    target: options.target,\n    currentVersion: options.currentVersion,\n    latestVersion,\n    updateAvailable: compareVersions(options.currentVersion, latestVersion) < 0,\n    updateUrl: manifest.updateUrls[options.target],\n  };\n}\n\n/** The one-line notice a client prints, so no two clients word it differently. */\nexport function formatUpdateNotice(check: VersionCheck): string {\n  return `Update available: v${check.currentVersion} → v${check.latestVersion} — ${check.updateUrl}`;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The one generic markdown renderer behind the `standard` and `concise` modes.\n *\n * Generic on purpose: a per-capability template is a second place for a field\n * to go missing. Whatever is in the object is on the page, in the object's key\n * order, so `standard` markdown and `json` are provably the same data.\n *\n * Rendering rules:\n *   - scalars → `- **key**: value`\n *   - arrays of scalars → `- **key**: a, b, c` (`(none)` when empty)\n *   - arrays of flat objects → a table; anything with nested values, long or\n *     multi-line strings → one sub-section per element\n *   - nested objects → a sub-section\n *   - multi-line strings → a paragraph with hard line breaks, so a note reads\n *     as a note rather than one run-on line\n *   - `null` / `undefined` → `(none)`; booleans and numbers verbatim\n */\n\nimport { markdownTable } from 'markdown-table';\n\nconst MAX_TABLE_CELL = 60;\n\ntype Scalar = string | number | boolean | null | undefined;\n\nfunction isScalar(value: unknown): value is Scalar {\n  return value === null || value === undefined || ['string', 'number', 'boolean'].includes(typeof value);\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n  return value !== null && typeof value === 'object' && !Array.isArray(value);\n}\n\nfunction scalarText(value: Scalar): string {\n  if (value === null || value === undefined) return '(none)';\n  if (typeof value === 'string') return value.trim() === '' ? '(empty)' : value;\n  return String(value);\n}\n\nfunction cell(value: unknown): string {\n  const text = isScalar(value)\n    ? scalarText(value)\n    : Array.isArray(value)\n      ? value.map((v) => (isScalar(v) ? scalarText(v) : JSON.stringify(v))).join(', ')\n      : JSON.stringify(value);\n  return text.replace(/\\|/g, '\\\\|').replace(/\\r?\\n/g, '<br>');\n}\n\n/** A value that can sit in a table cell: a short scalar, or a short list of them. */\nfunction isTabular(value: unknown): boolean {\n  if (isScalar(value)) return typeof value !== 'string' || value.length <= MAX_TABLE_CELL;\n  if (Array.isArray(value)) return value.every(isScalar) && value.join(', ').length <= MAX_TABLE_CELL;\n  return false;\n}\n\nfunction heading(level: number, text: string): string {\n  return `${'#'.repeat(Math.min(level, 6))} ${text}`;\n}\n\nfunction paragraph(text: string): string {\n  return text\n    .split(/\\r?\\n/)\n    .map((line) => line.trimEnd())\n    .join('  \\n');\n}\n\nfunction renderTable(rows: Record<string, unknown>[]): string[] {\n  const columns: string[] = [];\n  for (const row of rows) for (const key of Object.keys(row)) if (!columns.includes(key)) columns.push(key);\n  // markdown-table owns the table syntax; `cell` owns what goes in a cell.\n  // Delimiters are not aligned: padding every cell to the widest one in its\n  // column turns a 20-visit table into mostly spaces.\n  return markdownTable(\n    [columns, ...rows.map((row) => columns.map((c) => cell(row[c])))],\n    { alignDelimiters: false },\n  ).split('\\n');\n}\n\nfunction renderArray(key: string, items: unknown[], level: number, out: string[]): void {\n  if (items.length === 0) {\n    out.push(`- **${key}**: (none)`);\n    return;\n  }\n  if (items.every(isScalar)) {\n    out.push(`- **${key}**: ${items.map((v) => scalarText(v)).join(', ')}`);\n    return;\n  }\n  out.push('', heading(level, `${key} (${items.length})`), '');\n  const records = items.filter(isRecord);\n  if (records.length === items.length && records.every((r) => Object.values(r).every(isTabular))) {\n    out.push(...renderTable(records));\n    return;\n  }\n  items.forEach((item, index) => {\n    if (isRecord(item)) {\n      out.push(heading(level + 1, `${key} ${index + 1}`), '');\n      renderObject(item, level + 1, out);\n      out.push('');\n    } else if (Array.isArray(item)) {\n      renderArray(`${key} ${index + 1}`, item, level + 1, out);\n    } else {\n      out.push(`- ${scalarText(item as Scalar)}`);\n    }\n  });\n}\n\nfunction renderObject(value: Record<string, unknown>, level: number, out: string[]): void {\n  const entries = Object.entries(value);\n  if (entries.length === 0) {\n    out.push('(empty)');\n    return;\n  }\n  for (const [key, child] of entries) {\n    if (isScalar(child)) {\n      if (typeof child === 'string' && child.includes('\\n')) {\n        out.push(`- **${key}**:`, '', paragraph(child), '');\n      } else {\n        out.push(`- **${key}**: ${scalarText(child)}`);\n      }\n    } else if (Array.isArray(child)) {\n      renderArray(key, child, level + 1, out);\n    } else if (isRecord(child)) {\n      out.push('', heading(level + 1, key), '');\n      renderObject(child, level + 1, out);\n    }\n  }\n}\n\n/**\n * Render any JSON-serializable value as markdown. The optional title is an\n * `#` heading; sections of the value start at `##` either way.\n */\nexport function renderMarkdown(value: unknown, title?: string): string {\n  const out: string[] = [];\n  if (title) out.push(heading(1, title), '');\n  if (isScalar(value)) {\n    out.push(typeof value === 'string' && value.includes('\\n') ? paragraph(value) : scalarText(value));\n  } else if (Array.isArray(value)) {\n    renderArray(title ?? 'items', value, 2, out);\n  } else if (isRecord(value)) {\n    renderObject(value, 1, out);\n  }\n  return out\n    .join('\\n')\n    .replace(/\\n{3,}/g, '\\n\\n')\n    .trim() + '\\n';\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The processor contract and the four output modes.\n *\n * A scraper returns a {@link RawResponse}; its processor turns that into what\n * a caller asked for:\n *\n *   raw       — the HTTP body, untouched ({@link unwrapRaw})\n *   json      — the *standard object*: everything with any chance of being\n *               useful, MyChart's own field names, markup stripped into\n *               `<field>Text` fields, always-empty and UI-only fields removed\n *   standard  — the standard object rendered as markdown\n *   concise   — a projection of the standard object rendered as markdown\n *\n * `standard` and `json` are one object rendered two ways, and `concise` is a\n * projection of that same object, so a field can never be in one and not the\n * other. The rules every processor follows are in\n * `docs/processor-layer-proposal.md`; the ones that bite:\n *\n *   - A MyChart field is never edited in place or shadowed. A computed value\n *     gets a new name (`body` stays MyChart's, `bodyText` is the derived one).\n *   - Membership in a mode is decided by the field's NAME, never its value.\n *     A field on the list is emitted even when empty, so \"no allergies on\n *     file\" survives.\n *   - Errors pass through: a literal `null` from an unknown id, a scrape\n *     error, a WAF page — the processor returns it as-is in every mode.\n */\n\nimport { unwrapRaw, type RawResponse } from '../core/rawResponse';\nimport { renderMarkdown } from './markdown';\n\nexport type OutputMode = 'raw' | 'standard' | 'concise' | 'json';\n\nexport const OUTPUT_MODES: readonly OutputMode[] = ['raw', 'standard', 'concise', 'json'];\n\n/**\n * What a programmatic caller gets when it says nothing. The library and the\n * CLI want data; the model-facing clients (MCPB, mobile agent) pass `concise`\n * themselves.\n */\nexport const DEFAULT_OUTPUT_MODE: OutputMode = 'json';\n\nexport function isOutputMode(value: unknown): value is OutputMode {\n  return typeof value === 'string' && (OUTPUT_MODES as readonly string[]).includes(value);\n}\n\nexport interface Processor<S = unknown> {\n  /** Build the standard object from the envelope. Pure. */\n  standard(raw: RawResponse): S;\n  /** Project the standard object to the concise field list. Pure. */\n  concise(standard: S): unknown;\n}\n\n/** Identity on both sides: for payloads that are already the designed shape. */\nexport function passthroughProcessor<S>(pick: (raw: RawResponse) => S): Processor<S> {\n  return { standard: pick, concise: (s) => s };\n}\n\n/**\n * Render one capability's envelope in the requested mode.\n *\n * A scraper that returned something that is not the expected shape — the\n * standard object comes back `null` — is passed through in every mode rather\n * than rendered into nothing.\n */\nexport function renderOutput<S>(processor: Processor<S>, raw: RawResponse, mode: OutputMode): unknown {\n  switch (mode) {\n    case 'raw':\n      return unwrapRaw(raw);\n    case 'json':\n      return processor.standard(raw);\n    case 'standard':\n      return renderMarkdown(processor.standard(raw));\n    case 'concise': {\n      const standard = processor.standard(raw);\n      return renderMarkdown(standard === null || standard === undefined ? standard : processor.concise(standard));\n    }\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Client-facing proxy (multi-patient) helpers shared by the Claude Desktop\n * extension and the mobile app.\n *\n * Both clients expose the same two agent tools — `list_proxy_targets` and\n * `switch_proxy_target` — and gate every other data tool behind\n * `assertProxyReadContext`. The semantics deliberately mirror the CLI's\n * conservative stance (see `clients/npm-package/cli/cli.ts`): reads assert which\n * patient they are about and refuse on a mismatch; only an explicit switch\n * changes MyChart's server-side active patient.\n *\n * The error messages name the agent tools (`switch_proxy_target`,\n * `list_proxy_targets`) so a model that hits a refusal knows exactly which\n * call fixes it. Both clients register the tools under those names.\n */\n\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport {\n  checkProxyContext,\n  compareProfileNames,\n  discoverProxyTargets,\n  findProxyTarget,\n  switchProxyTarget,\n  verifyActiveProxyTarget,\n  type ProxyTarget,\n  type ProxyContextCheck,\n} from './proxyContext';\nimport { DetailedError, detailedMessage } from '../../../shared/detailedError';\n\ntype PatientRecordSummary = {\n  /** Opaque organization-specific record id. Never parse or construct one. */\n  id: string;\n  name: string;\n  is_self: boolean;\n  /** null when the portal does not report which record is active. */\n  is_active: boolean | null;\n};\n\nexport type ListProxyTargetsResult = {\n  count: number;\n  patients: PatientRecordSummary[];\n  /** Display name of the record data tools currently read, when known. */\n  active_patient: string | null;\n  /** Name on the profile page right now — independent evidence of the above. */\n  profile_name: string | null;\n  message: string;\n};\n\nexport type SwitchProxyTargetResult = {\n  switched_to: string;\n  is_self: boolean;\n  verified_profile_name: string | null;\n  verified_dob: string | null;\n  message: string;\n};\n\n/**\n * One proxy discovery per session, shared by every guarded call.\n *\n * Keyed on the request object itself: a re-login (keepalive reconnect, process\n * restart restoring cookies from disk) constructs a fresh MyChartRequest, so\n * stale knowledge about the active patient can never outlive the session it\n * was learned from. Storing the promise rather than the result lets a burst of\n * parallel reads (the mobile app fires its 16 memory categories at once) share\n * a single discovery instead of racing 16 of them.\n */\nconst discoveryCache = new WeakMap<MyChartRequest, Promise<ProxyTarget[]>>();\n\nfunction cachedDiscovery(mychartRequest: MyChartRequest): Promise<ProxyTarget[]> {\n  let pending = discoveryCache.get(mychartRequest);\n  if (!pending) {\n    pending = discoverProxyTargets(mychartRequest);\n    discoveryCache.set(mychartRequest, pending);\n    // A failed discovery must not poison the session — drop it so the next\n    // call retries instead of rejecting forever.\n    pending.catch(() => discoveryCache.delete(mychartRequest));\n  }\n  return pending;\n}\n\n/**\n * List every patient record the account can reach and which one is active.\n * Read-only. Also primes the discovery cache for subsequent guarded reads.\n */\nexport async function runListProxyTargets(mychartRequest: MyChartRequest): Promise<ListProxyTargetsResult> {\n  const targets = await discoverProxyTargets(mychartRequest);\n  discoveryCache.set(mychartRequest, Promise.resolve(targets));\n\n  if (targets.length === 0) {\n    return {\n      count: 0,\n      patients: [],\n      active_patient: null,\n      profile_name: null,\n      message:\n        'This account has access to only its own record — there are no family-member (proxy) records to switch between.',\n    };\n  }\n\n  const verified = await verifyActiveProxyTarget(mychartRequest, { proxyTargets: targets });\n\n  // Prefer the portal's own selection flag; where the discovery surface does\n  // not carry one (the script-block fallback), fall back to matching the\n  // profile page against exactly one known record.\n  let active = verified.selectedTarget;\n  if (!active && verified.profileName) {\n    const byName = targets.filter(\n      (target) => compareProfileNames(target.displayName, verified.profileName!) === 'match',\n    );\n    if (byName.length === 1) active = byName[0]!;\n  }\n\n  return {\n    count: targets.length,\n    patients: targets.map((target) => ({\n      id: target.id,\n      name: target.displayName,\n      is_self: target.isSelf,\n      is_active: target.selectionKnown ? target.isSelected : null,\n    })),\n    active_patient: active ? active.displayName : null,\n    profile_name: verified.profileName,\n    message: [\n      active\n        ? `Data tools on this account currently read ${active.displayName}'s record.`\n        : 'This MyChart instance does not report which record is active (is_active: null).',\n      // Some instances list the account holder's own record even when there\n      // is nothing to switch to — a single-entry list is still \"no proxy access\".\n      targets.length === 1\n        ? 'No other patient records are accessible from this account.'\n        : 'To read a different patient, call switch_proxy_target with their name — data tools never switch on their own.',\n    ].join(' '),\n  };\n}\n\n/**\n * Deliberately switch MyChart's server-side active patient. The one mutation\n * in this module; verified against the profile page by the underlying\n * `switchProxyTarget`, so landing on the wrong patient fails instead of\n * silently returning the wrong chart.\n */\nexport async function runSwitchProxyTarget(\n  mychartRequest: MyChartRequest,\n  patient: string,\n): Promise<SwitchProxyTargetResult> {\n  if (!patient?.trim()) {\n    throw new Error(\n      'Pass the patient to switch to — a name from list_proxy_targets, or \"me\" for the account holder\\'s own record.',\n    );\n  }\n\n  const targets = await discoverProxyTargets(mychartRequest);\n  if (targets.length === 0) {\n    throw new Error('This account has access to only its own record — there is nothing to switch.');\n  }\n\n  const wanted = findProxyTarget(targets, patient);\n  const result = await switchProxyTarget(\n    mychartRequest,\n    wanted.isSelf ? { self: true } : { id: wanted.id },\n    { discoveredTargets: targets },\n  );\n\n  // The cached discovery now reports a stale selection — rediscover lazily.\n  discoveryCache.delete(mychartRequest);\n\n  return {\n    switched_to: result.target.displayName,\n    is_self: result.target.isSelf,\n    verified_profile_name: result.verifiedProfileName,\n    verified_dob: result.verifiedDob,\n    message:\n      `Every data tool on this account now reads ${result.target.displayName}'s record` +\n      `${result.target.isSelf ? \" (the account holder's own chart)\" : ''}.` +\n      (result.target.isSelf ? '' : ' Switch back with patient: \"me\" when done.'),\n  };\n}\n\n/**\n * Assert that MyChart is on the patient a read (or write) is about, WITHOUT\n * changing anything.\n *\n * No `patient` means the account holder — explicitly, not \"whoever the session\n * happens to be pointed at\" — because sessions are resumed from cached cookies\n * and would otherwise inherit whichever patient an earlier invocation left\n * behind. On a mismatch this throws with the exact switch_proxy_target call\n * that fixes it; it never switches on its own.\n *\n * Failure handling mirrors the CLI: when a specific patient was asked for,\n * any inability to verify is a refusal; when nobody asked, a discovery or\n * parsing miss must not break an ordinary read that has nothing to do with\n * proxy access (most accounts have none, and two of the three discovery\n * surfaces are inferred rather than captured from a real instance).\n */\nexport async function assertProxyReadContext(\n  mychartRequest: MyChartRequest,\n  patient?: string,\n): Promise<void> {\n  const wantedQuery = patient?.trim() ? patient.trim() : undefined;\n\n  let check: ProxyContextCheck;\n  try {\n    const targets = await cachedDiscovery(mychartRequest);\n    check = await checkProxyContext(mychartRequest, wantedQuery, { discoveredTargets: targets });\n  } catch (err) {\n    if (wantedQuery) {\n      const lead = 'Could not verify which patient record is active: ';\n      throw new DetailedError(lead + (err as Error).message, lead + detailedMessage(err));\n    }\n    return;\n  }\n\n  // Single-record account: no proxy surface, nothing to assert.\n  if (!check.wanted) {\n    if (wantedQuery) {\n      throw new Error(\n        'This account has access to only one patient record, so `patient` cannot be used. ' +\n          \"Omit it to read the account holder's own record.\",\n      );\n    }\n    return;\n  }\n\n  if (check.active) return;\n\n  const current = check.current\n    ? 'another patient record'\n    : 'an unknown patient record (this MyChart instance does not report which record is active)';\n  const fix = check.wanted.isSelf ? 'patient: \"me\"' : 'the same patient this call passed';\n  const currentName = check.current\n    ? `'${check.current.displayName}'`\n    : 'an unknown patient (this MyChart instance does not report which record is active)';\n  throw new DetailedError(\n    `Refusing to read: MyChart is currently on ${current}, not the one this call is about. ` +\n      'The active patient is server-side MyChart state and reading never changes it. ' +\n      `Call switch_proxy_target with ${fix} to switch deliberately, then retry. ` +\n      'list_proxy_targets shows every record this account can access, and which is active.',\n    `Refusing to read: MyChart is currently on ${currentName}, but this call is about ` +\n      `'${check.wanted.displayName}'. The active patient is server-side MyChart state and reading never ` +\n      `changes it. Call switch_proxy_target with patient: ${JSON.stringify(check.wanted.displayName)} to ` +\n      'switch deliberately, then retry. list_proxy_targets shows every record this account can access.',\n  );\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** Coercion of the untyped arguments a client hands a capability. */\n\nimport type { CapabilityArgs } from './types';\n\n/**\n * Read a string argument.\n *\n * Args arrive untyped — a model emits JSON, the CLI parses `--arg name=value` —\n * but the expected type is NOT a mystery: every param is declared in the\n * registry with a `type`, and these accessors are used for the ones declared\n * `'string'`. So this enforces that declaration rather than guessing what the\n * caller meant.\n *\n * A number or boolean converts, because that conversion is lossless and\n * unambiguous, and a model answering `12345` for a `csn` is ordinary. Anything\n * structural (object, array) is a caller error and throws by name: these values\n * become message bodies, refill comments and search terms that go to a\n * patient's provider, and there is no honest rendering of an object as one.\n * `String()` used to send the literal \"[object Object]\"; JSON-stringifying it\n * instead would just be a tidier way to send the wrong thing.\n */\nfunction argString(v: unknown, name: string): string {\n  if (typeof v === 'string') return v;\n  if (typeof v === 'number' || typeof v === 'boolean' || typeof v === 'bigint') return String(v);\n  throw new Error(\n    `Argument \"${name}\" must be a string; received ${Array.isArray(v) ? 'an array' : `a ${typeof v}`}.`,\n  );\n}\n\nfunction str(args: CapabilityArgs, name: string, fallback = ''): string {\n  const v = args[name];\n  if (v === undefined || v === null) return fallback;\n  return argString(v, name);\n}\n\nexport function requireStr(args: CapabilityArgs, name: string): string {\n  const v = str(args, name).trim();\n  if (!v) throw new Error(`Missing required argument \"${name}\".`);\n  return v;\n}\n\nexport function optStr(args: CapabilityArgs, name: string): string | undefined {\n  const v = args[name];\n  if (v === undefined || v === null || v === '') return undefined;\n  return argString(v, name);\n}\n\nexport function num(args: CapabilityArgs, name: string, fallback: number): number {\n  const v = args[name];\n  if (v === undefined || v === null || v === '') return fallback;\n  const n = Number(v);\n  return Number.isFinite(n) ? n : fallback;\n}\n\n/**\n * Read a `'string[]'` argument. A lone string is one item, never split: a\n * path may contain a comma. (The CLI splits `--arg name=a,b` itself.)\n */\nexport function strList(args: CapabilityArgs, name: string): string[] {\n  const v = args[name];\n  if (v === undefined || v === null || v === '') return [];\n  const items = Array.isArray(v) ? v.map((item) => argString(item, name)) : [argString(v, name)];\n  return items.map((item) => item.trim()).filter(Boolean);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The parameters every client offers on top of a capability's own, and the\n * accessors that read them back.\n *\n * Declared once here rather than per-capability: they are identical on every\n * entry, and `executeCapability` — not any `run` — is what applies them.\n */\n\nimport {\n  DEFAULT_OUTPUT_MODE,\n  OUTPUT_MODES,\n  isOutputMode,\n  type OutputMode,\n} from '../../../scrapers/myChart/processors/processor';\nimport type { CapabilityArgs, CapabilityParam } from './types';\n\n/**\n * Which connected MyChart account the call is for.\n *\n * This is the one parameter every capability takes in every client, and it was\n * the last one still hand-written per client — the extension called it\n * `account` and required it, the mobile app called it `instance` and didn't.\n * That is precisely the drift this registry exists to kill, so it is declared\n * here and the parity test checks for it like any other parameter.\n *\n * `instance` stays an accepted alias: the mobile app's alerts generator and\n * alert cards pass it programmatically, and a saved chat may contain it.\n */\nexport const ACCOUNT_PARAM: CapabilityParam = {\n  name: 'account',\n  type: 'string',\n  description:\n    'MyChart hostname identifying which connected account to use — the `account` value from the ' +\n    'client\\'s account list. Optional when only one account is connected.',\n};\n\n/** Accepted spellings of {@link ACCOUNT_PARAM}, newest first. */\nexport const ACCOUNT_PARAM_NAMES: readonly string[] = [ACCOUNT_PARAM.name, 'instance'];\n\n/** Read the account selector out of a client's arguments, whichever name it used. */\nexport function readAccountArg(args: CapabilityArgs): string | undefined {\n  for (const name of ACCOUNT_PARAM_NAMES) {\n    const value = args[name];\n    if (typeof value === 'string' && value.trim()) return value.trim();\n  }\n  return undefined;\n}\n\n\n/**\n * The output mode a caller asked for, defaulting to {@link DEFAULT_OUTPUT_MODE}.\n * An unknown value is an error rather than a silent fallback: a caller that\n * typed `mode: 'summary'` and got JSON back would not know it was ignored.\n */\nexport function readOutputMode(args: CapabilityArgs): OutputMode {\n  const value = args[MODE_PARAM.name];\n  if (value === undefined || value === null || value === '') return DEFAULT_OUTPUT_MODE;\n  if (isOutputMode(value)) return value;\n  throw new Error(`Unknown mode ${JSON.stringify(value)}. Expected one of: ${OUTPUT_MODES.join(', ')}.`);\n}\n\n/**\n * How a read capability's payload is rendered. Declared once, like\n * {@link PATIENT_PARAM}: every client offers it on every capability that\n * {@link acceptsModeParam}, and {@link executeCapability} applies it.\n */\nexport const MODE_PARAM: CapabilityParam = {\n  name: 'mode',\n  type: 'string',\n  description:\n    'Output mode: `concise` (markdown, the interesting fields), `standard` (markdown, every ' +\n    'useful field), `json` (the standard fields as JSON), or `raw` (the untouched MyChart ' +\n    'response, large).',\n};\n\n/**\n * What a model-facing client passes when the model said nothing. The MCPB and\n * the mobile agent hand the payload straight to a context window, and a 200 KB\n * visits payload is what started the processor layer; `concise` is the right\n * default there, and the model can still ask for any other mode by name.\n * Programmatic callers (the library, the CLI) get {@link DEFAULT_OUTPUT_MODE}.\n */\nexport const MODEL_FACING_OUTPUT_MODE: OutputMode = 'concise';\n\n/** {@link MODE_PARAM} with the client's default stated, for tool descriptions. */\nexport function describeModeParam(defaultMode: OutputMode): string {\n  return `${MODE_PARAM.description} Default: ${defaultMode}.`;\n}\n\n/**\n * The patient parameter every chart-touching capability accepts on top of its\n * own. Not declared per-capability — it is the same on all of them, and the\n * assertion is applied by {@link executeCapability} rather than by any `run`.\n */\nexport const PATIENT_PARAM: CapabilityParam = {\n  name: 'patient',\n  type: 'string',\n  description:\n    \"Which patient's record this call is about, for accounts with MyChart proxy access to family \" +\n    \"members' charts — a name from list_proxy_targets. Omit for the account holder's own record. \" +\n    'If MyChart is currently on a different patient the call fails (with instructions) rather than ' +\n    'switching silently.',\n};\n\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Capabilities that need no MyChart account at all.\n *\n * Two questions, asked by every client before it dispatches, and by the parity\n * test that checks they all ask them. They live in their own module rather\n * than in `index.ts` so `registry/` and `params.ts` can import them without\n * importing the registry that imports `registry/`.\n */\n\nimport type { Capability } from './types';\n\n/**\n * Whether this capability runs with no MyChart account.\n *\n * A public capability takes no `account` parameter, needs no session, and must\n * not be run once per connected account the way every other capability is.\n * That is the `public` reads and the `accountFree` writes.\n */\nexport function isPublicCapability(capability: Capability): boolean {\n  return capability.kind === 'public' || capability.accountFree === true;\n}\n\n/**\n * Whether this capability takes `ACCOUNT_PARAM`.\n *\n * Every capability that touches MyChart does; the `public` ones do not, and\n * offering it on them would be worse than noise — a model told a tool takes an\n * `account` will ask a person to connect one before it will look up an NPI.\n */\nexport function acceptsAccountParam(capability: Capability): boolean {\n  return !isPublicCapability(capability);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Health summary processor. Field decisions: docs/processor-layer-proposal.md, `get_health_summary`.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, textOrNull } from '../../processors/read';\nimport type { FetchH2GHeader, FetchHealthSummary, LastVisit } from './mychart.types';\nimport type { HealthSummaryStandard, MeasurementStandard, VisitPointerStandard } from './standardized.types';\n\nexport type { HealthSummaryStandard, MeasurementStandard, VisitPointerStandard } from './standardized.types';\n\nfunction measurement(value: unknown): MeasurementStandard {\n  const m = rec(value);\n  return { value: textOrNull(m.value), dateRecorded: textOrNull(m.dateRecorded) };\n}\n\nfunction visitPointer(value: unknown): VisitPointerStandard {\n  const v = rec<LastVisit>(value);\n  return { date: textOrNull(v.date), visitType: textOrNull(v.visitType) };\n}\n\nexport const healthSummaryProcessor: Processor<HealthSummaryStandard> = {\n  standard(raw: RawResponse): HealthSummaryStandard {\n    const summary = rec<FetchHealthSummary>(bodyOf(raw, 'FetchHealthSummary'));\n    const h2g = rec<FetchH2GHeader>(bodyOf(raw, 'FetchH2GHeader'));\n    const header = rec(summary.header);\n    return {\n      header: {\n        patientAge: textOrNull(header.patientAge),\n        bloodType: textOrNull(header.bloodType),\n        height: measurement(header.height),\n        weight: measurement(header.weight),\n      },\n      patientFirstName: textOrNull(summary.patientFirstName),\n      isPatientAdmitted: boolOrNull(summary.isPatientAdmitted),\n      conditionList: list(summary.conditionList),\n      journeyList: list(summary.journeyList),\n      actionPlans: list(summary.actionPlans),\n      lastVisit: visitPointer(h2g.lastVisit),\n      nextVisit: visitPointer(h2g.nextVisit),\n    };\n  },\n  concise(standard) {\n    return {\n      header: standard.header,\n      isPatientAdmitted: standard.isPatientAdmitted,\n      lastVisit: standard.lastVisit,\n      nextVisit: standard.nextVisit,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { healthSummaryProcessor, type HealthSummaryStandard } from './healthSummary.processor';\n\nexport type { HealthSummaryStandard, MeasurementStandard, VisitPointerStandard } from './healthSummary.processor';\nexport { healthSummaryProcessor } from './healthSummary.processor';\n\n/**\n * `GET /app/health-summary` for the token, then\n * `POST /api/health-summary/FetchHealthSummary` and `POST /api/health-summary/FetchH2GHeader`.\n */\nexport async function fetchHealthSummaryRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/health-summary');\n  await Promise.all([\n    collector.postJson('/api/health-summary/FetchHealthSummary', token, {}),\n    collector.postJson('/api/health-summary/FetchH2GHeader', token, {}),\n  ]);\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getHealthSummary(mychartRequest: MyChartRequest): Promise<HealthSummaryStandard> {\n  return healthSummaryProcessor.standard(await fetchHealthSummaryRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Medications processor. Field decisions: docs/processor-layer-proposal.md, `get_medications`.\n *\n * `LoadMedicationsPage` nests prescriptions under\n * `communityMembers[].prescriptionList.prescriptions[]` and repeats a ~20-field\n * organization object three times per row. Prescriptions are flattened into\n * one list with `organizationName` lifted onto each; the per-list pharmacy\n * work (pickups, deliveries, refills due) is kept per organization under\n * `prescriptionLists`.\n *\n * `medicationKey` is NOT a MyChart field — the captured skeleton has `id` —\n * so only `id` is surfaced (docs/processor-layer-todo.md §2).\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, strings, textOrNull } from '../../processors/read';\nimport type { CostDetail, LoadMedicationsPage } from './mychart.types';\nimport type { CostDetailsStandard, MedicationsStandard, PrescriptionListStandard, PrescriptionStandard, RefillDetailsStandard } from './standardized.types';\n\nexport type { CostDetailsStandard, LastDispenseStandard, MedicationsStandard, OwningPharmacyStandard, PrescriptionListStandard, PrescriptionStandard, RefillDetailsStandard } from './standardized.types';\n\nfunction costDetails(value: unknown): CostDetailsStandard {\n  const c = rec<CostDetail>(value);\n  return { formattedCopay: textOrNull(c.formattedCopay), copay: num(c.copay), isCopayPending: boolOrNull(c.isCopayPending) };\n}\n\nfunction refillDetails(value: unknown): RefillDetailsStandard | null {\n  if (value === null || value === undefined) return null;\n  const r = rec(value);\n  const last = rec(r.lastDispense);\n  const delivery = rec(last.delivery);\n  const pharmacy = rec(r.owningPharmacy);\n  return {\n    isRefillable: boolOrNull(r.isRefillable),\n    refillsRemaining: textOrNull(r.refillsRemaining),\n    hasRefillsRemaining: boolOrNull(r.hasRefillsRemaining),\n    refillStatus: num(r.refillStatus),\n    refillExpirationDate: textOrNull(r.refillExpirationDate),\n    refillWarningCode: textOrNull(r.refillWarningCode),\n    scheduledFillDate: textOrNull(r.scheduledFillDate),\n    externalFillRequestDate: textOrNull(r.externalFillRequestDate),\n    nextDispenseDate: textOrNull(r.nextDispenseDate),\n    writtenDispenseQuantity: textOrNull(r.writtenDispenseQuantity),\n    writtenDispenseUnit: textOrNull(r.writtenDispenseUnit),\n    writtenDispenseAmount: textOrNull(r.writtenDispenseAmount),\n    daySupply: textOrNull(r.daySupply),\n    lastDispense: {\n      dispenseQuantity: textOrNull(last.dispenseQuantity),\n      dispenseUnit: textOrNull(last.dispenseUnit),\n      dispenseAmount: textOrNull(last.dispenseAmount),\n      dispenseDate: textOrNull(last.dispenseDate),\n      isRxReady: boolOrNull(last.isRxReady),\n      dispenseType: num(last.dispenseType),\n      costDetails: costDetails(last.costDetails),\n      delivery: {\n        formattedShipDate: textOrNull(delivery.formattedShipDate),\n        formattedAddress: strings(delivery.formattedAddress),\n        shipmentTrackingInfo: list(delivery.shipmentTrackingInfo),\n      },\n    },\n    costDetails: costDetails(r.costDetails),\n    owningPharmacy: {\n      name: textOrNull(pharmacy.name),\n      phoneNumber: textOrNull(pharmacy.phoneNumber),\n      formattedAddress: strings(pharmacy.formattedAddress),\n      hours: list(pharmacy.hours),\n      isPreferred: boolOrNull(pharmacy.isPreferred),\n    },\n  };\n}\n\nfunction prescription(value: unknown, organizationName: string | null): PrescriptionStandard {\n  const p = rec(value);\n  const friendly = rec(p.patientFriendlyName);\n  return {\n    id: textOrNull(p.id),\n    name: textOrNull(p.name),\n    patientFriendlyName: {\n      text: textOrNull(friendly.text),\n      caption: textOrNull(friendly.caption),\n      captionType: textOrNull(friendly.captionType),\n    },\n    sig: textOrNull(p.sig),\n    sigTranslationFromOrder: textOrNull(p.sigTranslationFromOrder),\n    dateToDisplay: textOrNull(p.dateToDisplay),\n    dateDisplayKey: textOrNull(p.dateDisplayKey),\n    formattedDateNoted: textOrNull(p.formattedDateNoted),\n    startDate: textOrNull(p.startDate),\n    lastUpdateInstant: textOrNull(p.lastUpdateInstant),\n    hasFutureStartDate: boolOrNull(p.hasFutureStartDate),\n    prescriptionNumber: textOrNull(p.prescriptionNumber),\n    authorizingProvider: { name: textOrNull(rec(p.authorizingProvider).name) },\n    orderingProvider: { name: textOrNull(rec(p.orderingProvider).name) },\n    isPatientReported: boolOrNull(p.isPatientReported),\n    isClinicReported: boolOrNull(p.isClinicReported),\n    isPendingUpdate: boolOrNull(p.isPendingUpdate),\n    pendingUpdateType: num(p.pendingUpdateType),\n    isAnticoagulationMed: boolOrNull(p.isAnticoagulationMed),\n    isFrequencyPRN: boolOrNull(p.isFrequencyPRN),\n    criticalMedMessage: textOrNull(p.criticalMedMessage),\n    classList: strings(p.classList),\n    varianceComment: textOrNull(p.varianceComment),\n    previousTakingDiffSig: textOrNull(p.previousTakingDiffSig),\n    previousTakingDiffSigInstant: textOrNull(p.previousTakingDiffSigInstant),\n    previousTakingDiffSigCSN: textOrNull(p.previousTakingDiffSigCSN),\n    refillDetails: refillDetails(p.refillDetails),\n    organizationName,\n  };\n}\n\nexport const medicationsProcessor: Processor<MedicationsStandard> = {\n  standard(raw: RawResponse): MedicationsStandard {\n    const body = rec<LoadMedicationsPage>(bodyOf(raw, 'LoadMedicationsPage'));\n    const prescriptions: PrescriptionStandard[] = [];\n    const prescriptionLists: PrescriptionListStandard[] = [];\n    for (const member of list(body.communityMembers)) {\n      const m = rec(member);\n      const organizationName = textOrNull(rec(m.organization).organizationName);\n      const pl = rec(m.prescriptionList);\n      for (const rx of list(pl.prescriptions)) prescriptions.push(prescription(rx, organizationName));\n      prescriptionLists.push({\n        organizationName,\n        numRefillsDueSoon: num(pl.numRefillsDueSoon),\n        previousTakingValuesDate: textOrNull(pl.previousTakingValuesDate),\n        pickups: list(pl.pickups),\n        deliveries: list(pl.deliveries),\n        inProgressWorkRequests: list(pl.inProgressWorkRequests),\n      });\n    }\n    return { getPatientFirstName: textOrNull(body.getPatientFirstName), prescriptions, prescriptionLists };\n  },\n  concise(standard) {\n    return {\n      prescriptions: standard.prescriptions.map((p) => ({\n        id: p.id,\n        name: p.name,\n        patientFriendlyName: p.patientFriendlyName.text,\n        sig: p.sig,\n        dateToDisplay: p.dateToDisplay,\n        dateDisplayKey: p.dateDisplayKey,\n        authorizingProvider: p.authorizingProvider.name,\n        isPatientReported: p.isPatientReported,\n        isRefillable: p.refillDetails?.isRefillable ?? null,\n        refillsRemaining: p.refillDetails?.refillsRemaining ?? null,\n        hasRefillsRemaining: p.refillDetails?.hasRefillsRemaining ?? null,\n        owningPharmacy: p.refillDetails?.owningPharmacy.name ?? null,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { medicationsProcessor, type MedicationsStandard } from './medications.processor';\n\nexport type {\n  MedicationsStandard,\n  PrescriptionStandard,\n  PrescriptionListStandard,\n  RefillDetailsStandard,\n  OwningPharmacyStandard,\n  LastDispenseStandard,\n  CostDetailsStandard,\n} from './medications.processor';\nexport { medicationsProcessor } from './medications.processor';\n\n/** `GET /Clinical/Medications` for the token, then `POST /api/medications/LoadMedicationsPage`. */\nexport async function fetchMedicationsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Clinical/Medications');\n  await collector.postJson('/api/medications/LoadMedicationsPage', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getMedications(mychartRequest: MyChartRequest): Promise<MedicationsStandard> {\n  return medicationsProcessor.standard(await fetchMedicationsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Allergies processor. Field decisions: docs/processor-layer-proposal.md, `get_allergies`.\n *\n * The captured account had no allergies, so the `dataList` element shape is\n * unverified and passed through whole (rule 10). An empty list is emitted in\n * every mode: \"no allergies on file\" is the answer most readers want.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { list, num, rec, textOrNull } from '../../processors/read';\nimport type { LoadAllergies } from './mychart.types';\nimport type { AllergiesStandard } from './standardized.types';\n\nexport type { AllergiesStandard } from './standardized.types';\n\nexport const allergiesProcessor: Processor<AllergiesStandard> = {\n  standard(raw: RawResponse): AllergiesStandard {\n    const body = rec<LoadAllergies>(bodyOf(raw, 'LoadAllergies'));\n    return {\n      dataList: list(body.dataList),\n      allergiesStatus: num(body.allergiesStatus),\n      dateOfBirth: textOrNull(body.dateOfBirth),\n    };\n  },\n  concise(standard) {\n    return { dataList: standard.dataList, allergiesStatus: standard.allergiesStatus };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { allergiesProcessor, type AllergiesStandard } from './allergies.processor';\n\nexport type { AllergiesStandard } from './allergies.processor';\nexport { allergiesProcessor } from './allergies.processor';\n\n/** `GET /Clinical/Allergies` for the token, then `POST /api/allergies/LoadAllergies`. */\nexport async function fetchAllergiesRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Clinical/Allergies');\n  await collector.postJson('/api/allergies/LoadAllergies', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getAllergies(mychartRequest: MyChartRequest): Promise<AllergiesStandard> {\n  return allergiesProcessor.standard(await fetchAllergiesRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Health issues processor. Field decisions: docs/processor-layer-proposal.md, `get_health_issues`.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, textOrNull } from '../../processors/read';\nimport type { LoadHealthIssuesData } from './mychart.types';\nimport type { HealthIssuesStandard } from './standardized.types';\n\nexport type { HealthIssueStandard, HealthIssuesStandard } from './standardized.types';\n\nexport const healthIssuesProcessor: Processor<HealthIssuesStandard> = {\n  standard(raw: RawResponse): HealthIssuesStandard {\n    const body = rec<LoadHealthIssuesData>(bodyOf(raw, 'LoadHealthIssuesData'));\n    return {\n      dataList: list(body.dataList).map((entry) => {\n        const e = rec(entry);\n        const item = rec(e.healthIssueItem);\n        return {\n          healthIssueItem: {\n            name: textOrNull(item.name),\n            formattedDateNoted: textOrNull(item.formattedDateNoted),\n            id: textOrNull(item.id),\n            isReadOnly: boolOrNull(item.isReadOnly),\n          },\n          externalItems: list(e.externalItems),\n          externalOrgs: list(e.externalOrgs),\n          hasLocalInstance: boolOrNull(e.hasLocalInstance),\n        };\n      }),\n    };\n  },\n  concise(standard) {\n    return {\n      dataList: standard.dataList.map((d) => ({\n        name: d.healthIssueItem.name,\n        formattedDateNoted: d.healthIssueItem.formattedDateNoted,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { healthIssuesProcessor, type HealthIssuesStandard } from './healthIssues.processor';\n\nexport type { HealthIssuesStandard, HealthIssueStandard } from './healthIssues.processor';\nexport { healthIssuesProcessor } from './healthIssues.processor';\n\n/** `GET /Clinical/HealthIssues` for the token, then `POST /api/HealthIssues/LoadHealthIssuesData`. */\nexport async function fetchHealthIssuesRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Clinical/HealthIssues');\n  await collector.postJson('/api/HealthIssues/LoadHealthIssuesData', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getHealthIssues(mychartRequest: MyChartRequest): Promise<HealthIssuesStandard> {\n  return healthIssuesProcessor.standard(await fetchHealthIssuesRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Vitals processor. Field decisions: docs/processor-layer-proposal.md, `get_vitals`.\n *\n * MyChart splits Track My Health across two endpoints: `GetFlowsheets` (the\n * episodes and their row metadata, no values) and `GetFlowsheetReadings`\n * (the readings, paged backwards). The scraper records every page; this joins\n * them back into one flowsheet per episode, de-duplicating the boundary\n * instant that consecutive pages both carry.\n */\n\nimport { findRequest, findRequests, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, strings, text, textOrNull } from '../../processors/read';\nimport type { GetFlowsheetReadings, GetFlowsheets } from './mychart.types';\nimport type { FlowsheetRowStandard, FlowsheetStandard, VitalReadingStandard, VitalsStandard } from './standardized.types';\n\nexport type { FlowsheetRowGroupStandard, FlowsheetRowStandard, FlowsheetStandard, VitalReadingStandard, VitalsStandard } from './standardized.types';\n\n/** At most one decimal, no trailing zero: 155.6 stays, 150.0 becomes 150. */\nfunction oneDecimal(n: number): string {\n  return String(Number(n.toFixed(1)));\n}\n\n/**\n * `numericValue` is in Epic's base unit — weight in OUNCES, height in INCHES,\n * temperature in °F — while `unitsDisplayName` names the unit the MyChart UI\n * shows. Verified on a real instance: a 150 lb weight arrives as 2400 beside\n * `lbs`, a 5' 10\" height as 70 beside `ft` (README). Convert into the display\n * unit. Any other unit — including `kg` / `cm`, which no captured instance has\n * sent — passes the number through untouched rather than modelling a guess.\n */\nexport function displayValue(n: number, unitsDisplayName: string | null | undefined): string {\n  switch ((unitsDisplayName ?? '').trim().toLowerCase()) {\n    case 'lbs':\n    case 'lb':\n      return oneDecimal(n / 16);\n    case 'ft': {\n      // Round the total first so 71.96 in is 6' 0\", not 5' 12\".\n      const total = Number(n.toFixed(1));\n      const feet = Math.floor(total / 12);\n      return `${feet}' ${oneDecimal(total - feet * 12)}\"`;\n    }\n    default:\n      return String(n);\n  }\n}\n\n/**\n * MyChart sends BOTH value fields on every reading: string rows (Blood\n * Pressure, \"145/95\") carry `stringValue`, while numeric rows (Pulse, Weight)\n * carry the number in `numericValue` and still include `stringValue` as an\n * EMPTY string. Take the first field that actually holds something, and put a\n * number into the row's display unit.\n */\nexport function readingValue(reading: Record<string, unknown>, unitsDisplayName?: string | null): string {\n  const s = text(reading.stringValue).trim();\n  if (s) return s;\n  const n = num(reading.numericValue);\n  return n === null ? '' : displayValue(n, unitsDisplayName);\n}\n\nfunction row(value: unknown): FlowsheetRowStandard {\n  const r = rec(value);\n  return {\n    id: textOrNull(r.id),\n    name: textOrNull(r.name),\n    unitsDisplayName: textOrNull(r.unitsDisplayName),\n    rowType: textOrNull(r.rowType),\n    valueType: textOrNull(r.valueType),\n    decimalPlaces: num(r.decimalPlaces),\n  };\n}\n\nfunction readingStandard(value: unknown, unitsDisplayName: string | null | undefined): VitalReadingStandard {\n  const r = rec(value);\n  return {\n    rowId: textOrNull(r.rowId),\n    instantTakenIso: textOrNull(r.instantTakenIso),\n    timeZone: textOrNull(r.timeZone),\n    stringValue: textOrNull(r.stringValue),\n    numericValue: num(r.numericValue),\n    value: readingValue(r, unitsDisplayName),\n    isAbnormal: boolOrNull(r.isAbnormal),\n    entryType: textOrNull(r.entryType),\n    documentationSource: textOrNull(r.documentationSource),\n  };\n}\n\nexport const vitalsProcessor: Processor<VitalsStandard> = {\n  standard(raw: RawResponse): VitalsStandard {\n    const listBody = rec<GetFlowsheets>(findRequest(raw, 'GetFlowsheets')?.body);\n    const pages = findRequests(raw, 'GetFlowsheetReadings');\n    const flowsheets: FlowsheetStandard[] = [];\n\n    for (const fs of list(listBody.flowsheets)) {\n      const definition = rec(fs);\n      const episodeId = text(definition.episodeId);\n      const ownPages = pages.filter((p) => text(rec(p.requestBody).episodeId) === episodeId);\n\n      // Row metadata from the definition, backfilled from the readings pages\n      // when GetFlowsheets omitted it.\n      const rows = new Map<string, FlowsheetRowStandard>();\n      const addRows = (source: unknown) => {\n        for (const r of list(source)) {\n          const parsed = row(r);\n          if (parsed.id && !rows.has(parsed.id)) rows.set(parsed.id, parsed);\n        }\n      };\n      addRows(definition.rows);\n      for (const page of ownPages) addRows(rec(rec<GetFlowsheetReadings>(page.body).flowsheet).rows);\n\n      const seen = new Set<string>();\n      const readings: VitalReadingStandard[] = [];\n      for (const page of ownPages) {\n        for (const r of list(rec(rec<GetFlowsheetReadings>(page.body).flowsheet).readings)) {\n          const parsed = readingStandard(r, rows.get(text(rec(r).rowId))?.unitsDisplayName);\n          const key = `${parsed.rowId ?? ''}\\u0000${parsed.instantTakenIso ?? ''}`;\n          if (seen.has(key)) continue;\n          seen.add(key);\n          readings.push(parsed);\n        }\n      }\n\n      flowsheets.push({\n        name: textOrNull(definition.name),\n        status: textOrNull(definition.status),\n        startDateIso: textOrNull(definition.startDateIso),\n        endDateIso: textOrNull(definition.endDateIso),\n        instructions: textOrNull(definition.instructions),\n        rows: [...rows.values()],\n        rowGroups: list(definition.rowGroups).map((g) => ({\n          id: textOrNull(rec(g).id),\n          name: textOrNull(rec(g).name),\n          rowIds: strings(rec(g).rowIds),\n        })),\n        readings,\n      });\n    }\n    return { flowsheets };\n  },\n\n  /** Per vital type: name, units, the latest reading, the count, and every abnormal reading. */\n  concise(standard) {\n    return {\n      flowsheets: standard.flowsheets.map((fs) => ({\n        name: fs.name,\n        rows: fs.rows.map((r) => {\n          const own = fs.readings\n            .filter((reading) => reading.rowId === r.id)\n            .sort((a, b) => (a.instantTakenIso ?? '').localeCompare(b.instantTakenIso ?? ''));\n          const latest = own[own.length - 1];\n          return {\n            name: r.name,\n            unitsDisplayName: r.unitsDisplayName,\n            readingCount: own.length,\n            latestReading: latest ? { instantTakenIso: latest.instantTakenIso, value: latest.value, isAbnormal: latest.isAbnormal } : null,\n            abnormalReadings: own\n              .filter((reading) => reading.isAbnormal === true)\n              .map((reading) => ({ instantTakenIso: reading.instantTakenIso, value: reading.value })),\n          };\n        }),\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { logger } from '../../../../shared/logger';\nimport { list, rec, text } from '../../processors/read';\nimport type { GetFlowsheetReadings, GetFlowsheets } from './mychart.types';\nimport { vitalsProcessor, type VitalsStandard } from './vitals.processor';\n\nexport type {\n  VitalsStandard,\n  FlowsheetStandard,\n  FlowsheetRowStandard,\n  FlowsheetRowGroupStandard,\n  VitalReadingStandard,\n} from './vitals.processor';\nexport { vitalsProcessor, readingValue, displayValue } from './vitals.processor';\n\n/** End-of-day tomorrow, formatted as MyChart expects (no timezone suffix). */\nfunction defaultEndInstantIso(): string {\n  const d = new Date();\n  d.setDate(d.getDate() + 1);\n  const p = (n: number) => String(n).padStart(2, '0');\n  return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())}T23:59:59`;\n}\n\n// NOTE: numReadings caps distinct reading INSTANTS (flowsheet columns), not\n// individual readings. At 200 this silently truncated history to the most recent\n// 200 instants — ~693 readings across 7 vital types, which looked like plenty and\n// hid the cap for months.\nconst PAGE_SIZE = 1000;\nconst MAX_PAGES = 100; // safety bound for accounts with long histories\n\n/**\n * Track My Health vitals (Blood Pressure, Weight, Pulse, etc.).\n *\n * MyChart splits this across TWO endpoints:\n *   1. GetFlowsheets        → flowsheet definitions (episodeId + row metadata; NO values)\n *   2. GetFlowsheetReadings → the actual readings for an episode, paginated\n *\n * Every page is recorded; the processor joins them back into one flowsheet\n * per episode.\n */\nexport async function fetchVitalsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/track-my-health');\n\n  const listBody = rec<GetFlowsheets>(await collector.postJson('/api/track-my-health/GetFlowsheets', token, { organizationId: '' }));\n\n  for (const fs of list(listBody.flowsheets)) {\n    const episodeId = text(rec(fs).episodeId);\n    if (!episodeId) continue;\n\n    let endInstantIso = defaultEndInstantIso();\n    for (let page = 0; page < MAX_PAGES; page++) {\n      const body = rec<GetFlowsheetReadings>(\n        await collector.postJson('/api/track-my-health/GetFlowsheetReadings', token, {\n          episodeId,\n          endInstantIso,\n          numReadings: PAGE_SIZE,\n        }),\n      );\n      const data = rec(body.flowsheet);\n      if (Object.keys(data).length === 0) break;\n\n      let oldestInstant: string | undefined;\n      for (const r of list(data.readings)) {\n        const instant = text(rec(r).instantTakenIso);\n        if (instant && (oldestInstant === undefined || instant < oldestInstant)) oldestInstant = instant;\n      }\n\n      // Deliberately NOT keyed off hasMoreData: MyChart reports it false while\n      // older readings still exist, which is what capped history at one page.\n      // Walk back from the oldest instant this page returned and stop only when\n      // a request fails to reach any further back.\n      if (!oldestInstant || oldestInstant >= endInstantIso) break;\n      endInstantIso = oldestInstant;\n    }\n  }\n\n  logger.debug(`vitals: ${collector.requests.length} requests recorded`);\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getVitals(mychartRequest: MyChartRequest): Promise<VitalsStandard> {\n  return vitalsProcessor.standard(await fetchVitalsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Immunizations processor. Field decisions: docs/processor-layer-proposal.md, `get_immunizations`.\n *\n * The per-organization nesting is flattened; the organization survives as\n * `organizationName` on each row (the rest of the organization object is the\n * org blob, dropped).\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { list, rec, strings, textOrNull } from '../../processors/read';\nimport type { LoadImmunizations } from './mychart.types';\nimport type { ImmunizationStandard, ImmunizationsStandard } from './standardized.types';\n\nexport type { ImmunizationStandard, ImmunizationsStandard } from './standardized.types';\n\nexport const immunizationsProcessor: Processor<ImmunizationsStandard> = {\n  standard(raw: RawResponse): ImmunizationsStandard {\n    const body = rec<LoadImmunizations>(bodyOf(raw, 'LoadImmunizations'));\n    const immunizations: ImmunizationStandard[] = [];\n    for (const group of list(body.organizationImmunizationList)) {\n      const g = rec(group);\n      const organizationName = textOrNull(rec(g.organization).organizationName);\n      for (const imm of list(g.orgImmunizations)) {\n        const i = rec(imm);\n        immunizations.push({\n          name: textOrNull(i.name),\n          formattedAdministeredDates: strings(i.formattedAdministeredDates),\n          id: textOrNull(i.id),\n          organizationName,\n        });\n      }\n    }\n    return { immunizations };\n  },\n  concise(standard) {\n    return {\n      immunizations: standard.immunizations.map((i) => ({\n        name: i.name,\n        formattedAdministeredDates: i.formattedAdministeredDates,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { immunizationsProcessor, type ImmunizationsStandard } from './immunizations.processor';\n\nexport type { ImmunizationsStandard, ImmunizationStandard } from './immunizations.processor';\nexport { immunizationsProcessor } from './immunizations.processor';\n\n/** `GET /Clinical/Immunizations` for the token, then `POST /api/immunizations/LoadImmunizations`. */\nexport async function fetchImmunizationsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Clinical/Immunizations');\n  await collector.postJson('/api/immunizations/LoadImmunizations', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getImmunizations(mychartRequest: MyChartRequest): Promise<ImmunizationsStandard> {\n  return immunizationsProcessor.standard(await fetchImmunizationsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Preventive care processor. Field decisions: docs/processor-layer-proposal.md, `get_preventive_care`.\n *\n * The payload is `POST /HealthAdvisories/GetTopics`, whose envelope is\n * `{ HealthAdvisoryViewModelList, HealthAdvisorySettings }` — captured live on\n * one instance (`/MyChart-PRD`, 13 topics). Topics pass through whole under a\n * derived `dueStatus`, rather than through a fixed field list: one instance is\n * not enough evidence to fix that list, and a list built from one capture\n * silently drops whatever a second Epic release adds.\n *\n * **`HealthAdvisoryViewModelList` absent is not \"no screenings due\".** The\n * controller reads a non-empty `Text` as the error surface and a null list as\n * \"none\" (`healthadvisoriescontroller.min.js`), so a null or empty list is a\n * real answer and anything else — a failed request, an error `Text`, an\n * envelope without the key — is named in `unavailable` instead. That\n * distinction is the whole bug this file was rewritten for: `/HealthAdvisories`\n * is a client-rendered shell (zero `<table>` elements in 111KB of page), and\n * parsing it for a table returned `items: []` for a chart that has 13\n * advisories.\n *\n * There is deliberately no HTML parser here any more. One existed, for \"an\n * instance that still renders the table server-side\" — but no such instance has\n * ever been seen, so it could only ever produce items from a page shape nobody\n * has captured, which is the same class of answer this file exists to stop\n * making. `unavailable` is the honest answer when the endpoint does not answer.\n * The day a server-rendered instance turns up, its capture says what to write.\n */\n\nimport { answered, findRequest, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { list, rec, text } from '../../processors/read';\nimport type { HealthAdvisoriesGetTopics } from './mychart.types';\nimport type { PreventiveCareStandard, PreventiveCareStatus } from './standardized.types';\n\nexport type { PreventiveCareItemStandard, PreventiveCareStandard, PreventiveCareStatus } from './standardized.types';\n\nexport const ADVISORIES_PAGE_PATH = '/HealthAdvisories';\nexport const GET_TOPICS_PATH = '/HealthAdvisories/GetTopics';\n\nconst STATUS_BY_CODE: Record<string, PreventiveCareStatus> = {\n  '100_OVERDUE': 'overdue',\n  '200_DUE': 'due',\n  '300_DUESOON': 'due_soon',\n  '400_POSTPONED': 'postponed',\n  '500_NOTDUE': 'not_due',\n  '600_ADDRESSED': 'addressed',\n  '700_SATISFIED': 'satisfied',\n  '800_AGED_OUT': 'aged_out',\n  '900_EXCLUDED': 'excluded',\n};\n\n/** `StatusCode` → {@link PreventiveCareStatus}. Epic's custom `<code>^<text>` form has no known meaning. */\nexport function statusFromCode(code: unknown): PreventiveCareStatus {\n  return STATUS_BY_CODE[text(code).trim().toUpperCase()] ?? 'unknown';\n}\n\n/** Concise keeps the screening, where it stands and the two dates that say why. */\nconst CONCISE_FIELDS = ['Name', 'dueStatus', 'Status', 'FormattedDueDate', 'FormattedLastDoneDate'] as const;\n\nexport const preventiveCareProcessor: Processor<PreventiveCareStandard> = {\n  standard(raw: RawResponse): PreventiveCareStandard {\n    const topics = findRequest(raw, GET_TOPICS_PATH);\n    const envelope = answered(topics) ? rec<HealthAdvisoriesGetTopics>(topics.body) : {};\n\n    // The controller's own test for the error surface: a non-empty `Text`.\n    // A successful response carries no `Text` key at all, so no capture has it\n    // and it is read off the untyped body.\n    const known =\n      answered(topics) && text(rec(topics.body).Text).length === 0 && 'HealthAdvisoryViewModelList' in envelope;\n\n    if (!known) return { items: [], settings: {}, unavailable: [GET_TOPICS_PATH] };\n\n    return {\n      items: list(envelope.HealthAdvisoryViewModelList).map((topic) => {\n        const t = rec(topic);\n        return { ...t, dueStatus: statusFromCode(t.StatusCode) };\n      }),\n      settings: rec(envelope.HealthAdvisorySettings),\n      unavailable: [],\n    };\n  },\n\n  concise(standard) {\n    return {\n      items: standard.items.map((item) =>\n        Object.fromEntries(CONCISE_FIELDS.map((field) => [field, item[field] ?? ''])),\n      ),\n      unavailable: standard.unavailable,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport {\n  ADVISORIES_PAGE_PATH,\n  GET_TOPICS_PATH,\n  preventiveCareProcessor,\n  type PreventiveCareStandard,\n} from './preventiveCare.processor';\n\nexport type { PreventiveCareStandard, PreventiveCareItemStandard, PreventiveCareStatus } from './preventiveCare.processor';\nexport {\n  preventiveCareProcessor,\n  statusFromCode,\n  GET_TOPICS_PATH,\n} from './preventiveCare.processor';\n\n/**\n * `GET /HealthAdvisories` for the token, then `POST /HealthAdvisories/GetTopics`.\n *\n * The page used to be the whole scraper, and on a real instance it is an empty\n * client-rendered shell — `<div id=\"hm-list-activity\">` with a comment in it,\n * and not one `<table>`, `<tr>` or `<td>` in 111KB. Parsing it for a table\n * returned \"no screenings due\" for a chart with thirteen advisories. The\n * advisories come from the legacy `Area/Controller/Action` endpoint the\n * activity's own controller calls (`healthadvisoriescontroller.min.js`):\n *\n *   POST /HealthAdvisories/GetTopics   → { HealthAdvisoryViewModelList, HealthAdvisorySettings }\n *\n * form-encoded with `registryID`, which the standalone activity passes as the\n * empty string. Verified against the live instance: the antiforgery token is\n * required (without it, and with it in the query string, the endpoint answers\n * 500) and works either as the `__RequestVerificationToken` header or in the\n * form body — the header, as `Insurance/Coverages/GetPayors` sends it. Nothing\n * else in the request matters there: absent, lowercased and bogus `registryID`\n * all returned the same thirteen topics, as did dropping `X-Requested-With`.\n * `registryID` is sent as the controller sends it rather than trimmed to what\n * one instance ignores.\n *\n * The failure is tolerated rather than thrown so the answer is a named gap\n * rather than an exception: the processor reports\n * `unavailable: ['/HealthAdvisories/GetTopics']`, which a caller can tell apart\n * from a chart with nothing due. The page is fetched only for its token —\n * there is nothing else on it to read.\n */\nexport async function fetchPreventiveCareRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken(ADVISORIES_PAGE_PATH);\n\n  await collector.send(\n    {\n      path: GET_TOPICS_PATH,\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n        'X-Requested-With': 'XMLHttpRequest',\n        __RequestVerificationToken: token,\n      },\n      body: new URLSearchParams({ registryID: '' }).toString(),\n    },\n    { tolerateFailure: true },\n  );\n\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getPreventiveCare(mychartRequest: MyChartRequest): Promise<PreventiveCareStandard> {\n  return preventiveCareProcessor.standard(await fetchPreventiveCareRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Medical history processor. Field decisions: docs/processor-layer-proposal.md, `get_medical_history`.\n *\n * The scraper used to drop the whole `socialHistory` block (smoking, alcohol);\n * it is one of the first things any history asks, so it is here in both modes.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { list, rec, strings, textOrNull } from '../../processors/read';\nimport type { LoadHistoriesViewModel } from './mychart.types';\nimport type { MedicalHistoryStandard } from './standardized.types';\n\nexport type { DiagnosisStandard, FamilyMemberStandard, MedicalHistoryStandard, SurgeryStandard } from './standardized.types';\n\nexport const medicalHistoryProcessor: Processor<MedicalHistoryStandard> = {\n  standard(raw: RawResponse): MedicalHistoryStandard {\n    const body = rec<LoadHistoriesViewModel>(bodyOf(raw, 'LoadHistoriesViewModel'));\n    const medical = rec(body.medicalHistory);\n    const surgical = rec(body.surgicalHistory);\n    const family = rec(body.familyHistoryAndStatus);\n    const social = rec(body.socialHistory);\n    const smoking = rec(social.smokingHistory);\n    const smokeless = rec(social.smokelessHistory);\n    const alcohol = rec(social.alcoholHistory);\n    return {\n      medicalHistory: {\n        diagnoses: list(medical.diagnoses).map((d) => ({\n          diagnosisName: textOrNull(rec(d).diagnosisName),\n          diagnosisDate: textOrNull(rec(d).diagnosisDate),\n        })),\n        medicalHistoryNotes: textOrNull(medical.medicalHistoryNotes),\n      },\n      surgicalHistory: {\n        surgeries: list(surgical.surgeries).map((s) => ({\n          surgeryName: textOrNull(rec(s).surgeryName),\n          surgeryDate: textOrNull(rec(s).surgeryDate),\n        })),\n        surgicalHistoryNotes: textOrNull(surgical.surgicalHistoryNotes),\n      },\n      familyHistoryAndStatus: {\n        familyMembers: list(family.familyMembers).map((m) => {\n          const member = rec(m);\n          return {\n            relationshipToPatientName: textOrNull(member.relationshipToPatientName),\n            conditions: strings(member.conditions),\n            statusName: textOrNull(member.statusName),\n            nameOrAlias: textOrNull(member.nameOrAlias),\n            sexName: textOrNull(member.sexName),\n            relativeAge: textOrNull(member.relativeAge),\n            relativeAgeEnd: textOrNull(member.relativeAgeEnd),\n          };\n        }),\n        familyHistoryNotes: textOrNull(family.familyHistoryNotes),\n        familyStatusNotes: textOrNull(family.familyStatusNotes),\n      },\n      socialHistory: {\n        smokingHistory: {\n          smokingTobaccoStatus: textOrNull(smoking.smokingTobaccoStatus),\n          tobaccoUse: textOrNull(smoking.tobaccoUse),\n          smokingTobaccoTypes: strings(smoking.smokingTobaccoTypes),\n          smokingTobaccoQuitDate: textOrNull(smoking.smokingTobaccoQuitDate),\n        },\n        smokelessHistory: {\n          smokelessTobaccoStatus: textOrNull(smokeless.smokelessTobaccoStatus),\n          smokelessTobaccoTypes: strings(smokeless.smokelessTobaccoTypes),\n          smokelessQuitDate: textOrNull(smokeless.smokelessQuitDate),\n        },\n        alcoholHistory: {\n          alcoholUse: textOrNull(alcohol.alcoholUse),\n          alcoholAmount: textOrNull(alcohol.alcoholAmount),\n          alcoholUnit: textOrNull(alcohol.alcoholUnit),\n        },\n        socialHistoryNotes: textOrNull(social.socialHistoryNotes),\n      },\n    };\n  },\n  concise(standard) {\n    return {\n      diagnoses: standard.medicalHistory.diagnoses,\n      surgeries: standard.surgicalHistory.surgeries,\n      familyMembers: standard.familyHistoryAndStatus.familyMembers.map((m) => ({\n        relationshipToPatientName: m.relationshipToPatientName,\n        statusName: m.statusName,\n        conditions: m.conditions,\n      })),\n      smokingTobaccoStatus: standard.socialHistory.smokingHistory.smokingTobaccoStatus,\n      tobaccoUse: standard.socialHistory.smokingHistory.tobaccoUse,\n      alcoholUse: standard.socialHistory.alcoholHistory.alcoholUse,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { medicalHistoryProcessor, type MedicalHistoryStandard } from './medicalHistory.processor';\n\nexport type {\n  MedicalHistoryStandard,\n  DiagnosisStandard,\n  SurgeryStandard,\n  FamilyMemberStandard,\n} from './medicalHistory.processor';\nexport { medicalHistoryProcessor } from './medicalHistory.processor';\n\n/** `GET /app/histories` for the token, then `POST /api/histories/LoadHistoriesViewModel`. */\nexport async function fetchMedicalHistoryRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/histories');\n  await collector.postJson('/api/histories/LoadHistoriesViewModel', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getMedicalHistory(mychartRequest: MyChartRequest): Promise<MedicalHistoryStandard> {\n  return medicalHistoryProcessor.standard(await fetchMedicalHistoryRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Goals processor. Field decisions: docs/processor-layer-proposal.md, `get_goals`.\n *\n * Two things the endpoints do that a naive read gets wrong, both observed on\n * four live instances:\n *\n * 1. **`LoadPatientGoals` always returns one goal.** Three of the four\n *    accounts, none of which has ever set a health goal, answered with a\n *    single element whose every field is blank (`goalId: \"\"`, `goalType: 0`,\n *    `readings: []`). It is the empty editable slot the activity renders, not\n *    a goal: `epic.px.client.goals` decides whether the patient has any with\n *    `patientGoals.length > 0 && !isNullOrEmpty(patientGoals[0].text)`, and its\n *    `setPatientGoal` reducer *deletes* an element whose `text` is `''`. So\n *    `text` is the display field, and an element without one is dropped here\n *    the same way — otherwise every patient in the product has exactly one\n *    nameless goal.\n * 2. **`LoadCareTeamGoals` takes `{ FullLoad: true }` for the whole list.**\n *    The bare `{}` the scraper used to post is the health-summary widget's\n *    abbreviated load. Both answered `[]` on all four accounts, so this is\n *    correctness in the request rather than a fix to an observed loss.\n *\n * Element shapes stay pass-through (rule 10): every captured `careTeamGoals`\n * was `[]`, and the only captured `patientGoals` element is the empty slot, so\n * no real element's field set has been seen. `source` is the one added field.\n *\n * A failing endpoint is named in `unavailable` rather than reported as an\n * empty list — one instance answers `LoadPatientGoals` with HTTP 500 on every\n * request, and \"you have set no goals\" is the wrong thing to say about that.\n */\n\nimport { findRequest, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { list, rec, text } from '../../processors/read';\nimport type { LoadCareTeamGoals, LoadPatientGoals } from './mychart.types';\nimport type { GoalsStandard } from './standardized.types';\n\nexport type { GoalSource, GoalsStandard } from './standardized.types';\n\nexport const LOAD_CARE_TEAM_GOALS_PATH = '/api/goals/LoadCareTeamGoals';\nexport const LOAD_PATIENT_GOALS_PATH = '/api/goals/LoadPatientGoals';\n\n/**\n * The empty editable slot MyChart returns for a patient with no goals: no\n * display text. The React activity treats exactly this as \"no goals\".\n */\nfunction isEmptyPatientGoalSlot(goal: Record<string, unknown>): boolean {\n  return text(goal.text).trim() === '';\n}\n\nexport const goalsProcessor: Processor<GoalsStandard> = {\n  standard(raw: RawResponse): GoalsStandard {\n    const unavailable: string[] = [];\n\n    function envelope(path: string): unknown {\n      const record = findRequest(raw, path);\n      if (!record || record.failure || record.status < 200 || record.status >= 300) {\n        unavailable.push(path);\n        return {};\n      }\n      return record.body;\n    }\n\n    const careTeam = rec<LoadCareTeamGoals>(envelope(LOAD_CARE_TEAM_GOALS_PATH));\n    const patient = rec<LoadPatientGoals>(envelope(LOAD_PATIENT_GOALS_PATH));\n\n    return {\n      careTeamGoals: list(careTeam.careTeamGoals).map((g) => ({ ...rec(g), source: 'care_team' as const })),\n      patientGoals: list(patient.patientGoals)\n        .map((g) => rec(g))\n        .filter((g) => !isEmptyPatientGoalSlot(g))\n        .map((g) => ({ ...g, source: 'patient' as const })),\n      unavailable,\n    };\n  },\n  concise: (standard) => standard,\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse, type MyChartResponseError } from '../../core/rawResponse';\nimport {\n  LOAD_CARE_TEAM_GOALS_PATH,\n  LOAD_PATIENT_GOALS_PATH,\n  goalsProcessor,\n  type GoalsStandard,\n} from './goals.processor';\n\nexport type { GoalsStandard, GoalSource } from './goals.processor';\nexport { goalsProcessor, LOAD_CARE_TEAM_GOALS_PATH, LOAD_PATIENT_GOALS_PATH } from './goals.processor';\n\n/**\n * `GET /app/goals` for the token, then `POST /api/goals/LoadCareTeamGoals` and\n * `POST /api/goals/LoadPatientGoals`. Real MyChart keys each list by its own\n * name (`careTeamGoals` / `patientGoals`); see the processor for what is and is\n * not known about the elements.\n *\n * `FullLoad: true` is the goals *activity's* request for care-team goals, as\n * against the bare `{}` the health-summary widget sends for its abbreviated\n * list (`epic.px.client.goals`). Neither the whole list nor the abbreviated one\n * is a superset of the other by construction, so the activity's is the one to\n * ask for.\n *\n * Neither call alone is allowed to fail the whole read: one captured instance\n * answers `LoadPatientGoals` with HTTP 500 every time while care-team goals\n * load fine, so each is tolerated and the processor names a failed endpoint\n * rather than calling it empty. Both failing is a failed read, though — there\n * is nothing loaded to return — and throws the first failure.\n */\nexport async function fetchGoalsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/goals');\n  const failures: MyChartResponseError[] = [];\n  for (const [path, body] of [\n    [LOAD_CARE_TEAM_GOALS_PATH, { FullLoad: true }],\n    [LOAD_PATIENT_GOALS_PATH, {}],\n  ] as const) {\n    const request = { path, method: 'POST' as const, headers: { 'Content-Type': 'application/json', __RequestVerificationToken: token }, body: JSON.stringify(body) };\n    const { failure } = await collector.send(request, { tolerateFailure: true });\n    if (failure) failures.push(failure);\n  }\n  if (failures.length === 2) throw failures[0]!;\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getGoals(mychartRequest: MyChartRequest): Promise<GoalsStandard> {\n  return goalsProcessor.standard(await fetchGoalsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** The `Profile` group — the standing facts about a patient's health. */\n\nimport { fetchProfileRaw, profileProcessor } from '../../../../scrapers/myChart/chart/profile/profile';\nimport { fetchHealthSummaryRaw, healthSummaryProcessor } from '../../../../scrapers/myChart/chart/healthSummary/healthSummary';\nimport { fetchMedicationsRaw, medicationsProcessor } from '../../../../scrapers/myChart/chart/medications/medications';\nimport { fetchAllergiesRaw, allergiesProcessor } from '../../../../scrapers/myChart/chart/allergies/allergies';\nimport { fetchHealthIssuesRaw, healthIssuesProcessor } from '../../../../scrapers/myChart/chart/healthIssues/healthIssues';\nimport { fetchVitalsRaw, vitalsProcessor } from '../../../../scrapers/myChart/chart/vitals/vitals';\nimport { fetchImmunizationsRaw, immunizationsProcessor } from '../../../../scrapers/myChart/chart/immunizations/immunizations';\nimport { fetchPreventiveCareRaw, preventiveCareProcessor } from '../../../../scrapers/myChart/chart/preventiveCare/preventiveCare';\nimport { fetchMedicalHistoryRaw, medicalHistoryProcessor } from '../../../../scrapers/myChart/chart/medicalHistory/medicalHistory';\nimport { fetchGoalsRaw, goalsProcessor } from '../../../../scrapers/myChart/chart/goals/goals';\nimport type { CapabilityImpl } from '../types';\n\nexport const PROFILE_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_profile',\n    title: 'Patient profile',\n    description: 'Patient profile (name, date of birth, medical record number, primary care provider) plus the account email address.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchProfileRaw(request),\n    processor: profileProcessor,\n  },\n  {\n    id: 'get_health_summary',\n    title: 'Health summary',\n    description: 'Health summary — vitals snapshot, blood type, smoking status and similar top-level facts.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchHealthSummaryRaw(request),\n    processor: healthSummaryProcessor,\n  },\n  {\n    id: 'get_medications',\n    title: 'Medications',\n    description: 'Current medications with dosage, instructions, prescriber and pharmacy.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchMedicationsRaw(request),\n    processor: medicationsProcessor,\n  },\n  {\n    id: 'get_allergies',\n    title: 'Allergies',\n    description: 'Known allergies with reaction and severity.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchAllergiesRaw(request),\n    processor: allergiesProcessor,\n  },\n  {\n    id: 'get_health_issues',\n    title: 'Health issues',\n    description: 'Active health issues / problem list.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchHealthIssuesRaw(request),\n    processor: healthIssuesProcessor,\n  },\n  {\n    id: 'get_vitals',\n    title: 'Vitals',\n    description: 'Vitals and tracked flowsheet readings (weight, blood pressure, heart rate, glucose, etc.).',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchVitalsRaw(request),\n    processor: vitalsProcessor,\n  },\n  {\n    id: 'get_immunizations',\n    title: 'Immunizations',\n    description: 'Vaccination history.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchImmunizationsRaw(request),\n    processor: immunizationsProcessor,\n  },\n  {\n    id: 'get_preventive_care',\n    title: 'Preventive care',\n    description: 'Preventive care recommendations — overdue and upcoming screenings.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchPreventiveCareRaw(request),\n    processor: preventiveCareProcessor,\n  },\n  {\n    id: 'get_medical_history',\n    title: 'Medical history',\n    description: 'Past medical, surgical, family and social history.',\n    kind: 'read',\n    group: 'Profile',\n    params: [],\n    run: (request) => fetchMedicalHistoryRaw(request),\n    processor: medicalHistoryProcessor,\n  },\n  {\n    id: 'get_goals',\n    title: 'Goals',\n    description: 'Care team goals and patient-set goals.',\n    kind: 'read',\n    group: 'Profile',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchGoalsRaw(request),\n    processor: goalsProcessor,\n  },\n\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Visit notes and report content processors. Field decisions:\n * docs/processor-layer-proposal.md, `get_visit_notes` and\n * `get_note_content` / `get_visit_avs`.\n *\n * `GetVisitNotes` answers a literal JSON `null` for an unknown CSN, and\n * `LoadReportContent` does the same for an unknown note; both pass through as\n * `null` (rule 7). MyChart's spelling (`lrpID`, `hnoID`, `hnoDAT`, `magicID`)\n * is kept on every pass-through field (rule 2); the only derived fields are\n * `csn` (the request body's CSN, so the result names its visit) and\n * `reportContentText` (the HTML stripped to text, rule 9).\n */\n\nimport { findRequest, type RawResponse } from '../../core/rawResponse';\nimport { htmlToText } from '../../processors/htmlText';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, text, textOrNull } from '../../processors/read';\nimport type { GetVisitNotes } from './mychart.types';\nimport type { NoteContentStandard, VisitNotesStandard } from './standardized.types';\n\nexport type { NoteContentStandard, VisitNoteStandard, VisitNotesStandard } from './standardized.types';\n\nexport const visitNotesProcessor: Processor<VisitNotesStandard | null> = {\n  standard(raw: RawResponse): VisitNotesStandard | null {\n    const request = findRequest(raw, 'GetVisitNotes');\n    const body = request?.body;\n    if (body === null || body === undefined) return null;\n    const b = rec<GetVisitNotes>(body);\n    return {\n      csn: text(rec(request?.requestBody).CSN),\n      lrpID: textOrNull(b.lrpID),\n      depPhoneNumber: textOrNull(b.depPhoneNumber),\n      isAtLeastOneNoteSensitive: boolOrNull(b.isAtLeastOneNoteSensitive),\n      noteList: list(b.noteList).map((entry) => {\n        const n = rec(entry);\n        const provider = rec(n.provider);\n        return {\n          hnoID: textOrNull(n.hnoID),\n          hnoDAT: textOrNull(n.hnoDAT),\n          displayName: textOrNull(n.displayName),\n          iso: textOrNull(n.iso),\n          provider: { name: textOrNull(provider.name), magicID: textOrNull(provider.magicID) },\n          isAddendum: boolOrNull(n.isAddendum),\n          isNoteSensitive: boolOrNull(n.isNoteSensitive),\n          attachments: list(n.attachments),\n        };\n      }),\n    };\n  },\n  concise(standard) {\n    if (standard === null) return null;\n    return {\n      csn: standard.csn,\n      lrpID: standard.lrpID,\n      noteList: standard.noteList.map((n) => ({\n        hnoID: n.hnoID,\n        hnoDAT: n.hnoDAT,\n        displayName: n.displayName,\n        iso: n.iso,\n        provider: { name: n.provider.name },\n      })),\n    };\n  },\n};\n\n/** Shared by `get_note_content` (OPEN_NOTES) and `get_visit_avs` (AMB_AVS). */\nexport const noteContentProcessor: Processor<NoteContentStandard | null> = {\n  standard(raw: RawResponse): NoteContentStandard | null {\n    const body = findRequest(raw, 'LoadReportContent')?.body;\n    if (body === null || body === undefined) return null;\n    return { reportContentText: htmlToText(text(rec(body).reportContent)) };\n  },\n  concise(standard) {\n    return standard;\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport {\n  noteContentProcessor,\n  visitNotesProcessor,\n  type NoteContentStandard,\n  type VisitNotesStandard,\n} from './notes.processor';\n\nexport type { VisitNotesStandard, VisitNoteStandard, NoteContentStandard } from './notes.processor';\nexport { visitNotesProcessor, noteContentProcessor } from './notes.processor';\n\n/**\n * The CSRF token. Uses /Visits/VisitsList for consistency with the sibling\n * visits scraper.\n */\nconst VISITS_PAGE = '/Visits/VisitsList';\n\n/**\n * Surface F5 Volterra WAF rejections (200 OK with a text/html \"Request\n * Rejected\" body) as a clear error rather than letting the caller find an\n * HTML string where JSON was expected. Any other non-JSON answer is reported\n * as a probably-expired session.\n */\nexport function requireJsonBody(\n  result: { response: Response; text: string },\n  endpoint: string,\n): void {\n  const contentType = result.response.headers.get('content-type') || '';\n  if (contentType.includes('json')) return;\n  const server = result.response.headers.get('server') || '';\n  const bodyPreview = result.text.slice(0, 200);\n  if (server.includes('volt') || bodyPreview.includes('Request Rejected')) {\n    throw new Error(\n      `MyChart WAF (${server || 'unknown'}) rejected ${endpoint}. ` +\n        `The session is likely valid but the WAF blocked this request shape. ` +\n        `Try refreshing your MyChart login.`,\n    );\n  }\n  throw new Error(\n    `Expected JSON from ${endpoint} but got ${contentType || 'no content-type'}. Session may have expired.`,\n  );\n}\n\nasync function postJsonChecked(collector: RawCollector, path: string, token: string, body: unknown): Promise<void> {\n  const result = await collector.send({\n    path,\n    method: 'POST',\n    headers: { 'Content-Type': 'application/json', __requestverificationtoken: token },\n    body: JSON.stringify(body),\n  });\n  requireJsonBody(result, path);\n}\n\n/** `POST /api/visit-notes/GetVisitNotes` `{ CSN, FromPvdPage }` — the notes attached to a past visit. */\nexport async function fetchVisitNotesRaw(mychartRequest: MyChartRequest, csn: string): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken(VISITS_PAGE + '?noCache=' + Math.random());\n  await postJsonChecked(collector, '/api/visit-notes/GetVisitNotes', token, { CSN: csn, FromPvdPage: true });\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. `null` for an unknown CSN. */\nexport async function getVisitNotes(mychartRequest: MyChartRequest, csn: string): Promise<VisitNotesStandard | null> {\n  return visitNotesProcessor.standard(await fetchVisitNotesRaw(mychartRequest, csn));\n}\n\n/**\n * `POST /api/report-content/LoadReportContent` with `OPEN_NOTES` — one note's\n * rendered HTML. `lrpId` is shared by every note of a visit; `hnoId`/`hnoDat`\n * identify the note.\n */\nexport async function fetchNoteContentRaw(\n  mychartRequest: MyChartRequest,\n  params: { csn: string; lrpId: string; hnoId: string; hnoDat: string },\n): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken(VISITS_PAGE + '?noCache=' + Math.random());\n  await postJsonChecked(collector, '/api/report-content/LoadReportContent', token, {\n    reportMnemonic: 'OPEN_NOTES',\n    reportID: params.lrpId,\n    contextID: params.hnoId,\n    contextDAT: params.hnoDat,\n    contextINI: 'HNO',\n    csn: params.csn,\n    isFullReportPage: false,\n    uniqueClass: 'EID-1',\n    nonce: '',\n  });\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getNoteContent(\n  mychartRequest: MyChartRequest,\n  params: { csn: string; lrpId: string; hnoId: string; hnoDat: string },\n): Promise<NoteContentStandard | null> {\n  return noteContentProcessor.standard(await fetchNoteContentRaw(mychartRequest, params));\n}\n\n/** Same endpoint with `AMB_AVS` — the After Visit Summary for a past visit. */\nexport async function fetchVisitAvsRaw(mychartRequest: MyChartRequest, csn: string): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken(VISITS_PAGE + '?noCache=' + Math.random());\n  await postJsonChecked(collector, '/api/report-content/LoadReportContent', token, {\n    reportMnemonic: 'AMB_AVS',\n    reportID: '',\n    csn,\n    isFullReportPage: false,\n    uniqueClass: 'EID-1',\n    nonce: '',\n  });\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getVisitAVS(mychartRequest: MyChartRequest, csn: string): Promise<NoteContentStandard | null> {\n  return noteContentProcessor.standard(await fetchVisitAvsRaw(mychartRequest, csn));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Visits processors. Field decisions: docs/processor-layer-proposal.md,\n * `get_upcoming_visits` and `get_past_visits`.\n *\n * Both endpoints return the same ~160-field visit view model, so one\n * `visitStandard` mapper serves both. `LoadUpcoming` answers three buckets\n * (in progress / next N days / later) which are flattened into one list with\n * `bucket` on each row; `LoadPast` answers one page per organization and the\n * scraper records every page, so the per-organization merge happens here.\n *\n * `status` is derived from the seven status booleans in most-specific-first\n * order (PR #380): a canceled visit reported as \"completed\" is a lie about\n * care the patient never received. `IsPastVisit` is never consulted — it is\n * false on rows `LoadPast` itself returned (#377).\n */\n\nimport { findRequest, findRequests, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { bool, boolOrNull, epicInstantMs, isoFromMs, list, num, rec, strings, text, textOrNull } from '../../processors/read';\nimport type { Specialty, VisitDepartment, VisitOrganization, VisitProvider, VisitsLoadPast, VisitsLoadUpcoming } from './mychart.types';\nimport type { PastVisitsStandard, UpcomingVisitStandard, UpcomingVisitsStandard, VisitBucket, VisitConcise, VisitDepartmentStandard, VisitProviderStandard, VisitStandard, VisitStatus } from './standardized.types';\n\nexport type { PastVisitsStandard, UpcomingVisitStandard, UpcomingVisitsStandard, VisitBucket, VisitConcise, VisitDepartmentStandard, VisitDiagnosisStandard, VisitPreadmissionLocationStandard, VisitProcedureStandard, VisitProviderStandard, VisitStandard, VisitStatus } from './standardized.types';\n\n/**\n * The epoch-millis timestamp of a raw visit: its `Instant` (`/Date(ms)/`),\n * falling back to `PrimaryDate`. Null when neither parses, so a caller can\n * keep paginating (or sort the row last) rather than stop on an odd row.\n */\nexport function visitInstantMs(visit: Record<string, unknown>): number | null {\n  const ms = epicInstantMs(visit.Instant);\n  if (ms !== null) return ms;\n  const primary = text(visit.PrimaryDate);\n  if (primary) {\n    const t = Date.parse(primary);\n    if (!Number.isNaN(t)) return t;\n  }\n  return null;\n}\n\n/** `status`, in PR #380's order. `isPast` is \"this row came from `LoadPast`\". */\nexport function visitStatus(visit: Record<string, unknown>, isPast: boolean): VisitStatus {\n  if (bool(visit.IsCanceled)) return 'canceled';\n  if (bool(visit.IsNoShow)) return 'no_show';\n  if (bool(visit.LeftWithoutSeen)) return 'left_without_being_seen';\n  if (bool(visit.InProgress)) return 'in_progress';\n  if (bool(visit.IsArrived)) return 'arrived';\n  if (isPast) return 'completed';\n  if (bool(visit.IsCancelRequestSent)) return 'cancel_requested';\n  if (bool(visit.IsConfirmed)) return 'confirmed';\n  return 'scheduled';\n}\n\nfunction isObject(value: unknown): boolean {\n  return value !== null && typeof value === 'object' && !Array.isArray(value);\n}\n\nfunction textOrNumber(value: unknown): string | number | null {\n  return typeof value === 'string' ? value : num(value);\n}\n\nfunction named(value: unknown): { Name: string | null } {\n  return { Name: textOrNull(rec(value).Name) };\n}\n\nfunction instructions(value: unknown): Array<{ Text: string | null }> {\n  return list(value).map((i) => ({ Text: textOrNull(rec(i).Text) }));\n}\n\nfunction department(value: unknown): VisitDepartmentStandard {\n  const d = rec<VisitDepartment>(value);\n  return {\n    Name: textOrNull(d.Name),\n    Address: strings(d.Address),\n    PhoneNumber: textOrNull(d.PhoneNumber),\n    Specialty: { Title: textOrNull(rec<Specialty>(d.Specialty).Title) },\n    Instructions: instructions(d.Instructions),\n    ArrivalLocation: textOrNull(d.ArrivalLocation),\n    TimeZone: textOrNull(d.TimeZone),\n  };\n}\n\nfunction provider(value: unknown): VisitProviderStandard {\n  const p = rec<VisitProvider>(value);\n  const d = p.Department;\n  return {\n    Name: textOrNull(p.Name),\n    Department: isObject(d)\n      ? { Name: textOrNull(rec(d).Name), Address: strings(rec(d).Address), PhoneNumber: textOrNull(rec(d).PhoneNumber) }\n      : null,\n  };\n}\n\n/**\n * One raw visit row → the standard visit. `isPast` feeds `status`.\n * `containerOrganizationName` is the `LoadPast` organization container's\n * name, used only when the row carries no `Organization.OrganizationName`\n * of its own — the same fact, one level up.\n */\nexport function visitStandard(value: unknown, isPast: boolean, containerOrganizationName: string | null = null): VisitStandard {\n  const v = rec(value);\n  const admission = v.AdmissionDateRange;\n  const preadmission = v.PreadmissionLocation;\n  const telemedicine = v.Telemedicine;\n  const evisit = v.EVisit;\n  const copay = v.Copay;\n  return {\n    Csn: textOrNull(v.Csn),\n    CsnForECheckIn: textOrNull(v.CsnForECheckIn),\n    Id: textOrNull(v.Id),\n    ReferenceID: textOrNull(v.ReferenceID),\n\n    Instant: textOrNull(v.Instant),\n    instantISO: isoFromMs(epicInstantMs(v.Instant)),\n    PrimaryDate: textOrNull(v.PrimaryDate),\n    TimeZone: textOrNull(v.TimeZone),\n    IsTimeToBeDetermined: boolOrNull(v.IsTimeToBeDetermined),\n    IsHideVisitTime: boolOrNull(v.IsHideVisitTime),\n    DurationInMinutes: num(v.DurationInMinutes),\n    HasDuration: boolOrNull(v.HasDuration),\n    ArrivalTime: textOrNull(v.ArrivalTime),\n    EarlyArrivalReason: textOrNull(v.EarlyArrivalReason),\n    AdmissionDateRange: isObject(admission)\n      ? { Start: textOrNull(rec(admission).Start), End: textOrNull(rec(admission).End) }\n      : null,\n    DischargeDate: textOrNull(v.DischargeDate),\n    RescheduledDatString: textOrNull(v.RescheduledDatString),\n\n    VisitTypeName: textOrNull(v.VisitTypeName),\n    IsUsingFallbackVisitTypeName: boolOrNull(v.IsUsingFallbackVisitTypeName),\n    EncounterType: num(v.EncounterType),\n    EncounterIsSurgery: boolOrNull(v.EncounterIsSurgery),\n    EncounterIsEDVisit: boolOrNull(v.EncounterIsEDVisit),\n    IsPreadmission: boolOrNull(v.IsPreadmission),\n    IsHovPreadmission: boolOrNull(v.IsHovPreadmission),\n    IsResidentialMed: boolOrNull(v.IsResidentialMed),\n    ChiefComplaint: textOrNull(v.ChiefComplaint),\n    Diagnoses: list(v.Diagnoses).map((d) => ({\n      Code: textOrNull(rec(d).Code),\n      Description: textOrNull(rec(d).Description),\n    })),\n    SurgicalProcedures: list(v.SurgicalProcedures).map((p) => ({\n      Name: textOrNull(rec(p).Name),\n      Instructions: textOrNull(rec(p).Instructions),\n      Providers: list(rec(p).Providers).map(named),\n    })),\n    Cases: list(v.Cases).map((c) => ({\n      CaseId: textOrNull(rec(c).CaseId),\n      Description: textOrNull(rec(c).Description),\n    })),\n    ComponentVisits: list(v.ComponentVisits).map((c) => ({\n      Csn: textOrNull(rec(c).Csn),\n      VisitTypeName: textOrNull(rec(c).VisitTypeName),\n      PrimaryDate: textOrNull(rec(c).PrimaryDate),\n    })),\n    HasComponentVisits: boolOrNull(v.HasComponentVisits),\n    PatientNextStepInstructions: textOrNull(v.PatientNextStepInstructions),\n    EpisodeDetails: { GestationalAge: textOrNull(rec(v.EpisodeDetails).GestationalAge) },\n    SurgeryTimeOfDay: textOrNumber(v.SurgeryTimeOfDay),\n\n    PrimaryProviderName: textOrNull(v.PrimaryProviderName),\n    PrimaryProvider: isObject(v.PrimaryProvider) ? named(v.PrimaryProvider) : null,\n    Providers: list(v.Providers).map(provider),\n    OtherProviders: list(v.OtherProviders).map(named),\n    GuestPatientFirstName: textOrNull(v.GuestPatientFirstName),\n\n    PrimaryDepartment: department(v.PrimaryDepartment),\n    PreadmissionLocation: isObject(preadmission)\n      ? {\n          Name: textOrNull(rec(preadmission).Name),\n          Address: strings(rec(preadmission).Address),\n          PhoneNumber: textOrNull(rec(preadmission).PhoneNumber),\n          Instructions: instructions(rec(preadmission).Instructions),\n          ArrivalLocation: textOrNull(rec(preadmission).ArrivalLocation),\n        }\n      : null,\n    organizationName: textOrNull(rec(v.Organization).OrganizationName) ?? containerOrganizationName,\n\n    IsCanceled: boolOrNull(v.IsCanceled),\n    IsNoShow: boolOrNull(v.IsNoShow),\n    LeftWithoutSeen: boolOrNull(v.LeftWithoutSeen),\n    InProgress: boolOrNull(v.InProgress),\n    IsArrived: boolOrNull(v.IsArrived),\n    IsConfirmed: boolOrNull(v.IsConfirmed),\n    IsCancelRequestSent: boolOrNull(v.IsCancelRequestSent),\n    status: visitStatus(v, isPast),\n    ConfirmationStatus: num(v.ConfirmationStatus),\n    ArrivalStatus: num(v.ArrivalStatus),\n\n    Telemedicine: isObject(telemedicine)\n      ? {\n          IsTelemedicine: boolOrNull(rec(telemedicine).IsTelemedicine),\n          TelemedicineMode: num(rec(telemedicine).TelemedicineMode),\n        }\n      : null,\n    TelehealthMode: num(v.TelehealthMode),\n    EVisit: isObject(evisit) ? { IsEVisit: boolOrNull(rec(evisit).IsEVisit) } : null,\n    IsInHomeVisit: boolOrNull(v.IsInHomeVisit),\n\n    Copay: isObject(copay) ? { Amount: textOrNull(rec(copay).Amount), IsPaid: boolOrNull(rec(copay).IsPaid) } : null,\n    HasPaymentInfo: boolOrNull(v.HasPaymentInfo),\n    IsFullyPaid: boolOrNull(v.IsFullyPaid),\n\n    IsClinicalNoteAvailable: boolOrNull(v.IsClinicalNoteAvailable),\n    IsNotesOnly: boolOrNull(v.IsNotesOnly),\n    IsClinicalInformationAvailable: boolOrNull(v.IsClinicalInformationAvailable),\n    IsVisitSummaryEnabled: boolOrNull(v.IsVisitSummaryEnabled),\n    HasDownloadSummaryLink: boolOrNull(v.HasDownloadSummaryLink),\n    IsNotViewed: boolOrNull(v.IsNotViewed),\n    IsVisitAmbulatory: boolOrNull(v.IsVisitAmbulatory),\n  };\n}\n\n/** The concise field list, shared by both capabilities. */\nfunction visitConcise(visit: VisitStandard): VisitConcise {\n  return {\n    Csn: visit.Csn,\n    PrimaryDate: visit.PrimaryDate,\n    IsTimeToBeDetermined: visit.IsTimeToBeDetermined,\n    IsHideVisitTime: visit.IsHideVisitTime,\n    AdmissionDateRange: visit.AdmissionDateRange,\n    DischargeDate: visit.DischargeDate,\n    VisitTypeName: visit.VisitTypeName,\n    ChiefComplaint: visit.ChiefComplaint,\n    Diagnoses: visit.Diagnoses,\n    SurgicalProcedures: visit.SurgicalProcedures.map((p) => ({ Name: p.Name })),\n    PrimaryProviderName: visit.PrimaryProviderName,\n    PrimaryDepartment: { Name: visit.PrimaryDepartment.Name },\n    organizationName: visit.organizationName,\n    status: visit.status,\n    IsClinicalNoteAvailable: visit.IsClinicalNoteAvailable,\n    IsVisitSummaryEnabled: visit.IsVisitSummaryEnabled,\n  };\n}\n\n/** Sort key: the standard row's instant, or null for \"sort last\". */\nfunction standardInstantMs(visit: VisitStandard): number | null {\n  return visitInstantMs({ Instant: visit.Instant, PrimaryDate: visit.PrimaryDate });\n}\n\n/** Stable sort with nulls last; `direction` 1 = ascending, -1 = descending. */\nfunction sortByInstant<T extends VisitStandard>(visits: T[], direction: 1 | -1): T[] {\n  return visits\n    .map((visit, index) => ({ visit, index, ms: standardInstantMs(visit) }))\n    .sort((a, b) => {\n      if (a.ms === null && b.ms === null) return a.index - b.index;\n      if (a.ms === null) return 1;\n      if (b.ms === null) return -1;\n      return (a.ms - b.ms) * direction || a.index - b.index;\n    })\n    .map((entry) => entry.visit);\n}\n\nconst UPCOMING_BUCKETS: ReadonlyArray<[key: keyof VisitsLoadUpcoming, bucket: VisitBucket]> = [\n  ['InProgressVisits', 'in_progress'],\n  ['NextNDaysVisits', 'soon'],\n  ['LaterVisitsList', 'later'],\n];\n\nexport const upcomingVisitsProcessor: Processor<UpcomingVisitsStandard | null> = {\n  standard(raw: RawResponse): UpcomingVisitsStandard | null {\n    const body = findRequest(raw, 'LoadUpcoming')?.body;\n    // Errors pass through (rule 7): a literal null is returned as null.\n    if (body === null || body === undefined) return null;\n    const container = rec<VisitsLoadUpcoming>(body);\n    const visits: UpcomingVisitStandard[] = [];\n    for (const [key, bucket] of UPCOMING_BUCKETS) {\n      for (const row of list(container[key])) visits.push({ ...visitStandard(row, false), bucket });\n    }\n    const sorted = sortByInstant(visits, 1);\n    return { count: sorted.length, visits: sorted };\n  },\n  concise(standard) {\n    if (standard === null) return null;\n    return {\n      count: standard.count,\n      visits: standard.visits.map((visit) => ({ ...visitConcise(visit), bucket: visit.bucket })),\n    };\n  },\n};\n\n/**\n * A row's identity across pages. A stuck continuation cursor hands back the\n * page just fetched; the scraper stops on it but the page is still in the\n * envelope, so the same visit must not be counted twice.\n */\nfunction visitKey(orgId: string, visit: Record<string, unknown>): string | null {\n  const parts = [text(visit.Id), text(visit.Csn), text(visit.Instant), text(visit.PrimaryDate)];\n  if (parts.every((p) => p === '')) return null;\n  return [orgId, ...parts].join('\u0000');\n}\n\nexport const pastVisitsProcessor: Processor<PastVisitsStandard | null> = {\n  standard(raw: RawResponse): PastVisitsStandard | null {\n    const pages = findRequests(raw, 'LoadPast');\n    if (pages.length === 0) return null;\n    // Errors pass through (rule 7): a literal null first page is returned as null.\n    if (pages[0]!.body === null) return null;\n\n    const visits: VisitStandard[] = [];\n    const seen = new Set<string>();\n    // Last-fetched page wins per organization: a page's HasMoreData describes\n    // what lies beyond THAT page.\n    const hasMoreByOrg = new Map<string, boolean>();\n\n    for (const page of pages) {\n      const orgs = rec(rec<VisitsLoadPast>(page.body).List);\n      for (const [orgId, orgPage] of Object.entries(orgs)) {\n        const org = rec(orgPage);\n        const orgName = textOrNull(rec<VisitOrganization>(org.Organization).OrganizationName);\n        hasMoreByOrg.set(orgId, bool(org.HasMoreData));\n        for (const row of list(org.List)) {\n          const key = visitKey(orgId, rec(row));\n          if (key !== null) {\n            if (seen.has(key)) continue;\n            seen.add(key);\n          }\n          visits.push(visitStandard(row, true, orgName));\n        }\n      }\n    }\n\n    const sorted = sortByInstant(visits, -1);\n    return {\n      count: sorted.length,\n      // True only when MyChart said an organization had more and the walk\n      // stopped anyway — i.e. the page cap was hit.\n      hasOlderVisits: [...hasMoreByOrg.values()].some(Boolean),\n      visits: sorted,\n    };\n  },\n  concise(standard) {\n    if (standard === null) return null;\n    return {\n      count: standard.count,\n      hasOlderVisits: standard.hasOlderVisits,\n      visits: standard.visits.map(visitConcise),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { logger } from '../../../../shared/logger';\nimport { bool, rec, text } from '../../processors/read';\nimport { requireJsonBody } from '../notes/notes';\nimport type { VisitsLoadPast } from './mychart.types';\nimport {\n  pastVisitsProcessor,\n  upcomingVisitsProcessor,\n  type PastVisitsStandard,\n  type UpcomingVisitsStandard,\n} from './visits.processor';\n\nexport type {\n  VisitStandard,\n  VisitConcise,\n  VisitStatus,\n  VisitBucket,\n  UpcomingVisitStandard,\n  UpcomingVisitsStandard,\n  PastVisitsStandard,\n  VisitDiagnosisStandard,\n  VisitProcedureStandard,\n  VisitProviderStandard,\n  VisitDepartmentStandard,\n  VisitPreadmissionLocationStandard,\n} from './visits.processor';\nexport {\n  upcomingVisitsProcessor,\n  pastVisitsProcessor,\n  visitStandard,\n  visitStatus,\n  visitInstantMs,\n} from './visits.processor';\n\nconst VISITS_PAGE = '/Visits/VisitsList';\n\n/**\n * `GET /Visits/VisitsList` for the token, then `POST /Visits/VisitsList/LoadUpcoming`.\n *\n * The POST carries no body and no Content-Type: an empty-string body still\n * makes Node's undici add `Content-Type: text/plain`, which trips F5 Volterra\n * WAF rules on some deployments.\n */\nexport async function fetchUpcomingVisitsRaw(myChartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(myChartRequest);\n  const token = await collector.pageToken(VISITS_PAGE + '?noCache=' + Math.random());\n  const result = await collector.send({\n    path: '/Visits/VisitsList/LoadUpcoming?timeZone=America%2FNew_York&ComponentNumber=5&noCache=' + Math.random(),\n    method: 'POST',\n    headers: { __requestverificationtoken: token },\n  });\n  requireJsonBody(result, '/Visits/VisitsList/LoadUpcoming');\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function upcomingVisits(myChartRequest: MyChartRequest): Promise<UpcomingVisitsStandard | null> {\n  return upcomingVisitsProcessor.standard(await fetchUpcomingVisitsRaw(myChartRequest));\n}\n\n// Hard cap on how many LoadPast pages one call will request. MyChart returns\n// 10 visits per organization per page, so 50 pages covers ~500 visits per\n// organization, while still guaranteeing termination on accounts with huge\n// histories. `hasOlderVisits` says when it was hit.\nconst MAX_PAST_VISIT_PAGES = 50;\n\n/**\n * `oldestRenderedDate` is required on the query string, and MyChart does\n * nothing with it (#190) — the request that carries \"1970\" and the one that\n * carries \"two years ago\" come back with the same 10 visits. In Epic's own\n * page it is the browser reporting how far down it has already rendered, not\n * a filter. Pinned to the epoch so it can never be mistaken for one.\n */\nconst OLDEST_RENDERED_DATE = new Date(0).toISOString();\n\n/**\n * Fetch every `LoadPast` page and record each one.\n *\n * Each response carries `HasMoreData` per organization and a top-level\n * `SerializedIndex` continuation token that must be echoed back to get the\n * next 10 (issue #189), so the walk runs to exhaustion: it stops when no\n * organization has more data, when the token is missing or stops advancing,\n * or at `MAX_PAST_VISIT_PAGES`. The pages are NOT merged here — the processor\n * does that — so `raw` mode is the envelope of every page fetched.\n */\nexport async function fetchPastVisitsRaw(myChartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(myChartRequest);\n  const token = await collector.pageToken(VISITS_PAGE + '?noCache=' + Math.random());\n\n  let serializedIndex: string | undefined;\n  let pagesFetched = 0;\n  while (pagesFetched < MAX_PAST_VISIT_PAGES) {\n    let path =\n      '/Visits/VisitsList/LoadPast?loadpast=1&searchString=&oldestRenderedDate=' +\n      OLDEST_RENDERED_DATE +\n      '&ComponentNumber=7&noCache=' +\n      Math.random();\n    if (serializedIndex) path += '&serializedIndex=' + encodeURIComponent(serializedIndex);\n\n    // Same WAF-safe shape as LoadUpcoming: no body, no Content-Type.\n    const result = await collector.send({ path, method: 'POST', headers: { __requestverificationtoken: token } });\n    requireJsonBody(result, '/Visits/VisitsList/LoadPast');\n    pagesFetched++;\n\n    const page = rec<VisitsLoadPast>(result.body);\n    // A non-container response (a literal null, a login interstitial that\n    // happened to be JSON) cannot be paged; it is in the envelope as-is.\n    if (!page.List) break;\n\n    // Called rather than passed by reference: `rec` is overloaded, and a bare\n    // reference resolves to the typed overload with nothing to infer from.\n    const orgs = Object.values(rec(page.List)).map((org) => rec(org));\n    if (!orgs.some((org) => bool(org.HasMoreData))) break;\n\n    const next = text(page.SerializedIndex);\n    if (!next || next === serializedIndex) break; // no cursor, or a stuck one\n    serializedIndex = next;\n  }\n\n  if (pagesFetched >= MAX_PAST_VISIT_PAGES) {\n    logger.debug(`pastVisits: hit page cap (${MAX_PAST_VISIT_PAGES}); some older visits may be omitted`);\n  }\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function pastVisits(myChartRequest: MyChartRequest): Promise<PastVisitsStandard | null> {\n  return pastVisitsProcessor.standard(await fetchPastVisitsRaw(myChartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** The `Visits` group — appointments, the notes written at them, and the AVS. */\n\nimport {\n  fetchUpcomingVisitsRaw,\n  fetchPastVisitsRaw,\n  upcomingVisitsProcessor,\n  pastVisitsProcessor,\n} from '../../../../scrapers/myChart/chart/visits/visits';\nimport {\n  fetchVisitNotesRaw,\n  fetchNoteContentRaw,\n  fetchVisitAvsRaw,\n  visitNotesProcessor,\n  noteContentProcessor,\n} from '../../../../scrapers/myChart/chart/notes/notes';\nimport { requireStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const VISIT_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_upcoming_visits',\n    title: 'Upcoming visits',\n    description: 'Upcoming appointments.',\n    kind: 'read',\n    group: 'Visits',\n    params: [],\n    run: (request) => fetchUpcomingVisitsRaw(request),\n    processor: upcomingVisitsProcessor,\n  },\n  {\n    id: 'get_past_visits',\n    title: 'Past visits',\n    description:\n      'Every past visit MyChart holds, newest first. `hasOlderVisits` says whether the page cap stopped the walk before the end.',\n    kind: 'read',\n    group: 'Visits',\n    params: [],\n    run: (request) => fetchPastVisitsRaw(request),\n    processor: pastVisitsProcessor,\n  },\n  {\n    id: 'get_visit_notes',\n    title: 'Visit notes',\n    description:\n      'List the clinical notes (operative, progress, anesthesia, …) attached to a past visit. Returns lrpID and, per note, hnoID and hnoDAT — pass those to get_note_content.',\n    kind: 'read',\n    group: 'Visits',\n    params: [{ name: 'csn', type: 'string', description: 'Visit CSN (encounter id) from get_past_visits.', required: true }],\n    run: (request, args) => fetchVisitNotesRaw(request, requireStr(args, 'csn')),\n    processor: visitNotesProcessor,\n  },\n  {\n    id: 'get_note_content',\n    title: 'Note content',\n    description: 'Fetch the rendered content of a single clinical note listed by get_visit_notes.',\n    kind: 'read',\n    group: 'Visits',\n    params: [\n      { name: 'csn', type: 'string', description: 'Visit CSN from get_past_visits.', required: true },\n      { name: 'lrp_id', type: 'string', description: 'lrpID from get_visit_notes.', required: true },\n      { name: 'hno_id', type: 'string', description: 'hnoID of the chosen note.', required: true },\n      { name: 'hno_dat', type: 'string', description: 'hnoDAT of the chosen note.', required: true },\n    ],\n    run: (request, args) =>\n      fetchNoteContentRaw(request, {\n        csn: requireStr(args, 'csn'),\n        lrpId: requireStr(args, 'lrp_id'),\n        hnoId: requireStr(args, 'hno_id'),\n        hnoDat: requireStr(args, 'hno_dat'),\n      }),\n    processor: noteContentProcessor,\n  },\n  {\n    id: 'get_visit_avs',\n    title: 'After Visit Summary',\n    description: 'The After Visit Summary for a past visit.',\n    kind: 'read',\n    group: 'Visits',\n    params: [{ name: 'csn', type: 'string', description: 'Visit CSN from get_past_visits.', required: true }],\n    run: (request, args) => fetchVisitAvsRaw(request, requireStr(args, 'csn')),\n    processor: noteContentProcessor,\n  },\n\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { makeAuthenticatedRequest } from '../core/makeAuthenticatedRequest';\nimport * as cheerio from 'cheerio';\nimport * as tough from 'tough-cookie';\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport type { RawCollector } from '../core/rawResponse';\nimport type { RequestConfig } from '../core/types';\nimport { fetchSessionCsrfToken } from '../core/csrf';\nimport { scraperFetch } from '../../http';\nimport { logger } from '../../../shared/logger';\n\nexport interface FdiContext {\n  fdi: string;\n  ord: string;\n}\n\nexport interface ImagingViewerSession {\n  /** The SAML URL from FdiData - opens the image viewer when navigated to in a browser */\n  samlUrl: string;\n  /** The eUnity viewer URL (only available after following SAML chain) */\n  viewerUrl?: string;\n  /** JSESSIONID cookie for eUnity (only available after following SAML chain) */\n  jsessionId?: string;\n}\n\n/**\n * Extract `data-fdi-context` (containing fdi and ord params) from report content HTML.\n * This is embedded in the HTML returned by the LoadReportContent API when the report\n * has an associated image viewer link.\n */\nexport function extractFdiContext(reportContentHtml: string): FdiContext | null {\n  const $ = cheerio.load(reportContentHtml);\n  const fdiElement = $('[data-fdi-context]');\n  if (fdiElement.length === 0) return null;\n\n  try {\n    const raw = fdiElement.attr('data-fdi-context');\n    if (!raw) return null;\n    const parsed = JSON.parse(raw);\n    if (parsed.fdi && parsed.ord) {\n      return { fdi: parsed.fdi, ord: parsed.ord };\n    }\n  } catch {\n    // data-fdi-context wasn't valid JSON\n  }\n  return null;\n}\n\n/**\n * Extract the fdi/ord pair from a result's `fdiLink.redirectUrl`.\n *\n * Some instances (observed on Mass General Brigham) never embed a\n * `data-fdi-context` attribute in the report HTML — instead each result\n * carries a structured `fdiLink` whose redirectUrl is\n * `/Extensibility/Redirection/FdiRedirection?fdi=…&ord=…`, the same pair the\n * FdiData API takes. The tokens are MyChart's own `WP-…` encoding and contain\n * no `%` escapes, so URLSearchParams returns them verbatim.\n */\nexport function extractFdiContextFromFdiLink(redirectUrl: string): FdiContext | null {\n  const queryStart = redirectUrl.indexOf('?');\n  if (queryStart < 0) return null;\n  const params = new URLSearchParams(redirectUrl.slice(queryStart + 1));\n  const fdi = params.get('fdi');\n  const ord = params.get('ord');\n  if (!fdi || !ord) return null;\n  return { fdi, ord };\n}\n\n/** What `/api/report-content/LoadReportContent` answers. Read it through `rec<ReportContent>()`. */\nexport type ReportContent = {\n  reportContent?: string;\n  reportCss?: string;\n  baseFontSize?: number;\n  stylesheets?: string[];\n}\n\n/**\n * Call the FdiData API to get the SAML URL that leads to the eUnity image viewer.\n *\n * Flow: MyChart → FdiData → SAML STS URL → (browser follows SAML chain) → eUnity viewer\n *\n * With a `collector`, the FdiData exchange is recorded in the caller's raw\n * envelope (the CSRF token fetch is not — it is session plumbing, not data).\n */\nexport async function getImageViewerSamlUrl(\n  mychartRequest: MyChartRequest,\n  fdiContext: FdiContext,\n  collector?: RawCollector,\n): Promise<ImagingViewerSession | null> {\n  const token = await fetchSessionCsrfToken(mychartRequest);\n  if (!token) {\n    logger.debug('Could not get CSRF token for FdiData');\n    return null;\n  }\n\n  const config: RequestConfig = {\n    path: `/Extensibility/Redirection/FdiData?fdi=${encodeURIComponent(fdiContext.fdi)}&ord=${encodeURIComponent(fdiContext.ord)}&patientIndex=undefined&noCache=${Math.random()}`,\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/x-www-form-urlencoded',\n    },\n    body: `__RequestVerificationToken=${encodeURIComponent(token)}`,\n    followRedirects: false,\n  };\n\n  let status: number;\n  let ok: boolean;\n  let data: unknown;\n  if (collector) {\n    // Best-effort: an order without a working viewer is still an order, so a\n    // failed FdiData exchange is recorded and reported as \"no viewer\".\n    const recorded = await collector.send(config, { tolerateFailure: true });\n    ({ status, ok } = recorded.response);\n    data = recorded.body;\n  } else {\n    const res = await makeAuthenticatedRequest(mychartRequest, config);\n    ({ status, ok } = res);\n    data = ok ? ((await res.json()) as unknown) : undefined;\n  }\n\n  if (!ok) {\n    logger.debug('FdiData request failed:', status);\n    return null;\n  }\n\n  const url = (data as { url?: unknown } | null)?.url;\n  if (typeof url !== 'string' || !url) {\n    logger.debug('FdiData response missing URL');\n    return null;\n  }\n\n  return { samlUrl: url };\n}\n\n/**\n * Follow the SAML chain from the STS URL to get an eUnity viewer session.\n *\n * Chain: STS URL → HTML form with SAMLResponse → POST to redirect endpoint →\n *        meta-refresh to selfauth → 302 redirect chain → eUnity server\n *\n * Uses its own cookie jar, and returns it alongside viewerUrl and jsessionId\n * so callers can keep making authenticated requests to eUnity.\n *\n * TODO: this should be the session's jar, not a second one. The original\n * reason given was to avoid \"polluting\" the MyChart jar, which doesn't hold —\n * tough-cookie scopes every cookie to its domain, so eUnity's cookies could\n * never have reached MyChart requests in the first place. The real difference\n * is the other direction: starting empty means the first hop, which is on the\n * MyChart host, goes out without the session cookies it would otherwise carry.\n * It works today because the STS URL is itself an authenticated token, but\n * unifying is a change to the live imaging path and wants a real-instance test\n * rather than a drive-by.\n */\nexport async function followSamlChain(\n  _mychartRequest: MyChartRequest,\n  samlUrl: string\n): Promise<{ viewerUrl: string; jsessionId: string; cookieJar: tough.CookieJar; viewerBody: string } | null> {\n  const jar = new tough.CookieJar();\n\n  // Helper: make a request against this chain's jar, manually following\n  // redirects. Headers, the per-host permit and the deadline come from scraperFetch.\n  // The SAML loop below carries `body`/`contentType` as locals that are undefined\n  // on the GET hops, so they're `| undefined` rather than merely optional.\n  async function req(url: string, opts: { method?: string | undefined; body?: string | undefined; contentType?: string | undefined } = {}) {\n    const headers: Record<string, string> = {};\n    if (opts.contentType) headers['Content-Type'] = opts.contentType;\n    return scraperFetch(url, {\n      method: opts.method || 'GET',\n      redirect: 'manual',\n      headers,\n      // A bodyless hop omits the key rather than sending `body: undefined`.\n      ...(opts.body !== undefined ? { body: opts.body } : {}),\n    }, { cookieJar: jar });\n  }\n\n  async function makeViewerResult(viewerUrl: string, viewerBody: string) {\n    const eunityOrigin = new URL(viewerUrl).origin;\n    const jsessionCookies = await jar.getCookies(eunityOrigin);\n    const jsession = jsessionCookies.find(c => c.key === 'JSESSIONID');\n    return { viewerUrl, jsessionId: jsession?.value ?? '', cookieJar: jar, viewerBody };\n  }\n\n  try {\n    let url = samlUrl;\n    let method = 'GET';\n    let body: string | undefined;\n    let contentType: string | undefined;\n    let maxSteps = 15;\n\n    while (maxSteps > 0) {\n      maxSteps--;\n      const res = await req(url, { method, body, contentType });\n\n      // HTTP redirect — follow it\n      if ([301, 302, 303, 307].includes(res.status)) {\n        const loc = res.headers.get('location');\n        if (!loc) break;\n        url = new URL(loc, url).href;\n        logger.debug(`  [SAML] ${res.status} -> ${url}`);\n        method = 'GET';\n        body = undefined;\n        contentType = undefined;\n\n        // Check if we've reached eUnity (detected by /e/viewer path)\n        if (url.includes('/e/viewer') || url.includes('/eUnity/viewer')) {\n          const viewerRes = await req(url);\n          return await makeViewerResult(url, viewerRes.status === 200 ? await viewerRes.text() : '');\n        }\n        continue;\n      }\n\n      // 200 response — check for meta-refresh or auto-submit form\n      if (res.status === 200) {\n        const html = await res.text();\n        logger.debug(`  [SAML] 200 at ${url} (${html.length} chars)`);\n        if (html.length < 3000) logger.debug(`  [SAML] Body: ${html.substring(0, 2000)}`);\n\n        // Check for meta-refresh: <meta http-equiv=\"refresh\" content=\"0;URL='https://...'\">\n        const metaMatch = (/http-equiv=\"refresh\"\\s+content=\"[^\"]*URL='([^']+)'/i.exec(html)) ??\n                          (/http-equiv=\"refresh\"\\s+content=\"[^\"]*url=([^\"'\\s>]+)/i.exec(html));\n        if (metaMatch) {\n          url = new URL(metaMatch[1]!, url).href; // both patterns have one mandatory capture group; noUncheckedIndexedAccess\n          method = 'GET';\n          body = undefined;\n          contentType = undefined;\n          continue;\n        }\n\n        // Check for JavaScript redirect (e.g. window.location.href = '...')\n        // The redirecttoviewer page uses JS to redirect to eUnity\n        const jsRedirectMatch = /(?:window|document)\\.location\\.href\\s*=\\s*(?:url\\d*|'([^']+)'|\"([^\"]+)\")/i.exec(html);\n        if (jsRedirectMatch) {\n          // If it's a variable reference (url2, url3), extract the URL from the var declaration\n          let targetUrl = jsRedirectMatch[1] || jsRedirectMatch[2];\n          if (!targetUrl) {\n            // Variable reference — look for the var declaration\n            const varMatch = /var\\s+url\\s*=\\s*'([^']+)'/.exec(html);\n            if (varMatch) {\n              targetUrl = varMatch[1]!.replace(/&amp;/g, '&'); // pattern has one mandatory capture group; noUncheckedIndexedAccess\n            }\n          }\n          if (targetUrl) {\n            url = new URL(targetUrl, url).href;\n            method = 'GET';\n            body = undefined;\n            contentType = undefined;\n            logger.debug(`  [SAML] JS redirect -> ${url}`);\n            continue;\n          }\n        }\n\n        // Check for auto-submit SAML form\n        const $ = cheerio.load(html);\n        const form = $('form');\n        if (form.length > 0) {\n          const action = form.attr('action');\n          if (action) {\n            const formData = new URLSearchParams();\n            form.find('input[type=\"hidden\"]').each((_, el) => {\n              const name = $(el).attr('name');\n              const value = $(el).attr('value');\n              if (name) formData.set(name, value || '');\n            });\n            url = new URL(action, url).href;\n            method = 'POST';\n            body = formData.toString();\n            contentType = 'application/x-www-form-urlencoded';\n            continue;\n          }\n        }\n\n        if (url.includes('/e/viewer') || url.includes('/eUnity/viewer')) {\n          return await makeViewerResult(url, html);\n        }\n\n        // Reached a page that's not eUnity and has no redirect\n        logger.debug('SAML chain stopped at:', url);\n        break;\n      }\n\n      // Other status\n      logger.debug(`SAML chain unexpected status ${res.status} at ${url}`);\n      break;\n    }\n\n    logger.debug('SAML chain did not reach eUnity viewer');\n    return null;\n  } catch (err) {\n    logger.debug('Error following SAML chain:', (err as Error).message);\n    return null;\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Lab results processor. Field decisions: docs/processor-layer-proposal.md, `get_lab_results`.\n *\n * The scraper records four `GetList` calls (one per group type; the ones the\n * instance does not serve come back 500, faithfully) and then, per order, a\n * `GetDetails`, a `GetMultipleHistoricalResultComponents` and, when the\n * result names a report, a `LoadReportContent`. This joins the three onto\n * the order by the request bodies the scraper posted (`orderKey`, `orderID`,\n * `reportID` + `assumedVariables`) and lifts the encounter context off the\n * `GetList` group.\n *\n * `abnormalFlagCategoryValue` is in `raw` only: it is the literal `\"Unknown\"`\n * on every captured component, out-of-range ones included (#375). Neither\n * mode derives an abnormal verdict; `valueText`, `numericValue` and the\n * reference range pass through and that judgement is the client's.\n */\n\nimport { findRequests, type RawResponse } from '../../core/rawResponse';\nimport type { ReportContent } from '../../eunity/imagingViewer';\nimport { htmlToText } from '../../processors/htmlText';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, strings, text, textOrNull } from '../../processors/read';\nimport type { DetailsResult, FdiLink, GetMultipleHistoricalResultComponents, ImageStudy, Narrative, ReferenceRange, Scan, TestResultDetails, TestResultList } from './mychart.types';\nimport type { HistoricalComponentStandard, HistoricalPointStandard, LabComponentStandard, LabOrderConcise, LabOrderStandard, LabResultStandard, LabResultsStandard, OrderMetadataStandard, ReferenceRangeStandard, SignedTextStandard, StudyResultStandard } from './standardized.types';\n\nexport type { HistoricalComponentStandard, HistoricalPointStandard, ImageStudyStandard, LabComponentStandard, LabOrderConcise, LabOrderStandard, LabResultStandard, LabResultsStandard, OrderMetadataStandard, ProviderCommentStandard, ReferenceRangeStandard, ResultingLabStandard, ScanStandard, SignedTextStandard, StudyResultStandard } from './standardized.types';\n\n/** How many trend points the concise view keeps per component. */\nexport const CONCISE_TREND_POINTS = 8;\n\nfunction scalarOrNull(value: unknown): string | number | null {\n  return typeof value === 'string' || typeof value === 'number' ? value : null;\n}\n\nfunction referenceRange(value: unknown): ReferenceRangeStandard {\n  const r = rec<ReferenceRange>(value);\n  return {\n    formattedReferenceRange: textOrNull(r.formattedReferenceRange),\n    low: num(r.low),\n    high: num(r.high),\n    displayLow: textOrNull(r.displayLow),\n    displayHigh: textOrNull(r.displayHigh),\n    lowerBoundExclusive: boolOrNull(r.lowerBoundExclusive),\n    upperBoundExclusive: boolOrNull(r.upperBoundExclusive),\n  };\n}\n\nfunction signedText(value: unknown): SignedTextStandard {\n  const s = rec<Narrative>(value);\n  return { contentAsString: textOrNull(s.contentAsString), signingInstantTimestamp: textOrNull(s.signingInstantTimestamp) };\n}\n\nfunction component(value: unknown): LabComponentStandard {\n  const c = rec(value);\n  const info = rec(c.componentInfo);\n  const resultInfo = rec(c.componentResultInfo);\n  const rawValue = textOrNull(resultInfo.value);\n  return {\n    componentInfo: {\n      componentID: textOrNull(info.componentID),\n      name: textOrNull(info.name),\n      commonName: textOrNull(info.commonName),\n      units: textOrNull(info.units),\n    },\n    componentResultInfo: {\n      valueText: rawValue,\n      numericValue: num(resultInfo.numericValue),\n      isValueRtf: boolOrNull(resultInfo.isValueRtf),\n      referenceRange: referenceRange(resultInfo.referenceRange),\n    },\n    componentComments: { contentAsString: textOrNull(rec(c.componentComments).contentAsString) },\n  };\n}\n\nfunction orderMetadata(value: unknown): OrderMetadataStandard {\n  const m = rec<NonNullable<DetailsResult['orderMetadata']>>(value);\n  const lab = rec(m.resultingLab);\n  return {\n    prioritizedInstantISO: textOrNull(m.prioritizedInstantISO),\n    prioritizedInstantDisplay: textOrNull(m.prioritizedInstantDisplay),\n    resultTimestampDisplay: textOrNull(m.resultTimestampDisplay),\n    latestUpdateInstantISO: textOrNull(m.latestUpdateInstantISO),\n    collectionTimestampsDisplay: textOrNull(m.collectionTimestampsDisplay),\n    specimensDisplay: textOrNull(m.specimensDisplay),\n    resultStatus: textOrNull(m.resultStatus),\n    orderProviderName: textOrNull(m.orderProviderName),\n    authorizingProviderName: textOrNull(m.authorizingProviderName),\n    readingProviderName: textOrNull(m.readingProviderName),\n    resultType: scalarOrNull(m.resultType),\n    associatedDiagnoses: strings(m.associatedDiagnoses),\n    resultingLab: {\n      name: textOrNull(lab.name),\n      address: strings(lab.address),\n      phoneNumber: textOrNull(lab.phoneNumber),\n      labDirector: textOrNull(lab.labDirector),\n      cliaNumber: textOrNull(lab.cliaNumber),\n      accreditationType: textOrNull(lab.accreditationType),\n    },\n  };\n}\n\nfunction studyResult(value: unknown): StudyResultStandard {\n  const s = rec<NonNullable<DetailsResult['studyResult']>>(value);\n  return {\n    narrative: signedText(s.narrative),\n    impression: signedText(s.impression),\n    addenda: list(s.addenda).map(signedText),\n    transcriptions: list(s.transcriptions),\n    ecgDiagnosis: list(s.ecgDiagnosis),\n    hasStudyContent: boolOrNull(s.hasStudyContent),\n    isFullResultText: boolOrNull(s.isFullResultText),\n    isCupidAddendum: boolOrNull(s.isCupidAddendum),\n  };\n}\n\nfunction result(value: unknown, reports: Map<string, string>): LabResultStandard {\n  const r = rec<DetailsResult>(value);\n  const report = rec(r.reportDetails);\n  const reportID = textOrNull(report.reportID);\n  const reportHtml = reportHtmlForResult(reports, r);\n  return {\n    name: textOrNull(r.name),\n    key: textOrNull(r.key),\n    isAbnormal: boolOrNull(r.isAbnormal),\n    hasComment: boolOrNull(r.hasComment),\n    warningType: textOrNull(r.warningType),\n    warningMessage: textOrNull(r.warningMessage),\n    orderMetadata: orderMetadata(r.orderMetadata),\n    resultComponents: list(r.resultComponents).map(component),\n    studyResult: studyResult(r.studyResult),\n    resultNote: signedText(r.resultNote),\n    resultLetter: signedText(r.resultLetter),\n    providerComments: list(r.providerComments).map((c) => ({\n      commentText: textOrNull(rec(c).commentText),\n      providerName: textOrNull(rec(c).providerName),\n      commentDate: textOrNull(rec(c).commentDate),\n    })),\n    reportDetails: { reportID, isDownloadablePDFReport: boolOrNull(report.isDownloadablePDFReport) },\n    reportContentText: reportHtml === null ? null : htmlToText(reportHtml),\n    imageStudies: list(r.imageStudies).map((study) => {\n      const s = rec<ImageStudy>(study);\n      return {\n        studyDescription: textOrNull(s.studyDescription),\n        modality: textOrNull(s.modality),\n        studyDate: textOrNull(s.studyDate),\n        numberOfImages: num(s.numberOfImages),\n      };\n    }),\n    scans: list(r.scans).map((scan) => {\n      const s = rec<Scan>(scan);\n      return { scanType: textOrNull(s.scanType), scanDate: textOrNull(s.scanDate) };\n    }),\n    fdiLink: { redirectUrl: textOrNull(rec<FdiLink>(r.fdiLink).redirectUrl) },\n  };\n}\n\nfunction historicalComponent(value: unknown): HistoricalComponentStandard {\n  const h = rec(value);\n  return {\n    name: textOrNull(h.name),\n    commonName: textOrNull(h.commonName),\n    units: textOrNull(h.units),\n    oldestResultISO: textOrNull(h.oldestResultISO),\n    historicalResultData: list(h.historicalResultData).map((p) => ({\n      dateISO: textOrNull(rec(p).dateISO),\n      value: textOrNull(rec(p).value),\n      numericValue: num(rec(p).numericValue),\n      isValueRtf: boolOrNull(rec(p).isValueRtf),\n      referenceRange: referenceRange(rec(p).referenceRange),\n    })),\n  };\n}\n\n/**\n * `reportID` is the id of a report *template* (Epic's LRP record), and every\n * result of the same kind names the same one — on Mass General Brigham three\n * procedure results years apart all posted one `reportID`. What tells\n * the reports apart is the order in `assumedVariables`, so the join key is\n * the whole identity the scraper posted. Keying on `reportID` alone handed\n * every such result the first one's report.\n */\nfunction reportKey(reportID: string, vars: Record<string, unknown>): string {\n  return JSON.stringify([reportID, text(vars.ordId), text(vars.ordDat)]);\n}\n\n/**\n * The recorded `LoadReportContent` bodies keyed by the report identity the\n * scraper posted. A report that failed (non-JSON body) reads as no report.\n */\nexport function reportHtmlByReport(raw: RawResponse): Map<string, string> {\n  const reports = new Map<string, string>();\n  for (const request of findRequests(raw, 'LoadReportContent')) {\n    const body = rec(request.requestBody);\n    const reportID = text(body.reportID);\n    const html = textOrNull(rec<ReportContent>(request.body).reportContent);\n    if (!reportID || html === null) continue;\n    const key = reportKey(reportID, rec(body.assumedVariables));\n    if (!reports.has(key)) reports.set(key, html);\n  }\n  return reports;\n}\n\n/** The report HTML recorded for one raw `GetDetails` result, or null when it names none. */\nexport function reportHtmlForResult(reports: Map<string, string>, rawResult: unknown): string | null {\n  const details = rec(rec(rawResult).reportDetails);\n  const reportID = text(details.reportID);\n  if (!reportID) return null;\n  return reports.get(reportKey(reportID, rec(details.reportVars))) ?? null;\n}\n\n/** The raw `GetDetails` results recorded for the order with `key`, in the order MyChart sent them. */\nexport function rawResultsForOrder(raw: RawResponse, key: string | null): unknown[] {\n  if (!key) return [];\n  // Mirrors `standard()`'s `key: textOrNull(body.key) ?? orderKey`.\n  const details = findRequests(raw, 'test-results/GetDetails').find(\n    (d) => text(rec<TestResultDetails>(d.body).key) === key || text(rec(d.requestBody).orderKey) === key,\n  );\n  return list(rec<TestResultDetails>(details?.body).results);\n}\n\n/** The `GetList` groups across every recorded page, keyed by order key (first wins). */\nfunction resultGroupsByKey(raw: RawResponse): Map<string, Record<string, unknown>> {\n  const groups = new Map<string, Record<string, unknown>>();\n  for (const page of findRequests(raw, 'test-results/GetList')) {\n    for (const group of list(rec<TestResultList>(page.body).newResultGroups)) {\n      const g = rec(group);\n      const key = text(g.key);\n      if (key && !groups.has(key)) groups.set(key, g);\n    }\n  }\n  return groups;\n}\n\n/** The 8 most recent points, sorted by `dateISO` before capping so the cap keeps the newest whatever order the instance sent (#380). */\nexport function recentTrendPoints(points: HistoricalPointStandard[]): Array<{ dateISO: string | null; value: string | null }> {\n  return [...points]\n    .sort((a, b) => (a.dateISO ?? '').localeCompare(b.dateISO ?? ''))\n    .slice(-CONCISE_TREND_POINTS)\n    .map((p) => ({ dateISO: p.dateISO, value: p.value }));\n}\n\nexport function conciseLabOrder(order: LabOrderStandard): LabOrderConcise {\n  return {\n    orderName: order.orderName,\n    results: order.results.map((r) => ({\n      name: r.name,\n      prioritizedInstantISO: r.orderMetadata.prioritizedInstantISO,\n      resultStatus: r.orderMetadata.resultStatus,\n      orderProviderName: r.orderMetadata.orderProviderName,\n      resultComponents: r.resultComponents.map((c) => ({\n        name: c.componentInfo.name,\n        commonName: c.componentInfo.commonName,\n        units: c.componentInfo.units,\n        valueText: c.componentResultInfo.valueText,\n        formattedReferenceRange: c.componentResultInfo.referenceRange.formattedReferenceRange,\n        contentAsString: c.componentComments.contentAsString,\n      })),\n      narrative: r.studyResult.narrative.contentAsString,\n      impression: r.studyResult.impression.contentAsString,\n      addenda: r.studyResult.addenda.map((a) => a.contentAsString),\n      resultNote: r.resultNote.contentAsString,\n      resultLetter: r.resultLetter.contentAsString,\n      reportContentText: r.reportContentText,\n    })),\n    historicalResults: Object.fromEntries(\n      Object.entries(order.historicalResults).map(([componentID, h]) => [\n        componentID,\n        { name: h.name, historicalResultData: recentTrendPoints(h.historicalResultData) },\n      ]),\n    ),\n  };\n}\n\nexport const labResultsProcessor: Processor<LabResultsStandard> = {\n  standard(raw: RawResponse): LabResultsStandard {\n    const groups = resultGroupsByKey(raw);\n    const reports = reportHtmlByReport(raw);\n    const trends = findRequests(raw, 'GetMultipleHistoricalResultComponents');\n\n    const orders: LabOrderStandard[] = [];\n    for (const details of findRequests(raw, 'test-results/GetDetails')) {\n      const orderKey = text(rec(details.requestBody).orderKey);\n      // A body that is not the order (a WAF page, a literal null for an\n      // unknown key) projects to an all-null order under the key we asked\n      // for; the body itself is in `raw`.\n      const body = rec<TestResultDetails>(details.body);\n      const group = groups.get(orderKey) ?? {};\n      const trend = trends.find((t) => text(rec(t.requestBody).orderID) === orderKey);\n      const historicalResults: Record<string, HistoricalComponentStandard> = {};\n      for (const [componentID, h] of Object.entries(rec(rec<GetMultipleHistoricalResultComponents>(trend?.body).historicalResults))) {\n        historicalResults[componentID] = historicalComponent(h);\n      }\n      orders.push({\n        orderName: textOrNull(body.orderName),\n        key: textOrNull(body.key) ?? (orderKey || null),\n        isInpatient: boolOrNull(group.isInpatient),\n        isEDVisit: boolOrNull(group.isEDVisit),\n        formattedAdmitDate: textOrNull(group.formattedAdmitDate),\n        formattedDischargeDate: textOrNull(group.formattedDischargeDate),\n        results: list(body.results).map((r) => result(r, reports)),\n        historicalResults,\n      });\n    }\n    return { orders };\n  },\n  concise(standard) {\n    return { orders: standard.orders.map(conciseLabOrder) };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Imaging results processor. Field decisions: docs/processor-layer-proposal.md, `get_imaging_results`.\n *\n * Imaging is the lab envelope filtered to imaging orders, plus the handle\n * `download_imaging_study` takes. The filter is a heuristic — an order-name\n * keyword match or imaging-shaped content — and `isImagingByName` /\n * `isImagingByContent` are its audit trail. `image_id` packs the fdi/ord\n * pair found in the report HTML's `data-fdi-context` or in\n * `fdiLink.redirectUrl`; the FdiData response (`samlUrl`) is a single-use\n * viewer entry that expires within minutes, so it stays in `raw`.\n *\n * Today's top-level copies (`reportText`, `narrative`, `impression`,\n * `resultDate`, `orderProvider`) were duplicates of the lab fields and are\n * not carried over.\n */\n\nimport { Base64 } from 'js-base64';\n\nimport type { RawResponse } from '../../core/rawResponse';\nimport { extractFdiContext, extractFdiContextFromFdiLink, type FdiContext } from '../../eunity/imagingViewer';\nimport type { Processor } from '../../processors/processor';\nimport { rec, textOrNull } from '../../processors/read';\nimport type { DetailsResult, FdiLink } from './mychart.types';\nimport type { ImagingOrderConcise, ImagingOrderStandard, ImagingResultsStandard } from './standardized.types';\n\nexport type { ImagingOrderConcise, ImagingOrderStandard, ImagingResultsStandard } from './standardized.types';\nimport {\n  conciseLabOrder,\n  labResultsProcessor,\n  rawResultsForOrder,\n  reportHtmlByReport,\n  reportHtmlForResult,\n  type LabOrderStandard,\n} from './labResults.processor';\n\nconst IMAGING_KEYWORDS = [\n  'x-ray', 'xray', 'xr ', 'mri', 'ct ', 'ct,', 'imaging', 'radiology', 'ultrasound',\n  'fluoroscop', 'arthrogram', 'mammogram', 'oct,', 'oct ', 'pathology', 'excision',\n];\n\nexport function isImagingByName(orderName: string | null): boolean {\n  const lower = (orderName ?? '').toLowerCase();\n  return IMAGING_KEYWORDS.some((keyword) => lower.includes(keyword));\n}\n\n/** Structured images, a narrative or impression, or a report: the shapes only an imaging (or pathology) result has. */\nfunction isImagingByContent(order: LabOrderStandard): boolean {\n  return order.results.some(\n    (r) =>\n      r.imageStudies.length > 0 ||\n      r.scans.length > 0 ||\n      Boolean(r.studyResult.narrative.contentAsString) ||\n      Boolean(r.studyResult.impression.contentAsString) ||\n      Boolean(r.reportDetails.reportID),\n  );\n}\n\nexport function isImagingOrder(order: LabOrderStandard): boolean {\n  return isImagingByName(order.orderName) || isImagingByContent(order);\n}\n\n/**\n * The fdi/ord pair for an order: from the `data-fdi-context` in a result's\n * recorded report HTML, else from the structured `fdiLink` some instances\n * (Mass General Brigham) serve instead. The first result that yields one wins.\n */\nexport function fdiContextForOrder(raw: RawResponse, order: LabOrderStandard): FdiContext | null {\n  const reports = reportHtmlByReport(raw);\n  // Everything the join needs is on the raw result, `fdiLink` included, so\n  // nothing here depends on `standard()` keeping `results` 1:1 with the envelope.\n  for (const rawResult of rawResultsForOrder(raw, order.key)) {\n    const html = reportHtmlForResult(reports, rawResult);\n    const redirectUrl = textOrNull(rec<FdiLink>(rec<DetailsResult>(rawResult).fdiLink).redirectUrl);\n    const fdi = (html ? extractFdiContext(html) : null) ?? (redirectUrl ? extractFdiContextFromFdiLink(redirectUrl) : null);\n    if (fdi) return fdi;\n  }\n  return null;\n}\n\n/**\n * Same encoding as `encodeImageId` in `clients/shared/capabilities/imaging.ts` — duplicated\n * rather than imported because capabilities imports this scraper, and the\n * two must stay byte-for-byte equal so `download_imaging_study` decodes it.\n */\nexport function imageIdFor(fdi: FdiContext): string {\n  return Base64.encodeURI(JSON.stringify({ fdi: fdi.fdi, ord: fdi.ord }));\n}\n\nexport const imagingResultsProcessor: Processor<ImagingResultsStandard> = {\n  standard(raw: RawResponse): ImagingResultsStandard {\n    const orders: ImagingOrderStandard[] = [];\n    for (const order of labResultsProcessor.standard(raw).orders) {\n      const byName = isImagingByName(order.orderName);\n      const byContent = isImagingByContent(order);\n      if (!byName && !byContent) continue;\n      const fdi = fdiContextForOrder(raw, order);\n      orders.push({\n        index: orders.length,\n        image_id: fdi ? imageIdFor(fdi) : null,\n        hasViewableImages: fdi !== null,\n        isImagingByName: byName,\n        isImagingByContent: byContent,\n        ...order,\n      });\n    }\n    return { orders };\n  },\n  concise(standard) {\n    const orders: ImagingOrderConcise[] = standard.orders.map((order) => {\n      const lab = conciseLabOrder(order);\n      return {\n        index: order.index,\n        image_id: order.image_id,\n        hasViewableImages: order.hasViewableImages,\n        orderName: lab.orderName,\n        results: lab.results.map((r, i) => ({ ...r, imageStudies: order.results[i]?.imageStudies ?? [] })),\n        historicalResults: lab.historicalResults,\n      };\n    });\n    return { orders };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { SessionExpiredError } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { followSamlChain, getImageViewerSamlUrl } from '../../eunity/imagingViewer';\nimport { list, rec, text } from '../../processors/read';\nimport type { TestResultDetails, TestResultList } from './mychart.types';\nimport { logger } from '../../../../shared/logger';\nimport { labResultsProcessor, type LabResultsStandard } from './labResults.processor';\nimport { fdiContextForOrder, imagingResultsProcessor, isImagingOrder, type ImagingResultsStandard } from './imagingResults.processor';\n\nexport type {\n  LabResultsStandard,\n  LabOrderStandard,\n  LabOrderConcise,\n  LabResultStandard,\n  LabComponentStandard,\n  ReferenceRangeStandard,\n  SignedTextStandard,\n  StudyResultStandard,\n  ResultingLabStandard,\n  OrderMetadataStandard,\n  ProviderCommentStandard,\n  ImageStudyStandard,\n  ScanStandard,\n  HistoricalPointStandard,\n  HistoricalComponentStandard,\n} from './labResults.processor';\nexport { labResultsProcessor, recentTrendPoints, CONCISE_TREND_POINTS } from './labResults.processor';\nexport type { ImagingResultsStandard, ImagingOrderStandard, ImagingOrderConcise } from './imagingResults.processor';\nexport {\n  imagingResultsProcessor,\n  isImagingByName,\n  imageIdFor,\n} from './imagingResults.processor';\n\nconst TEST_RESULTS_PAGE = '/app/test-results';\n\n/**\n * The group types `GetList` is asked for. Every captured instance accepts 0\n * and 1 — each answering the SAME combined list of labs, imaging and\n * procedures, which is why orders are de-duplicated by key — and rejects 2\n * and 3 with a 500. The accepted pair is the payload; the rest are\n * speculative probes kept for an instance that might differ.\n */\nconst ACCEPTED_GROUP_TYPES = [0, 1];\nconst SPECULATIVE_GROUP_TYPES = [2, 3];\n\n/**\n * One `/api/test-results/GetList` page, or the failure when this instance\n * did not answer for that group type. A failure is recorded with its status\n * (a thrown transport error is not) and handed back, so the caller can tell a\n * rejected speculative probe — expected — from the accepted pair both\n * failing, which is the payload failing. A `SessionExpiredError` still\n * propagates: reporting a dead session as \"unsupported group type\" turns it\n * into an empty chart.\n */\nasync function fetchResultGroupList(\n  collector: RawCollector,\n  groupType: number,\n  token: string,\n): Promise<{ page: unknown } | { failure: Error }> {\n  try {\n    const { body, failure } = await collector.send(\n      {\n        path: '/api/test-results/GetList',\n        method: 'POST',\n        headers: { 'Content-Type': 'application/json', __RequestVerificationToken: token },\n        body: JSON.stringify({ groupType, searchString: '', maxResults: 1000, isCurAdmFilterEnabled: false }),\n      },\n      { tolerateFailure: true },\n    );\n    return failure ? { failure } : { page: body };\n  } catch (err) {\n    if (err instanceof SessionExpiredError) throw err;\n    logger.debug(`test-results GetList failed for groupType ${groupType}:`, (err as Error).message);\n    return { failure: err as Error };\n  }\n}\n\n/** The trend body is best-effort: a failure is recorded (when there was a response) and otherwise tolerated. */\nasync function fetchHistoricalResults(collector: RawCollector, orderKey: string, token: string): Promise<void> {\n  try {\n    await collector.postJson(\n      '/api/past-results/GetMultipleHistoricalResultComponents',\n      token,\n      {\n        orderID: orderKey,\n        selectedComponentIDs: [],\n        isInitialLoad: true,\n        startTime: '',\n        endTime: '',\n        organizationID: '',\n        isCustomFilterEnabled: false,\n        PageNonce: '',\n      },\n      { tolerateFailure: true },\n    );\n  } catch (err) {\n    if (err instanceof SessionExpiredError) throw err;\n    logger.debug(`historical results failed for ${orderKey}:`, (err as Error).message);\n  }\n}\n\n/**\n * Every request behind `get_lab_results`, recorded on `collector`: the page\n * token, `GetList` for group types 0-3, then per unique order key\n * `GetDetails`, `LoadReportContent` for each result that names a report, and\n * `GetMultipleHistoricalResultComponents`. The join is the processor's.\n */\nasync function collectLabResults(collector: RawCollector): Promise<void> {\n  const token = await collector.pageToken(TEST_RESULTS_PAGE);\n  const seenKeys = new Set<string>();\n  // The accepted group types answer the same list, so one of them answering\n  // is the whole list and the other failing costs nothing. Both failing is\n  // the payload failing: the instance has not said \"no results\", and the\n  // first failure is the one to report. A rejected speculative probe is\n  // expected and never an error.\n  const acceptedFailures: Error[] = [];\n\n  for (const groupType of [...ACCEPTED_GROUP_TYPES, ...SPECULATIVE_GROUP_TYPES]) {\n    const outcome = await fetchResultGroupList(collector, groupType, token);\n    if ('failure' in outcome) {\n      if (ACCEPTED_GROUP_TYPES.includes(groupType)) acceptedFailures.push(outcome.failure);\n      continue;\n    }\n    const page = outcome.page;\n\n    // Outside the swallow: these are results the instance says exist, so a\n    // failure here would return a short list indistinguishable from a\n    // complete one — \"you have 39 results\" when you have 60.\n    for (const group of list(rec<TestResultList>(page).newResultGroups)) {\n      const key = text(rec(group).key);\n      if (!key || seenKeys.has(key)) continue;\n      seenKeys.add(key);\n\n      const details = rec<TestResultDetails>(await collector.postJson('/api/test-results/GetDetails', token, { orderKey: key, organizationID: '', PageNonce: '' }));\n      logger.debug('got detail back:', details.orderName);\n\n      for (const result of list(details.results)) {\n        const reportDetails = rec(rec(result).reportDetails);\n        const reportID = text(reportDetails.reportID);\n        if (!reportID) continue;\n        const vars = rec(reportDetails.reportVars);\n        await collector.postJson('/api/report-content/LoadReportContent', token, {\n          reportID,\n          assumedVariables: { ordId: vars.ordId ?? '', ordDat: vars.ordDat ?? '' },\n          isFullReportPage: false,\n          uniqueClass: 'EID-4',\n          nonce: '',\n        });\n      }\n\n      await fetchHistoricalResults(collector, key, token);\n    }\n  }\n\n  if (acceptedFailures.length === ACCEPTED_GROUP_TYPES.length) throw acceptedFailures[0]!;\n}\n\nexport async function fetchLabResultsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  await collectLabResults(collector);\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function listLabResults(mychartRequest: MyChartRequest): Promise<LabResultsStandard> {\n  return labResultsProcessor.standard(await fetchLabResultsRaw(mychartRequest));\n}\n\n/**\n * The lab requests plus, for every imaging order with a viewer context, the\n * `FdiData` exchange that mints the (single-use, short-lived) SAML URL. With\n * `followSaml`, the chain is walked to the eUnity viewer and the final hop is\n * recorded too, since it goes through its own cookie jar rather than the\n * session's request path.\n */\nexport async function fetchImagingResultsRaw(\n  mychartRequest: MyChartRequest,\n  options?: { followSaml?: boolean },\n): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  await collectLabResults(collector);\n\n  const labs = labResultsProcessor.standard(collector.toRaw());\n  for (const order of labs.orders) {\n    if (!isImagingOrder(order)) continue;\n    const fdi = fdiContextForOrder(collector.toRaw(), order);\n    if (!fdi) continue;\n    try {\n      const session = await getImageViewerSamlUrl(mychartRequest, fdi, collector);\n      if (session && options?.followSaml) {\n        const viewer = await followSamlChain(mychartRequest, session.samlUrl);\n        if (viewer) {\n          collector.requests.push({ path: viewer.viewerUrl, method: 'GET', status: 200, contentType: 'text/html', body: viewer.viewerBody });\n        }\n      }\n    } catch (err) {\n      if (err instanceof SessionExpiredError) throw err;\n      logger.debug('Error getting viewer URL:', (err as Error).message);\n    }\n  }\n\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getImagingResults(\n  mychartRequest: MyChartRequest,\n  options?: { followSaml?: boolean },\n): Promise<ImagingResultsStandard> {\n  return imagingResultsProcessor.standard(await fetchImagingResultsRaw(mychartRequest, options));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Direct HTTP image downloader for eUnity DICOM viewer.\n *\n * Downloads images from eUnity WITHOUT Playwright by:\n * 1. Following the SAML chain (built-in fetch) to get JSESSIONID on eunitypg\n * 2. Calling AmfServicesServlet to initialize the session for a study\n * 3. Calling CustomImageServlet to download pixel data\n *\n * The eUnity server uses a proprietary AMF protocol:\n * - Request/response type: com.clientoutlook.web.metaservices.AmfServicesMessage\n * - messageType = \"call\" for requests, \"response\" for responses\n * - body = AmfServicesRequest for requests, AmfServicesResponse for responses\n *\n * Protocol reverse-engineered from eUnity's Dart/WASM viewer network traffic.\n */\nimport type * as tough from 'tough-cookie';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { type FdiContext, followSamlChain, getImageViewerSamlUrl } from './imagingViewer';\nimport { scraperFetch } from '../../http';\nimport { sortImagesByPatientPosition } from '../clo-image-parser/sortByPatientPosition';\nimport { logger } from '../../../shared/logger';\nimport { type Amf3Object, collectAmf3Objects, decodeAmf3, unwrapAmf3 } from '../../../shared/amf3Reader';\nimport { Amf3Writer } from '../../../shared/amf3Writer';\nimport { detailedMessage } from '../../../shared/detailedError';\n\n// ─── AMF3 Request Construction ───\n\n/**\n * Build an AMF3 call to AmfServicesServlet.\n *\n * Protocol (reverse-engineered from captured browser traffic):\n * - Outer object: com.clientoutlook.web.metaservices.AmfServicesMessage\n *   - messageID: incrementing string ID (e.g. \"HTTPSimpleLoader_1\")\n *   - messageType: \"call\"\n *   - body: com.clientoutlook.web.metaservices.AmfServicesRequest\n *     - service: service class name (e.g. \"StudyService\")\n *     - method: method name (e.g. \"getStudyListMeta\")\n *     - parameters: array of method arguments (NOT \"args\")\n *\n * Member order matters for AMF3 sealed objects: messageID comes BEFORE messageType.\n */\nfunction buildAmfCall(\n  messageID: string,\n  service: string,\n  method: string,\n  parameters: ((w: Amf3Writer) => void)[],\n): Buffer {\n  // Callback params are numbered by nesting depth (w1, w2, …): each callback\n  // writes to exactly the writer it is handed, so the code stays correct by\n  // construction even if a writer method ever hands down a sub-writer.\n  const w = new Amf3Writer();\n  w.writeTypedObject(\n    'com.clientoutlook.web.metaservices.AmfServicesMessage',\n    ['messageID', 'messageType', 'body'],\n    [\n      (w1) => w1.writeString(messageID),\n      (w1) => w1.writeString('call'),\n      (w1) => w1.writeTypedObject(\n        'com.clientoutlook.web.metaservices.AmfServicesRequest',\n        ['service', 'method', 'parameters'],\n        [\n          (w2) => w2.writeString(service),\n          (w2) => w2.writeString(method),\n          (w2) => w2.writeArray(parameters),\n        ],\n      ),\n    ],\n  );\n  return w.toBuffer();\n}\n\n/**\n * Build the getStudyListMeta AMF request.\n *\n * This is the first call the WASM viewer makes after getting a JSESSIONID.\n * It initializes the server-side session for a specific study, which is\n * required before CustomImageServlet will serve image data (otherwise 403).\n *\n * The single parameter is a StudyListRequest — an Externalizable AMF3 object\n * with a custom binary format containing:\n *   - 4-byte BE header (value 2)\n *   - String \"getStudyList\" (method qualifier)\n *   - String \"1.2.0\" (version)\n *   - Anonymous dynamic object with:\n *     - notUsed: true\n *     - requestedPHI: ArrayCollection wrapping RequestedPHI objects\n *     - environment: Environment object\n *\n * Reverse-engineered from captured browser AMF traffic (748 bytes).\n */\nexport function buildGetStudyListMetaRequest(\n  accession: string,\n  serviceInstance: string,\n  patientId: string,\n): Buffer {\n  // Callback params are numbered by nesting depth (w1…w6): each callback\n  // writes to exactly the writer it is handed, so the code stays correct by\n  // construction even if a writer method ever hands down a sub-writer.\n  return buildAmfCall('HTTPSimpleLoader_1', 'StudyService', 'getStudyListMeta', [\n    (w1) => {\n      // StudyListRequest is Externalizable — custom binary format\n      w1.writeExternalizableObject(\n        'com.clientoutlook.web.metaservices.StudyListRequest',\n        (w2) => {\n          // 4-byte big-endian header (observed value: 2)\n          w2.writeBE32(2);\n          // Method qualifier string\n          w2.writeString('getStudyList');\n          // Version string\n          w2.writeString('1.2.0');\n          // Anonymous sealed object with 3 members and empty class name.\n          // NOT dynamic — the browser uses plain sealed traits (0x33 = 3 members, no dynamic flag).\n          w2.writeTypedObject(\n            '', // empty class name = anonymous object\n            ['notUsed', 'requestedPHI', 'environment'],\n            [\n              // notUsed: true\n              (w3) => w3.writeTrue(),\n              // requestedPHI: ArrayCollection wrapping RequestedPHI objects\n              (w3) => {\n                // ArrayCollection is Externalizable — wraps a standard AMF3 array\n                w3.writeExternalizableObject(\n                  'flex.messaging.io.ArrayCollection',\n                  (w4) => {\n                    w4.writeArray([\n                      (w5) => {\n                        // RequestedPHI sealed object (8 members)\n                        w5.writeTypedObject(\n                          'com.clientoutlook.data.RequestedPHI',\n                          [\n                            'patientId',\n                            'studyUID',\n                            'accessionNumber',\n                            'serviceInstanceParameter',\n                            'serviceInstanceProperties',\n                            'serviceInstance',\n                            'originalServiceInstanceParameter',\n                            'originalServiceInstance',\n                          ],\n                          [\n                            (w6) => w6.writeString(patientId),        // e.g. \"<MRN>$$$<site>\"\n                            (w6) => w6.writeNull(),                    // studyUID: null\n                            (w6) => w6.writeString(accession),         // e.g. \"E48330984\"\n                            (w6) => w6.writeString(''),                // serviceInstanceParameter: empty\n                            (w6) => w6.writeNull(),                    // serviceInstanceProperties: null\n                            (w6) => w6.writeString(serviceInstance),   // e.g. \"EXAMPLEstudystrategy\"\n                            (w6) => w6.writeString(''),                // originalServiceInstanceParameter: empty\n                            (w6) => w6.writeString(serviceInstance),   // originalServiceInstance: same\n                          ],\n                        );\n                      },\n                    ]);\n                  },\n                );\n              },\n              // environment: Environment sealed object (6 members)\n              (w3) => {\n                w3.writeTypedObject(\n                  'com.clientoutlook.data.hangingprotocol.Environment',\n                  ['levelValue', 'level', 'user', 'roles', 'device', 'numberOfScreens'],\n                  [\n                    (w4) => w4.writeNull(),           // levelValue: null\n                    (w4) => w4.writeInteger(0),        // level: 0\n                    (w4) => w4.writeNull(),           // user: null\n                    (w4) => w4.writeNull(),           // roles: null\n                    (w4) => w4.writeString('WEB'),    // device: \"WEB\"\n                    (w4) => w4.writeString('1'),      // numberOfScreens: \"1\"\n                  ],\n                );\n              },\n            ],\n          );\n        },\n      );\n    },\n  ]);\n}\n\n// ─── AMF3 Response Parsing ───\n\ninterface AmfResponse {\n  code: number;\n  response: string | null;\n}\n\n/**\n * Parse the outer AmfServicesMessage response to extract code and response text.\n * Returns null if the response can't be parsed.\n */\nexport function parseAmfResponse(buf: Buffer): AmfResponse | null {\n  // Look for the response pattern: AmfServicesResponse followed by code (integer) and response (string or null)\n  const text = buf.toString('latin1');\n  const codeIdx = text.indexOf('code');\n  if (codeIdx < 0) return null;\n\n  // After \"code\" member name, look for integer marker (0x04) followed by U29 value\n  // The response member follows\n  let pos = buf.indexOf(Buffer.from('code'), 0);\n  if (pos < 0) return null;\n  pos += 4; // skip \"code\"\n\n  // Skip the second member name (either inline or reference)\n  // Look for the AMF3 integer marker after both member names\n  // Find position of the integer marker for code value\n  while (pos < buf.length && buf[pos] !== 0x04 && buf[pos] !== 0x01) pos++;\n  if (pos >= buf.length) return null;\n\n  let code = -1;\n  let response: string | null = null;\n\n  if (buf[pos] === 0x04) { // Integer\n    pos++;\n    // Byte reads are `!`-asserted: positions are bounded by the scan loop above; noUncheckedIndexedAccess.\n    code = buf[pos]! & 0x7F;\n    pos++;\n  }\n\n  // Next value is the response (string or null)\n  if (pos < buf.length) {\n    if (buf[pos] === 0x01) { // null\n      response = null;\n    } else if (buf[pos] === 0x06) { // string\n      pos++;\n      // Read U29 string length\n      let len: number;\n      if (buf[pos]! < 0x80) {\n        len = buf[pos]! >> 1;\n        pos++;\n      } else {\n        len = ((buf[pos]! & 0x7F) << 7) | buf[pos + 1]!;\n        len >>= 1;\n        pos += 2;\n      }\n      if (len > 0 && pos + len <= buf.length) {\n        response = buf.toString('utf-8', pos, pos + len);\n      }\n    }\n  }\n\n  return { code, response };\n}\n\n// ─── Study Params Extraction ───\n\nexport interface EunityStudyParams {\n  accession: string;\n  serviceInstance: string;\n  patientId: string;\n}\n\n/**\n * Extract study parameters from the eUnity viewer URL and/or page HTML body.\n *\n * The viewer URL may contain study params as query parameters, or the `arg`\n * parameter may be an encrypted blob (Example Health System). In the encrypted case, the\n * params are embedded in the viewer HTML as a JSON config object:\n *   \"accessionNumber\":\"E48330984\"\n *   \"serviceInstance\":\"EXAMPLEstudystrategy\"\n *   \"patientId\":\"<MRN>$$$<site>\"\n *\n * Known URL formats:\n * - Encrypted arg: <eunity-host>/e/viewer?CLOAccessKeyID=...&arg=<encrypted>\n * - Plain arg: <eunity-host>/e/viewer?CLOAccessKeyID=...&arg=accession%3D...\n * - Direct params: <eunity-host>/eUnity/viewer/?accession=...\n */\nexport function parseEunityStudyParams(viewerUrl: string, viewerBody?: string): EunityStudyParams | null {\n  let accession = '';\n  let serviceInstance = '';\n  let patientId = '';\n\n  // Strategy 1: Try URL query parameters\n  try {\n    const url = new URL(viewerUrl);\n    const p = url.searchParams;\n\n    accession = p.get('accession') || p.get('accessionNumber') || '';\n    serviceInstance = p.get('serviceInstance') || '';\n    patientId = p.get('patientId') || p.get('PatID') || '';\n\n    // Try parsing the 'arg' parameter as a query string\n    const arg = p.get('arg');\n    if (arg && !accession) {\n      try {\n        const argParams = new URLSearchParams(arg);\n        if (!accession) accession = argParams.get('accession') || argParams.get('accessionNumber') || '';\n        if (!serviceInstance) serviceInstance = argParams.get('serviceInstance') || '';\n        if (!patientId) patientId = argParams.get('patientId') || argParams.get('PatID') || '';\n      } catch { /* encrypted arg, not a query string */ }\n\n      // Try pipe-delimited\n      if (!accession && arg.includes('|')) {\n        const parts = arg.split('|');\n        if (parts.length >= 3) {\n          // Length checked above; `!` for noUncheckedIndexedAccess.\n          accession = parts[0]!;\n          serviceInstance = parts[1]!;\n          patientId = parts[2]!;\n        }\n      }\n    }\n  } catch { /* invalid URL */ }\n\n  // Strategy 2: Parse the viewer HTML body for the JSON config\n  // The eUnity viewer embeds study params in a large JS config object\n  if ((!accession || !serviceInstance || !patientId) && viewerBody) {\n    // Extract accessionNumber from JSON: \"accessionNumber\":\"E48330984\"\n    if (!accession) {\n      const accMatch = /\"accessionNumber\"\\s*:\\s*\"([^\"]+)\"/.exec(viewerBody);\n      if (accMatch) accession = accMatch[1]!;\n    }\n\n    // Extract serviceInstance from JSON: \"serviceInstance\":\"EXAMPLEstudystrategy\"\n    if (!serviceInstance) {\n      const siMatch = /\"serviceInstance\"\\s*:\\s*\"([^\"]+)\"/.exec(viewerBody);\n      if (siMatch) serviceInstance = siMatch[1]!;\n    }\n\n    // Extract patientId from JSON: \"patientId\":\"<MRN>$$$<site>\"\n    if (!patientId) {\n      const pidMatch = /\"patientId\"\\s*:\\s*\"([^\"]+)\"/.exec(viewerBody);\n      if (pidMatch) patientId = pidMatch[1]!;\n    }\n  }\n\n  if (accession && serviceInstance && patientId) {\n    return { accession, serviceInstance, patientId };\n  }\n\n  logger.debug(`      [PARAMS] Could not extract study params`);\n  logger.debug(`      [PARAMS] accession=${accession}, serviceInstance=${serviceInstance}, patientId=${patientId}`);\n  return null;\n}\n\n// ─── AMF Response Series Parsing ───\n\ninterface ParsedStudyInfo {\n  studyUID: string;\n  series: Array<{\n    seriesUID: string;\n    instanceUID: string;\n    seriesDescription: string;\n  }>;\n}\n\n\n/**\n * Parse the getStudyListMeta response *structurally* with the AMF3 reader:\n * decode the typed-object tree and walk Study → series → images, so every\n * (seriesUID, instanceUID) pair and series description is exact.\n *\n * This is the primary parser. The positional heuristic below remains as the\n * fallback for responses the reader can't decode (e.g. an externalizable\n * class we haven't seen). The heuristic mispaired UIDs on Mass General\n * Brigham multi-slice studies — it took a frameOfReferenceUID for the series UID and\n * the real series UIDs for instances, so every CustomImageServlet request\n * came back CLOERROR \"Failed to find image in any supplied providers\".\n *\n * @param accession When the response carries several studies (priors in\n * relevantStudyList), picks the one whose accessionNumber matches; otherwise\n * the first study with image series wins.\n */\nexport function parseStudySeriesFromAmfStructured(amfBuf: Buffer, accession?: string): ParsedStudyInfo | null {\n  let root: unknown;\n  try {\n    root = decodeAmf3(amfBuf);\n  } catch (err) {\n    logger.debug(`      [AMF-PARSE] Structured decode failed: ${(err as Error).message}`);\n    return null;\n  }\n\n  const studies = collectAmf3Objects(root, 'com.clientoutlook.data.Study');\n  if (studies.length === 0) return null;\n\n  const seriesOf = (study: Amf3Object): Amf3Object[] => {\n    const arr = unwrapAmf3(study.series);\n    if (!Array.isArray(arr)) return [];\n    return arr.filter((s): s is Amf3Object =>\n      typeof s === 'object' && s !== null && typeof (s as Amf3Object).uid === 'string' && !!(s as Amf3Object).uid);\n  };\n\n  const study =\n    (accession ? studies.find((s) => s.accessionNumber === accession && seriesOf(s).length > 0) : undefined) ??\n    studies.find((s) => seriesOf(s).length > 0) ??\n    studies[0];\n  // An empty study list previously crashed on `study.uid`; null is this\n  // function's failure value for a response it can't use.\n  if (!study) return null;\n\n  const studyUID = study.uid;\n  if (typeof studyUID !== 'string' || !studyUID) return null;\n\n  const series: ParsedStudyInfo['series'] = [];\n  let seriesCount = 0;\n  for (const s of seriesOf(study)) {\n    seriesCount++;\n    const seriesUID = s.uid as string;\n    const description = typeof s.description === 'string' && s.description.trim()\n      ? s.description.trim()\n      : `Series ${seriesCount}`;\n\n    const images = unwrapAmf3(s.images);\n    const instances = (Array.isArray(images) ? images : [])\n      .filter((img): img is Amf3Object =>\n        typeof img === 'object' && img !== null && typeof (img as Amf3Object).uid === 'string' && !!(img as Amf3Object).uid)\n      .sort((a, b) => (Number(a.instanceNumber) || 0) - (Number(b.instanceNumber) || 0));\n\n    for (const img of instances) {\n      series.push({ seriesUID, instanceUID: img.uid as string, seriesDescription: description });\n    }\n    logger.debug(`      [AMF-PARSE] ${description}: ${instances.length} instances`);\n  }\n\n  if (series.length === 0) return null;\n  logger.debug(`      [AMF-PARSE] Structured parse: ${series.length} (seriesUID, instanceUID) entries across ${seriesCount} series`);\n  return { studyUID, series };\n}\n\n/**\n * Parse the study/series/instance tree from a getStudyListMeta response:\n * structured AMF3 decode first, positional heuristic as fallback.\n *\n * The fallback is loud on purpose. The heuristic is the parser that mispaired\n * UIDs on Mass General Brigham multi-slice studies and produced a silent\n * zero-image result, so when it runs, the log says so — a future zero-image\n * report must be diagnosable to \"the strict reader couldn't decode this\n * response\" in one step rather than rediscovered from scratch.\n */\nfunction parseStudySeries(amfBuf: Buffer, accession: string): ParsedStudyInfo | null {\n  const structured = parseStudySeriesFromAmfStructured(amfBuf, accession);\n  if (structured) return structured;\n  logger.warn(\n    '      [AMF-PARSE] Structured AMF3 decode failed; falling back to the positional UID heuristic. ' +\n    'UID pairing may be wrong on multi-slice studies — capture this response and extend amf3Reader.ts.',\n  );\n  return parseStudySeriesFromAmf(amfBuf);\n}\n\n/**\n * Parse the AMF getStudyListMeta response to extract study UID and series info.\n *\n * Positional-heuristic fallback for responses {@link parseStudySeriesFromAmfStructured}\n * can't decode.\n *\n * The AMF response contains a structured list where series UIDs appear as boundaries,\n * followed by their instance UIDs. For multi-slice studies (CT scans), each series\n * has many instance UIDs (one per slice).\n *\n * Strategy:\n * 1. Find all DICOM UIDs in the binary (pattern: 1.X.X.X.X...)\n * 2. Filter out DICOM standard SOP Class UIDs (1.2.840.10008.*)\n * 3. Identify the study UID\n * 4. Detect series UIDs: UIDs that appear multiple times in the binary are typically\n *    series UIDs (they appear in headers and as references). UIDs appearing exactly\n *    once are typically instance UIDs.\n * 5. Walk UIDs in position order, using series UIDs as group boundaries\n * 6. Each series entry includes ALL its instance UIDs for complete multi-slice support\n */\nexport function parseStudySeriesFromAmf(amfBuf: Buffer): ParsedStudyInfo | null {\n  const text = amfBuf.toString('latin1');\n\n  // Find all DICOM UIDs with positions (including duplicates for frequency analysis)\n  const uidPattern = /1\\.\\d+\\.\\d+\\.\\d+(?:\\.\\d+){2,}/g;\n  const uidOccurrences: Array<{ uid: string; pos: number }> = [];\n  const uidFrequency = new Map<string, number>();\n  const firstPosition = new Map<string, number>();\n  let match;\n  while ((match = uidPattern.exec(text)) !== null) {\n    const uid = match[0];\n    // 1.2.840.10008.* = DICOM standard SOP Class UIDs (universal spec, not institution-specific)\n    // These are type identifiers like \"CT Image Storage\" that appear as metadata,\n    // not study/series/instance UIDs. Defined in the DICOM standard PS3.4.\n    if (uid.startsWith('1.2.840.10008.')) continue;\n    uidOccurrences.push({ uid, pos: match.index });\n    uidFrequency.set(uid, (uidFrequency.get(uid) || 0) + 1);\n    if (!firstPosition.has(uid)) firstPosition.set(uid, match.index);\n  }\n\n  if (uidOccurrences.length === 0) return null;\n\n  const uniqueUIDs = [...new Set(uidOccurrences.map(o => o.uid))];\n  logger.debug(`      [AMF-PARSE] ${uniqueUIDs.length} unique study-related UIDs from ${uidOccurrences.length} occurrences`);\n\n  // Study UID: the first UID in the response (AMF always starts with study-level data)\n  const studyUID = uniqueUIDs[0]!; // uidOccurrences checked non-empty above; noUncheckedIndexedAccess\n\n  // Detect series vs instance UIDs using positional structure analysis.\n  //\n  // The AMF binary lists UIDs in order: series UID, then its instance UIDs.\n  // Within the UID stream, we can detect series boundaries by grouping\n  // consecutive UIDs by their \"parent\" (all segments except the last).\n  // Single-UID sub-groups are series UIDs; multi-UID runs are instances.\n  //\n  // For UIDs with very different roots (e.g., COR/SAG vs NONCONTRAST),\n  // we first split by major root boundary, then analyze within each root.\n\n  const orderedUIDs = [...firstPosition.entries()]\n    .filter(([uid]) => uid !== studyUID)\n    .sort((a, b) => a[1] - b[1])\n    .map(([uid]) => uid);\n\n  // Sub-group by \"parent\" (drop last segment)\n  const getParent = (uid: string) => uid.split('.').slice(0, -1).join('.');\n  const subGroups: Array<{ parent: string; uids: string[] }> = [];\n  let currentParent = '';\n  let currentGroup: string[] = [];\n\n  for (const uid of orderedUIDs) {\n    const parent = getParent(uid);\n    if (parent !== currentParent) {\n      if (currentGroup.length > 0) {\n        subGroups.push({ parent: currentParent, uids: currentGroup });\n      }\n      currentParent = parent;\n      currentGroup = [uid];\n    } else {\n      currentGroup.push(uid);\n    }\n  }\n  if (currentGroup.length > 0) {\n    subGroups.push({ parent: currentParent, uids: currentGroup });\n  }\n\n  // Walk sub-groups to identify series and instance relationships.\n  // Single-UID sub-groups are series UIDs; multi-UID sub-groups are their instances.\n  const candidateSeriesUIDs: string[] = [];\n  const seriesInstances = new Map<string, Set<string>>();\n  let currentSeriesUID = '';\n\n  for (const sg of subGroups) {\n    if (sg.uids.length === 1) {\n      // Single UID — likely a series UID (or a standalone instance like Scout)\n      const uid = sg.uids[0]!; // length === 1 checked above; noUncheckedIndexedAccess\n      // If the previous \"series\" had no instances, it was actually an instance itself\n      // Add it to the current series\n      if (currentSeriesUID && seriesInstances.get(currentSeriesUID)!.size === 0) {\n        // Previous single was actually an instance, not a series\n        // Retroactively add it as an instance of the series before it\n        const prevSeries = candidateSeriesUIDs[candidateSeriesUIDs.length - 2];\n        if (prevSeries) {\n          const oldSeries = candidateSeriesUIDs.pop()!;\n          seriesInstances.get(prevSeries)!.add(oldSeries);\n          seriesInstances.delete(oldSeries);\n        }\n      }\n      currentSeriesUID = uid;\n      candidateSeriesUIDs.push(uid);\n      seriesInstances.set(uid, new Set());\n    } else {\n      // Multi-UID sub-group — these are instances of the current series\n      if (currentSeriesUID) {\n        for (const uid of sg.uids) {\n          seriesInstances.get(currentSeriesUID)!.add(uid);\n        }\n      }\n    }\n  }\n\n  // Check if the positional analysis produced useful results.\n  // For small studies (X-rays) where all UIDs have unique parents,\n  // every UID becomes a \"series\" with 0 instances — fall back to legacy parser.\n  //\n  // Also fall back when: the remaining UIDs (excluding study UID) form clean pairs\n  // but the positional analysis collapsed them into too few series. This happens when\n  // UIDs share a common parent prefix (e.g., 1.3.51.0.7.X) but are actually\n  // alternating series/instance pairs.\n  const totalInstances = [...seriesInstances.values()].reduce((sum, s) => sum + s.size, 0);\n  const expectedPairCount = Math.floor(orderedUIDs.length / 2);\n  const actualSeriesWithImages = [...seriesInstances.values()].filter(s => s.size > 0).length;\n\n  if (candidateSeriesUIDs.length === 0 || totalInstances === 0) {\n    logger.debug(`      [AMF-PARSE] Positional analysis found ${candidateSeriesUIDs.length} series with ${totalInstances} instances, falling back to pair-based parsing`);\n    return parseStudySeriesFromAmfLegacy(amfBuf);\n  }\n\n  // If positional analysis collapsed many UIDs into one series with few instances,\n  // and pair-based parsing would produce more series, fall back to pairs.\n  // This catches X-ray studies (2-6 views) where UIDs share a parent prefix\n  // but are actually separate series+instance pairs.\n  // Don't fall back for CT/MRI with many instances per series (>10).\n  const maxInstancesPerSeries = Math.max(...[...seriesInstances.values()].map(s => s.size));\n  if (expectedPairCount >= 2 && actualSeriesWithImages <= 1 && maxInstancesPerSeries <= 10 && expectedPairCount > actualSeriesWithImages) {\n    logger.debug(`      [AMF-PARSE] Positional analysis found ${actualSeriesWithImages} series with images but ${expectedPairCount} pairs expected, falling back to pair-based parsing`);\n    return parseStudySeriesFromAmfLegacy(amfBuf);\n  }\n\n  logger.debug(`      [AMF-PARSE] Detected ${candidateSeriesUIDs.length} series via positional analysis`);\n\n  // Extract series descriptions from nearby readable strings\n  const descriptionPattern = /[\\x20-\\x7e]{3,100}/g;\n  const readableStrings: Array<{ text: string; pos: number }> = [];\n  let strMatch;\n  while ((strMatch = descriptionPattern.exec(text)) !== null) {\n    const s = strMatch[0].trim();\n    if (/^\\d+\\.\\d+\\.\\d+/.test(s)) continue;\n    if (s.includes('com.clientoutlook') || s.includes('flex.messaging')) continue;\n    if (s.includes('AmfServices') || s.includes('HTTPSimpleLoader')) continue;\n    if (s.includes('getStudyList') || s.includes('StudyService')) continue;\n    if (/^[\\d.]+$/.test(s)) continue;\n    readableStrings.push({ text: s, pos: strMatch.index });\n  }\n\n  // Build the result — flatten each series' instances into individual entries\n  // for backward compatibility with the download loop\n  const series: ParsedStudyInfo['series'] = [];\n  let seriesIdx = 0;\n  for (let si = 0; si < candidateSeriesUIDs.length; si++) {\n    const seriesUID = candidateSeriesUIDs[si]!; // si bounded by loop; noUncheckedIndexedAccess\n    const instances = seriesInstances.get(seriesUID)!;\n    const seriesPos = firstPosition.get(seriesUID) ?? 0;\n    // Search for descriptions between this series and the next one\n    const nextSeriesPos = si + 1 < candidateSeriesUIDs.length\n      ? (firstPosition.get(candidateSeriesUIDs[si + 1]!) ?? text.length)\n      : text.length;\n\n    // Find series description: look for readable strings between this series and the next\n    let bestDesc = `Series ${++seriesIdx}`;\n    let bestScore = 0;\n    for (const rs of readableStrings) {\n      if (rs.pos < seriesPos || rs.pos > nextSeriesPos) continue;\n      // Prefer strings that look like series names (short, no UIDs, not too generic)\n      const s = rs.text;\n      if (s.length < 3 || s.length > 50) continue;\n      // Score: prefer shorter, more descriptive strings\n      let score = 10;\n      if (/^[A-Z]/.test(s)) score += 5; // Starts with uppercase\n      if (s.includes(' ')) score += 3; // Has spaces (human-readable)\n      if (/\\d+x\\d+|\\d+mm/i.test(s)) score += 3; // Resolution-like\n      if (s.length < 20) score += 2;\n      if (score > bestScore) {\n        bestScore = score;\n        bestDesc = s;\n      }\n    }\n\n    if (instances.size === 0) {\n      // Series with no detected instances — add a self-referencing entry\n      series.push({ seriesUID, instanceUID: seriesUID, seriesDescription: bestDesc });\n    } else {\n      // Add an entry for EACH instance UID — the download loop iterates these\n      const sortedInstances = [...instances].sort((a, b) => {\n        // DICOM UIDs are decimal digit runs joined by dots (see uidPattern),\n        // so the trailing component sorts as a base-10 number.\n        const aNum = parseInt(a.split('.').pop()!, 10) || 0;\n        const bNum = parseInt(b.split('.').pop()!, 10) || 0;\n        return aNum - bNum;\n      });\n\n      for (const instanceUID of sortedInstances) {\n        series.push({ seriesUID, instanceUID, seriesDescription: bestDesc });\n      }\n    }\n\n    logger.debug(`      [AMF-PARSE] ${bestDesc}: ${instances.size} instances`);\n  }\n\n  logger.debug(`      [AMF-PARSE] Total: ${series.length} (seriesUID, instanceUID) entries across ${candidateSeriesUIDs.length} series`);\n\n  return { studyUID, series };\n}\n\n/**\n * Legacy pair-based parser for simple studies (X-rays with few series).\n * Used as fallback when the frequency-based series detection doesn't find\n * enough high-frequency UIDs.\n */\nfunction parseStudySeriesFromAmfLegacy(amfBuf: Buffer): ParsedStudyInfo | null {\n  const text = amfBuf.toString('latin1');\n\n  const uidPattern = /1\\.\\d+\\.\\d+\\.\\d+(?:\\.\\d+){2,}/g;\n  const allUIDs: string[] = [];\n  const uidPositions: Map<string, number> = new Map();\n  let match;\n  while ((match = uidPattern.exec(text)) !== null) {\n    if (!uidPositions.has(match[0]) && !match[0].startsWith('1.2.840.10008.')) {\n      allUIDs.push(match[0]);\n      uidPositions.set(match[0], match.index);\n    }\n  }\n\n  if (allUIDs.length === 0) return null;\n\n  // Study UID: the first UID in the response (AMF always starts with study-level data)\n  const studyUID = allUIDs[0]!; // allUIDs.length checked non-zero above; noUncheckedIndexedAccess\n  const otherUIDs = allUIDs.filter(uid => uid !== studyUID);\n\n  if (otherUIDs.length === 0) return { studyUID, series: [] };\n\n  const descriptionPattern = /[\\x20-\\x7e]{3,100}/g;\n  const readableStrings: Array<{ text: string; pos: number }> = [];\n  let strMatch;\n  while ((strMatch = descriptionPattern.exec(text)) !== null) {\n    const s = strMatch[0].trim();\n    if (/^\\d+\\.\\d+\\.\\d+/.test(s)) continue;\n    if (s.includes('com.clientoutlook') || s.includes('flex.messaging')) continue;\n    if (s.includes('AmfServices') || s.includes('HTTPSimpleLoader')) continue;\n    if (s.includes('getStudyList') || s.includes('StudyService')) continue;\n    if (/^[\\d.]+$/.test(s)) continue;\n    readableStrings.push({ text: s, pos: strMatch.index });\n  }\n\n  const series: ParsedStudyInfo['series'] = [];\n  for (let i = 0; i + 1 < otherUIDs.length; i += 2) {\n    const seriesUID = otherUIDs[i]!; // i + 1 < length per loop condition; noUncheckedIndexedAccess\n    const instanceUID = otherUIDs[i + 1]!;\n    const seriesPos = uidPositions.get(seriesUID) ?? 0;\n\n    let bestDesc = `Series ${Math.floor(i / 2) + 1}`;\n    let bestDist = Infinity;\n    for (const rs of readableStrings) {\n      const dist = Math.abs(rs.pos - seriesPos);\n      if (dist < bestDist && dist < 500 && rs.text.length >= 3 && rs.text.length <= 80) {\n        bestDist = dist;\n        bestDesc = rs.text;\n      }\n    }\n\n    series.push({ seriesUID, instanceUID, seriesDescription: bestDesc });\n  }\n\n  return { studyUID, series };\n}\n\n// ─── Session Initialization ───\n\n/**\n * Extract the real serviceInstance from an AMF response buffer.\n * The server may return a different serviceInstance than the one we sent\n * (e.g., \"MyChart\" → \"UCSFVNAEDGEBundle\" for CT scans). The browser uses\n * this real value for a second AMF init call and all CustomImageServlet requests.\n */\nexport function extractServiceInstanceFromAmf(amfBuf: Buffer, originalServiceInstance: string): string | null {\n  const text = amfBuf.toString('latin1');\n\n  // Strategy 1: Look for a serviceInstance value near the \"serviceInstance\" or\n  // \"ServiceInstance\" field name in the binary. The value typically follows\n  // within 50 bytes of the field name.\n  const fieldPositions: number[] = [];\n  let idx = 0;\n  while ((idx = text.indexOf('erviceInstance', idx)) !== -1) {\n    fieldPositions.push(idx);\n    idx++;\n  }\n\n  for (const pos of fieldPositions) {\n    // Look at readable strings within 50 bytes after the field name\n    const region = text.substring(pos, pos + 100);\n    // Match capitalized identifiers that look like serviceInstance values\n    // (not field names like \"ServiceInstance\", \"ServiceInstanceParameter\")\n    const valuePattern = /([A-Z][A-Za-z0-9]{5,}(?:Bundle|Strategy|strategy))/g;\n    let match;\n    while ((match = valuePattern.exec(region)) !== null) {\n      const val = match[1]!; // pattern has one mandatory capture group; noUncheckedIndexedAccess\n      if (val !== originalServiceInstance && !val.startsWith('ServiceInstance')) {\n        return val;\n      }\n    }\n  }\n\n  // Strategy 2: Look for known serviceInstance patterns anywhere in the binary.\n  // These are institution-specific identifiers that end in \"Bundle\" or contain \"strategy\".\n  const globalPattern = /([A-Z][A-Za-z0-9]{4,}Bundle|[A-Z][A-Za-z0-9]{4,}[Ss]trategy)/g;\n  let match;\n  while ((match = globalPattern.exec(text)) !== null) {\n    const val = match[1]!; // pattern has one mandatory capture group; noUncheckedIndexedAccess\n    if (val !== originalServiceInstance) {\n      return val;\n    }\n  }\n\n  return null;\n}\n\n/**\n * Initialize an eUnity session by calling AmfServicesServlet with getStudyListMeta.\n * This is required before CustomImageServlet will serve images (otherwise 403).\n *\n * Some studies (e.g., CT scans) use a different serviceInstance than the one in the\n * viewer URL. The browser handles this by making two AMF calls:\n * 1. First with the viewer's serviceInstance (e.g., \"MyChart\")\n * 2. Second with the real serviceInstance from the response (e.g., \"UCSFVNAEDGEBundle\")\n *\n * Returns { amfBuf, effectiveServiceInstance } on success.\n */\nasync function initializeAmfSession(\n  cookieJar: tough.CookieJar,\n  baseUrl: string,\n  accession: string,\n  serviceInstance: string,\n  patientId: string,\n): Promise<{ amfBuf: Buffer; effectiveServiceInstance: string } | null> {\n  const amfReq = buildGetStudyListMetaRequest(accession, serviceInstance, patientId);\n\n  const res = await scraperFetch(`${baseUrl}/e/AmfServicesServlet`, {\n    method: 'POST',\n    headers: { 'Content-Type': 'application/octet-stream' },\n    body: amfReq as unknown as BodyInit,\n  }, { cookieJar });\n\n  if (!res.ok) {\n    logger.debug(`      [AMF] Request failed: ${res.status}`);\n    return null;\n  }\n\n  const amfBuf = Buffer.from(await res.arrayBuffer());\n  const parsed = parseAmfResponse(amfBuf);\n\n  // Deliberately NOT `parsed?.code !== 0`: with no parse, `undefined !== 0` is\n  // true and would flip this into the error branch. \"No parse\" must stay\n  // \"no error\" here; only a parsed non-zero code is an upstream error.\n  if (parsed && parsed.code !== 0) {\n    logger.debug(`      [AMF] Error code=${parsed.code}: ${parsed.response ?? '(null)'}`);\n  }\n\n  if (parsed?.code === 0) {\n    logger.debug(`      [AMF] Session initialized successfully (${amfBuf.length} bytes)`);\n  }\n\n  // Check if the response contains a different serviceInstance\n  const realSI = extractServiceInstanceFromAmf(amfBuf, serviceInstance);\n  let effectiveServiceInstance = serviceInstance;\n\n  if (realSI && realSI !== serviceInstance) {\n    logger.debug(`      [AMF] Server returned different serviceInstance: ${realSI} (was ${serviceInstance})`);\n    logger.debug(`      [AMF] Making second AMF call with real serviceInstance...`);\n\n    // Make a second AMF call with the real serviceInstance (like the browser does)\n    const amfReq2 = buildGetStudyListMetaRequest(accession, realSI, patientId);\n    const res2 = await scraperFetch(`${baseUrl}/e/AmfServicesServlet`, {\n      method: 'POST',\n      headers: { 'Content-Type': 'application/octet-stream' },\n      body: amfReq2 as unknown as BodyInit,\n    }, { cookieJar });\n\n    if (res2.ok) {\n      const amfBuf2 = Buffer.from(await res2.arrayBuffer());\n      const parsed2 = parseAmfResponse(amfBuf2);\n      if (parsed2?.code === 0) {\n        logger.debug(`      [AMF] Second session initialized successfully (${amfBuf2.length} bytes)`);\n        // Return the FIRST AMF response (has full study/series data) but with the real serviceInstance\n        return { amfBuf, effectiveServiceInstance: realSI };\n      }\n    }\n    // Even if second call fails, use the real serviceInstance\n    effectiveServiceInstance = realSI;\n  }\n\n  return { amfBuf, effectiveServiceInstance };\n}\n\n// ─── eUnity Session ───\n\nexport interface EunitySession {\n  cookieJar: tough.CookieJar;\n  baseUrl: string;\n  studyUID: string;\n  serviceInstance: string;\n  series: Array<{ seriesUID: string; instanceUID: string; seriesDescription: string }>;\n}\n\n/**\n * Initialize an eUnity session: SAML chain + AMF init + parse series.\n * Returns the authenticated session with cookies and parsed series list.\n * The cookies can be reused for individual image downloads via downloadSingleImage().\n */\nexport async function initEunitySession(\n  mychartRequest: MyChartRequest,\n  fdiContext: FdiContext,\n): Promise<EunitySession | null> {\n  const viewerSession = await getImageViewerSamlUrl(mychartRequest, fdiContext);\n  if (!viewerSession?.samlUrl) return null;\n\n  const session = await followSamlChain(mychartRequest, viewerSession.samlUrl);\n  if (!session) return null;\n\n  const studyParams = parseEunityStudyParams(session.viewerUrl, session.viewerBody);\n  if (!studyParams) return null;\n\n  const baseUrl = new URL(session.viewerUrl).origin;\n  const amfResult = await initializeAmfSession(\n    session.cookieJar, baseUrl,\n    studyParams.accession, studyParams.serviceInstance, studyParams.patientId,\n  );\n  if (!amfResult) return null;\n\n  const { amfBuf, effectiveServiceInstance } = amfResult;\n  const studyInfo = parseStudySeries(amfBuf, studyParams.accession);\n  if (!studyInfo || studyInfo.series.length === 0) return null;\n\n  return {\n    cookieJar: session.cookieJar,\n    baseUrl,\n    studyUID: studyInfo.studyUID,\n    serviceInstance: effectiveServiceInstance,\n    series: studyInfo.series,\n  };\n}\n\n/**\n * Download a single image from an initialized eUnity session.\n * Returns the raw CLO pixel + wrapper data for conversion.\n */\nexport async function downloadSingleImage(\n  eunitySession: EunitySession,\n  seriesUID: string,\n  objectUID: string,\n): Promise<{ pixelData: Buffer; wrapperData?: Buffer } | null> {\n  const { data } = await downloadImage(eunitySession.cookieJar, eunitySession.baseUrl, {\n    studyUID: eunitySession.studyUID,\n    seriesUID,\n    objectUID,\n    serviceInstance: eunitySession.serviceInstance,\n    format: 'CLOWRAPPER',\n  });\n\n  if (data.length < 256 || (data.length > 8 && data.toString('ascii', 0, 8) === 'CLOERROR')) {\n    return null;\n  }\n\n  const CLOCLHAAR_MAGIC = Buffer.from('CLOCLHAAR');\n  const haarIdx = data.indexOf(CLOCLHAAR_MAGIC);\n  if (haarIdx < 0) return null;\n\n  // No leading wrapper means the key is absent, not present-and-undefined.\n  return {\n    pixelData: Buffer.from(data.subarray(haarIdx)),\n    ...(haarIdx > 0 ? { wrapperData: Buffer.from(data.subarray(0, haarIdx)) } : {}),\n  };\n}\n\n// ─── Image Download ───\n\nexport interface SeriesInfo {\n  seriesUID: string;\n  description: string;\n  instanceCount: number;\n}\n\nexport interface DirectDownloadResult {\n  studyName: string;\n  images: DirectDownloadedImage[];\n  errors: string[];\n  /** Parsed series info from the AMF response */\n  seriesList?: SeriesInfo[];\n}\n\nexport interface DirectDownloadedImage {\n  filePath: string;\n  sizeBytes: number;\n  seriesUID: string;\n  instanceUID: string;\n  seriesDescription: string;\n  accessionNumber: string;\n  format: string;\n  pixelData?: Buffer;\n  wrapperData?: Buffer;\n}\n\nexport interface DirectDownloadOptions {\n  skipFileWrite?: boolean;\n  /** Number of parallel downloads (default: 5). */\n  concurrency?: number;\n}\n\n/**\n * Progressive refinement levels for CLOPIXEL requests.\n *\n * The eUnity viewer uses Haar wavelet progressive loading:\n * - Level 1 (0,3,1): Approximation coefficients — lowest resolution base layer\n * - Level 2 (2,3,2): Additional wavelet detail — medium resolution\n * - Level 3 (2,4,3): Final wavelet detail — full resolution\n *\n * Each level response adds detail that's composited on the client side.\n * All three levels together represent the full image quality.\n * Observed from browser WASM viewer network traffic.\n */\nconst PROGRESSIVE_LEVELS = ['0,3,1', '2,3,2', '2,4,3'];\n\n/**\n * Download an image from CustomImageServlet.\n * NOTE: image/CLJPEG format is NOT supported by the Example Health System eUnity server (returns CLOERROR).\n * Use CLOWRAPPER format to get metadata + low-res preview.\n */\nasync function downloadImage(\n  cookieJar: tough.CookieJar,\n  baseUrl: string,\n  params: {\n    studyUID: string;\n    seriesUID: string;\n    objectUID: string;\n    frameNumber?: number;\n    serviceInstance: string;\n    format?: 'CLOPIXEL' | 'CLOWRAPPER';\n    level?: string;\n  }\n): Promise<{ data: Buffer; contentType: string }> {\n  const format = params.format ?? 'CLOWRAPPER';\n  const level = params.level ?? '0';\n\n  let requestType: string;\n  let contentType: string;\n  let haveImageData: string;\n\n  switch (format) {\n    case 'CLOPIXEL':\n      requestType = 'CLOPIXEL';\n      contentType = 'image/CLHAAR';\n      haveImageData = 'partialps';\n      break;\n    case 'CLOWRAPPER':\n      requestType = 'CLOWRAPPER';\n      contentType = 'image/CLWAVE;image/CLHAAR;image/CLJPEG';\n      haveImageData = 'partialnops';\n      break;\n  }\n\n  const body = new URLSearchParams({\n    requestType,\n    contentType,\n    studyUID: params.studyUID,\n    seriesUID: params.seriesUID,\n    objectUID: params.objectUID,\n    frameNumber: String(params.frameNumber ?? 1),\n    locale: 'en_US',\n    haveImageData,\n    serializeType: 'zlib',\n    compressionVersion: '3',\n    serviceInstance: params.serviceInstance,\n    level,\n  }).toString();\n\n  const res = await scraperFetch(`${baseUrl}/e/CustomImageServlet`, {\n    method: 'POST',\n    headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' },\n    body,\n  }, { cookieJar });\n\n  if (!res.ok) {\n    throw new Error(`CustomImageServlet failed: ${res.status} ${res.statusText}`);\n  }\n\n  const responseType = res.headers.get('content-type') || '';\n  const data = Buffer.from(await res.arrayBuffer());\n  return { data, contentType: responseType };\n}\n\n/**\n * Download all progressive CLOPIXEL levels for maximum quality.\n *\n * The eUnity viewer uses Haar wavelet progressive refinement — each level\n * adds more detail to the image. All 3 levels are needed for full quality.\n * Returns an array of {level, data} for each successfully downloaded level.\n */\nasync function downloadProgressiveClopixel(\n  cookieJar: tough.CookieJar,\n  baseUrl: string,\n  params: {\n    studyUID: string;\n    seriesUID: string;\n    objectUID: string;\n    serviceInstance: string;\n    frameNumber?: number;\n  },\n): Promise<Array<{ level: string; data: Buffer }>> {\n  const results: Array<{ level: string; data: Buffer }> = [];\n\n  for (const level of PROGRESSIVE_LEVELS) {\n    try {\n      const { data } = await downloadImage(cookieJar, baseUrl, {\n        ...params,\n        format: 'CLOPIXEL',\n        level,\n      });\n\n      // Check for CLOERROR in response\n      if (data.length > 8 && data.toString('ascii', 0, 8) === 'CLOERROR') {\n        logger.debug(`        [PIXEL] Level ${level}: server returned CLOERROR, stopping`);\n        break;\n      }\n\n      results.push({ level, data });\n      logger.debug(`        [PIXEL] Level ${level}: ${(data.length / 1024).toFixed(0)} KB`);\n    } catch (err) {\n      logger.debug(`        [PIXEL] Level ${level} failed: ${(err as Error).message}`);\n      break;\n    }\n  }\n\n  return results;\n}\n\nfunction isCloFormat(buf: Buffer): boolean {\n  return buf.length > 3 && buf.toString('ascii', 0, 3) === 'CLO';\n}\n\n// ─── Self-Contained Download Entry Point ───\n\n/**\n * Download all images from an imaging study using direct HTTP requests.\n *\n * This is the main entry point for the CLI `--action get-imaging` flow.\n * It handles the entire pipeline automatically:\n * 1. Gets a fresh SAML URL from FdiData\n * 2. Follows the SAML chain to get an authenticated eUnity session\n * 3. Extracts study parameters (accession, serviceInstance, patientId) from the viewer URL\n * 4. Calls AmfServicesServlet getStudyListMeta to initialize the session and get series info\n * 5. Downloads CLO image data for each series via CustomImageServlet\n *\n * Returns the download results including file paths, sizes, and any errors.\n */\nexport async function downloadImagingStudyDirect(\n  mychartRequest: MyChartRequest,\n  fdiContext: FdiContext,\n  studyName: string,\n  outputDir: string,\n  options?: DirectDownloadOptions,\n): Promise<DirectDownloadResult> {\n  const result: DirectDownloadResult = {\n    studyName,\n    images: [],\n    errors: [],\n  };\n\n  try {\n    // Step 1: Get SAML URL from FdiData\n    logger.debug('      Getting SAML URL for direct download...');\n    const viewerSession = await getImageViewerSamlUrl(mychartRequest, fdiContext);\n    if (!viewerSession?.samlUrl) {\n      result.errors.push('Could not get SAML URL from FdiData');\n      return result;\n    }\n\n    // Step 2: Follow SAML chain to eUnity\n    logger.debug('      Following SAML chain...');\n    const session = await followSamlChain(mychartRequest, viewerSession.samlUrl);\n    if (!session) {\n      result.errors.push('Failed to follow SAML chain to eUnity');\n      return result;\n    }\n    logger.debug(`      Got eUnity session (JSESSIONID: ${session.jsessionId?.substring(0, 12)}...)`);\n\n    // Step 3: Extract study params from viewer URL\n    const studyParams = parseEunityStudyParams(session.viewerUrl, session.viewerBody);\n    if (!studyParams) {\n      result.errors.push(`Could not extract study params from viewer URL: ${session.viewerUrl}`);\n      return result;\n    }\n    logger.debug(`      Study params: accession=${studyParams.accession}, serviceInstance=${studyParams.serviceInstance}`);\n\n    const baseUrl = new URL(session.viewerUrl).origin;\n    const skipFileWrite = options?.skipFileWrite ?? false;\n    if (!skipFileWrite) {\n      await fs.promises.mkdir(outputDir, { recursive: true });\n    }\n\n    // Step 4: Initialize AMF session (required before CustomImageServlet will serve images)\n    logger.debug('      Initializing AMF session...');\n    const amfResult = await initializeAmfSession(\n      session.cookieJar,\n      baseUrl,\n      studyParams.accession,\n      studyParams.serviceInstance,\n      studyParams.patientId,\n    );\n\n    if (!amfResult) {\n      result.errors.push('AMF session initialization failed');\n      return result;\n    }\n\n    const { amfBuf: amfResponse, effectiveServiceInstance } = amfResult;\n    if (effectiveServiceInstance !== studyParams.serviceInstance) {\n      logger.debug(`      Using effective serviceInstance: ${effectiveServiceInstance}`);\n      studyParams.serviceInstance = effectiveServiceInstance;\n    }\n\n    // Step 5: Parse series info from AMF response — structured AMF3 decode\n    // first, positional heuristic as loud fallback\n    const studyInfo = parseStudySeries(amfResponse, studyParams.accession);\n    if (!studyInfo || studyInfo.series.length === 0) {\n      result.errors.push('Could not parse series info from AMF response');\n      return result;\n    }\n    logger.debug(`      Found ${studyInfo.series.length} series, studyUID: ${studyInfo.studyUID.substring(0, 30)}...`);\n\n    // Build series list summary\n    const seriesMap = new Map<string, { description: string; count: number }>();\n    for (const s of studyInfo.series) {\n      const existing = seriesMap.get(s.seriesUID);\n      if (existing) {\n        existing.count++;\n      } else {\n        seriesMap.set(s.seriesUID, { description: s.seriesDescription, count: 1 });\n      }\n    }\n    result.seriesList = [...seriesMap.entries()].map(([seriesUID, { description, count }]) => ({\n      seriesUID,\n      description,\n      instanceCount: count,\n    }));\n\n    // Step 6: Download every image — each (seriesUID, instanceUID) pair is a\n    // separate image. Downloaded in parallel batches for speed (CT scans can\n    // have 700+ slices). Instances that answer CLOERROR are skipped, never\n    // returned as images: eUnity's instance list can carry pseudo-instances\n    // (the viewer's \"SeriesSelector\" entries) that hold no pixel data.\n    const concurrency = options?.concurrency ?? 5;\n    const safeName = studyName.replace(/[^a-zA-Z0-9_-]/g, '_').substring(0, 80);\n    const CLOCLHAAR_MAGIC = Buffer.from('CLOCLHAAR');\n    let completed = 0;\n\n    async function downloadOne(series: NonNullable<typeof studyInfo>['series'][0]): Promise<void> {\n      try {\n        const { data } = await downloadImage(session!.cookieJar, baseUrl, {\n          studyUID: studyInfo!.studyUID,\n          seriesUID: series.seriesUID,\n          objectUID: series.instanceUID,\n          serviceInstance: studyParams!.serviceInstance,\n          format: 'CLOWRAPPER',\n        });\n\n        completed++;\n        if (data.length < 256 || (data.length > 8 && data.toString('ascii', 0, 8) === 'CLOERROR')) {\n          if (completed % 50 === 0) {\n            logger.debug(`      [${completed} tried] Progress...`);\n          }\n          return;\n        }\n\n        const safeDesc = series.seriesDescription.replace(/[^a-zA-Z0-9_-]/g, '_');\n\n        if (skipFileWrite) {\n          const haarIdx = data.indexOf(CLOCLHAAR_MAGIC);\n          if (haarIdx < 0) return;\n          const wrapperMetadata = haarIdx > 0 ? data.subarray(0, haarIdx) : undefined;\n          const embeddedPixelData = data.subarray(haarIdx);\n          result.images.push({\n            filePath: '',\n            sizeBytes: embeddedPixelData.length,\n            seriesUID: series.seriesUID,\n            instanceUID: series.instanceUID,\n            seriesDescription: series.seriesDescription,\n            accessionNumber: studyParams!.accession,\n            format: 'CLHAAR',\n            pixelData: Buffer.from(embeddedPixelData),\n            ...(wrapperMetadata ? { wrapperData: Buffer.from(wrapperMetadata) } : {}),\n          });\n        } else {\n          const ext = isCloFormat(data) ? '.clo' : '.bin';\n          const fileName = `${safeName}_${safeDesc}_wrapper${ext}`;\n          const filePath = path.join(outputDir, fileName);\n          await fs.promises.writeFile(filePath, data);\n\n          const pixelLevels = await downloadProgressiveClopixel(session!.cookieJar, baseUrl, {\n            studyUID: studyInfo!.studyUID,\n            seriesUID: series.seriesUID,\n            objectUID: series.instanceUID,\n            serviceInstance: studyParams!.serviceInstance,\n          });\n\n          result.images.push({\n            filePath,\n            sizeBytes: data.length,\n            seriesUID: series.seriesUID,\n            instanceUID: series.instanceUID,\n            seriesDescription: series.seriesDescription,\n            accessionNumber: studyParams!.accession,\n            format: isCloFormat(data) ? 'CLHAAR' : 'UNKNOWN',\n          });\n\n          for (const pl of pixelLevels) {\n            const levelTag = pl.level.replace(/,/g, '-');\n            const pixelFileName = `${safeName}_${safeDesc}_pixel_L${levelTag}${isCloFormat(pl.data) ? '.clo' : '.bin'}`;\n            const pixelFilePath = path.join(outputDir, pixelFileName);\n            await fs.promises.writeFile(pixelFilePath, pl.data);\n\n            result.images.push({\n              filePath: pixelFilePath,\n              sizeBytes: pl.data.length,\n              seriesUID: series.seriesUID,\n              instanceUID: series.instanceUID,\n              seriesDescription: `${series.seriesDescription} (pixel L${levelTag})`,\n              accessionNumber: studyParams!.accession,\n              format: isCloFormat(pl.data) ? `CLHAAR_PIXEL_L${levelTag}` : 'UNKNOWN',\n            });\n          }\n        }\n\n        if (completed % 50 === 0) {\n          logger.debug(`      [${completed} tried] Downloaded ${(data.length / 1024).toFixed(0)} KB - ${series.seriesDescription}`);\n        }\n      } catch (err) {\n        completed++;\n        result.errors.push(`${series.seriesDescription}: ${detailedMessage(err)}`);\n      }\n    }\n\n    logger.debug(`      Downloading ${studyInfo.series.length} instances (concurrency: ${concurrency})...`);\n    for (let i = 0; i < studyInfo.series.length; i += concurrency) {\n      const batch = studyInfo.series.slice(i, i + concurrency);\n      await Promise.all(batch.map((s) => downloadOne(s)));\n    }\n    logger.debug(`      Downloaded ${result.images.length} images (${studyInfo.series.length} instances tried)`);\n    if (result.images.length === 0 && result.errors.length === 0) {\n      result.errors.push(\n        `No downloadable images: all ${studyInfo.series.length} instances returned empty or error responses from the image server.`,\n      );\n    }\n  } catch (err) {\n    result.errors.push(`Fatal: ${detailedMessage(err)}`);\n  }\n\n  // The parallel batches above complete in whatever order the image server\n  // answers, so this list is not even download order. Re-order each\n  // multi-slice series anatomically so every client hands back a stack that\n  // reads the way the scanner swept it.\n  result.images = sortImagesByPatientPosition(result.images);\n\n  return result;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Anatomical ordering for multi-slice imaging series (CT and MRI stacks).\n *\n * eUnity hands back one image per (series, instance) pair, and\n * `downloadImagingStudyDirect` fetches them in parallel batches — so the raw\n * image list arrives in whatever order the image server answered, which is not\n * even download order, let alone scan order. Each image's CLO wrapper carries\n * the DICOM patient position (`calibration.orientation.positionPatient`), so a\n * stack can be re-ordered the way the scanner swept it: pick the axis the\n * series actually travels along and sort by it.\n *\n * This used to live in the CLI's hand-written `get-imaging` handler, which\n * made the CLI the only client whose CT stacks read head-to-foot. It runs in\n * the shared download path now so every client gets a readable stack.\n */\n\nimport { inflateSync } from 'zlib';\nimport { Amf3Reader } from '../../../shared/amf3Reader';\n\nconst CLOHEADERZ01_MAGIC = Buffer.from('CLOHEADERZ01');\n\n/**\n * Below this much variation (in mm) across a series, the positions are noise\n * or absent, and the original order is kept.\n */\nconst MIN_AXIS_RANGE_MM = 0.1;\n\nexport interface PatientPosition {\n  x: number;\n  y: number;\n  z: number;\n}\n\n/**\n * Read `calibration.orientation.positionPatient` out of a CLO wrapper.\n * Returns null for anything that is not a parsable wrapper with a position —\n * a missing position must never break an image download.\n */\nexport function readPatientPosition(wrapperData: Uint8Array): PatientPosition | null {\n  try {\n    const buf = Buffer.isBuffer(wrapperData) ? wrapperData : Buffer.from(wrapperData);\n    if (buf.length < 16 || !buf.subarray(0, 12).equals(CLOHEADERZ01_MAGIC)) return null;\n    // Strict decode (shared/amf3Reader.ts — the repo's one AMF3 reader). A\n    // wrapper it can't parse throws, the catch below returns null, and the\n    // series keeps the server's order rather than being sorted on garbage.\n    const meta = new Amf3Reader(inflateSync(buf.subarray(16))).readValue() as\n      | { calibration?: { orientation?: { positionPatient?: Record<string, unknown> } } }\n      | undefined;\n    const pos = meta?.calibration?.orientation?.positionPatient;\n    if (!pos || typeof pos !== 'object') return null;\n    return {\n      x: Number(pos.position_x ?? 0),\n      y: Number(pos.position_y ?? 0),\n      z: Number(pos.position_z ?? 0),\n    };\n  } catch {\n    return null;\n  }\n}\n\n/**\n * Re-order each multi-slice series by patient position along its dominant\n * axis. Series stay grouped in first-appearance order; single-image series,\n * images without a wrapper, and series whose positions don't vary are left\n * exactly where they were. The sort is stable, so unparsable slices keep\n * their relative order.\n */\n// `wrapperData` is `| undefined` in the constraint so that callers holding a\n// possibly-undefined buffer still match — the body only ever tests it for\n// falsiness, and narrowing the constraint would drop the caller's own fields.\nexport function sortImagesByPatientPosition<T extends { seriesUID: string; wrapperData?: Uint8Array | undefined }>(\n  images: readonly T[],\n): T[] {\n  const groups = new Map<string, T[]>();\n  for (const image of images) {\n    let group = groups.get(image.seriesUID);\n    if (!group) groups.set(image.seriesUID, (group = []));\n    group.push(image);\n  }\n\n  const out: T[] = [];\n  for (const group of groups.values()) {\n    if (group.length > 1) {\n      const positioned = group.map((image) => ({\n        image,\n        // Missing/unparsable positions sort as the origin, like the rest of\n        // the CLO pipeline treats absent metadata.\n        pos: (image.wrapperData && readPatientPosition(image.wrapperData)) || { x: 0, y: 0, z: 0 },\n      }));\n      const range = (axis: keyof PatientPosition) => {\n        const values = positioned.map((p) => p.pos[axis]);\n        return Math.max(...values) - Math.min(...values);\n      };\n      const rx = range('x');\n      const ry = range('y');\n      const rz = range('z');\n      if (Math.max(rx, ry, rz) > MIN_AXIS_RANGE_MM) {\n        const axis: keyof PatientPosition = rx >= ry && rx >= rz ? 'x' : ry >= rz ? 'y' : 'z';\n        positioned.sort((a, b) => a.pos[axis] - b.pos[axis]);\n        out.push(...positioned.map((p) => p.image));\n        continue;\n      }\n    }\n    out.push(...group);\n  }\n  return out;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Minimal AMF3 (Action Message Format 3) binary reader.\n *\n * Decodes the raw AMF3 typed-object stream eUnity's AmfServicesServlet\n * returns (see docs/EUNITY_PROTOCOL.md — no AMF0 envelope, no Flex\n * RemotingMessage). This is the counterpart of the shared Amf3Writer\n * (shared/amf3Writer.ts), and exists so the getStudyListMeta response can\n * be parsed *structurally* — Study → Series → Image — instead of scanning the\n * binary for UID-shaped strings and guessing which is which. The guessing\n * broke on Mass General Brigham multi-slice studies, where a series'\n * frameOfReferenceUID was mistaken for the series UID and every download\n * came back CLOERROR (\"Failed to find image in any supplied providers\").\n *\n * Implements the full AMF3 value grammar (spec §3): reference tables for\n * strings, complex objects and traits; sealed + dynamic objects; dates,\n * arrays, byte arrays, vectors and dictionaries. Externalizable classes\n * carry custom binary bodies that cannot be skipped generically, so only the\n * ones eUnity actually sends are supported (flex.messaging.io.ArrayCollection\n * and ObjectProxy wrap a single AMF3 value; StudyListRequest and\n * StudyListResponse have their own layouts, below); an unknown externalizable\n * class throws, and callers fall back to their own recovery path.\n *\n * This is the repo's ONLY AMF3 reader, and every caller decodes strictly —\n * there is no lenient mode. Resilience belongs at the call site, where each\n * caller knows what a failed decode should cost:\n *\n * - getStudyListMeta responses (imagingDirectDownload.ts): a throw falls back\n *   to the heuristic UID scan. A misdecoded UID must surface as an error,\n *   never as a plausible-but-wrong download request.\n * - CLO wrapper metadata (clo-image-parser/clo_to_bitmap.ts parseWrapper and\n *   sortByPatientPosition.ts): a throw falls back to text-based photometric\n *   detection / the server's image order. The image still renders; only\n *   windowing or slice order degrades, and the fallback logs itself.\n *\n * The writer test (__tests__/imagingDirectDownload.unit.test.ts) also decodes\n * frames with this class. What keeps that from being an encoder checked\n * against its own mirror image is the pinned GOLDEN_FRAME_HEX fixture there:\n * the exact bytes of a frame a real eUnity server accepted. A shared\n * misreading of the AMF3 spec between writer and reader cannot survive a\n * byte-for-byte comparison against a server-verified capture.\n */\n\n/** A decoded AMF3 typed object. Sealed and dynamic members become plain properties. */\nexport interface Amf3Object {\n  /** The AMF3 class name ('' for anonymous objects). */\n  __class: string;\n  [member: string]: unknown;\n}\n\n/** A decoded externalizable object (e.g. ArrayCollection wrapping an array). */\nexport interface Amf3Externalizable {\n  __class: string;\n  /** Distinguishes the wrapper from a sealed object that happens to have a `value` member. */\n  __externalizable: true;\n  /** The value produced by the class's registered body reader. */\n  value: unknown;\n}\n\ninterface Traits {\n  className: string;\n  externalizable: boolean;\n  dynamic: boolean;\n  members: string[];\n}\n\n/**\n * Body readers for externalizable classes. Each consumes the class's custom\n * serialization from the stream and returns the decoded value.\n */\nconst EXTERNALIZABLE_READERS: Record<string, (r: Amf3Reader) => unknown> = {\n  // ArrayCollection and ObjectProxy both externalize as exactly one wrapped AMF3 value.\n  'flex.messaging.io.ArrayCollection': (r) => r.readValue(),\n  'flex.messaging.io.ObjectProxy': (r) => r.readValue(),\n  // StudyListRequest externalizes as: a 4-byte big-endian format header\n  // (value 2), a method-qualifier string (\"getStudyList\"), a version string\n  // (\"1.2.0\"), then the payload object. Mirrors the layout\n  // buildGetStudyListMetaRequest emits (imagingDirectDownload.ts); the writer\n  // test decodes its frames back through this reader.\n  'com.clientoutlook.web.metaservices.StudyListRequest': (r) => ({\n    header: r.readBE32(),\n    qualifier: r.readValue(),\n    version: r.readValue(),\n    payload: r.readValue(),\n  }),\n  // StudyListResponse externalizes as: a 4-byte big-endian format header\n  // (observed value 2, matching the StudyListRequest the writer builds), a\n  // DataRequestStatus value, a version string (\"1.0.0\"), a second 4-byte\n  // big-endian word (opaque; observed 0xEB), then the payload object whose\n  // members include studyList/relevantStudyList. Observed on Mass General\n  // Brigham's eUnity (getStudyListMeta). A response that deviates throws,\n  // and the caller falls back to the heuristic UID scan.\n  'com.clientoutlook.web.metaservices.StudyListResponse': (r) => ({\n    header: r.readBE32(),\n    status: r.readValue(),\n    version: r.readValue(),\n    flags: r.readBE32(),\n    payload: r.readValue(),\n  }),\n};\n\nexport class Amf3Reader {\n  private pos = 0;\n  private readonly strings: string[] = [];\n  private readonly objects: unknown[] = [];\n  private readonly traitsTable: Traits[] = [];\n\n  constructor(private readonly buf: Buffer) {}\n\n  /** Bytes consumed so far. */\n  get offset(): number {\n    return this.pos;\n  }\n\n  private byte(): number {\n    if (this.pos >= this.buf.length) throw new Error('AMF3: unexpected end of buffer');\n    return this.buf[this.pos++]!; // bounds-checked above; noUncheckedIndexedAccess\n  }\n\n  /** Variable-length 29-bit unsigned integer (1–4 bytes; the 4th byte contributes 8 bits). */\n  private readU29(): number {\n    let value = 0;\n    for (let i = 0; i < 3; i++) {\n      const b = this.byte();\n      if ((b & 0x80) === 0) return (value << 7) | b;\n      value = (value << 7) | (b & 0x7f);\n    }\n    return (value << 8) | this.byte();\n  }\n\n  /** Raw 4-byte big-endian word (used inside externalizable bodies). */\n  readBE32(): number {\n    if (this.pos + 4 > this.buf.length) throw new Error('AMF3: unexpected end of buffer');\n    const v = this.buf.readUInt32BE(this.pos);\n    this.pos += 4;\n    return v;\n  }\n\n  private readDoubleValue(): number {\n    if (this.pos + 8 > this.buf.length) throw new Error('AMF3: unexpected end of buffer');\n    const v = this.buf.readDoubleBE(this.pos);\n    this.pos += 8;\n    return v;\n  }\n\n  /** String value without the 0x06 marker (used for member/class names too). */\n  readStringValue(): string {\n    const u29 = this.readU29();\n    if ((u29 & 1) === 0) {\n      const ref = u29 >> 1;\n      if (ref >= this.strings.length) throw new Error(`AMF3: string reference ${ref} out of range`);\n      return this.strings[ref]!; // ref bounds-checked above\n    }\n    const len = u29 >> 1;\n    if (this.pos + len > this.buf.length) throw new Error('AMF3: unexpected end of buffer');\n    const s = this.buf.toString('utf-8', this.pos, this.pos + len);\n    this.pos += len;\n    // The empty string is never added to the reference table (spec §1.3.2).\n    if (len > 0) this.strings.push(s);\n    return s;\n  }\n\n  /** Read one complete AMF3 value from the current position. */\n  readValue(): unknown {\n    const marker = this.byte();\n    switch (marker) {\n      case 0x00: return undefined;\n      case 0x01: return null;\n      case 0x02: return false;\n      case 0x03: return true;\n      case 0x04: {\n        // U29 sign-extended from 29 bits\n        const u = this.readU29();\n        return u & 0x10000000 ? u - 0x20000000 : u;\n      }\n      case 0x05: return this.readDoubleValue();\n      case 0x06: return this.readStringValue();\n      case 0x07: // xml-doc — string-shaped, but referenced via the object table\n      case 0x0b: { // xml\n        const u29 = this.readU29();\n        if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n        const len = u29 >> 1;\n        const s = this.buf.toString('utf-8', this.pos, this.pos + len);\n        this.pos += len;\n        this.objects.push(s);\n        return s;\n      }\n      case 0x08: { // date\n        const u29 = this.readU29();\n        if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n        const d = new Date(this.readDoubleValue());\n        this.objects.push(d);\n        return d;\n      }\n      case 0x09: return this.readArray();\n      case 0x0a: return this.readObject();\n      case 0x0c: { // byte array\n        const u29 = this.readU29();\n        if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n        const len = u29 >> 1;\n        if (this.pos + len > this.buf.length) throw new Error('AMF3: unexpected end of buffer');\n        const bytes = Buffer.from(this.buf.subarray(this.pos, this.pos + len));\n        this.pos += len;\n        this.objects.push(bytes);\n        return bytes;\n      }\n      case 0x0d: // vector<int>\n      case 0x0e: { // vector<uint>\n        const u29 = this.readU29();\n        if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n        const count = u29 >> 1;\n        this.byte(); // fixed-length flag\n        const items: number[] = [];\n        this.objects.push(items);\n        for (let i = 0; i < count; i++) {\n          const v = this.buf.readUInt32BE(this.pos);\n          this.pos += 4;\n          items.push(marker === 0x0d && v > 0x7fffffff ? v - 0x100000000 : v);\n        }\n        return items;\n      }\n      case 0x0f: { // vector<double>\n        const u29 = this.readU29();\n        if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n        const count = u29 >> 1;\n        this.byte(); // fixed-length flag\n        const items: number[] = [];\n        this.objects.push(items);\n        for (let i = 0; i < count; i++) items.push(this.readDoubleValue());\n        return items;\n      }\n      case 0x10: { // vector<object>\n        const u29 = this.readU29();\n        if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n        const count = u29 >> 1;\n        this.byte(); // fixed-length flag\n        this.readStringValue(); // object type name\n        const items: unknown[] = [];\n        this.objects.push(items);\n        for (let i = 0; i < count; i++) items.push(this.readValue());\n        return items;\n      }\n      case 0x11: { // dictionary\n        const u29 = this.readU29();\n        if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n        const count = u29 >> 1;\n        this.byte(); // weak-keys flag\n        const dict = new Map<unknown, unknown>();\n        this.objects.push(dict);\n        for (let i = 0; i < count; i++) {\n          const key = this.readValue();\n          dict.set(key, this.readValue());\n        }\n        return dict;\n      }\n      default:\n        throw new Error(`AMF3: unsupported marker 0x${marker.toString(16)} at offset ${this.pos - 1}`);\n    }\n  }\n\n  private readArray(): unknown {\n    const u29 = this.readU29();\n    if ((u29 & 1) === 0) return this.objects[u29 >> 1];\n    const denseCount = u29 >> 1;\n    const arr: unknown[] & { associative?: Record<string, unknown> } = [];\n    // Added to the reference table before contents are read (supports cycles).\n    this.objects.push(arr);\n    // Associative portion: (name, value) pairs terminated by the empty string.\n    for (;;) {\n      const key = this.readStringValue();\n      if (key === '') break;\n      (arr.associative ??= {})[key] = this.readValue();\n    }\n    for (let i = 0; i < denseCount; i++) arr.push(this.readValue());\n    return arr;\n  }\n\n  private readObject(): unknown {\n    const u29 = this.readU29();\n    if ((u29 & 1) === 0) {\n      const ref = u29 >> 1;\n      if (ref >= this.objects.length) throw new Error(`AMF3: object reference ${ref} out of range`);\n      return this.objects[ref];\n    }\n\n    let traits: Traits;\n    if ((u29 & 2) === 0) {\n      const ref = u29 >> 2;\n      if (ref >= this.traitsTable.length) throw new Error(`AMF3: traits reference ${ref} out of range`);\n      traits = this.traitsTable[ref]!; // ref bounds-checked above\n    } else {\n      traits = {\n        externalizable: (u29 & 4) !== 0,\n        dynamic: (u29 & 8) !== 0,\n        className: this.readStringValue(),\n        members: [],\n      };\n      this.traitsTable.push(traits);\n      if (!traits.externalizable) {\n        const memberCount = u29 >> 4;\n        for (let i = 0; i < memberCount; i++) traits.members.push(this.readStringValue());\n      }\n    }\n\n    if (traits.externalizable) {\n      const reader = EXTERNALIZABLE_READERS[traits.className];\n      if (!reader) {\n        throw new Error(`AMF3: no reader registered for externalizable class ${traits.className}`);\n      }\n      const ext: Amf3Externalizable = { __class: traits.className, __externalizable: true, value: undefined };\n      this.objects.push(ext);\n      ext.value = reader(this);\n      return ext;\n    }\n\n    const obj: Amf3Object = { __class: traits.className };\n    // Added to the reference table before members are read (supports cycles).\n    this.objects.push(obj);\n    for (const member of traits.members) obj[member] = this.readValue();\n    if (traits.dynamic) {\n      for (;;) {\n        const key = this.readStringValue();\n        if (key === '') break;\n        obj[key] = this.readValue();\n      }\n    }\n    return obj;\n  }\n}\n\n/** Decode a buffer containing exactly one AMF3 value (the eUnity response shape). */\nexport function decodeAmf3(buf: Buffer): unknown {\n  return new Amf3Reader(buf).readValue();\n}\n\n/** True for values produced from externalizable classes (ArrayCollection etc.). */\nexport function isAmf3Externalizable(v: unknown): v is Amf3Externalizable {\n  return typeof v === 'object' && v !== null &&\n    (v as { __externalizable?: unknown }).__externalizable === true;\n}\n\n/**\n * Unwrap ArrayCollection/ObjectProxy-style externalizable wrappers so callers\n * can treat `series`/`images` members uniformly as arrays.\n */\nexport function unwrapAmf3(v: unknown): unknown {\n  return isAmf3Externalizable(v) ? v.value : v;\n}\n\n/**\n * Depth-first walk over a decoded AMF3 tree, yielding every typed object with\n * the given class name. Reference-shared objects are visited once.\n */\nexport function collectAmf3Objects(root: unknown, className: string): Amf3Object[] {\n  const found: Amf3Object[] = [];\n  const seen = new Set<object>();\n  const visit = (v: unknown): void => {\n    if (typeof v !== 'object' || v === null) return;\n    if (seen.has(v)) return;\n    seen.add(v);\n    if (Array.isArray(v)) {\n      for (const item of v) visit(item);\n      return;\n    }\n    if (v instanceof Map) {\n      for (const [k, val] of v) {\n        visit(k);\n        visit(val);\n      }\n      return;\n    }\n    if (Buffer.isBuffer(v) || v instanceof Date) return;\n    const obj = v as Record<string, unknown>;\n    if (obj.__class === className) found.push(obj as Amf3Object);\n    for (const key of Object.keys(obj)) {\n      if (key === '__class') continue;\n      visit(obj[key]);\n    }\n  };\n  visit(root);\n  return found;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The repo's only AMF3 (Action Message Format 3) writer.\n *\n * Two very different things encode AMF3 here, and both must agree byte-for-byte\n * with what a real ClientOutlook/eUnity server accepts:\n *\n * - the scraper, building `AmfServicesServlet` request frames\n *   (`scrapers/myChart/eunity/imagingDirectDownload.ts`)\n * - fake-mychart, answering those frames and synthesizing the CLO wrappers its\n *   image servlet serves — plus `generate_clo.ts`, which writes the committed\n *   `.clo` fixtures fake-mychart serves for single-wrapper series\n *\n * They used to be three separate copies of this class, and they drifted: the\n * fixture writer emitted no string reference table (so a reader bug in\n * reference handling could not be caught by any fixture) and named the wrapper\n * root class `ImageDescription` where real servers send\n * `com.clientoutlook.data.ImageDescription`. Nothing failed, because every\n * reader in the repo matches on member names and never on the class name.\n *\n * The counterpart reader is `amf3Reader.ts` beside this file, shared by the\n * eUnity client and the CLO decoder. That the two are not\n * mirror images of one shared misreading is pinned by `GOLDEN_FRAME_HEX` in\n * `scrapers/myChart/eunity/__tests__/imagingDirectDownload.unit.test.ts`: the\n * exact bytes of a request frame a real eUnity server accepted.\n *\n * Two writing styles are supported, because the callers genuinely differ:\n *\n * - **callback style** (`writeTypedObject(className, members, [w => …])`) —\n *   exact control over every marker, which is what request frames and faithful\n *   server responses need (integer vs double is observable on the wire).\n * - **value style** (`writeValue(literal)`) — a plain JS object tree using the\n *   `_class` / `_externalizable` / `_value` conventions, for fixture-shaped\n *   code where readability beats marker-level control. Wrap a number in\n *   {@link amf3Double} where the double marker is load-bearing.\n */\n\n/** A number that must go out as an AMF3 double, even when it is integral. */\nexport interface Amf3Double {\n  readonly __amf3Double: number;\n}\n\n/** Force the double marker (0x05) for a value {@link Amf3Writer.writeValue} would otherwise write as an integer. */\nexport function amf3Double(value: number): Amf3Double {\n  return { __amf3Double: value };\n}\n\nfunction isAmf3Double(v: unknown): v is Amf3Double {\n  return typeof v === 'object' && v !== null && typeof (v as Amf3Double).__amf3Double === 'number';\n}\n\n/** An object literal for {@link Amf3Writer.writeValue}. `_class` names the AMF3 class; every other key is a sealed member. */\nexport interface Amf3ObjectLiteral {\n  /** AMF3 class name ('' or absent for an anonymous object). */\n  _class?: string;\n  /** Marks an externalizable class whose body is exactly one wrapped value (ArrayCollection, ObjectProxy). */\n  _externalizable?: boolean;\n  /** The wrapped value, for `_externalizable` literals. */\n  _value?: Amf3Value;\n  [member: string]: Amf3Value | undefined;\n}\n\n/** Anything {@link Amf3Writer.writeValue} can encode. */\nexport type Amf3Value =\n  | null\n  | undefined\n  | boolean\n  | number\n  | string\n  | Buffer\n  | Amf3Double\n  | Amf3Value[]\n  | Amf3ObjectLiteral;\n\n/** An externalizable ArrayCollection literal — how eUnity wraps every object list. */\nexport function amf3ArrayCollection(items: Amf3Value[]): Amf3ObjectLiteral {\n  return { _class: 'flex.messaging.io.ArrayCollection', _externalizable: true, _value: items };\n}\n\nexport class Amf3Writer {\n  private readonly buf: number[] = [];\n  private readonly stringTable: string[] = [];\n\n  /** Variable-length 29-bit unsigned integer (1–4 bytes; the 4th byte contributes 8 bits). */\n  private writeU29(value: number) {\n    if (value < 0x80) {\n      this.buf.push(value);\n    } else if (value < 0x4000) {\n      this.buf.push(((value >> 7) & 0x7f) | 0x80, value & 0x7f);\n    } else if (value < 0x200000) {\n      this.buf.push(((value >> 14) & 0x7f) | 0x80, ((value >> 7) & 0x7f) | 0x80, value & 0x7f);\n    } else {\n      this.buf.push(\n        ((value >> 22) & 0x7f) | 0x80,\n        ((value >> 15) & 0x7f) | 0x80,\n        ((value >> 8) & 0x7f) | 0x80,\n        value & 0xff,\n      );\n    }\n  }\n\n  writeNull() { this.buf.push(0x01); }\n  writeFalse() { this.buf.push(0x02); }\n  writeTrue() { this.buf.push(0x03); }\n\n  /**\n   * AMF3 integer. Negative values go out as their 29-bit two's complement\n   * (-1 → 0x1FFFFFFF), which is how real wrappers carry the ImagePhaseInfo\n   * \"undefined\" sentinels; a spec-correct reader sign-extends them back.\n   */\n  writeInteger(value: number) { this.buf.push(0x04); this.writeU29(value & 0x1fffffff); }\n\n  writeDouble(value: number) {\n    this.buf.push(0x05);\n    const b = Buffer.alloc(8);\n    b.writeDoubleBE(value);\n    this.buf.push(...b);\n  }\n\n  writeString(str: string) { this.buf.push(0x06); this.writeStringValue(str); }\n\n  /** AMF3 byte array — how real wrappers carry a VOI LUT table. */\n  writeByteArray(bytes: Buffer) {\n    this.buf.push(0x0c);\n    this.writeU29((bytes.length << 1) | 1);\n    for (const b of bytes) this.buf.push(b);\n  }\n\n  /**\n   * String value without the 0x06 marker; maintains the reference table.\n   * Class names and member names go through here too, exactly as the reader\n   * pushes them onto its own table — the two orders must stay in step.\n   */\n  private writeStringValue(str: string) {\n    if (str === '') {\n      // The empty string is never a reference (spec §1.3.2): U29 = 1, length 0.\n      this.writeU29(1);\n      return;\n    }\n    const ref = this.stringTable.indexOf(str);\n    if (ref >= 0) {\n      this.writeU29(ref << 1); // reference: index << 1, inline bit clear\n      return;\n    }\n    this.stringTable.push(str);\n    const bytes = Buffer.from(str, 'utf-8');\n    this.writeU29((bytes.length << 1) | 1);\n    this.buf.push(...bytes);\n  }\n\n  /** Raw 4-byte big-endian word (externalizable bodies such as StudyListRequest use these). */\n  writeBE32(value: number) {\n    this.buf.push((value >> 24) & 0xff, (value >> 16) & 0xff, (value >> 8) & 0xff, value & 0xff);\n  }\n\n  /**\n   * Sealed typed object: class name, member names, then member values in order.\n   * Traits bits: 0x03 | (memberCount << 4).\n   */\n  writeTypedObject(className: string, members: string[], values: ((w: Amf3Writer) => void)[]) {\n    this.buf.push(0x0a);\n    this.writeU29(0x03 | (members.length << 4));\n    this.writeStringValue(className);\n    for (const name of members) this.writeStringValue(name);\n    for (const value of values) value(this);\n  }\n\n  /**\n   * Dynamic object: sealed members followed by key/value pairs, terminated by\n   * the empty string. Traits bits: 0x0B (inline traits + dynamic) | (sealedCount << 4).\n   */\n  writeDynamicObject(\n    className: string,\n    sealedMembers: string[],\n    sealedValues: ((w: Amf3Writer) => void)[],\n    dynamicPairs: [string, (w: Amf3Writer) => void][],\n  ) {\n    this.buf.push(0x0a);\n    this.writeU29(0x0b | (sealedMembers.length << 4));\n    this.writeStringValue(className);\n    for (const name of sealedMembers) this.writeStringValue(name);\n    for (const value of sealedValues) value(this);\n    for (const [key, value] of dynamicPairs) {\n      this.writeStringValue(key);\n      value(this);\n    }\n    this.writeStringValue('');\n  }\n\n  /**\n   * Externalizable object: class name followed by a custom binary body.\n   * Traits bits: 0x07 (inline object + inline traits + externalizable).\n   */\n  writeExternalizableObject(className: string, body: (w: Amf3Writer) => void) {\n    this.buf.push(0x0a);\n    this.writeU29(0x07);\n    this.writeStringValue(className);\n    body(this);\n  }\n\n  /** Dense array with an empty associative section. */\n  writeArray(items: ((w: Amf3Writer) => void)[]) {\n    this.buf.push(0x09);\n    this.writeU29((items.length << 1) | 1);\n    this.writeStringValue('');\n    for (const item of items) item(this);\n  }\n\n  /** ArrayCollection — how eUnity wraps every object list. */\n  writeArrayCollection(items: ((w: Amf3Writer) => void)[]) {\n    this.writeExternalizableObject('flex.messaging.io.ArrayCollection', (w) => w.writeArray(items));\n  }\n\n  /**\n   * Write a plain JS value tree (the value style described at the top of this\n   * file). Integral numbers in AMF3 integer range take the integer marker —\n   * wrap them with {@link amf3Double} where the double marker matters.\n   */\n  writeValue(value: Amf3Value) {\n    if (value === null || value === undefined) {\n      this.writeNull();\n    } else if (Buffer.isBuffer(value)) {\n      this.writeByteArray(value);\n    } else if (typeof value === 'boolean') {\n      if (value) this.writeTrue();\n      else this.writeFalse();\n    } else if (isAmf3Double(value)) {\n      this.writeDouble(value.__amf3Double);\n    } else if (typeof value === 'number') {\n      if (Number.isInteger(value) && value >= -0x10000000 && value < 0x20000000) this.writeInteger(value);\n      else this.writeDouble(value);\n    } else if (typeof value === 'string') {\n      this.writeString(value);\n    } else if (Array.isArray(value)) {\n      this.writeArray(value.map((item) => (w: Amf3Writer) => w.writeValue(item)));\n    } else {\n      this.writeObjectLiteral(value);\n    }\n  }\n\n  private writeObjectLiteral(obj: Amf3ObjectLiteral) {\n    const className = obj._class ?? '';\n    if (obj._externalizable) {\n      // The only externalizable body shape real CLO wrappers use: exactly one\n      // wrapped AMF3 value (ArrayCollection, ObjectProxy).\n      this.writeExternalizableObject(className, (w) => w.writeValue(obj._value));\n      return;\n    }\n    const members = Object.keys(obj).filter((key) => key !== '_class');\n    this.writeTypedObject(\n      className,\n      members,\n      members.map((key) => (w: Amf3Writer) => w.writeValue(obj[key])),\n    );\n  }\n\n  toBuffer(): Buffer {\n    return Buffer.from(this.buf);\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `image_id` token and the payload shape a downloaded study comes back as.\n *\n * Both are part of the public surface — clients round-trip the token and do\n * their own CLO→image encoding on the payload — so they live beside the\n * registry rather than inside the imaging scraper.\n */\n\nimport { Base64 } from 'js-base64';\n\nimport type { FdiContext } from '../../../scrapers/myChart/eunity/imagingViewer';\n\n/**\n * Pack an {@link FdiContext} into one opaque `image_id` token.\n *\n * A single copy-paste value is easier for a model to round-trip from\n * get_imaging_results into download_imaging_study than two separate fields,\n * and base64url avoids delimiter collisions — `fdi`/`ord` are arbitrary\n * URL-encoded tokens that can contain a colon or comma.\n *\n * `js-base64` because Hermes has neither `Buffer` nor `btoa`; `encodeURI` is\n * its unpadded base64url, byte-for-byte Node's `toString('base64url')`.\n */\nexport function encodeImageId(fdiContext: FdiContext): string {\n  return Base64.encodeURI(JSON.stringify({ fdi: fdiContext.fdi, ord: fdiContext.ord }));\n}\n\n/**\n * Inverse of {@link encodeImageId}. Throws if the token is malformed.\n *\n * `Base64.decode` checks no alphabet, and the shape check below is what\n * catches a bad token — corruption inside the alphabet decodes to garbage.\n */\nexport function decodeImageId(imageId: string): FdiContext {\n  let parsed: unknown;\n  try {\n    parsed = JSON.parse(Base64.decode(imageId));\n  } catch {\n    throw new Error('Invalid image_id — expected the image_id value from a get_imaging_results entry.');\n  }\n  if (\n    !parsed ||\n    typeof parsed !== 'object' ||\n    typeof (parsed as FdiContext).fdi !== 'string' ||\n    typeof (parsed as FdiContext).ord !== 'string'\n  ) {\n    throw new Error('Invalid image_id — expected the image_id value from a get_imaging_results entry.');\n  }\n  return { fdi: (parsed as FdiContext).fdi, ord: (parsed as FdiContext).ord };\n}\n\n/** The raw, still-encoded images of one study. Clients encode them themselves. */\nexport interface StudyImagePayload {\n  studyName: string;\n  /** How many image instances the study contains in total. */\n  totalImages: number;\n  images: Array<{\n    index: number;\n    seriesUID: string;\n    seriesDescription: string;\n    /** Raw CLO pixel data. Convert with the client's own CLO→image path. */\n    pixelData?: Uint8Array;\n    /** Raw CLO wrapper (calibration/window metadata) for the same image. */\n    wrapperData?: Uint8Array;\n  }>;\n  errors: string[];\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** The `Results` group — labs, imaging reports, and the pictures behind them. */\n\nimport {\n  fetchLabResultsRaw,\n  fetchImagingResultsRaw,\n  getImagingResults,\n  labResultsProcessor,\n  imagingResultsProcessor,\n} from '../../../../scrapers/myChart/chart/labs/labResults';\nimport { downloadImagingStudyDirect } from '../../../../scrapers/myChart/eunity/imagingDirectDownload';\nimport type { FdiContext } from '../../../../scrapers/myChart/eunity/imagingViewer';\nimport { num, optStr } from '../args';\nimport { decodeImageId, type StudyImagePayload } from '../imaging';\nimport type { CapabilityImpl } from '../types';\n\nexport const RESULT_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_lab_results',\n    title: 'Lab results',\n    description: 'Lab results with reference ranges and prior values for trending.',\n    kind: 'read',\n    group: 'Results',\n    params: [],\n    run: (request) => fetchLabResultsRaw(request),\n    processor: labResultsProcessor,\n  },\n  {\n    id: 'get_imaging_results',\n    title: 'Imaging results',\n    description:\n      'Imaging result metadata (X-ray, MRI, CT, ultrasound, …) with reports. Entries that have viewable pictures carry an `image_id` — pass that to download_imaging_study to get the actual images.',\n    kind: 'read',\n    group: 'Results',\n    params: [],\n    // The processor mints `image_id` (one opaque token for the { fdi, ord }\n    // pair — a single copy-paste value is far easier for a model to hand\n    // back than two fields it can mix up) and `index`, the fallback handle.\n    run: (request) => fetchImagingResultsRaw(request),\n    processor: imagingResultsProcessor,\n  },\n  {\n    id: 'download_imaging_study',\n    aliases: ['get_xray_image'],\n    title: 'Download imaging study',\n    description:\n      'Download every picture in one imaging study. Identify the study with the `image_id` from get_imaging_results (or its 0-based `imaging_index`). Images are downloaded and decoded on the user’s own device.',\n    kind: 'read',\n    group: 'Results',\n    rendersMedia: true,\n    params: [\n      { name: 'image_id', type: 'string', description: 'The `image_id` from the chosen get_imaging_results entry. Copy it verbatim.' },\n      { name: 'imaging_index', type: 'number', description: 'Alternative to image_id: the 0-based index of the study in get_imaging_results.', min: 0 },\n      { name: 'study_name', type: 'string', description: 'Human-readable study name used to label the output. Optional.' },\n    ],\n    run: async (request, args): Promise<StudyImagePayload> => {\n      let fdiContext: FdiContext;\n      let studyName = optStr(args, 'study_name');\n\n      const imageId = optStr(args, 'image_id');\n      if (imageId) {\n        fdiContext = decodeImageId(imageId);\n      } else if (args.imaging_index !== undefined && args.imaging_index !== null && args.imaging_index !== '') {\n        const index = num(args, 'imaging_index', -1);\n        if (!Number.isInteger(index) || index < 0) {\n          throw new Error('imaging_index must be a non-negative integer from get_imaging_results.');\n        }\n        const { orders } = await getImagingResults(request);\n        const study = orders[index];\n        if (!study) throw new Error(`No imaging result at index ${index} (this account has ${orders.length}).`);\n        if (!study.image_id) throw new Error(`The imaging result at index ${index} has no viewable images.`);\n        fdiContext = decodeImageId(study.image_id);\n        studyName = studyName ?? study.orderName ?? undefined;\n      } else {\n        throw new Error('Pass either image_id (from get_imaging_results) or imaging_index.');\n      }\n\n      const result = await downloadImagingStudyDirect(request, fdiContext, studyName ?? 'study', '', {\n        skipFileWrite: true,\n      });\n\n      return {\n        studyName: result.studyName,\n        totalImages: result.images.length,\n        images: result.images.map((img, index) => ({\n          index,\n          seriesUID: img.seriesUID,\n          seriesDescription: img.seriesDescription,\n          // An image with no pixel or wrapper buffer omits the key rather than\n          // reporting it as present-and-undefined.\n          ...(img.pixelData !== undefined ? { pixelData: img.pixelData } : {}),\n          ...(img.wrapperData !== undefined ? { wrapperData: img.wrapperData } : {}),\n        })),\n        errors: result.errors,\n      };\n    },\n  },\n\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Conversation thread processor. Field decisions:\n * docs/processor-layer-proposal.md, `get_message_thread`.\n *\n * The scraper records `GetConversationDetails` and then every\n * `GetConversationMessages` page it walked backwards through. This merges the\n * pages into one list ascending by `deliveryInstantISO`, de-duplicated by\n * `wmgId`, and resolves names through the maps `GetConversationDetails`\n * carries (the pages only carry `userOverrideNames`).\n *\n * `truncated` is derived from the LAST page the scraper recorded: the paging\n * loop only stops on a non-empty page that still says `hasMoreMessages` when\n * it hit its page cap. A page that is empty, `null`, or says there is nothing\n * older is the end of the thread, not a truncation.\n *\n * A literal JSON `null` from `GetConversationDetails` is MyChart saying it\n * has no such conversation on the active patient record; it passes through\n * as `null` in every mode (rule 7).\n */\n\nimport { findRequest, findRequests, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { bool, boolOrNull, list, num, rec, textOrNull } from '../../processors/read';\nimport type { GetConversationDetails, GetConversationMessages } from './mychart.types';\nimport type { ConversationThreadConcise, ConversationThreadStandard } from './standardized.types';\n\nexport type { ConversationThreadConcise, ConversationThreadStandard } from './standardized.types';\nimport {\n  messageConcise,\n  messageDirectory,\n  messageStandard,\n  type MessageStandard,\n} from './conversations.processor';\n\nexport const conversationThreadProcessor: Processor<ConversationThreadStandard | null> = {\n  standard(raw: RawResponse): ConversationThreadStandard | null {\n    const detailsRequest = findRequest(raw, 'GetConversationDetails');\n    const detailsBody = detailsRequest?.body;\n    if (detailsBody === null || typeof detailsBody !== 'object' || Array.isArray(detailsBody)) return null;\n    const details = rec<GetConversationDetails>(detailsBody);\n    const pages = findRequests(raw, 'GetConversationMessages');\n\n    const directory = messageDirectory(details, ...pages.map((p) => p.body));\n\n    const seen = new Set<string>();\n    const merged: MessageStandard[] = [];\n    for (const source of [details, ...pages.map((p) => rec<GetConversationMessages>(p.body))]) {\n      for (const m of list(source.messages)) {\n        const parsed = messageStandard(m, directory);\n        const key = parsed.wmgId ?? '';\n        if (key && seen.has(key)) continue;\n        if (key) seen.add(key);\n        merged.push(parsed);\n      }\n    }\n    merged.sort((a, b) => (a.deliveryInstantISO ?? '').localeCompare(b.deliveryInstantISO ?? ''));\n\n    const last = pages.length > 0 ? pages[pages.length - 1]!.body : details;\n    const lastPage = rec<GetConversationMessages>(last);\n    const truncated =\n      last !== null && typeof last === 'object' && bool(lastPage.hasMoreMessages) && list(lastPage.messages).length > 0;\n\n    const replyFlags = rec(details.replyFlags);\n    return {\n      hthId: textOrNull(details.hthId),\n      subject: textOrNull(details.subject),\n      audience: list(details.audience).map((a) => ({ name: textOrNull(rec(a).name) })),\n      totalMessages: num(details.totalMessages),\n      numUnread: num(details.numUnread),\n      truncated,\n      messages: merged,\n      replyFlags: { canReply: boolOrNull(replyFlags.canReply), cannotReplyReason: num(replyFlags.cannotReplyReason) },\n      hasPreviouslyViewed: boolOrNull(details.hasPreviouslyViewed),\n      hasAttachments: boolOrNull(details.hasAttachments),\n      hasUrgentMsgs: boolOrNull(details.hasUrgentMsgs),\n      hasTasks: boolOrNull(details.hasTasks),\n      messageType: textOrNull(details.messageType),\n      previewText: textOrNull(details.previewText),\n    };\n  },\n\n  concise(standard): ConversationThreadConcise | null {\n    if (standard === null) return null;\n    return {\n      hthId: standard.hthId,\n      subject: standard.subject,\n      audience: standard.audience,\n      totalMessages: standard.totalMessages,\n      numUnread: standard.numUnread,\n      truncated: standard.truncated,\n      replyFlags: standard.replyFlags,\n      messages: standard.messages.map(messageConcise),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * One conversation, every message in it.\n *\n * `GetConversationMessages` answered 500 `{\"Message\":\"An error has occurred.\"}`\n * on every instance anyone checked, which looked exactly like a dead endpoint.\n * It wasn't: **the read endpoints key the thread on `id`**, and we were sending\n * `conversationId`. Parameter names here are per-endpoint, not per-area — the\n * *mutating* siblings (`SendReply`, `DeleteConversation`) really do take\n * `conversationId`, which is where the guess came from. With `id` both read\n * endpoints answer 200 on all four instances there are credentials for:\n *\n *   POST /api/conversations/GetConversationDetails\n *        { id, messageId?, organizationId?, maxReadMessages?, PageNonce }\n *   POST /api/conversations/GetConversationMessages\n *        { id, organizationId?, startInstantISO?, maxReadMessages?, PageNonce }\n *\n * Both answer with the conversation object: `messages` ascending by\n * `deliveryInstantISO` (oldest first) and `hasMoreMessages` saying whether\n * older ones exist before `messages[0]`. Details additionally carries\n * `subject`, `totalMessages` and the `users` / `viewers` name maps, so it is\n * the seed here and GetConversationMessages pages backwards from it.\n *\n * `startInstantISO` is an exclusive upper bound — the response holds the newest\n * `maxReadMessages` messages strictly older than it — and omitting it means\n * \"now\", i.e. the newest page. `maxReadMessages` is the page size, defaulting\n * to 5 server-side, which is also all the listing ever inlines.\n *\n * Neither `organizationId` nor a real `PageNonce` is required, but the\n * `__RequestVerificationToken` header is: without it the endpoint 500s.\n *\n * The two endpoints REJECT a bad id differently, which is the trap here.\n * GetConversationMessages answers 500; GetConversationDetails answers **200\n * with a literal JSON `null`** — same as GetVisitNotes and GetLetterDetails do\n * for unknown ids. The `null` is recorded and passes through the processor as\n * `null` (rule 7) rather than being read as a thread with nothing in it.\n *\n * The web UI's own request shape is in\n * `scripts/lib/pxbuild/epic.px.client.communication-center.js` on any instance\n * — see `scrapers/SCRAPING.md`.\n */\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { logger } from '../../../../shared/logger';\nimport { list, rec, text } from '../../processors/read';\nimport { conversationThreadProcessor, type ConversationThreadStandard } from './messageThreads.processor';\n\nexport type { ConversationThreadStandard, ConversationThreadConcise } from './messageThreads.processor';\nexport { conversationThreadProcessor } from './messageThreads.processor';\n\n/**\n * Messages per request. The UI asks for 5 at a time; a chattier page size costs\n * the same round trip and keeps a long thread from turning into 20 of them.\n */\nconst PAGE_SIZE = 100;\n\n/** Bound the paging loop, so a server that never clears `hasMoreMessages` can't spin forever. */\nexport const MAX_PAGES = 50;\n\n/**\n * `GET /app/communication-center` for the token, `POST GetConversationDetails`\n * for the seed page, then `POST GetConversationMessages` backwards while the\n * last page says older messages exist. Every page is recorded; the processor\n * merges them.\n *\n * A non-2xx answer throws (`RawCollector.send` refuses it): a 500 here is an\n * error, and an error read as an empty thread looks exactly like a\n * conversation with nothing in it.\n */\nexport async function fetchConversationThreadRaw(mychartRequest: MyChartRequest, conversationId: string): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/communication-center');\n\n  const post = async (action: 'GetConversationDetails' | 'GetConversationMessages', body: Record<string, unknown>) => {\n    const { body: payload } = await collector.send({\n      path: `/api/conversations/${action}`,\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        Accept: 'application/json',\n        __RequestVerificationToken: token,\n      },\n      body: JSON.stringify({ ...body, PageNonce: '' }),\n    });\n    return payload;\n  };\n\n  const details = await post('GetConversationDetails', { id: conversationId, maxReadMessages: PAGE_SIZE });\n  // `null` is MyChart saying it has no such conversation; nothing to page.\n  if (details === null || typeof details !== 'object') return collector.toRaw();\n\n  let page = rec(details);\n  let oldestInstant = text(rec(list(page.messages)[0]).deliveryInstantISO);\n  let pages = 0;\n  while (page.hasMoreMessages === true) {\n    if (pages === MAX_PAGES) {\n      logger.debug(`Stopped paging conversation ${conversationId} after ${MAX_PAGES} pages`);\n      break;\n    }\n    pages++;\n\n    // Exclusive bound: ask for the messages immediately older than the oldest one held.\n    const older = await post('GetConversationMessages', {\n      id: conversationId,\n      startInstantISO: oldestInstant,\n      maxReadMessages: PAGE_SIZE,\n    });\n    page = rec(older);\n\n    // An empty page with `hasMoreMessages` still set would ask for the same\n    // instant forever, so it is the end of the thread.\n    const messages = list(page.messages);\n    if (messages.length === 0) break;\n    oldestInstant = text(rec(messages[0]).deliveryInstantISO);\n  }\n\n  return collector.toRaw();\n}\n\n/**\n * The standard object — what `mode: 'json'` returns. `null` when MyChart has\n * no such conversation on the active patient record.\n */\nexport async function getConversationMessages(\n  mychartRequest: MyChartRequest,\n  conversationId: string,\n): Promise<ConversationThreadStandard | null> {\n  return conversationThreadProcessor.standard(await fetchConversationThreadRaw(mychartRequest, conversationId));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * A file name safe to create under any directory, from a name MyChart gave\n * us. Attachment names come straight off the record, so they can hold path\n * separators, control characters, or nothing at all; `fallback` (e.g.\n * `attachment.pdf`) names the file when nothing usable is left.\n */\nexport function safeFileName(name: string, fallback: string): string {\n  const cleaned = name\n    .replace(/[/\\\\:*?\"<>|]+/g, '_')\n    // eslint-disable-next-line no-control-regex\n    .replace(/[\\x00-\\x1f]+/g, '')\n    .replace(/\\s+/g, ' ')\n    .replace(/^[. ]+/, '')\n    .trim()\n    .substring(0, 120);\n  return cleaned || fallback;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Epic's DCS blob store: the two-step every downloadable file in MyChart goes\n * through, whichever activity filed it.\n *\n *   POST /api/documents/viewer/GetDocumentDetails[Legacy]\n *        { dcsId, fileExtension, organizationId, useOldMobileLink }\n *   GET  <downloadUrl>   /Documents/ViewDocument/Download[OrStream]?dcsid=…&displayName=…&dcsExt=…\n *\n * Two producers reach it — a message attachment (`chart/messages/messageAttachment.ts`)\n * and a Document Center document (`chart/documents/documentDownload.ts`) — and\n * they differ only in how they find a `dcsId`, never in what happens after. The\n * exchange lives here so the traps below are checked in one place; the third\n * producer gets them for free.\n *\n * **The variants are the same store.** `GetDocumentDetails` and its `…Legacy`\n * sibling answered identically on a live account across every file type —\n * same bytes, same length, same `mimeType` and `displayName` — differing only\n * in `legacyEncryption` and whether the link is `Download` or\n * `DownloadOrStream`. Each portal hook sends its own `useOldMobileLink` (the\n * Document Center `true`, the message viewer `false`), and no measurement\n * showed it changing the answer; each caller sends what its own hook sends\n * rather than the fake agreement of a value nobody verified.\n *\n * **`fileExtension` is ignored.** Measured five ways on one live instance —\n * correct, empty, omitted, wrong, and `dcsId` alone — every variant returned\n * the same file. A caller that has the extension passes it (it is what the\n * portal sends); a caller that would have to go and look one up should not.\n *\n * Three traps, none of them a status code, all checked on the payload:\n *   - an id the record does not hold answers **200 with a literal JSON `null`**\n *   - a document MyChart holds but will not release answers with `downloadUrl`\n *     and `token` both empty (1 of 42 on the captured account), and its\n *     `previewUrl` then streams **200 with an empty body**\n *   - a bogus download link answers **200 with an empty body and no\n *     Content-Type**\n */\nimport { makeAuthenticatedRequest } from './makeAuthenticatedRequest';\nimport type { MyChartRequest } from './myChartRequest';\nimport type { RequestConfig } from './types';\nimport { describeResponseFailure, type RawCollector } from './rawResponse';\nimport { safeFileName } from './safeFileName';\nimport { rec, text } from '../processors/read';\nimport type { GetDocumentDetailsLegacy } from './mychart.types';\n\n/** Why a `dcsId` produced no file. Callers word the refusal in their own terms. */\nexport type DcsFailure =\n  /** A literal `null`: this record holds no such document. */\n  | { reason: 'no_such_document' }\n  /** Held, but MyChart serves no file for it — `downloadUrl` and `token` empty. */\n  | { reason: 'not_released'; displayName: string }\n  /** MyChart answered the download with something that is not the file. */\n  | { reason: 'download_failed'; displayName: string; detail: string };\n\nexport interface DcsFile {\n  /** `Content-Disposition`'s name, made safe. */\n  fileName: string;\n  mimeType: string;\n  bytes: Uint8Array;\n  /** MyChart's own name for the file, before it was made safe. */\n  displayName: string;\n}\n\nexport class DcsDocumentError extends Error {\n  constructor(readonly failure: DcsFailure, message: string) {\n    super(message);\n    this.name = 'DcsDocumentError';\n  }\n}\n\nexport interface DcsRequest {\n  dcsId: string;\n  /** Ignored by MyChart; send what the portal's own hook would send. */\n  fileExtension: string;\n  organizationId: string;\n  /** The Document Center sends `true`, the message viewer `false`. */\n  useOldMobileLink: boolean;\n  /** `true` picks `GetDocumentDetailsLegacy`, as the message viewer does. */\n  legacy: boolean;\n}\n\n/**\n * `Content-Disposition: attachment; filename=\"Visit Summary.pdf\"` — the name a\n * browser would save, extension included. Preferred over building one from\n * `displayName`, whose extension is inconsistent: it carried `.pdf` on some\n * documents and nothing on others, while the header had it every time.\n */\nfunction dispositionFileName(header: string): string {\n  const match = /filename\\*?=(?:UTF-8'')?\"?([^\";]+)\"?/i.exec(header);\n  return match ? decodeURIComponent(match[1]!.trim()) : '';\n}\n\n/** `?dcsExt=PDF` off the download link, lower-cased, for the fallback name. */\nfunction extensionFrom(downloadUrl: string): string {\n  const match = /[?&]dcsExt=([^&]+)/i.exec(downloadUrl);\n  return match ? decodeURIComponent(match[1]!).replace(/[^a-zA-Z0-9]/g, '').toLowerCase() : '';\n}\n\n/**\n * Fetch one DCS blob. Records the details POST into `collector` (so `raw` mode\n * shows the exchange) and throws {@link DcsDocumentError} with a machine-\n * readable `failure` when there is no file — the caller owns the wording,\n * because only it knows what the id it was given is called.\n */\nexport async function fetchDcsFile(\n  mychartRequest: MyChartRequest,\n  collector: RawCollector,\n  token: string,\n  request: DcsRequest,\n): Promise<DcsFile> {\n  const details = await collector.postJson(\n    `/api/documents/viewer/GetDocumentDetails${request.legacy ? 'Legacy' : ''}`,\n    token,\n    {\n      dcsId: request.dcsId,\n      fileExtension: request.fileExtension,\n      organizationId: request.organizationId,\n      useOldMobileLink: request.useOldMobileLink,\n    },\n  );\n  if (details === null || typeof details !== 'object') {\n    throw new DcsDocumentError({ reason: 'no_such_document' }, `MyChart has no document ${request.dcsId} on the active patient record.`);\n  }\n\n  const body = rec<GetDocumentDetailsLegacy>(details);\n  const displayName = text(body.displayName) || text(body.fileDescription);\n  const downloadUrl = text(body.downloadUrl);\n  if (!downloadUrl) {\n    throw new DcsDocumentError(\n      { reason: 'not_released', displayName },\n      `MyChart serves no file for document ${request.dcsId}.`,\n    );\n  }\n\n  const config: RequestConfig = { path: downloadUrl.startsWith('/') ? downloadUrl : `/${downloadUrl}` };\n  const response = await makeAuthenticatedRequest(mychartRequest, config);\n  const bytes = new Uint8Array(await response.arrayBuffer());\n  const contentType = response.headers.get('content-type') ?? '';\n  const declaredMime = text(body.mimeType);\n\n  const fail = (detail: string) => {\n    throw new DcsDocumentError({ reason: 'download_failed', displayName, detail }, detail);\n  };\n  const failure = describeResponseFailure(response, new TextDecoder().decode(bytes.subarray(0, 4096)), config);\n  if (failure) fail(failure);\n  if (bytes.length === 0) fail('an empty body');\n  // A web page where a file should be. `text/html` is a real document type —\n  // an e-signed document is HTML, 8 of 42 on the captured account — so this\n  // only fires when MyChart itself did not say the file was HTML.\n  if (contentType.includes('text/html') && !declaredMime.includes('html')) fail('a web page instead of the file');\n\n  const extension = extensionFrom(downloadUrl);\n  const named = dispositionFileName(response.headers.get('content-disposition') ?? '')\n    || (displayName && extension ? `${displayName}.${extension}` : displayName);\n  return {\n    fileName: safeFileName(named, extension ? `document.${extension}` : 'document'),\n    mimeType: declaredMime || contentType.split(';')[0]!.trim(),\n    bytes,\n    displayName,\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * One file attached to a message: the bytes MyChart holds for it.\n *\n * The thread endpoints only describe an attachment — `name`, `fileExtension`,\n * a `dcsId` — and never carry its content. The bytes come from Epic's DCS blob\n * store, the same one Document Center documents use; the exchange and its\n * traps are in [`core/dcsDocument.ts`](../../core/dcsDocument.ts). This module\n * owns the half that is attachment-specific: finding the attachment on its\n * thread, refusing the kinds that do not go through DCS, and wording a refusal\n * in terms of the conversation the caller named.\n *\n * The portal's message viewer (`useDcsDocument` with `legacyEncryption`)\n * sends `GetDocumentDetailsLegacy` and `useOldMobileLink: false`, so that is\n * what this sends. Measured across PDF, PNG and JPG attachments on two\n * instances; the legacy and non-legacy variants returned identical bytes on a\n * third, differing only in `legacyEncryption` and the link's name.\n *\n * Only `MessageDocType.DCS` (`type: 2`) attachments go this way; every one\n * captured so far is. An ETX attachment (`type: 1`, a clinical reference the\n * portal renders as a popup via `GetClinicalReferenceDetails`) and a\n * community-jump attachment (`legacyUrlForCommunityJump`, another\n * organization's portal) have not been observed on any instance, so they are\n * refused with a reason rather than guessed at.\n */\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector } from '../../core/rawResponse';\nimport { DcsDocumentError, fetchDcsFile } from '../../core/dcsDocument';\nimport { safeFileName } from '../../core/safeFileName';\nimport type { FilePayload } from '../../core/filePayload';\nimport { list, rec, text } from '../../processors/read';\nimport { fetchConversationThreadRaw } from './messageThreads';\nimport { DetailedError } from '../../../../shared/detailedError';\n\n/**\n * A downloaded attachment: the file, and what the thread said about it.\n * `fileName` is the name the thread lists (e.g. `results.pdf`) made safe;\n * `mimeType` is from the details call, falling back to the download's\n * Content-Type.\n */\nexport interface MessageAttachmentFile extends FilePayload {\n  conversationId: string;\n  /** The attachment's `dcsId`, the handle `get_message_thread` shows. */\n  dcsId: string;\n  /** MyChart's extension for it, upper-case (`PDF`, `PNG`, `JPG`). */\n  fileExtension: string;\n}\n\n/** `attachment.pdf` — what an attachment the thread left unnamed is called. */\nfunction extensionFallback(fileExtension: string): string {\n  const extension = fileExtension.replace(/[^a-zA-Z0-9]/g, '').toLowerCase();\n  return extension ? `attachment.${extension}` : 'attachment';\n}\n\n/** What the thread says about one attachment, as MyChart sent it. */\ninterface ThreadAttachment {\n  dcsId: string;\n  etxId: string;\n  name: string;\n  fileExtension: string;\n  type: number;\n  organizationId: string;\n  legacyUrlForCommunityJump: string;\n}\n\nconst DCS_DOC_TYPE = 2;\n\nfunction threadAttachments(threadRaw: { requests: Array<{ body: unknown }> }): ThreadAttachment[] {\n  const out: ThreadAttachment[] = [];\n  for (const request of threadRaw.requests) {\n    for (const message of list(rec(request.body).messages)) {\n      for (const value of list(rec(message).attachments)) {\n        const a = rec(value);\n        out.push({\n          dcsId: text(a.dcsId),\n          etxId: text(a.etxId),\n          name: text(a.name),\n          fileExtension: text(a.fileExtension),\n          type: typeof a.type === 'number' ? a.type : -1,\n          organizationId: text(a.organizationId),\n          legacyUrlForCommunityJump: text(a.legacyUrlForCommunityJump),\n        });\n      }\n    }\n  }\n  // A message can appear on the details page and on a paged response.\n  return out.filter((a, i) => out.findIndex((b) => b.dcsId === a.dcsId && b.name === a.name) === i);\n}\n\nfunction describeAvailable(attachments: ThreadAttachment[], withNames: boolean): string {\n  if (attachments.length === 0) return 'That conversation has no attachments.';\n  const id = (a: ThreadAttachment) => a.dcsId || a.etxId || '?';\n  return withNames\n    ? `The attachments on that conversation are: ${attachments.map((a) => `${a.name || '(unnamed)'} (attachment_id ${id(a)})`).join(', ')}.`\n    : `The attachment_ids on that conversation are: ${attachments.map(id).join(', ')}.`;\n}\n\n/**\n * Download the attachment `attachmentId` (its `dcsId`) from conversation\n * `conversationId`. Reads the thread first, so the attachment's own\n * `fileExtension` and `organizationId` go into the details call exactly as\n * the portal would send them, and so an id from the wrong conversation is a\n * clear refusal rather than a mystery download.\n */\nexport async function downloadMessageAttachment(\n  mychartRequest: MyChartRequest,\n  conversationId: string,\n  attachmentId: string,\n): Promise<MessageAttachmentFile> {\n  const threadRaw = await fetchConversationThreadRaw(mychartRequest, conversationId);\n  const details = threadRaw.requests.find((r) => r.path.includes('GetConversationDetails'));\n  if (!details || details.body === null || typeof details.body !== 'object') {\n    throw new Error(\n      `No conversation ${conversationId} on the active patient record. Check the id from get_messages, and that the right patient is active.`,\n    );\n  }\n\n  const attachments = threadAttachments(threadRaw);\n  const attachment = attachments.find((a) => a.dcsId === attachmentId || (a.etxId !== '' && a.etxId === attachmentId));\n  if (!attachment) {\n    const lead = `No attachment ${attachmentId} on conversation ${conversationId}. `;\n    throw new DetailedError(lead + describeAvailable(attachments, false), lead + describeAvailable(attachments, true));\n  }\n  if (attachment.legacyUrlForCommunityJump) {\n    const rest = \" is held by another organization's portal (a community link), which this account cannot download from here.\";\n    throw new DetailedError(`Attachment ${attachmentId}${rest}`, `${attachment.name}${rest}`);\n  }\n  if (attachment.type !== DCS_DOC_TYPE || !attachment.dcsId) {\n    const rest = ` is not a downloadable document (MyChart type ${attachment.type}); only file attachments (type ${DCS_DOC_TYPE}) are supported.`;\n    throw new DetailedError(`Attachment ${attachmentId}${rest}`, `${attachment.name}${rest}`);\n  }\n\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/communication-center');\n\n  try {\n    const file = await fetchDcsFile(mychartRequest, collector, token, {\n      dcsId: attachment.dcsId,\n      fileExtension: attachment.fileExtension,\n      organizationId: attachment.organizationId,\n      useOldMobileLink: false,\n      legacy: true,\n    });\n    return {\n      conversationId,\n      dcsId: attachment.dcsId,\n      fileExtension: attachment.fileExtension,\n      // The thread's own name (`results.pdf`) beats the store's `displayName`,\n      // which is a system name like `MyChart_Document_1` — and when the thread\n      // named it nothing, the extension alone beats that system name too.\n      fileName: safeFileName(attachment.name, extensionFallback(attachment.fileExtension)),\n      mimeType: file.mimeType,\n      bytes: file.bytes,\n    };\n  } catch (error) {\n    if (!(error instanceof DcsDocumentError)) throw error;\n    const { failure } = error;\n    if (failure.reason === 'no_such_document') {\n      throw new Error(\n        `MyChart has no document ${attachment.dcsId} on the active patient record, although the thread lists it. ` +\n          'Check that the right patient is active.',\n        { cause: error },\n      );\n    }\n    if (failure.reason === 'not_released') {\n      const rest = '; it may not be downloadable from the portal either.';\n      throw new DetailedError(\n        `MyChart returned no download link for attachment ${attachmentId}${rest}`,\n        `MyChart returned no download link for ${attachment.name}${rest}`,\n      );\n    }\n    const rest = ` with ${failure.detail}; nothing was downloaded.`;\n    throw new DetailedError(\n      `MyChart answered the download of attachment ${attachmentId}${rest}`,\n      `MyChart answered the download of ${attachment.name}${rest}`,\n    );\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Message recipients and topics processors. Field decisions:\n * docs/processor-layer-proposal.md, `get_message_recipients` and\n * `get_message_topics`.\n *\n * `GetMedicalAdviceRequestRecipients` is a bare array on every captured\n * instance; the scraper it replaced also tolerated six wrapper keys, which\n * are honoured here so an instance that wraps the list does not read as\n * \"nobody to message\".\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { list, num, rec, textOrNull } from '../../processors/read';\nimport type { GetMedicalAdviceRequestRecipients, GetSubTopics } from './mychart.types';\nimport type { MessageRecipientsStandard, MessageTopicsStandard } from './standardized.types';\n\nexport type { MessageRecipientStandard, MessageRecipientsStandard, MessageTopicStandard, MessageTopicsStandard } from './standardized.types';\n\nconst WRAPPER_KEYS = ['recipients', 'recipientList', 'Providers', 'providers', 'ProviderList', 'providerList'];\n\n/** The recipient list, whether the instance sent it bare or under one of the known wrapper keys. */\nexport function recipientList(body: unknown): unknown[] {\n  if (Array.isArray(body)) return body;\n  const wrapper = rec(body);\n  for (const key of WRAPPER_KEYS) {\n    if (Array.isArray(wrapper[key])) return wrapper[key] as unknown[];\n  }\n  return [];\n}\n\nexport const messageRecipientsProcessor: Processor<MessageRecipientsStandard> = {\n  standard(raw: RawResponse): MessageRecipientsStandard {\n    return {\n      recipients: recipientList(bodyOf(raw, 'GetMedicalAdviceRequestRecipients')).map((value) => {\n        const r = rec<GetMedicalAdviceRequestRecipients[number]>(value);\n        return {\n          displayName: textOrNull(r.displayName),\n          specialty: textOrNull(r.specialty),\n          pcpTypeDisplayName: textOrNull(r.pcpTypeDisplayName),\n          recipientType: num(r.recipientType),\n          oocContext: num(r.oocContext),\n          userId: textOrNull(r.userId),\n          departmentId: textOrNull(r.departmentId),\n          poolId: textOrNull(r.poolId),\n          providerId: textOrNull(r.providerId),\n        };\n      }),\n    };\n  },\n  concise(standard) {\n    return {\n      recipients: standard.recipients.map((r) => ({\n        displayName: r.displayName,\n        specialty: r.specialty,\n        pcpTypeDisplayName: r.pcpTypeDisplayName,\n      })),\n    };\n  },\n};\n\nexport const messageTopicsProcessor: Processor<MessageTopicsStandard> = {\n  standard(raw: RawResponse): MessageTopicsStandard {\n    const body = rec<GetSubTopics>(bodyOf(raw, 'GetSubtopics'));\n    return {\n      topicList: list(body.topicList).map((value) => ({\n        displayName: textOrNull(rec(value).displayName),\n        value: textOrNull(rec(value).value),\n      })),\n    };\n  },\n  concise: (standard) => standard,\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Read side of composing a message: who can be written to and about what.\n * `sendMessage.ts` keeps its own `getMessageRecipients` / `getMessageTopics`\n * for the send flow; these are the capability-facing fetches that record the\n * exchange.\n */\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { MissingVerificationTokenError } from '../../core/util';\nimport { getVerificationToken } from './communicationCenterToken';\nimport {\n  messageRecipientsProcessor,\n  messageTopicsProcessor,\n  type MessageRecipientsStandard,\n  type MessageTopicsStandard,\n} from './recipients.processor';\n\nexport type {\n  MessageRecipientStandard,\n  MessageRecipientsStandard,\n  MessageTopicStandard,\n  MessageTopicsStandard,\n} from './recipients.processor';\nexport { messageRecipientsProcessor, messageTopicsProcessor, recipientList } from './recipients.processor';\n\nconst COMMUNICATION_CENTER = '/app/communication-center';\n\nasync function requireMessagingToken(mychartRequest: MyChartRequest): Promise<string> {\n  const token = await getVerificationToken(mychartRequest);\n  if (!token) throw new MissingVerificationTokenError(COMMUNICATION_CENTER);\n  return token;\n}\n\nasync function postMedicalAdvice(collector: RawCollector, action: string, token: string, organizationId: string): Promise<void> {\n  await collector.send({\n    path: `/api/medicaladvicerequests/${action}`,\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json; charset=utf-8',\n      __RequestVerificationToken: token,\n    },\n    body: JSON.stringify({ organizationId }),\n  });\n}\n\n/** `POST /api/medicaladvicerequests/GetMedicalAdviceRequestRecipients`, with the communication-center token. */\nexport async function fetchMessageRecipientsRaw(mychartRequest: MyChartRequest, organizationId = ''): Promise<RawResponse> {\n  const token = await requireMessagingToken(mychartRequest);\n  const collector = new RawCollector(mychartRequest);\n  await postMedicalAdvice(collector, 'GetMedicalAdviceRequestRecipients', token, organizationId);\n  return collector.toRaw();\n}\n\n/** `POST /api/medicaladvicerequests/GetSubtopics`, with the communication-center token. */\nexport async function fetchMessageTopicsRaw(mychartRequest: MyChartRequest, organizationId = ''): Promise<RawResponse> {\n  const token = await requireMessagingToken(mychartRequest);\n  const collector = new RawCollector(mychartRequest);\n  await postMedicalAdvice(collector, 'GetSubtopics', token, organizationId);\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function listMessageRecipients(mychartRequest: MyChartRequest, organizationId = ''): Promise<MessageRecipientsStandard> {\n  return messageRecipientsProcessor.standard(await fetchMessageRecipientsRaw(mychartRequest, organizationId));\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function listMessageTopics(mychartRequest: MyChartRequest, organizationId = ''): Promise<MessageTopicsStandard> {\n  return messageTopicsProcessor.standard(await fetchMessageTopicsRaw(mychartRequest, organizationId));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { makeAuthenticatedRequest } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { getVerificationToken } from './communicationCenterToken';\nimport { logger } from '../../../../shared/logger';\n\nexport type DeleteMessageResult = {\n  success: boolean;\n  error?: string;\n}\n\nexport async function deleteMessage(mychartRequest: MyChartRequest, conversationId: string): Promise<DeleteMessageResult> {\n  const token = await getVerificationToken(mychartRequest);\n\n  if (!token) {\n    logger.debug('Could not find request verification token for delete message');\n    return { success: false, error: 'Could not get verification token' };\n  }\n\n  const resp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/conversations/DeleteConversation',\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json',\n      '__RequestVerificationToken': token,\n    },\n    body: JSON.stringify({ conversationId }),\n  });\n\n  if (resp.status === 200) {\n    return { success: true };\n  }\n\n  const text = await resp.text();\n  return { success: false, error: `Delete failed with status ${resp.status}: ${text}` };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { DetailedError } from '../../shared/detailedError';\n\n/**\n * Resolve a human-supplied name to exactly one item, or refuse.\n *\n * Models are handed display names, not opaque ids, so every tool that takes a\n * \"which one did you mean\" argument needs the same lookup: exact match first,\n * then a unique partial match, and an error listing the candidates when more\n * than one survives. Picking a provider or a medication on the patient's\n * behalf is exactly the guess this codebase must never make.\n *\n * **Exact-before-partial is the whole point.** A substring-only matcher rejects\n * a perfectly correct name as ambiguous whenever another entry contains it:\n *\n *     resolveUnique(['Dr. Smith', 'Dr. Smithson'], 'Dr. Smith')\n *\n * every entry containing \"smith\" matches, so the caller is told to \"be more\n * specific\" about a name that could not have been more specific. Checking for\n * an exact match first settles it. `findProxyTarget` in\n * `scrapers/myChart/proxyContext.ts` has always done this for patient records;\n * this is the same rule for everything else.\n */\n\n/** Honorifics that carry no identifying information in a provider name. */\nconst TITLE_WORDS = new Set([\n  'dr', 'dr.', 'mr', 'mr.', 'mrs', 'mrs.', 'ms', 'ms.',\n  'md', 'md.', 'do', 'do.', 'np', 'pa', 'rn',\n]);\n\nfunction normalize(text: string): string {\n  return text.toLowerCase().replace(/\\s+/g, ' ').trim();\n}\n\nfunction nameTokens(query: string): string[] {\n  const all = normalize(query).split(/[\\s,]+/).filter(Boolean);\n  const withoutTitles = all.filter((t) => !TITLE_WORDS.has(t));\n  // A query that is *nothing but* an honorific (\"Dr\") still narrows the list,\n  // and reporting \"multiple providers match\" beats claiming no name was given.\n  return withoutTitles.length > 0 ? withoutTitles : all;\n}\n\nexport interface ResolveUniqueOptions<T> {\n  /** The display name to match against, and the one shown in errors. */\n  getName: (item: T) => string;\n  /**\n   * Other names the same item answers to — a medication's brand name against\n   * its generic, say. Matched like the display name; never shown in errors,\n   * since listing both names for one item reads as two items.\n   */\n  getAlternateNames?: (item: T) => string[];\n  /** Singular noun for the error messages, e.g. \"recipient\", \"medication\". */\n  label: string;\n  /**\n   * Strip honorifics (Dr., MD, RN) before matching. On for people, off for\n   * things — a medication called \"DO NOT SUBSTITUTE\" should keep its words.\n   */\n  stripTitles?: boolean;\n}\n\n/**\n * Resolve `query` to exactly one item.\n *\n * @throws when the query is empty, matches nothing, or matches more than one\n * item. The detailed message lists the available names, so the caller can\n * retry with something specific instead of guessing; the message names none,\n * since they are the patient's providers or medications.\n */\nexport function resolveUnique<T>(items: T[], query: string, opts: ResolveUniqueOptions<T>): T {\n  const { getName, label } = opts;\n  const available = () => items.map(getName).join(', ');\n  const namesOf = (item: T): string[] =>\n    [getName(item), ...(opts.getAlternateNames?.(item) ?? [])].filter(Boolean).map(normalize);\n\n  const wanted = normalize(query);\n  if (!wanted) {\n    throw new DetailedError(`No ${label} name given.`, `No ${label} name given. Available: ${available()}`);\n  }\n\n  // 1. Exact match, case- and whitespace-insensitive. A correct name always\n  //    wins, no matter how many other entries happen to contain it.\n  const exact = items.filter((item) => namesOf(item).includes(wanted));\n  if (exact.length === 1) return exact[0]!;\n  if (exact.length > 1) {\n    throw new DetailedError(\n      `${exact.length} ${label}s have that name. They cannot be told apart by name.`,\n      `More than one ${label} is called \"${query}\": ${exact.map(getName).join(', ')}. ` +\n        'They cannot be told apart by name.',\n    );\n  }\n\n  // 2. Every token present somewhere in one of the names, in any order.\n  const tokens = opts.stripTitles === false ? [wanted] : nameTokens(query);\n  const partial = items.filter((item) =>\n    namesOf(item).some((name) => tokens.every((token) => name.includes(token))),\n  );\n\n  if (partial.length === 0) {\n    throw new DetailedError(`No ${label} matches that name.`, `No ${label} matching \"${query}\". Available: ${available()}`);\n  }\n  if (partial.length > 1) {\n    throw new DetailedError(\n      `${partial.length} ${label}s match that name. Be more specific.`,\n      `Multiple ${label}s match \"${query}\": ${partial.map(getName).join(', ')}. Be more specific.`,\n    );\n  }\n  return partial[0]!; // lengths 0 and >1 were ruled out above\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Resolving a name a caller typed to exactly one MyChart entity.\n *\n * The shared `resolveUnique` does the work — exact match first, then a unique\n * partial, and an error listing the candidates otherwise. These wrappers exist\n * so the messaging capabilities read clearly and so consumers of the npm\n * package can reach the same logic.\n */\n\nimport { resolveUnique } from '../resolveUnique';\nimport type { MessageRecipient, MessageTopic } from '../../../scrapers/myChart/chart/messages/sendMessage';\n\n// package can reach the same logic.\n\n/** Resolve a provider name to exactly one recipient, or throw with the options. */\nexport function resolveRecipient(recipients: MessageRecipient[], query: string): MessageRecipient {\n  return resolveUnique(recipients, query, { getName: (r) => r.displayName, label: 'recipient' });\n}\n\n/**\n * Resolve a topic name, falling back to the first available topic.\n *\n * Unlike a recipient, an unmatched topic is not worth refusing over: MyChart\n * requires a topic on every message and the category is cosmetic, so stranding\n * the patient's message over it would help nobody. The fallback is *reported*\n * rather than silent — `send_message` returns the topic it actually used, so\n * the reply can say which one, instead of the substitution being invisible at\n * the call site.\n */\nexport function resolveTopic(\n  topics: MessageTopic[],\n  query: string | undefined,\n): { topic: MessageTopic; substituted: boolean } {\n  const firstTopic = topics[0];\n  if (!firstTopic) throw new Error('No message topics are available on this MyChart.');\n  const wanted = (query ?? '').toLowerCase().trim();\n  if (!wanted) return { topic: firstTopic, substituted: false };\n  const match = topics.find((t) => t.displayName.toLowerCase().includes(wanted));\n  return match ? { topic: match, substituted: false } : { topic: firstTopic, substituted: true };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** The `Messages` group — the inbox, and sending into it. */\n\nimport { fetchConversationsRaw, conversationsProcessor } from '../../../../scrapers/myChart/chart/messages/conversations';\nimport { fetchConversationThreadRaw, conversationThreadProcessor } from '../../../../scrapers/myChart/chart/messages/messageThreads';\nimport { downloadMessageAttachment, type MessageAttachmentFile } from '../../../../scrapers/myChart/chart/messages/messageAttachment';\nimport {\n  fetchMessageRecipientsRaw,\n  fetchMessageTopicsRaw,\n  messageRecipientsProcessor,\n  messageTopicsProcessor,\n} from '../../../../scrapers/myChart/chart/messages/recipients';\nimport {\n  sendNewMessage,\n  getMessageRecipients,\n  getMessageTopics,\n  getVerificationToken,\n} from '../../../../scrapers/myChart/chart/messages/sendMessage';\nimport { sendReply } from '../../../../scrapers/myChart/chart/messages/sendReply';\nimport { deleteMessage } from '../../../../scrapers/myChart/chart/messages/deleteMessage';\nimport type { MyChartRequest } from '../../../../scrapers/myChart/core/myChartRequest';\nimport type { FilePayload } from '../../../../scrapers/myChart/core/filePayload';\nimport { optStr, requireStr, strList } from '../args';\nimport { resolveRecipient, resolveTopic } from '../resolve';\nimport type { CapabilityArgs, CapabilityContext, CapabilityImpl, CapabilityParam } from '../types';\n\nasync function messagingToken(request: MyChartRequest): Promise<string> {\n  const token = await getVerificationToken(request);\n  if (!token) throw new Error('Could not get a MyChart verification token for messaging.');\n  return token;\n}\n\nconst ATTACHMENTS_PARAM: CapabilityParam = {\n  name: 'attachments',\n  type: 'string[]',\n  description:\n    'Files to attach: local file paths, e.g. a path a download tool returned (from the CLI, comma-separated). ' +\n    'Allowed types, sizes and count are whatever this MyChart permits; a file it would refuse is an error before anything is sent.',\n};\n\nasync function readAttachments(args: CapabilityArgs, ctx: CapabilityContext | undefined): Promise<FilePayload[]> {\n  const refs = strList(args, ATTACHMENTS_PARAM.name);\n  if (refs.length === 0) return [];\n  const readFile = ctx?.readFile;\n  if (!readFile) throw new Error('This client cannot attach files to messages yet.');\n  return Promise.all(refs.map((ref) => readFile(ref)));\n}\n\nexport const MESSAGE_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_messages',\n    title: 'Messages',\n    description:\n      'Every conversation in the inbox: its id, subject, who it is with, when the latest message arrived, and ' +\n      'whether it is unread, urgent or has attachments. The messages themselves come from get_message_thread.',\n    kind: 'read',\n    group: 'Messages',\n    params: [],\n    run: (request) => fetchConversationsRaw(request),\n    processor: conversationsProcessor,\n  },\n  {\n    id: 'get_message_thread',\n    title: 'Message thread',\n    description:\n      'Every message in one conversation: text, date, sender, and for each attachment its name and dcsId. ' +\n      'An attachment\\'s content is a separate call — get_message_attachment with that dcsId.',\n    kind: 'read',\n    group: 'Messages',\n    params: [{ name: 'conversation_id', type: 'string', description: 'Conversation id from get_messages.', required: true }],\n    run: async (request, args) => {\n      const conversationId = requireStr(args, 'conversation_id');\n      const raw = await fetchConversationThreadRaw(request, conversationId);\n      // GetConversationDetails answers an unknown id with a literal JSON null\n      // (same as GetVisitNotes). Saying so beats rendering an empty thread.\n      if (raw.requests.find((r) => r.path.includes('GetConversationDetails'))?.body === null) {\n        throw new Error(\n          `No conversation ${conversationId} on the active patient record. Check the id from get_messages, and that the right patient is active.`,\n        );\n      }\n      return raw;\n    },\n    processor: conversationThreadProcessor,\n  },\n  {\n    id: 'get_message_attachment',\n    title: 'Message attachment',\n    description:\n      'Download one file attached to a message — a PDF, photo or other document a provider or the patient attached. Identify it by the conversation_id from get_messages and the attachment_id (the attachment’s dcsId) from get_message_thread. The file is saved on the user’s own device; images are also shown inline.',\n    kind: 'read',\n    group: 'Messages',\n    returnsFile: true,\n    params: [\n      { name: 'conversation_id', type: 'string', description: 'Conversation id from get_messages.', required: true },\n      { name: 'attachment_id', type: 'string', description: 'The attachment’s dcsId from get_message_thread. Copy it verbatim.', required: true },\n    ],\n    run: (request, args): Promise<MessageAttachmentFile> =>\n      downloadMessageAttachment(request, requireStr(args, 'conversation_id'), requireStr(args, 'attachment_id')),\n  },\n  {\n    id: 'get_message_recipients',\n    title: 'Message recipients',\n    description: 'Providers and departments that can receive a new message.',\n    kind: 'read',\n    group: 'Messages',\n    params: [],\n    run: (request) => fetchMessageRecipientsRaw(request),\n    processor: messageRecipientsProcessor,\n  },\n  {\n    id: 'get_message_topics',\n    title: 'Message topics',\n    description: 'Topics/categories a new message can be filed under.',\n    kind: 'read',\n    group: 'Messages',\n    // send_message resolves the topic itself and reports any substitution, so\n    // listing them up front is rarely a step anyone needs to take.\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchMessageTopicsRaw(request),\n    processor: messageTopicsProcessor,\n  },\n  {\n    id: 'send_message',\n    title: 'Send a message',\n    description:\n      'Send a new message to a provider or department. Names are matched against get_message_recipients — an ambiguous name is an error rather than a guess.',\n    kind: 'write',\n    group: 'Messages',\n    params: [\n      { name: 'recipient_name', type: 'string', description: 'Provider or department name, as shown by get_message_recipients.', required: true },\n      { name: 'topic', type: 'string', description: 'Topic name, e.g. \"Medical Question\". Defaults to the first available topic.' },\n      { name: 'subject', type: 'string', description: 'Subject line.', required: true },\n      { name: 'message', type: 'string', description: 'Body of the message.', required: true },\n      ATTACHMENTS_PARAM,\n    ],\n    run: async (request, args, ctx) => {\n      const attachments = await readAttachments(args, ctx);\n      const token = await messagingToken(request);\n      const [recipients, topics] = await Promise.all([\n        getMessageRecipients(request, token),\n        getMessageTopics(request, token),\n      ]);\n      const recipient = resolveRecipient(recipients, requireStr(args, 'recipient_name'));\n      const { topic, substituted } = resolveTopic(topics, optStr(args, 'topic'));\n      const result = await sendNewMessage(request, {\n        recipient,\n        topic,\n        subject: requireStr(args, 'subject'),\n        messageBody: requireStr(args, 'message'),\n        attachments,\n      });\n      // Say who it went to and under which topic. The topic can be a\n      // substitution when the requested one doesn't exist on this instance,\n      // and a silent substitution is one the patient never gets told about.\n      return {\n        ...result,\n        sent_to: recipient.displayName,\n        topic_used: topic.displayName,\n        ...(substituted\n          ? { topic_substituted: `No topic matched \"${optStr(args, 'topic')}\"; used \"${topic.displayName}\" instead.` }\n          : {}),\n      };\n    },\n  },\n  {\n    id: 'send_reply',\n    title: 'Reply to a message',\n    description: 'Reply in an existing conversation.',\n    kind: 'write',\n    group: 'Messages',\n    params: [\n      { name: 'conversation_id', type: 'string', description: 'Conversation id from get_messages.', required: true },\n      { name: 'message', type: 'string', description: 'Reply text.', required: true },\n      ATTACHMENTS_PARAM,\n    ],\n    run: async (request, args, ctx) =>\n      sendReply(request, {\n        conversationId: requireStr(args, 'conversation_id'),\n        messageBody: requireStr(args, 'message'),\n        attachments: await readAttachments(args, ctx),\n      }),\n  },\n  {\n    id: 'delete_message',\n    title: 'Delete a conversation',\n    description: 'Delete a message conversation from the inbox.',\n    kind: 'write',\n    group: 'Messages',\n    lessFrequentlyUsed: true,\n    params: [{ name: 'conversation_id', type: 'string', description: 'Conversation id from get_messages.', required: true }],\n    run: (request, args) => deleteMessage(request, requireStr(args, 'conversation_id')),\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { makeAuthenticatedRequest, SessionExpiredError } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { getRequestVerificationTokenFromBody } from '../../core/util';\nimport { list, rec, text } from '../../processors/read';\nimport { subYears, addYears } from 'date-fns';\nimport type { BillingAccount, PaymentListResponse, StatementItem, StatementListResponse } from './types';\nimport type { BillingGetVisits } from './mychart.types';\nimport { logger } from '../../../../shared/logger';\nimport { toEpicDteLocal } from '../../../../shared/epicDate';\nimport type { FilePayload } from '../../core/filePayload';\nimport { safeFileName } from '../../core/safeFileName';\nimport { parseBillingAccountsHtml } from './summaryHtml';\nimport { VISIT_LIST_CATEGORIES, billingProcessor, isStubRow, statementDateISO, type BillingStandard } from './bills.processor';\nimport { DetailedError } from '../../../../shared/detailedError';\n\nexport { parsePaymentUrl, parseBillingAccountsHtml, parseAmount } from './summaryHtml';\nexport type {\n  BillingStandard,\n  BillingAccountStandard,\n  BillingVisitStandard,\n  BillingUnloadedVisitStandard,\n  BillingUnloadedReason,\n  BillingVisitCategory,\n  BillingStatementStandard,\n  BillingPaymentStandard,\n  BillingProcedureStandard,\n  BillingProcedureGroupStandard,\n  BillingCoverageInfoStandard,\n} from './bills.processor';\nexport { billingProcessor, mergeVisitLists, VISIT_LIST_CATEGORIES } from './bills.processor';\n\n// Two jobs live here: the `get_billing` read (fetchBillingRaw + the\n// processor) and the `download_billing_statement` file download, which\n// re-walks the summary and statement lists to find the one statement asked for.\n\nfunction accountQuery(account: BillingAccount): string {\n  return `id=${account.id}&context=${account.context}`;\n}\n\n/** A window wide enough to cover a lifetime of visits; the search is bounded by explicit dates. */\nfunction visitsPath(account: BillingAccount): string {\n  const date100YearsAgo = subYears(new Date(), 100);\n  const date1YearFromNow = addYears(new Date(), 1);\n  return `/Billing/Details/GetVisits?noCache=${Math.random()}&${accountQuery(account)}&filterOption=1&searchStartDTE=${toEpicDteLocal(date100YearsAgo)}&searchStopDTE=${toEpicDteLocal(date1YearFromNow)}&cid=`;\n}\n\nfunction paymentListPath(account: BillingAccount): string {\n  return `/Billing/Details/LoadPaymentList?noCache=${Math.random()}&${accountQuery(account)}&searchStartDTE=&searchEndDTE=&cid=`;\n}\n\nfunction statementListPath(account: BillingAccount): string {\n  return `/Billing/Details/GetStatementList?noCache=${Math.random()}&${accountQuery(account)}&cid=`;\n}\n\nfunction detailsPagePath(account: BillingAccount): string {\n  return `/Billing/Details?ID=${account.id}&Context=${account.context}`;\n}\n\nconst GET_MORE_VISITS_PATH = '/Billing/Details/GetMoreVisits';\n\n/**\n * The hydrate key for one stub, in the three shapes Epic's own client builds\n * (`AccountDetailsController.__processSingleListResponse`): a hospital\n * account, a hospital account billed under a specific provider, or a\n * standalone estimate.\n */\ntype HydrateKey = { EncAccountID: string } & Record<string, string>;\n\nfunction hydrateKey(row: Record<string, unknown>): HydrateKey | null {\n  const har = text(row.HospitalAccountId);\n  const estimate = text(row.EmptyVisitEstimateID);\n  if (!har && estimate) return { EncAccountID: estimate, IsPes: 'true', IsHar: 'false' };\n  if (!har) return null;\n  const provider = text(row.ProviderId);\n  return provider\n    ? { EncAccountID: har, IsPes: 'false', IsHar: 'true', EncPBSerID: provider }\n    : { EncAccountID: har, IsPes: 'false', IsHar: 'true' };\n}\n\n/**\n * `listOfAccounts` as ASP.NET model binding wants it —\n * `listOfAccounts[0].EncAccountID=…&listOfAccounts[0].IsHar=true&…` — which\n * is the encoding captured off the real request, not an inference.\n */\nfunction moreVisitsBody(account: BillingAccount, keys: HydrateKey[]): string {\n  const params = new URLSearchParams({ id: account.id ?? '', context: account.context ?? '' });\n  keys.forEach((key, i) => {\n    for (const [field, value] of Object.entries(key)) params.append(`listOfAccounts[${i}].${field}`, value);\n  });\n  return params.toString();\n}\n\n/**\n * Hydrate every stub in a `GetVisits` body — one `GetMoreVisits` POST per\n * stub, fanned out under the per-host limiter.\n *\n * Epic's own client batches these, and a batch is where the trouble is: the\n * answer carries nothing to join on (a stub's `HospitalAccountId` is an\n * encrypted handle, the hydrated row's is the plain account number, and no\n * field on the hydrated row carries the handle back), so a batched answer can\n * only be paired with its request by position. One stub per request makes\n * the correspondence a fact instead of an assumption: the single row that\n * comes back is the answer to the single handle that was posted, and a\n * request that fails names exactly the visit it failed for.\n *\n * Best-effort here, but not silently: a stub still unloaded once the answers\n * are merged goes to `unloadedVisits` with a `notice`, never to `visits`,\n * because a stub's fabricated `\"$0.00\"` is indistinguishable from a settled\n * visit. A request that fails, or answers without `Success: true`, is tried\n * once more first, so `not_loaded` means it failed twice. An empty success is\n * not retried: on the one instance that sends it, it was the same answer\n * every time.\n */\nasync function hydrateStubs(\n  collector: RawCollector,\n  account: BillingAccount,\n  visitsBody: unknown,\n  token: string | undefined,\n): Promise<void> {\n  const data = rec(rec<BillingGetVisits>(visitsBody).Data);\n  const byHandle = new Map<string, HydrateKey>();\n  for (const category of VISIT_LIST_CATEGORIES) {\n    for (const row of list(data[category])) {\n      if (!isStubRow(row)) continue;\n      const key = hydrateKey(rec(row));\n      if (key) byHandle.set(key.EncAccountID, key);\n    }\n  }\n  if (byHandle.size === 0) return;\n  if (!token) {\n    logger.debug(`Billing: ${byHandle.size} unhydrated charge rows but no antiforgery token; leaving them.`);\n    return;\n  }\n\n  await Promise.all(\n    [...byHandle.values()].map(async (key) => {\n      for (let attempt = 1; attempt <= 2; attempt++) {\n        const { failure, body } = await collector.send(\n          {\n            path: `${GET_MORE_VISITS_PATH}?noCache=${Math.random()}`,\n            method: 'POST',\n            headers: {\n              'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n              'X-Requested-With': 'XMLHttpRequest',\n              __RequestVerificationToken: token,\n            },\n            body: moreVisitsBody(account, [key]),\n          },\n          { tolerateFailure: true },\n        );\n        if (!failure && rec(body).Success === true) return;\n        logger.debug(`Billing: GetMoreVisits attempt ${attempt} failed for ${account.guarantorNumber}: ${failure?.message ?? 'Success was not true'}`);\n      }\n    }),\n  );\n}\n\n/**\n * `GET /Billing/Summary`, then per account the details page, `GetVisits`,\n * one `GetMoreVisits` per lazy-loaded row, `GetStatementList` and\n * `LoadPaymentList`.\n *\n * The details page is fetched *first* because it carries both the `EncID` the\n * statement download needs and the antiforgery token `GetMoreVisits` requires.\n * The summary is parsed here only to learn which accounts to fetch; the\n * processor re-parses the recorded page to build the account rows.\n *\n * The supplementary calls are best-effort — a statement-list outage should\n * not cost the caller the charge history — and a non-OK response is still\n * recorded. The summary and the visit list are the payload: a failure there\n * throws.\n */\nexport async function fetchBillingRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const summary = await collector.send({ path: '/Billing/Summary' });\n\n  for (const account of parseBillingAccountsHtml(summary.text, mychartRequest.hostname)) {\n    let token: string | undefined;\n    try {\n      const details = await collector.send({ path: detailsPagePath(account) }, { tolerateFailure: true });\n      token = getRequestVerificationTokenFromBody(details.text);\n    } catch (err) {\n      if (err instanceof SessionExpiredError) throw err;\n      logger.debug('Failed to fetch billing details page:', (err as Error).message);\n    }\n\n    const visits = await collector.send({ path: visitsPath(account) });\n    try {\n      await hydrateStubs(collector, account, visits.body, token);\n    } catch (err) {\n      if (err instanceof SessionExpiredError) throw err;\n      logger.debug('Failed to hydrate billing charge rows:', (err as Error).message);\n    }\n\n    for (const path of [statementListPath(account), paymentListPath(account)]) {\n      try {\n        await collector.send({ path }, { tolerateFailure: true });\n      } catch (err) {\n        if (err instanceof SessionExpiredError) throw err;\n        logger.debug('Failed to fetch billing details:', (err as Error).message);\n      }\n    }\n  }\n\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getBillingHistory(mychartRequest: MyChartRequest): Promise<BillingStandard> {\n  return billingProcessor.standard(await fetchBillingRaw(mychartRequest));\n}\n\nexport async function getPaymentList(mychartRequest: MyChartRequest, billingAccount: BillingAccount): Promise<PaymentListResponse> {\n  const paymentListResponse = await makeAuthenticatedRequest(mychartRequest, { path: paymentListPath(billingAccount) });\n  return await paymentListResponse.json() as PaymentListResponse;\n}\n\nexport async function getStatementList(mychartRequest: MyChartRequest, billingAccount: BillingAccount): Promise<StatementListResponse> {\n  const statementsResponse = await makeAuthenticatedRequest(mychartRequest, { path: statementListPath(billingAccount) });\n  return await statementsResponse.json() as StatementListResponse;\n}\n\nexport async function getEncBillingId(mychartRequest: MyChartRequest, billingAccount: BillingAccount) {\n  const res = await makeAuthenticatedRequest(mychartRequest, { path: detailsPagePath(billingAccount) });\n  const body = await res.text();\n  const match = /EncID\"\\s*:\\s*\"([^\"]*)\"/.exec(body);\n  if (!match) {\n    logger.debug('unable to find end id');\n  }\n  return match?.[1];\n}\n\nexport async function saveStatementPdf(mychartRequest: MyChartRequest, encId: string, statement: StatementItem) {\n  const path = `/Billing/Details/DownloadFromBlob/?type=1&id=${statement.RecordID}&earId=${encId}&billSys=${statement.EncBillingSystem}&fileKey=${statement.ImagePath}&token=${encodeURIComponent(statement.Token)}&fileName=Statement_${statement.DateDisplay}&DocExt=PDF&PesId=&cid=`;\n\n  const statementPdf = await makeAuthenticatedRequest(mychartRequest, { path: path });\n  const pdfArrayBuffer = await statementPdf.arrayBuffer();\n\n  // Convert ArrayBuffer to a Node.js Buffer\n  return Buffer.from(pdfArrayBuffer);\n}\n\n/** What `download_billing_statement` returns: the PDF plus the statement it is. */\nexport interface BillingStatementPdf extends FilePayload {\n  statement: {\n    RecordID: string;\n    dateISO: string | null;\n    FormattedDateDisplay: string | null;\n    Description: string | null;\n    StatementAmountDisplay: string | null;\n    IsDetailBill: boolean | null;\n  };\n}\n\n/**\n * Find the statement whose `RecordID` a caller copied out of `get_billing`,\n * and which guarantor account it belongs to. Both lists are searched, because\n * the itemized bills (`DataDetailBill`) download the same way as statements.\n */\nasync function findStatement(\n  mychartRequest: MyChartRequest,\n  recordId: string,\n): Promise<{ account: BillingAccount; statement: StatementItem }> {\n  const summary = await makeAuthenticatedRequest(mychartRequest, { path: '/Billing/Summary' });\n  const accounts = parseBillingAccountsHtml(await summary.text(), mychartRequest.hostname);\n  const seen: string[] = [];\n  const seenByAccount: string[] = [];\n  for (const account of accounts) {\n    const statementList = await getStatementList(mychartRequest, account);\n    const statements = [\n      ...(statementList.DataStatement?.StatementList ?? []),\n      ...(statementList.DataDetailBill?.StatementList ?? []),\n    ];\n    const statement = statements.find((s) => s.RecordID === recordId);\n    if (statement) return { account, statement };\n    const ids = statements.map((s) => s.RecordID).filter(Boolean);\n    seen.push(...ids);\n    if (ids.length) seenByAccount.push(`account ${account.guarantorNumber}: ${ids.join(', ')}`);\n  }\n  const lead = `No billing statement has RecordID \"${recordId}\". get_billing lists each statement's RecordID; `;\n  if (!seen.length) throw new Error(lead + 'this login has no statements on any account.');\n  throw new DetailedError(\n    lead + `the RecordIDs on this login are ${seen.join(', ')}.`,\n    lead + `the statements on this login are — ${seenByAccount.join('; ')}.`,\n  );\n}\n\n/**\n * One statement or itemized bill as the PDF MyChart serves for it.\n *\n * The bytes are checked for the `%PDF` signature rather than trusted: a\n * stale token or a bad `EncID` comes back from `DownloadFromBlob` as an HTML\n * error page with status 200, and handing that to a caller as a `.pdf` is the\n * silent failure this exists to prevent.\n */\nexport async function downloadBillingStatement(\n  mychartRequest: MyChartRequest,\n  recordId: string,\n): Promise<BillingStatementPdf> {\n  const { account, statement } = await findStatement(mychartRequest, recordId);\n  const encId = await getEncBillingId(mychartRequest, account);\n  if (!encId) {\n    throw new DetailedError(\n      \"MyChart's billing details page for this statement's account carried no EncID, which the statement download needs.\",\n      `MyChart's billing details page for account ${account.guarantorNumber} carried no EncID, which the statement download needs.`,\n    );\n  }\n  const bytes = await saveStatementPdf(mychartRequest, encId, statement);\n  if (bytes.subarray(0, 4).toString() !== '%PDF') {\n    throw new DetailedError(\n      `MyChart did not return a PDF for statement ${recordId} (${bytes.length} bytes).`,\n      `MyChart did not return a PDF for statement ${recordId} (${bytes.length} bytes, starting \"${bytes.subarray(0, 40).toString().replace(/\\s+/g, ' ')}\").`,\n    );\n  }\n  return {\n    fileName: safeFileName(`Statement_${statement.DateDisplay || recordId}.pdf`, 'statement.pdf'),\n    mimeType: 'application/pdf',\n    bytes,\n    statement: {\n      RecordID: statement.RecordID,\n      dateISO: statementDateISO(statement.DateDisplay),\n      FormattedDateDisplay: statement.FormattedDateDisplay ?? null,\n      Description: statement.Description ?? null,\n      StatementAmountDisplay: statement.StatementAmountDisplay ?? null,\n      IsDetailBill: statement.IsDetailBill ?? null,\n    },\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Epic's day numbers — the `dte`/`Dat`/`DTE` integers that appear all over\n * MyChart's payloads.\n *\n * Epic runs on MUMPS, whose `$HOROLOG` counts whole days from 1840-12-31\n * rather than from the Unix epoch, so a MyChart date field is usually a plain\n * integer: 0 is 1840-12-31, 47117 is 1970-01-01, and (verified against a live\n * scheduling response) 67821 is 2026-09-08. Billing calls it `dte`, the visit\n * list calls it `Dat`, the anonymous scheduler calls it `Dte` and\n * `SearchRangeStartDte` — same number every time.\n *\n * Two framings exist because MyChart itself uses both:\n *\n * - **UTC** (`toEpicDte` / `fromEpicDte`) — for a day number that came off the\n *   wire alongside a UTC instant, so the two agree.\n * - **Local** (`toEpicDteLocal` / `fromEpicDteLocal`) — for a day number the\n *   browser would have produced from the user's wall clock. Epic's own pages\n *   send the local calendar date, and deriving it from UTC skips the rest of\n *   the current day for anyone west of Greenwich in the evening: at 9pm\n *   Pacific, UTC is already tomorrow.\n *\n * Pick the one that matches where the date came from; they differ by a day\n * near the edges, which is exactly when it matters.\n */\n\n/** 1840-12-31, the MUMPS `$HOROLOG` epoch, as a Unix timestamp in ms. */\nexport const EPIC_EPOCH_UTC = Date.UTC(1840, 11, 31);\n\nconst MS_PER_DAY = 86_400_000;\n\n/**\n * UTC midnight for a calendar date, built field by field.\n *\n * `Date.UTC(year, …)` maps years 0-99 onto 1900-1999; `setUTCFullYear` does\n * not, and Epic day numbers run back past 1841.\n */\nfunction utcMidnightMs(year: number, month: number, day: number): number {\n  const at = new Date(0);\n  at.setUTCFullYear(year, month, day);\n  at.setUTCHours(0, 0, 0, 0);\n  return at.valueOf();\n}\n\n/** The day number for the **UTC** calendar date of `date`. Time of day is ignored. */\nexport function toEpicDte(date: Date): number {\n  const ms = utcMidnightMs(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());\n  return Math.round((ms - EPIC_EPOCH_UTC) / MS_PER_DAY);\n}\n\n/** The day number for the **local** calendar date of `date`. Time of day is ignored. */\nexport function toEpicDteLocal(date: Date): number {\n  const ms = utcMidnightMs(date.getFullYear(), date.getMonth(), date.getDate());\n  return Math.round((ms - EPIC_EPOCH_UTC) / MS_PER_DAY);\n}\n\n/** The instant of **UTC** midnight on the day `dte` names. */\nexport function fromEpicDte(dte: number): Date {\n  return new Date(EPIC_EPOCH_UTC + dte * MS_PER_DAY);\n}\n\n/** The instant of **local** midnight on the day `dte` names. */\nexport function fromEpicDteLocal(dte: number): Date {\n  const utc = fromEpicDte(dte);\n  const local = new Date(0);\n  local.setFullYear(utc.getUTCFullYear(), utc.getUTCMonth(), utc.getUTCDate());\n  local.setHours(0, 0, 0, 0);\n  return local;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `/Billing/Summary` page: one `.ba_card` per guarantor account. Both\n * the scraper (to know which accounts to fetch details for) and the\n * processor (to build the account rows from the recorded page) parse it, so\n * it lives apart from either.\n */\n\nimport * as cheerio from 'cheerio';\nimport { logger } from '../../../../shared/logger';\nimport type { BillingAccount } from './types';\n\n/**\n * The pay-online path the summary page carries in its inline config\n * (`\"URLMakePayment\": \"~/Billing/Payment?ID=…\\u0026Context=…\"`), as a path\n * relative to the instance root. On the four live instances checked, this is\n * where the link lives — `GetVisits`' `URLMakePayment` is null on all of them.\n */\nexport function parsePaymentPath(html: string): string | null {\n  const match = /\"URLMakePayment\":\\s*\"([^\"]+)\"/.exec(html);\n  if (!match) return null;\n  const path = match[1]!.replace(/^~/, '').replaceAll('\\\\u0026', '&');\n  return path.startsWith('/') ? path : `/${path}`;\n}\n\nexport function parsePaymentUrl(html: string): { id: string; context: string } | null {\n  const regex = /\"URLMakePayment\":\\s*\"([^\"]+)\"/;\n  const match = regex.exec(html);\n  if (match) {\n    // Remove the leading '~/'\n    const urlStr = match[1]!.replace(/^~\\//, ''); // the one capture group is non-optional\n    // Split into path and query string\n    let [, queryString] = urlStr.split('?');\n    if (!queryString) {\n      logger.debug('returning null');\n      return null;\n    }\n    queryString = queryString.replaceAll('\\\\u0026', '&');\n\n    if (queryString) {\n      const params = new URLSearchParams(queryString);\n      const id = params.get('ID');\n      const context = params.get('Context');\n      if (id && context) {\n        return { id, context };\n      }\n    }\n  }\n  logger.debug('returning null');\n  return null;\n}\n\n/**\n * \"$1,234.56\" → 1234.56. Anything that is not a digit, a sign or a decimal\n * point is formatting; a plain `parseFloat` stopped at the thousands comma\n * and read \"$1,234.56\" as 1.\n */\nexport function parseAmount(display: string): number | undefined {\n  const cleaned = display.replace(/[^0-9.-]/g, '');\n  if (!cleaned) return undefined;\n  const amount = Number(cleaned);\n  return Number.isFinite(amount) ? amount : undefined;\n}\n\n/**\n * The accounts on the summary page. `hostname` only serves to resolve a\n * relative detail link far enough to read its query string, so any host does.\n */\nexport function parseBillingAccountsHtml(html: string, hostname = 'mychart.invalid'): BillingAccount[] {\n  const $ = cheerio.load(html);\n  const billing_accounts = $('.ba_card');\n  const accounts: BillingAccount[] = [];\n\n  for (const billing_account of billing_accounts.toArray()) {\n    const guarantorText = $('p.ba_card_header_account_idAndType', billing_account).text().trim();\n    const guarantorNumber = (/Guarantor #(\\d+)/.exec(guarantorText))?.[1] || 'unknown';\n    const patientName = (/\\((.*)\\)/.exec(guarantorText))?.[1] || 'unknown';\n    const amountdue = $('p.ba_card_status_due_amount', billing_account).text().trim();\n    const amountDueNum = amountdue ? parseAmount(amountdue) : undefined;\n\n    const link = $('p.ba_card_status_recentPaymentLabel a', billing_account).attr('href');\n    let ID, Context;\n    if (link) {\n      ID = new URL(link, 'https://' + hostname).searchParams.get('ID');\n      Context = new URL(link, 'https://' + hostname).searchParams.get('Context');\n    }\n    // Fallback: look for any link to /Billing/Details within the card (e.g. \"View Account Details\" link)\n    if (!ID || !Context) {\n      const detailsLink = $('a[href*=\"Billing/Details\"]', billing_account).attr('href');\n      if (detailsLink) {\n        const detailsUrl = new URL(detailsLink, 'https://' + hostname);\n        ID = detailsUrl.searchParams.get('ID');\n        Context = detailsUrl.searchParams.get('Context');\n      }\n    }\n    if (!ID || !Context) {\n      const paymentUrl = parsePaymentUrl(html);\n      ID = paymentUrl?.id;\n      Context = paymentUrl?.context;\n    }\n    if (!ID || !Context) continue;\n\n    accounts.push({ guarantorNumber, patientName, amountDue: amountDueNum, id: ID, context: Context });\n  }\n  return accounts;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Billing processor. Field decisions: docs/processor-layer-proposal.md, `get_billing`.\n *\n * The scraper records the summary page and then, per guarantor account,\n * `GetVisits`, `GetStatementList`, `LoadPaymentList` and the details page.\n * Those are GETs keyed by `id`/`context` in their query strings, so the join\n * here re-parses the summary cards and matches each recorded request to its\n * account by those parameters. `id`, `context` and `EncID` are internal —\n * visible in `raw` as the request paths and the details page.\n *\n * `GetVisits` spreads charges across nine overlapping lists whose population\n * differs by Epic release; reading one loses charges and reading all\n * double-counts (#380). They are merged most-specific-first and\n * de-duplicated on (`HospitalAccountId`, `StartDate`, `Description`,\n * `SelfAmountDueRaw`), with `category` naming the list a row came from.\n *\n * `GetVisits` also pages, returning the rows past the first page unhydrated\n * and priced at a fabricated `\"$0.00\"`. The scraper posts each of those back\n * to `GetMoreVisits`, one per request; {@link hydratedRows} collects the\n * answers and the merge swaps each stub for its real row. No caller ever\n * sees the placeholder: a stub that did not load is listed in\n * `unloadedVisits` instead, and `notice` says the visit list is incomplete.\n */\n\nimport { answered, findRequest, findRequests, type RawRequestRecord, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { htmlToText } from '../../processors/htmlText';\nimport { boolOrNull, list, num, rec, text, textOrNull } from '../../processors/read';\nimport type { BillingGetVisits, DataStatement, GetStatementList, LoadPaymentList, Statement } from './mychart.types';\nimport type { BillingAccountStandard, BillingCoverageInfoStandard, BillingPaymentStandard, BillingProcedureGroupStandard, BillingProcedureStandard, BillingStandard, BillingStatementStandard, BillingUnloadedVisitStandard, BillingVisitCategory, BillingVisitStandard } from './standardized.types';\n\nexport type { BillingAccountStandard, BillingCoverageInfoStandard, BillingPaymentStandard, BillingProcedureGroupStandard, BillingProcedureStandard, BillingStandard, BillingStatementStandard, BillingUnloadedReason, BillingUnloadedVisitStandard, BillingVisitCategory, BillingVisitStandard } from './standardized.types';\nimport { parseBillingAccountsHtml, parsePaymentPath } from './summaryHtml';\nimport type { BillingAccount } from './types';\n\n/** Most specific first, so a row in both \"bad debt\" and \"unified\" is reported as bad debt. */\nexport const VISIT_LIST_CATEGORIES: readonly BillingVisitCategory[] = [\n  'BadDebtVisitList',\n  'PaymentPlanVisitList',\n  'AdvanceBillVisitList',\n  'ContestedVisitList',\n  'AdjustmentVisitList',\n  'InformationalVisitList',\n  'NoBalanceVisitList',\n  'VisitList',\n  'UnifiedVisitList',\n];\n\nfunction scalarOrNull(value: unknown): string | number | null {\n  return typeof value === 'string' || typeof value === 'number' ? value : null;\n}\n\n/**\n * Whether `GetVisits` populated a charge row, read off `LevelOfDetailLoaded`.\n *\n * Epic pages this endpoint and lazy-loads the rows past the first page. An\n * unhydrated row is not empty, it is fabricated: `Description` is the\n * `\"{VisitType} at {Facility}\"` template with both slots blank, the procedure\n * and coverage lists are null, and every amount is the string `\"$0.00\"` even\n * on a visit charged thousands. The scraper posts those rows back to\n * `GetMoreVisits` and this merges the answers in, so a caller sees real\n * money; this predicate is how both sides agree on what still needs filling.\n *\n * Levels observed on the wire: `0` on every stub, `2` on every populated row.\n */\nexport function isStubRow(row: unknown): boolean {\n  return num(rec(row).LevelOfDetailLoaded) === 0;\n}\n\n/**\n * The `listOfAccounts[i].EncAccountID` value(s) a `GetMoreVisits` body\n * posted, in index order. The scraper posts one per request, so this is\n * normally a single handle; the index in the field name is still honoured\n * rather than parse order, because it is what ASP.NET binds on.\n */\nexport function postedHydrateKeys(requestBody: unknown): string[] {\n  if (typeof requestBody !== 'string') return [];\n  const indexed: Array<{ i: number; id: string }> = [];\n  for (const [field, value] of new URLSearchParams(requestBody)) {\n    const match = /^listOfAccounts\\[(\\d+)\\]\\.EncAccountID$/.exec(field);\n    if (match) indexed.push({ i: Number(match[1]), id: value });\n  }\n  return indexed.sort((a, b) => a.i - b.i).map((entry) => entry.id);\n}\n\nexport interface Hydration {\n  /** The hydrated row for each stub, keyed by the stub's encrypted handle. */\n  rows: Map<string, Record<string, unknown>>;\n  /** Handles whose own request succeeded and came back with no row. */\n  empty: Set<string>;\n}\n\n/**\n * The hydrated rows from every `GetMoreVisits` answer, keyed by the encrypted\n * handle of the stub each one answers — and the handles MyChart answered\n * with nothing at all.\n *\n * The answer carries nothing to join on — a stub's `HospitalAccountId` is an\n * encrypted handle (`WP-24…`), its hydrated row's is the plain account number\n * (`4820015507`), and no field on the hydrated row carries the handle back.\n * So the handle a row answers is read off the request it came back to: the\n * recorded `requestBody`. The scraper posts one stub per request, which makes\n * that pairing exact — one handle in, one row out.\n *\n * The pairing puts real money on a row, so it is checked rather than\n * trusted: {@link hydratedFor} drops a pair whose `StartDate` disagrees.\n *\n * An answer that succeeded and carried no populated row is MyChart declining\n * that stub, not a failure: one live instance answered the same two of 15\n * stubs with `Success: true` and an empty list on every attempt, alone or\n * batched, and Epic's own \"load all\" returned them as dateless placeholders.\n * One handle per request is what lets that answer name its stub.\n */\nfunction hydratedRows(raw: RawResponse): Hydration {\n  const hydration: Hydration = { rows: new Map(), empty: new Set() };\n  for (const record of findRequests(raw, 'GetMoreVisits')) {\n    if (!answered(record)) continue;\n    const posted = postedHydrateKeys(record.requestBody);\n    const body = rec(record.body);\n    const rows = list(rec(body.Data).UnifiedVisitList);\n    if (body.Success === true && !rows.some((row) => !isStubRow(row))) {\n      for (const handle of posted) hydration.empty.add(handle);\n      continue;\n    }\n    rows.forEach((row, i) => {\n      const handle = posted[i];\n      const r = rec(row);\n      if (!handle || isStubRow(r)) return;\n      hydration.rows.set(handle, r);\n    });\n  }\n  return hydration;\n}\n\n/**\n * The hydrated row answering one stub, or null when it does not agree with\n * the stub on the service date. The date is the one field a stub already has\n * right, so a row that came back to the wrong request fails to match instead\n * of quietly attaching one visit's charges to another.\n */\nfunction hydratedFor(\n  stub: Record<string, unknown>,\n  hydrated: Map<string, Record<string, unknown>>,\n): Record<string, unknown> | null {\n  const row = hydrated.get(text(stub.HospitalAccountId));\n  if (!row) return null;\n  return num(row.StartDate) === num(stub.StartDate) ? row : null;\n}\n\nfunction payment(value: unknown): BillingPaymentStandard {\n  const p = rec(value);\n  const receipt = p.Receipt === null || p.Receipt === undefined ? null : rec(p.Receipt);\n  return {\n    FormattedDateDisplay: textOrNull(p.FormattedDateDisplay),\n    Description: textOrNull(p.Description),\n    SubText: textOrNull(p.SubText),\n    PaymentAmountDisplay: textOrNull(p.PaymentAmountDisplay),\n    UndistributedAmountDisplay: textOrNull(p.UndistributedAmountDisplay),\n    Receipt: receipt === null ? null : { DisplayNumber: textOrNull(receipt.DisplayNumber), SerialNumber: textOrNull(receipt.SerialNumber) },\n  };\n}\n\nfunction procedure(value: unknown): BillingProcedureStandard {\n  const p = rec(value);\n  const description = textOrNull(p.Description);\n  return {\n    DescriptionText: description === null ? null : htmlToText(description),\n    Amount: textOrNull(p.Amount),\n    SelfAmountDue: textOrNull(p.SelfAmountDue),\n    InsuranceAmountDue: textOrNull(p.InsuranceAmountDue),\n    IsContested: boolOrNull(p.IsContested),\n    HasAmountDue: boolOrNull(p.HasAmountDue),\n    PaymentList: list(p.PaymentList).map(payment),\n    SelfBadDebtAmount: textOrNull(p.SelfBadDebtAmount),\n    HasBadDebtAmount: boolOrNull(p.HasBadDebtAmount),\n    AdjustmentsOnly: boolOrNull(p.AdjustmentsOnly),\n    BillingSystem: num(p.BillingSystem),\n  };\n}\n\nfunction procedureGroup(value: unknown): BillingProcedureGroupStandard {\n  const g = rec(value);\n  return {\n    Description: textOrNull(g.Description),\n    Amount: textOrNull(g.Amount),\n    ProcedureList: list(g.ProcedureList).map(procedure),\n    PaymentList: list(g.PaymentList).map(payment),\n    EstPlanPaymentList: list(g.EstPlanPaymentList).map(payment),\n  };\n}\n\nfunction coverageInfo(value: unknown): BillingCoverageInfoStandard {\n  const c = rec(value);\n  return {\n    CoverageName: textOrNull(c.CoverageName),\n    Billed: textOrNull(c.Billed),\n    Covered: textOrNull(c.Covered),\n    PendingInsurance: textOrNull(c.PendingInsurance),\n    RemainingResponsibility: textOrNull(c.RemainingResponsibility),\n    Copay: textOrNull(c.Copay),\n    Deductible: textOrNull(c.Deductible),\n    Coinsurance: textOrNull(c.Coinsurance),\n    NotCovered: textOrNull(c.NotCovered),\n    Benefits: list(c.Benefits).map((b) => ({ Name: textOrNull(rec(b).Name), Amount: textOrNull(rec(b).Amount) })),\n  };\n}\n\nfunction visit(value: unknown, category: BillingVisitCategory): BillingVisitStandard {\n  const v = rec(value);\n  const estimate = v.EstimateInfo === null || v.EstimateInfo === undefined ? null : rec(v.EstimateInfo);\n  const agency = rec(v.AgencyInformation);\n  return {\n    category,\n    StartDateDisplay: textOrNull(v.StartDateDisplay),\n    DateRangeDisplay: textOrNull(v.DateRangeDisplay),\n    Description: textOrNull(v.Description),\n    Patient: textOrNull(v.Patient),\n    Provider: textOrNull(v.Provider),\n    HospitalAccountDisplay: textOrNull(v.HospitalAccountDisplay),\n    HospitalAccountId: textOrNull(v.HospitalAccountId),\n    PrimaryPayer: textOrNull(v.PrimaryPayer),\n    ChargeAmount: textOrNull(v.ChargeAmount),\n    InsurancePaymentAmount: textOrNull(v.InsurancePaymentAmount),\n    InsuranceAmountDue: textOrNull(v.InsuranceAmountDue),\n    InsuranceEstimatedPaymentAmount: textOrNull(v.InsuranceEstimatedPaymentAmount),\n    InsuranceAmountDueRaw: num(v.InsuranceAmountDueRaw),\n    SelfPaymentAmount: textOrNull(v.SelfPaymentAmount),\n    SelfAmountDue: textOrNull(v.SelfAmountDue),\n    SelfAmountDueRaw: num(v.SelfAmountDueRaw),\n    SelfAdjustmentAmount: textOrNull(v.SelfAdjustmentAmount),\n    SelfDiscountAmount: textOrNull(v.SelfDiscountAmount),\n    SelfBadDebtAmount: textOrNull(v.SelfBadDebtAmount),\n    SelfBadDebtAmountRaw: num(v.SelfBadDebtAmountRaw),\n    SelfPaymentPlanAmountDue: textOrNull(v.SelfPaymentPlanAmountDue),\n    SelfPaymentPlanAmountDueRaw: num(v.SelfPaymentPlanAmountDueRaw),\n    NotOnPlanAmount: textOrNull(v.NotOnPlanAmount),\n    NotOnPlanAmountRaw: num(v.NotOnPlanAmountRaw),\n    ContestedChargeAmount: textOrNull(v.ContestedChargeAmount),\n    ContestedPaymentAmount: textOrNull(v.ContestedPaymentAmount),\n    SurchargeAmount: textOrNull(v.SurchargeAmount),\n    TaxOrSurcharge: num(v.TaxOrSurcharge),\n    IsPatientNotResponsible: boolOrNull(v.IsPatientNotResponsible),\n    PatientNotResponsibleYet: boolOrNull(v.PatientNotResponsibleYet),\n    IsOnPaymentPlan: boolOrNull(v.IsOnPaymentPlan),\n    IsNotOnPaymentPlan: boolOrNull(v.IsNotOnPaymentPlan),\n    IsBadDebtHAR: boolOrNull(v.IsBadDebtHAR),\n    IsBadDebtVisit: boolOrNull(v.IsBadDebtVisit),\n    IsContestedHAR: boolOrNull(v.IsContestedHAR),\n    IsClosedHospitalAccount: boolOrNull(v.IsClosedHospitalAccount),\n    AdjustmentsOnly: boolOrNull(v.AdjustmentsOnly),\n    PatFriendlyAccountStatusAccessibleText: textOrNull(v.PatFriendlyAccountStatusAccessibleText),\n    EstimateInfo: estimate === null ? null : { EstimateAmount: textOrNull(estimate.EstimateAmount), EstimateStatus: num(estimate.EstimateStatus) },\n    AgencyInformation: { Name: textOrNull(agency.Name), PhoneNumber: textOrNull(agency.PhoneNumber) },\n    AgencyInformationDescription: textOrNull(v.AgencyInformationDescription),\n    ProcedureList: list(v.ProcedureList).map(procedure),\n    ProcedureGroupList: list(v.ProcedureGroupList).map(procedureGroup),\n    CoverageInfoList: list(v.CoverageInfoList).map(coverageInfo),\n  };\n}\n\nfunction unloadedVisit(stub: Record<string, unknown>, category: BillingVisitCategory, hydration: Hydration): BillingUnloadedVisitStandard {\n  return {\n    category,\n    StartDate: num(stub.StartDate),\n    StartDateDisplay: textOrNull(stub.StartDateDisplay),\n    BillingSystemDisplay: textOrNull(stub.BillingSystemDisplay),\n    reason: hydration.empty.has(text(stub.HospitalAccountId)) || hydration.empty.has(text(stub.EmptyVisitEstimateID))\n      ? 'returned_empty'\n      : 'not_loaded',\n  };\n}\n\n/**\n * The nine `GetVisits` lists as one, most specific category first,\n * de-duplicated — with every stub replaced by the row `GetMoreVisits`\n * returned for it.\n *\n * The swap happens before de-duplication because a stub and its hydrated self\n * do not look alike: the identity includes `Description` and\n * `SelfAmountDueRaw`, which are exactly the fields hydration fills in.\n *\n * A stub that did not load goes to `unloadedVisits`, never `visits`: its\n * every amount is a fabricated `\"$0.00\"` that reads exactly like a settled\n * visit, so a caller summing `visits` must not see it. The rows that did load\n * are still returned — one visit MyChart will not serve is no reason to lose\n * the rest of the account.\n */\nexport function mergeVisitLists(\n  data: Record<string, unknown>,\n  hydration: Hydration = { rows: new Map(), empty: new Set() },\n): { visits: BillingVisitStandard[]; unloadedVisits: BillingUnloadedVisitStandard[] } {\n  const seen = new Set<string>();\n  const visits: BillingVisitStandard[] = [];\n  const unloadedVisits: BillingUnloadedVisitStandard[] = [];\n  for (const category of VISIT_LIST_CATEGORIES) {\n    for (const row of list(data[category])) {\n      let r = rec(row);\n      if (isStubRow(r)) r = hydratedFor(r, hydration.rows) ?? r;\n      const identity = `${text(r.HospitalAccountId)}|${num(r.StartDate) ?? ''}|${text(r.Description)}|${num(r.SelfAmountDueRaw) ?? ''}`;\n      if (seen.has(identity)) continue;\n      seen.add(identity);\n      if (isStubRow(r)) unloadedVisits.push(unloadedVisit(r, category, hydration));\n      else visits.push(visit(r, category));\n    }\n  }\n  return { visits, unloadedVisits };\n}\n\n/** The sentence `notice` carries, or null when every account loaded every row. */\nfunction unloadedNotice(accounts: BillingAccountStandard[]): string | null {\n  const parts = accounts\n    .filter((a) => a.unloadedVisits.length > 0)\n    .map((a) => {\n      const dates = a.unloadedVisits.map((v) => v.StartDateDisplay ?? 'unknown date').join(', ');\n      return `${a.unloadedVisits.length} of ${a.visits.length + a.unloadedVisits.length} charge rows on guarantor account ${a.guarantorNumber} (service dates ${dates})`;\n    });\n  if (parts.length === 0) return null;\n  const declined = accounts.some((a) => a.unloadedVisits.some((v) => v.reason === 'returned_empty'));\n  const failed = accounts.some((a) => a.unloadedVisits.some((v) => v.reason === 'not_loaded'));\n  return (\n    `MyChart did not load ${parts.join('; ')}. They are listed under unloadedVisits and left out of visits, ` +\n    'so the visit list is incomplete — their charges are unknown, not $0.00. The account balances come from ' +\n    'the billing summary and are not affected.' +\n    (declined ? \" For rows marked returned_empty, MyChart answered with no detail; its own billing page can't show them either.\" : '') +\n    (failed ? ' Rows marked not_loaded failed to load and may load on a retry.' : '')\n  );\n}\n\n/** `20251130` → `2025-11-30`; null for anything else. */\nexport function statementDateISO(dateDisplay: unknown): string | null {\n  const match = /^(\\d{4})(\\d{2})(\\d{2})$/.exec(text(dateDisplay));\n  return match ? `${match[1]}-${match[2]}-${match[3]}` : null;\n}\n\nexport function statement(value: unknown): BillingStatementStandard {\n  const s = rec<Statement>(value);\n  return {\n    dateISO: statementDateISO(s.DateDisplay),\n    // No live capture has this field; only the hand-written fixture does.\n    FormattedDateDisplay: textOrNull(rec(value).FormattedDateDisplay),\n    DateDisplay: textOrNull(s.DateDisplay),\n    Description: textOrNull(s.Description),\n    SubText: textOrNull(s.SubText),\n    StatementAmountDisplay: textOrNull(s.StatementAmountDisplay),\n    IsRead: boolOrNull(s.IsRead),\n    IsDetailBill: boolOrNull(s.IsDetailBill),\n    IsPaperless: boolOrNull(s.IsPaperless),\n    ServiceDateStart: scalarOrNull(s.ServiceDateStart),\n    ServiceDateEnd: scalarOrNull(s.ServiceDateEnd),\n    RecordID: textOrNull(s.RecordID),\n  };\n}\n\nfunction queryParams(path: string): URLSearchParams {\n  const q = path.indexOf('?');\n  return new URLSearchParams(q < 0 ? '' : path.slice(q + 1));\n}\n\n/** The recorded request for `fragment` whose `id`/`context` query params name this account. */\nfunction accountRequest(raw: RawResponse, source: BillingAccount, fragment: string): RawRequestRecord | undefined {\n  return findRequests(raw, fragment).find((r) => {\n    const params = queryParams(r.path);\n    const id = params.get('id') ?? params.get('ID');\n    const context = params.get('context') ?? params.get('Context');\n    return id === source.id && context === source.context;\n  });\n}\n\nfunction account(raw: RawResponse, source: BillingAccount, hydration: Hydration): BillingAccountStandard {\n  const data = rec(rec<BillingGetVisits>(accountRequest(raw, source, 'GetVisits')?.body).Data);\n  const { visits, unloadedVisits } = mergeVisitLists(data, hydration);\n  const alert = rec(data.PartialPaymentPlanAlert);\n  const banner = rec(alert.Banner);\n  const agency = rec(data.SharedAgencyInformation);\n  const unavailable: string[] = [];\n  function tolerated(fragment: string): unknown {\n    const record = accountRequest(raw, source, fragment);\n    if (!answered(record)) {\n      unavailable.push(fragment);\n      return {};\n    }\n    return record.body;\n  }\n  const statementsBody = rec<GetStatementList>(tolerated('GetStatementList'));\n  const paymentsBody = rec<LoadPaymentList>(tolerated('LoadPaymentList'));\n  return {\n    guarantorNumber: source.guarantorNumber,\n    patientName: source.patientName,\n    amountDueNumber: source.amountDue ?? null,\n    paymentUrl: paymentPathFor(raw, source),\n    visits,\n    unloadedVisits,\n    VisitListAmount: textOrNull(data.VisitListAmount),\n    BadDebtVisitListAmount: textOrNull(data.BadDebtVisitListAmount),\n    PaymentPlanVisitListAmount: textOrNull(data.PaymentPlanVisitListAmount),\n    NotPaymentPlanVisitListAmount: textOrNull(data.NotPaymentPlanVisitListAmount),\n    AdvanceBillVisitListAmount: textOrNull(data.AdvanceBillVisitListAmount),\n    AdjustmentVisitListAmount: textOrNull(data.AdjustmentVisitListAmount),\n    VisitAutoPayVisitListAmount: textOrNull(data.VisitAutoPayVisitListAmount),\n    ContestedVisitListAmount: textOrNull(data.ContestedVisitListAmount),\n    PaymentPlanVisitListAutoPayAmount: textOrNull(data.PaymentPlanVisitListAutoPayAmount),\n    PaymentPlanVisitListScheduledDate: scalarOrNull(data.PaymentPlanVisitListScheduledDate),\n    EstimatedPaymentPlanBalance: scalarOrNull(data.EstimatedPaymentPlanBalance),\n    PaymentPlanVisitListPostResolutionAmount: textOrNull(data.PaymentPlanVisitListPostResolutionAmount),\n    CanMakePayment: boolOrNull(data.CanMakePayment),\n    URLMakePayment: textOrNull(data.URLMakePayment),\n    HasUnconvertedPBVisits: boolOrNull(data.HasUnconvertedPBVisits),\n    HasVisits: boolOrNull(data.HasVisits),\n    PartialPaymentPlanAlert: {\n      Code: num(alert.Code),\n      Banner: { HeaderText: textOrNull(banner.HeaderText), DetailText: textOrNull(banner.DetailText) },\n    },\n    UndistributedPayments: list(data.UndistributedPayments),\n    SharedAgencyInformation: { Name: textOrNull(agency.Name), PhoneNumber: textOrNull(agency.PhoneNumber) },\n    statements: [\n      ...list(rec<DataStatement>(statementsBody.DataStatement).StatementList),\n      ...list(rec<DataStatement>(statementsBody.DataDetailBill).StatementList),\n    ].map(statement),\n    payments: list(rec(paymentsBody.Data).PaymentList).map(payment),\n    unavailable,\n  };\n}\n\n/** The summary page's pay-online path, when it names this account's id. */\nfunction paymentPathFor(raw: RawResponse, source: BillingAccount): string | null {\n  const summary = text(findRequest(raw, '/Billing/Summary')?.body);\n  const path = parsePaymentPath(summary);\n  if (!path) return null;\n  const id = new URLSearchParams(path.split('?')[1] ?? '').get('ID');\n  return id === null || id === source.id ? path : null;\n}\n\nexport const billingProcessor: Processor<BillingStandard> = {\n  standard(raw: RawResponse): BillingStandard {\n    const summary = text(findRequest(raw, '/Billing/Summary')?.body);\n    const hydration = hydratedRows(raw);\n    const accounts = parseBillingAccountsHtml(summary).map((source) => account(raw, source, hydration));\n    const cents = accounts.reduce((sum, a) => sum + Math.round((a.amountDueNumber ?? 0) * 100), 0);\n    return { totalDue: cents / 100, notice: unloadedNotice(accounts), accounts };\n  },\n  concise(standard) {\n    return {\n      totalDue: standard.totalDue,\n      notice: standard.notice,\n      accounts: standard.accounts.map((a) => ({\n        guarantorNumber: a.guarantorNumber,\n        patientName: a.patientName,\n        amountDueNumber: a.amountDueNumber,\n        visits: a.visits.map((v) => ({\n          StartDateDisplay: v.StartDateDisplay,\n          DateRangeDisplay: v.DateRangeDisplay,\n          Description: v.Description,\n          Patient: v.Patient,\n          Provider: v.Provider,\n          PrimaryPayer: v.PrimaryPayer,\n          ChargeAmount: v.ChargeAmount,\n          InsurancePaymentAmount: v.InsurancePaymentAmount,\n          InsuranceAmountDue: v.InsuranceAmountDue,\n          SelfPaymentAmount: v.SelfPaymentAmount,\n          SelfAmountDue: v.SelfAmountDue,\n          category: v.category,\n        })),\n        statements: a.statements.map((s) => ({\n          dateISO: s.dateISO,\n          FormattedDateDisplay: s.FormattedDateDisplay,\n          Description: s.Description,\n          StatementAmountDisplay: s.StatementAmountDisplay,\n          IsRead: s.IsRead,\n          RecordID: s.RecordID,\n        })),\n        payments: a.payments.map((p) => ({\n          FormattedDateDisplay: p.FormattedDateDisplay,\n          Description: p.Description,\n          PaymentAmountDisplay: p.PaymentAmountDisplay,\n        })),\n        unloadedVisits: a.unloadedVisits.map((v) => ({ StartDateDisplay: v.StartDateDisplay, reason: v.reason })),\n        unavailable: a.unavailable,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Insurance processor. Field decisions: docs/processor-layer-proposal.md, `get_insurance`.\n *\n * `GET /Insurance` carries no coverage at all. The page is a shell — its whole\n * body is `<div id=\"coverages-list\"></div>` — and `$$WP.Insurance.CoveragesController`\n * in `bundles/insurance-controllers` fills it from:\n *\n *   POST /Insurance/Coverages/GetCoverages   → { ActiveCoverages: [...], … }\n *\n * form-encoded, with the antiforgery token off the `/Insurance` page. The\n * scraper that read the page's markup could therefore only ever return an\n * empty list from a real instance, whatever the patient's coverage was; the\n * selectors it used (`.coverage-card`, `.plan-name`, `.member-id`) exist\n * nowhere in Epic's markup and were written against the fake.\n *\n * Captured on four live instances (three November 2025, one August 2025). The\n * coverage element's field set was identical on all four, and one of the four\n * genuinely has no coverage on file — which is how the difference between \"no\n * coverage\" and \"we could not read the page\" is now an observed distinction\n * rather than a guess about a sentence in some HTML.\n *\n * MyChart returns coverages in five buckets by where they are in the\n * submission workflow. They are kept apart rather than concatenated: a\n * coverage waiting to be verified by the organization is not one a clinic can\n * bill today, and flattening them is how a pending card reads as active.\n *\n * Each coverage passes through whole with `bucket` added. The interface names\n * the keys the captures showed, but nothing is dropped for being empty on\n * them: four accounts that never uploaded an insurance card say nothing about\n * whether `FrontDocument` is ever populated, and `standard` is not the place to\n * decide a caller does not need the card image, the FHIR id or a date of birth.\n */\n\nimport { findRequest, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, num, rec, textOrNull } from '../../processors/read';\nimport type { ActiveCoverage, InsuranceGetCoverages } from './mychart.types';\nimport type { CoverageBucket, InsuranceCoverageStandard, InsuranceStandard } from './standardized.types';\n\nexport type { CoverageBucket, InsuranceCoverageStandard, InsuranceStandard } from './standardized.types';\n\nexport const GET_COVERAGES_PATH = '/Insurance/Coverages/GetCoverages';\n\n/** The five buckets `GetCoverages` splits its coverages into, in MyChart's own order. */\nexport const COVERAGE_BUCKETS: readonly CoverageBucket[] = [\n  'ActiveCoverages',\n  'CoveragesPendingSubmission',\n  'CoveragesPendingDeletion',\n  'CoveragesInReview',\n  'CoveragesInVerification',\n] as const;\n\n/**\n * The element whole, with `bucket` added — the same pass-through the goals\n * processor uses. The named reads below only normalize the documented keys to\n * `null` when MyChart sent a non-string/number/boolean; every other key MyChart\n * sent survives verbatim, because \"empty on four accounts\" is not a reason to\n * drop a field (CLAUDE.md) and a card image the caller cannot reach is a field\n * dropped.\n */\nfunction coverage(value: unknown, bucket: CoverageBucket): InsuranceCoverageStandard {\n  const c = rec<ActiveCoverage>(value);\n  return {\n    ...c,\n    CoverageId: textOrNull(c.CoverageId),\n    CoverageName: textOrNull(c.CoverageName),\n    PayorId: textOrNull(c.PayorId),\n    PayorName: textOrNull(c.PayorName),\n    PlanName: textOrNull(c.PlanName),\n    SubscriberId: textOrNull(c.SubscriberId),\n    SubscriberName: textOrNull(c.SubscriberName),\n    SubscriberIsSelf: boolOrNull(c.SubscriberIsSelf),\n    MemberId: textOrNull(c.MemberId),\n    MemberName: textOrNull(c.MemberName),\n    GroupNumber: textOrNull(c.GroupNumber),\n    FormattedEffectiveDate: textOrNull(c.FormattedEffectiveDate),\n    FormattedEndDate: textOrNull(c.FormattedEndDate),\n    Future: boolOrNull(c.Future),\n    Termed: boolOrNull(c.Termed),\n    Comments: textOrNull(c.Comments),\n    SuspendedText: textOrNull(c.SuspendedText),\n    Status: num(c.Status),\n    CoverageType: num(c.CoverageType),\n    CvgCoveredStatus: num(c.CvgCoveredStatus),\n    CvgReason: num(c.CvgReason),\n    bucket,\n  };\n}\n\nexport const insuranceProcessor: Processor<InsuranceStandard> = {\n  standard(raw: RawResponse): InsuranceStandard {\n    const record = findRequest(raw, GET_COVERAGES_PATH);\n    if (!record || record.status < 200 || record.status >= 300) {\n      throw new Error(`${GET_COVERAGES_PATH} returned HTTP ${record?.status ?? 'nothing'}`);\n    }\n\n    // The same 200-with-an-empty-body an unrecognized encounter context gets\n    // from the sibling GetPayors endpoint on this controller. It is not an\n    // error and it is not \"no coverage on file\"; reporting it as the latter is\n    // the whole failure this capability exists to avoid.\n    if (record.body === '') {\n      throw new Error(\n        `${GET_COVERAGES_PATH} returned an empty body, which is how MyChart answers an ` +\n          'unrecognized encounter context. Refusing to report \"no insurance on file\" from it.',\n      );\n    }\n\n    const envelope = rec<InsuranceGetCoverages>(record.body);\n    // Every bucket is an array on a real response, including on the captured\n    // account with no coverage at all. None of them being an array means the\n    // session expired into the login page, or this instance does not serve the\n    // Insurance activity — neither of which is an answer about insurance.\n    if (!COVERAGE_BUCKETS.some((bucket) => Array.isArray(envelope[bucket]))) {\n      throw new Error(\n        `${GET_COVERAGES_PATH} returned none of the coverage lists (${COVERAGE_BUCKETS.join(', ')}). ` +\n          'Refusing to report \"no insurance on file\" from a response shape we don\\'t recognize.',\n      );\n    }\n\n    const buckets = Object.fromEntries(\n      COVERAGE_BUCKETS.map((bucket) => {\n        const value = envelope[bucket];\n        return [bucket, (Array.isArray(value) ? value : []).map((c) => coverage(c, bucket))];\n      }),\n    ) as Record<CoverageBucket, InsuranceCoverageStandard[]>;\n\n    return {\n      ...buckets,\n      hasNoCoverages: COVERAGE_BUCKETS.every((bucket) => buckets[bucket].length === 0),\n      IsProxyContext: boolOrNull(envelope.IsProxyContext),\n      Settings: rec(envelope.Settings),\n    };\n  },\n\n  concise(standard) {\n    const brief = (c: InsuranceCoverageStandard) => ({\n      CoverageName: c.CoverageName,\n      PayorName: c.PayorName,\n      MemberId: c.MemberId,\n      GroupNumber: c.GroupNumber,\n      FormattedEffectiveDate: c.FormattedEffectiveDate,\n      bucket: c.bucket,\n    });\n    return {\n      // One list in concise: which bucket a coverage came from rides on the\n      // coverage, so four empty headings do not crowd out the one that matters.\n      coverages: COVERAGE_BUCKETS.flatMap((bucket) => standard[bucket].map(brief)),\n      hasNoCoverages: standard.hasNoCoverages,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { GET_COVERAGES_PATH, insuranceProcessor, type InsuranceStandard } from './insurance.processor';\n\nexport type { InsuranceStandard, InsuranceCoverageStandard, CoverageBucket } from './insurance.processor';\nexport { insuranceProcessor, COVERAGE_BUCKETS, GET_COVERAGES_PATH } from './insurance.processor';\n\n/**\n * The patient's insurance coverages.\n *\n * `GET /Insurance` is a shell page — the coverage list is an empty\n * `<div id=\"coverages-list\">` that `$$WP.Insurance.CoveragesController` fills\n * over AJAX, so scraping the page's markup returns nothing on every real\n * instance. The page is still fetched, because it carries the antiforgery\n * token the POST requires, and it is recorded as `purpose: 'token'` so `raw`\n * mode unwraps to the coverage payload rather than to a page of markup.\n *\n * The four form fields are the controller's own (`_loadCoverages`):\n * `isStandAlone` is true on the standalone Insurance activity, and the three\n * `encounter*` fields carry the pre-visit verification context when the same\n * component runs inside eCheck-In. All three are empty here, exactly as the\n * standalone page sends them.\n */\nexport async function fetchInsuranceRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Insurance');\n\n  await collector.send({\n    path: GET_COVERAGES_PATH,\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n      'X-Requested-With': 'XMLHttpRequest',\n      __RequestVerificationToken: token,\n    },\n    body: new URLSearchParams({\n      isStandAlone: 'true',\n      encounterCsn: '',\n      encounterDepartmentId: '',\n      encounterDTE: '',\n    }).toString(),\n  });\n\n  return collector.toRaw();\n}\n\n/**\n * The standard object — what `mode: 'json'` returns. Throws rather than\n * reporting \"no insurance on file\" when the endpoint did not answer with a\n * recognizable envelope.\n */\nexport async function getInsurance(mychartRequest: MyChartRequest): Promise<InsuranceStandard> {\n  return insuranceProcessor.standard(await fetchInsuranceRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Insurance benefits processor. Field decisions: this folder's README.md.\n *\n * `GetBenefitsSummary` is the \"Insurance benefits\" card on the billing\n * activity: how much of the deductible and the out-of-pocket maximum has been\n * used, how much is left, and when the accumulator resets. `moop` is Epic's\n * name for maximum out-of-pocket and keeps it (rule 2).\n *\n * The endpoint is keyed by GUARANTOR ACCOUNT, not by coverage — its two\n * arguments are the `id` and `context` the billing summary page carries per\n * account — so a patient with two guarantor accounts has two of these, and the\n * standard object is a list of accounts rather than a single card. The\n * guarantor number and patient name on each row are read off the same summary\n * card the request was addressed from, so a reader can tell the two apart;\n * nothing in the response itself identifies the account.\n *\n * Each limit carries two buckets, `accountBucket` and `patientBucket`, and\n * they stay apart. On the one captured account `accountBucket` was entirely\n * blank — empty-string amounts, `rollPeriod: \"0\"` — while `patientBucket`\n * carried the real numbers, which is exactly the case rule 6 covers: a field\n * that is populated on some responses and not others is emitted every time,\n * and the processor never looks at the value to decide.\n *\n * Shape captured on ONE real instance (N=1). Everything below is a field name\n * that capture showed; nothing is projected that has not been seen.\n */\n\nimport { answered, findRequest, findRequests, type RawRequestRecord, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, num, rec, text, textOrNull } from '../../processors/read';\nimport type { AccountBucket, Deductible, GetBenefitsSummary } from './mychart.types';\nimport type { BenefitBucketStandard, BenefitLimitStandard, InsuranceBenefitsAccountStandard, InsuranceBenefitsStandard } from './standardized.types';\n\nexport type { BenefitBucketStandard, BenefitLimitStandard, InsuranceBenefitsAccountStandard, InsuranceBenefitsStandard } from './standardized.types';\nimport { parseAmount, parseBillingAccountsHtml } from '../bills/summaryHtml';\nimport type { BillingAccount } from '../bills/types';\n\nexport const GET_BENEFITS_SUMMARY_PATH = '/api/billing-details/GetBenefitsSummary';\n\nfunction amount(value: unknown): number | null {\n  return parseAmount(text(value)) ?? null;\n}\n\nfunction bucket(value: unknown): BenefitBucketStandard {\n  const b = rec<AccountBucket>(value);\n  return {\n    isLimit: boolOrNull(b.isLimit),\n    type: textOrNull(b.type),\n    totalAmount: textOrNull(b.totalAmount),\n    usedAmount: textOrNull(b.usedAmount),\n    remainingAmount: textOrNull(b.remainingAmount),\n    totalAmountNumber: amount(b.totalAmount),\n    usedAmountNumber: amount(b.usedAmount),\n    remainingAmountNumber: amount(b.remainingAmount),\n    usedRatio: num(b.usedRatio),\n    isTotalZero: boolOrNull(b.isTotalZero),\n    rollPeriodEndDate: textOrNull(b.rollPeriodEndDate),\n    rollPeriod: textOrNull(b.rollPeriod),\n    numberOfPeriods: num(b.numberOfPeriods),\n    usedOnPrevLevel: textOrNull(b.usedOnPrevLevel),\n  };\n}\n\nfunction limit(value: unknown): BenefitLimitStandard | null {\n  if (value === null || typeof value !== 'object' || Array.isArray(value)) return null;\n  const l = rec<Deductible>(value);\n  return {\n    type: textOrNull(l.type),\n    network: textOrNull(l.network),\n    name: textOrNull(l.name),\n    accountBucket: bucket(l.accountBucket),\n    patientBucket: bucket(l.patientBucket),\n  };\n}\n\n/**\n * The recorded `GetBenefitsSummary` whose posted `guarantorId` names this\n * account. The calls differ only in their bodies — same path, same method —\n * so the request body is the only discriminator, which is why the collector\n * records it.\n */\nfunction benefitsRequestFor(raw: RawResponse, source: BillingAccount): RawRequestRecord | undefined {\n  return findRequests(raw, GET_BENEFITS_SUMMARY_PATH).find(\n    (r) => rec(r.requestBody).guarantorId === source.id,\n  );\n}\n\nfunction account(body: unknown, source: BillingAccount): InsuranceBenefitsAccountStandard {\n  const b = rec<GetBenefitsSummary>(body);\n  return {\n    guarantorNumber: source.guarantorNumber,\n    patientName: source.patientName,\n    coverageName: textOrNull(b.coverageName),\n    payerName: textOrNull(b.payerName),\n    lastUpdatedText: textOrNull(b.lastUpdatedText),\n    helpText: textOrNull(b.helpText),\n    coverageId: textOrNull(b.coverageId),\n    benefitsPatientId: textOrNull(b.benefitsPatientId),\n    queryKey: textOrNull(b.queryKey),\n    noCoverageAvailable: boolOrNull(b.noCoverageAvailable),\n    hasAmbiguousCoverages: boolOrNull(b.hasAmbiguousCoverages),\n    hasRTEUpdateInProgress: boolOrNull(b.hasRTEUpdateInProgress),\n    canAccessInsuranceHub: boolOrNull(b.canAccessInsuranceHub),\n    canAccessInsuranceSummary: boolOrNull(b.canAccessInsuranceSummary),\n    canAccessCustomerService: boolOrNull(b.canAccessCustomerService),\n    canAccessAnyLinks: boolOrNull(b.canAccessAnyLinks),\n    insuranceHubUrl: textOrNull(b.insuranceHubUrl),\n    payerPhoneNumber: textOrNull(b.payerPhoneNumber),\n    deductible: limit(b.deductible),\n    moop: limit(b.moop),\n    insuranceLimit: limit(b.insuranceLimit),\n  };\n}\n\nexport const insuranceBenefitsProcessor: Processor<InsuranceBenefitsStandard> = {\n  standard(raw: RawResponse): InsuranceBenefitsStandard {\n    const summary = text(findRequest(raw, '/Billing/Summary')?.body);\n    const accounts: InsuranceBenefitsAccountStandard[] = [];\n    const unavailable: string[] = [];\n\n    for (const source of parseBillingAccountsHtml(summary)) {\n      const record = benefitsRequestFor(raw, source);\n      if (!answered(record)) {\n        // The scraper tolerates a per-account failure so one guarantor\n        // account's outage does not cost the other's deductible; naming it\n        // here is what keeps that from reading as \"you have no deductible\".\n        unavailable.push(source.guarantorNumber);\n        continue;\n      }\n      accounts.push(account(record.body, source));\n    }\n\n    return {\n      accounts,\n      // Never claimed over an account we could not read: an unavailable\n      // account's accumulators are unknown, which is not \"none\".\n      hasNoBenefits: unavailable.length === 0 && accounts.every((a) => a.noCoverageAvailable === true),\n      unavailable,\n    };\n  },\n\n  concise(standard) {\n    const brief = (b: BenefitBucketStandard) => ({\n      type: b.type,\n      totalAmount: b.totalAmount,\n      usedAmount: b.usedAmount,\n      remainingAmount: b.remainingAmount,\n      rollPeriodEndDate: b.rollPeriodEndDate,\n    });\n    const briefLimit = (l: BenefitLimitStandard | null) =>\n      l === null\n        ? null\n        : {\n            name: l.name,\n            network: l.network,\n            // Both sides, always. The captured account had the numbers on one\n            // of them and blanks on the other, and which one that is differs\n            // by payer — dropping the blank is membership by value (rule 6).\n            accountBucket: brief(l.accountBucket),\n            patientBucket: brief(l.patientBucket),\n          };\n    return {\n      accounts: standard.accounts.map((a) => ({\n        guarantorNumber: a.guarantorNumber,\n        patientName: a.patientName,\n        payerName: a.payerName,\n        coverageName: a.coverageName,\n        lastUpdatedText: a.lastUpdatedText,\n        noCoverageAvailable: a.noCoverageAvailable,\n        deductible: briefLimit(a.deductible),\n        moop: briefLimit(a.moop),\n        insuranceLimit: briefLimit(a.insuranceLimit),\n      })),\n      hasNoBenefits: standard.hasNoBenefits,\n      unavailable: standard.unavailable,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { SessionExpiredError } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { parseBillingAccountsHtml } from '../bills/summaryHtml';\nimport type { BillingAccount } from '../bills/types';\nimport {\n  GET_BENEFITS_SUMMARY_PATH,\n  insuranceBenefitsProcessor,\n  type InsuranceBenefitsStandard,\n} from './insuranceBenefits.processor';\n\nexport type {\n  InsuranceBenefitsStandard,\n  InsuranceBenefitsAccountStandard,\n  BenefitLimitStandard,\n  BenefitBucketStandard,\n} from './insuranceBenefits.processor';\nexport {\n  insuranceBenefitsProcessor,\n  GET_BENEFITS_SUMMARY_PATH,\n} from './insuranceBenefits.processor';\n\nfunction detailsPagePath(account: BillingAccount): string {\n  return `/Billing/Details?ID=${account.id}&Context=${account.context}`;\n}\n\n/**\n * The patient's benefit accumulators — deductible and out-of-pocket maximum.\n *\n * `GET /Billing/Summary` for the guarantor accounts, then per account the\n * `/Billing/Details` page for its antiforgery token and\n * `POST /api/billing-details/GetBenefitsSummary`. The two arguments the POST\n * takes are that account's own `id` and `context` off the summary card, under\n * the names `guarantorId` and `billingSystem` — the endpoint is keyed by\n * guarantor account rather than by coverage, which is why this walks the\n * billing summary at all.\n *\n * It is a React `/api/*` route, so the token rides in the\n * `__RequestVerificationToken` header with a JSON body, not in a form field.\n *\n * The summary page is the payload: without it there are no accounts to ask\n * about, so a failure there throws. Each account's own pair of requests is\n * tolerated, so one guarantor account's outage does not cost the other's\n * deductible, and the processor names the ones that did not answer. Every\n * account failing is a failed read — there is nothing loaded to return, and\n * an empty accumulator list is precisely the wrong answer — so the first\n * failure is thrown.\n */\nexport async function fetchInsuranceBenefitsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const summary = await collector.send({ path: '/Billing/Summary' });\n  const accounts = parseBillingAccountsHtml(summary.text, mychartRequest.hostname);\n\n  const failures: Error[] = [];\n  for (const account of accounts) {\n    try {\n      const token = await collector.pageToken(detailsPagePath(account));\n      const { failure } = await collector.send(\n        {\n          path: GET_BENEFITS_SUMMARY_PATH,\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json', __RequestVerificationToken: token },\n          body: JSON.stringify({ guarantorId: account.id, billingSystem: account.context }),\n        },\n        { tolerateFailure: true },\n      );\n      if (failure) failures.push(failure);\n    } catch (err) {\n      // The token page throws on its own — a failed page, or one carrying no\n      // token — and a dead session is not this account's problem to absorb.\n      if (err instanceof SessionExpiredError) throw err;\n      failures.push(err as Error);\n    }\n  }\n  if (accounts.length > 0 && failures.length === accounts.length) throw failures[0]!;\n\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getInsuranceBenefits(mychartRequest: MyChartRequest): Promise<InsuranceBenefitsStandard> {\n  return insuranceBenefitsProcessor.standard(await fetchInsuranceBenefitsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Insurance payer catalogue processor. Field decisions: docs/processor-layer-proposal.md,\n * `get_insurance_payers`.\n *\n * The scraper records `POST /Insurance/Coverages/GetPayors`. Payers pass\n * through under MyChart's own `Payors` name with MyChart's own field names and\n * values; `requiredFields` / `optionalFields` are derived from `Fields`.\n *\n * A response without a `Payors` array THROWS, and so does the **empty body**\n * MyChart answers an unrecognized encounter context with — a 200 with no\n * content type at all, which `JSON.parse` never sees and a status check never\n * catches. Both would otherwise render as \"this organization accepts no\n * insurance\", which is the same class of silent-empty failure that got the\n * first care-team scraper withdrawn (#313).\n *\n * `Fields` maps a coverage-form field name to 1 (shown, optional) or 2 (shown,\n * required): the legacy controller reads `> 0` to show a field and `> 1` to\n * require it (`_buildFieldsViewModelFromPayor`). The map passes through as\n * MyChart sent it; the two derived lists name what those numbers mean, and a\n * level of 0 appears in neither.\n *\n * `SortKey` and `NameUTF8` (null on every entry of all four captured\n * instances) and `SampleCardImages` (empty on every entry of all four) are not\n * surfaced: always empty, so their shapes are unknown.\n */\n\nimport { findRequest, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, num, rec, textOrNull } from '../../processors/read';\nimport type { InsuranceGetPayors } from './mychart.types';\nimport type { InsurancePayerStandard, InsurancePayersStandard } from './standardized.types';\n\nexport type { InsurancePayerStandard, InsurancePayersStandard } from './standardized.types';\n\nexport const GET_PAYORS_PATH = '/Insurance/Coverages/GetPayors';\n\n/** `Fields` with non-numeric and level-0 entries dropped: 0 means MyChart does not show the field. */\nfunction fieldLevels(value: unknown): Record<string, number> {\n  const out: Record<string, number> = {};\n  for (const [name, level] of Object.entries(rec(value))) {\n    const parsed = num(level);\n    if (parsed !== null && parsed > 0) out[name] = parsed;\n  }\n  return out;\n}\n\nfunction payer(value: unknown): InsurancePayerStandard {\n  const p = rec(value);\n  const Fields = fieldLevels(p.Fields);\n  return {\n    ID: textOrNull(p.ID),\n    Name: textOrNull(p.Name),\n    Fields,\n    requiredFields: Object.keys(Fields).filter((name) => Fields[name]! > 1),\n    optionalFields: Object.keys(Fields).filter((name) => Fields[name]! === 1),\n    CanUpload: boolOrNull(p.CanUpload),\n    IsNonConfiguredPayer: boolOrNull(p.IsNonConfiguredPayer),\n  };\n}\n\nexport const insurancePayersProcessor: Processor<InsurancePayersStandard> = {\n  standard(raw: RawResponse): InsurancePayersStandard {\n    const record = findRequest(raw, 'Insurance/Coverages/GetPayors');\n    if (!record || record.status < 200 || record.status >= 300) {\n      throw new Error(`${GET_PAYORS_PATH} returned HTTP ${record?.status ?? 'nothing'}`);\n    }\n\n    // An unrecognized encounter context is answered with a 200 and an empty\n    // body — no error, no content type. `send` records that as the empty\n    // string, which is neither an envelope nor a failure a status check sees.\n    if (record.body === '') {\n      throw new Error(\n        `${GET_PAYORS_PATH} returned an empty body, which is how MyChart answers an ` +\n          'unrecognized encounter context. Refusing to report an empty payer catalogue from it.',\n      );\n    }\n\n    const payors = rec<InsuranceGetPayors>(record.body).Payors;\n    if (!Array.isArray(payors)) {\n      throw new Error(\n        `${GET_PAYORS_PATH} returned no Payors array. Refusing to report an empty payer ` +\n          'catalogue from a response shape we don\\'t recognize (the session may have expired, ' +\n          'or this instance does not serve the Insurance activity).',\n      );\n    }\n\n    return { Payors: payors.map(payer) };\n  },\n\n  concise(standard) {\n    return {\n      Payors: standard.Payors.map((p) => ({\n        Name: p.Name,\n        requiredFields: p.requiredFields,\n        IsNonConfiguredPayer: p.IsNonConfiguredPayer,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { insurancePayersProcessor, type InsurancePayersStandard } from './insurancePayers.processor';\n\nexport type { InsurancePayersStandard, InsurancePayerStandard } from './insurancePayers.processor';\nexport { insurancePayersProcessor, GET_PAYORS_PATH } from './insurancePayers.processor';\n\n/**\n * The organization's insurance payer catalogue — the payers MyChart offers\n * when a patient adds a coverage.\n *\n * This is a legacy jQuery activity, not one of the React `/app/*` ones. The\n * React insurance activity's `POST /api/insurance/LoadPayers` is *not* the\n * endpoint: none of the four captured instances serves that activity at all\n * (`GET /app/insurance` answers 200 with the Home page), and LoadPayers\n * answers 500 there whatever it is sent — the bundle calls it with no request\n * data, so no payload fixes it. `$$WP.Insurance.CoveragesController` in\n * `bundles/insurance-controllers` loads the payer dropdown from:\n *\n *   POST /Insurance/Coverages/GetPayors   → { Payors: [...] }\n *\n * form-encoded with `encounterCsn` and `encounterDepartmentId`, both empty on\n * the standalone Insurance page (they carry the pre-visit insurance\n * verification context when the same component runs inside eCheck-In). The\n * antiforgery token off the `/Insurance` activity page is required exactly as\n * on `/api/*`.\n *\n * The catalogue is organization-level as far as the capture can show: no\n * patient identifier in the request, an identical list with a real department\n * id, and zero payer ids shared between the four organizations. See\n * `scrapers/myChart/api-surface-gaps.md`, \"Insurance payer catalogue\".\n *\n * Two answers are recorded rather than raised here, because reading either as\n * \"no payers\" is the failure this capability has to avoid, and both are the\n * processor's to reject: an expired session serves the login page, and an\n * encounter context the instance does not recognize is answered with a 200\n * and an **empty body**.\n */\nexport async function fetchInsurancePayersRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Insurance');\n\n  await collector.send({\n    path: '/Insurance/Coverages/GetPayors',\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n      'X-Requested-With': 'XMLHttpRequest',\n      __RequestVerificationToken: token,\n    },\n    body: new URLSearchParams({ encounterCsn: '', encounterDepartmentId: '' }).toString(),\n  });\n\n  return collector.toRaw();\n}\n\n/**\n * The standard object — what `mode: 'json'` returns. Throws rather than\n * reporting an empty catalogue when the endpoint did not answer with a\n * recognizable envelope.\n */\nexport async function getInsurancePayers(mychartRequest: MyChartRequest): Promise<InsurancePayersStandard> {\n  return insurancePayersProcessor.standard(await fetchInsurancePayersRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** The `Billing` group — what was charged, and who is covering it. */\n\nimport { fetchBillingRaw, billingProcessor, downloadBillingStatement } from '../../../../scrapers/myChart/chart/bills/bills';\nimport { fetchInsuranceRaw, insuranceProcessor } from '../../../../scrapers/myChart/chart/insurance/insurance';\nimport { fetchInsuranceBenefitsRaw, insuranceBenefitsProcessor } from '../../../../scrapers/myChart/chart/insuranceBenefits/insuranceBenefits';\nimport { fetchInsurancePayersRaw, insurancePayersProcessor } from '../../../../scrapers/myChart/chart/insurancePayers/insurancePayers';\nimport { requireStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const BILLING_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_billing',\n    title: 'Billing',\n    description: 'Billing history and account balances.',\n    kind: 'read',\n    group: 'Billing',\n    params: [],\n    run: (request) => fetchBillingRaw(request),\n    processor: billingProcessor,\n  },\n  {\n    id: 'download_billing_statement',\n    title: 'Download billing statement',\n    description:\n      'Download one billing statement or itemized bill as the PDF MyChart serves for it. Identify it with the `RecordID` of a statement from get_billing. The file is saved on the user’s own device and the path returned.',\n    kind: 'read',\n    group: 'Billing',\n    returnsFile: true,\n    params: [\n      { name: 'record_id', type: 'string', required: true, description: 'The `RecordID` of the chosen statement from get_billing. Copy it verbatim.' },\n    ],\n    run: (request, args) => downloadBillingStatement(request, requireStr(args, 'record_id')),\n  },\n  {\n    id: 'get_insurance',\n    title: 'Insurance',\n    description:\n      'Insurance coverages on file: payer, plan, member and group numbers, effective dates. ' +\n      'Not the deductible or out-of-pocket maximum — those are get_insurance_benefits.',\n    kind: 'read',\n    group: 'Billing',\n    params: [],\n    run: (request) => fetchInsuranceRaw(request),\n    processor: insuranceProcessor,\n  },\n  {\n    id: 'get_insurance_benefits',\n    title: 'Insurance benefits',\n    description:\n      'How much of the deductible and the out-of-pocket maximum has been used, how much is left, ' +\n      'and when each resets. MyChart keys these to a billing guarantor account rather than to a ' +\n      'coverage, so a patient with two accounts gets one set per account. For the coverages ' +\n      'themselves — payer, plan, member id — use get_insurance.',\n    kind: 'read',\n    group: 'Billing',\n    params: [],\n    run: (request) => fetchInsuranceBenefitsRaw(request),\n    processor: insuranceBenefitsProcessor,\n  },\n  {\n    id: 'get_insurance_payers',\n    title: 'Insurance payers accepted',\n    description:\n      \"The insurance payers this organization's MyChart offers when adding a coverage — the \" +\n      \"organization's configured payer catalogue, the same for every patient on the instance. \" +\n      \"Not the patient's own coverage (that is get_insurance) and not an in-network guarantee.\",\n    kind: 'read',\n    group: 'Billing',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchInsurancePayersRaw(request),\n    processor: insurancePayersProcessor,\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Care team processor. Field decisions: docs/processor-layer-proposal.md, `get_care_team`.\n *\n * The scraper records `POST /Clinical/CareTeam/Load` and `LoadExternal`. The\n * two lists are merged under MyChart's own `ProvidersList` name with a derived\n * `fromExternalList` on every row (distinct from `IsExternal`, which the\n * internal list can also set).\n *\n * A `Load` response without a `ProvidersList` array THROWS. The previous\n * version of this scraper was withdrawn (#313) for guessing at the envelope,\n * because a wrong guess here does not fail visibly: it renders to the patient\n * as \"you have no care team\". A non-2xx status, a login page in place of\n * JSON, or an unrecognized envelope are all errors, never an empty team.\n *\n * `LoadExternal` is optional per deployment (Care Everywhere), so a failure\n * there — a recorded non-JSON or non-envelope response, or no recorded\n * request at all because the call threw — sets `externalProvidersUnavailable`\n * rather than failing the whole read. A partial care team presented as the\n * whole one is the failure that flag exists to prevent.\n *\n * `AboutMeBlurb` (`[]` on every provider of four instances) and\n * `Organizations` / `SchedulableVisitTypes` (`null` on all four) are not\n * surfaced: their shapes are unknown.\n *\n * `NationalProviderID` is a trap rather than an unknown: it is named like an\n * NPI but holds that NPI Epic-encrypted (a `WP-$…$…` blob, empty when the\n * provider has none), so a caller who passed it to `lookup_npi` — as that\n * capability's own docs once told them to — always failed the check digit. It\n * is raw-only: nothing takes it as input, and it says nothing `npi` does not.\n * The NPI itself comes from the scraper's third call: the row's `ID` sent to\n * `/api/Providers/GetProviderBioPrivate` (the page's own \"provider details\"\n * request) answers with the bio, `npi` in plain digits included. The derived\n * `npi` is that value, matched back to its row by the request body's `id`, and\n * `null` where the bio was not fetched (the page would not link it either),\n * did not answer, or carried an empty `npi` (nurses and medical assistants).\n */\n\nimport { findRequests, type RawRequestRecord, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, textOrNull } from '../../processors/read';\nimport type { CareTeamLoad, GetProviderBioPrivate } from './mychart.types';\nimport type { CareTeamProviderStandard, CareTeamStandard } from './standardized.types';\n\nexport type { CareTeamProviderStandard, CareTeamStandard } from './standardized.types';\n\nfunction provider(value: unknown, fromExternalList: boolean, bios: RawRequestRecord[]): CareTeamProviderStandard {\n  const p = rec(value);\n  const ID = textOrNull(p.ID);\n  return {\n    Name: textOrNull(p.Name),\n    Relation: textOrNull(p.Relation),\n    Specialty: textOrNull(p.Specialty),\n    IsExternal: boolOrNull(p.IsExternal),\n    fromExternalList,\n    npi: npiOf(ID, bios),\n    ID,\n    DepartmentID: textOrNull(p.DepartmentID),\n    CanMessage: boolOrNull(p.CanMessage),\n  };\n}\n\n/** The `npi` of the bio that answered for this row's `ID`, or null. An empty `npi` is null too: MyChart sends `\"\"` for \"none\". */\nfunction npiOf(ID: string | null, bios: RawRequestRecord[]): string | null {\n  if (ID === null) return null;\n  const bio = bios.find((r) => rec(r.requestBody).id === ID);\n  if (!bio || bio.failure !== undefined || bio.status < 200 || bio.status >= 300) return null;\n  const npi = textOrNull(rec<GetProviderBioPrivate>(bio.body).npi);\n  return npi === '' ? null : npi;\n}\n\n/** The `ProvidersList` array of a recorded response, or null when the response is not a recognizable envelope. */\nfunction providersListOf(body: unknown): unknown[] | null {\n  const envelope = rec<CareTeamLoad>(body);\n  return Array.isArray(envelope.ProvidersList) ? envelope.ProvidersList : null;\n}\n\nexport const careTeamProcessor: Processor<CareTeamStandard> = {\n  standard(raw: RawResponse): CareTeamStandard {\n    const load = findRequests(raw, 'Clinical/CareTeam/Load')[0];\n    const internal = load ? providersListOf(load.body) : null;\n    if (!load || load.status < 200 || load.status >= 300) {\n      throw new Error(`/Clinical/CareTeam/Load returned HTTP ${load?.status ?? 'nothing'}`);\n    }\n    if (internal === null) {\n      throw new Error(\n        '/Clinical/CareTeam/Load returned no ProvidersList array. Refusing to report an ' +\n          'empty care team from a response shape we don\\'t recognize (the session may have ' +\n          'expired, or this instance does not serve the Care Team activity).',\n      );\n    }\n\n    const loadExternal = findRequests(raw, 'Clinical/CareTeam/LoadExternal')[0];\n    const external =\n      loadExternal && !loadExternal.failure && loadExternal.status >= 200 && loadExternal.status < 300\n        ? providersListOf(loadExternal.body)\n        : null;\n\n    const bios = findRequests(raw, 'Providers/GetProviderBioPrivate');\n\n    return {\n      DescriptiveTitle: textOrNull(rec<CareTeamLoad>(load.body).DescriptiveTitle),\n      externalProvidersUnavailable: external === null,\n      ProvidersList: [\n        ...internal.map((p) => provider(p, false, bios)),\n        ...list(external).map((p) => provider(p, true, bios)),\n      ],\n    };\n  },\n\n  concise(standard) {\n    return {\n      externalProvidersUnavailable: standard.externalProvidersUnavailable,\n      ProvidersList: standard.ProvidersList.map((p) => ({\n        Name: p.Name,\n        Relation: p.Relation,\n        Specialty: p.Specialty,\n        IsExternal: p.IsExternal,\n        fromExternalList: p.fromExternalList,\n        npi: p.npi,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { SessionExpiredError } from '../../core/makeAuthenticatedRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { rec } from '../../processors/read';\nimport { logger } from '../../../../shared/logger';\nimport { careTeamProcessor, type CareTeamStandard } from './careTeam.processor';\n\nexport type { CareTeamStandard, CareTeamProviderStandard } from './careTeam.processor';\nexport { careTeamProcessor } from './careTeam.processor';\n\n/**\n * Care Team.\n *\n * This is a legacy jQuery/Handlebars activity, not one of the React `/app/*`\n * ones, so it does not live under `/api/*` and its envelope is PascalCase\n * rather than the camelCase the `/api` routes use:\n *\n *   POST /Clinical/CareTeam/Load          → this organization's providers\n *   POST /Clinical/CareTeam/LoadExternal  → outside / Care Everywhere providers\n *\n * Both are POST-only — a GET is refused with the instance's ASP.NET error\n * surface (a bare 500 on the August 2025 release, a 302 to `/Home/FiveHundred`\n * on November 2025) rather than serving the data — and every parameter the\n * page's own JS sends (`hfrId`, `sources`, `actions`, `isPrimaryStandalone`)\n * is optional: a bare POST with `{}` returns exactly what the page's own\n * parameters return. Both require the antiforgery token from the activity\n * page, like the `/api/*` routes do. Field names and types were verified\n * against four live instances spanning both captured Epic releases; see\n * `scrapers/myChart/api-surface-gaps.md`, \"Shipped: Care Team\".\n *\n * Neither call depends on the other. Care Everywhere is optional per\n * deployment, so a failure on the outside-provider arm is not fatal: a failed\n * response is recorded as it came, and a call that throws (anything but an\n * expired session) is logged and leaves no `LoadExternal` record, which the\n * processor reports as `externalProvidersUnavailable`.\n *\n * Then one more call per provider, the one the page's own \"provider details\"\n * link leads to:\n *\n *   POST /api/Providers/GetProviderBioPrivate  { id: <the row's ID> }\n *\n * The care team's `NationalProviderID` is an Epic-encrypted token, but this\n * React endpoint takes the row's (equally encrypted) `ID` and answers with the\n * provider's bio, `npi` in plain digits included — the server holds the key,\n * so the server is asked. It is called only where the page itself would link\n * (`CanViewProviderDetails`, and not `HasNoProviderRecord`), and an unknown or\n * foreign id is a 500 `{\"Message\":\"An error has occurred.\"}`, recorded rather\n * than thrown: a missing bio costs one provider's `npi`, not the care team.\n * See README.md for the capture.\n */\nexport async function fetchCareTeamRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Clinical/CareTeam');\n\n  const [load, loadExternal] = await Promise.all([\n    collector.postJson('/Clinical/CareTeam/Load', token, {}),\n    collector.postJson('/Clinical/CareTeam/LoadExternal', token, {}, { tolerateFailure: true }).catch((err: unknown) => {\n      if (err instanceof SessionExpiredError) throw err;\n      logger.debug(`Could not read external care team providers: ${String(err)}`);\n      return undefined;\n    }),\n  ]);\n\n  const ids = [...providersOf(load), ...providersOf(loadExternal)].map(detailsIdOf).filter((id): id is string => id !== null);\n  await Promise.all(\n    ids.map((id) =>\n      collector.postJson('/api/Providers/GetProviderBioPrivate', token, { id }, { tolerateFailure: true }).catch((err: unknown) => {\n        if (err instanceof SessionExpiredError) throw err;\n        logger.debug(`Could not read a care team provider's bio: ${String(err)}`);\n      }),\n    ),\n  );\n\n  return collector.toRaw();\n}\n\nfunction providersOf(body: unknown): unknown[] {\n  const list = rec(body).ProvidersList;\n  return Array.isArray(list) ? list : [];\n}\n\n/** The row's `ID` when the page would link it to `/app/providers/details?id=<ID>` (the conditions are `careteam.min.js`'s), else null. */\nfunction detailsIdOf(provider: unknown): string | null {\n  const p = rec(provider);\n  const links = p.CanViewProviderDetails === true && p.HasNoProviderRecord !== true;\n  return links && typeof p.ID === 'string' && p.ID !== '' ? p.ID : null;\n}\n\n/**\n * The standard object — what `mode: 'json'` returns. Throws rather than\n * reporting an empty team when `Load` did not answer with a recognizable\n * envelope.\n */\nexport async function getCareTeam(mychartRequest: MyChartRequest): Promise<CareTeamStandard> {\n  return careTeamProcessor.standard(await fetchCareTeamRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Referrals processor. Field decisions: docs/processor-layer-proposal.md, `get_referrals`.\n *\n * `dte` (Epic day count of `creationDate`) is internal; `canSendMessage` and\n * `shouldRedirect` are page config. Everything else on the captured element\n * is kept under MyChart's own names.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, textOrNull } from '../../processors/read';\nimport type { ListReferrals } from './mychart.types';\nimport type { ReferralsStandard } from './standardized.types';\n\nexport type { ReferralStandard, ReferralsStandard } from './standardized.types';\n\nexport const referralsProcessor: Processor<ReferralsStandard> = {\n  standard(raw: RawResponse): ReferralsStandard {\n    const body = rec<ListReferrals>(bodyOf(raw, 'listReferrals'));\n    return {\n      canSeeAuthorizations: boolOrNull(body.canSeeAuthorizations),\n      referralList: list(body.referralList).map((value) => {\n        const r = rec(value);\n        return {\n          statusString: textOrNull(r.statusString),\n          status: textOrNull(r.status),\n          referredToProviderName: textOrNull(r.referredToProviderName),\n          referredToFacility: textOrNull(r.referredToFacility),\n          referredByProviderName: textOrNull(r.referredByProviderName),\n          start: textOrNull(r.start),\n          end: textOrNull(r.end),\n          creationDate: textOrNull(r.creationDate),\n          internalId: textOrNull(r.internalId),\n          externalId: textOrNull(r.externalId),\n        };\n      }),\n    };\n  },\n  concise(standard) {\n    return {\n      referralList: standard.referralList.map((r) => ({\n        statusString: r.statusString,\n        referredToProviderName: r.referredToProviderName,\n        referredToFacility: r.referredToFacility,\n        referredByProviderName: r.referredByProviderName,\n        start: r.start,\n        end: r.end,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { referralsProcessor, type ReferralsStandard } from './referrals.processor';\n\nexport type { ReferralsStandard, ReferralStandard } from './referrals.processor';\nexport { referralsProcessor } from './referrals.processor';\n\n/** `GET /app/referrals` for the token, then `POST /api/referrals/listReferrals`. */\nexport async function fetchReferralsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/referrals');\n  await collector.postJson('/api/referrals/listReferrals', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getReferrals(mychartRequest: MyChartRequest): Promise<ReferralsStandard> {\n  return referralsProcessor.standard(await fetchReferralsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Letters processors. Field decisions: docs/processor-layer-proposal.md,\n * `get_letters` and `get_letter_details`.\n *\n * `GetLettersList` carries an author directory (`users`, keyed by `empId`)\n * beside the letters; the name is resolved onto each letter as the derived\n * `providerName` and `empId` is kept so the resolution is checkable. `users`\n * itself is not in standard (its other field, `photoUrl`, is an asset).\n * `departments` was `{}` on capture and passes through whole (rule 10).\n *\n * The list is sorted newest first with unparseable dates last — what the\n * scraper did before, now processor work.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport { parseMyChartDate, sortNewestFirstByDate } from '../../core/util';\nimport { htmlToText } from '../../processors/htmlText';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, text, textOrNull } from '../../processors/read';\nimport type { GetLettersList } from './mychart.types';\nimport type { LetterDetailsStandard, LetterStandard, LettersStandard } from './standardized.types';\n\nexport type { LetterDetailsStandard, LetterStandard, LettersStandard } from './standardized.types';\n\nexport const lettersProcessor: Processor<LettersStandard> = {\n  standard(raw: RawResponse): LettersStandard {\n    const body = rec<GetLettersList>(bodyOf(raw, 'GetLettersList'));\n    const users = rec(body.users);\n    const letters: LetterStandard[] = list(body.letters).map((entry) => {\n      const l = rec(entry);\n      const empId = textOrNull(l.empId);\n      const user = rec(empId === null ? undefined : users[empId]);\n      return {\n        hnoId: textOrNull(l.hnoId),\n        csn: textOrNull(l.csn),\n        dateISO: textOrNull(l.dateISO),\n        reason: textOrNull(l.reason),\n        viewed: boolOrNull(l.viewed),\n        empId,\n        providerName: textOrNull(user.name),\n      };\n    });\n    return {\n      letters: sortNewestFirstByDate(letters, (l) => parseMyChartDate(l.dateISO)),\n      departments: rec(body.departments),\n    };\n  },\n  concise(standard) {\n    return {\n      letters: standard.letters.map((l) => ({\n        hnoId: l.hnoId,\n        csn: l.csn,\n        dateISO: l.dateISO,\n        reason: l.reason,\n        viewed: l.viewed,\n        providerName: l.providerName,\n      })),\n    };\n  },\n};\n\n/** A literal `null` (unknown hnoId) passes through as `null` (rule 7). */\nexport const letterDetailsProcessor: Processor<LetterDetailsStandard | null> = {\n  standard(raw: RawResponse): LetterDetailsStandard | null {\n    const body = bodyOf(raw, 'GetLetterDetails');\n    if (body === null || body === undefined) return null;\n    return { bodyHTMLText: htmlToText(text(rec(body).bodyHTML)) };\n  },\n  concise(standard) {\n    return standard;\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport {\n  letterDetailsProcessor,\n  lettersProcessor,\n  type LetterDetailsStandard,\n  type LettersStandard,\n} from './letters.processor';\n\nexport type { LettersStandard, LetterStandard, LetterDetailsStandard } from './letters.processor';\nexport { lettersProcessor, letterDetailsProcessor } from './letters.processor';\n\n/** `GET /app/letters` for the token, then `POST /api/letters/GetLettersList`. */\nexport async function fetchLettersRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/letters');\n  await collector.postJson('/api/letters/GetLettersList', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getLetters(mychartRequest: MyChartRequest): Promise<LettersStandard> {\n  return lettersProcessor.standard(await fetchLettersRaw(mychartRequest));\n}\n\n/**\n * `POST /api/letters/GetLetterDetails` `{ hnoId, csn }`. MyChart needs the\n * encounter (csn) alongside the note id; sending only one returns someone\n * else's letter or nothing at all.\n */\nexport async function fetchLetterDetailsRaw(mychartRequest: MyChartRequest, hnoId: string, csn: string): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/letters');\n  await collector.postJson('/api/letters/GetLetterDetails', token, { hnoId, csn });\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. `null` for an unknown letter. */\nexport async function getLetterDetails(\n  mychartRequest: MyChartRequest,\n  hnoId: string,\n  csn: string,\n): Promise<LetterDetailsStandard | null> {\n  return letterDetailsProcessor.standard(await fetchLetterDetailsRaw(mychartRequest, hnoId, csn));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Documents processor. Field decisions: docs/processor-layer-proposal.md, `get_documents`.\n *\n * Every `LoadOtherDocuments` page in the envelope is concatenated, then sorted\n * newest first on `dateRaw` — the same key Epic's own Document Center sorts\n * on, because the server returns the pages in no particular order relative to\n * each other.\n *\n * `dateRaw` is an Epic day number, not a timestamp: it matched the `date`\n * string on all 42 documents of the one live account captured, so `dateISO`\n * is derived from it rather than from parsing `date`'s locale-shaped M/D/YYYY.\n */\n\nimport { findRequests, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, textOrNull } from '../../processors/read';\nimport type { LoadOtherDocuments } from './mychart.types';\nimport type { DocumentsStandard } from './standardized.types';\n\nexport type { DocumentStandard, DocumentsStandard } from './standardized.types';\nimport { fromEpicDte } from '../../../../shared/epicDate';\n\nfunction dateISO(dateRaw: string | null): string | null {\n  const dte = Number(dateRaw);\n  if (dateRaw === null || dateRaw === '' || !Number.isFinite(dte)) return null;\n  return fromEpicDte(dte).toISOString().slice(0, 10);\n}\n\nexport const documentsProcessor: Processor<DocumentsStandard> = {\n  standard(raw: RawResponse): DocumentsStandard {\n    const documents = findRequests(raw, 'LoadOtherDocuments')\n      .flatMap((page) => list(rec<LoadOtherDocuments>(page.body).documents))\n      .map((entry) => {\n        const d = rec(entry);\n        const dateRaw = textOrNull(d.dateRaw);\n        return {\n          dcsID: textOrNull(d.dcsID),\n          docID: textOrNull(d.docID),\n          docType: textOrNull(d.docType),\n          docDesc: textOrNull(d.docDesc),\n          docExt: textOrNull(d.docExt),\n          date: textOrNull(d.date),\n          dateRaw,\n          dateISO: dateISO(dateRaw),\n          blobCat: textOrNull(d.blobCat),\n          dat: textOrNull(d.dat),\n          new: boolOrNull(d.new),\n          wasESigned: boolOrNull(d.wasESigned),\n          isExpired: boolOrNull(d.isExpired),\n          downloadOnly: boolOrNull(d.downloadOnly),\n          onlyAllowedPreview: boolOrNull(d.onlyAllowedPreview),\n          pendingRequiredSignatures: boolOrNull(d.pendingRequiredSignatures),\n          pendingApprovalStatus: num(d.pendingApprovalStatus),\n          rejectionReasonFreetext: textOrNull(d.rejectionReasonFreetext),\n        };\n      });\n    documents.sort((a, b) => Number(b.dateRaw ?? 0) - Number(a.dateRaw ?? 0));\n    return { documents };\n  },\n  /**\n   * `dcsID` is deliberately not here. It is the download handle, but nothing\n   * takes it yet, and at 85-94 characters on a real instance it is both a\n   * third of concise's bytes and enough on its own to push every row out of\n   * table form (`MAX_TABLE_CELL` in processors/markdown.ts). It belongs back\n   * in concise the day a capability accepts it, the way `dcsId` joined the\n   * message projections once attachments could be fetched (#439).\n   */\n  concise(standard) {\n    return {\n      documents: standard.documents.map((d) => ({\n        docType: d.docType,\n        docDesc: d.docDesc,\n        docExt: d.docExt,\n        dateISO: d.dateISO,\n        new: d.new,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { list, rec } from '../../processors/read';\nimport type { LoadOtherDocuments } from './mychart.types';\nimport { logger } from '../../../../shared/logger';\nimport { documentsProcessor, type DocumentsStandard } from './documents.processor';\n\nexport type { DocumentsStandard, DocumentStandard } from './documents.processor';\nexport { documentsProcessor } from './documents.processor';\n\nconst LOAD_OTHER_DOCUMENTS = '/api/documents/viewer/LoadOtherDocuments';\n\n/**\n * Documents per page. Epic's own Document Center hides its \"Load more\" button\n * once a page comes back with fewer than 25, which is the only signal the\n * response carries — there is no count, no cursor and no `hasMore` flag.\n */\nconst PAGE_SIZE = 25;\n\n/** ~1000 documents. Guarantees termination if a page ever stops shrinking. */\nconst MAX_PAGES = 40;\n\n/**\n * `GET /app/document-center` for the token, then walk `LoadOtherDocuments`.\n *\n * **`isInitialLoad` is not optional.** The cursor is server-side session\n * state: `true` rewinds it and answers the first 25, anything else answers\n * the next 25 from wherever the session left off. Posting `{}` on a fresh\n * session therefore asks for the page after the last one — of a walk that\n * never started — and MyChart answers `{\"documents\":[]}` with a 200. That is\n * indistinguishable from an empty chart, and it is what this scraper sent\n * until now: an account with 42 documents read as none.\n *\n * The activity is `/app/document-center`; `/app/documents` is not a page on\n * any instance and redirects to Home, which still carries a usable token but\n * costs `RawCollector` its \"this activity is not served here\" signal.\n */\nexport async function fetchDocumentsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/document-center');\n\n  let pages = 0;\n  let count = PAGE_SIZE;\n  while (count === PAGE_SIZE && pages < MAX_PAGES) {\n    const body = await collector.postJson(LOAD_OTHER_DOCUMENTS, token, { isInitialLoad: pages === 0 });\n    count = list(rec<LoadOtherDocuments>(body).documents).length;\n    pages++;\n  }\n  if (count === PAGE_SIZE) {\n    logger.debug(`documents: hit page cap (${MAX_PAGES}); some older documents may be omitted`);\n  }\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getDocuments(mychartRequest: MyChartRequest): Promise<DocumentsStandard> {\n  return documentsProcessor.standard(await fetchDocumentsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * One Document Center document: the bytes MyChart holds for it.\n *\n * `get_documents` lists documents and hands back a `dcsID`; this fetches the\n * file, the way Epic's own row does — `useDcsDocument`\n * (`epic.px.client.document-viewer.js`), reached from\n * `epic.px.client.document-center.js` as\n * `{ dcsId: doc.dcsID, fileExtension: doc.docExt }` with `useOldMobileLink: true`\n * and no `legacyEncryption`, which is what picks `GetDocumentDetails` over the\n * `…Legacy` sibling the message viewer uses.\n *\n * The exchange itself, and the three traps in it, are in\n * [`core/dcsDocument.ts`](../../core/dcsDocument.ts) — attachments go through\n * the same store. All this adds is the id it was given and the wording of a\n * refusal, since only it knows the id came from `get_documents`.\n *\n * **It sends no extension**, where the portal sends `doc.docExt`. MyChart\n * ignores the field (measured five ways on one live instance: correct, empty,\n * omitted, wrong, and `dcsId` alone all returned the same 135,807-byte PDF),\n * and the only way to learn a document's extension is to walk the document\n * list — up to 40 requests, for a value the server never reads.\n */\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector } from '../../core/rawResponse';\nimport { DcsDocumentError, fetchDcsFile } from '../../core/dcsDocument';\nimport type { FilePayload } from '../../core/filePayload';\nimport { DetailedError } from '../../../../shared/detailedError';\n\n/** A downloaded document: the file, and what MyChart said about it. */\nexport interface DocumentFile extends FilePayload {\n  /** The `dcsID` from `get_documents` that was asked for. */\n  dcsID: string;\n  /** MyChart's own name for the file, before `fileName` made it safe. */\n  displayName: string;\n}\n\n/**\n * Download the document `documentId` — a `dcsID` from `get_documents` — from\n * the active patient record.\n */\nexport async function downloadDocument(\n  mychartRequest: MyChartRequest,\n  documentId: string,\n): Promise<DocumentFile> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/document-center');\n\n  try {\n    const file = await fetchDcsFile(mychartRequest, collector, token, {\n      dcsId: documentId,\n      fileExtension: '',\n      organizationId: '',\n      useOldMobileLink: true,\n      legacy: false,\n    });\n    return { ...file, dcsID: documentId };\n  } catch (error) {\n    if (!(error instanceof DcsDocumentError)) throw error;\n    const { failure } = error;\n    if (failure.reason === 'no_such_document') {\n      throw new Error(\n        `MyChart has no document ${documentId} on the active patient record. ` +\n          'Take the id from a `dcsID` in get_documents, copied verbatim, and check the right patient is active.',\n        { cause: error },\n      );\n    }\n    const named = failure.displayName || documentId;\n    if (failure.reason === 'not_released') {\n      const rest =\n        ' for viewing in the portal only and serves no file for it, ' +\n        'so there is nothing to download. Opening it in MyChart itself is the only way to read it.';\n      throw new DetailedError(`MyChart offers document ${documentId}${rest}`, `MyChart offers ${named}${rest}`);\n    }\n    throw new DetailedError(\n      `MyChart answered the download of document ${documentId} with ${failure.detail}; nothing was downloaded.`,\n      `MyChart answered the download of ${named} with ${failure.detail}; nothing was downloaded.`,\n    );\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Upcoming orders processor. Field decisions: docs/processor-layer-proposal.md, `get_upcoming_orders`.\n *\n * Real `GetUpcomingOrders` responses are keyed MAPS — `orderList` holds the\n * orders by id with `orderGroupList` / `providerList` alongside — never a bare\n * `orders` array. Every captured account had all three maps empty, so the\n * order element is uncaptured and passes through whole (rule 10); `orderList`\n * is emitted as the map's values.\n *\n * `providerName` is derived by joining the order to `providerList`. Neither\n * the order's provider-key field nor the provider element's name field has\n * been captured, so the join is by value: any string field on the order that\n * is a key of `providerList` selects the entry, and the entry's `name` (or\n * `displayName`) is the provider's name. `null` until a capture shows the\n * real join.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { rec, text } from '../../processors/read';\nimport type { GetUpcomingOrders } from './mychart.types';\nimport type { UpcomingOrdersStandard } from './standardized.types';\n\nexport type { UpcomingOrderStandard, UpcomingOrdersStandard } from './standardized.types';\n\nexport function resolveProviderName(order: Record<string, unknown>, providerList: Record<string, unknown>): string | null {\n  for (const value of Object.values(order)) {\n    if (typeof value !== 'string' || !(value in providerList)) continue;\n    const entry = providerList[value];\n    if (typeof entry === 'string') return entry;\n    const name = text(rec(entry).name) || text(rec(entry).displayName);\n    if (name) return name;\n  }\n  return null;\n}\n\nexport const upcomingOrdersProcessor: Processor<UpcomingOrdersStandard> = {\n  standard(raw: RawResponse): UpcomingOrdersStandard {\n    const body = rec<GetUpcomingOrders>(bodyOf(raw, 'GetUpcomingOrders'));\n    const providerList = rec(body.providerList);\n    return {\n      orderList: Object.values(rec(body.orderList)).map((value) => {\n        const order = rec(value);\n        return { ...order, providerName: resolveProviderName(order, providerList) };\n      }),\n      orderGroupList: rec(body.orderGroupList),\n    };\n  },\n  /** Narrows to name, type, status, date and provider once the element is captured. */\n  concise(standard) {\n    return { orderList: standard.orderList };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { upcomingOrdersProcessor, type UpcomingOrdersStandard } from './upcomingOrders.processor';\n\nexport type { UpcomingOrdersStandard, UpcomingOrderStandard } from './upcomingOrders.processor';\nexport { upcomingOrdersProcessor } from './upcomingOrders.processor';\n\n/** `GET /app/upcoming-orders` for the token, then `POST /api/upcoming-orders/GetUpcomingOrders`. */\nexport async function fetchUpcomingOrdersRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/upcoming-orders');\n  await collector.postJson('/api/upcoming-orders/GetUpcomingOrders', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getUpcomingOrders(mychartRequest: MyChartRequest): Promise<UpcomingOrdersStandard> {\n  return upcomingOrdersProcessor.standard(await fetchUpcomingOrdersRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Questionnaires processor. Field decisions: docs/processor-layer-proposal.md,\n * `get_questionnaires`.\n *\n * `GetQuestionnaireList` answers with four lists rather than one, and they are\n * kept apart under MyChart's own names because they are different answers:\n * `assignedQuestionnaires` were given to the patient to fill in,\n * `optionalQuestionnaires` are offered and never due, `questionnaireContextLists`\n * regroups assigned entries by whatever assigned them (an appointment, a care\n * journey, a letter), and `completedQuestionnaires` are done.\n *\n * The assigned and optional element shapes come from four live captures. Every\n * captured `completedQuestionnaires` was `[]`, so its elements pass through\n * whole (rule 10) until one is seen.\n *\n * `context` says what a questionnaire hangs off, so it stays; `isProxyAccessing`\n * describes the caller rather than the chart, and the six top-level flags\n * (`showSeriesText`, `showBackButton`, `showPretext`, `messageQnrExpired`,\n * `callingApp`, `sourceActivity`) describe the activity Epic was rendering.\n * `disablePastResponse` and `index` are the same kind of thing on an element.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, textOrNull } from '../../processors/read';\nimport type { AssignedQuestionnaire, GetQuestionnaireList, Questionnaire } from './mychart.types';\nimport type { AssignedQuestionnaireDetailStandard, AssignedQuestionnaireStandard, OptionalQuestionnaireStandard, QuestionnaireStandard, QuestionnairesStandard } from './standardized.types';\n\nexport type { AssignedQuestionnaireStandard, OptionalQuestionnaireStandard, QuestionnaireContextListStandard, QuestionnaireStandard, QuestionnairesStandard } from './standardized.types';\n\nfunction questionnaireOf(q: Questionnaire): QuestionnaireStandard {\n  return {\n    type: num(q.type),\n    isContextSpecific: boolOrNull(q.isContextSpecific),\n    preText: textOrNull(q.preText),\n    postText: textOrNull(q.postText),\n    isPreTextSmartText: boolOrNull(q.isPreTextSmartText),\n    isPostTextSmartText: boolOrNull(q.isPostTextSmartText),\n    status: num(q.status),\n    rootName: textOrNull(q.rootName),\n    id: textOrNull(q.id),\n    name: textOrNull(q.name),\n  };\n}\n\nfunction assignedOf(value: unknown): AssignedQuestionnaireStandard {\n  const entry = rec<AssignedQuestionnaire>(value);\n  return {\n    dueDateISO: textOrNull(entry.dueDateISO),\n    apptDateISO: textOrNull(entry.apptDateISO),\n    isHistory: boolOrNull(entry.isHistory),\n    seriesData: rec(entry.seriesData),\n    hxData: rec(entry.hxData),\n    displayNameOverride: textOrNull(entry.displayNameOverride),\n    isTravelScreening: boolOrNull(entry.isTravelScreening),\n    context: rec(entry.context),\n    questionnaire: assignedQuestionnaireOf(rec<Questionnaire>(entry.questionnaire)),\n  };\n}\n\nfunction assignedQuestionnaireOf(q: Questionnaire): AssignedQuestionnaireDetailStandard {\n  return { ...questionnaireOf(q), filterType: textOrNull(q.filterType) };\n}\nfunction optionalOf(value: unknown): OptionalQuestionnaireStandard {\n  const entry = rec(value);\n  return {\n    description: textOrNull(entry.description),\n    context: rec(entry.context),\n    questionnaire: questionnaireOf(rec<Questionnaire>(entry.questionnaire)),\n  };\n}\n\nexport const questionnairesProcessor: Processor<QuestionnairesStandard> = {\n  standard(raw: RawResponse): QuestionnairesStandard {\n    const body = rec<GetQuestionnaireList>(bodyOf(raw, 'GetQuestionnaireList'));\n    return {\n      assignedQuestionnaires: list(body.assignedQuestionnaires).map(assignedOf),\n      optionalQuestionnaires: list(body.optionalQuestionnaires).map(optionalOf),\n      questionnaireContextLists: list(body.questionnaireContextLists).map((value) => {\n        const contextList = rec(value);\n        return {\n          listContext: rec(contextList.listContext),\n          assignedQuestionnaires: list(contextList.assignedQuestionnaires).map(assignedOf),\n        };\n      }),\n      completedQuestionnaires: list(body.completedQuestionnaires),\n    };\n  },\n  concise(standard) {\n    const named = (q: QuestionnaireStandard) => ({ id: q.id, name: q.name, status: q.status });\n    const assigned = (a: AssignedQuestionnaireStandard) => ({\n      dueDateISO: a.dueDateISO,\n      displayNameOverride: a.displayNameOverride,\n      questionnaire: named(a.questionnaire),\n    });\n    return {\n      assignedQuestionnaires: standard.assignedQuestionnaires.map(assigned),\n      optionalQuestionnaires: standard.optionalQuestionnaires.map((o) => ({\n        description: o.description,\n        questionnaire: named(o.questionnaire),\n      })),\n      questionnaireContextLists: standard.questionnaireContextLists.map((l) => ({\n        assignedQuestionnaires: l.assignedQuestionnaires.map(assigned),\n      })),\n      completedQuestionnaires: standard.completedQuestionnaires,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { questionnairesProcessor, type QuestionnairesStandard } from './questionnaires.processor';\n\nexport type {\n  QuestionnairesStandard,\n  QuestionnaireStandard,\n  AssignedQuestionnaireStandard,\n  OptionalQuestionnaireStandard,\n  QuestionnaireContextListStandard,\n} from './questionnaires.processor';\nexport { questionnairesProcessor } from './questionnaires.processor';\n\n/**\n * `GET /app/questionnaires` for the token, then `POST /api/questionnaire/GetQuestionnaireList`.\n *\n * The legacy `/Questionnaire` activity this used to call is dead — it answers\n * with Epic's `/Home/Error?code=15` page on all four accounts checked, so the\n * token fetch was the request that failed. The React route answers 200 with the\n * list on the same four, and Epic's own client posts it no request data at all,\n * so the body is `{}`. See README.md.\n */\nexport async function fetchQuestionnairesRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/questionnaires');\n  await collector.postJson('/api/questionnaire/GetQuestionnaireList', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getQuestionnaires(mychartRequest: MyChartRequest): Promise<QuestionnairesStandard> {\n  return questionnairesProcessor.standard(await fetchQuestionnairesRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Care journeys processor. Field decisions: docs/processor-layer-proposal.md,\n * `get_care_journeys`.\n *\n * No captured skeleton: the element names the fake serves are fixture-only,\n * so each journey passes through whole (rule 10). Narrows to name, status and\n * provider once a capture exists.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { list, rec } from '../../processors/read';\n\nexport interface CareJourneysStandard {\n  careJourneys: unknown[];\n}\n\nexport const careJourneysProcessor: Processor<CareJourneysStandard> = {\n  standard(raw: RawResponse): CareJourneysStandard {\n    return { careJourneys: list(rec(bodyOf(raw, 'GetCareJourneys')).careJourneys) };\n  },\n  concise: (standard) => standard,\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { careJourneysProcessor, type CareJourneysStandard } from './careJourneys.processor';\n\nexport type { CareJourneysStandard } from './careJourneys.processor';\nexport { careJourneysProcessor } from './careJourneys.processor';\n\n/** `GET /app/care-journeys` for the token, then `POST /api/care-journeys/GetCareJourneys`. */\nexport async function fetchCareJourneysRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/care-journeys');\n  await collector.postJson('/api/care-journeys/GetCareJourneys', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getCareJourneys(mychartRequest: MyChartRequest): Promise<CareJourneysStandard> {\n  return careJourneysProcessor.standard(await fetchCareJourneysRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Activity feed processor. Field decisions: docs/processor-layer-proposal.md, `get_activity_feed`.\n *\n * `FetchItemFeed` groups items per patient record the account can see under\n * `singleItemFeedViewModels[]`, each with `feedItems` (newer releases split\n * some into `todayItems` / `forYouItems`; all three lists are kept under\n * their own names). `priorityInstant` is epoch milliseconds; the derived\n * `priorityInstantISO` is the readable form, `null` when the item has no\n * instant (MyChart sends `0`).\n *\n * The contact-info nag item's own fields (`phone`, `email`, …), every action's\n * portal link, and the icons are UI; `linkedAccountsViewModel` duplicates\n * `get_linked_accounts`.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { isoFromMs, list, num, rec, textOrNull } from '../../processors/read';\nimport type { FetchItemFeed, PrimaryAction } from './mychart.types';\nimport type { ActivityFeedStandard, FeedItemStandard } from './standardized.types';\n\nexport type { ActivityFeedStandard, FeedItemStandard, FeedViewModelStandard } from './standardized.types';\n\nfunction feedItem(value: unknown): FeedItemStandard {\n  const item = rec(value);\n  const priorityInstant = num(item.priorityInstant);\n  return {\n    identifier: textOrNull(item.identifier),\n    displayText: textOrNull(item.displayText),\n    titleDisplayText: textOrNull(item.titleDisplayText),\n    announcementBody: textOrNull(item.announcementBody),\n    type: textOrNull(item.type),\n    defaultType: textOrNull(item.defaultType),\n    topicId: num(item.topicId),\n    priority: num(item.priority),\n    priorityInstant,\n    priorityInstantISO: priorityInstant !== null && priorityInstant > 0 ? isoFromMs(priorityInstant) : null,\n    groupCount: num(item.groupCount),\n    primaryAction: { uriDisplayText: textOrNull(rec<PrimaryAction>(item.primaryAction).uriDisplayText) },\n  };\n}\n\nexport const activityFeedProcessor: Processor<ActivityFeedStandard> = {\n  standard(raw: RawResponse): ActivityFeedStandard {\n    const body = rec<FetchItemFeed>(bodyOf(raw, 'FetchItemFeed'));\n    return {\n      singleItemFeedViewModels: list(body.singleItemFeedViewModels).map((value) => {\n        const vm = rec(value);\n        return {\n          displayName: textOrNull(vm.displayName),\n          eptId: textOrNull(vm.eptId),\n          feedItems: list(vm.feedItems).map(feedItem),\n          todayItems: list(vm.todayItems).map(feedItem),\n          forYouItems: list(vm.forYouItems).map(feedItem),\n        };\n      }),\n    };\n  },\n  concise(standard) {\n    const item = (i: FeedItemStandard) => ({ displayText: i.displayText, priorityInstantISO: i.priorityInstantISO });\n    return {\n      singleItemFeedViewModels: standard.singleItemFeedViewModels.map((vm) => ({\n        displayName: vm.displayName,\n        feedItems: vm.feedItems.map(item),\n        todayItems: vm.todayItems.map(item),\n        forYouItems: vm.forYouItems.map(item),\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { activityFeedProcessor, type ActivityFeedStandard } from './activityFeed.processor';\n\nexport type { ActivityFeedStandard, FeedViewModelStandard, FeedItemStandard } from './activityFeed.processor';\nexport { activityFeedProcessor } from './activityFeed.processor';\n\n/** `GET /app/home` for the token, then `POST /api/item-feed/FetchItemFeed` `{ maxItems: 50, offset: 0 }`. */\nexport async function fetchActivityFeedRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/home');\n  await collector.postJson('/api/item-feed/FetchItemFeed', token, { maxItems: 50, offset: 0 });\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getActivityFeed(mychartRequest: MyChartRequest): Promise<ActivityFeedStandard> {\n  return activityFeedProcessor.standard(await fetchActivityFeedRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Education materials processor. Field decisions: docs/processor-layer-proposal.md,\n * `get_education_materials`.\n *\n * `GetPatEducationTitles` is a bare ARRAY of titles, so the standard object is\n * the list itself. Gamification (`numPoints`), thumbnails and the bedside-TV\n * flags are asset / UI / session context.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, textOrNull } from '../../processors/read';\nimport type { GetPatEducationTitles } from './mychart.types';\nimport type { EducationMaterialsStandard } from './standardized.types';\n\nexport type { EducationMaterialStandard, EducationMaterialsStandard } from './standardized.types';\n\nexport const educationMaterialsProcessor: Processor<EducationMaterialsStandard> = {\n  standard(raw: RawResponse): EducationMaterialsStandard {\n    return list(bodyOf(raw, 'GetPatEducationTitles')).map((value) => {\n      const m = rec<GetPatEducationTitles[number]>(value);\n      return {\n        displayName: textOrNull(m.displayName),\n        assignedDate: textOrNull(m.assignedDate),\n        elementId: textOrNull(m.elementId),\n        eduKey: textOrNull(m.eduKey),\n        numTopics: num(m.numTopics),\n        wasAssignedThisVisit: boolOrNull(m.wasAssignedThisVisit),\n        numPagesReviewed: num(m.numPagesReviewed),\n        numPagesUnderstood: num(m.numPagesUnderstood),\n        numPagesQuestions: num(m.numPagesQuestions),\n      };\n    });\n  },\n  concise(standard) {\n    return standard.map((m) => ({ displayName: m.displayName, assignedDate: m.assignedDate }));\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { educationMaterialsProcessor, type EducationMaterialsStandard } from './educationMaterials.processor';\n\nexport type { EducationMaterialsStandard, EducationMaterialStandard } from './educationMaterials.processor';\nexport { educationMaterialsProcessor } from './educationMaterials.processor';\n\n/** `GET /app/education` for the token, then `POST /api/education/GetPatEducationTitles`. */\nexport async function fetchEducationMaterialsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/education');\n  await collector.postJson('/api/education/GetPatEducationTitles', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getEducationMaterials(mychartRequest: MyChartRequest): Promise<EducationMaterialsStandard> {\n  return educationMaterialsProcessor.standard(await fetchEducationMaterialsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * EHI export processor. Field decisions: docs/processor-layer-proposal.md, `get_ehi_export`.\n *\n * `hideAdditionalComments` is form config; `__Status` and\n * `__UpdateableSettings` describe the server's own throttle and queue.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, textOrNull } from '../../processors/read';\nimport type { GetEhiETemplates } from './mychart.types';\nimport type { EhiExportStandard } from './standardized.types';\n\nexport type { EhiExportStandard, EhiTemplateStandard } from './standardized.types';\n\nexport const ehiExportProcessor: Processor<EhiExportStandard> = {\n  standard(raw: RawResponse): EhiExportStandard {\n    const body = rec<GetEhiETemplates>(bodyOf(raw, 'GetEHIETemplates'));\n    return {\n      existingEHIE: boolOrNull(body.existingEHIE),\n      isNoBuildEhie: boolOrNull(body.isNoBuildEhie),\n      ehieTemplates: list(body.ehieTemplates).map((value) => {\n        const t = rec(value);\n        return { name: textOrNull(t.name), description: textOrNull(t.description), id: textOrNull(t.id) };\n      }),\n    };\n  },\n  concise(standard) {\n    return { ehieTemplates: standard.ehieTemplates.map((t) => ({ name: t.name, description: t.description })) };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { ehiExportProcessor, type EhiExportStandard } from './ehiExport.processor';\n\nexport type { EhiExportStandard, EhiTemplateStandard } from './ehiExport.processor';\nexport { ehiExportProcessor } from './ehiExport.processor';\n\n/** `GET /app/release-of-information` for the token, then `POST /api/release-of-information/GetEHIETemplates`. */\nexport async function fetchEhiExportRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/release-of-information');\n  await collector.postJson('/api/release-of-information/GetEHIETemplates', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getEhiExportTemplates(mychartRequest: MyChartRequest): Promise<EhiExportStandard> {\n  return ehiExportProcessor.standard(await fetchEhiExportRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Linked accounts processor. Field decisions: docs/processor-layer-proposal.md,\n * `get_linked_accounts`.\n *\n * `LoadCommunityLinks` returns `OrgList` as a map of ~50-field organization\n * records keyed by id; the standard object emits the map's values (the id is\n * on every row as `OrganizationId`). `LastEncounterDetail` is the one clinical\n * fact in the payload and is `null` on an organization with no visit.\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, strings, textOrNull } from '../../processors/read';\nimport type { LoadCommunityLinks } from './mychart.types';\nimport type { LastEncounterDetailStandard, LinkedAccountsStandard } from './standardized.types';\n\nexport type { LastEncounterDetailStandard, LinkedAccountsStandard, LinkedOrganizationStandard } from './standardized.types';\n\nfunction lastEncounterDetail(value: unknown): LastEncounterDetailStandard | null {\n  if (value === null || typeof value !== 'object' || Array.isArray(value)) return null;\n  const d = rec(value);\n  return {\n    Patient: textOrNull(d.Patient),\n    Physician: textOrNull(d.Physician),\n    Department: textOrNull(d.Department),\n    Date: textOrNull(d.Date),\n    Time: textOrNull(d.Time),\n  };\n}\n\nexport const linkedAccountsProcessor: Processor<LinkedAccountsStandard> = {\n  standard(raw: RawResponse): LinkedAccountsStandard {\n    const body = rec<LoadCommunityLinks>(bodyOf(raw, 'LoadCommunityLinks'));\n    return {\n      HomeOrgName: textOrNull(body.HomeOrgName),\n      CEOptOut: boolOrNull(body.CEOptOut),\n      ForwardedLinks: list(body.ForwardedLinks),\n      OrgList: Object.values(rec(body.OrgList)).map((value) => {\n        const org = rec(value);\n        return {\n          OrganizationName: textOrNull(org.OrganizationName),\n          LastEncounterDetail: lastEncounterDetail(org.LastEncounterDetail),\n          OrganizationId: textOrNull(org.OrganizationId),\n          LinkType: num(org.LinkType),\n          UserActionStatus: num(org.UserActionStatus),\n          UserMyChartStatus: num(org.UserMyChartStatus),\n          DisplayAddress: strings(org.DisplayAddress),\n          LastAccessTokenDateTime: textOrNull(org.LastAccessTokenDateTime),\n          IsDisabled: boolOrNull(org.IsDisabled),\n          IsInvalidCeLink: boolOrNull(org.IsInvalidCeLink),\n          InvalidLinkReason: num(org.InvalidLinkReason),\n          InvalidLinkRetryDate: textOrNull(org.InvalidLinkRetryDate),\n          ErrorMessage: textOrNull(org.ErrorMessage),\n          NeedCeAuth: boolOrNull(org.NeedCeAuth),\n          LinkErrorCode: textOrNull(org.LinkErrorCode),\n        };\n      }),\n    };\n  },\n  concise(standard) {\n    return {\n      OrgList: standard.OrgList.map((org) => ({\n        OrganizationName: org.OrganizationName,\n        LastEncounterDetail: org.LastEncounterDetail,\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { linkedAccountsProcessor, type LinkedAccountsStandard } from './otherMyCharts.processor';\n\nexport type {\n  LinkedAccountsStandard,\n  LinkedOrganizationStandard,\n  LastEncounterDetailStandard,\n} from './otherMyCharts.processor';\nexport { linkedAccountsProcessor } from './otherMyCharts.processor';\n\n/**\n * `GET /Community/Manage` for the token, then the legacy form-encoded\n * `POST /Community/Shared/LoadCommunityLinks` with the lower-case\n * `__requestverificationtoken` header the page's own JS sends. The\n * cache-buster keeps a repeat call from being served a stale org list.\n */\nexport async function fetchLinkedAccountsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/Community/Manage');\n  await collector.send({\n    path: `/Community/Shared/LoadCommunityLinks?noCache=${Math.random()}`,\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n      __requestverificationtoken: token,\n    },\n    body: 'controllerType=2&showDXROrgInMO=false',\n  });\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getLinkedMyChartAccounts(mychartRequest: MyChartRequest): Promise<LinkedAccountsStandard> {\n  return linkedAccountsProcessor.standard(await fetchLinkedAccountsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** The `Care` group — everything the care team sends, orders, or assigns. */\n\nimport { fetchCareTeamRaw, careTeamProcessor } from '../../../../scrapers/myChart/chart/careTeam/careTeam';\nimport { fetchReferralsRaw, referralsProcessor } from '../../../../scrapers/myChart/chart/referrals/referrals';\nimport {\n  fetchLettersRaw,\n  fetchLetterDetailsRaw,\n  lettersProcessor,\n  letterDetailsProcessor,\n} from '../../../../scrapers/myChart/chart/letters/letters';\nimport { fetchDocumentsRaw, documentsProcessor } from '../../../../scrapers/myChart/chart/documents/documents';\nimport { downloadDocument } from '../../../../scrapers/myChart/chart/documents/documentDownload';\nimport { fetchUpcomingOrdersRaw, upcomingOrdersProcessor } from '../../../../scrapers/myChart/chart/upcomingOrders/upcomingOrders';\nimport { fetchQuestionnairesRaw, questionnairesProcessor } from '../../../../scrapers/myChart/chart/questionnaires/questionnaires';\nimport { fetchCareJourneysRaw, careJourneysProcessor } from '../../../../scrapers/myChart/chart/careJourneys/careJourneys';\nimport { fetchActivityFeedRaw, activityFeedProcessor } from '../../../../scrapers/myChart/chart/activityFeed/activityFeed';\nimport { fetchEducationMaterialsRaw, educationMaterialsProcessor } from '../../../../scrapers/myChart/chart/educationMaterials/educationMaterials';\nimport { fetchEhiExportRaw, ehiExportProcessor } from '../../../../scrapers/myChart/chart/ehiExport/ehiExport';\nimport { fetchLinkedAccountsRaw, linkedAccountsProcessor } from '../../../../scrapers/myChart/chart/otherMyCharts/otherMyCharts';\nimport { requireStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const CARE_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_care_team',\n    title: 'Care team',\n    description: 'Providers on the care team, including outside providers, each with their role, specialty and NPI.',\n    kind: 'read',\n    group: 'Care',\n    params: [],\n    run: (request) => fetchCareTeamRaw(request),\n    processor: careTeamProcessor,\n  },\n  {\n    id: 'get_referrals',\n    title: 'Referrals',\n    description: 'Active and past referrals.',\n    kind: 'read',\n    group: 'Care',\n    params: [],\n    run: (request) => fetchReferralsRaw(request),\n    processor: referralsProcessor,\n  },\n  {\n    id: 'get_letters',\n    title: 'Letters',\n    description: 'Letters from providers. Each entry carries the hnoId/csn needed by get_letter_details.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchLettersRaw(request),\n    processor: lettersProcessor,\n  },\n  {\n    id: 'get_letter_details',\n    title: 'Letter contents',\n    description: 'The full contents of one letter listed by get_letters.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [\n      { name: 'hno_id', type: 'string', description: 'hnoId from the chosen get_letters entry.', required: true },\n      { name: 'csn', type: 'string', description: 'csn from the chosen get_letters entry.', required: true },\n    ],\n    run: (request, args) => fetchLetterDetailsRaw(request, requireStr(args, 'hno_id'), requireStr(args, 'csn')),\n    processor: letterDetailsProcessor,\n  },\n  {\n    id: 'get_documents',\n    title: 'Documents',\n    description: 'Clinical documents and visit records.',\n    kind: 'read',\n    group: 'Care',\n    params: [],\n    run: (request) => fetchDocumentsRaw(request),\n    processor: documentsProcessor,\n  },\n  {\n    id: 'download_document',\n    title: 'Download document',\n    description:\n      'Download one Document Center document as the file MyChart serves for it — a PDF, an image (TIF/JPG/PNG) or an e-signed HTML document. ' +\n      'Identify it with the `dcsID` of a document from get_documents. The file is saved on the user’s own device and the path returned.',\n    kind: 'read',\n    group: 'Care',\n    returnsFile: true,\n    params: [\n      { name: 'document_id', type: 'string', required: true, description: 'The `dcsID` of the chosen document from get_documents. Copy it verbatim.' },\n    ],\n    run: (request, args) => downloadDocument(request, requireStr(args, 'document_id')),\n  },\n  {\n    id: 'get_upcoming_orders',\n    title: 'Upcoming orders',\n    description: 'Standing/upcoming orders — labs, imaging and procedures the care team has ordered.',\n    kind: 'read',\n    group: 'Care',\n    params: [],\n    run: (request) => fetchUpcomingOrdersRaw(request),\n    processor: upcomingOrdersProcessor,\n  },\n  {\n    id: 'get_questionnaires',\n    title: 'Questionnaires',\n    description: 'Open and completed questionnaires / health assessments.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchQuestionnairesRaw(request),\n    processor: questionnairesProcessor,\n  },\n  {\n    id: 'get_care_journeys',\n    title: 'Care journeys',\n    description: 'Care journeys and care plans.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchCareJourneysRaw(request),\n    processor: careJourneysProcessor,\n  },\n  {\n    id: 'get_activity_feed',\n    title: 'Activity feed',\n    description: 'Recent account activity feed items.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchActivityFeedRaw(request),\n    processor: activityFeedProcessor,\n  },\n  {\n    id: 'get_education_materials',\n    title: 'Education materials',\n    description: 'Patient education materials assigned by the care team.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchEducationMaterialsRaw(request),\n    processor: educationMaterialsProcessor,\n  },\n  {\n    id: 'get_ehi_export',\n    title: 'EHI export templates',\n    description: 'Electronic Health Information export templates this instance offers.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchEhiExportRaw(request),\n    processor: ehiExportProcessor,\n  },\n  {\n    id: 'get_linked_accounts',\n    title: 'Linked MyChart accounts',\n    description: 'MyChart accounts at other organizations that are linked to this one.',\n    kind: 'read',\n    group: 'Care',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchLinkedAccountsRaw(request),\n    processor: linkedAccountsProcessor,\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Emergency contacts processor. Field decisions: docs/processor-layer-proposal.md,\n * `get_emergency_contacts`.\n *\n * `GetRelationships` keys the list as `contacts`, with the name under\n * `formattedName`, the relationship under `relationToPatient` and the phone\n * numbers under `contactInformation.phoneNumbers`. `isEmergencyContact` is\n * sent by one captured instance only; where an instance omits it the field is\n * `null` (the page is the emergency-contacts page, so absent reads as true,\n * but the processor does not fill in a value MyChart did not send).\n */\n\nimport { bodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, rec, strings, textOrNull } from '../../processors/read';\nimport type { GetRelationships } from './mychart.types';\nimport type { EmergencyContactsStandard } from './standardized.types';\n\nexport type { EmergencyContactStandard, EmergencyContactsStandard, PhoneNumberStandard } from './standardized.types';\n\nexport const emergencyContactsProcessor: Processor<EmergencyContactsStandard> = {\n  standard(raw: RawResponse): EmergencyContactsStandard {\n    const body = rec<GetRelationships>(bodyOf(raw, 'GetRelationships'));\n    return {\n      hideEmergencyContacts: boolOrNull(body.hideEmergencyContacts),\n      contacts: list(body.contacts).map((value) => {\n        const c = rec(value);\n        const info = rec(c.contactInformation);\n        return {\n          id: textOrNull(c.id),\n          formattedName: textOrNull(c.formattedName),\n          relationToPatient: { name: textOrNull(rec(c.relationToPatient).name) },\n          contactInformation: {\n            phoneNumbers: list(info.phoneNumbers).map((p) => ({\n              phoneNumber: textOrNull(rec(p).phoneNumber),\n              type: textOrNull(rec(p).type),\n            })),\n            emailAddress: textOrNull(info.emailAddress),\n            address: { formattedValues: strings(rec(info.address).formattedValues) },\n          },\n          isPrimaryContact: boolOrNull(c.isPrimaryContact),\n          isEmergencyContact: boolOrNull(c.isEmergencyContact),\n        };\n      }),\n    };\n  },\n  /** One phone number per contact. */\n  concise(standard) {\n    return {\n      contacts: standard.contacts.map((c) => ({\n        id: c.id,\n        formattedName: c.formattedName,\n        relationToPatient: c.relationToPatient,\n        contactInformation: { phoneNumbers: c.contactInformation.phoneNumbers.slice(0, 1) },\n      })),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { makeAuthenticatedRequest } from '../../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { getRequestVerificationTokenFromBody } from '../../core/util';\nimport { emergencyContactsProcessor, type EmergencyContactsStandard } from './emergencyContacts.processor';\n\nexport type {\n  EmergencyContactsStandard,\n  EmergencyContactStandard,\n  PhoneNumberStandard,\n} from './emergencyContacts.processor';\nexport { emergencyContactsProcessor } from './emergencyContacts.processor';\n\nexport type EmergencyContactInput = {\n  name: string;\n  relationshipType: string;\n  phoneNumber: string;\n};\n\n/**\n * Callers build this from optional capability args, so a field the user didn't\n * supply arrives as an explicit undefined. `updateEmergencyContact` keys the\n * outbound body off `!== undefined`, so those fields stay out of the payload.\n */\nexport type EmergencyContactUpdateInput = {\n  id: string;\n  name?: string | undefined;\n  relationshipType?: string | undefined;\n  phoneNumber?: string | undefined;\n};\n\nexport type EmergencyContactResult = {\n  success: boolean;\n  error?: string;\n};\n\nconst PERSONAL_INFORMATION = '/app/personal-information';\n\n/** `GET /app/personal-information` for the token, then `POST /api/personalInformation/GetRelationships`. */\nexport async function fetchEmergencyContactsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken(PERSONAL_INFORMATION);\n  await collector.postJson('/api/personalInformation/GetRelationships', token, {});\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getEmergencyContacts(mychartRequest: MyChartRequest): Promise<EmergencyContactsStandard> {\n  return emergencyContactsProcessor.standard(await fetchEmergencyContactsRaw(mychartRequest));\n}\n\n/** Token for the write endpoints below, or null when the page has none. */\nasync function getToken(mychartRequest: MyChartRequest): Promise<string | null> {\n  const pageResp = await makeAuthenticatedRequest(mychartRequest, { path: PERSONAL_INFORMATION });\n  const html = await pageResp.text();\n  return getRequestVerificationTokenFromBody(html) ?? null;\n}\n\nexport async function addEmergencyContact(\n  mychartRequest: MyChartRequest,\n  input: EmergencyContactInput\n): Promise<EmergencyContactResult> {\n  const token = await getToken(mychartRequest);\n\n  if (!token) {\n    return { success: false, error: 'Could not get verification token' };\n  }\n\n  const resp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/personalInformation/AddRelationship',\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json',\n      '__RequestVerificationToken': token,\n    },\n    body: JSON.stringify({\n      name: input.name,\n      relationshipType: input.relationshipType,\n      phoneNumber: input.phoneNumber,\n      isEmergencyContact: true,\n    }),\n  });\n\n  if (resp.status === 200) {\n    return { success: true };\n  }\n\n  const text = await resp.text();\n  return { success: false, error: `Add failed with status ${resp.status}: ${text}` };\n}\n\nexport async function updateEmergencyContact(\n  mychartRequest: MyChartRequest,\n  input: EmergencyContactUpdateInput\n): Promise<EmergencyContactResult> {\n  const token = await getToken(mychartRequest);\n\n  if (!token) {\n    return { success: false, error: 'Could not get verification token' };\n  }\n\n  const resp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/personalInformation/UpdateRelationship',\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json',\n      '__RequestVerificationToken': token,\n    },\n    body: JSON.stringify({\n      id: input.id,\n      ...(input.name !== undefined && { name: input.name }),\n      ...(input.relationshipType !== undefined && { relationshipType: input.relationshipType }),\n      ...(input.phoneNumber !== undefined && { phoneNumber: input.phoneNumber }),\n      isEmergencyContact: true,\n    }),\n  });\n\n  if (resp.status === 200) {\n    return { success: true };\n  }\n\n  const text = await resp.text();\n  return { success: false, error: `Update failed with status ${resp.status}: ${text}` };\n}\n\nexport async function removeEmergencyContact(\n  mychartRequest: MyChartRequest,\n  id: string\n): Promise<EmergencyContactResult> {\n  const token = await getToken(mychartRequest);\n\n  if (!token) {\n    return { success: false, error: 'Could not get verification token' };\n  }\n\n  const resp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/personalInformation/RemoveRelationship',\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application/json',\n      '__RequestVerificationToken': token,\n    },\n    body: JSON.stringify({ id }),\n  });\n\n  if (resp.status === 200) {\n    return { success: true };\n  }\n\n  const text = await resp.text();\n  return { success: false, error: `Remove failed with status ${resp.status}: ${text}` };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/** The `Emergency contacts` group — read, add, update, remove. */\n\nimport {\n  fetchEmergencyContactsRaw,\n  emergencyContactsProcessor,\n  addEmergencyContact,\n  updateEmergencyContact,\n  removeEmergencyContact,\n} from '../../../../scrapers/myChart/chart/emergencyContacts/emergencyContacts';\nimport { optStr, requireStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const EMERGENCY_CONTACT_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_emergency_contacts',\n    title: 'Emergency contacts',\n    description: 'Emergency contacts on file.',\n    kind: 'read',\n    group: 'Emergency contacts',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchEmergencyContactsRaw(request),\n    processor: emergencyContactsProcessor,\n  },\n  {\n    id: 'add_emergency_contact',\n    title: 'Add an emergency contact',\n    description: 'Add a new emergency contact to the record.',\n    kind: 'write',\n    group: 'Emergency contacts',\n    lessFrequentlyUsed: true,\n    params: [\n      { name: 'name', type: 'string', description: 'Contact’s full name.', required: true },\n      { name: 'relationship_type', type: 'string', description: 'Relationship, e.g. \"Spouse\", \"Parent\", \"Sibling\", \"Friend\".', required: true },\n      { name: 'phone_number', type: 'string', description: 'Contact phone number.', required: true },\n    ],\n    run: (request, args) =>\n      addEmergencyContact(request, {\n        name: requireStr(args, 'name'),\n        relationshipType: requireStr(args, 'relationship_type'),\n        phoneNumber: requireStr(args, 'phone_number'),\n      }),\n  },\n  {\n    id: 'update_emergency_contact',\n    title: 'Update an emergency contact',\n    description: 'Update an existing emergency contact. Only the fields you pass are changed.',\n    kind: 'write',\n    group: 'Emergency contacts',\n    lessFrequentlyUsed: true,\n    params: [\n      { name: 'id', type: 'string', description: 'Contact id from get_emergency_contacts.', required: true },\n      { name: 'name', type: 'string', description: 'New name.' },\n      { name: 'relationship_type', type: 'string', description: 'New relationship.' },\n      { name: 'phone_number', type: 'string', description: 'New phone number.' },\n    ],\n    run: (request, args) =>\n      updateEmergencyContact(request, {\n        id: requireStr(args, 'id'),\n        name: optStr(args, 'name'),\n        relationshipType: optStr(args, 'relationship_type'),\n        phoneNumber: optStr(args, 'phone_number'),\n      }),\n  },\n  {\n    id: 'remove_emergency_contact',\n    title: 'Remove an emergency contact',\n    description: 'Remove an emergency contact by id.',\n    kind: 'write',\n    group: 'Emergency contacts',\n    lessFrequentlyUsed: true,\n    params: [{ name: 'id', type: 'string', description: 'Contact id from get_emergency_contacts.', required: true }],\n    run: (request, args) => removeEmergencyContact(request, requireStr(args, 'id')),\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `Prescriptions` group.\n *\n * `request_refill` is declared and deliberately not implemented — see\n * `scrapers/myChart/chart/medications/REFILL.md` for the endpoint, what the\n * withdrawn scraper sent, and what a real implementation has to confirm first.\n */\n\nimport type { CapabilityImpl } from '../types';\n\nexport const PRESCRIPTION_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'request_refill',\n    title: 'Request a refill',\n    description:\n      'Request a refill for a current medication. NOT IMPLEMENTED: this reads nothing, changes ' +\n      'nothing and submits nothing — the refill request has never been watched reaching a real ' +\n      'pharmacy. Ask the patient to request the refill in MyChart directly.',\n    kind: 'write',\n    group: 'Prescriptions',\n    // A write nobody has ever watched land. The withdrawn scraper posted\n    // `{ medicationKey }` to `/api/medications/RequestRefill`; `medicationKey`\n    // is a field only fake-mychart has ever used, and the captured medications\n    // response names the prescription `id`. The fake answers `{success: true}`\n    // to anything, so the scraper passed its tests while quite possibly sending\n    // a body real MyChart ignores — and a refill that silently does not reach\n    // the pharmacy is a patient who stops taking a medication believing it is\n    // on the way. See REFILL.md for what a real implementation must establish.\n    notImplemented:\n      'request_refill is not implemented: it did nothing, read nothing and changed nothing. The ' +\n      'refill request has never been watched reaching a real pharmacy, so OpenRecord will not ' +\n      'pretend to submit one. Ask the patient to request the refill in MyChart directly. Do not ' +\n      'report this as a completed action.',\n    params: [\n      {\n        name: 'medication_name',\n        type: 'string',\n        description: 'Ignored until this is implemented. Medication name as shown by get_medications.',\n      },\n      {\n        name: 'medication_key',\n        type: 'string',\n        description: 'Ignored until this is implemented. Exact prescription `id` from get_medications.',\n      },\n    ],\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `Patients` group — MyChart proxy access to family members' charts.\n *\n * Thin wrappers over `scrapers/myChart/proxyTools.ts`, which owns the\n * semantics: reads assert which patient they are about and refuse on a\n * mismatch, and only an explicit switch changes MyChart's server-side\n * active patient. Everything below is exempt from that assertion — guarding\n * \"you must already be on patient X\" in front of the tools that list and\n * change X would make them unusable exactly when they are needed.\n */\n\nimport {\n  runListProxyTargets,\n  runSwitchProxyTarget,\n} from '../../../../scrapers/myChart/proxy/proxyTools';\nimport { requireStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const PATIENT_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'list_proxy_targets',\n    aliases: ['list_patients', 'get_active_patient'],\n    title: 'List accessible patient records',\n    description:\n      'List every patient record this MyChart account can access — the account holder plus any family members reachable via proxy access (a parent viewing a child\\'s chart) — and which one is currently active. Data tools always read the ACTIVE record; use switch_proxy_target to change it. Accounts without proxy access return count: 0.',\n    kind: 'read',\n    group: 'Patients',\n    params: [],\n    run: (request) => runListProxyTargets(request),\n  },\n  {\n    id: 'switch_proxy_target',\n    aliases: ['switch_patient'],\n    title: 'Switch the active patient record',\n    description:\n      'Switch which patient\\'s record MyChart is showing (e.g. from the account holder\\'s own chart to a child\\'s). This changes server-side MyChart state: EVERY data tool on this account reads the newly active record afterwards. The switch is verified against the profile page and fails rather than landing on the wrong patient. Pass patient: \"me\" to return to the account holder\\'s own record when done.',\n    kind: 'write',\n    group: 'Patients',\n    params: [\n      {\n        name: 'patient',\n        type: 'string',\n        description: 'Patient name from list_proxy_targets, or \"me\" for the account holder\\'s own record.',\n        required: true,\n      },\n    ],\n    run: (request, args) => runSwitchProxyTarget(request, requireStr(args, 'patient')),\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Notification preferences processor. Field decisions: this folder's README.\n *\n * `GetPreferences` is normalised: groups, topics, channel toggles and\n * sub-option sections are four maps keyed by opaque `WP-…` ids, joined by id\n * lists. The standard object resolves those joins into one tree in MyChart's\n * own order and drops the ids — they are encrypted handles, not something a\n * reader can compare between orgs.\n */\n\nimport { bodyOf, okBodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, strings, textOrNull } from '../../processors/read';\nimport type { GetContactInformation, GetPreferences } from './mychart.types';\nimport type {\n  AdditionalItemSectionStandard,\n  NotificationConceptStandard,\n  NotificationContactInformationStandard,\n  NotificationMediaStandard,\n  NotificationPreferencesStandard,\n} from './standardized.types';\n\nexport type {\n  AdditionalItemSectionStandard,\n  NotificationConceptStandard,\n  NotificationContactInformationStandard,\n  NotificationGrouperStandard,\n  NotificationMediaStandard,\n  NotificationOptionStandard,\n  NotificationPreferencesStandard,\n} from './standardized.types';\n\n/** `epic.px.client.communication-preferences`, module 546: the bundle's own decode tables. */\nconst MEDIA_TYPE_NAMES: Readonly<Record<string, string>> = { 1: 'Email', 3: 'Mail', 4: 'Phone', 6: 'Push', 100: 'Text' };\nconst TOGGLE_STATUS_NAMES: Readonly<Record<number, string>> = { 0: 'Off', 1: 'On', 3: 'LockedOn' };\n\nfunction media(value: unknown): NotificationMediaStandard {\n  const m = rec<NonNullable<GetPreferences['medias']>[string]>(value);\n  const type = textOrNull(m.type);\n  const toggleStatus = num(m.toggleStatus);\n  return {\n    type,\n    channel: type === null ? null : MEDIA_TYPE_NAMES[type] ?? null,\n    toggleStatus,\n    status: toggleStatus === null ? null : TOGGLE_STATUS_NAMES[toggleStatus] ?? null,\n  };\n}\n\nfunction section(value: unknown): AdditionalItemSectionStandard {\n  const s = rec<NonNullable<GetPreferences['additionalItemSections']>[string]>(value);\n  const descriptions = rec(s.optionDescriptionMap);\n  const selections = rec(s.optionSelectionMap);\n  return {\n    sectionType: textOrNull(s.sectionType),\n    sectionDescription: textOrNull(s.sectionDescription),\n    options: strings(s.optionIds).map((id) => ({\n      description: textOrNull(descriptions[id]),\n      selected: boolOrNull(selections[id]),\n    })),\n  };\n}\n\nfunction contactInformation(value: unknown): NotificationContactInformationStandard {\n  const c = rec<GetContactInformation>(value);\n  return {\n    email: textOrNull(c.email),\n    mobilePhone: textOrNull(c.mobilePhone),\n    emailPending: boolOrNull(c.emailPending),\n    mobilePending: boolOrNull(c.mobilePending),\n    mobileIsVerified: boolOrNull(c.mobileIsVerified),\n    mediaTypesMissingContactMethod: list(c.mediaTypesMissingContactMethod),\n    proxyContextName: textOrNull(c.proxyContextName),\n  };\n}\n\nexport const notificationPreferencesProcessor: Processor<NotificationPreferencesStandard> = {\n  standard(raw: RawResponse): NotificationPreferencesStandard {\n    const body = rec<GetPreferences>(bodyOf(raw, 'GetPreferences'));\n    const groupers = rec(body.groupers);\n    const concepts = rec(body.concepts);\n    const medias = rec(body.medias);\n    const sections = rec(body.additionalItemSections);\n    const paperlessRequired = new Set(strings(body.paperlessBillingRequiredConcepts));\n\n    const concept = (id: string): NotificationConceptStandard => {\n      const c = rec<NonNullable<GetPreferences['concepts']>[string]>(concepts[id]);\n      const conceptMedias = strings(c.mediaIds).filter((m) => m in medias).map((m) => media(medias[m]));\n      const sectionId = textOrNull(c.additionalItemSectionId);\n      return {\n        title: textOrNull(c.title),\n        description: textOrNull(c.description),\n        medias: conceptMedias,\n        channelsOn: conceptMedias\n          .filter((m) => m.status !== 'Off' && m.status !== null)\n          .map((m) => m.channel ?? `type ${m.type}`),\n        requiredForPaperlessBilling: paperlessRequired.has(id),\n        additionalItemSection: sectionId && sectionId in sections ? section(sections[sectionId]) : null,\n      };\n    };\n\n    const contact = okBodyOf(raw, 'GetContactInformation');\n    return {\n      groupers: strings(body.grouperOrder)\n        .filter((id) => id in groupers)\n        .map((id) => {\n          const g = rec<NonNullable<GetPreferences['groupers']>[string]>(groupers[id]);\n          return {\n            title: textOrNull(g.title),\n            description: textOrNull(g.description),\n            concepts: strings(g.conceptIds).filter((c) => c in concepts).map(concept),\n            otherPreferencesLinkText: textOrNull(g.otherPreferencesLinkText),\n          };\n        }),\n      smsFlagOn: boolOrNull(body.smsFlagOn),\n      userAcceptsSms: boolOrNull(body.userAcceptsSms),\n      contactInformation: contact === undefined ? null : contactInformation(contact),\n      ...(contact === undefined ? { contactInformationUnavailable: true as const } : {}),\n    };\n  },\n  /** Each topic and the channels it reaches the patient on; nothing else. */\n  concise(standard) {\n    return {\n      groupers: standard.groupers.map((g) => ({\n        title: g.title,\n        concepts: g.concepts.map((c) => ({ title: c.title, channelsOn: c.channelsOn })),\n      })),\n      userAcceptsSms: standard.userAcceptsSms,\n      ...(standard.contactInformationUnavailable ? { contactInformationUnavailable: true } : {}),\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { notificationPreferencesProcessor, type NotificationPreferencesStandard } from './notificationPreferences.processor';\n\nexport type {\n  AdditionalItemSectionStandard,\n  NotificationConceptStandard,\n  NotificationContactInformationStandard,\n  NotificationGrouperStandard,\n  NotificationMediaStandard,\n  NotificationOptionStandard,\n  NotificationPreferencesStandard,\n} from './notificationPreferences.processor';\nexport { notificationPreferencesProcessor } from './notificationPreferences.processor';\n\n/**\n * `GET /app/communication-preferences` for the token, then\n * `POST /api/communicationPreferences/GetPreferences` (the payload) and\n * `POST /api/communicationPreferences/GetContactInformation` (where those\n * notifications are delivered). Both take `{}`, exactly as the activity sends.\n *\n * Only the contact read is tolerated: a failed `GetPreferences` is a failed\n * read, not an org with no notification topics.\n */\nexport async function fetchNotificationPreferencesRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const token = await collector.pageToken('/app/communication-preferences');\n  await collector.postJson('/api/communicationPreferences/GetPreferences', token, {});\n  await collector.postJson('/api/communicationPreferences/GetContactInformation', token, {}, { tolerateFailure: true });\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getNotificationPreferences(mychartRequest: MyChartRequest): Promise<NotificationPreferencesStandard> {\n  return notificationPreferencesProcessor.standard(await fetchNotificationPreferencesRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Account settings processor. Field decisions: this folder's README.\n *\n * Five independent reads, one section each. A section whose request failed is\n * `null` and its endpoint is named in `unavailable` — \"paperless status\n * unknown\" must never read as \"not signed up\".\n */\n\nimport { findRequest, okBodyOf, type RawResponse } from '../../core/rawResponse';\nimport type { Processor } from '../../processors/processor';\nimport { boolOrNull, list, num, rec, textOrNull } from '../../processors/read';\nimport type {\n  GetCeConfiguration,\n  GetCombinedPaperless,\n  GetConsentData,\n  GetInitialSettings,\n  GetResultsReleasePreferences,\n} from './mychart.types';\nimport type {\n  AccountSettingsStandard,\n  PaperlessFeatureStandard,\n  TextMessagingStandard,\n  TextSenderStandard,\n} from './standardized.types';\n\nexport type {\n  AccountSettingsStandard,\n  CareEverywhereStandard,\n  PaperlessFeatureStandard,\n  PaperlessStandard,\n  ResultsReleaseStandard,\n  SecurityStandard,\n  TextMessagingStandard,\n  TextSenderStandard,\n} from './standardized.types';\n\nconst PAPERLESS = '/api/paperless-settings/GetCombinedPaperless';\nconst RESULTS_RELEASE = '/api/test-results/GetResultsReleasePreferences';\nconst SECURITY = '/api/security-settings/GetInitialSettings';\nconst TEXT_OPT_IN = '/api/textoptin/GetConsentData';\nconst CARE_EVERYWHERE = '/api/care-everywhere-opt-out/GetCeConfiguration';\n\n/** Each section's activity page (for the token) and endpoint, in request order. */\nexport const ACCOUNT_SETTINGS_SECTIONS = [\n  { activity: '/app/paperless-settings', path: PAPERLESS },\n  { activity: '/app/test-results', path: RESULTS_RELEASE },\n  { activity: '/app/security-settings', path: SECURITY },\n  { activity: '/app/text-opt-in', path: TEXT_OPT_IN },\n  { activity: '/app/care-everywhere-opt-out', path: CARE_EVERYWHERE },\n] as const;\n\n/** `epic.px.client.paperless-settings`: the bundle's own decode table. `0` is its \"NotLoaded\" placeholder. */\nconst PAPERLESS_STATUS_NAMES: Readonly<Record<number, string>> = {\n  [-1]: 'NotEligible',\n  1: 'SignedUp',\n  2: 'Declined',\n  3: 'NoResponse',\n  4: 'Mixed',\n};\n\nfunction paperlessFeature(value: unknown): PaperlessFeatureStandard {\n  const f = rec<NonNullable<GetCombinedPaperless['eobInfo']>>(value);\n  const status = num(f.status);\n  return {\n    status,\n    statusName: status === null ? null : PAPERLESS_STATUS_NAMES[status] ?? null,\n    allowSignup: boolOrNull(f.allowSignup),\n    allowCancel: boolOrNull(f.allowCancel),\n  };\n}\n\nfunction sender(value: unknown): TextSenderStandard {\n  const s = rec<NonNullable<GetConsentData['primarySender']>>(value);\n  return {\n    shortCode: textOrNull(s.shortCode),\n    displayName: textOrNull(s.displayName),\n    termsAndConditionsURL: textOrNull(s.termsAndConditionsURL),\n  };\n}\n\nfunction textMessaging(value: unknown): TextMessagingStandard {\n  const body = rec<GetConsentData>(value);\n  const consent = rec(rec(body.consentData).shortCodesConsent);\n  return {\n    consentData: {\n      phone: textOrNull(rec(body.consentData).phone),\n      shortCodesConsent: Object.fromEntries(\n        Object.entries(consent).filter((e): e is [string, boolean] => typeof e[1] === 'boolean'),\n      ),\n    },\n    primarySender: sender(body.primarySender),\n    ...('secondarySenders' in body ? { secondarySenders: list(body.secondarySenders).map(sender) } : {}),\n    ...('additionalSenders' in body ? { additionalSenders: list(body.additionalSenders).map(sender) } : {}),\n  };\n}\n\nexport const accountSettingsProcessor: Processor<AccountSettingsStandard> = {\n  standard(raw: RawResponse): AccountSettingsStandard {\n    const unavailable: string[] = [];\n    const section = <T>(path: string, build: (body: unknown) => T): T | null => {\n      const body = okBodyOf(raw, path);\n      if (body === undefined) {\n        // A section the scraper never reached (its token page threw) is as\n        // unknown as one that answered 500.\n        unavailable.push(findRequest(raw, path)?.path ?? path);\n        return null;\n      }\n      return build(body);\n    };\n    return {\n      paperless: section(PAPERLESS, (b) => {\n        const p = rec<GetCombinedPaperless>(b);\n        return {\n          billingInfo: paperlessFeature(p.billingInfo),\n          eobInfo: paperlessFeature(p.eobInfo),\n          invoiceInfo: paperlessFeature(p.invoiceInfo),\n          avsInfo: paperlessFeature(p.avsInfo),\n        };\n      }),\n      resultsRelease: section(RESULTS_RELEASE, (b) => {\n        const r = rec<GetResultsReleasePreferences>(b);\n        const options = list(r.options).map((o) => ({\n          value: textOrNull(rec(o).value),\n          titleUtf8: textOrNull(rec(o).titleUtf8),\n        }));\n        const chosen = textOrNull(r.chosenRRPreference);\n        return {\n          options,\n          chosenRRPreference: chosen,\n          chosenRRPreferenceTitle: chosen ? options.find((o) => o.value === chosen)?.titleUtf8 ?? null : null,\n        };\n      }),\n      security: section(SECURITY, (b) => {\n        const s = rec<GetInitialSettings>(b);\n        return {\n          passwordLastUpdated: textOrNull(s.passwordLastUpdated),\n          twoFactorEmailSmsOn: boolOrNull(s.twoFactorEmailSmsOn),\n          twoFactorTOTPOn: boolOrNull(s.twoFactorTOTPOn),\n          twoFactorRequired: boolOrNull(s.twoFactorRequired),\n          allowEmailSmsToggle: boolOrNull(s.allowEmailSmsToggle),\n          allowTotpToggle: boolOrNull(s.allowTotpToggle),\n          passkeyLoginAvailable: boolOrNull(s.passkeyLoginAvailable),\n          rememberWebDevices: boolOrNull(s.rememberWebDevices),\n          rememberWebDevicesAllowed: boolOrNull(s.rememberWebDevicesAllowed),\n          passwordChangeAvailable: boolOrNull(s.passwordChangeAvailable),\n          isMyChartCentral: boolOrNull(s.isMyChartCentral),\n          deactivateAccountAllowed: boolOrNull(s.deactivateAccountAllowed),\n        };\n      }),\n      textMessaging: section(TEXT_OPT_IN, textMessaging),\n      careEverywhere: section(CARE_EVERYWHERE, (b) => {\n        const c = rec<GetCeConfiguration>(b);\n        return {\n          isPatientOptedIn: boolOrNull(c.isPatientOptedIn),\n          canChangeCeStatus: boolOrNull(c.canChangeCeStatus),\n          doesPatientReqConsent: boolOrNull(c.doesPatientReqConsent),\n          hasAuthsOnFile: boolOrNull(c.hasAuthsOnFile),\n          needsAuthorization: boolOrNull(c.needsAuthorization),\n        };\n      }),\n      unavailable,\n    };\n  },\n  /** The one answer per setting a person asks about. */\n  concise(standard) {\n    const p = standard.paperless;\n    return {\n      paperless: p && {\n        billingInfo: { statusName: p.billingInfo.statusName },\n        eobInfo: { statusName: p.eobInfo.statusName },\n        invoiceInfo: { statusName: p.invoiceInfo.statusName },\n        avsInfo: { statusName: p.avsInfo.statusName },\n      },\n      resultsRelease: standard.resultsRelease && {\n        chosenRRPreferenceTitle: standard.resultsRelease.chosenRRPreferenceTitle,\n      },\n      security: standard.security && {\n        twoFactorEmailSmsOn: standard.security.twoFactorEmailSmsOn,\n        twoFactorTOTPOn: standard.security.twoFactorTOTPOn,\n        passwordLastUpdated: standard.security.passwordLastUpdated,\n      },\n      textMessaging: standard.textMessaging && {\n        consentData: { shortCodesConsent: standard.textMessaging.consentData.shortCodesConsent },\n      },\n      careEverywhere: standard.careEverywhere && {\n        isPatientOptedIn: standard.careEverywhere.isPatientOptedIn,\n      },\n      unavailable: standard.unavailable,\n    };\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { MyChartRequest } from '../../core/myChartRequest';\nimport { RawCollector, type RawResponse } from '../../core/rawResponse';\nimport { SessionExpiredError } from '../../core/makeAuthenticatedRequest';\nimport {\n  ACCOUNT_SETTINGS_SECTIONS,\n  accountSettingsProcessor,\n  type AccountSettingsStandard,\n} from './accountSettings.processor';\n\nexport type {\n  AccountSettingsStandard,\n  CareEverywhereStandard,\n  PaperlessFeatureStandard,\n  PaperlessStandard,\n  ResultsReleaseStandard,\n  SecurityStandard,\n  TextMessagingStandard,\n  TextSenderStandard,\n} from './accountSettings.processor';\nexport { accountSettingsProcessor } from './accountSettings.processor';\n\n/**\n * For each section: `GET` its activity page for the token, then `POST` its\n * endpoint with `{}`, exactly as the activity sends.\n *\n * Each section is tolerated on its own — an org that has not turned on one\n * setting page still has the other four. All five failing is a failed read and\n * throws the first failure; an expired session always throws.\n */\nexport async function fetchAccountSettingsRaw(mychartRequest: MyChartRequest): Promise<RawResponse> {\n  const collector = new RawCollector(mychartRequest);\n  const failures: Error[] = [];\n  for (const { activity, path } of ACCOUNT_SETTINGS_SECTIONS) {\n    try {\n      const token = await collector.pageToken(activity);\n      const { failure } = await collector.send(\n        {\n          path,\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json', __RequestVerificationToken: token },\n          body: JSON.stringify({}),\n        },\n        { tolerateFailure: true },\n      );\n      if (failure) failures.push(failure);\n    } catch (err) {\n      if (err instanceof SessionExpiredError) throw err;\n      failures.push(err as Error);\n    }\n  }\n  if (failures.length === ACCOUNT_SETTINGS_SECTIONS.length) throw failures[0]!;\n  return collector.toRaw();\n}\n\n/** The standard object — what `mode: 'json'` returns. */\nexport async function getAccountSettings(mychartRequest: MyChartRequest): Promise<AccountSettingsStandard> {\n  return accountSettingsProcessor.standard(await fetchAccountSettingsRaw(mychartRequest));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `Settings` group — how this MyChart account is set up, read\n * only. Every org configures these pages differently, which is the point of\n * reading them: comparing the same account's settings across health systems.\n */\n\nimport {\n  fetchNotificationPreferencesRaw,\n  notificationPreferencesProcessor,\n} from '../../../../scrapers/myChart/chart/notificationPreferences/notificationPreferences';\nimport { fetchAccountSettingsRaw, accountSettingsProcessor } from '../../../../scrapers/myChart/chart/accountSettings/accountSettings';\nimport type { CapabilityImpl } from '../types';\n\nexport const ACCOUNT_SETTINGS_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'get_notification_preferences',\n    title: 'Notification preferences',\n    description:\n      'Which notifications this MyChart sends and on which channels (email, text, push, phone, mail), topic by topic, as this health system arranges them — including the ones locked on — plus the email and mobile number they go to.',\n    kind: 'read',\n    group: 'Settings',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchNotificationPreferencesRaw(request),\n    processor: notificationPreferencesProcessor,\n  },\n  {\n    id: 'get_account_settings',\n    title: 'Account settings',\n    description:\n      'Paperless enrollment (statements, EOBs, invoices, after-visit summaries), when new test results are released, two-step verification and password age, text-message consent, and whether the record is shared through Care Everywhere.',\n    kind: 'read',\n    group: 'Settings',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: (request) => fetchAccountSettingsRaw(request),\n    processor: accountSettingsProcessor,\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { makeAuthenticatedRequest } from '../core/makeAuthenticatedRequest';\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { fetchSessionCsrfToken } from '../core/csrf';\nimport {\n  createCredential,\n  type MyChartCreationOptions,\n  type PasskeyCredential,\n} from './softwareAuthenticator';\nimport { logger } from '../../../shared/logger';\n\n// Deliberately status-only: the headers carry Set-Cookie and the bodies of\n// these endpoints carry WebAuthn challenges, so neither is safe to log.\nfunction logUnexpectedResponse(label: string, resp: Response) {\n  logger.debug(`  ${label} unexpected status: ${resp.status}`);\n}\n\n/**\n * Register a new passkey on a MyChart account.\n *\n * Flow (discovered via Playwright on UCSF MyChart):\n * 1. POST /api/passkey-management/GenerateCreateRequest — get WebAuthn creation options\n * 2. Software authenticator creates credential (replaces navigator.credentials.create)\n * 3. POST /api/passkey-management/CreatePasskey — submit credential to server\n *\n * Requires an active, authenticated session (logged in via password + 2FA first).\n *\n * Returns the PasskeyCredential for local storage, or null if setup fails.\n */\nexport async function setupPasskey(mychartRequest: MyChartRequest): Promise<PasskeyCredential | null> {\n\n  // Get CSRF token for API requests\n  const csrfToken = await fetchSessionCsrfToken(mychartRequest);\n  if (!csrfToken) {\n    logger.debug('  Could not get CSRF token.');\n    return null;\n  }\n\n  const origin = `${mychartRequest.protocol}://${mychartRequest.hostname}`;\n  const apiHeaders: Record<string, string> = {\n    'Content-Type': 'application/json',\n    'Accept': 'application/json',\n    '__RequestVerificationToken': csrfToken,\n    'X-Requested-With': 'XMLHttpRequest',\n    'origin': origin,\n    'Sec-Fetch-Dest': 'empty',\n    'Sec-Fetch-Mode': 'cors',\n    'Sec-Fetch-Site': 'same-origin',\n  };\n\n  // Step 1: Get WebAuthn creation options\n  logger.debug('  Requesting passkey creation options...');\n  const createReqResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/passkey-management/GenerateCreateRequest',\n    method: 'POST',\n    headers: apiHeaders,\n    body: '{}',\n  });\n  if (createReqResp.status !== 200) {\n    logUnexpectedResponse('GenerateCreateRequest', createReqResp);\n    return null;\n  }\n  const createReqResult = await createReqResp.json();\n\n  if (!createReqResult.success && !createReqResult.Success) {\n    logger.debug('  GenerateCreateRequest failed. Keys:', Object.keys(createReqResult).join(', '));\n    return null;\n  }\n\n  const creationOptions: MyChartCreationOptions = createReqResult.data || createReqResult.Data;\n  if (!creationOptions?.challenge) {\n    logger.debug('  Invalid creation options — no challenge in the response.');\n    return null;\n  }\n\n  logger.debug('  Got creation options. RP:', creationOptions.rp.name,\n    ', User:', creationOptions.user.displayName,\n    ', Existing passkeys:', creationOptions.excludeCredentials.length);\n\n  // Step 2: Create credential using software authenticator\n  // Determine the index for the default name (one more than existing count)\n  const indexForDefaultName = creationOptions.excludeCredentials.length + 1;\n\n  const registrationResult = createCredential(creationOptions, origin, indexForDefaultName);\n  logger.debug('  Created software credential. ID:', registrationResult.credential.credentialId.substring(0, 20) + '...');\n\n  // Step 3: Submit credential to MyChart\n  logger.debug('  Registering passkey with MyChart...');\n  const createPasskeyResp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/passkey-management/CreatePasskey',\n    method: 'POST',\n    headers: apiHeaders,\n    body: JSON.stringify(registrationResult.serverResponse),\n  });\n  if (createPasskeyResp.status !== 200) {\n    logUnexpectedResponse('CreatePasskey', createPasskeyResp);\n    return null;\n  }\n\n  const createPasskeyResult = await createPasskeyResp.json();\n  logger.debug('  CreatePasskey response keys:', Object.keys(createPasskeyResult).join(', '));\n\n  // Check for success — the response should contain passkey metadata\n  if (createPasskeyResult.rawId || createPasskeyResult.RawId || createPasskeyResult.success || createPasskeyResult.Success) {\n    logger.debug('  Passkey registered successfully!');\n    return registrationResult.credential;\n  }\n\n  // Some instances might return just the passkey object directly\n  if (createPasskeyResult.name || createPasskeyResult.Name) {\n    logger.debug('  Passkey registered successfully! Name:', createPasskeyResult.name || createPasskeyResult.Name);\n    return registrationResult.credential;\n  }\n\n  logger.debug('  Passkey registration may have failed. Check the response above.');\n  return registrationResult.credential; // Return anyway — the credential was created\n}\n\n/**\n * List passkeys registered on a MyChart account.\n */\nexport async function listPasskeys(mychartRequest: MyChartRequest): Promise<unknown[] | null> {\n  const csrfToken = await fetchSessionCsrfToken(mychartRequest);\n  if (!csrfToken) return null;\n\n  const origin = `${mychartRequest.protocol}://${mychartRequest.hostname}`;\n  const apiHeaders: Record<string, string> = {\n    'Content-Type': 'application/json',\n    'Accept': 'application/json',\n    '__RequestVerificationToken': csrfToken,\n    'X-Requested-With': 'XMLHttpRequest',\n    'origin': origin,\n    'Sec-Fetch-Dest': 'empty',\n    'Sec-Fetch-Mode': 'cors',\n    'Sec-Fetch-Site': 'same-origin',\n  };\n\n  const resp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/passkey-management/LoadPasskeyInfo',\n    method: 'POST',\n    headers: apiHeaders,\n    body: JSON.stringify({ hostname: mychartRequest.hostname }),\n  });\n\n  if (resp.status !== 200) {\n    logUnexpectedResponse('LoadPasskeyInfo', resp);\n    return null;\n  }\n\n  const result = await resp.json();\n  // Some instances wrap the list: { success, data: { passkeys, lastAuthentication } }.\n  return result.passkeys || result.Passkeys || result.data?.passkeys || [];\n}\n\n/**\n * Delete a passkey from a MyChart account.\n */\nexport async function deletePasskey(mychartRequest: MyChartRequest, rawId: string): Promise<boolean> {\n  const csrfToken = await fetchSessionCsrfToken(mychartRequest);\n  if (!csrfToken) return false;\n\n  const origin = `${mychartRequest.protocol}://${mychartRequest.hostname}`;\n  const apiHeaders: Record<string, string> = {\n    'Content-Type': 'application/json',\n    'Accept': 'application/json',\n    '__RequestVerificationToken': csrfToken,\n    'X-Requested-With': 'XMLHttpRequest',\n    'origin': origin,\n    'Sec-Fetch-Dest': 'empty',\n    'Sec-Fetch-Mode': 'cors',\n    'Sec-Fetch-Site': 'same-origin',\n  };\n\n  const resp = await makeAuthenticatedRequest(mychartRequest, {\n    path: '/api/passkey-management/DeletePasskey',\n    method: 'POST',\n    headers: apiHeaders,\n    body: JSON.stringify({ rawId }),\n  });\n\n  if (resp.status !== 200) {\n    logUnexpectedResponse('DeletePasskey', resp);\n    return false;\n  }\n\n  logger.debug('  Passkey deleted successfully.');\n  return true;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `Account security` group.\n *\n * `account` kind: these change how the patient logs in, so no client offers\n * them to a model. They are reachable from the CLI's flags, the desktop\n * extension's setup surface and the mobile app's settings screen.\n */\n\nimport { setupPasskey, listPasskeys, deletePasskey } from '../../../../scrapers/myChart/auth/setupPasskey';\nimport { serializeCredential } from '../../../../scrapers/myChart/auth/softwareAuthenticator';\nimport { setupTotp, disableTotp } from '../../../../scrapers/myChart/auth/setupTotp';\nimport { optStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const ACCOUNT_SECURITY_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'register_passkey',\n    title: 'Register a passkey',\n    description: 'Register a passkey on this MyChart account so future logins skip the password and the 2FA prompt.',\n    kind: 'account',\n    group: 'Account security',\n    // The whole group is a sign-in setting rather than a chart operation, and\n    // the CLI drives all five from dedicated flags (`--set-up-passkey`,\n    // `--set-up-totp`, …) that the help text lists in their own section.\n    lessFrequentlyUsed: true,\n    params: [],\n    run: async (request, _args, ctx) => {\n      const credential = await setupPasskey(request);\n      if (!credential) {\n        throw new Error('MyChart did not return a credential. Some instances disable passkey registration from the patient portal.');\n      }\n      const serialized = serializeCredential(credential);\n      await ctx?.savePasskey?.(serialized);\n      return { registered: true, saved: !!ctx?.savePasskey };\n    },\n  },\n  {\n    id: 'list_passkeys',\n    title: 'List passkeys',\n    description: 'List the passkeys registered on this MyChart account.',\n    kind: 'account',\n    group: 'Account security',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: async (request) => {\n      const passkeys = await listPasskeys(request);\n      if (!passkeys) throw new Error('MyChart would not list passkeys for this account.');\n      return { count: passkeys.length, passkeys };\n    },\n  },\n  {\n    id: 'delete_passkey',\n    title: 'Delete passkeys',\n    description: 'Delete a passkey from the MyChart account by rawId, or every registered passkey when no id is given.',\n    kind: 'account',\n    group: 'Account security',\n    lessFrequentlyUsed: true,\n    params: [{ name: 'raw_id', type: 'string', description: 'rawId from list_passkeys. Omit to delete every passkey on the account.' }],\n    run: async (request, args) => {\n      const rawId = optStr(args, 'raw_id');\n      const passkeys = (await listPasskeys(request)) ?? [];\n      const targets = (rawId ? passkeys.filter((p) => (p as { rawId?: string }).rawId === rawId) : passkeys)\n        .map((p) => (p as { rawId?: string }).rawId)\n        .filter((id): id is string => !!id);\n      if (targets.length === 0) {\n        throw new Error(rawId ? `No passkey with rawId ${rawId}.` : 'No passkeys are registered on this account.');\n      }\n      const deleted: string[] = [];\n      const failed: string[] = [];\n      for (const id of targets) {\n        if (await deletePasskey(request, id)) deleted.push(id);\n        else failed.push(id);\n      }\n      return { deleted, failed };\n    },\n  },\n  {\n    id: 'setup_totp',\n    title: 'Set up an authenticator app',\n    description: 'Turn on authenticator-app (TOTP) two-factor authentication and store the secret locally so future logins can generate their own codes.',\n    kind: 'account',\n    group: 'Account security',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: async (request, _args, ctx) => {\n      if (!ctx?.password) throw new Error('The account password is required to set up TOTP.');\n      const result = await setupTotp(request, ctx.password);\n      if (!result.secret) throw new Error(result.error || 'MyChart did not return a TOTP secret.');\n      await ctx.saveTotpSecret?.(result.secret);\n      return { enabled: true, saved: !!ctx.saveTotpSecret };\n    },\n  },\n  {\n    id: 'disable_totp',\n    title: 'Turn off the authenticator app',\n    description: 'Turn off authenticator-app (TOTP) two-factor authentication on this MyChart account.',\n    kind: 'account',\n    group: 'Account security',\n    lessFrequentlyUsed: true,\n    params: [],\n    run: async (request, _args, ctx) => {\n      if (!ctx?.password) throw new Error('The account password is required to disable TOTP.');\n      if (!ctx.totpSecret) throw new Error('No saved TOTP secret for this account — MyChart requires a current code to turn TOTP off.');\n      const ok = await disableTotp(request, ctx.password, ctx.totpSecret);\n      if (!ok) throw new Error('MyChart rejected the request to disable TOTP.');\n      return { enabled: false };\n    },\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * NPI Registry processors. Field decisions: `scrapers/npi/README.md`.\n *\n * The registry is not MyChart, but the processor-layer rules\n * (`docs/processor-layer-proposal.md`) are about a source's fields rather than\n * about Epic, so they apply unchanged: every field that passes through keeps\n * CMS's own snake_case name and value (rule 2), the four derived fields carry\n * new camelCase names no CMS field uses (rule 3), and membership is by field\n * name rather than by value (rule 6) — so `basic` carries the union of the\n * individual and organization key sets on every provider, and a reader never\n * has to know which of the two shapes came back.\n *\n * Rule 7 is the one that shows up most here: the API answers a refused query\n * with HTTP 200 and an `Errors` array, so that body is returned unchanged in\n * every mode rather than being turned into an empty result set. An unknown but\n * well-formed NPI comes back as zero results, which {@link npiLookupProcessor}\n * passes through as `null` for the same reason.\n *\n * Nothing is dropped for being uninteresting. `endpoints` (a provider's\n * Direct/FHIR addresses) and `other_names` pass through whole because their\n * element key sets vary between records (rule 10), and the two `*_epoch`\n * fields stay because they are NOT duplicates of the date strings beside\n * them — they disagreed on 102 of 883 sampled records, so collapsing them\n * would silently pick a day.\n */\n\nimport { unwrapRaw, type RawResponse } from '../myChart/core/rawResponse';\nimport type { Processor } from '../myChart/processors/processor';\nimport { bool, list, num, rec, textOrNull } from '../myChart/processors/read';\n\n// ── The standard object ─────────────────────────────────────────────────────\n\n/**\n * `basic`, as the union of the two record types' key sets. Rule 6: every name\n * is emitted on every provider, `null` where that record type has no such\n * field, so \"this organization named no authorized official\" and \"this is a\n * person\" are both readable without inspecting `enumeration_type` first.\n */\nexport interface NpiBasicStandard {\n  /** `A` on all 883 records sampled; a non-active provider would show here. */\n  status: string | null;\n  enumeration_date: string | null;\n  last_updated: string | null;\n  certification_date: string | null;\n  first_name: string | null;\n  middle_name: string | null;\n  last_name: string | null;\n  name_prefix: string | null;\n  name_suffix: string | null;\n  credential: string | null;\n  sex: string | null;\n  sole_proprietor: string | null;\n  organization_name: string | null;\n  organizational_subpart: string | null;\n  parent_organization_legal_business_name: string | null;\n  authorized_official_first_name: string | null;\n  authorized_official_middle_name: string | null;\n  authorized_official_last_name: string | null;\n  authorized_official_name_prefix: string | null;\n  authorized_official_name_suffix: string | null;\n  authorized_official_credential: string | null;\n  authorized_official_title_or_position: string | null;\n  authorized_official_telephone_number: string | null;\n}\n\nexport interface NpiTaxonomyStandard {\n  code: string | null;\n  desc: string | null;\n  primary: boolean;\n  license: string | null;\n  state: string | null;\n  /** Populated on 323 of 1368 sampled taxonomies, so not an always-empty field. */\n  taxonomy_group: string | null;\n}\n\nexport interface NpiAddressStandard {\n  address_purpose: string | null;\n  address_type: string | null;\n  address_1: string | null;\n  address_2: string | null;\n  city: string | null;\n  state: string | null;\n  postal_code: string | null;\n  country_code: string | null;\n  country_name: string | null;\n  telephone_number: string | null;\n  fax_number: string | null;\n}\n\nexport interface NpiIdentifierStandard {\n  identifier: string | null;\n  code: string | null;\n  desc: string | null;\n  issuer: string | null;\n  state: string | null;\n}\n\nexport interface NpiProviderStandard {\n  /** The handle every other lookup takes as input (rule 5). */\n  number: string | null;\n  /** `NPI-1` for a person, `NPI-2` for an organization or a subpart. */\n  enumeration_type: string | null;\n  /** Derived: the display name. CMS stores a person's in parts and no whole. */\n  providerName: string;\n  /** Derived: the primary taxonomy's `desc` — \"what kind of provider\". */\n  primarySpecialty: string;\n  /** Derived: the practice address on one line. */\n  primaryAddress: string;\n  /** Derived: that address's phone number. */\n  primaryPhone: string;\n  basic: NpiBasicStandard;\n  taxonomies: NpiTaxonomyStandard[];\n  addresses: NpiAddressStandard[];\n  practiceLocations: NpiAddressStandard[];\n  identifiers: NpiIdentifierStandard[];\n  /** Uncaptured element shape (person and organization keys differ); whole. */\n  other_names: unknown[];\n  /** Uncaptured element shape (14–18 keys across sampled records); whole. */\n  endpoints: unknown[];\n  /** Not a duplicate of `enumeration_date`: the two disagreed on 102/883. */\n  created_epoch: string | null;\n  last_updated_epoch: string | null;\n}\n\nexport interface NpiSearchStandard {\n  result_count: number | null;\n  results: NpiProviderStandard[];\n}\n\n/** One entry of the API's `Errors` array. */\nexport interface NpiRegistryApiError {\n  field?: unknown;\n  description?: unknown;\n  number?: unknown;\n}\n\n/** A refused query, passed through unchanged in every mode (rule 7). */\nexport interface NpiRegistryErrors {\n  Errors: NpiRegistryApiError[];\n}\n\nexport function isNpiRegistryErrors(value: unknown): value is NpiRegistryErrors {\n  return typeof value === 'object' && value !== null && Array.isArray((value as NpiRegistryErrors).Errors);\n}\n\n// ── Field mapping ───────────────────────────────────────────────────────────\n\nfunction joinWords(parts: Array<string | null>): string {\n  return parts.filter((p): p is string => typeof p === 'string' && p.trim() !== '').join(' ');\n}\n\nfunction toBasic(value: unknown): NpiBasicStandard {\n  const b = rec(value);\n  return {\n    status: textOrNull(b.status),\n    enumeration_date: textOrNull(b.enumeration_date),\n    last_updated: textOrNull(b.last_updated),\n    certification_date: textOrNull(b.certification_date),\n    first_name: textOrNull(b.first_name),\n    middle_name: textOrNull(b.middle_name),\n    last_name: textOrNull(b.last_name),\n    name_prefix: textOrNull(b.name_prefix),\n    name_suffix: textOrNull(b.name_suffix),\n    credential: textOrNull(b.credential),\n    sex: textOrNull(b.sex),\n    sole_proprietor: textOrNull(b.sole_proprietor),\n    organization_name: textOrNull(b.organization_name),\n    organizational_subpart: textOrNull(b.organizational_subpart),\n    parent_organization_legal_business_name: textOrNull(b.parent_organization_legal_business_name),\n    authorized_official_first_name: textOrNull(b.authorized_official_first_name),\n    authorized_official_middle_name: textOrNull(b.authorized_official_middle_name),\n    authorized_official_last_name: textOrNull(b.authorized_official_last_name),\n    authorized_official_name_prefix: textOrNull(b.authorized_official_name_prefix),\n    authorized_official_name_suffix: textOrNull(b.authorized_official_name_suffix),\n    authorized_official_credential: textOrNull(b.authorized_official_credential),\n    authorized_official_title_or_position: textOrNull(b.authorized_official_title_or_position),\n    authorized_official_telephone_number: textOrNull(b.authorized_official_telephone_number),\n  };\n}\n\nfunction toTaxonomy(value: unknown): NpiTaxonomyStandard {\n  const t = rec(value);\n  return {\n    code: textOrNull(t.code),\n    desc: textOrNull(t.desc),\n    primary: bool(t.primary),\n    license: textOrNull(t.license),\n    state: textOrNull(t.state),\n    taxonomy_group: textOrNull(t.taxonomy_group),\n  };\n}\n\nfunction toAddress(value: unknown): NpiAddressStandard {\n  const a = rec(value);\n  return {\n    address_purpose: textOrNull(a.address_purpose),\n    address_type: textOrNull(a.address_type),\n    address_1: textOrNull(a.address_1),\n    address_2: textOrNull(a.address_2),\n    city: textOrNull(a.city),\n    state: textOrNull(a.state),\n    postal_code: textOrNull(a.postal_code),\n    country_code: textOrNull(a.country_code),\n    country_name: textOrNull(a.country_name),\n    telephone_number: textOrNull(a.telephone_number),\n    fax_number: textOrNull(a.fax_number),\n  };\n}\n\nfunction toIdentifier(value: unknown): NpiIdentifierStandard {\n  const i = rec(value);\n  return {\n    identifier: textOrNull(i.identifier),\n    code: textOrNull(i.code),\n    desc: textOrNull(i.desc),\n    issuer: textOrNull(i.issuer),\n    state: textOrNull(i.state),\n  };\n}\n\n/**\n * The display name. An organization has one already; a person is stored in\n * parts and never as a whole, so this is the one place the parts are joined.\n * The credential trails after a comma, the way the registry's own result page\n * renders it.\n */\nfunction providerNameOf(basic: NpiBasicStandard, enumerationType: string | null): string {\n  if (enumerationType === 'NPI-2') return basic.organization_name ?? '';\n  const name = joinWords([basic.first_name, basic.middle_name, basic.last_name, basic.name_suffix]);\n  return basic.credential ? `${name}, ${basic.credential}` : name;\n}\n\n/**\n * The address a patient would go to: the `LOCATION` one, falling back to\n * whatever came first when a record has no `LOCATION` entry.\n */\nfunction primaryAddressOf(addresses: NpiAddressStandard[]): NpiAddressStandard | undefined {\n  return addresses.find((a) => a.address_purpose?.toUpperCase() === 'LOCATION') ?? addresses[0];\n}\n\nfunction addressLine(address: NpiAddressStandard | undefined): string {\n  if (!address) return '';\n  const street = joinWords([address.address_1, address.address_2]);\n  const region = joinWords([address.state, address.postal_code]);\n  return [street, address.city, region].filter((p) => p !== '').join(', ');\n}\n\nfunction toProviderStandard(value: unknown): NpiProviderStandard {\n  const r = rec(value);\n  const basic = toBasic(r.basic);\n  const enumerationType = textOrNull(r.enumeration_type);\n  const taxonomies = list(r.taxonomies).map(toTaxonomy);\n  const addresses = list(r.addresses).map(toAddress);\n  const primary = primaryAddressOf(addresses);\n\n  return {\n    number: textOrNull(r.number),\n    enumeration_type: enumerationType,\n    providerName: providerNameOf(basic, enumerationType),\n    primarySpecialty: (taxonomies.find((t) => t.primary) ?? taxonomies[0])?.desc ?? '',\n    primaryAddress: addressLine(primary),\n    primaryPhone: primary?.telephone_number ?? '',\n    basic,\n    taxonomies,\n    addresses,\n    practiceLocations: list(r.practiceLocations).map(toAddress),\n    identifiers: list(r.identifiers).map(toIdentifier),\n    other_names: list(r.other_names),\n    endpoints: list(r.endpoints),\n    created_epoch: textOrNull(r.created_epoch),\n    last_updated_epoch: textOrNull(r.last_updated_epoch),\n  };\n}\n\n/** The concise row: who, what kind, where, and the handle to look them up by. */\nfunction conciseProvider(provider: NpiProviderStandard) {\n  return {\n    number: provider.number,\n    providerName: provider.providerName,\n    enumeration_type: provider.enumeration_type,\n    primarySpecialty: provider.primarySpecialty,\n    primaryAddress: provider.primaryAddress,\n    primaryPhone: provider.primaryPhone,\n  };\n}\n\n// ── Processors ──────────────────────────────────────────────────────────────\n\n/**\n * The search payload. A refusal (`Errors`) passes through untouched in every\n * mode — its `description` is a complete sentence about what was wrong with\n * the query, which is worth far more to the caller than an empty result set.\n */\nexport const npiSearchProcessor: Processor<NpiSearchStandard | NpiRegistryErrors> = {\n  standard(raw: RawResponse): NpiSearchStandard | NpiRegistryErrors {\n    const body = unwrapRaw(raw);\n    if (isNpiRegistryErrors(body)) return body;\n    const b = rec(body);\n    return {\n      result_count: num(b.result_count),\n      results: list(b.results).map(toProviderStandard),\n    };\n  },\n  concise(standard) {\n    if (isNpiRegistryErrors(standard)) return standard;\n    return {\n      result_count: standard.result_count,\n      results: standard.results.map(conciseProvider),\n    };\n  },\n};\n\n/**\n * One NPI's provider, or `null` when the registry has nobody by that number.\n * A well-formed unknown NPI is answered with zero results rather than an\n * error, and `null` is how that reaches the caller in every mode (rule 7).\n */\nexport const npiLookupProcessor: Processor<NpiProviderStandard | NpiRegistryErrors | null> = {\n  standard(raw: RawResponse): NpiProviderStandard | NpiRegistryErrors | null {\n    const body = unwrapRaw(raw);\n    if (isNpiRegistryErrors(body)) return body;\n    const first = list(rec(body).results)[0];\n    return first === undefined ? null : toProviderStandard(first);\n  },\n  concise(standard) {\n    if (standard === null || isNpiRegistryErrors(standard)) return standard;\n    return conciseProvider(standard);\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The NPI Registry — CMS's public directory of every US healthcare provider.\n *\n * A National Provider Identifier is the 10-digit number Medicare, insurers and\n * MyChart itself use to name a clinician or an organization. MyChart hands a\n * few of them out (the care team's provider bios carry `npi`; its\n * `NationalProviderID` field is an encrypted token) and names many more\n * providers without one (visits, notes, letters, message senders). This scraper goes in both directions:\n *\n *  - {@link fetchNpiLookupRaw} — an NPI, to the provider it belongs to.\n *  - {@link fetchNpiSearchRaw} — a name, specialty and/or place, to the\n *    providers that match.\n *\n * Network only, like every scraper under the processor layer: these return the\n * {@link RawResponse} envelope and `npiRegistry.processor.ts` decides what a\n * caller sees. The envelope type and its helpers live under `myChart/core/`\n * because that is where the processor layer put them; nothing in them is\n * Epic-specific, and reusing them is what lets the registry capabilities take\n * the same `mode` parameter as every MyChart read.\n *\n * `RawCollector` itself is not reused: it wraps `makeAuthenticatedRequest`,\n * whose whole job is MyChart session expiry and the active-patient restore.\n * There is no session here — the registry takes no key, no login and no\n * cookies — so these build the one record they make directly, still through\n * `scraperFetch` so the per-host permit and the test transport apply.\n *\n * ## Where the data comes from\n *\n * The registry's search page is a front end for a public JSON API at\n * `npiregistry.cms.hhs.gov/api/`. The same data is published as a bulk file —\n * about 1.1 GB zipped and ~10 GB of CSV, refreshed monthly with weekly deltas —\n * which is why nothing is bundled: it would not fit in any client, and the API\n * is live where the file is up to a month stale.\n *\n * ## What the API enforces (observed 2026-09, version 2.1)\n *\n *  - At most {@link NPI_REGISTRY_MAX_PAGE_SIZE} results per page. A larger\n *    `limit` is silently clamped, and `0` silently becomes the default 10.\n *  - `skip` pages through further results; the documented ceiling is\n *    {@link NPI_REGISTRY_MAX_SKIP}, so a query can yield 1,200 results at\n *    most. Narrow it rather than paging past that.\n *  - A trailing `*` wildcard is allowed on names after two or more leading\n *    characters (`Jo*` works, `J*` is refused).\n *  - `state` and `enumeration_type` are refused on their own; every other\n *    criterion may stand alone. No criteria at all is refused too.\n *  - Refusals come back as HTTP 200 with an `Errors` array rather than a\n *    non-2xx status. That body reaches the caller unchanged — see the\n *    processor's rule 7 note.\n */\n\nimport { scraperFetch } from '../http';\nimport type { RawRequestRecord, RawResponse } from '../myChart/core/rawResponse';\nimport {\n  npiLookupProcessor,\n  npiSearchProcessor,\n  type NpiProviderStandard,\n  type NpiRegistryErrors,\n  type NpiSearchStandard,\n} from './npiRegistry.processor';\n\nexport type {\n  NpiAddressStandard,\n  NpiBasicStandard,\n  NpiIdentifierStandard,\n  NpiProviderStandard,\n  NpiRegistryApiError,\n  NpiRegistryErrors,\n  NpiSearchStandard,\n  NpiTaxonomyStandard,\n} from './npiRegistry.processor';\nexport { isNpiRegistryErrors, npiLookupProcessor, npiSearchProcessor } from './npiRegistry.processor';\n\n/** The registry's JSON API. Overridable so a fake can stand in for it. */\nexport const NPI_REGISTRY_API_URL = 'https://npiregistry.cms.hhs.gov/api/';\n\n/** The only API version the registry currently serves. */\nexport const NPI_REGISTRY_API_VERSION = '2.1';\n\n/** The largest page the API will return; anything higher is clamped to this. */\nexport const NPI_REGISTRY_MAX_PAGE_SIZE = 200;\n\n/** The documented ceiling on `skip`. */\nexport const NPI_REGISTRY_MAX_SKIP = 1000;\n\n/** The API's default page size, used when a caller asks for none. */\nexport const NPI_REGISTRY_DEFAULT_PAGE_SIZE = 10;\n\n/** `NPI-1` is a person; `NPI-2` is an organization or one of its subparts. */\nexport type NpiProviderType = 'individual' | 'organization';\n\nexport interface NpiSearchQuery {\n  /** Exact, or a trailing `*` after two or more characters. Individuals only. */\n  firstName?: string;\n  /** Exact, or a trailing `*` after two or more characters. Individuals only. */\n  lastName?: string;\n  /** Exact, or a trailing `*` after two or more characters. Organizations only. */\n  organizationName?: string;\n  /** Matched against taxonomy descriptions, e.g. \"Cardiology\" or \"Dentist\". */\n  specialty?: string;\n  city?: string;\n  /** Two-letter code. The API refuses it without another criterion. */\n  state?: string;\n  /** Five or nine digits; a trailing `*` works here too. */\n  postalCode?: string;\n  /** Restrict to people or to organizations. Refused on its own by the API. */\n  type?: NpiProviderType;\n  /** 1–{@link NPI_REGISTRY_MAX_PAGE_SIZE}; defaults to the API's 10. */\n  limit?: number;\n  /** Offset into the results, for paging. */\n  skip?: number;\n}\n\nexport interface NpiRegistryOptions {\n  /** Where the API lives. Defaults to {@link NPI_REGISTRY_API_URL}. */\n  apiUrl?: string;\n}\n\n// ── NPI validation ──────────────────────────────────────────────────────────\n\n/**\n * Whether a string is a well-formed NPI: ten digits whose last one is the\n * right Luhn check digit.\n *\n * The check digit is computed over the number with the constant prefix\n * `80840` in front (the ISO card-issuer identifier assigned to CMS), which is\n * what makes an NPI verifiable offline. A typo or a transposed pair fails\n * this, so {@link fetchNpiLookupRaw} refuses a bad number before spending a\n * request on it.\n */\nexport function isValidNpi(value: string): boolean {\n  if (!/^\\d{10}$/.test(value)) return false;\n  const digits = `80840${value}`;\n  let sum = 0;\n  for (let i = digits.length - 1, position = 0; i >= 0; i--, position++) {\n    let d = Number(digits[i]);\n    if (position % 2 === 1) {\n      d *= 2;\n      if (d > 9) d -= 9;\n    }\n    sum += d;\n  }\n  return sum % 10 === 0;\n}\n\n// ── The request ─────────────────────────────────────────────────────────────\n\n/**\n * The query-string parameter for each field of {@link NpiSearchQuery}, in the\n * registry's own names.\n */\nconst QUERY_PARAMS: ReadonlyArray<readonly [keyof NpiSearchQuery, string]> = [\n  ['firstName', 'first_name'],\n  ['lastName', 'last_name'],\n  ['organizationName', 'organization_name'],\n  ['specialty', 'taxonomy_description'],\n  ['city', 'city'],\n  ['state', 'state'],\n  ['postalCode', 'postal_code'],\n];\n\nfunction clampPageSize(limit: number | undefined): number {\n  if (limit === undefined || !Number.isFinite(limit)) return NPI_REGISTRY_DEFAULT_PAGE_SIZE;\n  return Math.min(NPI_REGISTRY_MAX_PAGE_SIZE, Math.max(1, Math.floor(limit)));\n}\n\n/**\n * Build the search URL for a query. Exported so a test can check the mapping\n * without a transport, and so a caller can see exactly what will be sent.\n *\n * Throws before any request when the query names nothing to search for, so a\n * caller gets the same refusal the API would give without the round trip.\n * The API's other rules (state alone, wildcard length) are left to the API,\n * whose wording is the authority on them and reaches the caller intact.\n */\nexport function buildNpiSearchUrl(query: NpiSearchQuery, apiUrl: string = NPI_REGISTRY_API_URL): string {\n  const url = new URL(apiUrl);\n  url.searchParams.set('version', NPI_REGISTRY_API_VERSION);\n\n  let criteria = 0;\n  for (const [field, param] of QUERY_PARAMS) {\n    const value = query[field];\n    if (typeof value !== 'string') continue;\n    const trimmed = value.trim();\n    if (!trimmed) continue;\n    url.searchParams.set(param, trimmed);\n    criteria++;\n  }\n  if (query.type) {\n    url.searchParams.set('enumeration_type', query.type === 'organization' ? 'NPI-2' : 'NPI-1');\n  }\n  if (criteria === 0) {\n    throw new Error(\n      'NPI Registry search needs at least one of: firstName, lastName, organizationName, specialty, city, state, postalCode.',\n    );\n  }\n\n  url.searchParams.set('limit', String(clampPageSize(query.limit)));\n  const skip = query.skip !== undefined && Number.isFinite(query.skip) ? Math.max(0, Math.floor(query.skip)) : 0;\n  if (skip > 0) url.searchParams.set('skip', String(skip));\n\n  return url.toString();\n}\n\n/**\n * Make the one request and record it into the envelope, the way\n * `RawCollector.send` records a MyChart one: the parsed JSON when the body\n * parses, the text otherwise.\n *\n * Throws on a non-2xx status and on a body that is not JSON at all. Neither is\n * a refusal — the registry refuses with HTTP 200 and an `Errors` array, which\n * is data and passes through — so both mean the endpoint is not answering, and\n * recording an HTML maintenance page as a provider list would show a caller\n * \"no such doctor\".\n */\nasync function collect(url: string): Promise<RawResponse> {\n  const response = await scraperFetch(url, { headers: { Accept: 'application/json' } });\n  const text = await response.text();\n  if (!response.ok) {\n    throw new Error(`NPI Registry request failed: ${response.status} ${response.statusText}`);\n  }\n\n  let body: unknown;\n  try {\n    body = JSON.parse(text);\n  } catch {\n    throw new Error('NPI Registry response was not JSON — the endpoint shape changed.');\n  }\n\n  const record: RawRequestRecord = {\n    path: url,\n    method: 'GET',\n    status: response.status,\n    contentType: response.headers.get('content-type') ?? '',\n    body,\n  };\n  return { requests: [record] };\n}\n\n/** Search the registry by name, specialty and/or place. One page per call. */\nexport async function fetchNpiSearchRaw(\n  query: NpiSearchQuery,\n  options: NpiRegistryOptions = {},\n): Promise<RawResponse> {\n  return collect(buildNpiSearchUrl(query, options.apiUrl));\n}\n\n/**\n * Look up one NPI.\n *\n * Throws on a malformed number without making a request: a wrong length or a\n * failed check digit is a typo, and the registry would only say the same thing\n * more slowly. A well-formed number nobody holds is not an error — it comes\n * back as zero results and the processor renders that as `null`.\n */\nexport async function fetchNpiLookupRaw(npi: string, options: NpiRegistryOptions = {}): Promise<RawResponse> {\n  const number = npi.trim();\n  if (!isValidNpi(number)) {\n    throw new Error(`\"${npi}\" is not a valid NPI — expected ten digits with a correct check digit.`);\n  }\n  const url = new URL(options.apiUrl ?? NPI_REGISTRY_API_URL);\n  url.searchParams.set('version', NPI_REGISTRY_API_VERSION);\n  url.searchParams.set('number', number);\n  return collect(url.toString());\n}\n\n// ── The standard object — what `mode: 'json'` returns ───────────────────────\n\n/**\n * Find providers by name, specialty and/or place.\n *\n * Names match exactly unless they end in `*`, and the registry stores most of\n * them in upper case — matching is case-insensitive, so send what the patient\n * wrote. `specialty` matches against taxonomy descriptions, so \"Cardiology\"\n * finds \"Internal Medicine, Cardiovascular Disease\" but a made-up label finds\n * nothing. A refused query comes back as {@link NpiRegistryErrors}; narrow\n * with `isNpiRegistryErrors`.\n */\nexport async function searchNpiRegistry(\n  query: NpiSearchQuery,\n  options: NpiRegistryOptions = {},\n): Promise<NpiSearchStandard | NpiRegistryErrors> {\n  return npiSearchProcessor.standard(await fetchNpiSearchRaw(query, options));\n}\n\n/** Look up one NPI. `null` when the registry has nobody by that number. */\nexport async function lookupNpi(\n  npi: string,\n  options: NpiRegistryOptions = {},\n): Promise<NpiProviderStandard | NpiRegistryErrors | null> {\n  return npiLookupProcessor.standard(await fetchNpiLookupRaw(npi, options));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `Providers` group — CMS's NPI Registry, in both directions.\n *\n * `public`-kind, and the first group in the registry that is: no MyChart\n * account, no login, no patient. Their `run` takes only arguments — see\n * `PublicCapabilityImpl` — so they are structurally unable to touch a chart,\n * which is why `executeCapability` exempts them from the active-patient\n * assertion rather than trusting each entry not to.\n *\n * Otherwise ordinary reads: the scrapers return a `RawResponse` and the\n * processors give them the same four modes every chart read has.\n */\n\nimport {\n  fetchNpiLookupRaw,\n  fetchNpiSearchRaw,\n  npiLookupProcessor,\n  npiSearchProcessor,\n  NPI_REGISTRY_MAX_PAGE_SIZE,\n  NPI_REGISTRY_MAX_SKIP,\n  type NpiSearchQuery,\n} from '../../../../scrapers/npi/npiRegistry';\nimport { num, optStr, requireStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const PROVIDER_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'lookup_npi',\n    title: 'Look up an NPI',\n    description:\n      'Look up a US healthcare provider by National Provider Identifier — the 10-digit number MyChart, Medicare and insurers use to name a clinician or organization. Public data; no MyChart account needed.',\n    kind: 'public',\n    group: 'Providers',\n    params: [\n      {\n        name: 'npi',\n        type: 'string',\n        description:\n          'The 10-digit National Provider Identifier — get_care_team returns each provider\\'s as ' +\n          \"`npi` (its NationalProviderID field is an Epic-encrypted token, not an NPI). For a \" +\n          'provider named anywhere else in a chart, search_npi_registry turns a name into an NPI.',\n        required: true,\n      },\n    ],\n    run: (args) => fetchNpiLookupRaw(requireStr(args, 'npi')),\n    processor: npiLookupProcessor,\n  },\n  {\n    id: 'search_npi_registry',\n    title: 'Search the NPI Registry',\n    description:\n      \"Find US healthcare providers by name, specialty and/or place in CMS's public NPI Registry — the way to turn a provider name from a chart into an NPI, an address and a specialty. At least one search criterion is required. Public data; no MyChart account needed.\",\n    kind: 'public',\n    group: 'Providers',\n    params: [\n      {\n        name: 'first_name',\n        type: 'string',\n        description: \"An individual's first name. Exact, or a trailing `*` after two or more characters.\",\n      },\n      {\n        name: 'last_name',\n        type: 'string',\n        description: \"An individual's last name. Exact, or a trailing `*` after two or more characters.\",\n      },\n      {\n        name: 'organization_name',\n        type: 'string',\n        description:\n          \"An organization's legal business name. Exact, or a trailing `*` after two or more characters.\",\n      },\n      {\n        name: 'specialty',\n        type: 'string',\n        description: 'Matched against taxonomy descriptions, e.g. \"Cardiology\" or \"Dentist\".',\n      },\n      { name: 'city', type: 'string', description: 'City of the practice or mailing address.' },\n      {\n        name: 'state',\n        type: 'string',\n        description:\n          'Two-letter state code. The registry refuses this on its own — pair it with another criterion.',\n      },\n      {\n        name: 'postal_code',\n        type: 'string',\n        description: 'Five or nine digits; a trailing `*` works here too.',\n      },\n      {\n        name: 'type',\n        type: 'string',\n        description:\n          'Restrict to \"individual\" (a person) or \"organization\". Refused on its own by the registry.',\n      },\n      {\n        name: 'limit',\n        type: 'number',\n        description: `Results per page, 1–${NPI_REGISTRY_MAX_PAGE_SIZE}. Defaults to the registry's 10.`,\n        min: 1,\n        max: NPI_REGISTRY_MAX_PAGE_SIZE,\n      },\n      {\n        name: 'skip',\n        type: 'number',\n        description: `Offset into the results, for paging. At most ${NPI_REGISTRY_MAX_SKIP}; narrow the query rather than paging past it.`,\n        min: 0,\n        max: NPI_REGISTRY_MAX_SKIP,\n      },\n    ],\n    run: (args) => {\n      const query: NpiSearchQuery = {};\n      // Only the fields the caller actually gave: `buildNpiSearchUrl` counts\n      // them to decide whether the query names anything to search for, and an\n      // empty string is not a criterion.\n      const firstName = optStr(args, 'first_name');\n      if (firstName) query.firstName = firstName;\n      const lastName = optStr(args, 'last_name');\n      if (lastName) query.lastName = lastName;\n      const organizationName = optStr(args, 'organization_name');\n      if (organizationName) query.organizationName = organizationName;\n      const specialty = optStr(args, 'specialty');\n      if (specialty) query.specialty = specialty;\n      const city = optStr(args, 'city');\n      if (city) query.city = city;\n      const state = optStr(args, 'state');\n      if (state) query.state = state;\n      const postalCode = optStr(args, 'postal_code');\n      if (postalCode) query.postalCode = postalCode;\n\n      const type = optStr(args, 'type');\n      if (type) {\n        // A misspelled type is a caller error, not a reason to silently search\n        // both: \"organisation\" would otherwise widen the search rather than\n        // narrowing it, and the caller would never know.\n        if (type !== 'individual' && type !== 'organization') {\n          throw new Error(`Unknown type ${JSON.stringify(type)}. Expected \"individual\" or \"organization\".`);\n        }\n        query.type = type;\n      }\n      if (optNum(args.limit)) query.limit = num(args, 'limit', NPI_REGISTRY_MAX_PAGE_SIZE);\n      if (optNum(args.skip)) query.skip = num(args, 'skip', 0);\n\n      return fetchNpiSearchRaw(query);\n    },\n    processor: npiSearchProcessor,\n  },\n];\n\n/**\n * Whether a numeric argument was given at all.\n *\n * `NpiSearchQuery`'s fields are optional and `exactOptionalPropertyTypes` is\n * on, so an omitted `limit` has to stay an absent key rather than becoming\n * `undefined` — and the scraper's own defaults (the registry's 10, skip 0)\n * only apply to a key that isn't there.\n */\nfunction optNum(value: unknown): boolean {\n  return value !== undefined && value !== null && value !== '';\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Where an organization's MyChart login actually is, starting from the URL\n * Epic's directory publishes for it.\n *\n * Usually that URL is the portal. Sometimes it is the health system's own\n * website — UCSF's is `www.ucsfhealth.org/ucsfmychart/`, an information page —\n * and a search that hands back that hostname sends the user to a login that\n * can never succeed. Those pages nearly always link to the real portal, so:\n *\n *   1. follow the directory URL; if it lands on a MyChart login page, it's right;\n *   2. otherwise take the MyChart links on the page it landed on, and keep the\n *      first one that itself serves a MyChart login page;\n *   3. otherwise it's `down`: we couldn't confirm it was up when we checked,\n *      whatever the reason. The caller keeps Epic's URL.\n *\n * Every request is one an unauthenticated browser makes opening the page.\n */\n\nimport { extractMountsFromLinks, looksLikeLoginPage } from '../myChart/auth/login';\nimport { MyChartRequest } from '../myChart/core/myChartRequest';\n\nconst MAX_HOPS = 5;\n\n/** Links tried per page, in the ranking's order. */\nconst MAX_CANDIDATES = 5;\n\n/**\n * A health system's own MyChart page is mostly its site navigation\n * (`/locations`, `/contact-us`), which can fill every slot above before the one\n * portal link on another host is reached (UCHealth). So portal-looking links\n * further down get tried too — after, not instead: promoting them outright\n * picked Evangelical's bill-pay portal over the one its page signs in through.\n */\nconst READS_AS_PORTAL = /mychart|chart|portal|epic/i;\n\n/**\n * One organization's whole resolution. `scraperFetch` gives each request two\n * minutes, which across 1,400 organizations is a refresh nobody waits out.\n */\nconst RESOLVE_TIMEOUT_MS = 60_000;\n\nexport type LoginUrlResolution =\n  | { kind: 'login' }\n  | { kind: 'linked'; url: string }\n  | { kind: 'down'; reason: string };\n\nasync function fetchFollowing(url: string): Promise<{ finalUrl: string; status: number; html: string }> {\n  // One request object for the whole chain, so cookies set along the way are\n  // sent on the next hop the way a browser would.\n  const request = new MyChartRequest(new URL(url).host);\n  let current = url;\n  for (let hop = 0; hop < MAX_HOPS; hop++) {\n    const response = await request.makeRequest({ url: current, followRedirects: false });\n    const location = response.headers.get('location');\n    if (response.status >= 300 && response.status < 400 && location) {\n      current = new URL(location, current).href;\n      continue;\n    }\n    return { finalUrl: current, status: response.status, html: await response.text() };\n  }\n  throw new Error(`more than ${MAX_HOPS} redirects`);\n}\n\nasync function servesLoginPage(url: string): Promise<boolean> {\n  try {\n    const page = await fetchFollowing(url);\n    return page.status < 400 && looksLikeLoginPage(page.html);\n  } catch {\n    return false;\n  }\n}\n\nasync function resolve(directoryUrl: string): Promise<LoginUrlResolution> {\n  let page: Awaited<ReturnType<typeof fetchFollowing>>;\n  try {\n    page = await fetchFollowing(directoryUrl);\n  } catch (e) {\n    return { kind: 'down', reason: String((e as Error)?.message ?? e) };\n  }\n  if (page.status >= 400) return { kind: 'down', reason: `HTTP ${page.status}` };\n  if (looksLikeLoginPage(page.html)) return { kind: 'login' };\n\n  const ranked = extractMountsFromLinks(page.html, new URL(page.finalUrl).host);\n  const candidates = [\n    ...ranked.slice(0, MAX_CANDIDATES),\n    ...ranked\n      .slice(MAX_CANDIDATES)\n      .filter((m) => READS_AS_PORTAL.test(m.hostname) || READS_AS_PORTAL.test(m.firstPathPart ?? ''))\n      .slice(0, MAX_CANDIDATES),\n  ];\n  for (const { hostname, firstPathPart } of candidates) {\n    const mount = `https://${hostname}/${firstPathPart ? `${firstPathPart}/` : ''}`;\n    if (await servesLoginPage(`${mount}Authentication/Login`)) return { kind: 'linked', url: mount };\n  }\n  return { kind: 'down', reason: 'no MyChart login on the page or anything it links to' };\n}\n\nexport async function resolveLoginUrl(directoryUrl: string): Promise<LoginUrlResolution> {\n  let timer: ReturnType<typeof setTimeout> | undefined;\n  try {\n    return await Promise.race([\n      resolve(directoryUrl),\n      new Promise<LoginUrlResolution>((done) => {\n        timer = setTimeout(() => done({ kind: 'down', reason: 'timed out' }), RESOLVE_TIMEOUT_MS);\n      }),\n    ]);\n  } finally {\n    if (timer) clearTimeout(timer);\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Epic's directory with every login URL checked — the deterministic code\n * behind `mychart-instances.json`. It writes that file on each MCPB release\n * (`fetch-mychart-instances.ts`), reruns monthly in the long-running clients\n * (`refreshMyChartDirectory`), and is what `mychart-cli --action\n * list-mycharts` prints.\n *\n * A crawl of all ~1,400 organizations — minutes, not seconds — so it never\n * runs inside a search; a search reads the last run's result.\n */\n\nimport { fetchMyChartDirectory, mergeDuplicates, type MyChartInstance } from './directory';\nimport { resolveLoginUrl, type LoginUrlResolution } from './resolveLoginUrl';\n\n/** Organizations resolved at once. `scraperFetch` still caps each host at ten. */\nconst CONCURRENCY = 24;\n\nexport interface ResolvedDirectory {\n  instances: MyChartInstance[];\n  /** Organizations whose `url` now differs from Epic's `loginUrl`. */\n  corrected: number;\n  /** Organizations we couldn't confirm were up, twice. They keep Epic's URL, marked `down`. */\n  down: { instance: MyChartInstance; reason: string }[];\n}\n\nasync function resolveAll(\n  instances: MyChartInstance[],\n  onResolved: (instance: MyChartInstance, resolution: LoginUrlResolution) => void,\n): Promise<void> {\n  const queue = [...instances];\n  await Promise.all(\n    Array.from({ length: CONCURRENCY }, async () => {\n      for (let instance = queue.shift(); instance; instance = queue.shift()) {\n        onResolved(instance, await resolveLoginUrl(instance.directoryUrl));\n      }\n    }),\n  );\n}\n\nexport async function fetchResolvedMyChartDirectory(\n  onProgress?: (done: number, total: number) => void,\n  directory: { directoryUrl?: string; mediaBase?: string } = {},\n): Promise<ResolvedDirectory> {\n  const instances = await fetchMyChartDirectory(directory);\n  const outcomes = new Map<MyChartInstance, LoginUrlResolution>();\n  await resolveAll(instances, (instance, resolution) => {\n    outcomes.set(instance, resolution);\n    onProgress?.(outcomes.size, instances.length);\n  });\n\n  // A blip during a release would otherwise mark a portal down for as long as\n  // that release is installed, so everything that looked down gets a second\n  // try once the crawl has finished.\n  const looksDown = instances.filter((i) => outcomes.get(i)?.kind === 'down');\n  await resolveAll(looksDown, (instance, resolution) => outcomes.set(instance, resolution));\n\n  const down: ResolvedDirectory['down'] = [];\n  for (const instance of instances) {\n    const resolution = outcomes.get(instance)!;\n    if (resolution.kind === 'linked') instance.url = resolution.url;\n    else if (resolution.kind === 'down') {\n      instance.down = true;\n      down.push({ instance, reason: resolution.reason });\n    }\n  }\n\n  // Again after resolving: two entries can share a portal only once corrected.\n  const merged = mergeDuplicates(instances);\n  return {\n    instances: merged,\n    corrected: merged.filter((i) => i.url !== i.directoryUrl).length,\n    down,\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Searching the MyChart directory by name — the lookup every client needs\n * before it has an account to log into.\n *\n * The directory is ~1,400 instances; a person typing \"uchealth\" wants five.\n * This module is the ranking, and the list it ranks, in one place, because it used to exist twice: the Claude Desktop\n * extension shipped its own `instances.ts` searching only the bundled seed,\n * and the mobile app has its own picker search over the same list. Neither was\n * reachable from the CLI or the npm library, so \"find my health system\" was a\n * thing two clients could do and two could not.\n *\n * ## Which list\n *\n * A search reads the output of the deterministic refresh that writes\n * `mychart-instances.json` — Epic's directory, every login URL checked. Until\n * a newer run exists that is the checked-in file from the last release, and\n * the result says `source: 'bundled'`. A long-running client (the Claude Desktop extension,\n * the iOS app) reruns the refresh about monthly with\n * {@link refreshMyChartDirectory}, in the background — it is minutes of\n * requests, never part of a search — and from then on searches say\n * `source: 'refreshed'`, with when.\n *\n * ## The sandbox entry\n *\n * {@link SANDBOX_INSTANCE} is the deployed fake-mychart, so anyone can walk\n * the whole connect flow against Homer Simpson's fictional record without a\n * real Epic account. It is never a default suggestion — it only appears when\n * the query matches it — and its \"(test)\" suffix is there so nobody mistakes\n * it for a health system.\n *\n * The sandbox is a single small deployment that gets torn down whenever its\n * bill outweighs its use, so a search that matches it probes it first and\n * carries {@link SANDBOX_UNAVAILABLE_NOTE} on the match when it is down. A\n * client offering a dead sandbox sends someone through the whole connect flow\n * to a login that can never succeed, which is exactly how it was reported.\n */\n\nimport { scraperFetch } from '../http';\nimport { listMyCharts, toSeedEntry, type MyChartInstanceSeed } from './directory';\nimport { fetchResolvedMyChartDirectory } from './refreshDirectory';\n\n/**\n * How often a long-running client reruns the refresh. Epic's list changes by a\n * few entries a month, and a run is a few thousand requests.\n */\nexport const DIRECTORY_REFRESH_INTERVAL_MS = 30 * 24 * 60 * 60 * 1000;\n\n/** How many matches a search returns when the caller names no limit. */\nexport const DEFAULT_DIRECTORY_SEARCH_LIMIT = 10;\n\n/** The most a single search will return. */\nexport const MAX_DIRECTORY_SEARCH_LIMIT = 50;\n\n// A banner-shaped logo for the sandbox entry, matching the ~640x230 aspect of\n// Epic's real ones so it renders consistently in a picker. Inlined as a data\n// URI so it needs no network. `encodeURIComponent` rather than base64 because\n// this module loads in React Native and in a browser, neither of which has\n// `Buffer`.\nconst SANDBOX_LOGO_SVG =\n  '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 110\">' +\n  '<rect x=\"6\" y=\"18\" width=\"74\" height=\"74\" rx=\"14\" fill=\"#0d9488\"/>' +\n  '<rect x=\"35\" y=\"33\" width=\"16\" height=\"44\" rx=\"3\" fill=\"#ffffff\"/>' +\n  '<rect x=\"21\" y=\"47\" width=\"44\" height=\"16\" rx=\"3\" fill=\"#ffffff\"/>' +\n  '<text x=\"94\" y=\"50\" font-family=\"Helvetica,Arial,sans-serif\" font-size=\"30\" font-weight=\"700\" fill=\"#1e3a8a\">Springfield</text>' +\n  '<text x=\"94\" y=\"84\" font-family=\"Helvetica,Arial,sans-serif\" font-size=\"22\" font-weight=\"600\" fill=\"#0d9488\">General Hospital</text>' +\n  '</svg>';\n\n/**\n * The deployed fake-mychart, offered as if it were a health system so the\n * connect flow can be exercised end to end. Credentials are `homer` /\n * `donuts123` (`marge` for the 2FA path).\n */\nexport const SANDBOX_INSTANCE: MyChartInstanceSeed = {\n  name: 'Springfield General Hospital (test)',\n  url: 'https://fake-mychart.fanpierlabs.com/MyChart/',\n  logoUrl: `data:image/svg+xml;charset=utf-8,${encodeURIComponent(SANDBOX_LOGO_SVG)}`,\n  slgId: 'fake-mychart',\n  aliases: ['test', 'demo', 'sandbox', 'fake-mychart'],\n};\n\n/** What a client shows in place of the sandbox entry when it isn't serving. */\nexport const SANDBOX_UNAVAILABLE_NOTE =\n  'The test sandbox is currently down, so it cannot be used to connect an account. Email ryan@fanpierlabs.com to ask for it to be brought back up.';\n\n/** How long one reachability answer is reused before the next probe. */\nconst SANDBOX_PROBE_TTL_MS = 60_000;\n\n/** A probe that hasn't answered in this long counts as down. */\nconst SANDBOX_PROBE_TIMEOUT_MS = 4_000;\n\nlet sandboxProbe: { at: number; up: Promise<boolean> } | null = null;\n\n/** Drop the cached reachability answer. For tests. */\nexport function clearSandboxAvailabilityCache(): void {\n  sandboxProbe = null;\n}\n\nfunction isMyChartRedirect(response: Response): boolean {\n  if (response.status < 300 || response.status >= 400) return false;\n  const location = response.headers.get('Location');\n  if (!location) return false;\n  try {\n    return new URL(location, SANDBOX_INSTANCE.url).pathname.toLowerCase().startsWith('/mychart');\n  } catch {\n    return false;\n  }\n}\n\nasync function probeSandbox(): Promise<boolean> {\n  let timer: ReturnType<typeof setTimeout> | undefined;\n  try {\n    // `scraperFetch` owns its own two-minute deadline and won't take a shorter\n    // one, so race it instead: nobody typing into a picker waits two minutes\n    // to be told the sandbox is gone. The losing fetch keeps running and holds\n    // one of this host's permits until it settles — harmless for a host nothing\n    // else talks to, so don't copy this for a real one.\n    const answered = await Promise.race([\n      scraperFetch(SANDBOX_INSTANCE.url, { redirect: 'manual' }, { cookieJar: null }),\n      new Promise<null>((resolve) => {\n        timer = setTimeout(() => resolve(null), SANDBOX_PROBE_TIMEOUT_MS);\n      }),\n    ]);\n    // Serving means answering the way MyChart does: a redirect that stays under\n    // the mount (`/MyChart/` → `/MyChart` → the login page). A parked domain\n    // answering 200, a redirect elsewhere, a 5xx, a DNS failure (what a\n    // torn-down deployment gives) or no answer at all is down.\n    return answered !== null && isMyChartRedirect(answered);\n  } catch {\n    return false;\n  } finally {\n    if (timer) clearTimeout(timer);\n  }\n}\n\n/**\n * Whether the fake-mychart sandbox is serving right now.\n *\n * Cached for {@link SANDBOX_PROBE_TTL_MS} and shared between concurrent\n * callers, so a picker firing a search per keystroke probes it about once.\n */\nexport function isSandboxAvailable(): Promise<boolean> {\n  if (sandboxProbe && Date.now() - sandboxProbe.at < SANDBOX_PROBE_TTL_MS) return sandboxProbe.up;\n  const probe = { at: Date.now(), up: probeSandbox() };\n  sandboxProbe = probe;\n  return probe.up;\n}\n\n/** One search hit, in the shape a picker or a model consumes. */\nexport interface MyChartDirectoryMatch {\n  /** The portal's hostname — what every client keys an account on. */\n  hostname: string;\n  /** Display name, e.g. \"UCHealth\". */\n  name: string;\n  /** Absolute logo URL (or a data URI, for the sandbox entry). */\n  logoUrl: string;\n  /** The portal's login URL. */\n  loginUrl: string;\n  /** Epic's directory id. Survives a rename; the name doesn't. */\n  slgId: string;\n  /** Other names the same organization is searched by. */\n  aliases: string[];\n  /**\n   * Why this entry can't be connected right now, when it can't. Only the\n   * sandbox entry ever carries it; a client shows the entry disabled with this\n   * text rather than dropping it, so \"where did the test hospital go?\" has an\n   * answer.\n   */\n  unavailable?: string;\n}\n\n/** Which list answered a search. */\nexport type MyChartDirectorySource = 'refreshed' | 'bundled';\n\nexport interface MyChartDirectorySearchResult {\n  /** The query as the caller wrote it. */\n  query: string;\n  source: MyChartDirectorySource;\n  /** When the refresh that answered ran (ISO 8601), for `source: 'refreshed'`. */\n  refreshedAt?: string;\n  count: number;\n  matches: MyChartDirectoryMatch[];\n}\n\nexport interface MyChartDirectorySearchOptions {\n  /** 1–{@link MAX_DIRECTORY_SEARCH_LIMIT}; defaults to 10. */\n  limit?: number | undefined;\n}\n\nfunction hostnameOf(url: string): string {\n  try {\n    return new URL(url).hostname.toLowerCase();\n  } catch {\n    return '';\n  }\n}\n\nfunction toMatch(instance: MyChartInstanceSeed): MyChartDirectoryMatch {\n  return {\n    hostname: hostnameOf(instance.url),\n    name: instance.name,\n    logoUrl: instance.logoUrl,\n    loginUrl: instance.url,\n    slgId: instance.slgId,\n    aliases: instance.aliases,\n  };\n}\n\n// ── The refreshed list ─────────────────────────────────────────────────────\n\n/** The last refresh's list, and when it ran; null until one. */\nlet refreshed: { entries: MyChartInstanceSeed[]; at: string } | null = null;\n\n/** Search the checked-in list again, as before any refresh. For tests. */\nexport function clearDirectoryCache(): void {\n  refreshed = null;\n}\n\n/**\n * Search a list a refresh produced — this process's, or one a client saved\n * from an earlier run — instead of the checked-in one. `refreshedAt` is when\n * that refresh ran; searches report it.\n */\nexport function useRefreshedMyCharts(entries: readonly MyChartInstanceSeed[], refreshedAt: string): void {\n  refreshed = { entries: [...entries], at: refreshedAt };\n}\n\n/**\n * Rerun the refresh that writes `mychart-instances.json` — fetch Epic's\n * directory, check every login URL — and search its result from now on.\n * Returns that result for the caller to save. Minutes of requests: run it in the background.\n */\nexport async function refreshMyChartDirectory(\n  directory: { directoryUrl?: string; mediaBase?: string } = {},\n): Promise<MyChartInstanceSeed[]> {\n  const { instances } = await fetchResolvedMyChartDirectory(undefined, directory);\n  const entries = instances.map(toSeedEntry);\n  useRefreshedMyCharts(entries, new Date().toISOString());\n  return entries;\n}\n\n// ── Ranking ────────────────────────────────────────────────────────────────\n\n/**\n * Rank the instances matching `query`, best first.\n *\n * Exact name, then a name that starts with the query, then a name containing\n * it, then an alias, then the hostname. The order is what makes \"mercy\" put\n * \"Mercy\" itself above the thirty organizations with \"Mercy\" in the middle of\n * their name; a plain `filter` returned them in directory order, which is\n * alphabetical and therefore arbitrary.\n *\n * Exported for the clients that already hold the list (the mobile picker\n * renders from its own cache) and to keep the ranking testable without a\n * transport.\n */\nexport function rankDirectoryMatches(\n  instances: readonly MyChartInstanceSeed[],\n  query: string,\n  limit: number = DEFAULT_DIRECTORY_SEARCH_LIMIT,\n): MyChartDirectoryMatch[] {\n  const q = query.trim().toLowerCase();\n  if (!q) return [];\n\n  const exact: MyChartDirectoryMatch[] = [];\n  const startsWith: MyChartDirectoryMatch[] = [];\n  const nameIncludes: MyChartDirectoryMatch[] = [];\n  const aliasIncludes: MyChartDirectoryMatch[] = [];\n  const hostnameIncludes: MyChartDirectoryMatch[] = [];\n\n  for (const instance of instances) {\n    const match = toMatch(instance);\n    const name = match.name.toLowerCase();\n    if (name === q) exact.push(match);\n    else if (name.startsWith(q)) startsWith.push(match);\n    else if (name.includes(q)) nameIncludes.push(match);\n    else if (match.aliases.some((alias) => alias.toLowerCase().includes(q))) aliasIncludes.push(match);\n    else if (match.hostname.includes(q)) hostnameIncludes.push(match);\n  }\n\n  return [...exact, ...startsWith, ...nameIncludes, ...aliasIncludes, ...hostnameIncludes].slice(\n    0,\n    Math.max(1, limit),\n  );\n}\n\n/**\n * Find the MyChart instances whose name, alias or hostname matches `query`.\n *\n * Reads the last refresh's list, or the checked-in one until there is one; the\n * result says which. Makes no request, except to check the sandbox entry when\n * the query turns it up. The result\n * says which one answered, because \"your health system isn't listed\" means\n * something different depending on whether the list was six months old.\n *\n * The {@link SANDBOX_INSTANCE} is searched alongside the real ones, and is\n * listed first so a query naming it outranks any real \"Springfield…\" match.\n * When a search turns it up, its reachability is probed and a match that\n * isn't serving comes back carrying {@link SANDBOX_UNAVAILABLE_NOTE}.\n */\nexport async function searchMyChartDirectory(\n  query: string,\n  options: MyChartDirectorySearchOptions = {},\n): Promise<MyChartDirectorySearchResult> {\n  const text = query.trim();\n  if (!text) {\n    throw new Error('Pass a query — a few letters of the health system name.');\n  }\n  const limit = Math.min(\n    MAX_DIRECTORY_SEARCH_LIMIT,\n    Math.max(1, Math.floor(options.limit ?? DEFAULT_DIRECTORY_SEARCH_LIMIT)),\n  );\n\n  const instances = refreshed?.entries ?? listMyCharts();\n\n  const matches = rankDirectoryMatches([SANDBOX_INSTANCE, ...instances], text, limit);\n\n  // Only pay for the probe when the query actually turned up the sandbox,\n  // which almost no real search does.\n  const sandbox = matches.find((match) => match.slgId === SANDBOX_INSTANCE.slgId);\n  if (sandbox && !(await isSandboxAvailable())) sandbox.unavailable = SANDBOX_UNAVAILABLE_NOTE;\n\n  return refreshed\n    ? { query: text, source: 'refreshed', refreshedAt: refreshed.at, count: matches.length, matches }\n    : { query: text, source: 'bundled', count: matches.length, matches };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Plumbing for MyChart's anonymous surface.\n *\n * The pre-login pages behave like the post-login ones in one way that matters:\n * every JSON endpoint behind them is a POST that requires the antiforgery\n * token from the page that hosts it, sent back as a header of the same name,\n * on the session cookie that page set. So \"call an anonymous endpoint\" is\n * always \"open its page first\". This module does that once per page and hands\n * the token around.\n *\n * These are raw `makeRequest` calls on purpose. `makeAuthenticatedRequest`\n * exists to notice an expired login and re-login; there is no login here to\n * expire, and its login-page detector would misread every one of these pages\n * (they *are* the login shell, with a different activity in the middle).\n *\n * ## The two error surfaces\n *\n * A rejected call — wrong payload, missing token, a feature the org switched\n * off — never comes back as a JSON error. The November 2025 release answers\n * 302 → `/Home/FiveHundred` → `/Home/Error?code=14` → a 200 HTML error page;\n * August 2025 answers a bare 500 HTML page. `postForm` refuses to follow the\n * redirect and treats anything that is not a 200 JSON body as the same\n * failure, so a caller sees one `PreloginEndpointError` on either release\n * instead of `SyntaxError: Unexpected token '<'`.\n */\n\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { getRequestVerificationTokenFromBody } from '../core/util';\n\nconst TOKEN_HEADER = '__RequestVerificationToken';\n\nexport class PreloginEndpointError extends Error {\n  constructor(\n    message: string,\n    readonly path: string,\n    readonly status: number,\n  ) {\n    super(message);\n    this.name = 'PreloginEndpointError';\n  }\n}\n\n/** A pre-login page and the antiforgery token it issued. */\nexport type PreloginPage = {\n  html: string;\n  token: string | null;\n  /** Where the request ended up after redirects, relative to the mount. */\n  finalUrl: string;\n};\n\n/**\n * Open a pre-login page under the discovered mount.\n *\n * Redirects are followed: `/GuestEstimates` bounces to its first step, and a\n * feature the org has switched off bounces to the login page — the caller\n * tells those apart by looking at what came back, not by the status.\n */\nexport async function openPreloginPage(request: MyChartRequest, path: string): Promise<PreloginPage> {\n  const response = await request.makeRequest({ path });\n  const html = await response.text();\n  if (response.status >= 400) {\n    throw new PreloginEndpointError(`GET ${path} answered ${response.status}`, path, response.status);\n  }\n  return {\n    html,\n    token: getRequestVerificationTokenFromBody(html) ?? null,\n    finalUrl: response.url || path,\n  };\n}\n\n/**\n * Encode a payload the way MyChart's own page JS does (`$$WPUtil.postify`).\n *\n * Nested objects are `outer.inner=value`; brackets are for array indices only,\n * so a list of objects is `list[0].Field=value`. This is not jQuery's\n * `outer[inner]` convention, and the difference is not cosmetic: the ASP.NET\n * model binder behind the scheduling endpoints rejects the bracket form with a\n * 500 (November 2025 release) or a 302 to the error page (August 2025).\n *\n * Confirmed by replaying one captured `GetSlots` body against a live instance\n * in both encodings — byte-for-byte identical except the separators, 200 for\n * dots and 500 for brackets. Some endpoints bind either form, which is why the\n * bracket version worked on the first instance it was tried against.\n */\nexport function encodeForm(data: Record<string, unknown>): string {\n  const params = new URLSearchParams();\n  const add = (key: string, value: unknown) => {\n    if (value === undefined || value === null) return;\n    if (Array.isArray(value)) {\n      value.forEach((v, i) => add(`${key}[${i}]`, v));\n    } else if (typeof value === 'object') {\n      for (const [k, v] of Object.entries(value as Record<string, unknown>)) add(`${key}.${k}`, v);\n    } else {\n      // Primitives only by now; JSON.stringify renders numbers and booleans\n      // the way jQuery's serializer does (\"1\", \"true\").\n      params.append(key, typeof value === 'string' ? value : JSON.stringify(value));\n    }\n  };\n  for (const [k, v] of Object.entries(data)) add(k, v);\n  return params.toString();\n}\n\n/**\n * POST a form-encoded payload to an anonymous endpoint and parse the JSON it\n * returns. Throws {@link PreloginEndpointError} on either release's error\n * surface rather than handing back an HTML error page as data.\n */\nexport async function postForm<T>(\n  request: MyChartRequest,\n  path: string,\n  token: string | null,\n  data: Record<string, unknown>,\n  referer: string,\n): Promise<T> {\n  if (!token) {\n    throw new PreloginEndpointError(`no antiforgery token to call ${path} with`, path, 0);\n  }\n  const origin = `${request.protocol}://${request.hostname}`;\n  const response = await request.makeRequest({\n    method: 'POST',\n    path,\n    body: encodeForm(data),\n    followRedirects: false,\n    headers: {\n      [TOKEN_HEADER]: token,\n      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',\n      'X-Requested-With': 'XMLHttpRequest',\n      Origin: origin,\n      Referer: `${origin}${request.firstPathPart ? '/' + request.firstPathPart : ''}${referer}`,\n    },\n  });\n\n  const contentType = response.headers.get('content-type') ?? '';\n  if (response.status !== 200 || !contentType.includes('json')) {\n    throw new PreloginEndpointError(\n      `POST ${path} was refused (${response.status}${contentType ? ', ' + contentType.split(';')[0] : ''}) — ` +\n        'the payload was not what this release expects, or the feature is switched off on this instance',\n      path,\n      response.status,\n    );\n  }\n  return (await response.json()) as T;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Billing entities and facilities, from the guest price-estimate flow.\n *\n * `/<mount>/GuestEstimates` is the CMS price-transparency tool, open to\n * anyone. Its first two steps are plain pages with their data inlined in a\n * script block, which is all this module reads:\n *\n *   GET GuestEstimates              → 302 → GuestEstimates/SelectServiceArea\n *   GET GuestEstimates/SelectServiceArea\n *       $$WP.Estimates.RecentSAs = [...];  $$WP.Estimates.OtherSAs = [{Id,Title,Phone,PhoneText,LogoURL,SelectLocations,…}]\n *   GET GuestEstimates/SelectLocation?svcArea=<id>&isMultiSA=true      (only when SelectLocations is true)\n *       var model = {\"Locations\":[{Id,Title,…}],\"ServiceArea\":…,\"IsGuest\":true,\"HasCompletedCaptcha\":false,…}\n *\n * A \"service area\" is a billing entity — the hospital system, a physicians'\n * group, an affiliated practice — each with its own customer-service line.\n * `SelectLocation` then lists the hospitals and campuses under it.\n *\n * The flow continues to `AcceptDisclaimer` and, two steps later, the payer\n * picker. That is where accepted insurance lives, and it is not read here:\n * the disclaimer's accept step runs an invisible reCAPTCHA (the location\n * model says so — `HasCompletedCaptcha`), and the scraper does not solve\n * captchas. See `types.ts` `InsuranceAvailability`.\n *\n * Verified on five instances; the inlined field set is identical on all of\n * them. The page keeps `RecentSAs` (areas this visitor used before, always\n * empty for a fresh session) apart from `OtherSAs`; both are read.\n */\n\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { logger } from '../../../shared/logger';\nimport { rec } from '../processors/read';\nimport type { GuestEstimatesLocationModel, GuestEstimatesServiceArea, Location } from './mychart.types';\nimport { openPreloginPage } from './preloginSession';\nimport type { BillingEntity } from './types';\n\nconst GUEST_ESTIMATES_PATH = '/GuestEstimates';\n\nexport type RawServiceArea = GuestEstimatesServiceArea & { Id: string; Title: string };\n\n/**\n * The JSON value that starts at `start`: the shortest prefix `JSON.parse`\n * accepts.\n *\n * A value starting with `[` or `{` has no proper prefix that is itself valid\n * JSON — a prefix only parses once its brackets balance, which is the whole\n * value — so the first prefix that parses is the end of it. Letting the real\n * parser decide is what keeps a `]` inside a title, an escaped quote, or a\n * second statement on the same line from ending the value early.\n */\nfunction valueAt(html: string, start: number): unknown {\n  for (let end = start + 1; end <= html.length; end++) {\n    const ch = html[end - 1];\n    if (ch !== ']' && ch !== '}') continue;\n    try {\n      return JSON.parse(html.slice(start, end));\n    } catch {\n      // Not the end of the value yet.\n    }\n  }\n  return undefined;\n}\n\n/** Read one `$$WP.Estimates.<name> = [...]` assignment out of the page. */\nfunction readAssignment(html: string, name: string): unknown {\n  const m = new RegExp(`\\\\$\\\\$WP\\\\.Estimates\\\\.${name}\\\\s*=\\\\s*`).exec(html);\n  return m ? valueAt(html, m.index + m[0].length) : undefined;\n}\n\n/** The billing entities on the service-area page, or null if it isn't one. */\nexport function parseServiceAreas(html: string): RawServiceArea[] | null {\n  const recent = readAssignment(html, 'RecentSAs');\n  const other = readAssignment(html, 'OtherSAs');\n  if (!Array.isArray(recent) && !Array.isArray(other)) return null;\n  const all = [...(Array.isArray(recent) ? recent : []), ...(Array.isArray(other) ? other : [])];\n  return all\n    .map((a) => rec<GuestEstimatesServiceArea>(a))\n    .filter((a): a is RawServiceArea => typeof a.Id === 'string' && typeof a.Title === 'string');\n}\n\n/** The `var model = {...}` on the location page, or null if it isn't one. */\nexport function parseLocationModel(html: string): GuestEstimatesLocationModel | null {\n  // Not a `$$WP.` assignment: the page wraps it in `$(function () { … })`,\n  // with more statements after it on the same line.\n  const m = /var\\s+model\\s*=\\s*/.exec(html);\n  if (!m) return null;\n  const model = valueAt(html, m.index + m[0].length);\n  return model && typeof model === 'object' ? rec<GuestEstimatesLocationModel>(model) : null;\n}\n\nfunction toBillingEntity(area: RawServiceArea, facilities: { id: string; name: string }[]): BillingEntity {\n  return {\n    id: area.Id,\n    name: area.Title.trim(),\n    phone: area.Phone?.trim() || null,\n    logoUrl: area.LogoURL?.trim() || null,\n    facilities,\n  };\n}\n\n/**\n * Every billing entity the estimate tool offers, with the facilities under\n * each one that groups by location. Returns null when the instance has the\n * tool switched off (the page that comes back is the login shell, or a\n * different activity, with no service areas in it).\n */\nexport async function fetchBillingEntities(request: MyChartRequest): Promise<BillingEntity[] | null> {\n  const page = await openPreloginPage(request, GUEST_ESTIMATES_PATH);\n  const areas = parseServiceAreas(page.html);\n  if (!areas) {\n    logger.debug('guest estimates is not available on', request.hostname);\n    return null;\n  }\n\n  const entities = await Promise.all(\n    areas.map(async (area) => {\n      if (!area.SelectLocations) return toBillingEntity(area, []);\n      const svcArea = encodeURIComponent(area.Id);\n      const location = await openPreloginPage(request, `/GuestEstimates/SelectLocation?svcArea=${svcArea}&isMultiSA=true`);\n      const model = parseLocationModel(location.html);\n      const facilities = (model?.Locations ?? [])\n        .filter((l): l is Location & { Id: string; Title: string } => typeof l?.Id === 'string' && typeof l?.Title === 'string')\n        .map((l) => ({ id: l.Id, name: l.Title.trim() }));\n      return toBillingEntity(area, facilities);\n    }),\n  );\n  return entities;\n}\n\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The organization's contact lines, read off the login shell.\n *\n * Every pre-login page registers a block of string \"mnemonics\" for the page JS\n * to substitute into UI copy:\n *\n *   $$WP.Strings.addMnemonic(\"@MYCHART@HELPDESKPHONE@\",\"<span dir='ltr'><a href='tel:5550100100'>555-010-0100</a></span>\", false, \"Global\", $$WP.Strings.EncodingTypes.None)\n *   $$WP.Strings.addMnemonic(\"@MYCHART@ORGNAME@\",HTMLUnencode(\"Springfield General Hospital\"), false, \"Global\")\n *\n * Verified on five instances spanning both scheduling-bundle generations: the\n * mnemonic names are identical everywhere; only the values differ. Three\n * things about the values bite:\n *\n *  - **Epic ships placeholders.** An org that never set a line leaves\n *    `(555) 555-5555` / `tel:5555555555` in place, and the support email\n *    defaults to `MyChartSupport@DoNotUse.DoNotUse`. Both are reported as\n *    null, never as a number to call.\n *  - **Values are HTML**, usually a `tel:` anchor, sometimes a bare span for a\n *    vanity number (\"800-4Sprng\") that has no `tel:` link at all.\n *  - **`HTMLUnencode(...)` wraps the text ones**, so the JS string literal\n *    still holds entities (`&amp;`, `&#39;`) that have to be decoded.\n *\n * The `addMnemonic` lines are one per mnemonic and machine-generated, so a\n * regex reads them. Their values are HTML, which is cheerio's job: decoding\n * entities by hand is what this module used to do, and it got `&amp;lt;`,\n * every named entity outside the big six, and out-of-range numeric\n * references wrong.\n */\n\nimport * as cheerio from 'cheerio';\n\nimport type { OrgProfile, PhoneNumber } from './types';\n\nconst MNEMONIC_RE =\n  /\\$\\$WP\\.Strings\\.addMnemonic\\(\\s*\"@MYCHART@([A-Z_]+)@\"\\s*,\\s*(HTMLUnencode\\()?\\s*\"((?:[^\"\\\\]|\\\\.)*)\"/g;\n\nconst PLACEHOLDER_DIGITS = '5555555555';\nconst PLACEHOLDER_EMAIL_DOMAIN = 'donotuse.donotuse';\n\n/** Every `@MYCHART@…@` mnemonic on the page, values still raw (HTML/JS-escaped). */\nexport function parseMnemonics(html: string): Record<string, string> {\n  const out: Record<string, string> = {};\n  for (const match of html.matchAll(MNEMONIC_RE)) {\n    const [, name, , literal] = match;\n    if (!name || literal === undefined) continue;\n    out[name] = decodeJsString(literal);\n  }\n  return out;\n}\n\nfunction decodeJsString(literal: string): string {\n  try {\n    return JSON.parse(`\"${literal}\"`) as string;\n  } catch {\n    return literal.replace(/\\\\([\"'\\\\/])/g, '$1');\n  }\n}\n\n/** A parsed fragment's text: tags dropped, entities decoded, spacing collapsed. */\nfunction textOf($: cheerio.CheerioAPI): string {\n  return $.root().text().replace(/\\s+/g, ' ').trim();\n}\n\n/** One mnemonic value's HTML as plain text. */\nfunction toText(html: string): string {\n  return textOf(cheerio.load(html, null, false));\n}\n\n/** Turn one phone mnemonic's HTML into a number, or null for empty/placeholder. */\nexport function parsePhone(raw: string | undefined): PhoneNumber | null {\n  if (!raw) return null;\n  const $ = cheerio.load(raw, null, false);\n  const display = textOf($);\n  if (!display) return null;\n\n  const href = $('a[href]').first().attr('href')?.trim() ?? '';\n  const telDigits = (/^tel:(.+)$/i.exec(href)?.[1] ?? '').replace(/\\D/g, '');\n  const displayDigits = display.replace(/\\D/g, '');\n  // A vanity number only has digits for its prefix; `tel:` is authoritative\n  // when it exists, and a display that is all digits speaks for itself.\n  const digits = telDigits || (/^[\\d\\s().+-]+$/.test(display) ? displayDigits : '');\n\n  if (digits === PLACEHOLDER_DIGITS || /555[-. ]?5555/.test(display)) return null;\n  return { display, digits: digits || null };\n}\n\n/** The support email, or null for empty / Epic's DoNotUse placeholder. */\nexport function parseEmail(raw: string | undefined): string | null {\n  if (!raw) return null;\n  const email = toText(raw);\n  if (!email.includes('@')) return null;\n  if (email.toLowerCase().endsWith('@' + PLACEHOLDER_EMAIL_DOMAIN)) return null;\n  return email;\n}\n\nfunction textOrNull(raw: string | undefined): string | null {\n  if (!raw) return null;\n  return toText(raw) || null;\n}\n\n/** Read the organization's profile out of any pre-login page's HTML. */\nexport function parseOrgProfile(html: string): OrgProfile {\n  const m = parseMnemonics(html);\n  return {\n    organizationName: textOrNull(m.ORGNAME) ?? textOrNull(m.MYORGNAME),\n    portalBrand: textOrNull(m.APPTITLE),\n    mountPath: textOrNull(m.ABSOLUTEURL),\n    phones: {\n      helpDesk: parsePhone(m.HELPDESKPHONE),\n      scheduling: parsePhone(m.SCHEDULINGPHONE),\n      billing: parsePhone(m.BILLINGPHONE),\n    },\n    supportEmail: parseEmail(m.HELPEMAIL),\n  };\n}\n\n/** Does this page carry the mnemonic block at all? False for a non-MyChart page. */\nexport function hasOrgProfile(html: string): boolean {\n  return /addMnemonic\\(\\s*\"@MYCHART@(ORGNAME|APPTITLE)@\"/.test(html);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The provider and clinic directory behind \"Find a Doctor\".\n *\n * MyChart's open-scheduling workflow runs for anonymous visitors under\n * `/<mount>/OpenScheduling`. Its data comes from two POSTs the page makes\n * itself, both form-encoded (`$$WPUtil.postify`) and both requiring the\n * page's antiforgery token as a header:\n *\n *   POST Scheduling/Anonymous/GetSchedulingWorkflowData\n *        schedulingParameters[workflow]=NewProvider&isFirstLoad=true\n *     → Specialties[], WorkflowSettings{…}, HomeOrganizationName\n *\n *   POST Scheduling/Anonymous/GetSpecialtyData\n *        SpecialtyId=<id>\n *     → Providers[], Departments[], Locations[], ProviderDepartmentPairs[],\n *       ReasonsForVisit[], VisitTypes[]\n *\n * Verified on five instances (root-mounted and prefixed). The URL routes,\n * the parameter names and every key read below are identical on all five.\n * Two keys are additive on the newer scheduling build only —\n * `Providers[].SpecialtySearchTerms` and `WorkflowSettings.UseLegacyQuestionnaires`\n * — and are read as optional; nothing else differs between the builds.\n *\n * What this is and is not: it lists every provider the org has enabled for\n * online scheduling, once per specialty they are bookable under. It is the\n * bookable directory, not the whole medical staff, and it carries no NPI —\n * the only identifier is the instance's opaque WP-encoded provider id, which\n * is stable across specialties (so providers dedupe on it).\n *\n * Size: one specialty is 0.6–2 MB of JSON, and a large org lists twenty-plus\n * specialties. `specialties` narrows the crawl; `maxSpecialties` caps it. The\n * per-host permit in `shared/hostConcurrency.ts` paces whatever is left.\n */\n\nimport type { MyChartRequest } from '../core/myChartRequest';\nimport { logger } from '../../../shared/logger';\nimport { rec } from '../processors/read';\nimport type { AnonymousSchedulingWorkflowData, AnonymousSpecialtyData } from './mychart.types';\nimport { openPreloginPage, postForm } from './preloginSession';\nimport type { Clinic, PortalFeatures, Provider, ProviderDirectory, Specialty } from './types';\n\nexport const OPEN_SCHEDULING_PATH = '/OpenScheduling';\nconst WORKFLOW_DATA_PATH = '/Scheduling/Anonymous/GetSchedulingWorkflowData';\nconst SPECIALTY_DATA_PATH = '/Scheduling/Anonymous/GetSpecialtyData';\n\n// ── Raw shapes, as the instance sends them ───────────────────────────────────\n// The two payloads are read as their captured types (`mychart.types.ts`); the\n// provider and department elements are still cast to the keys the crawl reads.\n\ntype RawSpecialty = { Id: string; Name: string };\n\ntype RawSpecialtyRef = { Title?: string | null };\n\ntype RawProvider = {\n  ID: string;\n  Name: string;\n  NameLastFirst?: string | null;\n  Credentials?: string | null;\n  Specialties?: RawSpecialtyRef[] | null;\n  Gender?: string | null;\n  Languages?: string[] | null;\n  PhotoUrl?: string | null;\n  BioSlug?: string | null;\n  /** Newer build only. */\n  SpecialtySearchTerms?: { Title?: string | null }[] | null;\n};\n\ntype RawDepartment = {\n  ID: string;\n  Name: string;\n  Address?: string[] | null;\n  PhoneNumber?: string | null;\n  OverridePhoneNumber?: string | null;\n  IsUsingOverridePhoneNumber?: boolean;\n  Coordinates?: { Latitude: number | null; Longitude: number | null } | null;\n  TimeZone?: { CacheTimeZone?: { Title?: string | null } | null } | null;\n};\n\n/**\n * `DirectProviderDepartmentPairIDs` are `\"<ProviderId>^<DepartmentId>\"`\n * composites — not indices into `ProviderDepartmentPairs`. Some instances\n * refuse a search carrying a pair outside this set.\n */\nexport type RawReason = NonNullable<AnonymousSpecialtyData['ReasonsForVisit']>[number] & { Id: string };\n\nexport type RawVisitType = NonNullable<AnonymousSpecialtyData['VisitTypes']>[number];\n\n// ── Parsing ──────────────────────────────────────────────────────────────────\n\nfunction requireArray<T>(value: unknown, what: string): T[] {\n  if (!Array.isArray(value)) {\n    throw new Error(`${what} is missing from the scheduling response — the endpoint shape changed`);\n  }\n  return value as T[];\n}\n\nexport function parseSpecialties(data: AnonymousSchedulingWorkflowData): Specialty[] {\n  return requireArray<RawSpecialty>(data.Specialties, 'Specialties')\n    .filter((s) => typeof s?.Id === 'string' && typeof s?.Name === 'string')\n    .map((s) => ({ id: s.Id, name: s.Name }));\n}\n\nexport function parseFeatures(data: AnonymousSchedulingWorkflowData): PortalFeatures {\n  const s = data.WorkflowSettings ?? {};\n  return {\n    selfSignup: s.AllowSelfSignup === true,\n    loginEnabled: s.IsLoginEnabled !== false,\n    openScheduling: s.IsWorkflowTurnedOn !== false,\n    scheduleAsGuest: s.DisableScheduleAsGuest !== true,\n    onMyWay: s.AllowOnMyWay === true,\n    onDemandVideoVisits: s.HasOnDemandVideoVisitSecurity === true,\n  };\n}\n\nfunction titles(refs: { Title?: string | null }[] | null | undefined): string[] {\n  return (refs ?? []).map((r) => r?.Title?.trim() ?? '').filter((t) => t.length > 0);\n}\n\n/** A department's phone: the override wins when the org turned it on. */\nfunction departmentPhone(d: RawDepartment): string | null {\n  const phone = d.IsUsingOverridePhoneNumber && d.OverridePhoneNumber ? d.OverridePhoneNumber : d.PhoneNumber;\n  return phone?.trim() || null;\n}\n\nfunction parseClinic(d: RawDepartment): Clinic {\n  const lat = d.Coordinates?.Latitude;\n  const lng = d.Coordinates?.Longitude;\n  return {\n    id: d.ID,\n    name: d.Name,\n    addressLines: (d.Address ?? []).filter((line) => typeof line === 'string' && line.trim().length > 0),\n    phone: departmentPhone(d),\n    coordinates: typeof lat === 'number' && typeof lng === 'number' ? { latitude: lat, longitude: lng } : null,\n    timeZone: d.TimeZone?.CacheTimeZone?.Title?.trim() || null,\n  };\n}\n\n/**\n * Merge one specialty's payload into the running directory.\n *\n * A provider listed under two specialties arrives twice with the same `ID`;\n * the merge keeps one record and unions the clinics and finder specialties.\n */\nexport function mergeSpecialtyData(\n  data: AnonymousSpecialtyData,\n  specialty: Specialty,\n  providers: Map<string, Provider>,\n  clinics: Map<string, Clinic>,\n): void {\n  const rawProviders = requireArray<RawProvider>(data.Providers, 'Providers');\n  const rawDepartments = requireArray<RawDepartment>(data.Departments, 'Departments');\n  const pairs = Array.isArray(data.ProviderDepartmentPairs) ? data.ProviderDepartmentPairs : [];\n\n  for (const d of rawDepartments) {\n    if (typeof d?.ID !== 'string') continue;\n    if (!clinics.has(d.ID)) clinics.set(d.ID, parseClinic(d));\n  }\n\n  const clinicIdsByProvider = new Map<string, Set<string>>();\n  for (const p of pairs) {\n    if (typeof p?.ProviderId !== 'string' || typeof p?.DepartmentId !== 'string') continue;\n    let set = clinicIdsByProvider.get(p.ProviderId);\n    if (!set) clinicIdsByProvider.set(p.ProviderId, (set = new Set()));\n    set.add(p.DepartmentId);\n  }\n\n  for (const raw of rawProviders) {\n    if (typeof raw?.ID !== 'string' || typeof raw?.Name !== 'string') continue;\n    const clinicIds = [...(clinicIdsByProvider.get(raw.ID) ?? [])];\n    const existing = providers.get(raw.ID);\n    if (existing) {\n      existing.clinicIds = [...new Set([...existing.clinicIds, ...clinicIds])];\n      if (!existing.finderSpecialties.includes(specialty.name)) existing.finderSpecialties.push(specialty.name);\n      continue;\n    }\n    const provider: Provider = {\n      id: raw.ID,\n      name: raw.Name,\n      nameLastFirst: raw.NameLastFirst ?? raw.Name,\n      credentials: raw.Credentials ?? '',\n      specialties: titles(raw.Specialties),\n      gender: raw.Gender ?? '',\n      languages: (raw.Languages ?? []).filter((l): l is string => typeof l === 'string' && l.length > 0),\n      photoUrl: raw.PhotoUrl?.trim() || null,\n      bioSlug: raw.BioSlug?.trim() || null,\n      clinicIds,\n      finderSpecialties: [specialty.name],\n    };\n    if (Array.isArray(raw.SpecialtySearchTerms)) provider.searchTerms = titles(raw.SpecialtySearchTerms);\n    providers.set(raw.ID, provider);\n  }\n}\n\n// ── Fetching ─────────────────────────────────────────────────────────────────\n\nexport type ProviderDirectoryOptions = {\n  /**\n   * Only crawl these specialties, matched case-insensitively by name or by id.\n   * Unset means every specialty the instance lists.\n   */\n  specialties?: string[];\n  /** Stop after this many specialties (after `specialties` filtering). */\n  maxSpecialties?: number;\n};\n\n/** Open the workflow page and read the specialty list and feature flags. */\nexport async function fetchSchedulingWorkflow(\n  request: MyChartRequest,\n): Promise<{ token: string | null; data: AnonymousSchedulingWorkflowData }> {\n  const page = await openPreloginPage(request, OPEN_SCHEDULING_PATH);\n  const data = await postForm(\n    request,\n    WORKFLOW_DATA_PATH,\n    page.token,\n    { schedulingParameters: { workflow: 'NewProvider' }, isFirstLoad: true },\n    OPEN_SCHEDULING_PATH,\n  );\n  return { token: page.token, data: rec<AnonymousSchedulingWorkflowData>(data) };\n}\n\n/**\n * One specialty's payload: its providers, departments and the pairs joining\n * them, plus the visit types and reasons for visit the slot search needs.\n *\n * Shared with `openSlots.ts` so the two-POST walk exists in one place.\n */\nexport async function fetchSpecialtyData(\n  request: MyChartRequest,\n  token: string | null,\n  specialtyId: string,\n): Promise<AnonymousSpecialtyData> {\n  return rec<AnonymousSpecialtyData>(\n    await postForm(request, SPECIALTY_DATA_PATH, token, { SpecialtyId: specialtyId }, OPEN_SCHEDULING_PATH),\n  );\n}\n\nexport function selectSpecialties(all: Specialty[], options: ProviderDirectoryOptions): Specialty[] {\n  let chosen = all;\n  if (options.specialties && options.specialties.length > 0) {\n    const wanted = new Set(options.specialties.map((s) => s.trim().toLowerCase()));\n    chosen = all.filter((s) => wanted.has(s.name.toLowerCase()) || wanted.has(s.id.toLowerCase()));\n  }\n  if (options.maxSpecialties !== undefined && options.maxSpecialties >= 0) {\n    chosen = chosen.slice(0, options.maxSpecialties);\n  }\n  return chosen;\n}\n\n/**\n * Crawl the \"Find a Doctor\" workflow into one deduplicated directory.\n *\n * Specialties are fetched concurrently; the per-host permit is the throttle.\n */\nexport async function fetchProviderDirectory(\n  request: MyChartRequest,\n  options: ProviderDirectoryOptions = {},\n): Promise<ProviderDirectory> {\n  const { token, data } = await fetchSchedulingWorkflow(request);\n  const all = parseSpecialties(data);\n  const chosen = selectSpecialties(all, options);\n  logger.debug(`open scheduling lists ${all.length} specialties on ${request.hostname}; crawling ${chosen.length}`);\n\n  const providers = new Map<string, Provider>();\n  const clinics = new Map<string, Clinic>();\n  const payloads = await Promise.all(\n    chosen.map((specialty) => fetchSpecialtyData(request, token, specialty.id)),\n  );\n  chosen.forEach((specialty, i) => mergeSpecialtyData(payloads[i]!, specialty, providers, clinics));\n\n  return {\n    specialties: all,\n    providers: [...providers.values()],\n    clinics: [...clinics.values()],\n    features: parseFeatures(data),\n    organizationName: data.HomeOrganizationName?.trim() || null,\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * One hostname in, the health system's public profile out.\n *\n * Runs the three pre-login scrapers under one discovered mount:\n *\n *   1. {@link parseOrgProfile} on the login page — org name, portal brand,\n *      support lines, support email.\n *   2. {@link fetchProviderDirectory} — specialties, bookable providers,\n *      clinics with addresses, and the portal's feature flags.\n *   3. {@link fetchBillingEntities} — billing entities and their facilities.\n *\n * The contact profile is the one part that must work: a host that serves no\n * login page is not a MyChart instance and the call throws. The other two are\n * features an organization can switch off, so each fails on its own into\n * `warnings` and the rest of the profile still comes back.\n *\n * Nothing here sends a credential. Every request is one an anonymous browser\n * makes by opening the portal.\n */\n\nimport { determineFirstPathPart } from '../auth/login';\nimport { MyChartRequest } from '../core/myChartRequest';\nimport { logger } from '../../../shared/logger';\nimport { fetchBillingEntities } from './guestEstimates';\nimport { hasOrgProfile, parseOrgProfile } from './orgProfile';\nimport { openPreloginPage } from './preloginSession';\nimport { fetchProviderDirectory, type ProviderDirectoryOptions } from './providerDirectory';\nimport type { HospitalNetworkProfile } from './types';\n\nconst LOGIN_PAGE_PATH = '/Authentication/Login';\n\nexport const INSURANCE_GATE_REASON =\n  'The accepted-insurance list is the last step of the guest price-estimate flow, behind a ' +\n  'price-transparency disclaimer whose accept step is protected by reCAPTCHA. It is not scraped. ' +\n  \"A signed-in account can read the organization's payer catalogue instead: the get_insurance_payers \" +\n  'capability, which is the same list the Add Coverage form offers and is identical for every ' +\n  'patient on the instance.';\n\nexport type NetworkProfileOptions = ProviderDirectoryOptions & {\n  /** `http` for a local fake-mychart; defaults to https. */\n  protocol?: string;\n  /** Skip the provider/clinic crawl (the largest part by far). Default true. */\n  includeProviders?: boolean;\n  /** Skip the billing entities. Default true. */\n  includeBilling?: boolean;\n};\n\nfunction describe(err: unknown): string {\n  return err instanceof Error ? err.message : String(err);\n}\n\n/**\n * Build the profile for `hostname`. Accepts a bare host, a host with a mount\n * prefix, or a full login URL — whatever a user pasted.\n */\nexport async function fetchHospitalNetworkProfile(\n  hostname: string,\n  options: NetworkProfileOptions = {},\n): Promise<HospitalNetworkProfile> {\n  const request = new MyChartRequest(hostname, options.protocol ? { protocol: options.protocol } : undefined);\n  await determineFirstPathPart(request);\n\n  const login = await openPreloginPage(request, LOGIN_PAGE_PATH);\n  if (!hasOrgProfile(login.html)) {\n    throw new Error(\n      `${request.hostname} did not serve a MyChart login page at ` +\n        `${request.firstPathPart ? '/' + request.firstPathPart : ''}${LOGIN_PAGE_PATH} — is it a MyChart instance?`,\n    );\n  }\n  const profile = parseOrgProfile(login.html);\n  const warnings: string[] = [];\n\n  const [directory, billingEntities] = await Promise.all([\n    options.includeProviders === false\n      ? Promise.resolve(null)\n      : fetchProviderDirectory(request, options).catch((err: unknown) => {\n          logger.debug('provider directory unavailable on', request.hostname, err);\n          warnings.push(`Provider directory unavailable: ${describe(err)}`);\n          return null;\n        }),\n    options.includeBilling === false\n      ? Promise.resolve(null)\n      : fetchBillingEntities(request).catch((err: unknown) => {\n          logger.debug('billing entities unavailable on', request.hostname, err);\n          warnings.push(`Billing entities unavailable: ${describe(err)}`);\n          return null;\n        }),\n  ]);\n\n  return {\n    hostname: request.hostname,\n    mount: request.firstPathPart,\n    profile,\n    directory,\n    billingEntities,\n    insurance: { status: 'gated', reason: INSURANCE_GATE_REASON },\n    warnings,\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `Directory` group — Epic's list of every MyChart instance in the world.\n *\n * `public`-kind, like `Providers`: this is the lookup a person does *before*\n * they have an account, so requiring one would be a contradiction.\n *\n * It was the Claude Desktop extension's hand-written `search_mycharts` meta\n * tool, over a bundled snapshot, and only that client had it — the CLI, the\n * npm library and the mobile agent could not answer \"which MyChart does my\n * health system run?\" at all. Same tool name, same result shape; the search\n * itself now lives in `scrapers/list-all-mycharts/searchDirectory.ts` and\n * prefers Epic's live directory over the checked-in seed.\n */\n\nimport {\n  searchMyChartDirectory,\n  MAX_DIRECTORY_SEARCH_LIMIT,\n} from '../../../../scrapers/list-all-mycharts/searchDirectory';\nimport { fetchHospitalNetworkProfile } from '../../../../scrapers/myChart/prelogin';\nimport { num, requireStr, strList } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const DIRECTORY_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'search_mycharts',\n    title: 'Search the MyChart directory',\n    description:\n      \"Look up a MyChart hostname for setup. Type a few letters of the user's health system name (e.g. \\\"uchealth\\\", \\\"mass general\\\"). Returns matching entries with their hostname, display name, login URL and logo. Pass the chosen `hostname` on to whatever this client uses to connect an account — except for an entry carrying `unavailable`, which cannot be connected right now: show the user that message instead of attempting setup.\",\n    kind: 'public',\n    group: 'Directory',\n    params: [\n      {\n        name: 'query',\n        type: 'string',\n        description:\n          'Substring of the health system name, one of its aliases, or its hostname. Case-insensitive.',\n        required: true,\n      },\n      {\n        name: 'limit',\n        type: 'number',\n        description: `Maximum results to return, 1–${MAX_DIRECTORY_SEARCH_LIMIT}. Defaults to 10.`,\n        min: 1,\n        max: MAX_DIRECTORY_SEARCH_LIMIT,\n      },\n    ],\n    // No processor: the search returns a finished object rather than a scraped\n    // response, so there is no raw envelope to project and no `mode` to offer.\n    run: (args) => {\n      const query = requireStr(args, 'query');\n      const given = args.limit;\n      const limit =\n        given === undefined || given === null || given === ''\n          ? undefined\n          : num(args, 'limit', MAX_DIRECTORY_SEARCH_LIMIT);\n      return searchMyChartDirectory(query, { limit });\n    },\n  },\n  {\n    id: 'get_hospital_info',\n    title: 'Public profile of a health system',\n    description:\n      'What a MyChart instance publishes about its health system to anyone, with no account: the ' +\n      \"organization's support, scheduling and billing phone lines and support email; the \\\"Find a Doctor\\\" \" +\n      'directory of bookable providers (name, credentials, specialties, languages, photo) with every clinic ' +\n      'they work at (street address, phone, coordinates, hours); billing entities and their facilities; and ' +\n      'which portal features are switched on. Pass the `hostname` from search_mycharts. Slow on large ' +\n      'systems — one specialty is 0.6–2 MB and some list twenty — so narrow with `specialties` or skip the ' +\n      'crawl with `include_providers: false`. Never returns a fax number or an accepted-insurance list: ' +\n      'MyChart publishes neither (the payer list sits behind a reCAPTCHA-protected disclaimer).',\n    kind: 'public',\n    group: 'Directory',\n    params: [\n      {\n        name: 'hostname',\n        type: 'string',\n        description: 'The MyChart hostname, e.g. mychart.example.org. A full login URL also works.',\n        required: true,\n      },\n      {\n        name: 'specialties',\n        type: 'string[]',\n        description: 'Only crawl these \"Find a Doctor\" specialties (by name). Default: all of them.',\n      },\n      { name: 'max_specialties', type: 'number', description: 'Stop after this many specialties.', min: 0 },\n      { name: 'include_providers', type: 'boolean', description: 'Crawl the provider and clinic directory (default true).' },\n      { name: 'include_billing', type: 'boolean', description: 'Read the billing entities (default true).' },\n    ],\n    // No processor, like search_mycharts: the profile is assembled from several\n    // anonymous pages, not one scraped response.\n    run: (args) => {\n      const hostname = requireStr(args, 'hostname');\n      const specialties = strList(args, 'specialties');\n      // Login's rule: http for localhost and dotless Docker service names\n      // (a local fake-mychart), https for every real portal.\n      const host = hostname.replace(/^[a-z]+:\\/\\//i, '').split(/[:/]/)[0]!;\n      return fetchHospitalNetworkProfile(hostname, {\n        protocol: host === 'localhost' || !host.includes('.') ? 'http' : 'https',\n        ...(specialties.length > 0 ? { specialties } : {}),\n        ...(args.max_specialties !== undefined ? { maxSpecialties: num(args, 'max_specialties', 0) } : {}),\n        ...(args.include_providers !== undefined ? { includeProviders: args.include_providers !== false } : {}),\n        ...(args.include_billing !== undefined ? { includeBilling: args.include_billing !== false } : {}),\n      });\n    },\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { scraperFetch } from '../../scrapers/http';\nimport { DetailedError } from '../../shared/detailedError';\n\n/**\n * The shared `fanpierlabs-forms` Lambda (owned by the\n * `fanpierlabs-projects-email-submission` project, not this repo). It emails\n * every submission to the developers and logs it to CloudWatch. The splash's\n * waitlist form posts here too.\n */\nexport const FEATURE_REQUEST_ENDPOINT = 'https://ns8remz3t7.execute-api.us-east-2.amazonaws.com';\n\nexport const FEATURE_REQUEST_SITE = 'openrecord-feature-request';\n\n/**\n * The Lambda refuses a submission without a well-formed `email` (it becomes\n * the reply-to). A request sent without the user's email carries this\n * instead. It has no mailbox, so a reply to it bounces — which is the point.\n */\nexport const ANONYMOUS_EMAIL = 'anonymous@openrecord.fanpierlabs.com';\n\nexport interface FeatureRequest {\n  /** What the user was trying to do that OpenRecord can't. */\n  request: string;\n  name?: string | undefined;\n  email?: string | undefined;\n  /** Health system name or MyChart hostname. */\n  hospital?: string | undefined;\n}\n\nexport interface FeatureRequestResult {\n  /**\n   * The Lambda accepted it. It answers 200 once the submission is logged, even\n   * if the email itself then fails, so this means \"recorded\", not \"delivered\".\n   */\n  sent: true;\n  /** Exactly what left the device, so the model can tell the user. */\n  submitted: Record<string, string>;\n}\n\n/** `endpoint` is the test seam: integration tests point it at fake-mychart. */\nexport async function sendFeatureRequest(\n  input: FeatureRequest,\n  options: { endpoint?: string } = {},\n): Promise<FeatureRequestResult> {\n  const request = input.request.trim();\n  if (!request) throw new Error('A feature request needs a description of what the user wanted to do.');\n\n  const name = input.name?.trim();\n  const email = input.email?.trim();\n  const hospital = input.hospital?.trim();\n\n  const submitted: Record<string, string> = { request };\n  if (name) submitted.name = name;\n  if (email) submitted.email = email;\n  if (hospital) submitted.hospital = hospital;\n\n  const response = await scraperFetch(options.endpoint ?? FEATURE_REQUEST_ENDPOINT, {\n    method: 'POST',\n    headers: { 'Content-Type': 'application/json' },\n    body: JSON.stringify({ site: FEATURE_REQUEST_SITE, ...submitted, email: email || ANONYMOUS_EMAIL }),\n  });\n  if (!response.ok) {\n    // The Lambda answers 400 only for a malformed `email`; anything else is it\n    // being down. Either way the body may echo what was sent, so it stays out\n    // of the message — this reaches Sentry.\n    throw new DetailedError(\n      `Feature request failed: HTTP ${response.status}`,\n      response.status === 400\n        ? \"The feedback service rejected the email address. Check it, or send the request without it.\"\n        : \"Couldn't reach the OpenRecord feedback service. Try again later.\",\n    );\n  }\n  return { sent: true, submitted };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The `Feedback` group — telling the developers what a user wanted that\n * OpenRecord can't do yet.\n *\n * An `accountFree` write: it never touches a chart (it posts to the shared Fan\n * Pier Labs forms Lambda, which emails it on), but it sends what the user typed\n * — and, if they agree, who they are — off the device, so every client gates it\n * like any other write.\n */\n\nimport { sendFeatureRequest } from '../../featureRequest';\nimport { optStr, requireStr } from '../args';\nimport type { CapabilityImpl } from '../types';\n\nexport const FEEDBACK_CAPABILITIES: readonly CapabilityImpl[] = [\n  {\n    id: 'send_feature_request',\n    title: 'Send a feature request',\n    // Short on purpose: the mobile confirmation dialog shows this to the user.\n    // How to offer it lives in the MCPB server instructions and the mobile\n    // system prompt, the only two clients that offer it.\n    description:\n      \"Email the OpenRecord developers what the user wanted to do that OpenRecord can't do yet, with their name, email and health system if they chose to include them.\",\n    kind: 'write',\n    accountFree: true,\n    modelOnly: true,\n    group: 'Feedback',\n    lessFrequentlyUsed: true,\n    params: [\n      {\n        name: 'request',\n        type: 'string',\n        description: 'A few sentences on what the user was trying to do and what they would want OpenRecord to do.',\n        required: true,\n      },\n      { name: 'name', type: 'string', description: \"The user's name. Omit to send without it.\" },\n      { name: 'email', type: 'string', description: \"The user's email, so the developers can reply. Omit to send without it.\" },\n      {\n        name: 'hospital',\n        type: 'string',\n        description: 'Their health system, or its MyChart hostname. Omit to send without it.',\n      },\n    ],\n    run: (args) =>\n      sendFeatureRequest({\n        request: requireStr(args, 'request'),\n        name: optStr(args, 'name'),\n        email: optStr(args, 'email'),\n        hospital: optStr(args, 'hospital'),\n      }),\n  },\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * The capability registry — the single source of truth for what OpenRecord can\n * do with a MyChart account.\n *\n * Every client (CLI, npm library, Claude Desktop extension, mobile app) derives\n * its tool/command list from `CAPABILITIES` instead of hand-maintaining its own.\n * Before this file existed the four lists had drifted — the mobile app was\n * missing visit notes, questionnaires, upcoming orders, EHI export, linked\n * accounts, message threads and every emergency-contact write; the CLI was\n * missing visit notes and those same writes — so the answer a patient got\n * depended on which client they happened to ask. `capabilities.test.ts` now\n * fails the build if any client stops covering an entry here.\n *\n * ## Shape of an entry\n *\n * A capability is a name, a parameter list, and a `run(request, args, ctx)`\n * that takes a logged-in {@link MyChartRequest} and returns JSON-serializable\n * data. Nothing in here knows about MCP, React Native, or argv — the clients\n * own their own presentation, and only their presentation. The entries\n * themselves live one file per group under `registry/`; this file is the\n * assembly, the lookup and the dispatch.\n *\n * ## Capabilities that need no account\n *\n * Not everything OpenRecord can do is a chart read. Looking a provider up in\n * the NPI Registry, or finding which MyChart a health system runs, is public\n * data — and each client used to hand-write its own version of that, which is\n * how the Claude Desktop extension ended up the only client able to search the\n * MyChart directory. Those live here too, as `kind: 'public'`: no `account`\n * parameter, no session, no patient assertion, and no client-side list.\n *\n * ## Adding one\n *\n * Add the entry to its group's file in `registry/` (a new group also goes in\n * {@link CAPABILITY_IMPLS} below, in the order it should be listed). Every\n * client picks it up automatically: the MCP server registers a tool, the mobile\n * agent lists it in its prompt, the CLI gains `--action <id>`, and the npm\n * client gains a `runCapability(id, …)` route. The only thing a client may\n * still need is bespoke presentation (see `rendersMedia`).\n */\n\nimport type { MyChartRequest } from '../../../scrapers/myChart/core/myChartRequest';\nimport type { RawResponse } from '../../../scrapers/myChart/core/rawResponse';\nimport { renderOutput } from '../../../scrapers/myChart/processors/processor';\nimport { assertProxyReadContext } from '../../../scrapers/myChart/proxy/proxyTools';\n\nimport { optStr } from './args';\nimport { readOutputMode } from './params';\nimport { isPublicCapability } from './public';\nimport type { Capability, CapabilityArgs, CapabilityContext, CapabilityImpl } from './types';\n\nimport { PROFILE_CAPABILITIES } from './registry/profile';\nimport { VISIT_CAPABILITIES } from './registry/visits';\nimport { RESULT_CAPABILITIES } from './registry/results';\nimport { MESSAGE_CAPABILITIES } from './registry/messages';\nimport { BILLING_CAPABILITIES } from './registry/billing';\nimport { CARE_CAPABILITIES } from './registry/care';\nimport { EMERGENCY_CONTACT_CAPABILITIES } from './registry/emergencyContacts';\nimport { PRESCRIPTION_CAPABILITIES } from './registry/prescriptions';\nimport { PATIENT_CAPABILITIES } from './registry/patients';\nimport { ACCOUNT_SETTINGS_CAPABILITIES } from './registry/accountSettings';\nimport { ACCOUNT_SECURITY_CAPABILITIES } from './registry/accountSecurity';\nimport { PROVIDER_CAPABILITIES } from './registry/providers';\nimport { DIRECTORY_CAPABILITIES } from './registry/directory';\nimport { FEEDBACK_CAPABILITIES } from './registry/feedback';\n\nexport type {\n  Capability,\n  CapabilityArgs,\n  CapabilityContext,\n  CapabilityKind,\n  CapabilityParam,\n  FilePayload,\n} from './types';\nexport { encodeImageId, decodeImageId, type StudyImagePayload } from './imaging';\nexport type { MessageAttachmentFile } from '../../../scrapers/myChart/chart/messages/messageAttachment';\nexport type { DocumentFile } from '../../../scrapers/myChart/chart/documents/documentDownload';\nexport { resolveRecipient, resolveTopic } from './resolve';\nexport {\n  ACCOUNT_PARAM,\n  ACCOUNT_PARAM_NAMES,\n  MODE_PARAM,\n  MODEL_FACING_OUTPUT_MODE,\n  PATIENT_PARAM,\n  describeModeParam,\n  readAccountArg,\n  readOutputMode,\n} from './params';\nexport { acceptsAccountParam, isPublicCapability } from './public';\n\n/**\n * The registry, in listing order. The order of these arrays is the order every\n * client shows its tools in, so it is a presentation decision, not an\n * accident — see {@link capabilitiesByGroup}.\n */\nconst CAPABILITY_IMPLS: readonly CapabilityImpl[] = [\n  ...PROFILE_CAPABILITIES,\n  ...VISIT_CAPABILITIES,\n  ...RESULT_CAPABILITIES,\n  ...MESSAGE_CAPABILITIES,\n  ...BILLING_CAPABILITIES,\n  ...CARE_CAPABILITIES,\n  ...EMERGENCY_CONTACT_CAPABILITIES,\n  ...PRESCRIPTION_CAPABILITIES,\n  ...PATIENT_CAPABILITIES,\n  ...ACCOUNT_SETTINGS_CAPABILITIES,\n  ...ACCOUNT_SECURITY_CAPABILITIES,\n  ...PROVIDER_CAPABILITIES,\n  ...DIRECTORY_CAPABILITIES,\n  ...FEEDBACK_CAPABILITIES,\n];\n\n// ── Lookup helpers ──────────────────────────────────────────────────────────\n\n/**\n * Every capability, as clients see them: no `run`. Reaching the implementation\n * is a compile error outside this module — see `CapabilityImpl`, which\n * `./types` exports and this file deliberately does not re-export.\n */\nexport const CAPABILITIES: readonly Capability[] = CAPABILITY_IMPLS;\n\n/** Capability ids in registry order. */\nexport const CAPABILITY_IDS: readonly string[] = CAPABILITIES.map((c) => c.id);\n\n/** The read + write capabilities — everything a model may be offered as a tool. */\nexport const AGENT_CAPABILITIES: readonly Capability[] = CAPABILITIES.filter((c) => c.kind !== 'account');\n\n/**\n * The capabilities a listing shows first — everything not marked\n * {@link Capability.lessFrequentlyUsed}.\n *\n * Nothing filters on this to decide what it will *run*; it only decides what a\n * listing leads with. The CLI's `--help` prints these and points at\n * `--help --show-all` for the rest.\n */\nexport const COMMON_CAPABILITIES: readonly Capability[] = CAPABILITIES.filter((c) => !c.lessFrequentlyUsed);\n\n/** The remainder — real, supported, and rarely what anyone wants. */\nexport const LESS_FREQUENTLY_USED_CAPABILITIES: readonly Capability[] = CAPABILITIES.filter(\n  (c) => c.lessFrequentlyUsed,\n);\n\n\n/** Ids of the capabilities that mutate the patient's MyChart record. */\nexport const WRITE_CAPABILITY_IDS: readonly string[] = CAPABILITIES.filter((c) => c.kind === 'write').map((c) => c.id);\n\n/**\n * The account-free lookups — public directories and registries. Reads only:\n * an `accountFree` write also runs with no account (`isPublicCapability`), but\n * a caller offering this list as safe lookups must not be handed a send.\n */\nexport const PUBLIC_CAPABILITIES: readonly Capability[] = CAPABILITIES.filter((c) => c.kind === 'public');\n\nexport const PUBLIC_CAPABILITY_IDS: readonly string[] = PUBLIC_CAPABILITIES.map((c) => c.id);\n\nconst BY_NAME = new Map<string, CapabilityImpl>();\nfor (const capability of CAPABILITY_IMPLS) {\n  BY_NAME.set(capability.id, capability);\n  for (const alias of capability.aliases ?? []) BY_NAME.set(alias, capability);\n}\n\n/** Look a capability up by id or alias. Returns undefined for unknown names. */\nexport function getCapability(idOrAlias: string): Capability | undefined {\n  return BY_NAME.get(idOrAlias);\n}\n\n/**\n * The same lookup, but keeping the implementation handle. Module-private:\n * {@link executeCapability} is the only caller, because it is the only place\n * allowed to reach `run`.\n */\nfunction getCapabilityImpl(idOrAlias: string): CapabilityImpl | undefined {\n  return BY_NAME.get(idOrAlias);\n}\n\n/** Capabilities grouped in registry order, for help text and tool listings. */\nexport function capabilitiesByGroup(\n  capabilities: readonly Capability[] = CAPABILITIES,\n): Array<{ group: string; capabilities: Capability[] }> {\n  const groups: Array<{ group: string; capabilities: Capability[] }> = [];\n  for (const capability of capabilities) {\n    let bucket = groups.find((g) => g.group === capability.group);\n    if (!bucket) {\n      bucket = { group: capability.group, capabilities: [] };\n      groups.push(bucket);\n    }\n    bucket.capabilities.push(capability);\n  }\n  return groups;\n}\n\n/**\n * Capabilities exempt from the active-patient assertion below.\n *\n * The `Patients` group is exempt because asserting \"you must already be on\n * patient X\" in front of the very tools that list and change X would make them\n * unusable exactly when they are needed. `account`-kind capabilities are exempt\n * because they act on the MyChart login, not on any one patient's chart, and\n * `public`-kind ones because they have no chart and no session to assert\n * against — see `PublicCapabilityImpl` in `./types`.\n */\nfunction needsPatientAssertion(capability: Capability): boolean {\n  return (\n    capability.group !== 'Patients' && capability.kind !== 'account' && !isPublicCapability(capability)\n  );\n}\n\n/**\n * Run a capability by id (or alias) against a logged-in session.\n *\n * Every chart-touching call first asserts which patient MyChart is on, via\n * `assertProxyReadContext`. `args.patient` names the patient the call is\n * about; omitting it means the account holder — explicitly, not \"whoever the\n * session happens to be pointed at\", because sessions resume from cached\n * cookies and would otherwise inherit whichever patient an earlier invocation\n * left behind. A mismatch throws with the `switch_proxy_target` call that\n * fixes it; reading never switches on its own.\n *\n * Doing this here rather than in each client's dispatch is the point of the\n * registry: one guard, and no client can forget it. Discovery is cached per\n * session inside `proxyTools`, so the assertion costs one request per session\n * rather than one per call.\n *\n * Throws a listing-friendly error for unknown names.\n */\nexport async function executeCapability(\n  request: MyChartRequest | null,\n  idOrAlias: string,\n  args: CapabilityArgs = {},\n  ctx?: CapabilityContext,\n): Promise<unknown> {\n  const capability = getCapabilityImpl(idOrAlias);\n  if (!capability) {\n    throw new Error(`Unknown capability \"${idOrAlias}\". Known capabilities: ${CAPABILITY_IDS.join(', ')}`);\n  }\n  // Before anything else, including the patient assertion: a capability with no\n  // scraper has nothing to assert about and no session to spend on it. Compared\n  // against undefined rather than for truthiness, because that is what narrows\n  // the union — everything past this line has a `run`.\n  if (capability.notImplemented !== undefined) return capability.notImplemented;\n\n  let result: unknown;\n  if (capability.kind === 'public' || capability.accountFree === true) {\n    // Public capabilities are the reason `request` is nullable: they read the\n    // NPI Registry or Epic's instance directory, or send us a feature\n    // request — nothing an account owns. Their\n    // `run` cannot take a session, so there is nothing to assert and nothing\n    // that could read the wrong chart.\n    result = await capability.run(args);\n  } else {\n    // Everything else needs one. A client that lost track of which kind it was\n    // dispatching gets this rather than a `Cannot read properties of null`\n    // fifteen frames into a scraper.\n    if (!request) {\n      throw new Error(`\"${capability.id}\" needs a connected MyChart account; none was passed.`);\n    }\n    if (needsPatientAssertion(capability)) {\n      await assertProxyReadContext(request, optStr(args, 'patient'));\n    }\n    result = await capability.run(request, args, ctx);\n  }\n  if (!capability.processor) return result;\n  return renderOutput(capability.processor, result as RawResponse, readOutputMode(args));\n}\n\n/** Whether this capability accepts {@link MODE_PARAM} — i.e. it has a processor. */\nexport function acceptsModeParam(capability: Capability): boolean {\n  return getCapabilityImpl(capability.id)?.processor !== undefined;\n}\n\n/** Whether this capability accepts {@link PATIENT_PARAM} on top of its own. */\nexport function acceptsPatientParam(capability: Capability): boolean {\n  return needsPatientAssertion(capability);\n}\n\n/** One `name(param, param) — description` line per capability, for prompts and help. */\nexport function describeCapability(capability: Capability): string {\n  const params = capability.params.map((p) => (p.required ? p.name : `${p.name}?`)).join(', ');\n  return `${capability.id}(${params}) — ${capability.description}`;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * `--action <capability-id>` — the CLI's generic capability dispatch.\n *\n * Lives in its own module so the parity test and the CLI's own unit tests can\n * drive these functions directly, without dragging in `cli.ts`'s login flow\n * and argv parsing.\n *\n * This is the CLI's only dispatch surface: the default no-`--action` run walks\n * {@link FULL_SCRAPE_CAPABILITIES}, and every named action resolves to a\n * registry id (directly, or through {@link CLI_ACTION_ALIASES}). That is what\n * guarantees the CLI can do everything the Claude Desktop extension and the\n * mobile app can — every entry in `clients/shared/capabilities/` is a command here,\n * with no per-flag plumbing to remember — and that every read passes through\n * `executeCapability`'s active-patient guard.\n */\n\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport type { MyChartRequest } from '../../../scrapers/myChart/core/myChartRequest';\nimport type { ImagingResultsStandard } from '../../../scrapers/myChart/chart/labs/labResults';\nimport {\n  CAPABILITIES,\n  acceptsPatientParam,\n  capabilitiesByGroup,\n  COMMON_CAPABILITIES,\n  LESS_FREQUENTLY_USED_CAPABILITIES,\n  executeCapability,\n  MODE_PARAM,\n  acceptsModeParam,\n  getCapability,\n  type Capability,\n  type CapabilityContext,\n  type StudyImagePayload,\n  type FilePayload,\n} from '../../shared/capabilities';\nimport { convertCloToBitmap } from '../../../scrapers/myChart/clo-image-parser/clo_to_bitmap';\nimport { convertBitmapToJpg } from '../../../scrapers/myChart/clo-image-parser/exporters/to_jpg';\nimport { loadTotpSecret, saveTotpSecret } from './totpStore';\nimport { savePasskeyCredential } from './passkeyStore';\nimport { readLocalFile } from '../../shared/readLocalFile';\nimport type { PasskeyCredential } from '../../../scrapers/myChart/auth/softwareAuthenticator';\nimport { detailedMessage } from '../../../shared/detailedError';\n\n/**\n * Dashed action names the CLI accepted back when each had a hand-written\n * handler. Each now resolves to the registry capability that replaced it —\n * same fetch, same active-patient guard, JSON output. (`get-imaging` is the\n * one dashed action that is not a plain alias; see\n * {@link downloadAllImagingStudies}.)\n */\nexport const CLI_ACTION_ALIASES: Readonly<Record<string, string>> = {\n  'list-proxies': 'list_proxy_targets',\n  'get-thread': 'get_message_thread',\n  'delete-message': 'delete_message',\n  'request-refill': 'request_refill',\n  'hospital-info': 'get_hospital_info',\n};\n\n/** Resolve an `--action` value to a registry capability, dashed spellings included. */\nexport function resolveCliAction(action: string): Capability | undefined {\n  const capability = getCapability(CLI_ACTION_ALIASES[action] ?? action);\n  return capability?.modelOnly ? undefined : capability;\n}\n\nconst CLI_COMMON_CAPABILITIES = COMMON_CAPABILITIES.filter((c) => !c.modelOnly);\nconst CLI_LESS_FREQUENTLY_USED_CAPABILITIES = LESS_FREQUENTLY_USED_CAPABILITIES.filter((c) => !c.modelOnly);\n\n/**\n * What a bare `mychart-cli --host <hostname>` scrapes: every chart-reading\n * capability that can run without arguments. Derived from the registry, never\n * hand-listed — a read capability added there is scraped here the same day.\n * Excluded by the predicate itself: writes and account-security operations,\n * the `public` directory lookups (nothing to do with this chart), reads that\n * require an argument (per-visit notes, single threads), the media capability\n * (bytes belong behind an explicit `--action`), and the `Patients` group\n * (session introspection, not chart data).\n */\nexport const FULL_SCRAPE_CAPABILITIES: readonly Capability[] = CAPABILITIES.filter(\n  (capability) =>\n    capability.kind === 'read' &&\n    !capability.rendersMedia &&\n    !capability.returnsFile &&\n    acceptsPatientParam(capability) &&\n    capability.params.every((param) => !param.required),\n);\n\n/** How much of the registry a listing prints. */\nexport interface CapabilityListOptions {\n  /**\n   * Include the {@link Capability.lessFrequentlyUsed} entries too. Off by\n   * default: a full dump of the registry buries the handful of capabilities\n   * that are the reason to connect an account at all.\n   */\n  showAll?: boolean | undefined;\n}\n\nfunction renderCapabilityGroups(capabilities: readonly Capability[]): string[] {\n  const lines: string[] = [];\n  for (const { group, capabilities: inGroup } of capabilitiesByGroup(capabilities)) {\n    lines.push('', `  -- ${group} --`);\n    for (const capability of inGroup) {\n      // Anything that isn't a plain read gets a marker, so a glance down the\n      // list separates \"shows me something\" from \"changes something\". The\n      // public lookups read too — they just read something other than a chart,\n      // and a capability with no scraper changes nothing whatever its `kind`\n      // says about the write it will be once implemented.\n      const marker =\n        capability.kind === 'read' || capability.kind === 'public' || capability.notImplemented ? ' ' : '!';\n      lines.push(`   ${marker} ${capability.id}`);\n      lines.push(`       ${capability.description}`);\n      for (const param of capability.params) {\n        lines.push(\n          `       --arg ${param.name}=<${param.type}>${param.required ? ' (required)' : ''}  ${param.description}`,\n        );\n      }\n    }\n  }\n  return lines;\n}\n\n/**\n * The capabilities, grouped, with the parameters each takes.\n *\n * By default this is the commonly-used set only, with a pointer to\n * `--show-all` for the rest — the hidden entries stay every bit as runnable,\n * they just don't crowd out labs and medications in a 50-entry wall of text.\n * `--show-all` appends them under their own heading rather than mixing them\n * back in, so the shape of the default listing doesn't change under the reader.\n */\nexport function renderCapabilityList(options: CapabilityListOptions = {}): string {\n  const lines: string[] = [\n    '',\n    '='.repeat(60),\n    '  Capabilities',\n    '='.repeat(60),\n    '',\n    '  Run one with:  mychart-cli --host <hostname> --action <id> [--arg name=value ...]',\n    '  The Providers and Directory lookups are public — no --host and no credentials:',\n    '                 mychart-cli --action lookup_npi --arg npi=1234567893',\n    ...renderCapabilityGroups(CLI_COMMON_CAPABILITIES),\n  ];\n\n  if (options.showAll) {\n    lines.push(\n      '',\n      '='.repeat(60),\n      '  Less frequently used',\n      '='.repeat(60),\n      '',\n      '  Supported, and rarely what you want: endpoints most charts leave empty,',\n      \"  and settings for the account's own sign-in. Run them the same way.\",\n      ...renderCapabilityGroups(CLI_LESS_FREQUENTLY_USED_CAPABILITIES),\n    );\n  }\n\n  lines.push(\n    '',\n    \"  ! marks a command that changes something — a write to the chart, or the account's own sign-in settings.\",\n    '  Commands that produce images write JPEGs to ./imaging-output (override with --output <dir>).',\n  );\n  if (!options.showAll) {\n    lines.push(\n      `  ${CLI_LESS_FREQUENTLY_USED_CAPABILITIES.length} less-frequently-used capabilities are hidden. Show them with:`,\n      '      mychart-cli --list-capabilities --show-all',\n    );\n  }\n  lines.push('');\n  return lines.join('\\n');\n}\n\n/**\n * Per-account context for the capabilities that touch credentials. The\n * password comes from whatever resolved this session; the TOTP secret and the\n * passkey come from the CLI's own on-disk stores.\n */\nexport async function capabilityContext(\n  hostname: string,\n  password: string | undefined,\n): Promise<CapabilityContext> {\n  return {\n    password,\n    totpSecret: (await loadTotpSecret(hostname)) ?? undefined,\n    saveTotpSecret: (secret: string) => saveTotpSecret(hostname, secret),\n    savePasskey: async (serialized: string) => {\n      await savePasskeyCredential(hostname, JSON.parse(serialized) as PasskeyCredential);\n    },\n    readFile: readLocalFile,\n  };\n}\n\n/**\n * `--arg` values arrive as strings; numeric and boolean parameters are coerced\n * so a capability sees the type it declared.\n *\n * An unknown `--arg` is an error rather than a silent no-op — a typo'd\n * parameter name would otherwise look like the capability ignoring the\n * request, which is the worst way to find out you fetched the wrong note.\n */\nexport function coerceCapabilityArgs(\n  capability: Capability,\n  args: Record<string, string>,\n): Record<string, unknown> {\n  const known = new Map(capability.params.map((p) => [p.name, p]));\n  const out: Record<string, unknown> = {};\n\n  for (const [name, raw] of Object.entries(args)) {\n    const param = known.get(name);\n    if (!param) {\n      const accepted = capability.params.map((p) => p.name).join(', ') || '(none)';\n      throw new Error(`${capability.id} has no argument \"${name}\". It accepts: ${accepted}`);\n    }\n    if (param.type === 'number') {\n      const n = Number(raw);\n      if (!Number.isFinite(n)) throw new Error(`--arg ${name} expects a number, got \"${raw}\".`);\n      if (param.min !== undefined && n < param.min) throw new Error(`--arg ${name} must be at least ${param.min}.`);\n      if (param.max !== undefined && n > param.max) throw new Error(`--arg ${name} must be at most ${param.max}.`);\n      out[name] = n;\n    } else if (param.type === 'boolean') {\n      out[name] = raw !== 'false' && raw !== '0';\n    } else if (param.type === 'string[]') {\n      out[name] = raw.split(',').map((item) => item.trim()).filter(Boolean);\n    } else {\n      out[name] = raw;\n    }\n  }\n\n  for (const param of capability.params) {\n    if (param.required && out[param.name] === undefined) {\n      throw new Error(`${capability.id} requires --arg ${param.name}=<${param.type}> (${param.description})`);\n    }\n  }\n  return out;\n}\n\n/**\n * Raw image bytes would swamp a terminal; summarize them instead.\n *\n * JSON.stringify calls `toJSON()` *before* the replacer sees a value, so a\n * Node `Buffer` arrives here as `{type: 'Buffer', data: [...]}`, not as a\n * `Uint8Array` — both shapes must be caught or a single downloaded image\n * prints as tens of thousands of lines of byte values.\n */\nexport function jsonSafeReplacer(_key: string, value: unknown): unknown {\n  if (value instanceof Uint8Array) return `<${value.length} bytes>`;\n  // JSON.stringify invokes Buffer.toJSON() *before* the replacer sees the\n  // value, so a Buffer arrives here already converted to\n  // { type: 'Buffer', data: number[] } — catch that shape too.\n  if (\n    value !== null &&\n    typeof value === 'object' &&\n    (value as { type?: unknown }).type === 'Buffer' &&\n    Array.isArray((value as { data?: unknown }).data)\n  ) {\n    return `<${(value as { data: unknown[] }).data.length} bytes>`;\n  }\n  return value;\n}\n\n/** One JPEG written to disk by {@link writeStudyImages}. */\nexport interface WrittenStudyImage {\n  filePath: string;\n  seriesUID: string;\n  seriesDescription: string;\n  width: number;\n  height: number;\n  jpegBytes: number;\n}\n\n/**\n * The CLI's rendering of a `rendersMedia` capability: decode each raw CLO\n * image in the payload and write it to `outputDir` as a JPEG the user can\n * open in Finder. The registry's contract is that `run` returns raw CLO\n * bytes and each client encodes them its own way — this is the CLI's way,\n * kept separate from `runCapabilityAction` so it can be tested without a\n * MyChart session.\n */\nexport async function writeStudyImages(\n  payload: StudyImagePayload,\n  outputDir: string,\n  options: { saveClo?: boolean | undefined } = {},\n): Promise<WrittenStudyImage[]> {\n  await fs.promises.mkdir(outputDir, { recursive: true });\n  const safeStudy = (payload.studyName || 'study').replace(/[^a-zA-Z0-9_-]/g, '_').substring(0, 80);\n  const written: WrittenStudyImage[] = [];\n\n  for (const image of payload.images) {\n    if (!image.pixelData) continue;\n    const safeSeries = image.seriesDescription.replace(/[^a-zA-Z0-9_-]/g, '_');\n    const baseName = `${safeStudy}_${String(image.index).padStart(3, '0')}_${safeSeries}`;\n    const filePath = path.join(outputDir, `${baseName}.jpg`);\n    if (options.saveClo) {\n      await fs.promises.writeFile(path.join(outputDir, `${baseName}_pixel.clo`), image.pixelData);\n      if (image.wrapperData) {\n        await fs.promises.writeFile(path.join(outputDir, `${baseName}_wrapper.clo`), image.wrapperData);\n      }\n    }\n    const bitmap = convertCloToBitmap(\n      Buffer.from(image.pixelData),\n      image.wrapperData ? Buffer.from(image.wrapperData) : undefined,\n    );\n    const jpeg = await convertBitmapToJpg(bitmap, filePath);\n    written.push({\n      filePath,\n      seriesUID: image.seriesUID,\n      seriesDescription: image.seriesDescription,\n      width: bitmap.width,\n      height: bitmap.height,\n      jpegBytes: jpeg.length,\n    });\n  }\n  return written;\n}\n\n/**\n * The CLI's rendering of a `returnsFile` payload: the bytes written under\n * `outputDir` as `fileName` (the scraper already made it a safe basename), a\n * numeric suffix keeping a re-download from overwriting the first. Returns\n * the path written.\n */\nexport async function writeFilePayload(payload: FilePayload, outputDir: string): Promise<string> {\n  await fs.promises.mkdir(outputDir, { recursive: true });\n  const { name, ext } = path.parse(path.basename(payload.fileName));\n  for (let attempt = 1; attempt <= 100; attempt++) {\n    const filePath = path.join(outputDir, attempt === 1 ? `${name}${ext}` : `${name}-${attempt}${ext}`);\n    try {\n      await fs.promises.writeFile(filePath, payload.bytes, { flag: 'wx' });\n      return filePath;\n    } catch (err) {\n      if ((err as NodeJS.ErrnoException).code !== 'EEXIST') throw err;\n    }\n  }\n  throw new Error(`Could not write ${payload.fileName} under ${outputDir} — 100 copies already exist.`);\n}\n\n/**\n * Run one capability against one session and print its JSON result.\n *\n * Dispatch goes through `executeCapability`, never `capability.run` — that is\n * where the active-patient assertion lives. `patient` is folded in after\n * coercion, since `coerceCapabilityArgs` rejects any name a capability didn't\n * declare and this one is declared by the registry.\n */\nexport async function runCapabilityAction(\n  capability: Capability,\n  session: { hostname: string; request: MyChartRequest },\n  password: string | undefined,\n  args: Record<string, string>,\n  outputDir?: string,\n  patient?: string,\n  mode?: string,\n): Promise<boolean> {\n  console.log(`\\n${'='.repeat(60)}\\n  ${capability.title}: ${session.hostname}\\n${'='.repeat(60)}`);\n  try {\n    const ctx = await capabilityContext(session.hostname, password);\n    // `mode` is declared by the registry, not by each capability, so it is\n    // taken out before coercion (which rejects undeclared names) and folded in\n    // after. `--arg mode=` and `--mode` are the same thing; the former wins.\n    const { [MODE_PARAM.name]: argMode, ...ownArgs } = args;\n    const coerced = coerceCapabilityArgs(capability, ownArgs);\n    const requestedMode = argMode ?? mode;\n    if (requestedMode !== undefined && acceptsModeParam(capability)) coerced[MODE_PARAM.name] = requestedMode;\n    // `patient` is declared by the registry, not by each capability, so it is\n    // folded in AFTER coercion — coerceCapabilityArgs rejects any name the\n    // capability did not declare. An explicit argument wins: on\n    // switch_proxy_target, `patient` is the declared switch target, which the\n    // --patient assertion flag must not clobber.\n    if (patient !== undefined && coerced.patient === undefined) coerced.patient = patient;\n    // executeCapability, never capability.run: the active-patient assertion\n    // lives there, and it has to run for media capabilities too.\n    const result = await executeCapability(session.request, capability.id, coerced, ctx);\n\n    if (capability.returnsFile) {\n      // A file payload becomes exactly that: the file, under --output (default: the current directory).\n      const { bytes, ...rest } = result as FilePayload;\n      const filePath = await writeFilePayload(result as FilePayload, path.resolve(outputDir ?? process.cwd()));\n      console.log(JSON.stringify({ filePath, sizeBytes: bytes.length, ...rest }, jsonSafeReplacer, 2));\n      return true;\n    }\n\n    if (capability.rendersMedia) {\n      // Media payloads become files on disk, never bytes in the terminal.\n      const payload = result as StudyImagePayload;\n      const dir = path.resolve(outputDir ?? path.join(process.cwd(), 'imaging-output'));\n      const files = await writeStudyImages(payload, dir);\n      console.log(JSON.stringify({\n        studyName: payload.studyName,\n        totalImages: payload.totalImages,\n        outputDir: dir,\n        images: files,\n        errors: payload.errors,\n      }, jsonSafeReplacer, 2));\n      // Partial success still wrote files worth exploring; only a run that\n      // produced nothing but errors is a failure.\n      return files.length > 0 || payload.errors.length === 0;\n    }\n\n    // The markdown modes are text already; the data modes are printed as JSON.\n    console.log(typeof result === 'string' ? result : JSON.stringify(result, jsonSafeReplacer, 2));\n    return true;\n  } catch (err) {\n    console.log(`  ${detailedMessage(err)}`);\n    return false;\n  }\n}\n\n/**\n * `--action lookup_npi` and friends — a `public` capability, run once, with no\n * account and no session.\n *\n * Deliberately separate from {@link runCapabilityAction} rather than a branch\n * inside it: that function's whole signature is per-session (a hostname, the\n * password that opened it, the patient to assert), and none of it means\n * anything here. `cli.ts` calls this before it asks for a single credential.\n */\nexport async function runPublicCapabilityAction(\n  capability: Capability,\n  args: Record<string, string>,\n): Promise<boolean> {\n  console.log(`\\n${'='.repeat(60)}\\n  ${capability.title}\\n${'='.repeat(60)}`);\n  try {\n    const coerced = coerceCapabilityArgs(capability, args);\n    // executeCapability with no session: a public capability's `run` cannot\n    // take one, and this keeps \"no client reaches capability.run\" absolute.\n    const result = await executeCapability(null, capability.id, coerced);\n    console.log(typeof result === 'string' ? result : JSON.stringify(result, jsonSafeReplacer, 2));\n    return true;\n  } catch (err) {\n    console.log(`  ${detailedMessage(err)}`);\n    return false;\n  }\n}\n\n/**\n * `--action get-imaging` — every imaging study on the account, downloaded and\n * decoded to JPEGs under `<outputDir>/<hostname>/`, with the full result\n * metadata (reports included) saved as `all-imaging.json`.\n *\n * This is the one dashed action that is a composite rather than an alias: it\n * chains `get_imaging_results` into one `download_imaging_study` per study.\n * Both steps go through `executeCapability`, so the active-patient guard\n * applies to each — this used to be a 220-line hand-written handler that\n * fetched around the guard entirely.\n */\nexport async function downloadAllImagingStudies(\n  session: { hostname: string; request: MyChartRequest },\n  password: string | undefined,\n  // Every field here comes straight off a parsed CLI flag, so an unset flag is an\n  // explicit undefined rather than an absent key.\n  options: { outputDir?: string | undefined; patient?: string | undefined; saveClo?: boolean | undefined } = {},\n): Promise<boolean> {\n  console.log(`\\n${'='.repeat(60)}\\n  Imaging: ${session.hostname}\\n${'='.repeat(60)}`);\n  try {\n    const ctx = await capabilityContext(session.hostname, password);\n    const patientArg = options.patient !== undefined ? { patient: options.patient } : {};\n    // Pinned to `json` because this walks the processor's standard object\n    // (`{ orders }`); the default mode, or a --mode passed through later,\n    // must not hand it markdown or the raw response instead.\n    const { orders } = (await executeCapability(\n      session.request,\n      'get_imaging_results',\n      { ...patientArg, mode: 'json' },\n      ctx,\n    )) as ImagingResultsStandard;\n\n    const hostDir = path.resolve(\n      options.outputDir ?? path.join(process.cwd(), 'imaging-output'),\n      session.hostname,\n    );\n    await fs.promises.mkdir(hostDir, { recursive: true });\n    const metadataPath = path.join(hostDir, 'all-imaging.json');\n    await fs.promises.writeFile(metadataPath, JSON.stringify(orders, jsonSafeReplacer, 2));\n    console.log(`  ${orders.length} imaging result(s); metadata and reports in ${metadataPath}`);\n\n    let ok = true;\n    for (const study of orders) {\n      // No image_id means no viewable pictures — the report text is already\n      // in all-imaging.json, so there is nothing more to download.\n      if (!study.image_id) continue;\n      try {\n        const payload = (await executeCapability(\n          session.request,\n          'download_imaging_study',\n          { ...patientArg, image_id: study.image_id, study_name: study.orderName },\n          ctx,\n        )) as StudyImagePayload;\n        const files = await writeStudyImages(payload, hostDir, { saveClo: options.saveClo });\n        console.log(`  ${payload.studyName}: wrote ${files.length} of ${payload.totalImages} image(s)`);\n        for (const message of payload.errors) console.log(`    warning: ${message}`);\n        if (files.length === 0 && payload.errors.length > 0) ok = false;\n      } catch (err) {\n        console.log(`  ${study.orderName ?? 'study'}: ${detailedMessage(err)}`);\n        ok = false;\n      }\n    }\n    return ok;\n  } catch (err) {\n    console.log(`  ${detailedMessage(err)}`);\n    return false;\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Convert eUnity CLO (ClientOutlook) image files to raw grayscale bitmaps.\n *\n * CLO is a proprietary image format used by Mach7 Technologies' eUnity DICOM\n * viewer (formerly Client Outlook). It uses a 4-level Haar wavelet decomposition\n * with zstd compression for progressive image streaming. No public documentation\n * or open-source decoder exists — this was built entirely through reverse engineering.\n *\n * No dependency on sharp — pure TypeScript + fzstd + zlib.\n *\n * ## CLO Format\n *\n * Each image consists of two files:\n * - `*_pixel.clo` (CLOCLHAAR) — Haar wavelet pixel data\n * - `*_wrapper.clo` (CLOHEADERZ01) — AMF3-encoded DICOM metadata\n *\n * ### Pixel File Structure (CLOCLHAAR)\n *\n * 1. 96-byte header with image dimensions\n * 2. `35fa` marker records (16 bytes each) organizing the data:\n *    - Level 2: starts a new wavelet resolution group\n *    - Level 3: defines tile position (row/col in upper/lower 16 bits)\n *    - Level 5: points to zstd-compressed data blocks\n * 3. Zstd-compressed byte planes for each subband tile\n *\n * ### Wavelet Decomposition\n *\n * The image is decomposed into 4 Haar wavelet levels:\n * - **Group -1**: LL approximation (coarsest, ~1/16th resolution)\n * - **Group 0**: Coarsest detail subbands (LH, HL, HH)\n * - **Groups 1-3**: Progressively finer detail subbands (tiled at 256x256)\n *\n * Each subband is stored as two byte planes: LSB (block N) and MSB (block 65536+N),\n * combining to 16-bit values. Subbands: 0=LL, 1=LH (horizontal detail),\n * 2=HL (vertical detail), 3=HH (diagonal detail). Block 4 stores overflow bits.\n *\n * ### Reconstruction Pipeline\n *\n * 1. Parse pixel header → width, height\n * 2. Parse wrapper → DICOM metadata (photometric, VOI LUT, window center/width)\n * 3. Extract all tiles (scan for 35fa markers, decompress zstd blocks)\n * 4. Assemble LL coarsest approximation from MSB+LSB byte planes\n * 5. Progressive inverse Haar wavelet (lifting scheme) through each detail level\n * 6. Apply DICOM display pipeline (VOI LUT or window center/width)\n * 7. Normalize to 8-bit with optional MONOCHROME1 inversion\n *\n * ### Known Limitations\n *\n * - Detail coefficients are stored as unsigned magnitudes; the sign encoding is\n *   proprietary (implemented in eUnity's WASM/JS). Zigzag decoding recovers most\n *   signs but fine detail is slightly softer than native eUnity output.\n * - Text annotations (\"R\", \"DML\") from the wrapper are not rendered.\n * - Achieves 98%+ pixel-perfect match vs eUnity viewer output.\n */\n\nimport { readFileSync, existsSync } from \"fs\";\nimport { inflateSync } from \"zlib\";\nimport { decompress as zstdDecompress } from \"fzstd\";\nimport { Amf3Reader } from '../../../shared/amf3Reader';\nimport { logger } from '../../../shared/logger';\n\nconst CLOCLHAAR_MAGIC = Buffer.from(\"CLOCLHAAR###\");\nconst CLOHEADERZ01_MAGIC = Buffer.from(\"CLOHEADERZ01\");\nconst TILE_SIZE = 256;\n\n// ==================== Types ====================\n\nexport interface Bitmap {\n  pixels: Uint8Array;\n  width: number;\n  height: number;\n}\n\nexport interface Bitmap16 {\n  pixels: Uint16Array;\n  width: number;\n  height: number;\n}\n\n// ==================== Wrapper Parser ====================\n\nexport interface CloMetadata {\n  photometric?: string;\n  bits_stored?: number;\n  high_pixel_value?: number;\n  is_signed?: number;\n  window_center?: number;\n  window_width?: number;\n  presentation_lut_shape?: string;\n  rescale_slope?: number;\n  rescale_intercept?: number;\n  voi_lut?: Uint16Array;\n  voi_lut_start?: number;\n  voi_lut_bits?: number;\n}\n\nexport function parseWrapper(input: string | Buffer): CloMetadata {\n  const data = typeof input === 'string' ? readFileSync(input) : input;\n  if (Buffer.compare(data.subarray(0, 12), CLOHEADERZ01_MAGIC) !== 0) {\n    throw new Error(`Not a CLOHEADERZ01 file`);\n  }\n\n  let decompressed: Buffer;\n  try {\n    decompressed = inflateSync(data.subarray(16));\n  } catch (e) {\n    throw new Error(`Failed to decompress wrapper: ${e}`);\n  }\n\n  const metadata: CloMetadata = {};\n\n  // Decoded strictly (shared/amf3Reader.ts — the repo's one AMF3 reader): a\n  // wrapper this decoder can't fully parse costs the windowing metadata, and\n  // the text-based fallback below still recovers the photometric so the image\n  // renders.\n  try {\n    const result = new Amf3Reader(decompressed).readValue() as Record<string, any>;\n    if (result && typeof result === \"object\" && !Array.isArray(result)) {\n      if (typeof result.photometricInterpretation === \"string\") {\n        metadata.photometric = result.photometricInterpretation;\n      }\n      if (typeof result.bitsStored === \"number\" && result.bitsStored > 0) {\n        metadata.bits_stored = Math.floor(result.bitsStored);\n      }\n      if (typeof result.highPixelValue === \"number\" && result.highPixelValue > 0) {\n        metadata.high_pixel_value = Math.floor(result.highPixelValue);\n      }\n      if (typeof result.isSigned === \"number\") {\n        metadata.is_signed = Math.floor(result.isSigned);\n      }\n      // A window centre is signed — CT lung windows sit near -600, and dose\n      // report / scout frames commonly come through at -512. Only the width\n      // has to be positive.\n      if (typeof result.windowCenter === \"number\" && Number.isFinite(result.windowCenter)) {\n        metadata.window_center = result.windowCenter;\n      }\n      if (typeof result.windowWidth === \"number\" && result.windowWidth > 0) {\n        metadata.window_width = result.windowWidth;\n      }\n      if (typeof result.presentationLutShape === \"string\") {\n        metadata.presentation_lut_shape = result.presentationLutShape;\n      }\n      if (typeof result.rescaleSlope === \"number\") {\n        metadata.rescale_slope = result.rescaleSlope;\n      }\n      if (typeof result.rescaleIntercept === \"number\") {\n        metadata.rescale_intercept = result.rescaleIntercept;\n      }\n\n      // Extract VOI LUT\n      const voi = result.voiLut;\n      if (voi && Buffer.isBuffer(voi.lut)) {\n        const lutData = voi.lut as Buffer;\n        const elements = voi.elements || 0;\n        const start = voi.start || 0;\n        const bits = voi.bits || 16;\n        const isLE = voi.lutIsLittleEndian ?? 1;\n\n        if (elements > 0 && lutData.length >= elements * 2) {\n          const lut = new Uint16Array(elements);\n          for (let i = 0; i < elements; i++) {\n            lut[i] = isLE\n              ? lutData.readUInt16LE(i * 2)\n              : lutData.readUInt16BE(i * 2);\n          }\n          metadata.voi_lut = lut;\n          metadata.voi_lut_start = Math.floor(start);\n          metadata.voi_lut_bits = Math.floor(bits);\n        }\n      }\n    }\n  } catch (err) {\n    logger.warn(`[clo_to_bitmap] AMF3 parsing failed, falling back to text-based detection:`, (err as Error).message);\n  }\n\n  // Fallback: text-based detection\n  if (!metadata.photometric) {\n    const text = decompressed.toString(\"latin1\");\n    if (text.includes(\"MONOCHROME1\")) {\n      metadata.photometric = \"MONOCHROME1\";\n    } else if (text.includes(\"MONOCHROME2\")) {\n      metadata.photometric = \"MONOCHROME2\";\n    }\n  }\n\n  return metadata;\n}\n\n// ==================== Pixel File Parser ====================\n\nexport function parsePixelHeader(data: Buffer): { width: number; height: number } {\n  if (Buffer.compare(data.subarray(0, 12), CLOCLHAAR_MAGIC) !== 0) {\n    throw new Error(\"Not a CLOCLHAAR pixel file\");\n  }\n  if (data[16] !== 0x35 || data[17] !== 0xfa) {\n    throw new Error(\"Expected 35fa marker at offset 16\");\n  }\n  const width = data.readUInt32LE(24);\n  const height = data.readUInt32LE(28);\n  if (width === 0 || height === 0 || width > 65535 || height > 65535) {\n    throw new Error(`Invalid dimensions: ${width}x${height}`);\n  }\n  return { width, height };\n}\n\nexport type TileKey = string; // \"group,tileRow,tileCol,blockNum\"\nexport type TileMap = Map<TileKey, Uint8Array>;\n\nexport function tileKey(group: number, tileRow: number, tileCol: number, blockNum: number): TileKey {\n  return `${group},${tileRow},${tileCol},${blockNum}`;\n}\n\nexport function parseTileKey(key: TileKey): [number, number, number, number] {\n  // Keys are minted by tileKey() with exactly three commas; `!` for noUncheckedIndexedAccess.\n  const parts = key.split(\",\");\n  return [+parts[0]!, +parts[1]!, +parts[2]!, +parts[3]!];\n}\n\nexport function extractTiles(data: Buffer): TileMap {\n  const tiles: TileMap = new Map();\n  let pos = 96;\n  let groupIdx = -1;\n  let tileRow = 0;\n  let tileCol = 0;\n\n  while (pos < data.length - 4) {\n    if (data[pos] === 0x35 && data[pos + 1] === 0xfa) {\n      const level = data.readUInt16BE(pos + 2);\n      const val1 = data.readUInt32LE(pos + 4);\n      const val2 = data.readUInt32LE(pos + 8);\n\n      if (level === 2) {\n        groupIdx++;\n        tileRow = 0;\n        tileCol = 0;\n      } else if (level === 3) {\n        tileRow = (val2 >> 16) & 0xffff;\n        tileCol = val2 & 0xffff;\n      } else if (level === 5) {\n        const compressedSize = val1;\n        const blockNum = val2;\n        const dataPos = pos + 16;\n\n        if (\n          dataPos < data.length - 4 &&\n          data[dataPos] === 0x28 &&\n          data[dataPos + 1] === 0xb5 &&\n          data[dataPos + 2] === 0x2f &&\n          data[dataPos + 3] === 0xfd\n        ) {\n          try {\n            const compressed = new Uint8Array(\n              data.buffer,\n              data.byteOffset + dataPos,\n              compressedSize\n            );\n            const decompressed = zstdDecompress(compressed);\n            tiles.set(\n              tileKey(groupIdx, tileRow, tileCol, blockNum),\n              decompressed\n            );\n          } catch {\n            try {\n              const compressed = new Uint8Array(\n                data.buffer,\n                data.byteOffset + dataPos,\n                data.length - dataPos\n              );\n              const decompressed = zstdDecompress(compressed);\n              tiles.set(\n                tileKey(groupIdx, tileRow, tileCol, blockNum),\n                decompressed\n              );\n            } catch (err) {\n              logger.warn(`[clo_to_bitmap] Failed to decompress tile at group=${groupIdx} row=${tileRow} col=${tileCol} block=${blockNum}:`, (err as Error).message);\n            }\n          }\n          pos = dataPos + compressedSize;\n          continue;\n        }\n      }\n      pos += 16;\n    } else {\n      pos++;\n    }\n  }\n\n  return tiles;\n}\n\n// ==================== Wavelet Reconstruction ====================\n\nexport function computeWaveletLevels(width: number, height: number, numDetailGroups?: number): [number, number][] {\n  const levels: [number, number][] = [];\n  let cw = width;\n  let ch = height;\n  if (numDetailGroups !== undefined && numDetailGroups > 0) {\n    for (let i = 0; i < numDetailGroups; i++) {\n      cw = (cw + 1) >> 1;\n      ch = (ch + 1) >> 1;\n      levels.push([ch, cw]);\n    }\n  } else {\n    while (cw > TILE_SIZE || ch > TILE_SIZE) {\n      cw = (cw + 1) >> 1;\n      ch = (ch + 1) >> 1;\n      levels.push([ch, cw]);\n    }\n  }\n  levels.reverse();\n  return levels;\n}\n\nfunction assembleSubbandU16(\n  tiles: TileMap,\n  group: number,\n  lsbBlock: number,\n  msbBlock: number,\n  h: number,\n  w: number\n): Uint16Array {\n  // Index accesses are `!`-asserted: bounds are established by the loop structure; noUncheckedIndexedAccess.\n  const total = h * w;\n  const lk0 = tileKey(group, 0, 0, lsbBlock);\n  const mk0 = tileKey(group, 0, 0, msbBlock);\n\n  if (tiles.has(lk0) && tiles.has(mk0)) {\n    const lsbData = tiles.get(lk0)!;\n    const msbData = tiles.get(mk0)!;\n    if (lsbData.length >= total && msbData.length >= total) {\n      const result = new Uint16Array(total);\n      for (let i = 0; i < total; i++) {\n        result[i] = msbData[i]! * 256 + lsbData[i]!;\n      }\n      return result;\n    }\n  }\n\n  const result = new Uint16Array(total);\n  const tilePositions: [number, number][] = [];\n  for (const key of tiles.keys()) {\n    const [g, tr, tc, bn] = parseTileKey(key);\n    if (g === group && bn === lsbBlock) {\n      tilePositions.push([tr, tc]);\n    }\n  }\n  if (tilePositions.length === 0) return result;\n\n  const nTileRows = Math.max(...tilePositions.map(([tr]) => tr)) + 1;\n  const nTileCols = Math.max(...tilePositions.map(([, tc]) => tc)) + 1;\n\n  const stdTileW = nTileCols === 1 ? w : TILE_SIZE;\n  const firstData = tiles.get(lk0);\n  let stdTileH = firstData ? Math.floor(firstData.length / stdTileW) : TILE_SIZE;\n  stdTileH = Math.max(stdTileH, 1);\n\n  for (let tr = 0; tr < nTileRows; tr++) {\n    for (let tc = 0; tc < nTileCols; tc++) {\n      const lk = tileKey(group, tr, tc, lsbBlock);\n      const mk = tileKey(group, tr, tc, msbBlock);\n      if (!tiles.has(lk) || !tiles.has(mk)) continue;\n\n      const tw = (tc === nTileCols - 1) ? (w - tc * stdTileW) : stdTileW;\n      const lsbData = tiles.get(lk)!;\n      const msbData = tiles.get(mk)!;\n      let th = tw > 0 ? Math.floor(lsbData.length / tw) : 0;\n      th = Math.min(th, h - tr * stdTileH);\n\n      const expected = th * tw;\n      if (lsbData.length >= expected && msbData.length >= expected) {\n        const r0 = tr * stdTileH;\n        const c0 = tc * stdTileW;\n        for (let r = 0; r < th; r++) {\n          for (let c = 0; c < tw; c++) {\n            const srcIdx = r * tw + c;\n            const dstIdx = (r0 + r) * w + (c0 + c);\n            result[dstIdx] = msbData[srcIdx]! * 256 + lsbData[srcIdx]!;\n          }\n        }\n      }\n    }\n  }\n\n  return result;\n}\n\nfunction getSubbandBytes(\n  tiles: TileMap,\n  group: number,\n  blockNum: number,\n  h: number,\n  w: number\n): Uint8Array {\n  const total = h * w;\n  const key0 = tileKey(group, 0, 0, blockNum);\n\n  if (tiles.has(key0)) {\n    const data = tiles.get(key0)!;\n    if (data.length >= total) {\n      return data.subarray(0, total);\n    }\n  }\n\n  const result = new Uint8Array(total);\n  const tilePositions: [number, number][] = [];\n  for (const key of tiles.keys()) {\n    const [g, tr, tc, bn] = parseTileKey(key);\n    if (g === group && bn === blockNum) {\n      tilePositions.push([tr, tc]);\n    }\n  }\n  if (tilePositions.length === 0) return result;\n\n  const nTileRows = Math.max(...tilePositions.map(([tr]) => tr)) + 1;\n  const nTileCols = Math.max(...tilePositions.map(([, tc]) => tc)) + 1;\n\n  const stdTileW = nTileCols === 1 ? w : TILE_SIZE;\n  const firstData = tiles.get(key0);\n  let stdTileH = firstData ? Math.floor(firstData.length / stdTileW) : TILE_SIZE;\n  stdTileH = Math.max(stdTileH, 1);\n\n  for (let tr = 0; tr < nTileRows; tr++) {\n    for (let tc = 0; tc < nTileCols; tc++) {\n      const key = tileKey(group, tr, tc, blockNum);\n      if (!tiles.has(key)) continue;\n\n      const data = tiles.get(key)!;\n      const tw = (tc === nTileCols - 1) ? (w - tc * stdTileW) : stdTileW;\n      let th = tw > 0 ? Math.floor(data.length / tw) : 0;\n      th = Math.min(th, h - tr * stdTileH);\n\n      for (let r = 0; r < th; r++) {\n        const srcStart = r * tw;\n        const dstRow = tr * stdTileH + r;\n        if (dstRow >= h) break;\n        const dstIdx = dstRow * w + tc * stdTileW;\n        result.set(data.subarray(srcStart, srcStart + tw), dstIdx);\n      }\n    }\n  }\n\n  return result;\n}\n\nexport function zigzagDecode(unsigned: Int32Array): Int32Array {\n  // Index accesses are `!`-asserted: bounds are established by the loop structure; noUncheckedIndexedAccess.\n  const signed = new Int32Array(unsigned.length);\n  for (let i = 0; i < unsigned.length; i++) {\n    const n = unsigned[i]!;\n    signed[i] = n & 1 ? -((n + 1) >> 1) : n >> 1;\n  }\n  return signed;\n}\n\nfunction inverseHaarLevel(\n  ll: Uint16Array,\n  inH: number,\n  inW: number,\n  tiles: TileMap,\n  group: number,\n  outH: number,\n  outW: number\n): Uint16Array {\n  // Index accesses are `!`-asserted: bounds are established by the loop structure; noUncheckedIndexedAccess.\n  // Get detail subband raw bytes\n  const lhLow = getSubbandBytes(tiles, group, 1, inH, inW);\n  const lhHigh = getSubbandBytes(tiles, group, 65537, inH, inW);\n  const hlLow = getSubbandBytes(tiles, group, 2, inH, inW);\n  const hlHigh = getSubbandBytes(tiles, group, 65538, inH, inW);\n  const hhLow = getSubbandBytes(tiles, group, 3, inH, inW);\n  const hhHigh = getSubbandBytes(tiles, group, 65539, inH, inW);\n  const overflow = getSubbandBytes(tiles, group, 4, inH, inW);\n\n  const n = inH * inW;\n\n  // Combine byte planes and apply overflow bits, then zigzag decode\n  const lhU = new Int32Array(n);\n  const hlU = new Int32Array(n);\n  const hhU = new Int32Array(n);\n  for (let i = 0; i < n; i++) {\n    const ov = overflow[i]!;\n    lhU[i] = (lhHigh[i]! * 256 + lhLow[i]!) | ((ov & 1) << 16);\n    hlU[i] = (hlHigh[i]! * 256 + hlLow[i]!) | (((ov >> 1) & 1) << 16);\n    hhU[i] = (hhHigh[i]! * 256 + hhLow[i]!) | (((ov >> 2) & 3) << 16);\n  }\n\n  const lh = zigzagDecode(lhU);\n  const hl = zigzagDecode(hlU);\n  const hh = zigzagDecode(hhU);\n\n  // Lifting scheme inverse Haar wavelet transform\n  const out00 = new Int32Array(n); // even row, even col\n  const out01 = new Int32Array(n); // even row, odd col\n  const out10 = new Int32Array(n); // odd row, even col\n  const out11 = new Int32Array(n); // odd row, odd col\n\n  for (let i = 0; i < n; i++) {\n    const s = ll[i]!; // LL (unsigned 16-bit)\n    const a = hl[i]!; // vertical detail\n    const b = lh[i]!; // horizontal detail\n    const c = hh[i]!; // diagonal detail\n\n    const z = s - (a >> 1);\n    const lInit = b - (c >> 1);\n    const aa = z - (lInit >> 1);\n    out00[i] = aa;\n    out01[i] = lInit + aa;\n    const lUpd = lInit + c;\n    const nVal = a + z - (lUpd >> 1);\n    out10[i] = nVal;\n    out11[i] = lUpd + nVal;\n  }\n\n  // Interleave into output\n  const output = new Int32Array(outH * outW);\n  const actualH = Math.min(inH * 2, outH);\n  const actualW = Math.min(inW * 2, outW);\n  const nEvenRows = (actualH + 1) >> 1;\n  const nOddRows = actualH >> 1;\n  const nEvenCols = (actualW + 1) >> 1;\n  const nOddCols = actualW >> 1;\n\n  // out00 → even rows, even cols\n  for (let r = 0; r < nEvenRows; r++) {\n    for (let c = 0; c < nEvenCols; c++) {\n      output[(r * 2) * outW + (c * 2)] = out00[r * inW + c]!;\n    }\n  }\n  // out01 → even rows, odd cols\n  for (let r = 0; r < nEvenRows; r++) {\n    for (let c = 0; c < nOddCols; c++) {\n      output[(r * 2) * outW + (c * 2 + 1)] = out01[r * inW + c]!;\n    }\n  }\n  // out10 → odd rows, even cols\n  for (let r = 0; r < nOddRows; r++) {\n    for (let c = 0; c < nEvenCols; c++) {\n      output[(r * 2 + 1) * outW + (c * 2)] = out10[r * inW + c]!;\n    }\n  }\n  // out11 → odd rows, odd cols\n  for (let r = 0; r < nOddRows; r++) {\n    for (let c = 0; c < nOddCols; c++) {\n      output[(r * 2 + 1) * outW + (c * 2 + 1)] = out11[r * inW + c]!;\n    }\n  }\n\n  // Handle odd output dimensions\n  if (outH > actualH && actualH > 0) {\n    for (let c = 0; c < outW; c++) {\n      output[actualH * outW + c] = output[(actualH - 1) * outW + c]!;\n    }\n  }\n  if (outW > actualW && actualW > 0) {\n    for (let r = 0; r < outH; r++) {\n      output[r * outW + actualW] = output[r * outW + actualW - 1]!;\n    }\n  }\n\n  // Convert to uint16\n  const result = new Uint16Array(outH * outW);\n  for (let i = 0; i < outH * outW; i++) {\n    result[i] = output[i]! & 0xffff;\n  }\n  return result;\n}\n\nexport function applyVoiLut(img16: Uint16Array, h: number, w: number, metadata: CloMetadata): Uint16Array {\n  // Index accesses are `!`-asserted: bounds are established by the loop structure; noUncheckedIndexedAccess.\n  if (metadata.voi_lut) {\n    const start = metadata.voi_lut_start || 0;\n    const elements = metadata.voi_lut.length;\n    const result = new Uint16Array(h * w);\n    for (let i = 0; i < h * w; i++) {\n      let idx = img16[i]! - start;\n      if (idx < 0) idx = 0;\n      if (idx >= elements) idx = elements - 1;\n      result[i] = metadata.voi_lut[idx]!;\n    }\n    return result;\n  }\n\n  if (typeof metadata.window_center === \"number\" && metadata.window_width && metadata.window_width > 0) {\n    // The window is expressed in output units (Hounsfield for CT), but img16\n    // holds *stored* values. Run each pixel through the modality LUT first\n    // rather than comparing the two directly — with a typical intercept of\n    // -1024, a narrow soft-tissue window (centre 50, width 150) against raw\n    // stored values clips everything above 125, saturating the tissue to white\n    // and leaving only air with any gradation.\n    const slope = metadata.rescale_slope || 1;\n    const intercept = metadata.rescale_intercept ?? 0;\n    const lower = metadata.window_center - metadata.window_width / 2;\n    const upper = metadata.window_center + metadata.window_width / 2;\n    const bits = metadata.voi_lut_bits || 16;\n    const maxOut = (1 << bits) - 1;\n    const result = new Uint16Array(h * w);\n    for (let i = 0; i < h * w; i++) {\n      const value = img16[i]! * slope + intercept;\n      const v = (value - lower) / (upper - lower) * maxOut;\n      result[i] = Math.max(0, Math.min(maxOut, Math.round(v)));\n    }\n    return result;\n  }\n\n  return img16;\n}\n\nexport function to8bit(img: Uint16Array, invert: boolean): Uint8Array {\n  // Index accesses are `!`-asserted: bounds are established by the loop structure; noUncheckedIndexedAccess.\n  let maxVal = 1;\n  for (let i = 0; i < img.length; i++) {\n    if (img[i]! > maxVal) maxVal = img[i]!;\n  }\n  const result = new Uint8Array(img.length);\n  for (let i = 0; i < img.length; i++) {\n    let v = Math.round(img[i]! / maxVal * 255);\n    if (v < 0) v = 0;\n    if (v > 255) v = 255;\n    if (invert) v = 255 - v;\n    result[i] = v;\n  }\n  return result;\n}\n\nexport function to16bit(img: Uint16Array, invert: boolean): Uint16Array {\n  // Index accesses are `!`-asserted: bounds are established by the loop structure; noUncheckedIndexedAccess.\n  let maxVal = 1;\n  for (let i = 0; i < img.length; i++) {\n    if (img[i]! > maxVal) maxVal = img[i]!;\n  }\n  const result = new Uint16Array(img.length);\n  for (let i = 0; i < img.length; i++) {\n    let v = Math.round(img[i]! / maxVal * 65535);\n    if (v < 0) v = 0;\n    if (v > 65535) v = 65535;\n    if (invert) v = 65535 - v;\n    result[i] = v;\n  }\n  return result;\n}\n\nfunction reconstructImageCore(\n  tiles: TileMap,\n  width: number,\n  height: number,\n  metadata: CloMetadata\n): { img16: Uint16Array; invert: boolean } {\n  if (!tiles.has(tileKey(-1, 0, 0, 65536))) {\n    throw new Error(\"Missing LL approximation block\");\n  }\n\n  // Count actual detail groups from tile data (groups >= 0 are detail levels)\n  const detailGroups = new Set<number>();\n  for (const key of tiles.keys()) {\n    const [g] = parseTileKey(key);\n    if (g >= 0) detailGroups.add(g);\n  }\n  const numDetailGroups = detailGroups.size;\n\n  const levels = computeWaveletLevels(width, height, numDetailGroups);\n  if (levels.length === 0) {\n    throw new Error(\"Image too small for wavelet decomposition\");\n  }\n\n  // levels.length was checked non-zero above; `!` for noUncheckedIndexedAccess.\n  const [ch, cw] = levels[0]!;\n\n  // Assemble LL (coarsest approximation)\n  let current = assembleSubbandU16(tiles, -1, 0, 65536, ch, cw);\n  let curH = ch;\n  let curW = cw;\n\n  // Progressive inverse Haar\n  for (let lvlIdx = 0; lvlIdx < levels.length; lvlIdx++) {\n    const group = lvlIdx;\n    let nextH: number, nextW: number;\n    if (lvlIdx + 1 < levels.length) {\n      [nextH, nextW] = levels[lvlIdx + 1]!;\n    } else {\n      nextH = height;\n      nextW = width;\n    }\n\n    let hasDetail = false;\n    for (const key of tiles.keys()) {\n      const [g, , , bn] = parseTileKey(key);\n      if (g === group && bn === 1) {\n        hasDetail = true;\n        break;\n      }\n    }\n\n    if (!hasDetail) {\n      const upscaled = new Uint16Array(nextH * nextW);\n      for (let r = 0; r < nextH; r++) {\n        const srcR = Math.min(Math.floor(r * curH / nextH), curH - 1);\n        for (let c = 0; c < nextW; c++) {\n          const srcC = Math.min(Math.floor(c * curW / nextW), curW - 1);\n          upscaled[r * nextW + c] = current[srcR * curW + srcC]!;\n        }\n      }\n      current = upscaled;\n      curH = nextH;\n      curW = nextW;\n      continue;\n    }\n\n    current = inverseHaarLevel(current, curH, curW, tiles, group, nextH, nextW);\n    curH = nextH;\n    curW = nextW;\n  }\n\n  // Apply display pipeline\n  const invert = metadata.photometric === \"MONOCHROME1\";\n  const displayed = applyVoiLut(current, curH, curW, metadata);\n  return { img16: displayed, invert };\n}\n\nfunction reconstructImage(\n  tiles: TileMap,\n  width: number,\n  height: number,\n  metadata: CloMetadata\n): Uint8Array {\n  const { img16, invert } = reconstructImageCore(tiles, width, height, metadata);\n  return to8bit(img16, invert);\n}\n\nfunction reconstructImage16(\n  tiles: TileMap,\n  width: number,\n  height: number,\n  metadata: CloMetadata\n): Uint16Array {\n  const { img16, invert } = reconstructImageCore(tiles, width, height, metadata);\n  return to16bit(img16, invert);\n}\n\n// ==================== Public API ====================\n\nfunction parseInputs(\n  pixelInput: string | Buffer,\n  wrapperInput?: string | Buffer,\n): { data: Buffer; width: number; height: number; metadata: CloMetadata; tiles: TileMap } {\n  const data = typeof pixelInput === 'string' ? readFileSync(pixelInput) : pixelInput;\n  const header = parsePixelHeader(data);\n  const { width, height } = header;\n\n  let metadata: CloMetadata = { photometric: \"MONOCHROME1\" };\n  if (wrapperInput) {\n    const hasWrapper = typeof wrapperInput === 'string' ? existsSync(wrapperInput) : true;\n    if (hasWrapper) {\n      try {\n        metadata = parseWrapper(wrapperInput);\n        if (!metadata.photometric) {\n          metadata.photometric = \"MONOCHROME1\";\n        }\n      } catch (err) {\n        logger.warn(`[clo_to_bitmap] Failed to parse wrapper, using defaults:`, (err as Error).message);\n      }\n    }\n  }\n\n  const tiles = extractTiles(data);\n  if (tiles.size === 0) {\n    throw new Error(\"No data blocks found in CLO file\");\n  }\n\n  return { data, width, height, metadata, tiles };\n}\n\nexport function convertCloToBitmap(\n  pixelInput: string | Buffer,\n  wrapperInput?: string | Buffer,\n): Bitmap {\n  const { width, height, metadata, tiles } = parseInputs(pixelInput, wrapperInput);\n  const pixels = reconstructImage(tiles, width, height, metadata);\n  return { pixels, width, height };\n}\n\nexport function convertCloToBitmap16(\n  pixelInput: string | Buffer,\n  wrapperInput?: string | Buffer,\n): Bitmap16 {\n  const { width, height, metadata, tiles } = parseInputs(pixelInput, wrapperInput);\n  const pixels = reconstructImage16(tiles, width, height, metadata);\n  return { pixels, width, height };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Convert 16-bit grayscale bitmaps to JPEG using sharp.\n *\n * JPEG is inherently 8-bit, so 16-bit input is downsampled internally.\n * Uses quality 100 (maximum JPEG quality) by default.\n */\n\nimport sharp from \"sharp\";\nimport { writeFileSync } from \"fs\";\nimport type { Bitmap, Bitmap16 } from \"../clo_to_bitmap\";\nimport { encode16bitPng } from \"./png16\";\n\nexport interface JpgOptions {\n  /** JPEG quality 1-100. Default: 100 */\n  quality?: number;\n}\n\nexport async function convertBitmap16ToJpg(\n  bitmap: Bitmap16,\n  options?: JpgOptions,\n  outputPath?: string | null,\n): Promise<Buffer> {\n  const quality = options?.quality ?? 100;\n\n  const png = encode16bitPng(bitmap.pixels, bitmap.width, bitmap.height);\n  const buffer = await sharp(png).jpeg({ quality }).toBuffer();\n\n  if (outputPath) {\n    writeFileSync(outputPath, buffer);\n  }\n\n  return buffer;\n}\n\n/**\n * Encode an already-8-bit bitmap to JPEG at quality 100.\n *\n * Kept separate from `convertBitmap16ToJpg` rather than folded into it: this\n * path feeds sharp the 8-bit samples directly, where the 16-bit one goes via a\n * 16-bit PNG. Existing consumers depend on these exact bytes, so the two are\n * deliberately not unified.\n */\nexport async function convertBitmapToJpg(\n  bitmap: Bitmap,\n  outputPath?: string | null,\n): Promise<Buffer> {\n  const img = sharp(\n    Buffer.from(bitmap.pixels.buffer, bitmap.pixels.byteOffset, bitmap.pixels.byteLength),\n    { raw: { width: bitmap.width, height: bitmap.height, channels: 1 } },\n  );\n  const buffer = await img.jpeg({ quality: 100 }).toBuffer();\n  if (outputPath) writeFileSync(outputPath, buffer);\n  return buffer;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * `CapabilityContext.readFile` for the Node clients (CLI, Claude Desktop\n * extension): a message attachment is a path on this machine. Node only.\n */\n\nimport { promises as fs } from 'fs';\nimport * as os from 'os';\nimport * as path from 'path';\nimport type { FilePayload } from '../../scrapers/myChart/core/filePayload';\nimport { DetailedError } from '../../shared/detailedError';\n\n// Only the multipart part's Content-Type; MyChart judges a file by its\n// extension against GetComposeSettings, so an unlisted type still goes.\nconst MIME_TYPES: Record<string, string> = {\n  pdf: 'application/pdf',\n  jpg: 'image/jpeg',\n  jpeg: 'image/jpeg',\n  png: 'image/png',\n  gif: 'image/gif',\n  bmp: 'image/bmp',\n  tif: 'image/tiff',\n  tiff: 'image/tiff',\n  heic: 'image/heic',\n  txt: 'text/plain',\n  rtf: 'application/rtf',\n  doc: 'application/msword',\n  docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n  xls: 'application/vnd.ms-excel',\n  xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n  mp4: 'video/mp4',\n  mov: 'video/quicktime',\n  m4v: 'video/x-m4v',\n};\n\nexport async function readLocalFile(ref: string): Promise<FilePayload> {\n  const resolved = path.resolve(ref.startsWith('~/') ? path.join(os.homedir(), ref.slice(2)) : ref);\n  const stat = await fs.stat(resolved).catch(() => undefined);\n  if (!stat?.isFile()) throw new DetailedError('No file at the attachment path given.', `Attachment not found: ${resolved}`);\n  const fileName = path.basename(resolved);\n  const ext = path.extname(fileName).slice(1).toLowerCase();\n  return {\n    fileName,\n    mimeType: MIME_TYPES[ext] ?? 'application/octet-stream',\n    bytes: new Uint8Array(await fs.readFile(resolved)),\n  };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * `--help` — what the CLI is and every flag it takes, followed by the\n * capability listing.\n *\n * This lives outside `cli.ts` for the same reason `capabilityActions.ts` does:\n * a test asserts that the default listing leads with the useful capabilities\n * and holds the rest back, and rendering the text should cost nothing beyond\n * importing this module.\n */\n\nimport { renderCapabilityList, type CapabilityListOptions } from './capabilityActions';\n\n/**\n * The full help text.\n *\n * The flag sections are always shown in full — there are only a couple of dozen\n * flags and hiding one would just mean a reader failing to find it. What\n * `showAll` gates is the capability listing, which is fifty entries of wildly\n * uneven value; see `Capability.lessFrequentlyUsed`.\n */\nexport function renderCliHelp(options: CapabilityListOptions = {}): string {\n  const lines: string[] = [\n    '',\n    '  mychart-cli — read and act on an Epic MyChart account from the terminal.',\n    '',\n    '  Usage:',\n    '    mychart-cli --host <hostname>                         Scrape every category and print it',\n    '    mychart-cli --host <hostname> --action <capability>   Run one capability, print JSON',\n    '    mychart-cli --help [--show-all]                       This text',\n    '    mychart-cli --list-capabilities [--show-all]          Just the capability listing',\n    '    mychart-cli mcp                                       Run the MCP server over stdio (docs/mcp.md)',\n    '',\n    '  Signing in:',\n    '    --host <hostname>          MyChart hostname, e.g. mychart.example.org',\n    '    --user <u> --pass <p>      Credentials; omit to look them up in the browser password stores',\n    '    --read-login-from-browser  Force a browser password-store lookup (with or without --host)',\n    '    --2fa <code>               Supply the 2FA code instead of being prompted for it',\n    '    --no-cache                 Ignore the cached session cookies and log in fresh',\n    '',\n    \"  Whose chart (accounts with proxy access to a family member's record):\",\n    '    --patient \"<name>\"         Assert the record this command is about; defaults to the account holder',\n    '    --switch \"<name>\"          Change the record MyChart has active. The only command that does',\n    '    --action list-proxies      Every record this account can reach',\n    '',\n    '  Running a capability:',\n    '    --action <id>              Any id from the listing below',\n    '    --arg name=value           A capability argument; repeat for each one',\n    '',\n    '  Public information, no account or credentials needed:',\n    '    --action search_mycharts --arg query=uchealth        Find a health system\\'s MyChart hostname',\n    '    --action lookup_npi --arg npi=1234567893             A provider, by National Provider Identifier',\n    '    --action search_npi_registry --arg last_name=Hibbert --arg state=IL',\n    '    --host <hostname> --action hospital-info',\n    '                               The health system behind a MyChart hostname: support lines, the',\n    '                               bookable provider directory with clinic addresses, billing entities.',\n    '                               --arg specialties=a,b limits the crawl; --arg include_providers=false skips it',\n    '    --action list-mycharts [--output <file>]',\n    '                               Every MyChart in Epic\\'s directory as JSON, each login URL checked',\n    '                               and corrected where Epic\\'s points elsewhere. Takes a few minutes',\n    '',\n    '  The interactive actions, which prompt for whatever is not given as a flag:',\n    '    --action send-message [--subject <s>] [--message <m>]',\n    '    --action send-reply --conversation-id <id> [--message <m>]',\n    '    --action keep-alive-test   Hold the session open, pinging KeepAlive until Ctrl+C',\n    '',\n    '  Older dashed spellings, still accepted — each is an alias for a registry capability:',\n    '    --action get-imaging       Every imaging study, downloaded and decoded to JPEGs',\n    '    --action get-thread --conversation-id <id>       One conversation\\'s messages',\n    '    --action delete-message --conversation-id <id>   Delete a conversation from the inbox',\n    '    --action request-refill --arg medication_name=…  Refills (declared, not implemented)',\n    '    --action list-proxies                            Patient records this account can reach',\n    '',\n    \"  The account's own sign-in settings:\",\n    '    --set-up-passkey           Register a passkey and save it locally',\n    '    --use-passkey              Log in with the saved passkey instead of a password',\n    '    --list-passkeys            Passkeys registered on the account',\n    '    --delete-passkey           Remove every passkey from the account',\n    '    --set-up-totp              Turn on authenticator-app 2FA and save the secret',\n    '    --use-saved-totp           Generate the 2FA code from the saved secret',\n    '    --disable-totp             Turn authenticator-app 2FA back off',\n    '',\n    '  Other:',\n    '    --output <dir>             Where downloaded images go (default ./imaging-output)',\n    '    --mode <mode>              Output mode for reads: raw | standard | concise | json (default json)',\n    '    --local                    Talk HTTP instead of HTTPS (for a local fake-mychart)',\n    '    --save-clo                 Keep the raw CLO bytes alongside downloaded images',\n    '    --show-all                 Include the less-frequently-used capabilities in the listing',\n    renderCapabilityList(options),\n  ];\n  return lines.join('\\n');\n}\n","export var util;\n(function (util) {\n    util.assertEqual = (_) => { };\n    function assertIs(_arg) { }\n    util.assertIs = assertIs;\n    function assertNever(_x) {\n        throw new Error();\n    }\n    util.assertNever = assertNever;\n    util.arrayToEnum = (items) => {\n        const obj = {};\n        for (const item of items) {\n            obj[item] = item;\n        }\n        return obj;\n    };\n    util.getValidEnumValues = (obj) => {\n        const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n        const filtered = {};\n        for (const k of validKeys) {\n            filtered[k] = obj[k];\n        }\n        return util.objectValues(filtered);\n    };\n    util.objectValues = (obj) => {\n        return util.objectKeys(obj).map(function (e) {\n            return obj[e];\n        });\n    };\n    util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n        ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n        : (object) => {\n            const keys = [];\n            for (const key in object) {\n                if (Object.prototype.hasOwnProperty.call(object, key)) {\n                    keys.push(key);\n                }\n            }\n            return keys;\n        };\n    util.find = (arr, checker) => {\n        for (const item of arr) {\n            if (checker(item))\n                return item;\n        }\n        return undefined;\n    };\n    util.isInteger = typeof Number.isInteger === \"function\"\n        ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n        : (val) => typeof val === \"number\" && Number.isFinite(val) && Math.floor(val) === val;\n    function joinValues(array, separator = \" | \") {\n        return array.map((val) => (typeof val === \"string\" ? `'${val}'` : val)).join(separator);\n    }\n    util.joinValues = joinValues;\n    util.jsonStringifyReplacer = (_, value) => {\n        if (typeof value === \"bigint\") {\n            return value.toString();\n        }\n        return value;\n    };\n})(util || (util = {}));\nexport var objectUtil;\n(function (objectUtil) {\n    objectUtil.mergeShapes = (first, second) => {\n        return {\n            ...first,\n            ...second, // second overwrites first\n        };\n    };\n})(objectUtil || (objectUtil = {}));\nexport const ZodParsedType = util.arrayToEnum([\n    \"string\",\n    \"nan\",\n    \"number\",\n    \"integer\",\n    \"float\",\n    \"boolean\",\n    \"date\",\n    \"bigint\",\n    \"symbol\",\n    \"function\",\n    \"undefined\",\n    \"null\",\n    \"array\",\n    \"object\",\n    \"unknown\",\n    \"promise\",\n    \"void\",\n    \"never\",\n    \"map\",\n    \"set\",\n]);\nexport const getParsedType = (data) => {\n    const t = typeof data;\n    switch (t) {\n        case \"undefined\":\n            return ZodParsedType.undefined;\n        case \"string\":\n            return ZodParsedType.string;\n        case \"number\":\n            return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;\n        case \"boolean\":\n            return ZodParsedType.boolean;\n        case \"function\":\n            return ZodParsedType.function;\n        case \"bigint\":\n            return ZodParsedType.bigint;\n        case \"symbol\":\n            return ZodParsedType.symbol;\n        case \"object\":\n            if (Array.isArray(data)) {\n                return ZodParsedType.array;\n            }\n            if (data === null) {\n                return ZodParsedType.null;\n            }\n            if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n                return ZodParsedType.promise;\n            }\n            if (typeof Map !== \"undefined\" && data instanceof Map) {\n                return ZodParsedType.map;\n            }\n            if (typeof Set !== \"undefined\" && data instanceof Set) {\n                return ZodParsedType.set;\n            }\n            if (typeof Date !== \"undefined\" && data instanceof Date) {\n                return ZodParsedType.date;\n            }\n            return ZodParsedType.object;\n        default:\n            return ZodParsedType.unknown;\n    }\n};\n","import { util } from \"./helpers/util.js\";\nexport const ZodIssueCode = util.arrayToEnum([\n    \"invalid_type\",\n    \"invalid_literal\",\n    \"custom\",\n    \"invalid_union\",\n    \"invalid_union_discriminator\",\n    \"invalid_enum_value\",\n    \"unrecognized_keys\",\n    \"invalid_arguments\",\n    \"invalid_return_type\",\n    \"invalid_date\",\n    \"invalid_string\",\n    \"too_small\",\n    \"too_big\",\n    \"invalid_intersection_types\",\n    \"not_multiple_of\",\n    \"not_finite\",\n]);\nexport const quotelessJson = (obj) => {\n    const json = JSON.stringify(obj, null, 2);\n    return json.replace(/\"([^\"]+)\":/g, \"$1:\");\n};\nexport class ZodError extends Error {\n    get errors() {\n        return this.issues;\n    }\n    constructor(issues) {\n        super();\n        this.issues = [];\n        this.addIssue = (sub) => {\n            this.issues = [...this.issues, sub];\n        };\n        this.addIssues = (subs = []) => {\n            this.issues = [...this.issues, ...subs];\n        };\n        const actualProto = new.target.prototype;\n        if (Object.setPrototypeOf) {\n            // eslint-disable-next-line ban/ban\n            Object.setPrototypeOf(this, actualProto);\n        }\n        else {\n            this.__proto__ = actualProto;\n        }\n        this.name = \"ZodError\";\n        this.issues = issues;\n    }\n    format(_mapper) {\n        const mapper = _mapper ||\n            function (issue) {\n                return issue.message;\n            };\n        const fieldErrors = { _errors: [] };\n        const processError = (error) => {\n            for (const issue of error.issues) {\n                if (issue.code === \"invalid_union\") {\n                    issue.unionErrors.map(processError);\n                }\n                else if (issue.code === \"invalid_return_type\") {\n                    processError(issue.returnTypeError);\n                }\n                else if (issue.code === \"invalid_arguments\") {\n                    processError(issue.argumentsError);\n                }\n                else if (issue.path.length === 0) {\n                    fieldErrors._errors.push(mapper(issue));\n                }\n                else {\n                    let curr = fieldErrors;\n                    let i = 0;\n                    while (i < issue.path.length) {\n                        const el = issue.path[i];\n                        const terminal = i === issue.path.length - 1;\n                        // `_errors` is reserved by this legacy format, so merge a matching path segment into the current node instead of treating its array as a child.\n                        if (el === \"_errors\") {\n                            if (terminal)\n                                curr._errors.push(mapper(issue));\n                            i++;\n                            continue;\n                        }\n                        // Create `el` as an own data property. A segment naming an inherited member (\"toString\", \"constructor\") would otherwise read through to the prototype, and assigning \"__proto__\" would hit the setter and walk into Object.prototype.\n                        if (!Object.prototype.hasOwnProperty.call(curr, el)) {\n                            if (el === \"__proto__\") {\n                                Object.defineProperty(curr, el, {\n                                    value: { _errors: [] },\n                                    writable: true,\n                                    enumerable: true,\n                                    configurable: true,\n                                });\n                            }\n                            else {\n                                curr[el] = { _errors: [] };\n                            }\n                        }\n                        curr = curr[el];\n                        if (terminal) {\n                            curr._errors.push(mapper(issue));\n                        }\n                        i++;\n                    }\n                }\n            }\n        };\n        processError(this);\n        return fieldErrors;\n    }\n    static assert(value) {\n        if (!(value instanceof ZodError)) {\n            throw new Error(`Not a ZodError: ${value}`);\n        }\n    }\n    toString() {\n        return this.message;\n    }\n    get message() {\n        return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);\n    }\n    get isEmpty() {\n        return this.issues.length === 0;\n    }\n    flatten(mapper = (issue) => issue.message) {\n        const fieldErrors = Object.create(null);\n        const formErrors = [];\n        for (const sub of this.issues) {\n            if (sub.path.length > 0) {\n                const firstEl = sub.path[0];\n                fieldErrors[firstEl] = fieldErrors[firstEl] || [];\n                fieldErrors[firstEl].push(mapper(sub));\n            }\n            else {\n                formErrors.push(mapper(sub));\n            }\n        }\n        return { formErrors, fieldErrors };\n    }\n    get formErrors() {\n        return this.flatten();\n    }\n}\nZodError.create = (issues) => {\n    const error = new ZodError(issues);\n    return error;\n};\n","import { ZodIssueCode } from \"../ZodError.js\";\nimport { util, ZodParsedType } from \"../helpers/util.js\";\nconst errorMap = (issue, _ctx) => {\n    let message;\n    switch (issue.code) {\n        case ZodIssueCode.invalid_type:\n            if (issue.received === ZodParsedType.undefined) {\n                message = \"Required\";\n            }\n            else {\n                message = `Expected ${issue.expected}, received ${issue.received}`;\n            }\n            break;\n        case ZodIssueCode.invalid_literal:\n            message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;\n            break;\n        case ZodIssueCode.unrecognized_keys:\n            message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, \", \")}`;\n            break;\n        case ZodIssueCode.invalid_union:\n            message = `Invalid input`;\n            break;\n        case ZodIssueCode.invalid_union_discriminator:\n            message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;\n            break;\n        case ZodIssueCode.invalid_enum_value:\n            message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;\n            break;\n        case ZodIssueCode.invalid_arguments:\n            message = `Invalid function arguments`;\n            break;\n        case ZodIssueCode.invalid_return_type:\n            message = `Invalid function return type`;\n            break;\n        case ZodIssueCode.invalid_date:\n            message = `Invalid date`;\n            break;\n        case ZodIssueCode.invalid_string:\n            if (typeof issue.validation === \"object\") {\n                if (\"includes\" in issue.validation) {\n                    message = `Invalid input: must include \"${issue.validation.includes}\"`;\n                    if (typeof issue.validation.position === \"number\") {\n                        message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n                    }\n                }\n                else if (\"startsWith\" in issue.validation) {\n                    message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n                }\n                else if (\"endsWith\" in issue.validation) {\n                    message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n                }\n                else {\n                    util.assertNever(issue.validation);\n                }\n            }\n            else if (issue.validation !== \"regex\") {\n                message = `Invalid ${issue.validation}`;\n            }\n            else {\n                message = \"Invalid\";\n            }\n            break;\n        case ZodIssueCode.too_small:\n            if (issue.type === \"array\")\n                message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n            else if (issue.type === \"string\")\n                message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n            else if (issue.type === \"number\")\n                message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n            else if (issue.type === \"bigint\")\n                message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n            else if (issue.type === \"date\")\n                message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;\n            else\n                message = \"Invalid input\";\n            break;\n        case ZodIssueCode.too_big:\n            if (issue.type === \"array\")\n                message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n            else if (issue.type === \"string\")\n                message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n            else if (issue.type === \"number\")\n                message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n            else if (issue.type === \"bigint\")\n                message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n            else if (issue.type === \"date\")\n                message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;\n            else\n                message = \"Invalid input\";\n            break;\n        case ZodIssueCode.custom:\n            message = `Invalid input`;\n            break;\n        case ZodIssueCode.invalid_intersection_types:\n            message = `Intersection results could not be merged`;\n            break;\n        case ZodIssueCode.not_multiple_of:\n            message = `Number must be a multiple of ${issue.multipleOf}`;\n            break;\n        case ZodIssueCode.not_finite:\n            message = \"Number must be finite\";\n            break;\n        default:\n            message = _ctx.defaultError;\n            util.assertNever(issue);\n    }\n    return { message };\n};\nexport default errorMap;\n","import defaultErrorMap from \"./locales/en.js\";\nlet overrideErrorMap = defaultErrorMap;\nexport { defaultErrorMap };\nexport function setErrorMap(map) {\n    overrideErrorMap = map;\n}\nexport function getErrorMap() {\n    return overrideErrorMap;\n}\n","import { getErrorMap } from \"../errors.js\";\nimport defaultErrorMap from \"../locales/en.js\";\nexport const makeIssue = (params) => {\n    const { data, path, errorMaps, issueData } = params;\n    const fullPath = [...path, ...(issueData.path || [])];\n    const fullIssue = {\n        ...issueData,\n        path: fullPath,\n    };\n    if (issueData.message !== undefined) {\n        return {\n            ...issueData,\n            path: fullPath,\n            message: issueData.message,\n        };\n    }\n    let errorMessage = \"\";\n    const maps = errorMaps\n        .filter((m) => !!m)\n        .slice()\n        .reverse();\n    for (const map of maps) {\n        errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n    }\n    return {\n        ...issueData,\n        path: fullPath,\n        message: errorMessage,\n    };\n};\nexport const EMPTY_PATH = [];\nexport function addIssueToContext(ctx, issueData) {\n    const overrideMap = getErrorMap();\n    const issue = makeIssue({\n        issueData: issueData,\n        data: ctx.data,\n        path: ctx.path,\n        errorMaps: [\n            ctx.common.contextualErrorMap, // contextual error map is first priority\n            ctx.schemaErrorMap, // then schema-bound map if available\n            overrideMap, // then global override map\n            overrideMap === defaultErrorMap ? undefined : defaultErrorMap, // then global default map\n        ].filter((x) => !!x),\n    });\n    ctx.common.issues.push(issue);\n}\nexport class ParseStatus {\n    constructor() {\n        this.value = \"valid\";\n    }\n    dirty() {\n        if (this.value === \"valid\")\n            this.value = \"dirty\";\n    }\n    abort() {\n        if (this.value !== \"aborted\")\n            this.value = \"aborted\";\n    }\n    static mergeArray(status, results) {\n        const arrayValue = [];\n        for (const s of results) {\n            if (s.status === \"aborted\")\n                return INVALID;\n            if (s.status === \"dirty\")\n                status.dirty();\n            arrayValue.push(s.value);\n        }\n        return { status: status.value, value: arrayValue };\n    }\n    static async mergeObjectAsync(status, pairs) {\n        const syncPairs = [];\n        for (const pair of pairs) {\n            const key = await pair.key;\n            const value = await pair.value;\n            syncPairs.push({\n                key,\n                value,\n            });\n        }\n        return ParseStatus.mergeObjectSync(status, syncPairs);\n    }\n    static mergeObjectSync(status, pairs) {\n        const finalObject = {};\n        for (const pair of pairs) {\n            const { key, value } = pair;\n            if (key.status === \"aborted\")\n                return INVALID;\n            if (value.status === \"aborted\")\n                return INVALID;\n            if (key.status === \"dirty\")\n                status.dirty();\n            if (value.status === \"dirty\")\n                status.dirty();\n            if (key.value !== \"__proto__\" && (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n                finalObject[key.value] = value.value;\n            }\n        }\n        return { status: status.value, value: finalObject };\n    }\n}\nexport const INVALID = Object.freeze({\n    status: \"aborted\",\n});\nexport const DIRTY = (value) => ({ status: \"dirty\", value });\nexport const OK = (value) => ({ status: \"valid\", value });\nexport const isAborted = (x) => x.status === \"aborted\";\nexport const isDirty = (x) => x.status === \"dirty\";\nexport const isValid = (x) => x.status === \"valid\";\nexport const isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\n","export var errorUtil;\n(function (errorUtil) {\n    errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n    // biome-ignore lint/suspicious/noShadowRestrictedNames: renaming churns 31 v3 call sites\n    errorUtil.toString = (message) => typeof message === \"string\" ? message : message?.message;\n})(errorUtil || (errorUtil = {}));\n","import { ZodError, ZodIssueCode, } from \"./ZodError.js\";\nimport { defaultErrorMap, getErrorMap } from \"./errors.js\";\nimport { errorUtil } from \"./helpers/errorUtil.js\";\nimport { DIRTY, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue, } from \"./helpers/parseUtil.js\";\nimport { util, ZodParsedType, getParsedType } from \"./helpers/util.js\";\nclass ParseInputLazyPath {\n    constructor(parent, value, path, key) {\n        this._cachedPath = [];\n        this.parent = parent;\n        this.data = value;\n        this._path = path;\n        this._key = key;\n    }\n    get path() {\n        if (!this._cachedPath.length) {\n            if (Array.isArray(this._key)) {\n                this._cachedPath.push(...this._path, ...this._key);\n            }\n            else {\n                this._cachedPath.push(...this._path, this._key);\n            }\n        }\n        return this._cachedPath;\n    }\n}\nconst handleResult = (ctx, result) => {\n    if (isValid(result)) {\n        return { success: true, data: result.value };\n    }\n    else {\n        if (!ctx.common.issues.length) {\n            throw new Error(\"Validation failed but no issues detected.\");\n        }\n        return {\n            success: false,\n            get error() {\n                if (this._error)\n                    return this._error;\n                const error = new ZodError(ctx.common.issues);\n                this._error = error;\n                return this._error;\n            },\n        };\n    }\n};\nfunction processCreateParams(params) {\n    if (!params)\n        return {};\n    const { errorMap, invalid_type_error, required_error, description } = params;\n    if (errorMap && (invalid_type_error || required_error)) {\n        throw new Error(`Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);\n    }\n    if (errorMap)\n        return { errorMap: errorMap, description };\n    const customMap = (iss, ctx) => {\n        const { message } = params;\n        if (iss.code === \"invalid_enum_value\") {\n            return { message: message ?? ctx.defaultError };\n        }\n        if (typeof ctx.data === \"undefined\") {\n            return { message: message ?? required_error ?? ctx.defaultError };\n        }\n        if (iss.code !== \"invalid_type\")\n            return { message: ctx.defaultError };\n        return { message: message ?? invalid_type_error ?? ctx.defaultError };\n    };\n    return { errorMap: customMap, description };\n}\nexport class ZodType {\n    get description() {\n        return this._def.description;\n    }\n    _getType(input) {\n        return getParsedType(input.data);\n    }\n    _getOrReturnCtx(input, ctx) {\n        return (ctx || {\n            common: input.parent.common,\n            data: input.data,\n            parsedType: getParsedType(input.data),\n            schemaErrorMap: this._def.errorMap,\n            path: input.path,\n            parent: input.parent,\n        });\n    }\n    _processInputParams(input) {\n        return {\n            status: new ParseStatus(),\n            ctx: {\n                common: input.parent.common,\n                data: input.data,\n                parsedType: getParsedType(input.data),\n                schemaErrorMap: this._def.errorMap,\n                path: input.path,\n                parent: input.parent,\n            },\n        };\n    }\n    _parseSync(input) {\n        const result = this._parse(input);\n        if (isAsync(result)) {\n            throw new Error(\"Synchronous parse encountered promise.\");\n        }\n        return result;\n    }\n    _parseAsync(input) {\n        const result = this._parse(input);\n        return Promise.resolve(result);\n    }\n    parse(data, params) {\n        const result = this.safeParse(data, params);\n        if (result.success)\n            return result.data;\n        throw result.error;\n    }\n    safeParse(data, params) {\n        const ctx = {\n            common: {\n                issues: [],\n                async: params?.async ?? false,\n                contextualErrorMap: params?.errorMap,\n            },\n            path: params?.path || [],\n            schemaErrorMap: this._def.errorMap,\n            parent: null,\n            data,\n            parsedType: getParsedType(data),\n        };\n        const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n        return handleResult(ctx, result);\n    }\n    \"~validate\"(data) {\n        const ctx = {\n            common: {\n                issues: [],\n                async: !!this[\"~standard\"].async,\n            },\n            path: [],\n            schemaErrorMap: this._def.errorMap,\n            parent: null,\n            data,\n            parsedType: getParsedType(data),\n        };\n        if (!this[\"~standard\"].async) {\n            try {\n                const result = this._parseSync({ data, path: [], parent: ctx });\n                return isValid(result)\n                    ? {\n                        value: result.value,\n                    }\n                    : {\n                        issues: ctx.common.issues,\n                    };\n            }\n            catch (err) {\n                if (err?.message?.toLowerCase()?.includes(\"encountered\")) {\n                    this[\"~standard\"].async = true;\n                }\n                ctx.common = {\n                    issues: [],\n                    async: true,\n                };\n            }\n        }\n        return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result)\n            ? {\n                value: result.value,\n            }\n            : {\n                issues: ctx.common.issues,\n            });\n    }\n    async parseAsync(data, params) {\n        const result = await this.safeParseAsync(data, params);\n        if (result.success)\n            return result.data;\n        throw result.error;\n    }\n    async safeParseAsync(data, params) {\n        const ctx = {\n            common: {\n                issues: [],\n                contextualErrorMap: params?.errorMap,\n                async: true,\n            },\n            path: params?.path || [],\n            schemaErrorMap: this._def.errorMap,\n            parent: null,\n            data,\n            parsedType: getParsedType(data),\n        };\n        const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });\n        const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));\n        return handleResult(ctx, result);\n    }\n    refine(check, message) {\n        const getIssueProperties = (val) => {\n            if (typeof message === \"string\" || typeof message === \"undefined\") {\n                return { message };\n            }\n            else if (typeof message === \"function\") {\n                return message(val);\n            }\n            else {\n                return message;\n            }\n        };\n        return this._refinement((val, ctx) => {\n            const result = check(val);\n            const setError = () => ctx.addIssue({\n                code: ZodIssueCode.custom,\n                ...getIssueProperties(val),\n            });\n            if (typeof Promise !== \"undefined\" && result instanceof Promise) {\n                return result.then((data) => {\n                    if (!data) {\n                        setError();\n                        return false;\n                    }\n                    else {\n                        return true;\n                    }\n                });\n            }\n            if (!result) {\n                setError();\n                return false;\n            }\n            else {\n                return true;\n            }\n        });\n    }\n    refinement(check, refinementData) {\n        return this._refinement((val, ctx) => {\n            if (!check(val)) {\n                ctx.addIssue(typeof refinementData === \"function\" ? refinementData(val, ctx) : refinementData);\n                return false;\n            }\n            else {\n                return true;\n            }\n        });\n    }\n    _refinement(refinement) {\n        return new ZodEffects({\n            schema: this,\n            typeName: ZodFirstPartyTypeKind.ZodEffects,\n            effect: { type: \"refinement\", refinement },\n        });\n    }\n    superRefine(refinement) {\n        return this._refinement(refinement);\n    }\n    constructor(def) {\n        /** Alias of safeParseAsync */\n        this.spa = this.safeParseAsync;\n        this._def = def;\n        this.parse = this.parse.bind(this);\n        this.safeParse = this.safeParse.bind(this);\n        this.parseAsync = this.parseAsync.bind(this);\n        this.safeParseAsync = this.safeParseAsync.bind(this);\n        this.spa = this.spa.bind(this);\n        this.refine = this.refine.bind(this);\n        this.refinement = this.refinement.bind(this);\n        this.superRefine = this.superRefine.bind(this);\n        this.optional = this.optional.bind(this);\n        this.nullable = this.nullable.bind(this);\n        this.nullish = this.nullish.bind(this);\n        this.array = this.array.bind(this);\n        this.promise = this.promise.bind(this);\n        this.or = this.or.bind(this);\n        this.and = this.and.bind(this);\n        this.transform = this.transform.bind(this);\n        this.brand = this.brand.bind(this);\n        this.default = this.default.bind(this);\n        this.catch = this.catch.bind(this);\n        this.describe = this.describe.bind(this);\n        this.pipe = this.pipe.bind(this);\n        this.readonly = this.readonly.bind(this);\n        this.isNullable = this.isNullable.bind(this);\n        this.isOptional = this.isOptional.bind(this);\n        this[\"~standard\"] = {\n            version: 1,\n            vendor: \"zod\",\n            validate: (data) => this[\"~validate\"](data),\n        };\n    }\n    optional() {\n        return ZodOptional.create(this, this._def);\n    }\n    nullable() {\n        return ZodNullable.create(this, this._def);\n    }\n    nullish() {\n        return this.nullable().optional();\n    }\n    array() {\n        return ZodArray.create(this);\n    }\n    promise() {\n        return ZodPromise.create(this, this._def);\n    }\n    or(option) {\n        return ZodUnion.create([this, option], this._def);\n    }\n    and(incoming) {\n        return ZodIntersection.create(this, incoming, this._def);\n    }\n    transform(transform) {\n        return new ZodEffects({\n            ...processCreateParams(this._def),\n            schema: this,\n            typeName: ZodFirstPartyTypeKind.ZodEffects,\n            effect: { type: \"transform\", transform },\n        });\n    }\n    default(def) {\n        const defaultValueFunc = typeof def === \"function\" ? def : () => def;\n        return new ZodDefault({\n            ...processCreateParams(this._def),\n            innerType: this,\n            defaultValue: defaultValueFunc,\n            typeName: ZodFirstPartyTypeKind.ZodDefault,\n        });\n    }\n    brand() {\n        return new ZodBranded({\n            typeName: ZodFirstPartyTypeKind.ZodBranded,\n            type: this,\n            ...processCreateParams(this._def),\n        });\n    }\n    catch(def) {\n        const catchValueFunc = typeof def === \"function\" ? def : () => def;\n        return new ZodCatch({\n            ...processCreateParams(this._def),\n            innerType: this,\n            catchValue: catchValueFunc,\n            typeName: ZodFirstPartyTypeKind.ZodCatch,\n        });\n    }\n    describe(description) {\n        const This = this.constructor;\n        return new This({\n            ...this._def,\n            description,\n        });\n    }\n    pipe(target) {\n        return ZodPipeline.create(this, target);\n    }\n    readonly() {\n        return ZodReadonly.create(this);\n    }\n    isOptional() {\n        return this.safeParse(undefined).success;\n    }\n    isNullable() {\n        return this.safeParse(null).success;\n    }\n}\nconst cuidRegex = /^c[^\\s-]{8,}$/i;\nconst cuid2Regex = /^[0-9a-z]+$/;\nconst ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;\n// const uuidRegex =\n//   /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;\nconst uuidRegex = /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i;\nconst nanoidRegex = /^[a-z0-9_-]{21}$/i;\nconst jwtRegex = /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/;\nconst durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\n// from https://stackoverflow.com/a/46181/1550155\n// old version: too slow, didn't support unicode\n// const emailRegex = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i;\n//old email regex\n// const emailRegex = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@((?!-)([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{1,})[^-<>()[\\].,;:\\s@\"]$/i;\n// eslint-disable-next-line\n// const emailRegex =\n//   /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\])|(\\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\\.[A-Za-z]{2,})+))$/;\n// const emailRegex =\n//   /^[a-zA-Z0-9\\.\\!\\#\\$\\%\\&\\'\\*\\+\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// const emailRegex =\n//   /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])$/i;\nconst emailRegex = /^(?!\\.)(?!.*\\.\\.)([A-Z0-9_'+\\-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i;\n// const emailRegex =\n//   /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\\.[a-z0-9\\-]+)*$/i;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emojiRegex = `^[\\\\p{Extended_Pictographic}\\\\p{Emoji_Component}]+$`;\nlet emojiRegex;\n// faster, simpler, safer\nconst ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nconst ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/(3[0-2]|[12]?[0-9])$/;\n// const ipv6Regex =\n// /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;\nconst ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;\nconst ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nconst base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;\n// https://base64.guru/standards/base64url\nconst base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;\n// simple\n// const dateRegexSource = `\\\\d{4}-\\\\d{2}-\\\\d{2}`;\n// no leap year validation\n// const dateRegexSource = `\\\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\\\d|2\\\\d))`;\n// with leap year validation\nconst dateRegexSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nconst dateRegex = new RegExp(`^${dateRegexSource}$`);\nfunction timeRegexSource(args) {\n    let secondsRegexSource = `[0-5]\\\\d`;\n    if (args.precision) {\n        secondsRegexSource = `${secondsRegexSource}\\\\.\\\\d{${args.precision}}`;\n    }\n    else if (args.precision == null) {\n        secondsRegexSource = `${secondsRegexSource}(\\\\.\\\\d+)?`;\n    }\n    const secondsQuantifier = args.precision ? \"+\" : \"?\"; // require seconds if precision is nonzero\n    return `([01]\\\\d|2[0-3]):[0-5]\\\\d(:${secondsRegexSource})${secondsQuantifier}`;\n}\nfunction timeRegex(args) {\n    return new RegExp(`^${timeRegexSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nexport function datetimeRegex(args) {\n    let regex = `${dateRegexSource}T${timeRegexSource(args)}`;\n    const opts = [];\n    opts.push(args.local ? `Z?` : `Z`);\n    if (args.offset)\n        opts.push(`([+-]\\\\d{2}:?\\\\d{2})`);\n    regex = `${regex}(${opts.join(\"|\")})`;\n    return new RegExp(`^${regex}$`);\n}\nfunction isValidIP(ip, version) {\n    if ((version === \"v4\" || !version) && ipv4Regex.test(ip)) {\n        return true;\n    }\n    if ((version === \"v6\" || !version) && ipv6Regex.test(ip)) {\n        return true;\n    }\n    return false;\n}\nfunction isValidJWT(jwt, alg) {\n    if (!jwtRegex.test(jwt))\n        return false;\n    try {\n        const [header] = jwt.split(\".\");\n        if (!header)\n            return false;\n        // Convert base64url to base64\n        const base64 = header\n            .replace(/-/g, \"+\")\n            .replace(/_/g, \"/\")\n            .padEnd(header.length + ((4 - (header.length % 4)) % 4), \"=\");\n        // @ts-ignore\n        const decoded = JSON.parse(atob(base64));\n        if (typeof decoded !== \"object\" || decoded === null)\n            return false;\n        if (\"typ\" in decoded && decoded?.typ !== \"JWT\")\n            return false;\n        if (!decoded.alg)\n            return false;\n        if (alg && decoded.alg !== alg)\n            return false;\n        return true;\n    }\n    catch {\n        return false;\n    }\n}\nfunction isValidCidr(ip, version) {\n    if ((version === \"v4\" || !version) && ipv4CidrRegex.test(ip)) {\n        return true;\n    }\n    if ((version === \"v6\" || !version) && ipv6CidrRegex.test(ip)) {\n        return true;\n    }\n    return false;\n}\nexport class ZodString extends ZodType {\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = String(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.string) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.string,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const status = new ParseStatus();\n        let ctx = undefined;\n        for (const check of this._def.checks) {\n            if (check.kind === \"min\") {\n                if (input.data.length < check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        minimum: check.value,\n                        type: \"string\",\n                        inclusive: true,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                if (input.data.length > check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        maximum: check.value,\n                        type: \"string\",\n                        inclusive: true,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"length\") {\n                const tooBig = input.data.length > check.value;\n                const tooSmall = input.data.length < check.value;\n                if (tooBig || tooSmall) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    if (tooBig) {\n                        addIssueToContext(ctx, {\n                            code: ZodIssueCode.too_big,\n                            maximum: check.value,\n                            type: \"string\",\n                            inclusive: true,\n                            exact: true,\n                            message: check.message,\n                        });\n                    }\n                    else if (tooSmall) {\n                        addIssueToContext(ctx, {\n                            code: ZodIssueCode.too_small,\n                            minimum: check.value,\n                            type: \"string\",\n                            inclusive: true,\n                            exact: true,\n                            message: check.message,\n                        });\n                    }\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"email\") {\n                if (!emailRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"email\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"emoji\") {\n                if (!emojiRegex) {\n                    emojiRegex = new RegExp(_emojiRegex, \"u\");\n                }\n                if (!emojiRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"emoji\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"uuid\") {\n                if (!uuidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"uuid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"nanoid\") {\n                if (!nanoidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"nanoid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"cuid\") {\n                if (!cuidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"cuid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"cuid2\") {\n                if (!cuid2Regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"cuid2\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"ulid\") {\n                if (!ulidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"ulid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"url\") {\n                try {\n                    // @ts-ignore\n                    new URL(input.data);\n                }\n                catch {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"url\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"regex\") {\n                check.regex.lastIndex = 0;\n                const testResult = check.regex.test(input.data);\n                if (!testResult) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"regex\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"trim\") {\n                input.data = input.data.trim();\n            }\n            else if (check.kind === \"includes\") {\n                if (!input.data.includes(check.value, check.position)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: { includes: check.value, position: check.position },\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"toLowerCase\") {\n                input.data = input.data.toLowerCase();\n            }\n            else if (check.kind === \"toUpperCase\") {\n                input.data = input.data.toUpperCase();\n            }\n            else if (check.kind === \"startsWith\") {\n                if (!input.data.startsWith(check.value)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: { startsWith: check.value },\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"endsWith\") {\n                if (!input.data.endsWith(check.value)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: { endsWith: check.value },\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"datetime\") {\n                const regex = datetimeRegex(check);\n                if (!regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: \"datetime\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"date\") {\n                const regex = dateRegex;\n                if (!regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: \"date\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"time\") {\n                const regex = timeRegex(check);\n                if (!regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: \"time\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"duration\") {\n                if (!durationRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"duration\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"ip\") {\n                if (!isValidIP(input.data, check.version)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"ip\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"jwt\") {\n                if (!isValidJWT(input.data, check.alg)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"jwt\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"cidr\") {\n                if (!isValidCidr(input.data, check.version)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"cidr\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"base64\") {\n                if (!base64Regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"base64\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"base64url\") {\n                if (!base64urlRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"base64url\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return { status: status.value, value: input.data };\n    }\n    _regex(regex, validation, message) {\n        return this.refinement((data) => regex.test(data), {\n            validation,\n            code: ZodIssueCode.invalid_string,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    _addCheck(check) {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    email(message) {\n        return this._addCheck({ kind: \"email\", ...errorUtil.errToObj(message) });\n    }\n    url(message) {\n        return this._addCheck({ kind: \"url\", ...errorUtil.errToObj(message) });\n    }\n    emoji(message) {\n        return this._addCheck({ kind: \"emoji\", ...errorUtil.errToObj(message) });\n    }\n    uuid(message) {\n        return this._addCheck({ kind: \"uuid\", ...errorUtil.errToObj(message) });\n    }\n    nanoid(message) {\n        return this._addCheck({ kind: \"nanoid\", ...errorUtil.errToObj(message) });\n    }\n    cuid(message) {\n        return this._addCheck({ kind: \"cuid\", ...errorUtil.errToObj(message) });\n    }\n    cuid2(message) {\n        return this._addCheck({ kind: \"cuid2\", ...errorUtil.errToObj(message) });\n    }\n    ulid(message) {\n        return this._addCheck({ kind: \"ulid\", ...errorUtil.errToObj(message) });\n    }\n    base64(message) {\n        return this._addCheck({ kind: \"base64\", ...errorUtil.errToObj(message) });\n    }\n    base64url(message) {\n        // base64url encoding is a modification of base64 that can safely be used in URLs and filenames\n        return this._addCheck({\n            kind: \"base64url\",\n            ...errorUtil.errToObj(message),\n        });\n    }\n    jwt(options) {\n        return this._addCheck({ kind: \"jwt\", ...errorUtil.errToObj(options) });\n    }\n    ip(options) {\n        return this._addCheck({ kind: \"ip\", ...errorUtil.errToObj(options) });\n    }\n    cidr(options) {\n        return this._addCheck({ kind: \"cidr\", ...errorUtil.errToObj(options) });\n    }\n    datetime(options) {\n        if (typeof options === \"string\") {\n            return this._addCheck({\n                kind: \"datetime\",\n                precision: null,\n                offset: false,\n                local: false,\n                message: options,\n            });\n        }\n        return this._addCheck({\n            kind: \"datetime\",\n            precision: typeof options?.precision === \"undefined\" ? null : options?.precision,\n            offset: options?.offset ?? false,\n            local: options?.local ?? false,\n            ...errorUtil.errToObj(options?.message),\n        });\n    }\n    date(message) {\n        return this._addCheck({ kind: \"date\", message });\n    }\n    time(options) {\n        if (typeof options === \"string\") {\n            return this._addCheck({\n                kind: \"time\",\n                precision: null,\n                message: options,\n            });\n        }\n        return this._addCheck({\n            kind: \"time\",\n            precision: typeof options?.precision === \"undefined\" ? null : options?.precision,\n            ...errorUtil.errToObj(options?.message),\n        });\n    }\n    duration(message) {\n        return this._addCheck({ kind: \"duration\", ...errorUtil.errToObj(message) });\n    }\n    regex(regex, message) {\n        return this._addCheck({\n            kind: \"regex\",\n            regex: regex,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    includes(value, options) {\n        return this._addCheck({\n            kind: \"includes\",\n            value: value,\n            position: options?.position,\n            ...errorUtil.errToObj(options?.message),\n        });\n    }\n    startsWith(value, message) {\n        return this._addCheck({\n            kind: \"startsWith\",\n            value: value,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    endsWith(value, message) {\n        return this._addCheck({\n            kind: \"endsWith\",\n            value: value,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    min(minLength, message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: minLength,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    max(maxLength, message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: maxLength,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    length(len, message) {\n        return this._addCheck({\n            kind: \"length\",\n            value: len,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    /**\n     * Equivalent to `.min(1)`\n     */\n    nonempty(message) {\n        return this.min(1, errorUtil.errToObj(message));\n    }\n    trim() {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, { kind: \"trim\" }],\n        });\n    }\n    toLowerCase() {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, { kind: \"toLowerCase\" }],\n        });\n    }\n    toUpperCase() {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, { kind: \"toUpperCase\" }],\n        });\n    }\n    get isDatetime() {\n        return !!this._def.checks.find((ch) => ch.kind === \"datetime\");\n    }\n    get isDate() {\n        return !!this._def.checks.find((ch) => ch.kind === \"date\");\n    }\n    get isTime() {\n        return !!this._def.checks.find((ch) => ch.kind === \"time\");\n    }\n    get isDuration() {\n        return !!this._def.checks.find((ch) => ch.kind === \"duration\");\n    }\n    get isEmail() {\n        return !!this._def.checks.find((ch) => ch.kind === \"email\");\n    }\n    get isURL() {\n        return !!this._def.checks.find((ch) => ch.kind === \"url\");\n    }\n    get isEmoji() {\n        return !!this._def.checks.find((ch) => ch.kind === \"emoji\");\n    }\n    get isUUID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"uuid\");\n    }\n    get isNANOID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"nanoid\");\n    }\n    get isCUID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"cuid\");\n    }\n    get isCUID2() {\n        return !!this._def.checks.find((ch) => ch.kind === \"cuid2\");\n    }\n    get isULID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"ulid\");\n    }\n    get isIP() {\n        return !!this._def.checks.find((ch) => ch.kind === \"ip\");\n    }\n    get isCIDR() {\n        return !!this._def.checks.find((ch) => ch.kind === \"cidr\");\n    }\n    get isBase64() {\n        return !!this._def.checks.find((ch) => ch.kind === \"base64\");\n    }\n    get isBase64url() {\n        // base64url encoding is a modification of base64 that can safely be used in URLs and filenames\n        return !!this._def.checks.find((ch) => ch.kind === \"base64url\");\n    }\n    get minLength() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min;\n    }\n    get maxLength() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max;\n    }\n}\nZodString.create = (params) => {\n    return new ZodString({\n        checks: [],\n        typeName: ZodFirstPartyTypeKind.ZodString,\n        coerce: params?.coerce ?? false,\n        ...processCreateParams(params),\n    });\n};\n// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034\nfunction floatSafeRemainder(val, step) {\n    const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n    const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n    const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n    const valInt = Number.parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n    const stepInt = Number.parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n    return (valInt % stepInt) / 10 ** decCount;\n}\nexport class ZodNumber extends ZodType {\n    constructor() {\n        super(...arguments);\n        this.min = this.gte;\n        this.max = this.lte;\n        this.step = this.multipleOf;\n    }\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = Number(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.number) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.number,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        let ctx = undefined;\n        const status = new ParseStatus();\n        for (const check of this._def.checks) {\n            if (check.kind === \"int\") {\n                if (!util.isInteger(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_type,\n                        expected: \"integer\",\n                        received: \"float\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"min\") {\n                const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;\n                if (tooSmall) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        minimum: check.value,\n                        type: \"number\",\n                        inclusive: check.inclusive,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;\n                if (tooBig) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        maximum: check.value,\n                        type: \"number\",\n                        inclusive: check.inclusive,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"multipleOf\") {\n                if (floatSafeRemainder(input.data, check.value) !== 0) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.not_multiple_of,\n                        multipleOf: check.value,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"finite\") {\n                if (!Number.isFinite(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.not_finite,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return { status: status.value, value: input.data };\n    }\n    gte(value, message) {\n        return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n    }\n    gt(value, message) {\n        return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n    }\n    lte(value, message) {\n        return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n    }\n    lt(value, message) {\n        return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n    }\n    setLimit(kind, value, inclusive, message) {\n        return new ZodNumber({\n            ...this._def,\n            checks: [\n                ...this._def.checks,\n                {\n                    kind,\n                    value,\n                    inclusive,\n                    message: errorUtil.toString(message),\n                },\n            ],\n        });\n    }\n    _addCheck(check) {\n        return new ZodNumber({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    int(message) {\n        return this._addCheck({\n            kind: \"int\",\n            message: errorUtil.toString(message),\n        });\n    }\n    positive(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: 0,\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    negative(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: 0,\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonpositive(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: 0,\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonnegative(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: 0,\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    multipleOf(value, message) {\n        return this._addCheck({\n            kind: \"multipleOf\",\n            value: value,\n            message: errorUtil.toString(message),\n        });\n    }\n    finite(message) {\n        return this._addCheck({\n            kind: \"finite\",\n            message: errorUtil.toString(message),\n        });\n    }\n    safe(message) {\n        return this._addCheck({\n            kind: \"min\",\n            inclusive: true,\n            value: Number.MIN_SAFE_INTEGER,\n            message: errorUtil.toString(message),\n        })._addCheck({\n            kind: \"max\",\n            inclusive: true,\n            value: Number.MAX_SAFE_INTEGER,\n            message: errorUtil.toString(message),\n        });\n    }\n    get minValue() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min;\n    }\n    get maxValue() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max;\n    }\n    get isInt() {\n        return !!this._def.checks.find((ch) => ch.kind === \"int\" || (ch.kind === \"multipleOf\" && util.isInteger(ch.value)));\n    }\n    get isFinite() {\n        let max = null;\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"finite\" || ch.kind === \"int\" || ch.kind === \"multipleOf\") {\n                return true;\n            }\n            else if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n            else if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return Number.isFinite(min) && Number.isFinite(max);\n    }\n}\nZodNumber.create = (params) => {\n    return new ZodNumber({\n        checks: [],\n        typeName: ZodFirstPartyTypeKind.ZodNumber,\n        coerce: params?.coerce || false,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodBigInt extends ZodType {\n    constructor() {\n        super(...arguments);\n        this.min = this.gte;\n        this.max = this.lte;\n    }\n    _parse(input) {\n        if (this._def.coerce) {\n            try {\n                input.data = BigInt(input.data);\n            }\n            catch {\n                return this._getInvalidInput(input);\n            }\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.bigint) {\n            return this._getInvalidInput(input);\n        }\n        let ctx = undefined;\n        const status = new ParseStatus();\n        for (const check of this._def.checks) {\n            if (check.kind === \"min\") {\n                const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;\n                if (tooSmall) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        type: \"bigint\",\n                        minimum: check.value,\n                        inclusive: check.inclusive,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;\n                if (tooBig) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        type: \"bigint\",\n                        maximum: check.value,\n                        inclusive: check.inclusive,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"multipleOf\") {\n                if (input.data % check.value !== BigInt(0)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.not_multiple_of,\n                        multipleOf: check.value,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return { status: status.value, value: input.data };\n    }\n    _getInvalidInput(input) {\n        const ctx = this._getOrReturnCtx(input);\n        addIssueToContext(ctx, {\n            code: ZodIssueCode.invalid_type,\n            expected: ZodParsedType.bigint,\n            received: ctx.parsedType,\n        });\n        return INVALID;\n    }\n    gte(value, message) {\n        return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n    }\n    gt(value, message) {\n        return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n    }\n    lte(value, message) {\n        return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n    }\n    lt(value, message) {\n        return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n    }\n    setLimit(kind, value, inclusive, message) {\n        return new ZodBigInt({\n            ...this._def,\n            checks: [\n                ...this._def.checks,\n                {\n                    kind,\n                    value,\n                    inclusive,\n                    message: errorUtil.toString(message),\n                },\n            ],\n        });\n    }\n    _addCheck(check) {\n        return new ZodBigInt({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    positive(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: BigInt(0),\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    negative(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: BigInt(0),\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonpositive(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: BigInt(0),\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonnegative(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: BigInt(0),\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    multipleOf(value, message) {\n        return this._addCheck({\n            kind: \"multipleOf\",\n            value,\n            message: errorUtil.toString(message),\n        });\n    }\n    get minValue() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min;\n    }\n    get maxValue() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max;\n    }\n}\nZodBigInt.create = (params) => {\n    return new ZodBigInt({\n        checks: [],\n        typeName: ZodFirstPartyTypeKind.ZodBigInt,\n        coerce: params?.coerce ?? false,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodBoolean extends ZodType {\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = Boolean(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.boolean) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.boolean,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodBoolean.create = (params) => {\n    return new ZodBoolean({\n        typeName: ZodFirstPartyTypeKind.ZodBoolean,\n        coerce: params?.coerce || false,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodDate extends ZodType {\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = new Date(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.date) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.date,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        if (Number.isNaN(input.data.getTime())) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_date,\n            });\n            return INVALID;\n        }\n        const status = new ParseStatus();\n        let ctx = undefined;\n        for (const check of this._def.checks) {\n            if (check.kind === \"min\") {\n                if (input.data.getTime() < check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        message: check.message,\n                        inclusive: true,\n                        exact: false,\n                        minimum: check.value,\n                        type: \"date\",\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                if (input.data.getTime() > check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        message: check.message,\n                        inclusive: true,\n                        exact: false,\n                        maximum: check.value,\n                        type: \"date\",\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return {\n            status: status.value,\n            value: new Date(input.data.getTime()),\n        };\n    }\n    _addCheck(check) {\n        return new ZodDate({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    min(minDate, message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: minDate.getTime(),\n            message: errorUtil.toString(message),\n        });\n    }\n    max(maxDate, message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: maxDate.getTime(),\n            message: errorUtil.toString(message),\n        });\n    }\n    get minDate() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min != null ? new Date(min) : null;\n    }\n    get maxDate() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max != null ? new Date(max) : null;\n    }\n}\nZodDate.create = (params) => {\n    return new ZodDate({\n        checks: [],\n        coerce: params?.coerce || false,\n        typeName: ZodFirstPartyTypeKind.ZodDate,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodSymbol extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.symbol) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.symbol,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodSymbol.create = (params) => {\n    return new ZodSymbol({\n        typeName: ZodFirstPartyTypeKind.ZodSymbol,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodUndefined extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.undefined) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.undefined,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodUndefined.create = (params) => {\n    return new ZodUndefined({\n        typeName: ZodFirstPartyTypeKind.ZodUndefined,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNull extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.null) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.null,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodNull.create = (params) => {\n    return new ZodNull({\n        typeName: ZodFirstPartyTypeKind.ZodNull,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodAny extends ZodType {\n    constructor() {\n        super(...arguments);\n        // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.\n        this._any = true;\n    }\n    _parse(input) {\n        return OK(input.data);\n    }\n}\nZodAny.create = (params) => {\n    return new ZodAny({\n        typeName: ZodFirstPartyTypeKind.ZodAny,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodUnknown extends ZodType {\n    constructor() {\n        super(...arguments);\n        // required\n        this._unknown = true;\n    }\n    _parse(input) {\n        return OK(input.data);\n    }\n}\nZodUnknown.create = (params) => {\n    return new ZodUnknown({\n        typeName: ZodFirstPartyTypeKind.ZodUnknown,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNever extends ZodType {\n    _parse(input) {\n        const ctx = this._getOrReturnCtx(input);\n        addIssueToContext(ctx, {\n            code: ZodIssueCode.invalid_type,\n            expected: ZodParsedType.never,\n            received: ctx.parsedType,\n        });\n        return INVALID;\n    }\n}\nZodNever.create = (params) => {\n    return new ZodNever({\n        typeName: ZodFirstPartyTypeKind.ZodNever,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodVoid extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.undefined) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.void,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodVoid.create = (params) => {\n    return new ZodVoid({\n        typeName: ZodFirstPartyTypeKind.ZodVoid,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodArray extends ZodType {\n    _parse(input) {\n        const { ctx, status } = this._processInputParams(input);\n        const def = this._def;\n        if (ctx.parsedType !== ZodParsedType.array) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.array,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        if (def.exactLength !== null) {\n            const tooBig = ctx.data.length > def.exactLength.value;\n            const tooSmall = ctx.data.length < def.exactLength.value;\n            if (tooBig || tooSmall) {\n                addIssueToContext(ctx, {\n                    code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,\n                    minimum: (tooSmall ? def.exactLength.value : undefined),\n                    maximum: (tooBig ? def.exactLength.value : undefined),\n                    type: \"array\",\n                    inclusive: true,\n                    exact: true,\n                    message: def.exactLength.message,\n                });\n                status.dirty();\n            }\n        }\n        if (def.minLength !== null) {\n            if (ctx.data.length < def.minLength.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_small,\n                    minimum: def.minLength.value,\n                    type: \"array\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.minLength.message,\n                });\n                status.dirty();\n            }\n        }\n        if (def.maxLength !== null) {\n            if (ctx.data.length > def.maxLength.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_big,\n                    maximum: def.maxLength.value,\n                    type: \"array\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.maxLength.message,\n                });\n                status.dirty();\n            }\n        }\n        if (ctx.common.async) {\n            return Promise.all([...ctx.data].map((item, i) => {\n                return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n            })).then((result) => {\n                return ParseStatus.mergeArray(status, result);\n            });\n        }\n        const result = [...ctx.data].map((item, i) => {\n            return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n        });\n        return ParseStatus.mergeArray(status, result);\n    }\n    get element() {\n        return this._def.type;\n    }\n    min(minLength, message) {\n        return new ZodArray({\n            ...this._def,\n            minLength: { value: minLength, message: errorUtil.toString(message) },\n        });\n    }\n    max(maxLength, message) {\n        return new ZodArray({\n            ...this._def,\n            maxLength: { value: maxLength, message: errorUtil.toString(message) },\n        });\n    }\n    length(len, message) {\n        return new ZodArray({\n            ...this._def,\n            exactLength: { value: len, message: errorUtil.toString(message) },\n        });\n    }\n    nonempty(message) {\n        return this.min(1, message);\n    }\n}\nZodArray.create = (schema, params) => {\n    return new ZodArray({\n        type: schema,\n        minLength: null,\n        maxLength: null,\n        exactLength: null,\n        typeName: ZodFirstPartyTypeKind.ZodArray,\n        ...processCreateParams(params),\n    });\n};\nfunction deepPartialify(schema) {\n    if (schema instanceof ZodObject) {\n        const newShape = {};\n        for (const key in schema.shape) {\n            const fieldSchema = schema.shape[key];\n            newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));\n        }\n        return new ZodObject({\n            ...schema._def,\n            shape: () => newShape,\n        });\n    }\n    else if (schema instanceof ZodArray) {\n        return new ZodArray({\n            ...schema._def,\n            type: deepPartialify(schema.element),\n        });\n    }\n    else if (schema instanceof ZodOptional) {\n        return ZodOptional.create(deepPartialify(schema.unwrap()));\n    }\n    else if (schema instanceof ZodNullable) {\n        return ZodNullable.create(deepPartialify(schema.unwrap()));\n    }\n    else if (schema instanceof ZodTuple) {\n        return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));\n    }\n    else {\n        return schema;\n    }\n}\nexport class ZodObject extends ZodType {\n    constructor() {\n        super(...arguments);\n        this._cached = null;\n        /**\n         * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n         * If you want to pass through unknown properties, use `.passthrough()` instead.\n         */\n        this.nonstrict = this.passthrough;\n        // extend<\n        //   Augmentation extends ZodRawShape,\n        //   NewOutput extends util.flatten<{\n        //     [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n        //       ? Augmentation[k][\"_output\"]\n        //       : k extends keyof Output\n        //       ? Output[k]\n        //       : never;\n        //   }>,\n        //   NewInput extends util.flatten<{\n        //     [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n        //       ? Augmentation[k][\"_input\"]\n        //       : k extends keyof Input\n        //       ? Input[k]\n        //       : never;\n        //   }>\n        // >(\n        //   augmentation: Augmentation\n        // ): ZodObject<\n        //   extendShape<T, Augmentation>,\n        //   UnknownKeys,\n        //   Catchall,\n        //   NewOutput,\n        //   NewInput\n        // > {\n        //   return new ZodObject({\n        //     ...this._def,\n        //     shape: () => ({\n        //       ...this._def.shape(),\n        //       ...augmentation,\n        //     }),\n        //   }) as any;\n        // }\n        /**\n         * @deprecated Use `.extend` instead\n         *  */\n        this.augment = this.extend;\n    }\n    _getCached() {\n        if (this._cached !== null)\n            return this._cached;\n        const shape = this._def.shape();\n        const keys = util.objectKeys(shape);\n        this._cached = { shape, keys };\n        return this._cached;\n    }\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.object) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.object,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const { status, ctx } = this._processInputParams(input);\n        const { shape, keys: shapeKeys } = this._getCached();\n        const extraKeys = [];\n        if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === \"strip\")) {\n            for (const key in ctx.data) {\n                if (!shapeKeys.includes(key)) {\n                    extraKeys.push(key);\n                }\n            }\n        }\n        const pairs = [];\n        for (const key of shapeKeys) {\n            const keyValidator = shape[key];\n            const value = ctx.data[key];\n            pairs.push({\n                key: { status: \"valid\", value: key },\n                value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n                alwaysSet: key in ctx.data,\n            });\n        }\n        if (this._def.catchall instanceof ZodNever) {\n            const unknownKeys = this._def.unknownKeys;\n            if (unknownKeys === \"passthrough\") {\n                for (const key of extraKeys) {\n                    pairs.push({\n                        key: { status: \"valid\", value: key },\n                        value: { status: \"valid\", value: ctx.data[key] },\n                    });\n                }\n            }\n            else if (unknownKeys === \"strict\") {\n                if (extraKeys.length > 0) {\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.unrecognized_keys,\n                        keys: extraKeys,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (unknownKeys === \"strip\") {\n            }\n            else {\n                throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n            }\n        }\n        else {\n            // run catchall validation\n            const catchall = this._def.catchall;\n            for (const key of extraKeys) {\n                const value = ctx.data[key];\n                pairs.push({\n                    key: { status: \"valid\", value: key },\n                    value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)\n                    ),\n                    alwaysSet: key in ctx.data,\n                });\n            }\n        }\n        if (ctx.common.async) {\n            return Promise.resolve()\n                .then(async () => {\n                const syncPairs = [];\n                for (const pair of pairs) {\n                    const key = await pair.key;\n                    const value = await pair.value;\n                    syncPairs.push({\n                        key,\n                        value,\n                        alwaysSet: pair.alwaysSet,\n                    });\n                }\n                return syncPairs;\n            })\n                .then((syncPairs) => {\n                return ParseStatus.mergeObjectSync(status, syncPairs);\n            });\n        }\n        else {\n            return ParseStatus.mergeObjectSync(status, pairs);\n        }\n    }\n    get shape() {\n        return this._def.shape();\n    }\n    strict(message) {\n        errorUtil.errToObj;\n        return new ZodObject({\n            ...this._def,\n            unknownKeys: \"strict\",\n            ...(message !== undefined\n                ? {\n                    errorMap: (issue, ctx) => {\n                        const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;\n                        if (issue.code === \"unrecognized_keys\")\n                            return {\n                                message: errorUtil.errToObj(message).message ?? defaultError,\n                            };\n                        return {\n                            message: defaultError,\n                        };\n                    },\n                }\n                : {}),\n        });\n    }\n    strip() {\n        return new ZodObject({\n            ...this._def,\n            unknownKeys: \"strip\",\n        });\n    }\n    passthrough() {\n        return new ZodObject({\n            ...this._def,\n            unknownKeys: \"passthrough\",\n        });\n    }\n    // const AugmentFactory =\n    //   <Def extends ZodObjectDef>(def: Def) =>\n    //   <Augmentation extends ZodRawShape>(\n    //     augmentation: Augmentation\n    //   ): ZodObject<\n    //     extendShape<ReturnType<Def[\"shape\"]>, Augmentation>,\n    //     Def[\"unknownKeys\"],\n    //     Def[\"catchall\"]\n    //   > => {\n    //     return new ZodObject({\n    //       ...def,\n    //       shape: () => ({\n    //         ...def.shape(),\n    //         ...augmentation,\n    //       }),\n    //     }) as any;\n    //   };\n    extend(augmentation) {\n        return new ZodObject({\n            ...this._def,\n            shape: () => ({\n                ...this._def.shape(),\n                ...augmentation,\n            }),\n        });\n    }\n    /**\n     * Prior to zod@1.0.12 there was a bug in the\n     * inferred type of merged objects. Please\n     * upgrade if you are experiencing issues.\n     */\n    merge(merging) {\n        const merged = new ZodObject({\n            unknownKeys: merging._def.unknownKeys,\n            catchall: merging._def.catchall,\n            shape: () => ({\n                ...this._def.shape(),\n                ...merging._def.shape(),\n            }),\n            typeName: ZodFirstPartyTypeKind.ZodObject,\n        });\n        return merged;\n    }\n    // merge<\n    //   Incoming extends AnyZodObject,\n    //   Augmentation extends Incoming[\"shape\"],\n    //   NewOutput extends {\n    //     [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n    //       ? Augmentation[k][\"_output\"]\n    //       : k extends keyof Output\n    //       ? Output[k]\n    //       : never;\n    //   },\n    //   NewInput extends {\n    //     [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n    //       ? Augmentation[k][\"_input\"]\n    //       : k extends keyof Input\n    //       ? Input[k]\n    //       : never;\n    //   }\n    // >(\n    //   merging: Incoming\n    // ): ZodObject<\n    //   extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n    //   Incoming[\"_def\"][\"unknownKeys\"],\n    //   Incoming[\"_def\"][\"catchall\"],\n    //   NewOutput,\n    //   NewInput\n    // > {\n    //   const merged: any = new ZodObject({\n    //     unknownKeys: merging._def.unknownKeys,\n    //     catchall: merging._def.catchall,\n    //     shape: () =>\n    //       objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n    //     typeName: ZodFirstPartyTypeKind.ZodObject,\n    //   }) as any;\n    //   return merged;\n    // }\n    setKey(key, schema) {\n        return this.augment({ [key]: schema });\n    }\n    // merge<Incoming extends AnyZodObject>(\n    //   merging: Incoming\n    // ): //ZodObject<T & Incoming[\"_shape\"], UnknownKeys, Catchall> = (merging) => {\n    // ZodObject<\n    //   extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n    //   Incoming[\"_def\"][\"unknownKeys\"],\n    //   Incoming[\"_def\"][\"catchall\"]\n    // > {\n    //   // const mergedShape = objectUtil.mergeShapes(\n    //   //   this._def.shape(),\n    //   //   merging._def.shape()\n    //   // );\n    //   const merged: any = new ZodObject({\n    //     unknownKeys: merging._def.unknownKeys,\n    //     catchall: merging._def.catchall,\n    //     shape: () =>\n    //       objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n    //     typeName: ZodFirstPartyTypeKind.ZodObject,\n    //   }) as any;\n    //   return merged;\n    // }\n    catchall(index) {\n        return new ZodObject({\n            ...this._def,\n            catchall: index,\n        });\n    }\n    pick(mask) {\n        const shape = {};\n        for (const key of util.objectKeys(mask)) {\n            if (mask[key] && this.shape[key]) {\n                shape[key] = this.shape[key];\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => shape,\n        });\n    }\n    omit(mask) {\n        const shape = {};\n        for (const key of util.objectKeys(this.shape)) {\n            if (!mask[key]) {\n                shape[key] = this.shape[key];\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => shape,\n        });\n    }\n    /**\n     * @deprecated\n     */\n    deepPartial() {\n        return deepPartialify(this);\n    }\n    partial(mask) {\n        const newShape = {};\n        for (const key of util.objectKeys(this.shape)) {\n            const fieldSchema = this.shape[key];\n            if (mask && !mask[key]) {\n                newShape[key] = fieldSchema;\n            }\n            else {\n                newShape[key] = fieldSchema.optional();\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => newShape,\n        });\n    }\n    required(mask) {\n        const newShape = {};\n        for (const key of util.objectKeys(this.shape)) {\n            if (mask && !mask[key]) {\n                newShape[key] = this.shape[key];\n            }\n            else {\n                const fieldSchema = this.shape[key];\n                let newField = fieldSchema;\n                while (newField instanceof ZodOptional) {\n                    newField = newField._def.innerType;\n                }\n                newShape[key] = newField;\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => newShape,\n        });\n    }\n    keyof() {\n        return createZodEnum(util.objectKeys(this.shape));\n    }\n}\nZodObject.create = (shape, params) => {\n    return new ZodObject({\n        shape: () => shape,\n        unknownKeys: \"strip\",\n        catchall: ZodNever.create(),\n        typeName: ZodFirstPartyTypeKind.ZodObject,\n        ...processCreateParams(params),\n    });\n};\nZodObject.strictCreate = (shape, params) => {\n    return new ZodObject({\n        shape: () => shape,\n        unknownKeys: \"strict\",\n        catchall: ZodNever.create(),\n        typeName: ZodFirstPartyTypeKind.ZodObject,\n        ...processCreateParams(params),\n    });\n};\nZodObject.lazycreate = (shape, params) => {\n    return new ZodObject({\n        shape,\n        unknownKeys: \"strip\",\n        catchall: ZodNever.create(),\n        typeName: ZodFirstPartyTypeKind.ZodObject,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodUnion extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        const options = this._def.options;\n        function handleResults(results) {\n            // return first issue-free validation if it exists\n            for (const result of results) {\n                if (result.result.status === \"valid\") {\n                    return result.result;\n                }\n            }\n            for (const result of results) {\n                if (result.result.status === \"dirty\") {\n                    // add issues from dirty option\n                    ctx.common.issues.push(...result.ctx.common.issues);\n                    return result.result;\n                }\n            }\n            // return invalid\n            const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_union,\n                unionErrors,\n            });\n            return INVALID;\n        }\n        if (ctx.common.async) {\n            return Promise.all(options.map(async (option) => {\n                const childCtx = {\n                    ...ctx,\n                    common: {\n                        ...ctx.common,\n                        issues: [],\n                    },\n                    parent: null,\n                };\n                return {\n                    result: await option._parseAsync({\n                        data: ctx.data,\n                        path: ctx.path,\n                        parent: childCtx,\n                    }),\n                    ctx: childCtx,\n                };\n            })).then(handleResults);\n        }\n        else {\n            let dirty = undefined;\n            const issues = [];\n            for (const option of options) {\n                const childCtx = {\n                    ...ctx,\n                    common: {\n                        ...ctx.common,\n                        issues: [],\n                    },\n                    parent: null,\n                };\n                const result = option._parseSync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: childCtx,\n                });\n                if (result.status === \"valid\") {\n                    return result;\n                }\n                else if (result.status === \"dirty\" && !dirty) {\n                    dirty = { result, ctx: childCtx };\n                }\n                if (childCtx.common.issues.length) {\n                    issues.push(childCtx.common.issues);\n                }\n            }\n            if (dirty) {\n                ctx.common.issues.push(...dirty.ctx.common.issues);\n                return dirty.result;\n            }\n            const unionErrors = issues.map((issues) => new ZodError(issues));\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_union,\n                unionErrors,\n            });\n            return INVALID;\n        }\n    }\n    get options() {\n        return this._def.options;\n    }\n}\nZodUnion.create = (types, params) => {\n    return new ZodUnion({\n        options: types,\n        typeName: ZodFirstPartyTypeKind.ZodUnion,\n        ...processCreateParams(params),\n    });\n};\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\n//////////                                 //////////\n//////////      ZodDiscriminatedUnion      //////////\n//////////                                 //////////\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\nconst getDiscriminator = (type) => {\n    if (type instanceof ZodLazy) {\n        return getDiscriminator(type.schema);\n    }\n    else if (type instanceof ZodEffects) {\n        return getDiscriminator(type.innerType());\n    }\n    else if (type instanceof ZodLiteral) {\n        return [type.value];\n    }\n    else if (type instanceof ZodEnum) {\n        return type.options;\n    }\n    else if (type instanceof ZodNativeEnum) {\n        // eslint-disable-next-line ban/ban\n        return util.objectValues(type.enum);\n    }\n    else if (type instanceof ZodDefault) {\n        return getDiscriminator(type._def.innerType);\n    }\n    else if (type instanceof ZodUndefined) {\n        return [undefined];\n    }\n    else if (type instanceof ZodNull) {\n        return [null];\n    }\n    else if (type instanceof ZodOptional) {\n        return [undefined, ...getDiscriminator(type.unwrap())];\n    }\n    else if (type instanceof ZodNullable) {\n        return [null, ...getDiscriminator(type.unwrap())];\n    }\n    else if (type instanceof ZodBranded) {\n        return getDiscriminator(type.unwrap());\n    }\n    else if (type instanceof ZodReadonly) {\n        return getDiscriminator(type.unwrap());\n    }\n    else if (type instanceof ZodCatch) {\n        return getDiscriminator(type._def.innerType);\n    }\n    else {\n        return [];\n    }\n};\nexport class ZodDiscriminatedUnion extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.object) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.object,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const discriminator = this.discriminator;\n        const discriminatorValue = ctx.data[discriminator];\n        const option = this.optionsMap.get(discriminatorValue);\n        if (!option) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_union_discriminator,\n                options: Array.from(this.optionsMap.keys()),\n                path: [discriminator],\n            });\n            return INVALID;\n        }\n        if (ctx.common.async) {\n            return option._parseAsync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            });\n        }\n        else {\n            return option._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            });\n        }\n    }\n    get discriminator() {\n        return this._def.discriminator;\n    }\n    get options() {\n        return this._def.options;\n    }\n    get optionsMap() {\n        return this._def.optionsMap;\n    }\n    /**\n     * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n     * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n     * have a different value for each object in the union.\n     * @param discriminator the name of the discriminator property\n     * @param types an array of object schemas\n     * @param params\n     */\n    static create(discriminator, options, params) {\n        // Get all the valid discriminator values\n        const optionsMap = new Map();\n        // try {\n        for (const type of options) {\n            const discriminatorValues = getDiscriminator(type.shape[discriminator]);\n            if (!discriminatorValues.length) {\n                throw new Error(`A discriminator value for key \\`${discriminator}\\` could not be extracted from all schema options`);\n            }\n            for (const value of discriminatorValues) {\n                if (optionsMap.has(value)) {\n                    throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);\n                }\n                optionsMap.set(value, type);\n            }\n        }\n        return new ZodDiscriminatedUnion({\n            typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n            discriminator,\n            options,\n            optionsMap,\n            ...processCreateParams(params),\n        });\n    }\n}\nfunction mergeValues(a, b) {\n    const aType = getParsedType(a);\n    const bType = getParsedType(b);\n    if (a === b) {\n        return { valid: true, data: a };\n    }\n    else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {\n        const bKeys = util.objectKeys(b);\n        const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);\n        const newObj = { ...a, ...b };\n        if (Object.prototype.hasOwnProperty.call(newObj, \"__proto__\"))\n            delete newObj.__proto__;\n        for (const key of sharedKeys) {\n            if (key === \"__proto__\")\n                continue;\n            const sharedValue = mergeValues(a[key], b[key]);\n            if (!sharedValue.valid) {\n                return { valid: false };\n            }\n            newObj[key] = sharedValue.data;\n        }\n        return { valid: true, data: newObj };\n    }\n    else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {\n        if (a.length !== b.length) {\n            return { valid: false };\n        }\n        const newArray = [];\n        for (let index = 0; index < a.length; index++) {\n            const itemA = a[index];\n            const itemB = b[index];\n            const sharedValue = mergeValues(itemA, itemB);\n            if (!sharedValue.valid) {\n                return { valid: false };\n            }\n            newArray.push(sharedValue.data);\n        }\n        return { valid: true, data: newArray };\n    }\n    else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {\n        return { valid: true, data: a };\n    }\n    else {\n        return { valid: false };\n    }\n}\nexport class ZodIntersection extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        const handleParsed = (parsedLeft, parsedRight) => {\n            if (isAborted(parsedLeft) || isAborted(parsedRight)) {\n                return INVALID;\n            }\n            const merged = mergeValues(parsedLeft.value, parsedRight.value);\n            if (!merged.valid) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.invalid_intersection_types,\n                });\n                return INVALID;\n            }\n            if (isDirty(parsedLeft) || isDirty(parsedRight)) {\n                status.dirty();\n            }\n            return { status: status.value, value: merged.data };\n        };\n        if (ctx.common.async) {\n            return Promise.all([\n                this._def.left._parseAsync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                }),\n                this._def.right._parseAsync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                }),\n            ]).then(([left, right]) => handleParsed(left, right));\n        }\n        else {\n            return handleParsed(this._def.left._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            }), this._def.right._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            }));\n        }\n    }\n}\nZodIntersection.create = (left, right, params) => {\n    return new ZodIntersection({\n        left: left,\n        right: right,\n        typeName: ZodFirstPartyTypeKind.ZodIntersection,\n        ...processCreateParams(params),\n    });\n};\n// type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];\nexport class ZodTuple extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.array) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.array,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        if (ctx.data.length < this._def.items.length) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.too_small,\n                minimum: this._def.items.length,\n                inclusive: true,\n                exact: false,\n                type: \"array\",\n            });\n            return INVALID;\n        }\n        const rest = this._def.rest;\n        if (!rest && ctx.data.length > this._def.items.length) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.too_big,\n                maximum: this._def.items.length,\n                inclusive: true,\n                exact: false,\n                type: \"array\",\n            });\n            status.dirty();\n        }\n        const items = [...ctx.data]\n            .map((item, itemIndex) => {\n            const schema = this._def.items[itemIndex] || this._def.rest;\n            if (!schema)\n                return null;\n            return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n        })\n            .filter((x) => !!x); // filter nulls\n        if (ctx.common.async) {\n            return Promise.all(items).then((results) => {\n                return ParseStatus.mergeArray(status, results);\n            });\n        }\n        else {\n            return ParseStatus.mergeArray(status, items);\n        }\n    }\n    get items() {\n        return this._def.items;\n    }\n    rest(rest) {\n        return new ZodTuple({\n            ...this._def,\n            rest,\n        });\n    }\n}\nZodTuple.create = (schemas, params) => {\n    if (!Array.isArray(schemas)) {\n        throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");\n    }\n    return new ZodTuple({\n        items: schemas,\n        typeName: ZodFirstPartyTypeKind.ZodTuple,\n        rest: null,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodRecord extends ZodType {\n    get keySchema() {\n        return this._def.keyType;\n    }\n    get valueSchema() {\n        return this._def.valueType;\n    }\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.object) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.object,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const pairs = [];\n        const keyType = this._def.keyType;\n        const valueType = this._def.valueType;\n        for (const key in ctx.data) {\n            pairs.push({\n                key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n                value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n                alwaysSet: key in ctx.data,\n            });\n        }\n        if (ctx.common.async) {\n            return ParseStatus.mergeObjectAsync(status, pairs);\n        }\n        else {\n            return ParseStatus.mergeObjectSync(status, pairs);\n        }\n    }\n    get element() {\n        return this._def.valueType;\n    }\n    static create(first, second, third) {\n        if (second instanceof ZodType) {\n            return new ZodRecord({\n                keyType: first,\n                valueType: second,\n                typeName: ZodFirstPartyTypeKind.ZodRecord,\n                ...processCreateParams(third),\n            });\n        }\n        return new ZodRecord({\n            keyType: ZodString.create(),\n            valueType: first,\n            typeName: ZodFirstPartyTypeKind.ZodRecord,\n            ...processCreateParams(second),\n        });\n    }\n}\nexport class ZodMap extends ZodType {\n    get keySchema() {\n        return this._def.keyType;\n    }\n    get valueSchema() {\n        return this._def.valueType;\n    }\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.map) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.map,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const keyType = this._def.keyType;\n        const valueType = this._def.valueType;\n        const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n            return {\n                key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, \"key\"])),\n                value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, \"value\"])),\n            };\n        });\n        if (ctx.common.async) {\n            const finalMap = new Map();\n            return Promise.resolve().then(async () => {\n                for (const pair of pairs) {\n                    const key = await pair.key;\n                    const value = await pair.value;\n                    if (key.status === \"aborted\" || value.status === \"aborted\") {\n                        return INVALID;\n                    }\n                    if (key.status === \"dirty\" || value.status === \"dirty\") {\n                        status.dirty();\n                    }\n                    finalMap.set(key.value, value.value);\n                }\n                return { status: status.value, value: finalMap };\n            });\n        }\n        else {\n            const finalMap = new Map();\n            for (const pair of pairs) {\n                const key = pair.key;\n                const value = pair.value;\n                if (key.status === \"aborted\" || value.status === \"aborted\") {\n                    return INVALID;\n                }\n                if (key.status === \"dirty\" || value.status === \"dirty\") {\n                    status.dirty();\n                }\n                finalMap.set(key.value, value.value);\n            }\n            return { status: status.value, value: finalMap };\n        }\n    }\n}\nZodMap.create = (keyType, valueType, params) => {\n    return new ZodMap({\n        valueType,\n        keyType,\n        typeName: ZodFirstPartyTypeKind.ZodMap,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodSet extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.set) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.set,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const def = this._def;\n        if (def.minSize !== null) {\n            if (ctx.data.size < def.minSize.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_small,\n                    minimum: def.minSize.value,\n                    type: \"set\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.minSize.message,\n                });\n                status.dirty();\n            }\n        }\n        if (def.maxSize !== null) {\n            if (ctx.data.size > def.maxSize.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_big,\n                    maximum: def.maxSize.value,\n                    type: \"set\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.maxSize.message,\n                });\n                status.dirty();\n            }\n        }\n        const valueType = this._def.valueType;\n        function finalizeSet(elements) {\n            const parsedSet = new Set();\n            for (const element of elements) {\n                if (element.status === \"aborted\")\n                    return INVALID;\n                if (element.status === \"dirty\")\n                    status.dirty();\n                parsedSet.add(element.value);\n            }\n            return { status: status.value, value: parsedSet };\n        }\n        const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));\n        if (ctx.common.async) {\n            return Promise.all(elements).then((elements) => finalizeSet(elements));\n        }\n        else {\n            return finalizeSet(elements);\n        }\n    }\n    min(minSize, message) {\n        return new ZodSet({\n            ...this._def,\n            minSize: { value: minSize, message: errorUtil.toString(message) },\n        });\n    }\n    max(maxSize, message) {\n        return new ZodSet({\n            ...this._def,\n            maxSize: { value: maxSize, message: errorUtil.toString(message) },\n        });\n    }\n    size(size, message) {\n        return this.min(size, message).max(size, message);\n    }\n    nonempty(message) {\n        return this.min(1, message);\n    }\n}\nZodSet.create = (valueType, params) => {\n    return new ZodSet({\n        valueType,\n        minSize: null,\n        maxSize: null,\n        typeName: ZodFirstPartyTypeKind.ZodSet,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodFunction extends ZodType {\n    constructor() {\n        super(...arguments);\n        this.validate = this.implement;\n    }\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.function) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.function,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        function makeArgsIssue(args, error) {\n            return makeIssue({\n                data: args,\n                path: ctx.path,\n                errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),\n                issueData: {\n                    code: ZodIssueCode.invalid_arguments,\n                    argumentsError: error,\n                },\n            });\n        }\n        function makeReturnsIssue(returns, error) {\n            return makeIssue({\n                data: returns,\n                path: ctx.path,\n                errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),\n                issueData: {\n                    code: ZodIssueCode.invalid_return_type,\n                    returnTypeError: error,\n                },\n            });\n        }\n        const params = { errorMap: ctx.common.contextualErrorMap };\n        const fn = ctx.data;\n        if (this._def.returns instanceof ZodPromise) {\n            // Would love a way to avoid disabling this rule, but we need an alias (using an arrow function was what caused 2651).\n            // eslint-disable-next-line @typescript-eslint/no-this-alias\n            const me = this;\n            return OK(async function (...args) {\n                const error = new ZodError([]);\n                const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {\n                    error.addIssue(makeArgsIssue(args, e));\n                    throw error;\n                });\n                const result = await Reflect.apply(fn, this, parsedArgs);\n                const parsedReturns = await me._def.returns._def.type\n                    .parseAsync(result, params)\n                    .catch((e) => {\n                    error.addIssue(makeReturnsIssue(result, e));\n                    throw error;\n                });\n                return parsedReturns;\n            });\n        }\n        else {\n            // Would love a way to avoid disabling this rule, but we need an alias (using an arrow function was what caused 2651).\n            // eslint-disable-next-line @typescript-eslint/no-this-alias\n            const me = this;\n            return OK(function (...args) {\n                const parsedArgs = me._def.args.safeParse(args, params);\n                if (!parsedArgs.success) {\n                    throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);\n                }\n                const result = Reflect.apply(fn, this, parsedArgs.data);\n                const parsedReturns = me._def.returns.safeParse(result, params);\n                if (!parsedReturns.success) {\n                    throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);\n                }\n                return parsedReturns.data;\n            });\n        }\n    }\n    parameters() {\n        return this._def.args;\n    }\n    returnType() {\n        return this._def.returns;\n    }\n    args(...items) {\n        return new ZodFunction({\n            ...this._def,\n            args: ZodTuple.create(items).rest(ZodUnknown.create()),\n        });\n    }\n    returns(returnType) {\n        return new ZodFunction({\n            ...this._def,\n            returns: returnType,\n        });\n    }\n    implement(func) {\n        const validatedFunc = this.parse(func);\n        return validatedFunc;\n    }\n    strictImplement(func) {\n        const validatedFunc = this.parse(func);\n        return validatedFunc;\n    }\n    static create(args, returns, params) {\n        return new ZodFunction({\n            args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),\n            returns: returns || ZodUnknown.create(),\n            typeName: ZodFirstPartyTypeKind.ZodFunction,\n            ...processCreateParams(params),\n        });\n    }\n}\nexport class ZodLazy extends ZodType {\n    get schema() {\n        return this._def.getter();\n    }\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        const lazySchema = this._def.getter();\n        return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n    }\n}\nZodLazy.create = (getter, params) => {\n    return new ZodLazy({\n        getter: getter,\n        typeName: ZodFirstPartyTypeKind.ZodLazy,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodLiteral extends ZodType {\n    _parse(input) {\n        if (input.data !== this._def.value) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                received: ctx.data,\n                code: ZodIssueCode.invalid_literal,\n                expected: this._def.value,\n            });\n            return INVALID;\n        }\n        return { status: \"valid\", value: input.data };\n    }\n    get value() {\n        return this._def.value;\n    }\n}\nZodLiteral.create = (value, params) => {\n    return new ZodLiteral({\n        value: value,\n        typeName: ZodFirstPartyTypeKind.ZodLiteral,\n        ...processCreateParams(params),\n    });\n};\nfunction createZodEnum(values, params) {\n    return new ZodEnum({\n        values,\n        typeName: ZodFirstPartyTypeKind.ZodEnum,\n        ...processCreateParams(params),\n    });\n}\nexport class ZodEnum extends ZodType {\n    _parse(input) {\n        if (typeof input.data !== \"string\") {\n            const ctx = this._getOrReturnCtx(input);\n            const expectedValues = this._def.values;\n            addIssueToContext(ctx, {\n                expected: util.joinValues(expectedValues),\n                received: ctx.parsedType,\n                code: ZodIssueCode.invalid_type,\n            });\n            return INVALID;\n        }\n        if (!this._cache) {\n            this._cache = new Set(this._def.values);\n        }\n        if (!this._cache.has(input.data)) {\n            const ctx = this._getOrReturnCtx(input);\n            const expectedValues = this._def.values;\n            addIssueToContext(ctx, {\n                received: ctx.data,\n                code: ZodIssueCode.invalid_enum_value,\n                options: expectedValues,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n    get options() {\n        return this._def.values;\n    }\n    get enum() {\n        const enumValues = {};\n        for (const val of this._def.values) {\n            enumValues[val] = val;\n        }\n        return enumValues;\n    }\n    get Values() {\n        const enumValues = {};\n        for (const val of this._def.values) {\n            enumValues[val] = val;\n        }\n        return enumValues;\n    }\n    get Enum() {\n        const enumValues = {};\n        for (const val of this._def.values) {\n            enumValues[val] = val;\n        }\n        return enumValues;\n    }\n    extract(values, newDef = this._def) {\n        return ZodEnum.create(values, {\n            ...this._def,\n            ...newDef,\n        });\n    }\n    exclude(values, newDef = this._def) {\n        return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {\n            ...this._def,\n            ...newDef,\n        });\n    }\n}\nZodEnum.create = createZodEnum;\nexport class ZodNativeEnum extends ZodType {\n    _parse(input) {\n        const nativeEnumValues = util.getValidEnumValues(this._def.values);\n        const ctx = this._getOrReturnCtx(input);\n        if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {\n            const expectedValues = util.objectValues(nativeEnumValues);\n            addIssueToContext(ctx, {\n                expected: util.joinValues(expectedValues),\n                received: ctx.parsedType,\n                code: ZodIssueCode.invalid_type,\n            });\n            return INVALID;\n        }\n        if (!this._cache) {\n            this._cache = new Set(util.getValidEnumValues(this._def.values));\n        }\n        if (!this._cache.has(input.data)) {\n            const expectedValues = util.objectValues(nativeEnumValues);\n            addIssueToContext(ctx, {\n                received: ctx.data,\n                code: ZodIssueCode.invalid_enum_value,\n                options: expectedValues,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n    get enum() {\n        return this._def.values;\n    }\n}\nZodNativeEnum.create = (values, params) => {\n    return new ZodNativeEnum({\n        values: values,\n        typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodPromise extends ZodType {\n    unwrap() {\n        return this._def.type;\n    }\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.promise,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);\n        return OK(promisified.then((data) => {\n            return this._def.type.parseAsync(data, {\n                path: ctx.path,\n                errorMap: ctx.common.contextualErrorMap,\n            });\n        }));\n    }\n}\nZodPromise.create = (schema, params) => {\n    return new ZodPromise({\n        type: schema,\n        typeName: ZodFirstPartyTypeKind.ZodPromise,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodEffects extends ZodType {\n    innerType() {\n        return this._def.schema;\n    }\n    sourceType() {\n        return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects\n            ? this._def.schema.sourceType()\n            : this._def.schema;\n    }\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        const effect = this._def.effect || null;\n        const checkCtx = {\n            addIssue: (arg) => {\n                addIssueToContext(ctx, arg);\n                if (arg.fatal) {\n                    status.abort();\n                }\n                else {\n                    status.dirty();\n                }\n            },\n            get path() {\n                return ctx.path;\n            },\n        };\n        checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n        if (effect.type === \"preprocess\") {\n            const processed = effect.transform(ctx.data, checkCtx);\n            if (ctx.common.async) {\n                return Promise.resolve(processed).then(async (processed) => {\n                    if (status.value === \"aborted\")\n                        return INVALID;\n                    const result = await this._def.schema._parseAsync({\n                        data: processed,\n                        path: ctx.path,\n                        parent: ctx,\n                    });\n                    if (result.status === \"aborted\")\n                        return INVALID;\n                    if (result.status === \"dirty\")\n                        return DIRTY(result.value);\n                    if (status.value === \"dirty\")\n                        return DIRTY(result.value);\n                    return result;\n                });\n            }\n            else {\n                if (status.value === \"aborted\")\n                    return INVALID;\n                const result = this._def.schema._parseSync({\n                    data: processed,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (result.status === \"aborted\")\n                    return INVALID;\n                if (result.status === \"dirty\")\n                    return DIRTY(result.value);\n                if (status.value === \"dirty\")\n                    return DIRTY(result.value);\n                return result;\n            }\n        }\n        if (effect.type === \"refinement\") {\n            const executeRefinement = (acc) => {\n                const result = effect.refinement(acc, checkCtx);\n                if (ctx.common.async) {\n                    return Promise.resolve(result);\n                }\n                if (result instanceof Promise) {\n                    throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");\n                }\n                return acc;\n            };\n            if (ctx.common.async === false) {\n                const inner = this._def.schema._parseSync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (inner.status === \"aborted\")\n                    return INVALID;\n                if (inner.status === \"dirty\")\n                    status.dirty();\n                // return value is ignored\n                executeRefinement(inner.value);\n                return { status: status.value, value: inner.value };\n            }\n            else {\n                return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {\n                    if (inner.status === \"aborted\")\n                        return INVALID;\n                    if (inner.status === \"dirty\")\n                        status.dirty();\n                    return executeRefinement(inner.value).then(() => {\n                        return { status: status.value, value: inner.value };\n                    });\n                });\n            }\n        }\n        if (effect.type === \"transform\") {\n            if (ctx.common.async === false) {\n                const base = this._def.schema._parseSync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (!isValid(base))\n                    return INVALID;\n                const result = effect.transform(base.value, checkCtx);\n                if (result instanceof Promise) {\n                    throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n                }\n                return { status: status.value, value: result };\n            }\n            else {\n                return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {\n                    if (!isValid(base))\n                        return INVALID;\n                    return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({\n                        status: status.value,\n                        value: result,\n                    }));\n                });\n            }\n        }\n        util.assertNever(effect);\n    }\n}\nZodEffects.create = (schema, effect, params) => {\n    return new ZodEffects({\n        schema,\n        typeName: ZodFirstPartyTypeKind.ZodEffects,\n        effect,\n        ...processCreateParams(params),\n    });\n};\nZodEffects.createWithPreprocess = (preprocess, schema, params) => {\n    return new ZodEffects({\n        schema,\n        effect: { type: \"preprocess\", transform: preprocess },\n        typeName: ZodFirstPartyTypeKind.ZodEffects,\n        ...processCreateParams(params),\n    });\n};\nexport { ZodEffects as ZodTransformer };\nexport class ZodOptional extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType === ZodParsedType.undefined) {\n            return OK(undefined);\n        }\n        return this._def.innerType._parse(input);\n    }\n    unwrap() {\n        return this._def.innerType;\n    }\n}\nZodOptional.create = (type, params) => {\n    return new ZodOptional({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodOptional,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNullable extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType === ZodParsedType.null) {\n            return OK(null);\n        }\n        return this._def.innerType._parse(input);\n    }\n    unwrap() {\n        return this._def.innerType;\n    }\n}\nZodNullable.create = (type, params) => {\n    return new ZodNullable({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodNullable,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodDefault extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        let data = ctx.data;\n        if (ctx.parsedType === ZodParsedType.undefined) {\n            data = this._def.defaultValue();\n        }\n        return this._def.innerType._parse({\n            data,\n            path: ctx.path,\n            parent: ctx,\n        });\n    }\n    removeDefault() {\n        return this._def.innerType;\n    }\n}\nZodDefault.create = (type, params) => {\n    return new ZodDefault({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodDefault,\n        defaultValue: typeof params.default === \"function\" ? params.default : () => params.default,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodCatch extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        // newCtx is used to not collect issues from inner types in ctx\n        const newCtx = {\n            ...ctx,\n            common: {\n                ...ctx.common,\n                issues: [],\n            },\n        };\n        const result = this._def.innerType._parse({\n            data: newCtx.data,\n            path: newCtx.path,\n            parent: {\n                ...newCtx,\n            },\n        });\n        if (isAsync(result)) {\n            return result.then((result) => {\n                return {\n                    status: \"valid\",\n                    value: result.status === \"valid\"\n                        ? result.value\n                        : this._def.catchValue({\n                            get error() {\n                                return new ZodError(newCtx.common.issues);\n                            },\n                            input: newCtx.data,\n                        }),\n                };\n            });\n        }\n        else {\n            return {\n                status: \"valid\",\n                value: result.status === \"valid\"\n                    ? result.value\n                    : this._def.catchValue({\n                        get error() {\n                            return new ZodError(newCtx.common.issues);\n                        },\n                        input: newCtx.data,\n                    }),\n            };\n        }\n    }\n    removeCatch() {\n        return this._def.innerType;\n    }\n}\nZodCatch.create = (type, params) => {\n    return new ZodCatch({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodCatch,\n        catchValue: typeof params.catch === \"function\" ? params.catch : () => params.catch,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNaN extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.nan) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.nan,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return { status: \"valid\", value: input.data };\n    }\n}\nZodNaN.create = (params) => {\n    return new ZodNaN({\n        typeName: ZodFirstPartyTypeKind.ZodNaN,\n        ...processCreateParams(params),\n    });\n};\nexport const BRAND = Symbol(\"zod_brand\");\nexport class ZodBranded extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        const data = ctx.data;\n        return this._def.type._parse({\n            data,\n            path: ctx.path,\n            parent: ctx,\n        });\n    }\n    unwrap() {\n        return this._def.type;\n    }\n}\nexport class ZodPipeline extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.common.async) {\n            const handleAsync = async () => {\n                const inResult = await this._def.in._parseAsync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (inResult.status === \"aborted\")\n                    return INVALID;\n                if (inResult.status === \"dirty\") {\n                    status.dirty();\n                    return DIRTY(inResult.value);\n                }\n                else {\n                    return this._def.out._parseAsync({\n                        data: inResult.value,\n                        path: ctx.path,\n                        parent: ctx,\n                    });\n                }\n            };\n            return handleAsync();\n        }\n        else {\n            const inResult = this._def.in._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            });\n            if (inResult.status === \"aborted\")\n                return INVALID;\n            if (inResult.status === \"dirty\") {\n                status.dirty();\n                return {\n                    status: \"dirty\",\n                    value: inResult.value,\n                };\n            }\n            else {\n                return this._def.out._parseSync({\n                    data: inResult.value,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n            }\n        }\n    }\n    static create(a, b) {\n        return new ZodPipeline({\n            in: a,\n            out: b,\n            typeName: ZodFirstPartyTypeKind.ZodPipeline,\n        });\n    }\n}\nexport class ZodReadonly extends ZodType {\n    _parse(input) {\n        const result = this._def.innerType._parse(input);\n        const freeze = (data) => {\n            if (isValid(data)) {\n                data.value = Object.freeze(data.value);\n            }\n            return data;\n        };\n        return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);\n    }\n    unwrap() {\n        return this._def.innerType;\n    }\n}\nZodReadonly.create = (type, params) => {\n    return new ZodReadonly({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodReadonly,\n        ...processCreateParams(params),\n    });\n};\n////////////////////////////////////////\n////////////////////////////////////////\n//////////                    //////////\n//////////      z.custom      //////////\n//////////                    //////////\n////////////////////////////////////////\n////////////////////////////////////////\nfunction cleanParams(params, data) {\n    const p = typeof params === \"function\" ? params(data) : typeof params === \"string\" ? { message: params } : params;\n    const p2 = typeof p === \"string\" ? { message: p } : p;\n    return p2;\n}\nexport function custom(check, _params = {}, \n/**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\nfatal) {\n    if (check)\n        return ZodAny.create().superRefine((data, ctx) => {\n            const r = check(data);\n            if (r instanceof Promise) {\n                return r.then((r) => {\n                    if (!r) {\n                        const params = cleanParams(_params, data);\n                        const _fatal = params.fatal ?? fatal ?? true;\n                        ctx.addIssue({ code: \"custom\", ...params, fatal: _fatal });\n                    }\n                });\n            }\n            if (!r) {\n                const params = cleanParams(_params, data);\n                const _fatal = params.fatal ?? fatal ?? true;\n                ctx.addIssue({ code: \"custom\", ...params, fatal: _fatal });\n            }\n            return;\n        });\n    return ZodAny.create();\n}\nexport { ZodType as Schema, ZodType as ZodSchema };\nexport const late = {\n    object: ZodObject.lazycreate,\n};\nexport var ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n    ZodFirstPartyTypeKind[\"ZodString\"] = \"ZodString\";\n    ZodFirstPartyTypeKind[\"ZodNumber\"] = \"ZodNumber\";\n    ZodFirstPartyTypeKind[\"ZodNaN\"] = \"ZodNaN\";\n    ZodFirstPartyTypeKind[\"ZodBigInt\"] = \"ZodBigInt\";\n    ZodFirstPartyTypeKind[\"ZodBoolean\"] = \"ZodBoolean\";\n    ZodFirstPartyTypeKind[\"ZodDate\"] = \"ZodDate\";\n    ZodFirstPartyTypeKind[\"ZodSymbol\"] = \"ZodSymbol\";\n    ZodFirstPartyTypeKind[\"ZodUndefined\"] = \"ZodUndefined\";\n    ZodFirstPartyTypeKind[\"ZodNull\"] = \"ZodNull\";\n    ZodFirstPartyTypeKind[\"ZodAny\"] = \"ZodAny\";\n    ZodFirstPartyTypeKind[\"ZodUnknown\"] = \"ZodUnknown\";\n    ZodFirstPartyTypeKind[\"ZodNever\"] = \"ZodNever\";\n    ZodFirstPartyTypeKind[\"ZodVoid\"] = \"ZodVoid\";\n    ZodFirstPartyTypeKind[\"ZodArray\"] = \"ZodArray\";\n    ZodFirstPartyTypeKind[\"ZodObject\"] = \"ZodObject\";\n    ZodFirstPartyTypeKind[\"ZodUnion\"] = \"ZodUnion\";\n    ZodFirstPartyTypeKind[\"ZodDiscriminatedUnion\"] = \"ZodDiscriminatedUnion\";\n    ZodFirstPartyTypeKind[\"ZodIntersection\"] = \"ZodIntersection\";\n    ZodFirstPartyTypeKind[\"ZodTuple\"] = \"ZodTuple\";\n    ZodFirstPartyTypeKind[\"ZodRecord\"] = \"ZodRecord\";\n    ZodFirstPartyTypeKind[\"ZodMap\"] = \"ZodMap\";\n    ZodFirstPartyTypeKind[\"ZodSet\"] = \"ZodSet\";\n    ZodFirstPartyTypeKind[\"ZodFunction\"] = \"ZodFunction\";\n    ZodFirstPartyTypeKind[\"ZodLazy\"] = \"ZodLazy\";\n    ZodFirstPartyTypeKind[\"ZodLiteral\"] = \"ZodLiteral\";\n    ZodFirstPartyTypeKind[\"ZodEnum\"] = \"ZodEnum\";\n    ZodFirstPartyTypeKind[\"ZodEffects\"] = \"ZodEffects\";\n    ZodFirstPartyTypeKind[\"ZodNativeEnum\"] = \"ZodNativeEnum\";\n    ZodFirstPartyTypeKind[\"ZodOptional\"] = \"ZodOptional\";\n    ZodFirstPartyTypeKind[\"ZodNullable\"] = \"ZodNullable\";\n    ZodFirstPartyTypeKind[\"ZodDefault\"] = \"ZodDefault\";\n    ZodFirstPartyTypeKind[\"ZodCatch\"] = \"ZodCatch\";\n    ZodFirstPartyTypeKind[\"ZodPromise\"] = \"ZodPromise\";\n    ZodFirstPartyTypeKind[\"ZodBranded\"] = \"ZodBranded\";\n    ZodFirstPartyTypeKind[\"ZodPipeline\"] = \"ZodPipeline\";\n    ZodFirstPartyTypeKind[\"ZodReadonly\"] = \"ZodReadonly\";\n})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));\n// requires TS 4.4+\nclass Class {\n    constructor(..._) { }\n}\nconst instanceOfType = (\n// const instanceOfType = <T extends new (...args: any[]) => any>(\ncls, params = {\n    message: `Input not instance of ${cls.name}`,\n}) => custom((data) => data instanceof cls, params);\nconst stringType = ZodString.create;\nconst numberType = ZodNumber.create;\nconst nanType = ZodNaN.create;\nconst bigIntType = ZodBigInt.create;\nconst booleanType = ZodBoolean.create;\nconst dateType = ZodDate.create;\nconst symbolType = ZodSymbol.create;\nconst undefinedType = ZodUndefined.create;\nconst nullType = ZodNull.create;\nconst anyType = ZodAny.create;\nconst unknownType = ZodUnknown.create;\nconst neverType = ZodNever.create;\nconst voidType = ZodVoid.create;\nconst arrayType = ZodArray.create;\nconst objectType = ZodObject.create;\nconst strictObjectType = ZodObject.strictCreate;\nconst unionType = ZodUnion.create;\nconst discriminatedUnionType = ZodDiscriminatedUnion.create;\nconst intersectionType = ZodIntersection.create;\nconst tupleType = ZodTuple.create;\nconst recordType = ZodRecord.create;\nconst mapType = ZodMap.create;\nconst setType = ZodSet.create;\nconst functionType = ZodFunction.create;\nconst lazyType = ZodLazy.create;\nconst literalType = ZodLiteral.create;\nconst enumType = ZodEnum.create;\nconst nativeEnumType = ZodNativeEnum.create;\nconst promiseType = ZodPromise.create;\nconst effectsType = ZodEffects.create;\nconst optionalType = ZodOptional.create;\nconst nullableType = ZodNullable.create;\nconst preprocessType = ZodEffects.createWithPreprocess;\nconst pipelineType = ZodPipeline.create;\nconst ostring = () => stringType().optional();\nconst onumber = () => numberType().optional();\nconst oboolean = () => booleanType().optional();\nexport const coerce = {\n    string: ((arg) => ZodString.create({ ...arg, coerce: true })),\n    number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),\n    boolean: ((arg) => ZodBoolean.create({\n        ...arg,\n        coerce: true,\n    })),\n    bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),\n    date: ((arg) => ZodDate.create({ ...arg, coerce: true })),\n};\nexport { anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, dateType as date, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, instanceOfType as instanceof, intersectionType as intersection, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, recordType as record, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, voidType as void, };\nexport const NEVER = INVALID;\n","export * from \"./core.js\";\nexport * from \"./parse.js\";\nexport * from \"./errors.js\";\nexport * from \"./schemas.js\";\nexport * from \"./memoizer.js\";\nexport * from \"./checks.js\";\nexport * from \"./versions.js\";\nexport * as util from \"./util.js\";\nexport { toZod } from \"./util.js\";\nexport * as regexes from \"./regexes.js\";\nexport * as locales from \"../locales/index.js\";\nexport * from \"./registries.js\";\nexport * from \"./doc.js\";\nexport * from \"./compile.js\";\nexport * from \"./api.js\";\nexport * from \"./to-json-schema.js\";\nexport { toJSONSchema } from \"./json-schema-processors.js\";\nexport { JSONSchemaGenerator } from \"./json-schema-generator.js\";\nexport * as JSONSchema from \"./json-schema.js\";\n","import { globalConfig } from \"./core.js\";\n// functions\nexport function assertEqual(val) {\n    return val;\n}\nexport function assertNotEqual(val) {\n    return val;\n}\nexport function toZod() {\n    return (schema) => schema;\n}\nexport function assertIs(_arg) { }\nexport function assertNever(_x) {\n    throw new Error(\"Unexpected value in exhaustive check\");\n}\nexport function assert(_) { }\nexport function getEnumValues(entries) {\n    const numericValues = Object.values(entries).filter((v) => typeof v === \"number\");\n    const values = Object.entries(entries)\n        .filter(([k, _]) => numericValues.indexOf(+k) === -1)\n        .map(([_, v]) => v);\n    return values;\n}\nexport function joinValues(array, separator = \"|\") {\n    return array.map((val) => stringifyPrimitive(val)).join(separator);\n}\nexport function jsonStringifyReplacer(_, value) {\n    if (typeof value === \"bigint\")\n        return value.toString();\n    return value;\n}\n// the accessor lives on a shared prototype: an own accessor makes every box a dictionary-mode object (~360 B and a slow load per read against ~100 B and an inlined getter here)\nclass Cached {\n    constructor(getter) {\n        this._getter = getter;\n        this._value = undefined;\n    }\n    get value() {\n        const getter = this._getter;\n        if (getter !== undefined) {\n            this._value = getter();\n            this._getter = undefined;\n        }\n        return this._value;\n    }\n}\nexport function cached(getter) {\n    return new Cached(getter);\n}\nexport function nullish(input) {\n    return input === null || input === undefined;\n}\nexport function cleanRegex(source) {\n    const start = source.startsWith(\"^\") ? 1 : 0;\n    const end = source.endsWith(\"$\") ? source.length - 1 : source.length;\n    return source.slice(start, end);\n}\nexport function floatSafeRemainder(val, step) {\n    const ratio = val / step;\n    const roundedRatio = Math.round(ratio);\n    // `val` and `step` each round to a double before the division rounds again, so a true decimal multiple's quotient can sit up to 1.5 of these scaled epsilons from the integer. A 1x tolerance therefore rejected 2.03 as a multiple of 0.07; 4x covers the worst case with margin.\n    const tolerance = 4 * Number.EPSILON * Math.max(Math.abs(ratio), 1);\n    if (Math.abs(ratio - roundedRatio) < tolerance)\n        return 0;\n    return ratio - roundedRatio;\n}\nconst EVALUATING = /* @__PURE__*/ Symbol(\"evaluating\");\nexport function defineLazy(object, key, getter) {\n    let value = undefined;\n    Object.defineProperty(object, key, {\n        get() {\n            if (value === EVALUATING) {\n                // Circular reference detected, return undefined to break the cycle\n                return undefined;\n            }\n            if (value === undefined) {\n                value = EVALUATING;\n                value = getter();\n            }\n            return value;\n        },\n        set(v) {\n            Object.defineProperty(object, key, {\n                value: v,\n                // configurable: true,\n            });\n            // object[key] = v;\n        },\n        configurable: true,\n    });\n}\nexport function objectClone(obj) {\n    return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));\n}\nexport function assignProp(target, prop, value) {\n    Object.defineProperty(target, prop, {\n        value,\n        writable: true,\n        enumerable: true,\n        configurable: true,\n    });\n}\n/**\n * Whichever object a def's `shape` currently answers from: the one the caller passed until the first read, the frozen copy after it.\n *\n * Its keys and descriptors read without invoking anything, which is what lets a discriminated union check its discriminator, and the cycle walk read a shape, without resolving a getter that references the schema being constructed. A def that answers `shape` from an accessor of its own has none.\n */\nexport function rawShape(def) {\n    const desc = Object.getOwnPropertyDescriptor(def, \"shape\");\n    return desc?.get ? desc.get.raw : desc?.value;\n}\n// where a builder reads its source's keys and descriptors, resolving only a shape a def answers for itself. A shape resolves by object spread, so only its enumerable keys are ever part of it.\nfunction sourceShape(schema) {\n    return rawShape(schema._zod.def) ?? schema._zod.def.shape;\n}\n// a key whose value is not settled yet, self-caching so every read after the first gets the same one\nfunction deferProp(target, key, getter) {\n    Object.defineProperty(target, key, {\n        get() {\n            const value = getter();\n            assignProp(this, key, value);\n            return value;\n        },\n        enumerable: true,\n        configurable: true,\n    });\n}\n// Writes a settled key. A plain assignment is much cheaper than `defineProperty` and produces the same descriptor, but it runs whatever setter already answers to the key — an accessor this shape deferred, or an inherited one, which `__proto__` has on every object and prototype pollution can add for any name.\nfunction putProp(target, key, value) {\n    if (key in target)\n        assignProp(target, key, value);\n    else\n        target[key] = value;\n}\n/**\n * Copies `keys` of `source`'s shape onto `target`, each value passed through `wrap`.\n *\n * A key the source has resolved is copied through now, so the derived shape states it outright and nothing has to resolve it to learn what it holds. A key the source still defers stays deferred, and reads back through the source's own `shape`, so it resolves once and both shapes get that one schema.\n */\nfunction mirrorShape(target, source, keys, wrap) {\n    const raw = sourceShape(source);\n    for (const key of keys) {\n        const desc = Object.getOwnPropertyDescriptor(raw, key);\n        if (!desc.enumerable)\n            continue;\n        if (desc.get) {\n            deferProp(target, key, () => {\n                const value = source._zod.def.shape[key];\n                return wrap ? wrap(value, key) : value;\n            });\n        }\n        else\n            putProp(target, key, wrap ? wrap(desc.value, key) : desc.value);\n    }\n}\n// same, for a plain shape a caller passed rather than a schema's\nfunction mirrorProps(target, source) {\n    for (const key of Reflect.ownKeys(source)) {\n        const desc = Object.getOwnPropertyDescriptor(source, key);\n        if (!desc.enumerable)\n            continue;\n        if (desc.get)\n            deferProp(target, key, () => source[key]);\n        else\n            putProp(target, key, desc.value);\n    }\n}\nexport function mergeDefs(...defs) {\n    const mergedDescriptors = {};\n    for (const def of defs) {\n        const descriptors = Object.getOwnPropertyDescriptors(def);\n        Object.assign(mergedDescriptors, descriptors);\n    }\n    return Object.defineProperties({}, mergedDescriptors);\n}\nexport function cloneDef(schema) {\n    return mergeDefs(schema._zod.def);\n}\nexport function getElementAtPath(obj, path) {\n    if (!path)\n        return obj;\n    return path.reduce((acc, key) => acc?.[key], obj);\n}\nexport function promiseAllObject(promisesObj) {\n    const keys = Object.keys(promisesObj);\n    const promises = keys.map((key) => promisesObj[key]);\n    return Promise.all(promises).then((results) => {\n        const resolvedObj = {};\n        for (let i = 0; i < keys.length; i++) {\n            resolvedObj[keys[i]] = results[i];\n        }\n        return resolvedObj;\n    });\n}\nexport function randomString(length = 10) {\n    const chars = \"abcdefghijklmnopqrstuvwxyz\";\n    let str = \"\";\n    for (let i = 0; i < length; i++) {\n        str += chars[Math.floor(Math.random() * chars.length)];\n    }\n    return str;\n}\nexport function esc(str) {\n    return JSON.stringify(str);\n}\nexport function slugify(input) {\n    return input\n        .toLowerCase()\n        .trim()\n        .replace(/[^\\w\\s-]/g, \"\")\n        .replace(/[\\s_-]+/g, \"-\")\n        .replace(/^-+|-+$/g, \"\");\n}\nexport const captureStackTrace = (\"captureStackTrace\" in Error ? Error.captureStackTrace : (..._args) => { });\nexport function isObject(data) {\n    return typeof data === \"object\" && data !== null && !Array.isArray(data);\n}\nexport const allowsEval = /* @__PURE__*/ cached(() => {\n    // Skip the probe under `jitless`: strict CSPs report the caught `new Function` as a `securitypolicyviolation` even though the throw is swallowed.\n    if (globalConfig.jitless) {\n        return false;\n    }\n    // @ts-ignore\n    if (typeof navigator !== \"undefined\" && navigator?.userAgent?.includes(\"Cloudflare\")) {\n        return false;\n    }\n    try {\n        const F = Function;\n        new F(\"\");\n        return true;\n    }\n    catch (_) {\n        return false;\n    }\n});\nexport function isPlainObject(o) {\n    if (isObject(o) === false)\n        return false;\n    // modified constructor\n    const ctor = o.constructor;\n    if (ctor === undefined)\n        return true;\n    if (typeof ctor !== \"function\")\n        return true;\n    // modified prototype\n    const prot = ctor.prototype;\n    if (isObject(prot) === false)\n        return false;\n    // ctor doesn't have static `isPrototypeOf`\n    if (Object.prototype.hasOwnProperty.call(prot, \"isPrototypeOf\") === false) {\n        return false;\n    }\n    return true;\n}\nexport function shallowClone(o) {\n    if (isPlainObject(o))\n        return { ...o };\n    if (Array.isArray(o))\n        return [...o];\n    if (o instanceof Map)\n        return new Map(o);\n    if (o instanceof Set)\n        return new Set(o);\n    return o;\n}\nexport function numKeys(data) {\n    let keyCount = 0;\n    for (const key in data) {\n        if (Object.prototype.hasOwnProperty.call(data, key)) {\n            keyCount++;\n        }\n    }\n    return keyCount;\n}\nexport const getParsedType = (data) => {\n    const t = typeof data;\n    switch (t) {\n        case \"undefined\":\n            return \"undefined\";\n        case \"string\":\n            return \"string\";\n        case \"number\":\n            return Number.isNaN(data) ? \"nan\" : \"number\";\n        case \"boolean\":\n            return \"boolean\";\n        case \"function\":\n            return \"function\";\n        case \"bigint\":\n            return \"bigint\";\n        case \"symbol\":\n            return \"symbol\";\n        case \"object\":\n            if (Array.isArray(data)) {\n                return \"array\";\n            }\n            if (data === null) {\n                return \"null\";\n            }\n            if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n                return \"promise\";\n            }\n            if (typeof Map !== \"undefined\" && data instanceof Map) {\n                return \"map\";\n            }\n            if (typeof Set !== \"undefined\" && data instanceof Set) {\n                return \"set\";\n            }\n            if (typeof Date !== \"undefined\" && data instanceof Date) {\n                return \"date\";\n            }\n            // @ts-ignore\n            if (typeof File !== \"undefined\" && data instanceof File) {\n                return \"file\";\n            }\n            return \"object\";\n        default:\n            throw new Error(`Unknown data type: ${t}`);\n    }\n};\nexport const propertyKeyTypes = /* @__PURE__*/ new Set([\"string\", \"number\", \"symbol\"]);\nexport const primitiveTypes = /* @__PURE__*/ new Set([\n    \"string\",\n    \"number\",\n    \"bigint\",\n    \"boolean\",\n    \"symbol\",\n    \"undefined\",\n]);\nexport function escapeRegex(str) {\n    return str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n// zod-specific utils\nexport function clone(inst, def, params) {\n    const cl = new inst._zod.constr(def ?? inst._zod.def);\n    if (!def || params?.parent)\n        cl._zod.parent = inst;\n    return cl;\n}\nexport function normalizeParams(_params) {\n    const params = _params;\n    if (!params)\n        return {};\n    if (typeof params === \"string\")\n        return { error: () => params };\n    if (params?.message !== undefined) {\n        if (params?.error !== undefined)\n            throw new Error(\"Cannot specify both `message` and `error` params\");\n        params.error = params.message;\n    }\n    delete params.message;\n    if (typeof params.error === \"string\")\n        return { ...params, error: () => params.error };\n    return params;\n}\nexport function createTransparentProxy(getter) {\n    let target;\n    return new Proxy({}, {\n        get(_, prop, receiver) {\n            target ?? (target = getter());\n            return Reflect.get(target, prop, receiver);\n        },\n        set(_, prop, value, receiver) {\n            target ?? (target = getter());\n            return Reflect.set(target, prop, value, receiver);\n        },\n        has(_, prop) {\n            target ?? (target = getter());\n            return Reflect.has(target, prop);\n        },\n        deleteProperty(_, prop) {\n            target ?? (target = getter());\n            return Reflect.deleteProperty(target, prop);\n        },\n        ownKeys(_) {\n            target ?? (target = getter());\n            return Reflect.ownKeys(target);\n        },\n        getOwnPropertyDescriptor(_, prop) {\n            target ?? (target = getter());\n            return Reflect.getOwnPropertyDescriptor(target, prop);\n        },\n        defineProperty(_, prop, descriptor) {\n            target ?? (target = getter());\n            return Reflect.defineProperty(target, prop, descriptor);\n        },\n    });\n}\nexport function stringifyPrimitive(value) {\n    if (typeof value === \"bigint\")\n        return value.toString() + \"n\";\n    if (typeof value === \"string\")\n        return `\"${value}\"`;\n    return `${value}`;\n}\nexport function optionalKeys(shape) {\n    return Object.keys(shape).filter((k) => {\n        return shape[k]._zod.optin !== undefined && shape[k]._zod.optout === \"optional\";\n    });\n}\n// Wrapped in a `@__PURE__` IIFE: esbuild never tree-shakes a top-level initializer that contains a member access on `Number`, so the bare object literal survived into every bundle.\nexport const NUMBER_FORMAT_RANGES = /*@__PURE__*/ (() => ({\n    safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],\n    int32: [-2147483648, 2147483647],\n    uint32: [0, 4294967295],\n    float32: [-3.4028234663852886e38, 3.4028234663852886e38],\n    float64: [-Number.MAX_VALUE, Number.MAX_VALUE],\n}))();\nexport const BIGINT_FORMAT_RANGES = {\n    int64: [/* @__PURE__*/ BigInt(\"-9223372036854775808\"), /* @__PURE__*/ BigInt(\"9223372036854775807\")],\n    uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt(\"18446744073709551615\")],\n};\nexport function pick(schema, mask) {\n    const currDef = schema._zod.def;\n    const checks = currDef.checks;\n    const hasChecks = checks && checks.length > 0;\n    if (hasChecks) {\n        throw new Error(\".pick() cannot be used on object schemas containing refinements\");\n    }\n    const newShape = {};\n    mirrorShape(newShape, schema, maskedKeys(schema, mask));\n    return clone(schema, mergeDefs(currDef, { shape: newShape, checks: [] }));\n}\n// the mask keys that select something, checked against the source's shape without resolving it\nfunction maskedKeys(schema, mask) {\n    const raw = sourceShape(schema);\n    const keys = [];\n    // `for...in` skips symbols, so a symbol in the mask would select nothing\n    for (const key of Reflect.ownKeys(mask)) {\n        if (!Object.getOwnPropertyDescriptor(raw, key)?.enumerable) {\n            throw new Error(`Unrecognized key: \"${String(key)}\"`);\n        }\n        if (mask[key])\n            keys.push(key);\n    }\n    return keys;\n}\nexport function omit(schema, mask) {\n    const currDef = schema._zod.def;\n    const checks = currDef.checks;\n    const hasChecks = checks && checks.length > 0;\n    if (hasChecks) {\n        throw new Error(\".omit() cannot be used on object schemas containing refinements\");\n    }\n    const omitted = new Set(maskedKeys(schema, mask));\n    const newShape = {};\n    mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)).filter((key) => !omitted.has(key)));\n    return clone(schema, mergeDefs(currDef, { shape: newShape, checks: [] }));\n}\nexport function extend(schema, shape) {\n    if (!isPlainObject(shape)) {\n        throw new Error(\"Invalid input to extend: expected a plain object\");\n    }\n    const checks = schema._zod.def.checks;\n    const hasChecks = checks && checks.length > 0;\n    if (hasChecks) {\n        // Only throw if new shape overlaps with existing shape. Use getOwnPropertyDescriptor to check key existence without accessing values\n        const existingShape = sourceShape(schema);\n        for (const key of Reflect.ownKeys(shape)) {\n            if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {\n                throw new Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\");\n            }\n        }\n    }\n    return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));\n}\n// the source's keys, then the caller's overlaid on top\nfunction extended(schema, shape) {\n    const newShape = {};\n    mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)));\n    mirrorProps(newShape, shape);\n    return newShape;\n}\nexport function safeExtend(schema, shape) {\n    if (!isPlainObject(shape)) {\n        throw new Error(\"Invalid input to safeExtend: expected a plain object\");\n    }\n    return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));\n}\nexport function merge(a, b) {\n    if (!b?._zod?.def) {\n        throw new Error(\"Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.\");\n    }\n    if (a._zod.def.checks?.length) {\n        throw new Error(\".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.\");\n    }\n    const newShape = {};\n    mirrorShape(newShape, a, Reflect.ownKeys(sourceShape(a)));\n    mirrorShape(newShape, b, Reflect.ownKeys(sourceShape(b)));\n    const def = mergeDefs(a._zod.def, {\n        shape: newShape,\n        get catchall() {\n            return b._zod.def.catchall;\n        },\n        checks: b._zod.def.checks ?? [],\n    });\n    return clone(a, def);\n}\nexport function partial(Class, schema, mask, name = \"partial\") {\n    const currDef = schema._zod.def;\n    const checks = currDef.checks;\n    const hasChecks = checks && checks.length > 0;\n    if (hasChecks) {\n        throw new Error(`.${name}() cannot be used on object schemas containing refinements`);\n    }\n    const selected = mask ? new Set(maskedKeys(schema, mask)) : undefined;\n    const newShape = {};\n    mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), Class &&\n        ((value, key) => (selected && !selected.has(key) ? value : new Class({ type: \"optional\", innerType: value }))));\n    return clone(schema, mergeDefs(schema._zod.def, { shape: newShape, checks: [] }));\n}\nexport function required(Class, schema, mask) {\n    const selected = mask ? new Set(maskedKeys(schema, mask)) : undefined;\n    const newShape = {};\n    mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), (value, key) => \n    // overwrite with non-optional\n    selected && !selected.has(key) ? value : new Class({ type: \"nonoptional\", innerType: value }));\n    return clone(schema, mergeDefs(schema._zod.def, { shape: newShape }));\n}\n// invalid_type | too_big | too_small | invalid_format | not_multiple_of | unrecognized_keys | invalid_union | invalid_key | invalid_element | invalid_value | custom\nexport function aborted(x, startIndex = 0) {\n    if (x.aborted === true)\n        return true;\n    for (let i = startIndex; i < x.issues.length; i++) {\n        if (x.issues[i]?.continue !== true) {\n            return true;\n        }\n    }\n    return false;\n}\n// Checks for explicit abort (continue === false), as opposed to implicit abort (continue === undefined). Used to respect `abort: true` in .refine() even for checks that have a `when` function.\nexport function explicitlyAborted(x, startIndex = 0) {\n    if (x.aborted === true)\n        return true;\n    for (let i = startIndex; i < x.issues.length; i++) {\n        if (x.issues[i]?.continue === false) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function prefixIssues(path, issues) {\n    return issues.map((iss) => {\n        var _a;\n        (_a = iss).path ?? (_a.path = []);\n        iss.path.unshift(path);\n        return iss;\n    });\n}\nexport function unwrapMessage(message) {\n    return typeof message === \"string\" ? message : message?.message;\n}\n/* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */\n/** The leading size checks of `defChecks` that set an upper bound, each paired with it. */\nexport function sizeCaps(defChecks) {\n    const caps = [];\n    for (const ch of defChecks ?? []) {\n        const d = ch._zod.def;\n        // a later check may rewrite the value\n        if (!/_(length|size)$|_equals$/.test(d.check))\n            break;\n        const max = d.maximum ?? d.length ?? d.size;\n        if (max >= 0)\n            caps.push([max, ch]);\n    }\n    return caps;\n}\nexport function attachSchema(issues, start, inst) {\n    var _a;\n    for (let i = start; i < issues.length; i++) {\n        (_a = issues[i]).schema ?? (_a.schema = inst);\n    }\n}\nexport function finalizeIssue(iss, ctx, config) {\n    var _a;\n    // A schema that raised an issue itself owns it outright, and outranks any stamp an enclosing check left in `attachSchema`. String formats and z.custom() are schema and check at once, so when they act as a check they defer to that stamp instead.\n    const traits = iss.inst?._zod?.traits;\n    if (traits?.has(\"$ZodType\")) {\n        if (traits.has(\"$ZodCheck\"))\n            (_a = iss).schema ?? (_a.schema = iss.inst);\n        else\n            iss.schema = iss.inst;\n    }\n    // Decreasing specificity, first map to return a message wins. `inst` is whatever raised the issue, so a check's own map outranks the owning schema's.\n    const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : undefined;\n    const message = iss.message\n        ? iss.message\n        : (unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??\n            unwrapMessage(schemaError?.(iss)) ??\n            unwrapMessage(ctx?.error?.(iss)) ??\n            unwrapMessage(config.customError?.(iss)) ??\n            unwrapMessage(config.localeError?.(iss)) ??\n            \"Invalid input\");\n    // an explicit own-key copy beats object rest with excluded keys, which v8 routes through a generic runtime call; Object.keys rather than for-in so an issue pushed with a prototype does not leak inherited keys, and an own __proto__ key is dropped rather than assigned through the setter\n    const full = {};\n    for (const k of Object.keys(iss)) {\n        if (k === \"inst\" || k === \"schema\" || k === \"continue\" || k === \"input\" || k === \"__proto__\")\n            continue;\n        full[k] = iss[k];\n    }\n    full.path ?? (full.path = []);\n    full.message = message;\n    if (ctx?.reportInput) {\n        full.input = iss.input;\n    }\n    return full;\n}\nexport function getSizableOrigin(input) {\n    if (input instanceof Set)\n        return \"set\";\n    if (input instanceof Map)\n        return \"map\";\n    // @ts-ignore\n    if (input instanceof File)\n        return \"file\";\n    return \"unknown\";\n}\nconst highSurrogate = /[\\uD800-\\uDBFF]/;\n// Code points in `str`: a surrogate pair counts once, a lone surrogate as itself. Hand-rolled because the string iterator allocates and runs ~250x slower on this path; the regex probe exits ~50x quicker for a string with no astral characters.\nexport function codePointLength(str) {\n    const units = str.length;\n    if (!highSurrogate.test(str))\n        return units;\n    let count = units;\n    for (let i = 0; i < units - 1; i++) {\n        if ((str.charCodeAt(i) & 0xfc00) === 0xd800 && (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {\n            count--;\n            i++;\n        }\n    }\n    return count;\n}\nexport function getLengthableOrigin(input) {\n    if (Array.isArray(input))\n        return \"array\";\n    if (typeof input === \"string\")\n        return \"string\";\n    return \"unknown\";\n}\nexport function parsedType(data) {\n    const t = typeof data;\n    switch (t) {\n        case \"number\": {\n            return Number.isNaN(data) ? \"nan\" : \"number\";\n        }\n        case \"object\": {\n            if (data === null) {\n                return \"null\";\n            }\n            if (Array.isArray(data)) {\n                return \"array\";\n            }\n            const obj = data;\n            if (obj && Object.getPrototypeOf(obj) !== Object.prototype && \"constructor\" in obj && obj.constructor) {\n                return obj.constructor.name;\n            }\n        }\n    }\n    return t;\n}\nexport function issue(...args) {\n    const [iss, input, inst] = args;\n    if (typeof iss === \"string\") {\n        return {\n            message: iss,\n            code: \"custom\",\n            input,\n            inst,\n        };\n    }\n    return { ...iss };\n}\nexport function cleanEnum(obj) {\n    return Object.entries(obj)\n        .filter(([k, _]) => {\n        // return true if NaN, meaning it's not a number, thus a string key\n        return Number.isNaN(Number.parseInt(k, 10));\n    })\n        .map((el) => el[1]);\n}\n// Codec utility functions\nexport function base64ToUint8Array(base64) {\n    const binaryString = atob(base64);\n    const bytes = new Uint8Array(binaryString.length);\n    for (let i = 0; i < binaryString.length; i++) {\n        bytes[i] = binaryString.charCodeAt(i);\n    }\n    return bytes;\n}\nexport function uint8ArrayToBase64(bytes) {\n    let binaryString = \"\";\n    for (let i = 0; i < bytes.length; i++) {\n        binaryString += String.fromCharCode(bytes[i]);\n    }\n    return btoa(binaryString);\n}\nexport function base64urlToUint8Array(base64url) {\n    const base64 = base64url.replace(/-/g, \"+\").replace(/_/g, \"/\");\n    const padding = \"=\".repeat((4 - (base64.length % 4)) % 4);\n    return base64ToUint8Array(base64 + padding);\n}\nexport function uint8ArrayToBase64url(bytes) {\n    return uint8ArrayToBase64(bytes).replace(/\\+/g, \"-\").replace(/\\//g, \"_\").replace(/=/g, \"\");\n}\nexport function hexToUint8Array(hex) {\n    const cleanHex = hex.replace(/^0x/, \"\");\n    if (cleanHex.length % 2 !== 0) {\n        throw new Error(\"Invalid hex string length\");\n    }\n    const bytes = new Uint8Array(cleanHex.length / 2);\n    for (let i = 0; i < cleanHex.length; i += 2) {\n        bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);\n    }\n    return bytes;\n}\nexport function uint8ArrayToHex(bytes) {\n    return Array.from(bytes)\n        .map((b) => b.toString(16).padStart(2, \"0\"))\n        .join(\"\");\n}\n// instanceof\nexport class Class {\n    constructor(..._args) { }\n}\n//////////    PROTOTYPE INSTALLERS     //////////\n//\n// Members live on the prototype and materialize per instance on first read, which keeps own-property count under the step where V8 stops using inline slots. Changing anything here means re-measuring runtime, memory and bundle size together — see \"The three axes\" in AGENTS.md.\n/**\n * Installs a trait's members on its prototype. Each value builds that member for the instance on first read; the built value shadows the accessor as an own property, so a detached `const { parse } = schema` keeps working.\n *\n * Call this from a `proto` initializer, which runs once per prototype — never per instance.\n */\nexport function members(proto, table) {\n    for (const key in table) {\n        const desc = Object.getOwnPropertyDescriptor(table, key);\n        // a getter installs as written, so it stays live: `description` reads through to the registry on every access. not enumerable: an object literal's is, and a prototype member never was\n        if (desc.get)\n            Object.defineProperty(proto, key, { ...desc, enumerable: false });\n        // a method materializes bound on first read, which is what keeps a detached member working: `const opt = schema.optional; opt()`\n        else\n            defineBound(proto, key, desc.value);\n    }\n}\n/** Shadows a prototype member with an own value, so a getter that builds from the instance runs once. */\nexport function own(inst, key, value, enumerable = true) {\n    Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value });\n    return value;\n}\n/** Like {@link own}, for a member that was never an own data property and has to stay out of `Object.keys`. */\nexport function hide(inst, key, value) {\n    return own(inst, key, value, false);\n}\n/** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */\nexport /*@__NO_SIDE_EFFECTS__*/ function derived(computes, table) {\n    for (const key in computes) {\n        const compute = computes[key];\n        // an object literal's accessor is configurable and enumerable, and `members` copies the descriptor as written\n        Object.defineProperty(table, key, {\n            configurable: true,\n            enumerable: true,\n            get() {\n                return own(this, key, compute(this));\n            },\n            set(value) {\n                own(this, key, value);\n            },\n        });\n    }\n    return table;\n}\nfunction defineBound(proto, key, fn) {\n    Object.defineProperty(proto, key, {\n        configurable: true,\n        get() {\n            // vitest's spyOn calls a prototype getter bare to find the function it wraps, so a nullish receiver answers the raw method\n            return this == null ? fn : own(this, key, fn.bind(this));\n        },\n        set(value) {\n            own(this, key, value);\n        },\n    });\n}\n/** Returns the prototype to install on, or `undefined` if this group is already installed on it. */\nfunction claim(inst, sentinel) {\n    const proto = Object.getPrototypeOf(inst);\n    // Runs on every construction, so `in` rather than the costlier `hasOwnProperty.call`. Sentinels are keys the group itself defines.\n    return sentinel in proto ? undefined : proto;\n}\n// The internals whose init chain is installing. A second call for the same one is a derived constructor overriding its base, so it must not construct another schema in between or the override is dropped.\nlet installing;\n// Set while a getter is running, so a value that resolved through a recursion break is not memoized. One shared descriptor shadows the key for the duration, which costs no per-key allocation.\nlet broke = false;\nconst breaker = {\n    configurable: true,\n    get() {\n        broke = true;\n        return undefined;\n    },\n};\n/**\n * Installs a lazily-derived internal on the `_zod` prototype of `inst`'s\n * constructor, computed from the internals object itself and cached there on\n * first read. One accessor per constructor rather than one per instance.\n */\nexport function defineLazyInternal(inst, key, compute) {\n    const proto = Object.getPrototypeOf(inst._zod);\n    if (key in proto && installing !== inst._zod) {\n        // A repeat construction: everything is installed already. Cleared here so the reference is not held past the first construction of every type.\n        installing = undefined;\n        return;\n    }\n    installing = inst._zod;\n    Object.defineProperty(proto, key, {\n        configurable: true,\n        get() {\n            // Shadowed before computing so a re-entrant read from a recursive schema resolves to undefined instead of running the getter again.\n            Object.defineProperty(this, key, breaker);\n            const outer = broke;\n            broke = false;\n            try {\n                const value = compute(this);\n                // A result that resolved through a recursion break is recomputed once the graph is complete; everything else memoizes, undefined included.\n                if (broke)\n                    delete this[key];\n                else\n                    Object.defineProperty(this, key, { configurable: true, writable: true, value });\n                broke = broke || outer;\n                return value;\n            }\n            catch (err) {\n                // A compute that threw memoizes nothing, so a later read runs it again and fails the same way. The shadow goes with it, since leaving it installed would answer undefined for every later read.\n                delete this[key];\n                broke = broke || outer;\n                throw err;\n            }\n        },\n        set(value) {\n            Object.defineProperty(this, key, { configurable: true, writable: true, value });\n        },\n    });\n}\n/**\n * Installs `key` on `inst`'s prototype, computed by `make` on first read and cached there as an own\n * data property. One accessor per constructor rather than one per instance, because an own accessor\n * puts every instance after the first into v8 dictionary mode. The key doubles as the sentinel.\n */\nexport function installLazyProp(inst, key, make, enumerable) {\n    const proto = claim(inst, key);\n    if (!proto)\n        return;\n    Object.defineProperty(proto, key, {\n        configurable: true,\n        get() {\n            // Shadowed before computing, so a re-entrant read from a self-referential shape resolves to undefined instead of running the getter again. A data property rather than an accessor: an own accessor is the dictionary-mode transition this exists to avoid.\n            const desc = { configurable: true, writable: true, enumerable, value: undefined };\n            Object.defineProperty(this, key, desc);\n            // a compute that throws leaves the shadow behind, so later reads answer undefined instead of re-throwing; `defineLazy` did the same, and `defineLazyInternal`'s delete-on-catch would cost bytes in every bundle for a case only a throwing user getter reaches\n            desc.value = make(this);\n            Object.defineProperty(this, key, desc);\n            return desc.value;\n        },\n        set(value) {\n            Object.defineProperty(this, key, { configurable: true, writable: true, enumerable, value });\n        },\n    });\n}\n/** Marks the thunk `_catch` synthesises for a constant catch value. `Function.length` cannot tell that thunk from a user callback — rest and defaulted parameters both report arity 0 — and a user callback reads `ctx.error`, whose issues only finalize correctly against the caller's per-parse error map. Provenance can say what arity cannot. A plain string key rather than `Symbol.for`, whose call at module scope no bundler can prove pure — the same shape that anchored `urlCanParse` into every build. */\nexport const CONSTANT_CATCH = \"~constantCatch\";\n/** Wraps a constant catch value in a thunk tagged with {@link CONSTANT_CATCH}. */\nexport function constantCatch(value) {\n    const fn = () => value;\n    fn[CONSTANT_CATCH] = true;\n    return fn;\n}\n","var _a;\nimport { members as installMembers } from \"./util.js\";\n/** A special constant with type `never` */\nexport const NEVER = /*@__PURE__*/ Object.freeze({\n    status: \"aborted\",\n});\n/* Shared descriptor for installing `_zod`; defineProperty reads it\n * synchronously, so reusing one object avoids a per-instance allocation. */\nconst _zodDesc = { value: undefined, enumerable: false };\n// null where suppressing the capture would be unrecoverable: `parse()` puts the frames back with `captureStackTrace`, so without it the throw would lose its stack. also latched to null once `stackTraceLimit` proves unassignable, which a realm can do at any point by hardening Error\nlet _E = \"captureStackTrace\" in Error ? Error : null;\n// v8 captures a stack trace inside the Error constructor, which dominates a failed parse; costs only the frames, and parse() restores those. the constructor must RUN: Object.create is cheaper and passes instanceof, but Error.isError and util.types.isNativeError check an internal slot\nfunction newError(Definition) {\n    const E = _E;\n    if (E) {\n        const saved = E.stackTraceLimit;\n        if (typeof saved === \"number\") {\n            try {\n                E.stackTraceLimit = 0;\n            }\n            catch {\n                _E = null;\n                return new Definition();\n            }\n            try {\n                return new Definition();\n            }\n            finally {\n                E.stackTraceLimit = saved;\n            }\n        }\n    }\n    return new Definition();\n}\nexport /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, \n/** This trait's members, installed once on every prototype that composes it. They cannot be declared in the initializer above: that runs per instance, and the prototype is shared. */\nproto, params) {\n    // Prototype for this constructor's `_zod` internals. Lazily-derived fields (`values`, `pattern`, `optin`, …) install here once rather than as an accessor on every instance.\n    const zodProto = {};\n    // Assigning the fields in the constructor body is what gives instances in-object slots; building the object literally and reparenting it costs a second allocation and a generic property copy.\n    function Internals(def) {\n        this.def = def;\n        this.constr = _;\n        this.traits = new Set();\n    }\n    Internals.prototype = zodProto;\n    const protoMembers = proto;\n    // One trait's members land on every prototype whose chain composes it, so the answer is per prototype rather than per trait.\n    const initialized = protoMembers && new WeakSet();\n    function init(inst, def) {\n        if (!inst._zod) {\n            _zodDesc.value = new Internals(def);\n            try {\n                Object.defineProperty(inst, \"_zod\", _zodDesc);\n            }\n            finally {\n                // Cleared even on throw, so the shared descriptor never leaks one instance's internals into the next.\n                _zodDesc.value = undefined;\n            }\n        }\n        else if (inst._zod.traits.has(name)) {\n            return;\n        }\n        inst._zod.traits.add(name);\n        initializer(inst, def);\n        if (initialized) {\n            // `super(def)` from a user subclass gives `this` a prototype the subclass owns, and installing there would overwrite whatever the subclass declared. `constr` built the instance, so its prototype is the one below the subclass's that should carry the members. A receiver whose chain never reaches that prototype installs on its own, which for a plain object handed straight to `init` means `Object.prototype` — unchanged from before.\n            const own = Object.getPrototypeOf(inst);\n            const ctorProto = inst._zod.constr.prototype;\n            let up = own;\n            while (up && up !== ctorProto)\n                up = Object.getPrototypeOf(up);\n            const target = up ?? own;\n            if (!initialized.has(target)) {\n                initialized.add(target);\n                installMembers(target, protoMembers);\n            }\n        }\n        // support prototype modifications; for-in avoids the array allocation of Object.keys on the (usually empty) prototype\n        const proto = _.prototype;\n        for (const k in proto) {\n            if (!Object.prototype.hasOwnProperty.call(proto, k))\n                continue;\n            if (!(k in inst)) {\n                inst[k] = proto[k].bind(inst);\n            }\n        }\n    }\n    // doesn't work if Parent has a constructor with arguments\n    const Parent = params?.Parent ?? Object;\n    class Definition extends Parent {\n    }\n    Object.defineProperty(Definition, \"name\", { value: name });\n    function _(def) {\n        const inst = params?.Parent ? newError(Definition) : this;\n        init(inst, def);\n        const deferred = inst._zod.deferred;\n        if (deferred) {\n            for (const fn of deferred) {\n                fn();\n            }\n            // Released: initializers run once, and the list would otherwise be retained for the schema's lifetime.\n            inst._zod.deferred = undefined;\n        }\n        // Global post-processor hook. Internal: installed by `import \"zod/compile\"` to enable AOT compilation for every constructed schema. Runs last, once the instance is fully built, because it hands the instance to compile(). The post-processor is expected to be reentrancy-guarded by its own implementation.\n        const pp = globalThis.__zod_globalConfig?.postProcessor;\n        if (pp)\n            pp(inst);\n        return inst;\n    }\n    Object.defineProperty(_, \"init\", { value: init });\n    Object.defineProperty(_, Symbol.hasInstance, {\n        value: (inst) => {\n            if (params?.Parent && inst instanceof params.Parent)\n                return true;\n            return inst?._zod?.traits?.has(name);\n        },\n    });\n    Object.defineProperty(_, \"name\", { value: name });\n    return _;\n}\n//////////////////////////////   UTILITIES   ///////////////////////////////////////\nexport const $brand = /*@__PURE__*/ Symbol(\"zod_brand\");\nexport class $ZodAsyncError extends Error {\n    constructor() {\n        super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);\n    }\n}\nexport class $ZodEncodeError extends Error {\n    constructor(name) {\n        super(`Encountered unidirectional transform during encode: ${name}`);\n        this.name = \"ZodEncodeError\";\n    }\n}\n(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});\nexport const globalConfig = globalThis.__zod_globalConfig;\nexport function config(newConfig) {\n    if (newConfig)\n        Object.assign(globalConfig, newConfig);\n    return globalConfig;\n}\n","import { $constructor } from \"./core.js\";\nimport * as util from \"./util.js\";\n/* Computing the message eagerly is expensive (pretty-printed JSON of all\n * issues), so defer it until first read. The accessor functions and\n * descriptors are shared across instances to keep error construction\n * cheap; the computed message is cached on the internals object. The\n * setter preserves plain assignment semantics for consumers that\n * overwrite `message`. */\nfunction _getMessage() {\n    const internals = this._zod;\n    internals.message ?? (internals.message = JSON.stringify(internals.def, util.jsonStringifyReplacer, 2));\n    return internals.message;\n}\nfunction _setMessage(value) {\n    this._zod.message = value;\n}\nconst _messageDesc = {\n    get: _getMessage,\n    set: _setMessage,\n    enumerable: true,\n    configurable: true,\n};\nconst _issuesDesc = { value: undefined, enumerable: false };\n/* Prototypes that already carry the lazy `toString`. Seeded with the\n * intrinsics so that `init` on a foreign object — it accepts any object —\n * can never install an accessor onto a prototype we do not own. */\nconst _installedToString = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);\nconst initializer = (inst, def) => {\n    inst.name = \"$ZodError\";\n    // `_zod` is already non-enumerable: $constructor's init defined it with this same descriptor\n    _issuesDesc.value = def;\n    Object.defineProperty(inst, \"issues\", _issuesDesc);\n    // Clear the shared slot; a retained `value` pins the last error's issues.\n    _issuesDesc.value = undefined;\n    Object.defineProperty(inst, \"message\", _messageDesc);\n    /* `toString` lives as a non-enumerable lazy getter on the shared\n     * prototype; on first access it caches a per-instance closure so\n     * detached usage still works. */\n    const proto = Object.getPrototypeOf(inst);\n    if (!_installedToString.has(proto)) {\n        _installedToString.add(proto);\n        Object.defineProperty(proto, \"toString\", {\n            configurable: true,\n            enumerable: false,\n            get() {\n                const value = () => this.message;\n                Object.defineProperty(this, \"toString\", { value, configurable: true, writable: true });\n                return value;\n            },\n            set(value) {\n                Object.defineProperty(this, \"toString\", { value, configurable: true, writable: true });\n            },\n        });\n    }\n};\nexport const $ZodError = $constructor(\"$ZodError\", initializer);\nexport const $ZodRealError = $constructor(\"$ZodError\", initializer, undefined, {\n    Parent: Error,\n});\n/** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member\n * (\"toString\", \"constructor\") would otherwise read through to the prototype, and assigning\n * \"__proto__\" would hit the setter instead of creating a key. */\nfunction node(obj, key, make) {\n    if (!Object.prototype.hasOwnProperty.call(obj, key)) {\n        if (key === \"__proto__\") {\n            Object.defineProperty(obj, key, { value: make(), writable: true, enumerable: true, configurable: true });\n        }\n        else {\n            obj[key] = make();\n        }\n    }\n    return obj[key];\n}\nexport function flattenError(error, mapper = (issue) => issue.message) {\n    const fieldErrors = {};\n    const formErrors = [];\n    for (const sub of error.issues) {\n        if (sub.path.length > 0) {\n            node(fieldErrors, sub.path[0], () => []).push(mapper(sub));\n        }\n        else {\n            formErrors.push(mapper(sub));\n        }\n    }\n    return { formErrors, fieldErrors };\n}\nexport function formatError(error, mapper = (issue) => issue.message) {\n    const fieldErrors = { _errors: [] };\n    const processError = (error, path = []) => {\n        for (const issue of error.issues) {\n            if (issue.code === \"invalid_union\" && issue.errors.length) {\n                issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));\n            }\n            else if (issue.code === \"invalid_key\") {\n                processError({ issues: issue.issues }, [...path, ...issue.path]);\n            }\n            else if (issue.code === \"invalid_element\") {\n                processError({ issues: issue.issues }, [...path, ...issue.path]);\n            }\n            else {\n                const fullpath = [...path, ...issue.path];\n                if (fullpath.length === 0) {\n                    fieldErrors._errors.push(mapper(issue));\n                }\n                else {\n                    let curr = fieldErrors;\n                    let i = 0;\n                    while (i < fullpath.length) {\n                        const el = fullpath[i];\n                        const terminal = i === fullpath.length - 1;\n                        // `_errors` is reserved by this legacy format, so merge a matching path segment into the current node instead of treating its array as a child.\n                        if (el === \"_errors\") {\n                            if (terminal)\n                                curr._errors.push(mapper(issue));\n                            i++;\n                            continue;\n                        }\n                        // A path element may collide with an inherited property name such as\n                        // \"__proto__\" or \"constructor\". Truthiness checks read the prototype\n                        // (so no node is created, then ._errors.push throws), and bracket\n                        // assignment of \"__proto__\" hits the setter instead of creating an\n                        // own key. Guard the read with hasOwnProperty and create the node\n                        // with defineProperty so any path element becomes a real own key.\n                        if (!Object.prototype.hasOwnProperty.call(curr, el)) {\n                            Object.defineProperty(curr, el, {\n                                value: { _errors: [] },\n                                enumerable: true,\n                                writable: true,\n                                configurable: true,\n                            });\n                        }\n                        const node = curr[el];\n                        if (terminal) {\n                            node._errors.push(mapper(issue));\n                        }\n                        curr = node;\n                        i++;\n                    }\n                }\n            }\n        }\n    };\n    processError(error);\n    return fieldErrors;\n}\nexport function treeifyError(error, mapper = (issue) => issue.message) {\n    const result = { errors: [] };\n    const processError = (error, path = []) => {\n        var _a;\n        for (const issue of error.issues) {\n            if (issue.code === \"invalid_union\" && issue.errors.length) {\n                // regular union error\n                issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));\n            }\n            else if (issue.code === \"invalid_key\") {\n                processError({ issues: issue.issues }, [...path, ...issue.path]);\n            }\n            else if (issue.code === \"invalid_element\") {\n                processError({ issues: issue.issues }, [...path, ...issue.path]);\n            }\n            else {\n                const fullpath = [...path, ...issue.path];\n                if (fullpath.length === 0) {\n                    result.errors.push(mapper(issue));\n                    continue;\n                }\n                let curr = result;\n                let i = 0;\n                while (i < fullpath.length) {\n                    const el = fullpath[i];\n                    const terminal = i === fullpath.length - 1;\n                    if (typeof el === \"string\") {\n                        curr.properties ?? (curr.properties = {});\n                        // el may collide with an inherited property name (\"__proto__\",\n                        // \"constructor\", ...); ??= reads the prototype so the node is never\n                        // created and curr.errors.push throws. Guard with hasOwnProperty and\n                        // create the node with defineProperty so \"__proto__\" becomes a real\n                        // own key rather than invoking the prototype setter.\n                        if (!Object.prototype.hasOwnProperty.call(curr.properties, el)) {\n                            Object.defineProperty(curr.properties, el, {\n                                value: { errors: [] },\n                                enumerable: true,\n                                writable: true,\n                                configurable: true,\n                            });\n                        }\n                        curr = curr.properties[el];\n                    }\n                    else {\n                        curr.items ?? (curr.items = []);\n                        (_a = curr.items)[el] ?? (_a[el] = { errors: [] });\n                        curr = curr.items[el];\n                    }\n                    if (terminal) {\n                        curr.errors.push(mapper(issue));\n                    }\n                    i++;\n                }\n            }\n        }\n    };\n    processError(error);\n    return result;\n}\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n *   issues: [\n *     {\n *       expected: 'string',\n *       code: 'invalid_type',\n *       path: [ 'username' ],\n *       message: 'Invalid input: expected string'\n *     },\n *     {\n *       expected: 'number',\n *       code: 'invalid_type',\n *       path: [ 'favoriteNumbers', 1 ],\n *       message: 'Invalid input: expected number'\n *     }\n *   ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n *   ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n *   ✖ Invalid input: expected number\n * ```\n */\nexport function toDotPath(_path) {\n    const segs = [];\n    const path = _path.map((seg) => (typeof seg === \"object\" ? seg.key : seg));\n    for (const seg of path) {\n        if (typeof seg === \"number\")\n            segs.push(`[${seg}]`);\n        else if (typeof seg === \"symbol\")\n            segs.push(`[${JSON.stringify(String(seg))}]`);\n        else if (/[^\\w$]/.test(seg))\n            segs.push(`[${JSON.stringify(seg)}]`);\n        else {\n            if (segs.length)\n                segs.push(\".\");\n            segs.push(seg);\n        }\n    }\n    return segs.join(\"\");\n}\nexport function prettifyError(error) {\n    const lines = [];\n    // sort by path length\n    const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);\n    // Process each issue\n    for (const issue of issues) {\n        lines.push(`✖ ${issue.message}`);\n        if (issue.path?.length)\n            lines.push(`  → at ${toDotPath(issue.path)}`);\n    }\n    // Convert Map to formatted string\n    return lines.join(\"\\n\");\n}\n","import * as core from \"./core.js\";\nimport * as errors from \"./errors.js\";\nimport * as util from \"./util.js\";\n// Always both keys, so the `_params` read site in `_parse` sees one object shape rather than two.\nfunction finalizeParams(callee, params) {\n    return { callee: params?.callee ?? callee, Err: params?.Err };\n}\nexport const _parse = (_Err) => {\n    const fn = (schema, value, _ctx, _params) => {\n        const ctx = _ctx ? { ..._ctx, async: false } : { async: false };\n        const result = schema._zod.run({ value, issues: [] }, ctx);\n        if (result instanceof Promise) {\n            throw new core.$ZodAsyncError();\n        }\n        if (result.issues.length) {\n            const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())));\n            util.captureStackTrace(e, _params?.callee ?? fn);\n            throw e;\n        }\n        return result.value;\n    };\n    return fn;\n};\nexport const parse = /* @__PURE__*/ _parse(errors.$ZodRealError);\nexport const _parseAsync = (_Err) => {\n    const fn = async (schema, value, _ctx, params) => {\n        const ctx = _ctx ? { ..._ctx, async: true } : { async: true };\n        let result = schema._zod.run({ value, issues: [] }, ctx);\n        if (result instanceof Promise)\n            result = await result;\n        if (result.issues.length) {\n            const e = new (params?.Err ?? _Err)(result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())));\n            util.captureStackTrace(e, params?.callee ?? fn);\n            throw e;\n        }\n        return result.value;\n    };\n    return fn;\n};\nexport const parseAsync = /* @__PURE__*/ _parseAsync(errors.$ZodRealError);\nexport const _safeParse = (_Err) => (schema, value, _ctx) => {\n    const ctx = _ctx ? { ..._ctx, async: false } : { async: false };\n    const result = schema._zod.run({ value, issues: [] }, ctx);\n    if (result instanceof Promise) {\n        throw new core.$ZodAsyncError();\n    }\n    return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value };\n};\nexport const safeParse = /* @__PURE__*/ _safeParse(errors.$ZodRealError);\n// the error is built on the first read of `error`: finalizing the issues and constructing the instance is most of a failing parse, and a caller that only branches on `success` never pays it. a getter in the literal keeps this small; the alternative, one shared accessor descriptor plus a hidden state slot, reads ~15% faster but costs ~75 B gzipped in every bundle\nfunction failure(Err, issues, ctx) {\n    let error;\n    return {\n        success: false,\n        get error() {\n            if (!error) {\n                error = new Err(issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())));\n                // finalizeIssue drops `input`, so the built error holds nothing; keeping the raw issues past this point pins the parsed value for the life of the result\n                issues = undefined;\n                ctx = undefined;\n            }\n            return error;\n        },\n        set error(e) {\n            error = e;\n            // a replacement makes the getter's branch unreachable, so the captures have to go here too\n            issues = undefined;\n            ctx = undefined;\n        },\n    };\n}\nexport const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {\n    const ctx = _ctx ? { ..._ctx, async: true } : { async: true };\n    let result = schema._zod.run({ value, issues: [] }, ctx);\n    if (result instanceof Promise)\n        result = await result;\n    return result.issues.length ? failure(_Err, result.issues, ctx) : { success: true, data: result.value };\n};\nexport const safeParseAsync = /* @__PURE__*/ _safeParseAsync(errors.$ZodRealError);\n// registry mirrors of the compiler's sentinels, so this module never imports the compiler\nconst COMPILE_INVALID = /* @__PURE__ */ Symbol.for(\"zod.compile.invalid\");\nconst COMPILE_FALLBACK = /* @__PURE__ */ Symbol.for(\"zod.compile.fallback\");\n// Deliberately tiny, because v8 will not inline a body carrying the fallback's object literals and throw. Everything that is not the compiled happy path lives in validateFallback, and that split is worth ~35% on a compiled schema.\nexport const validate = ((schema, value, _ctx) => {\n    const validator = schema._zod.bag.validator;\n    if (validator !== undefined) {\n        if (validator(value) !== COMPILE_INVALID)\n            return true;\n        // a definite sentinel means the runtime would reject, so skip the re-parse; a ctx can still change the answer\n        if (validator.definite === true && _ctx === undefined)\n            return false;\n    }\n    return validateFallback(schema, value, _ctx);\n});\nfunction validateFallback(schema, value, _ctx) {\n    const ctx = _ctx\n        ? { ..._ctx, async: false, abortEarly: true }\n        : { async: false, abortEarly: true };\n    const fallbackRun = schema._zod.bag.fallbackRun;\n    let result;\n    if (fallbackRun) {\n        // skip nested fast paths on the fallback, so user callbacks keep the at-most-twice bound\n        ctx[COMPILE_FALLBACK] = true;\n        result = fallbackRun({ value, issues: [] }, ctx);\n    }\n    else {\n        result = schema._zod.run({ value, issues: [] }, ctx);\n    }\n    if (result instanceof Promise) {\n        throw new core.$ZodAsyncError();\n    }\n    return result.issues.length === 0;\n}\n// no fast path: the compiler keeps async parses on the runtime, because a promise-returning callback that is not declared async compiles to a throw\nexport const validateAsync = async (schema, value, _ctx) => {\n    const ctx = _ctx\n        ? { ..._ctx, async: true, abortEarly: true }\n        : { async: true, abortEarly: true };\n    let result = schema._zod.run({ value, issues: [] }, ctx);\n    if (result instanceof Promise)\n        result = await result;\n    return result.issues.length === 0;\n};\nexport const _encode = (_Err) => {\n    const parse = _parse(_Err);\n    const fn = (schema, value, _ctx, _params) => {\n        const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n        return parse(schema, value, ctx, finalizeParams(fn, _params));\n    };\n    return fn;\n};\nexport const encode = /* @__PURE__*/ _encode(errors.$ZodRealError);\nexport const _decode = (_Err) => {\n    const parse = _parse(_Err);\n    const fn = (schema, value, _ctx, _params) => {\n        return parse(schema, value, _ctx, finalizeParams(fn, _params));\n    };\n    return fn;\n};\nexport const decode = /* @__PURE__*/ _decode(errors.$ZodRealError);\nexport const _encodeAsync = (_Err) => {\n    const parseAsync = _parseAsync(_Err);\n    const fn = async (schema, value, _ctx, _params) => {\n        const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n        return (await parseAsync(schema, value, ctx, finalizeParams(fn, _params)));\n    };\n    return fn;\n};\nexport const encodeAsync = /* @__PURE__*/ _encodeAsync(errors.$ZodRealError);\nexport const _decodeAsync = (_Err) => {\n    const parseAsync = _parseAsync(_Err);\n    const fn = async (schema, value, _ctx, _params) => {\n        return await parseAsync(schema, value, _ctx, finalizeParams(fn, _params));\n    };\n    return fn;\n};\nexport const decodeAsync = /* @__PURE__*/ _decodeAsync(errors.$ZodRealError);\nexport const _safeEncode = (_Err) => (schema, value, _ctx) => {\n    const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n    return _safeParse(_Err)(schema, value, ctx);\n};\nexport const safeEncode = /* @__PURE__*/ _safeEncode(errors.$ZodRealError);\nexport const _safeDecode = (_Err) => (schema, value, _ctx) => {\n    return _safeParse(_Err)(schema, value, _ctx);\n};\nexport const safeDecode = /* @__PURE__*/ _safeDecode(errors.$ZodRealError);\nexport const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {\n    const ctx = _ctx ? { ..._ctx, direction: \"backward\" } : { direction: \"backward\" };\n    return _safeParseAsync(_Err)(schema, value, ctx);\n};\nexport const safeEncodeAsync = /* @__PURE__*/ _safeEncodeAsync(errors.$ZodRealError);\nexport const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {\n    return _safeParseAsync(_Err)(schema, value, _ctx);\n};\nexport const safeDecodeAsync = /* @__PURE__*/ _safeDecodeAsync(errors.$ZodRealError);\n","import * as util from \"./util.js\";\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link cuid2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport const cuid = /^[cC][0-9a-z]{6,}$/;\nexport const cuid2 = /^[0-9a-z]+$/;\nexport const ulid = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;\nexport const xid = /^[0-9a-vA-V]{20}$/;\nexport const ksuid = /^[A-Za-z0-9]{27}$/;\nexport const nanoid = /^[a-zA-Z0-9_-]{21}$/;\nexport function nanoidOfLength(length) {\n    return new RegExp(`^[a-zA-Z0-9_-]{${length}}$`);\n}\n/** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */\nexport const duration = /^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/;\n/** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */\nexport const extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\n/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */\nexport const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;\n/** Returns a regex for validating an RFC 9562/4122 UUID.\n *\n * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */\nexport const uuid = (version) => {\n    if (!version)\n        return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;\n    return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);\n};\nexport const uuid4 = /*@__PURE__*/ uuid(4);\nexport const uuid6 = /*@__PURE__*/ uuid(6);\nexport const uuid7 = /*@__PURE__*/ uuid(7);\n/** Practical email validation */\nexport const email = /^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/;\n/** Equivalent to the HTML5 input[type=email] validation implemented by browsers. Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email */\nexport const html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n/** The classic emailregex.com regex for RFC 5322-compliant emails */\nexport const rfc5322Email = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */\nexport const unicodeEmail = /^[^\\s@\"]{1,64}@[^\\s@]{1,255}$/u;\nexport const idnEmail = unicodeEmail;\nexport const browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\n// Single character class, not an alternation: the two properties overlap (U+1F9B0-U+1F9B3), so `(A|B)+` backtracks exponentially on a failed match. The leading lookahead then demands one anchor — a pictograph, a regional indicator, or the enclosing keycap — because `\\p{Emoji_Component}` on its own covers ASCII digits, `#`, `*`, ZWJ, variation selectors and skin tone modifiers, none of which is an emoji without a base.\nconst _emoji = `^(?=[\\\\s\\\\S]*[\\\\p{Extended_Pictographic}\\\\p{Regional_Indicator}\\\\u20E3])[\\\\p{Extended_Pictographic}\\\\p{Emoji_Component}]+$`;\nexport function emoji() {\n    return new RegExp(_emoji, \"u\");\n}\nexport const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nexport const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;\nexport const mac = (delimiter) => {\n    const escapedDelim = util.escapeRegex(delimiter ?? \":\");\n    return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);\n};\nexport const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/;\nexport const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nexport const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;\nexport const base64url = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;\n// based on https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address\n// export const hostname: RegExp = /^([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+$/;\nexport const hostname = /^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/;\nexport const domain = /^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$/;\nexport const httpProtocol = /^https?$/;\n// https://blog.stevenlevithan.com/archives/validate-phone-number#r4-3 (regex sans spaces) E.164: leading digit must be 1-9; total digits (excluding '+') between 7-15\nexport const e164 = /^\\+[1-9]\\d{6,14}$/;\n// Credit card shape: 12–19 digits, optionally separated by single spaces or single hyphens. ISO/IEC 7812 caps the PAN at 19 digits; 12 is the shortest issued length (Maestro).\nexport const creditCard = /^\\d(?:[ -]?\\d){11,18}$/;\n// ISO 4217 alpha codes from the SIX list, regenerated by scripts/update-iso-4217.ts\nexport const currencyCode = /^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/;\n// iban electronic format: 2-letter country, check digits 02-98 (the only values `98 - remainder` can produce), 11-30 bban characters\nexport const iban = /^[A-Z]{2}(?!00|01|99)\\d{2}[A-Z0-9]{11,30}$/;\nconst dateSource = `(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))`;\n/** Anchors a pattern source. The interpolation lives here rather than at the call site because\n * esbuild will not drop a `@__PURE__` call whose own argument interpolates a variable, but it\n * will drop `anchor(dateSource)`. Keeping it inline pinned `date` into every bundle. */\nfunction anchor(source) {\n    return new RegExp(`^${source}$`);\n}\nexport const date = /*@__PURE__*/ anchor(dateSource);\nfunction timeSource(args) {\n    const hhmm = `(?:[01]\\\\d|2[0-3]):[0-5]\\\\d`;\n    const regex = typeof args.precision === \"number\"\n        ? args.precision === -1\n            ? `${hhmm}`\n            : args.precision === 0\n                ? `${hhmm}:[0-5]\\\\d`\n                : `${hhmm}:[0-5]\\\\d\\\\.\\\\d{${args.precision}}`\n        : args.seconds\n            ? `${hhmm}:[0-5]\\\\d(?:\\\\.\\\\d+)?`\n            : `${hhmm}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`;\n    return regex;\n}\nexport function time(args) {\n    return new RegExp(`^${timeSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nexport function datetime(args) {\n    const opts = [\"Z\"];\n    // if (args.offset) opts.push(`([+-]\\\\d{2}:\\\\d{2})`);\n    if (args.offset)\n        opts.push(`([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)`);\n    // RFC 3339 mandates seconds wherever the time carries a `Z` or an offset, so only the unqualified form `local` adds may omit them\n    const qualified = `${timeSource({ precision: args.precision, seconds: true })}(?:${opts.join(\"|\")})`;\n    const timeRegex = args.local ? `${qualified}|${timeSource({ precision: args.precision })}` : qualified;\n    return new RegExp(`^${dateSource}T(?:${timeRegex})$`);\n}\n// the unbounded form of `string()` as a literal, so every plain string shares one instance instead of building its own\nexport const anyString = /^[\\s\\S]{0,}$/;\nexport const string = (params) => {\n    const regex = params ? `[\\\\s\\\\S]{${params?.minimum ?? 0},${params?.maximum ?? \"\"}}` : `[\\\\s\\\\S]*`;\n    return new RegExp(`^${regex}$`);\n};\nexport const bigint = /^-?\\d+n?$/;\nexport const integer = /^-?\\d+$/;\nexport const number = /^-?\\d+(?:\\.\\d+)?$/;\nexport const boolean = /^(?:true|false)$/i;\nconst _null = /^null$/i;\nexport { _null as null };\nconst _undefined = /^undefined$/i;\nexport { _undefined as undefined };\n// regex for string with no uppercase letters\nexport const lowercase = /^[^A-Z]*$/;\n// regex for string with no lowercase letters\nexport const uppercase = /^[^a-z]*$/;\n// regex for hexadecimal strings (any length)\nexport const hex = /^[0-9a-fA-F]*$/;\n// Hash regexes for different algorithms and encodings\n// Helper function to create base64 regex with exact length and padding\nfunction fixedBase64(bodyLength, padding) {\n    return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`);\n}\n// Helper function to create base64url regex with exact length (no padding)\nfunction fixedBase64url(length) {\n    return new RegExp(`^[A-Za-z0-9_-]{${length}}$`);\n}\n// MD5 (16 bytes): base64 = 24 chars total (22 + \"==\")\nexport const md5_hex = /^[0-9a-fA-F]{32}$/;\nexport const md5_base64 = /*@__PURE__*/ fixedBase64(22, \"==\");\nexport const md5_base64url = /*@__PURE__*/ fixedBase64url(22);\n// SHA1 (20 bytes): base64 = 28 chars total (27 + \"=\")\nexport const sha1_hex = /^[0-9a-fA-F]{40}$/;\nexport const sha1_base64 = /*@__PURE__*/ fixedBase64(27, \"=\");\nexport const sha1_base64url = /*@__PURE__*/ fixedBase64url(27);\n// SHA256 (32 bytes): base64 = 44 chars total (43 + \"=\")\nexport const sha256_hex = /^[0-9a-fA-F]{64}$/;\nexport const sha256_base64 = /*@__PURE__*/ fixedBase64(43, \"=\");\nexport const sha256_base64url = /*@__PURE__*/ fixedBase64url(43);\n// SHA384 (48 bytes): base64 = 64 chars total (no padding)\nexport const sha384_hex = /^[0-9a-fA-F]{96}$/;\nexport const sha384_base64 = /*@__PURE__*/ fixedBase64(64, \"\");\nexport const sha384_base64url = /*@__PURE__*/ fixedBase64url(64);\n// SHA512 (64 bytes): base64 = 88 chars total (86 + \"==\")\nexport const sha512_hex = /^[0-9a-fA-F]{128}$/;\nexport const sha512_base64 = /*@__PURE__*/ fixedBase64(86, \"==\");\nexport const sha512_base64url = /*@__PURE__*/ fixedBase64url(86);\n","// import { $ZodType } from \"./schemas.js\";\nimport * as core from \"./core.js\";\nimport * as regexes from \"./regexes.js\";\nimport * as util from \"./util.js\";\nexport const $ZodCheck = /*@__PURE__*/ core.$constructor(\"$ZodCheck\", (inst, def) => {\n    var _a;\n    inst._zod ?? (inst._zod = {});\n    inst._zod.def = def;\n    (_a = inst._zod).onattach ?? (_a.onattach = []);\n});\n/** Default `when` for size-based checks: run only on non-nullish values with a `size`. */\nconst _whenHasSize = (payload) => {\n    const val = payload.value;\n    return !util.nullish(val) && val.size !== undefined;\n};\n/** Default `when` for length-based checks: run only on non-nullish values with a `length`. */\nconst _whenHasLength = (payload) => {\n    const val = payload.value;\n    return !util.nullish(val) && val.length !== undefined;\n};\nconst numericOriginMap = {\n    number: \"number\",\n    bigint: \"bigint\",\n    object: \"date\",\n};\nexport const $ZodCheckLessThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckLessThan\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    const origin = numericOriginMap[typeof def.value];\n    inst._zod.check = (payload) => {\n        if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {\n            return;\n        }\n        payload.issues.push({\n            origin: numericOriginMap[typeof payload.value] ?? origin,\n            code: \"too_big\",\n            maximum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n            input: payload.value,\n            inclusive: def.inclusive,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckGreaterThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckGreaterThan\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    const origin = numericOriginMap[typeof def.value];\n    inst._zod.check = (payload) => {\n        if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {\n            return;\n        }\n        payload.issues.push({\n            origin: numericOriginMap[typeof payload.value] ?? origin,\n            code: \"too_small\",\n            minimum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n            input: payload.value,\n            inclusive: def.inclusive,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckMultipleOf = \n/*@__PURE__*/ core.$constructor(\"$ZodCheckMultipleOf\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (typeof payload.value !== typeof def.value)\n            throw new Error(\"Cannot mix number and bigint in multiple_of check.\");\n        const isMultiple = typeof payload.value === \"bigint\"\n            ? // `value % 0n` throws, and nothing is a multiple of zero — the number branch already fails this way via NaN\n                def.value !== BigInt(0) && payload.value % def.value === BigInt(0)\n            : util.floatSafeRemainder(payload.value, def.value) === 0;\n        if (isMultiple)\n            return;\n        payload.issues.push({\n            origin: typeof payload.value,\n            code: \"not_multiple_of\",\n            divisor: def.value,\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckNumberFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckNumberFormat\", (inst, def) => {\n    $ZodCheck.init(inst, def); // no format checks\n    def.format = def.format || \"float64\";\n    const isInt = def.format?.includes(\"int\");\n    const origin = isInt ? \"int\" : \"number\";\n    const [minimum, maximum] = util.NUMBER_FORMAT_RANGES[def.format];\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        if (isInt) {\n            if (!Number.isInteger(input)) {\n                // invalid_format issue\n                // payload.issues.push({\n                //   expected: def.format,\n                //   format: def.format,\n                //   code: \"invalid_format\",\n                //   input,\n                //   inst,\n                // });\n                // invalid_type issue\n                payload.issues.push({\n                    expected: origin,\n                    format: def.format,\n                    code: \"invalid_type\",\n                    continue: false,\n                    input,\n                    inst,\n                });\n                return;\n                // not_multiple_of issue\n                // payload.issues.push({\n                //   code: \"not_multiple_of\",\n                //   origin: \"number\",\n                //   input,\n                //   inst,\n                //   divisor: 1,\n                // });\n            }\n            if (!Number.isSafeInteger(input)) {\n                if (input > 0) {\n                    // too_big\n                    payload.issues.push({\n                        input,\n                        code: \"too_big\",\n                        maximum: Number.MAX_SAFE_INTEGER,\n                        note: \"Integers must be within the safe integer range.\",\n                        inst,\n                        origin,\n                        inclusive: true,\n                        continue: !def.abort,\n                    });\n                }\n                else {\n                    // too_small\n                    payload.issues.push({\n                        input,\n                        code: \"too_small\",\n                        minimum: Number.MIN_SAFE_INTEGER,\n                        note: \"Integers must be within the safe integer range.\",\n                        inst,\n                        origin,\n                        inclusive: true,\n                        continue: !def.abort,\n                    });\n                }\n                return;\n            }\n        }\n        if (input < minimum) {\n            payload.issues.push({\n                origin: \"number\",\n                input,\n                code: \"too_small\",\n                minimum,\n                inclusive: true,\n                inst,\n                continue: !def.abort,\n            });\n        }\n        if (input > maximum) {\n            payload.issues.push({\n                origin: \"number\",\n                input,\n                code: \"too_big\",\n                maximum,\n                inclusive: true,\n                inst,\n                continue: !def.abort,\n            });\n        }\n    };\n});\nexport const $ZodCheckBigIntFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckBigIntFormat\", (inst, def) => {\n    $ZodCheck.init(inst, def); // no format checks\n    const [minimum, maximum] = util.BIGINT_FORMAT_RANGES[def.format];\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        if (input < minimum) {\n            payload.issues.push({\n                origin: \"bigint\",\n                input,\n                code: \"too_small\",\n                minimum: minimum,\n                inclusive: true,\n                inst,\n                continue: !def.abort,\n            });\n        }\n        if (input > maximum) {\n            payload.issues.push({\n                origin: \"bigint\",\n                input,\n                code: \"too_big\",\n                maximum,\n                inclusive: true,\n                inst,\n                continue: !def.abort,\n            });\n        }\n    };\n});\nexport const $ZodCheckMaxSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxSize\", (inst, def) => {\n    var _a;\n    $ZodCheck.init(inst, def);\n    (_a = inst._zod.def).when ?? (_a.when = _whenHasSize);\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        const size = input.size;\n        if (size <= def.maximum)\n            return;\n        payload.issues.push({\n            origin: util.getSizableOrigin(input),\n            code: \"too_big\",\n            maximum: def.maximum,\n            inclusive: true,\n            input,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckMinSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinSize\", (inst, def) => {\n    var _a;\n    $ZodCheck.init(inst, def);\n    (_a = inst._zod.def).when ?? (_a.when = _whenHasSize);\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        const size = input.size;\n        if (size >= def.minimum)\n            return;\n        payload.issues.push({\n            origin: util.getSizableOrigin(input),\n            code: \"too_small\",\n            minimum: def.minimum,\n            inclusive: true,\n            input,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckSizeEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckSizeEquals\", (inst, def) => {\n    var _a;\n    $ZodCheck.init(inst, def);\n    (_a = inst._zod.def).when ?? (_a.when = _whenHasSize);\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        const size = input.size;\n        if (size === def.size)\n            return;\n        const tooBig = size > def.size;\n        payload.issues.push({\n            origin: util.getSizableOrigin(input),\n            ...(tooBig ? { code: \"too_big\", maximum: def.size } : { code: \"too_small\", minimum: def.size }),\n            inclusive: true,\n            exact: true,\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckMaxLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxLength\", (inst, def) => {\n    var _a;\n    $ZodCheck.init(inst, def);\n    (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        const units = input.length;\n        // Strings are measured in Unicode code points, not UTF-16 units. A code point is at most two units, so a string that already fits in units fits in code points; only an overflow has to be counted.\n        const length = typeof input === \"string\" && units > def.maximum ? util.codePointLength(input) : units;\n        if (length <= def.maximum)\n            return;\n        const origin = util.getLengthableOrigin(input);\n        payload.issues.push({\n            origin,\n            code: \"too_big\",\n            maximum: def.maximum,\n            inclusive: true,\n            input,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckMinLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinLength\", (inst, def) => {\n    var _a;\n    $ZodCheck.init(inst, def);\n    (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        const units = input.length;\n        // A code point is one or two UTF-16 units, so fewer units than the floor can never reach it and twice the floor always clears it. Only in between is the exact count in doubt.\n        const length = typeof input === \"string\" && units >= def.minimum && units < def.minimum * 2\n            ? util.codePointLength(input)\n            : units;\n        if (length >= def.minimum)\n            return;\n        const origin = util.getLengthableOrigin(input);\n        payload.issues.push({\n            origin,\n            code: \"too_small\",\n            minimum: def.minimum,\n            inclusive: true,\n            input,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckLengthEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckLengthEquals\", (inst, def) => {\n    var _a;\n    $ZodCheck.init(inst, def);\n    (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        const units = input.length;\n        // A code point is one or two UTF-16 units, so outside `[length, length * 2]` units the target is missed either way — and missed in the same direction in both measures.\n        const length = typeof input === \"string\" && units >= def.length && units <= def.length * 2\n            ? util.codePointLength(input)\n            : units;\n        if (length === def.length)\n            return;\n        const origin = util.getLengthableOrigin(input);\n        const tooBig = length > def.length;\n        payload.issues.push({\n            origin,\n            ...(tooBig ? { code: \"too_big\", maximum: def.length } : { code: \"too_small\", minimum: def.length }),\n            inclusive: true,\n            exact: true,\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckStringFormat\", (inst, def) => {\n    var _a, _b;\n    $ZodCheck.init(inst, def);\n    if (def.pattern)\n        (_a = inst._zod).check ?? (_a.check = (payload) => {\n            def.pattern.lastIndex = 0;\n            if (def.pattern.test(payload.value))\n                return;\n            payload.issues.push({\n                origin: \"string\",\n                code: \"invalid_format\",\n                format: def.format,\n                input: payload.value,\n                ...(def.pattern ? { pattern: def.pattern.toString() } : {}),\n                inst,\n                continue: !def.abort,\n            });\n        });\n    else\n        (_b = inst._zod).check ?? (_b.check = () => { });\n});\nexport const $ZodCheckRegex = /*@__PURE__*/ core.$constructor(\"$ZodCheckRegex\", (inst, def) => {\n    $ZodCheckStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        def.pattern.lastIndex = 0;\n        if (def.pattern.test(payload.value))\n            return;\n        payload.issues.push({\n            origin: \"string\",\n            code: \"invalid_format\",\n            format: \"regex\",\n            input: payload.value,\n            pattern: def.pattern.toString(),\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckLowerCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckLowerCase\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.lowercase);\n    $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckUpperCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckUpperCase\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.uppercase);\n    $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckIncludes = /*@__PURE__*/ core.$constructor(\"$ZodCheckIncludes\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    const escapedRegex = util.escapeRegex(def.includes);\n    // `String.prototype.includes(sub, position)` matches `sub` at `position`\n    // OR LATER, so the pattern must allow at least `position` leading chars\n    // (`{N,}`), not exactly `position` chars (`{N}`).\n    const pattern = new RegExp(typeof def.position === \"number\" ? `^.{${def.position},}${escapedRegex}` : escapedRegex);\n    def.pattern = pattern;\n    inst._zod.check = (payload) => {\n        if (payload.value.includes(def.includes, def.position))\n            return;\n        payload.issues.push({\n            origin: \"string\",\n            code: \"invalid_format\",\n            format: \"includes\",\n            includes: def.includes,\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckStartsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckStartsWith\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    const pattern = new RegExp(`^${util.escapeRegex(def.prefix)}.*`);\n    def.pattern ?? (def.pattern = pattern);\n    inst._zod.check = (payload) => {\n        if (payload.value.startsWith(def.prefix))\n            return;\n        payload.issues.push({\n            origin: \"string\",\n            code: \"invalid_format\",\n            format: \"starts_with\",\n            prefix: def.prefix,\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckEndsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckEndsWith\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    const pattern = new RegExp(`.*${util.escapeRegex(def.suffix)}$`);\n    def.pattern ?? (def.pattern = pattern);\n    inst._zod.check = (payload) => {\n        if (payload.value.endsWith(def.suffix))\n            return;\n        payload.issues.push({\n            origin: \"string\",\n            code: \"invalid_format\",\n            format: \"ends_with\",\n            suffix: def.suffix,\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\n///////////////////////////////////\n/////    $ZodCheckProperty    /////\n///////////////////////////////////\nfunction handleCheckPropertyResult(result, payload, property) {\n    if (result.issues.length) {\n        payload.issues.push(...util.prefixIssues(property, result.issues));\n    }\n}\nexport const $ZodCheckProperty = /*@__PURE__*/ core.$constructor(\"$ZodCheckProperty\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    inst._zod.check = (payload) => {\n        const result = def.schema._zod.run({\n            value: payload.value[def.property],\n            issues: [],\n        }, {});\n        if (result instanceof Promise) {\n            return result.then((result) => handleCheckPropertyResult(result, payload, def.property));\n        }\n        handleCheckPropertyResult(result, payload, def.property);\n        return;\n    };\n});\nexport const $ZodCheckProperties = /*@__PURE__*/ core.$constructor(\"$ZodCheckProperties\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    util.hide(inst, Symbol.iterator, function* () {\n        yield inst;\n    });\n    // key and schema snapshotted together: reading one live and the other cached lets a later mutation of the caller's shape object pair a stale key with a missing schema\n    let entries;\n    inst._zod.check = (payload) => {\n        // the base schema already typed the value, so only a nullish one is rejected here: the properties read on a primitive too, matching z.property() on a string's length\n        if (payload.value == null) {\n            payload.issues.push({ expected: \"object\", code: \"invalid_type\", input: payload.value, inst });\n            return undefined;\n        }\n        entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]]));\n        const input = payload.value;\n        let proms;\n        for (const [key, schema] of entries) {\n            const result = schema._zod.run({ value: input[key], issues: [] }, {});\n            if (result instanceof Promise) {\n                proms ?? (proms = []);\n                proms.push(result.then((result) => handleCheckPropertyResult(result, payload, key)));\n            }\n            else {\n                handleCheckPropertyResult(result, payload, key);\n            }\n        }\n        if (proms)\n            return Promise.all(proms).then(() => undefined);\n        return undefined;\n    };\n});\nexport const $ZodCheckMimeType = /*@__PURE__*/ core.$constructor(\"$ZodCheckMimeType\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    const mimeSet = new Set(def.mime);\n    inst._zod.check = (payload) => {\n        if (mimeSet.has(payload.value.type))\n            return;\n        payload.issues.push({\n            code: \"invalid_value\",\n            values: def.mime,\n            input: payload.value.type,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCheckOverwrite = /*@__PURE__*/ core.$constructor(\"$ZodCheckOverwrite\", (inst, def) => {\n    $ZodCheck.init(inst, def);\n    inst._zod.check = (payload) => {\n        payload.value = def.tx(payload.value);\n    };\n});\n","export class Doc {\n    constructor(args = [], closed = {}) {\n        this.content = [];\n        this.indent = 0;\n        this.args = args;\n        this.closed = closed;\n    }\n    // the compiler catches a child's throw and keeps writing into this doc, so the indent has to unwind with it\n    indented(fn) {\n        this.indent += 1;\n        try {\n            fn(this);\n        }\n        finally {\n            this.indent -= 1;\n        }\n    }\n    write(arg) {\n        if (typeof arg === \"function\") {\n            arg(this, { execution: \"sync\" });\n            arg(this, { execution: \"async\" });\n            return;\n        }\n        const content = arg;\n        const lines = content.split(\"\\n\").filter((x) => x);\n        const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));\n        const dedented = lines.map((x) => x.slice(minIndent)).map((x) => \" \".repeat(this.indent * 2) + x);\n        for (const line of dedented) {\n            this.content.push(line);\n        }\n    }\n    compile() {\n        const F = Function;\n        const content = this?.content ?? [``];\n        const factory = new F(...Object.keys(this.closed), `return function (${this.args.join(\", \")}) {\\n${content.join(\"\\n\")}\\n};`);\n        return factory(...Object.values(this.closed));\n    }\n}\n","export const version = {\n    major: 4,\n    minor: 6,\n    patch: 7,\n};\n","import * as checks from \"./checks.js\";\nimport * as core from \"./core.js\";\nimport { Doc } from \"./doc.js\";\nimport { parse, parseAsync } from \"./parse.js\";\nimport * as regexes from \"./regexes.js\";\nimport * as util from \"./util.js\";\nimport { version } from \"./versions.js\";\nexport const $ZodType = /*@__PURE__*/ core.$constructor(\"$ZodType\", (inst, def) => {\n    var _a;\n    inst ?? (inst = {});\n    inst._zod.def = def; // set _def property\n    inst._zod.bag = inst._zod.bag || {}; // initialize _bag object\n    inst._zod.version = version;\n    const defChecks = inst._zod.def.checks;\n    // if inst is itself a checks.$ZodCheck, run it as a check\n    const checks = inst._zod.traits.has(\"$ZodCheck\")\n        ? [inst, ...(defChecks ?? [])]\n        : defChecks?.length\n            ? [...defChecks]\n            : [];\n    for (const ch of checks) {\n        for (const fn of ch._zod.onattach) {\n            fn(inst);\n        }\n    }\n    if (checks.length === 0) {\n        // deferred initializer inst._zod.parse is not yet defined\n        (_a = inst._zod).deferred ?? (_a.deferred = []);\n        inst._zod.deferred?.push(() => {\n            inst._zod.run = inst._zod.parse;\n        });\n    }\n    else {\n        const runChecks = (payload, checks, ctx) => {\n            if (payload.memo)\n                return payload;\n            let isAborted = util.aborted(payload);\n            let asyncResult;\n            for (const ch of checks) {\n                if (ch._zod.def.when) {\n                    if (util.explicitlyAborted(payload))\n                        continue;\n                    const shouldRun = ch._zod.def.when(payload);\n                    if (!shouldRun)\n                        continue;\n                }\n                else if (isAborted) {\n                    continue;\n                }\n                const currLen = payload.issues.length;\n                const _ = ch._zod.check(payload);\n                if (_ instanceof Promise && ctx?.async === false) {\n                    throw new core.$ZodAsyncError();\n                }\n                if (asyncResult || _ instanceof Promise) {\n                    asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {\n                        await _;\n                        const nextLen = payload.issues.length;\n                        if (nextLen === currLen)\n                            return;\n                        util.attachSchema(payload.issues, currLen, inst);\n                        if (!isAborted)\n                            isAborted = util.aborted(payload, currLen);\n                    });\n                }\n                else {\n                    const nextLen = payload.issues.length;\n                    if (nextLen === currLen)\n                        continue;\n                    util.attachSchema(payload.issues, currLen, inst);\n                    if (!isAborted)\n                        isAborted = util.aborted(payload, currLen);\n                }\n            }\n            if (asyncResult) {\n                return asyncResult.then(() => {\n                    return payload;\n                });\n            }\n            return payload;\n        };\n        const handleCanaryResult = (canary, payload, ctx) => {\n            // abort if the canary is aborted\n            if (util.aborted(canary)) {\n                canary.aborted = true;\n                return canary;\n            }\n            // run checks first, then\n            const checkResult = runChecks(payload, checks, ctx);\n            if (checkResult instanceof Promise) {\n                if (ctx.async === false)\n                    throw new core.$ZodAsyncError();\n                return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));\n            }\n            return inst._zod.parse(checkResult, ctx);\n        };\n        inst._zod.run = (payload, ctx) => {\n            if (ctx.skipChecks) {\n                return inst._zod.parse(payload, ctx);\n            }\n            if (ctx.direction === \"backward\") {\n                // run canary initial pass (no checks)\n                const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });\n                if (canary instanceof Promise) {\n                    return canary.then((canary) => {\n                        return handleCanaryResult(canary, payload, ctx);\n                    });\n                }\n                return handleCanaryResult(canary, payload, ctx);\n            }\n            // forward\n            const result = inst._zod.parse(payload, ctx);\n            if (result instanceof Promise) {\n                if (ctx.async === false)\n                    throw new core.$ZodAsyncError();\n                return result.then((result) => runChecks(result, checks, ctx));\n            }\n            return runChecks(result, checks, ctx);\n        };\n    }\n}, {\n    // Wrappers extend this by installing a richer factory over it; reading it eagerly would defeat the laziness.\n    get \"~standard\"() {\n        return util.hide(this, \"~standard\", standardProps(this));\n    },\n    set \"~standard\"(value) {\n        util.own(this, \"~standard\", value);\n    },\n});\n/** The Standard Schema surface for `inst`. Shared so wrappers can extend it without forcing it. */\n// a Standard Schema result only reports issues, so a failure finalizes them straight off the raw payload: no ZodError, and no lazy result to read through\nconst toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())) } : { value: r.value };\nasync function validateAsync(inst, value) {\n    const ctx = { async: true };\n    return toStandardResult((await inst._zod.run({ value, issues: [] }, ctx)), ctx);\n}\nexport function standardProps(inst) {\n    return {\n        validate: (value) => {\n            const ctx = { async: false };\n            try {\n                const r = inst._zod.run({ value, issues: [] }, ctx);\n                if (!(r instanceof Promise))\n                    return toStandardResult(r, ctx);\n            }\n            catch (_) { }\n            // async function so a synchronously throwing check rejects instead of escaping validate\n            return validateAsync(inst, value);\n        },\n        vendor: \"zod\",\n        version: 1,\n    };\n}\nexport { clone } from \"./util.js\";\nexport const $ZodString = /*@__PURE__*/ core.$constructor(\"$ZodString\", (inst, def) => {\n    $ZodType.init(inst, def);\n    // a format's own pattern, else unbounded; a template literal derives the check-aware form itself\n    inst._zod.pattern = def.pattern ?? regexes.anyString;\n    inst._zod.parse = (payload, _) => {\n        if (def.coerce)\n            try {\n                payload.value = String(payload.value);\n            }\n            catch (_) { }\n        if (typeof payload.value === \"string\")\n            return payload;\n        payload.issues.push({\n            expected: \"string\",\n            code: \"invalid_type\",\n            input: payload.value,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodStringFormat\", (inst, def) => {\n    // check initialization must come first\n    checks.$ZodCheckStringFormat.init(inst, def);\n    $ZodString.init(inst, def);\n});\nexport const $ZodGUID = /*@__PURE__*/ core.$constructor(\"$ZodGUID\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.guid);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodUUID = /*@__PURE__*/ core.$constructor(\"$ZodUUID\", (inst, def) => {\n    if (def.version) {\n        const versionMap = {\n            v1: 1,\n            v2: 2,\n            v3: 3,\n            v4: 4,\n            v5: 5,\n            v6: 6,\n            v7: 7,\n            v8: 8,\n        };\n        const v = versionMap[def.version];\n        if (v === undefined)\n            throw new Error(`Invalid UUID version: \"${def.version}\"`);\n        def.pattern ?? (def.pattern = regexes.uuid(v));\n    }\n    else\n        def.pattern ?? (def.pattern = regexes.uuid());\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodEmail = /*@__PURE__*/ core.$constructor(\"$ZodEmail\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.email);\n    $ZodStringFormat.init(inst, def);\n});\n/** The `://` guard rejected the input before the URL constructor saw it. */\nexport const URL_BAD_FORMAT = 1;\n/** The URL parser rejected the input. */\nexport const URL_UNPARSEABLE = 2;\nexport function canParseURL(input) {\n    try {\n        if (typeof URL !== \"undefined\" && typeof URL.canParse === \"function\")\n            return URL.canParse(input);\n        new URL(input);\n        return true;\n    }\n    catch {\n        return false;\n    }\n}\nexport function validateURL(trimmed, def) {\n    if (!(\"normalize\" in def) && !(\"hostname\" in def) && !(\"protocol\" in def)) {\n        return canParseURL(trimmed) || URL_UNPARSEABLE;\n    }\n    return parseURLObject(trimmed, def);\n}\n/** Parses a URL while preserving the non-normalizing HTTP guard. */\nexport function parseURLObject(trimmed, def) {\n    // When normalize is off, require :// for http/https URLs. This prevents strings like \"http:example.com\" or \"https:/path\" from being silently accepted\n    if (!def.normalize && def.protocol?.source === regexes.httpProtocol.source && !/^https?:\\/\\//i.test(trimmed)) {\n        return URL_BAD_FORMAT;\n    }\n    try {\n        if (typeof URL !== \"undefined\") {\n            const URLStatic = URL;\n            if (typeof URLStatic.parse === \"function\")\n                return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;\n        }\n        // @ts-ignore\n        return new URL(trimmed);\n    }\n    catch {\n        return URL_UNPARSEABLE;\n    }\n}\nconst asciiTabOrNewline = /[\\t\\n\\r]/g;\n/** The URL parser deletes every ASCII tab, LF and CR from its input before it parses, so `new URL(\"https://exa\\nmple.com\")` reports on `example.com`. Applying the same deletion to the returned value closes the half of that divergence which can move the host; the parser's other rewrite, stripping C0 controls at the edges, cannot. */\nexport function stripTabAndNewline(value) {\n    return value.replace(asciiTabOrNewline, \"\");\n}\nexport function urlHostnameOk(url, hostname) {\n    hostname.lastIndex = 0;\n    return hostname.test(url.hostname);\n}\nexport function urlProtocolOk(url, protocol) {\n    protocol.lastIndex = 0;\n    return protocol.test(url.protocol.endsWith(\":\") ? url.protocol.slice(0, -1) : url.protocol);\n}\nexport const $ZodURL = /*@__PURE__*/ core.$constructor(\"$ZodURL\", (inst, def) => {\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        try {\n            // Trim whitespace from input\n            const trimmed = payload.value.trim();\n            const url = validateURL(trimmed, def);\n            if (url === URL_BAD_FORMAT) {\n                payload.issues.push({\n                    code: \"invalid_format\",\n                    format: \"url\",\n                    note: \"Invalid URL format\",\n                    input: payload.value,\n                    inst,\n                    continue: !def.abort,\n                });\n                return;\n            }\n            if (url === URL_UNPARSEABLE) {\n                payload.issues.push({\n                    code: \"invalid_format\",\n                    format: \"url\",\n                    input: payload.value,\n                    inst,\n                    continue: !def.abort,\n                });\n                return;\n            }\n            if (url === true) {\n                payload.value = stripTabAndNewline(trimmed);\n                return;\n            }\n            if (def.hostname && !urlHostnameOk(url, def.hostname)) {\n                payload.issues.push({\n                    code: \"invalid_format\",\n                    format: \"url\",\n                    note: \"Invalid hostname\",\n                    pattern: def.hostname.source,\n                    input: payload.value,\n                    inst,\n                    continue: !def.abort,\n                });\n            }\n            if (def.protocol && !urlProtocolOk(url, def.protocol)) {\n                payload.issues.push({\n                    code: \"invalid_format\",\n                    format: \"url\",\n                    note: \"Invalid protocol\",\n                    pattern: def.protocol.source,\n                    input: payload.value,\n                    inst,\n                    continue: !def.abort,\n                });\n            }\n            // Set the output value based on normalize flag\n            payload.value = def.normalize ? url.href : stripTabAndNewline(trimmed);\n            return;\n        }\n        catch (_) {\n            payload.issues.push({\n                code: \"invalid_format\",\n                format: \"url\",\n                input: payload.value,\n                inst,\n                continue: !def.abort,\n            });\n        }\n    };\n});\nexport const $ZodEmoji = /*@__PURE__*/ core.$constructor(\"$ZodEmoji\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.emoji());\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodNanoID = /*@__PURE__*/ core.$constructor(\"$ZodNanoID\", (inst, def) => {\n    if (def.length !== undefined && (!Number.isInteger(def.length) || def.length < 1))\n        throw new Error(`Invalid nanoid length: ${def.length}`);\n    def.pattern ?? (def.pattern = def.length === undefined ? regexes.nanoid : regexes.nanoidOfLength(def.length));\n    $ZodStringFormat.init(inst, def);\n});\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport const $ZodCUID = /*@__PURE__*/ core.$constructor(\"$ZodCUID\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.cuid);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodCUID2 = /*@__PURE__*/ core.$constructor(\"$ZodCUID2\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.cuid2);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodULID = /*@__PURE__*/ core.$constructor(\"$ZodULID\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.ulid);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodXID = /*@__PURE__*/ core.$constructor(\"$ZodXID\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.xid);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodKSUID = /*@__PURE__*/ core.$constructor(\"$ZodKSUID\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.ksuid);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISODateTime = /*@__PURE__*/ core.$constructor(\"$ZodISODateTime\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.datetime(def));\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISODate = /*@__PURE__*/ core.$constructor(\"$ZodISODate\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.date);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISOTime = /*@__PURE__*/ core.$constructor(\"$ZodISOTime\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.time(def));\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodISODuration = /*@__PURE__*/ core.$constructor(\"$ZodISODuration\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.duration);\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodIPv4 = /*@__PURE__*/ core.$constructor(\"$ZodIPv4\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.ipv4);\n    $ZodStringFormat.init(inst, def);\n});\n/** An IPv6 address is written with hex digits, colons and dots, and nothing else. The guard is what makes the check below an IPv6 check: `new URL(\"http://[...]\")` parses an authority, not an address, so `@` and `\\` re-delimit it and `\"::@1\\\\\"` validates against the host `0.0.0.1`. The URL parser also deletes ASCII tab, LF and CR rather than failing, which is how `\"::1\\n\"` validated as `::1`. */\nconst ipv6Alphabet = /^[0-9a-fA-F:.]+$/;\nexport function isValidIPv6(value) {\n    if (!ipv6Alphabet.test(value))\n        return false;\n    return canParseURL(`http://[${value}]`);\n}\nexport const $ZodIPv6 = /*@__PURE__*/ core.$constructor(\"$ZodIPv6\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.ipv6);\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (!isValidIPv6(payload.value)) {\n            payload.issues.push({\n                code: \"invalid_format\",\n                format: \"ipv6\",\n                input: payload.value,\n                inst,\n                continue: !def.abort,\n            });\n        }\n    };\n});\nexport const $ZodMAC = /*@__PURE__*/ core.$constructor(\"$ZodMAC\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.mac(def.delimiter));\n    $ZodStringFormat.init(inst, def);\n});\nexport const $ZodCIDRv4 = /*@__PURE__*/ core.$constructor(\"$ZodCIDRv4\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.cidrv4);\n    $ZodStringFormat.init(inst, def);\n});\nexport function isValidCIDRv6(value) {\n    const parts = value.split(\"/\");\n    if (parts.length !== 2)\n        return false;\n    const [address, prefix] = parts;\n    if (!prefix)\n        return false;\n    const prefixNum = Number(prefix);\n    if (`${prefixNum}` !== prefix)\n        return false;\n    if (prefixNum < 0 || prefixNum > 128)\n        return false;\n    return isValidIPv6(address);\n}\nexport const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor(\"$ZodCIDRv6\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (!isValidCIDRv6(payload.value)) {\n            payload.issues.push({\n                code: \"invalid_format\",\n                format: \"cidrv6\",\n                input: payload.value,\n                inst,\n                continue: !def.abort,\n            });\n        }\n    };\n});\n//////////////////////////////   ZodBase64   //////////////////////////////\nexport function isValidBase64(data) {\n    if (data === \"\")\n        return true;\n    // atob ignores whitespace, so reject it up front.\n    if (/\\s/.test(data))\n        return false;\n    if (data.length % 4 !== 0)\n        return false;\n    try {\n        // @ts-ignore\n        atob(data);\n        return true;\n    }\n    catch {\n        return false;\n    }\n}\n// lax on purpose: the quantified regexes.base64 overflows the regex stack on multi-MB input and its leading ^$| alternation leaks through template-literal composition; isValidBase64 enforces length and padding\nexport const base64Charset = /^[0-9a-zA-Z+/]*={0,2}$/;\nexport const $ZodBase64 = /*@__PURE__*/ core.$constructor(\"$ZodBase64\", (inst, def) => {\n    def.pattern ?? (def.pattern = base64Charset);\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (isValidBase64(payload.value))\n            return;\n        payload.issues.push({\n            code: \"invalid_format\",\n            format: \"base64\",\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\n//////////////////////////////   ZodBase64URL   //////////////////////////////\n// lax on purpose: the quantified regexes.base64url overflows the regex stack on multi-MB input; isValidBase64 enforces length on the padded string\nexport const base64urlCharset = /^[A-Za-z0-9_-]*$/;\nexport function isValidBase64URL(data) {\n    if (!base64urlCharset.test(data))\n        return false;\n    const base64 = data.replace(/[-_]/g, (c) => (c === \"-\" ? \"+\" : \"/\"));\n    const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, \"=\");\n    return isValidBase64(padded);\n}\nexport const $ZodBase64URL = /*@__PURE__*/ core.$constructor(\"$ZodBase64URL\", (inst, def) => {\n    def.pattern ?? (def.pattern = base64urlCharset);\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (isValidBase64URL(payload.value))\n            return;\n        payload.issues.push({\n            code: \"invalid_format\",\n            format: \"base64url\",\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodE164 = /*@__PURE__*/ core.$constructor(\"$ZodE164\", (inst, def) => {\n    def.pattern ?? (def.pattern = regexes.e164);\n    $ZodStringFormat.init(inst, def);\n});\n//////////////////////////////   ZodCreditCard   //////////////////////////////\nconst CC_SANITIZE = /[- ]/g;\n/** Luhn checksum on a digit-only string. Adapted from valibot (MIT). */\nfunction isLuhnAlgo(digits) {\n    let length = digits.length;\n    let bit = 1;\n    let sum = 0;\n    while (length) {\n        const value = digits.charCodeAt(--length) - 48;\n        bit ^= 1;\n        sum += bit ? [0, 2, 4, 6, 8, 1, 3, 5, 7, 9][value] : value;\n    }\n    return sum % 10 === 0;\n}\nexport function isValidCreditCard(input) {\n    if (!regexes.creditCard.test(input))\n        return false;\n    return isLuhnAlgo(input.replace(CC_SANITIZE, \"\"));\n}\nexport const $ZodCreditCard = /*@__PURE__*/ core.$constructor(\"$ZodCreditCard\", (inst, def) => {\n    // Shape only — the Luhn check below is not expressible as a pattern, so consumers of `pattern` (JSON Schema, template literals) get the length and separator rules alone.\n    def.pattern ?? (def.pattern = regexes.creditCard);\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (isValidCreditCard(payload.value))\n            return;\n        payload.issues.push({\n            code: \"invalid_format\",\n            format: \"credit_card\",\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\n//////////////////////////////   ZodIBAN   //////////////////////////////\n// iso 7064 mod 97-10 checksum without BigInt\nfunction isIso7064Mod97(iban) {\n    let remainder = 0;\n    const len = iban.length;\n    for (let i = 4; i < len; i++) {\n        const code = iban.charCodeAt(i);\n        remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;\n    }\n    for (let i = 0; i < 4; i++) {\n        const code = iban.charCodeAt(i);\n        remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;\n    }\n    return remainder === 1;\n}\nexport function isValidIBAN(input) {\n    if (!regexes.iban.test(input))\n        return false;\n    return isIso7064Mod97(input);\n}\nexport const $ZodIBAN = /*@__PURE__*/ core.$constructor(\"$ZodIBAN\", (inst, def) => {\n    // shape only — checksum is not expressible as a pattern\n    def.pattern ?? (def.pattern = regexes.iban);\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (isValidIBAN(payload.value))\n            return;\n        payload.issues.push({\n            code: \"invalid_format\",\n            format: \"iban\",\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\n//////////////////////////////   ZodJWT   //////////////////////////////\nexport function isValidJWT(token, algorithm = null) {\n    try {\n        const tokensParts = token.split(\".\");\n        if (tokensParts.length !== 3)\n            return false;\n        const [header] = tokensParts;\n        if (!header)\n            return false;\n        // @ts-ignore\n        const parsedHeader = JSON.parse(atob(header));\n        if (\"typ\" in parsedHeader && parsedHeader?.typ !== \"JWT\")\n            return false;\n        if (!parsedHeader.alg)\n            return false;\n        if (algorithm && (!(\"alg\" in parsedHeader) || parsedHeader.alg !== algorithm))\n            return false;\n        return true;\n    }\n    catch {\n        return false;\n    }\n}\nexport const $ZodJWT = /*@__PURE__*/ core.$constructor(\"$ZodJWT\", (inst, def) => {\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (isValidJWT(payload.value, def.alg))\n            return;\n        payload.issues.push({\n            code: \"invalid_format\",\n            format: \"jwt\",\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodCustomStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodCustomStringFormat\", (inst, def) => {\n    $ZodStringFormat.init(inst, def);\n    inst._zod.check = (payload) => {\n        if (def.fn(payload.value))\n            return;\n        payload.issues.push({\n            code: \"invalid_format\",\n            format: def.format,\n            input: payload.value,\n            inst,\n            continue: !def.abort,\n        });\n    };\n});\nexport const $ZodNumber = /*@__PURE__*/ core.$constructor(\"$ZodNumber\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.pattern = regexes.number;\n    inst._zod.parse = (payload, _ctx) => {\n        if (def.coerce)\n            try {\n                payload.value = Number(payload.value);\n            }\n            catch (_) { }\n        const input = payload.value;\n        if (typeof input === \"number\" && !Number.isNaN(input) && Number.isFinite(input)) {\n            return payload;\n        }\n        const received = typeof input === \"number\"\n            ? Number.isNaN(input)\n                ? \"NaN\"\n                : !Number.isFinite(input)\n                    ? String(input)\n                    : undefined\n            : undefined;\n        payload.issues.push({\n            expected: \"number\",\n            code: \"invalid_type\",\n            input,\n            inst,\n            ...(received ? { received } : {}),\n        });\n        return payload;\n    };\n});\nexport const $ZodNumberFormat = /*@__PURE__*/ core.$constructor(\"$ZodNumberFormat\", (inst, def) => {\n    checks.$ZodCheckNumberFormat.init(inst, def);\n    $ZodNumber.init(inst, def); // no format checks\n});\nexport const $ZodBoolean = /*@__PURE__*/ core.$constructor(\"$ZodBoolean\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.pattern = regexes.boolean;\n    inst._zod.parse = (payload, _ctx) => {\n        if (def.coerce)\n            try {\n                payload.value = Boolean(payload.value);\n            }\n            catch (_) { }\n        const input = payload.value;\n        if (typeof input === \"boolean\")\n            return payload;\n        payload.issues.push({\n            expected: \"boolean\",\n            code: \"invalid_type\",\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodBigInt = /*@__PURE__*/ core.$constructor(\"$ZodBigInt\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.pattern = regexes.bigint;\n    inst._zod.parse = (payload, _ctx) => {\n        if (def.coerce)\n            try {\n                payload.value = BigInt(payload.value);\n            }\n            catch (_) { }\n        if (typeof payload.value === \"bigint\")\n            return payload;\n        payload.issues.push({\n            expected: \"bigint\",\n            code: \"invalid_type\",\n            input: payload.value,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor(\"$ZodBigIntFormat\", (inst, def) => {\n    checks.$ZodCheckBigIntFormat.init(inst, def);\n    $ZodBigInt.init(inst, def); // no format checks\n});\nexport const $ZodSymbol = /*@__PURE__*/ core.$constructor(\"$ZodSymbol\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, _ctx) => {\n        const input = payload.value;\n        if (typeof input === \"symbol\")\n            return payload;\n        payload.issues.push({\n            expected: \"symbol\",\n            code: \"invalid_type\",\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodUndefined = /*@__PURE__*/ core.$constructor(\"$ZodUndefined\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.pattern = regexes.undefined;\n    inst._zod.values = new Set([undefined]);\n    inst._zod.parse = (payload, _ctx) => {\n        const input = payload.value;\n        if (typeof input === \"undefined\")\n            return payload;\n        payload.issues.push({\n            expected: \"undefined\",\n            code: \"invalid_type\",\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodNull = /*@__PURE__*/ core.$constructor(\"$ZodNull\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.pattern = regexes.null;\n    inst._zod.values = new Set([null]);\n    inst._zod.parse = (payload, _ctx) => {\n        const input = payload.value;\n        if (input === null)\n            return payload;\n        payload.issues.push({\n            expected: \"null\",\n            code: \"invalid_type\",\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodAny = /*@__PURE__*/ core.$constructor(\"$ZodAny\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload) => payload;\n});\nexport const $ZodUnknown = /*@__PURE__*/ core.$constructor(\"$ZodUnknown\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload) => payload;\n});\nexport const $ZodNever = /*@__PURE__*/ core.$constructor(\"$ZodNever\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, _ctx) => {\n        payload.issues.push({\n            expected: \"never\",\n            code: \"invalid_type\",\n            input: payload.value,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodVoid = /*@__PURE__*/ core.$constructor(\"$ZodVoid\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, _ctx) => {\n        const input = payload.value;\n        if (typeof input === \"undefined\")\n            return payload;\n        payload.issues.push({\n            expected: \"void\",\n            code: \"invalid_type\",\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodDate = /*@__PURE__*/ core.$constructor(\"$ZodDate\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, _ctx) => {\n        if (def.coerce) {\n            try {\n                payload.value = new Date(payload.value);\n            }\n            catch (_err) { }\n        }\n        const input = payload.value;\n        const isDate = input instanceof Date;\n        const isValidDate = isDate && !Number.isNaN(input.getTime());\n        if (isValidDate)\n            return payload;\n        payload.issues.push({\n            expected: \"date\",\n            code: \"invalid_type\",\n            input,\n            ...(isDate ? { received: \"Invalid Date\" } : {}),\n            inst,\n        });\n        return payload;\n    };\n});\n// an oversized container fails its leading size checks before any element is parsed\nfunction capSize(inst, size) {\n    const caps = util.sizeCaps(inst._zod.def.checks);\n    if (!caps.length)\n        return;\n    const cap = Math.min(...caps.map((c) => c[0]));\n    const parse = inst._zod.parse;\n    inst._zod.parse = (payload, ctx) => {\n        const n = size(payload.value);\n        if (n > cap && !ctx?.skipChecks && ctx?.direction !== \"backward\") {\n            for (const [max, ch] of util.sizeCaps(inst._zod.def.checks)) {\n                if (n > max && ch._zod.def.when(payload)) {\n                    const start = payload.issues.length;\n                    ch._zod.check(payload);\n                    // the value is still the raw input, so no later check may read it\n                    payload.issues[start].continue = false;\n                    util.attachSchema(payload.issues, start, inst);\n                    return payload;\n                }\n            }\n        }\n        return parse(payload, ctx);\n    };\n}\nconst arraySize = (input) => (Array.isArray(input) ? input.length : -1);\nconst mapSize = (input) => (input instanceof Map ? input.size : -1);\nconst setSize = (input) => (input instanceof Set ? input.size : -1);\nfunction handleArrayResult(result, final, index) {\n    if (result.issues.length) {\n        final.issues.push(...util.prefixIssues(index, result.issues));\n    }\n    final.value[index] = result.value;\n}\nexport const $ZodArray = /*@__PURE__*/ core.$constructor(\"$ZodArray\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const memo = core.globalConfig.memoizer;\n    memo?.attach(inst);\n    inst._zod.parse = (payload, ctx) => {\n        const input = payload.value;\n        if (!Array.isArray(input)) {\n            payload.issues.push({\n                expected: \"array\",\n                code: \"invalid_type\",\n                input,\n                inst,\n            });\n            return payload;\n        }\n        payload.value = memo ? memo.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);\n        const proms = [];\n        const abortEarly = ctx?.abortEarly;\n        for (let i = 0; i < input.length; i++) {\n            const item = input[i];\n            const result = def.element._zod.run({\n                value: item,\n                issues: [],\n            }, ctx);\n            if (result instanceof Promise) {\n                proms.push(result.then((result) => handleArrayResult(result, payload, i)));\n            }\n            else {\n                handleArrayResult(result, payload, i);\n                // the element's payload is authoritative here, since handleArrayResult forwards every issue; an object's is not, because it drops a failed absent optional\n                if (abortEarly && result.issues.length !== 0 && util.aborted(result))\n                    break;\n            }\n        }\n        if (proms.length) {\n            return Promise.all(proms).then(() => payload);\n        }\n        return payload; //handleArrayResultsAsync(parseResults, final);\n    };\n    capSize(inst, arraySize);\n});\nfunction handlePropertyResult(result, final, key, input, optin, optout) {\n    const isPresent = key in input;\n    const isOptionalOut = optout === \"optional\";\n    // The middle rung means \"absence permitted, nothing supplied in its place\", so an absent key contributes nothing — whatever the schema made of `undefined` is invented, not substituted. Only `optional` reaches this with a value: `defaulted` substitutes, and a schema that isn't optional-out has to keep the key.\n    if (!isPresent && isOptionalOut && optin === \"optional\") {\n        return;\n    }\n    if (result.issues.length) {\n        // For optional-in/out schemas, ignore errors on absent keys.\n        if (optin !== undefined && isOptionalOut && !isPresent) {\n            return;\n        }\n        final.issues.push(...util.prefixIssues(key, result.issues));\n    }\n    if (!isPresent && optin === undefined) {\n        if (!result.issues.length) {\n            final.issues.push({\n                code: \"invalid_type\",\n                expected: \"nonoptional\",\n                input: undefined,\n                path: [key],\n            });\n        }\n        return;\n    }\n    if (result.value === undefined) {\n        if (isPresent || (optin === \"defaulted\" && !isOptionalOut)) {\n            final.value[key] = undefined;\n        }\n    }\n    else {\n        final.value[key] = result.value;\n    }\n}\n// one shared instance; a fresh [] per schema cost 56 bytes retained\nconst NO_SYMBOL_KEYS = [];\nfunction normalizeDef(def) {\n    const keys = Object.keys(def.shape);\n    const ownSymbols = Object.getOwnPropertySymbols(def.shape);\n    const symbolKeys = ownSymbols.length ? ownSymbols : NO_SYMBOL_KEYS;\n    // aliases `keys` when there are no symbols, so a string-only shape keeps one array\n    const allKeys = symbolKeys.length ? [...keys, ...symbolKeys] : keys;\n    for (const k of allKeys) {\n        if (!def.shape?.[k]?._zod?.traits?.has(\"$ZodType\")) {\n            throw new Error(`Invalid element at key \"${String(k)}\": expected a Zod schema`);\n        }\n    }\n    const okeys = util.optionalKeys(def.shape);\n    return {\n        ...def,\n        allKeys,\n        symbolKeys,\n        // string-only: handleCatchall matches it against `for...in`, which never yields a symbol\n        keySet: new Set(keys),\n        numKeys: keys.length,\n        optionalKeys: new Set(okeys),\n    };\n}\nfunction handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {\n    const unrecognized = [];\n    const keySet = def.keySet;\n    const _catchall = def.catchall._zod;\n    const t = _catchall.def.type;\n    const optin = _catchall.optin;\n    const optout = _catchall.optout;\n    // starts at 0, not the current length: the shape phase already ran and may have aborted\n    let seen = 0;\n    for (const key in input) {\n        if (abortEarly && payload.issues.length !== seen) {\n            if (util.aborted(payload, seen))\n                break;\n            seen = payload.issues.length;\n        }\n        // Must precede the __proto__ branch: a declared key is not unrecognized, even though the shape loop deliberately strips __proto__ from the parsed output.\n        if (keySet.has(key))\n            continue;\n        // Don't copy an undeclared __proto__ into the result; assignment to a plain {} would replace the result prototype. But in strict mode it is still an unknown key, so report it before skipping.\n        if (key === \"__proto__\") {\n            if (t === \"never\")\n                unrecognized.push(key);\n            continue;\n        }\n        if (t === \"never\") {\n            unrecognized.push(key);\n            continue;\n        }\n        const r = _catchall.run({ value: input[key], issues: [] }, ctx);\n        if (r instanceof Promise) {\n            proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));\n        }\n        else {\n            handlePropertyResult(r, payload, key, input, optin, optout);\n        }\n    }\n    if (unrecognized.length) {\n        payload.issues.push({\n            code: \"unrecognized_keys\",\n            keys: unrecognized,\n            input,\n            inst,\n            // Describes the shape of the input, not the validity of the parsed value, so it never aborts. The parse still fails; the schema's own checks just get to run first, and an enclosing intersection can reconcile the key against a sibling operand.\n            continue: true,\n        });\n    }\n    if (!proms.length)\n        return payload;\n    return Promise.all(proms).then(() => {\n        return payload;\n    });\n}\nexport const $ZodObject = /*@__PURE__*/ core.$constructor(\"$ZodObject\", (inst, def) => {\n    // requires cast because technically $ZodObject doesn't extend\n    $ZodType.init(inst, def);\n    const desc = Object.getOwnPropertyDescriptor(def, \"shape\");\n    // a cloned def carries its source's accessor, which knows the shape it answers from; adopting that keeps the clone's keys readable without running it\n    const sh = desc?.get ? desc.get.raw : (def.shape ?? {});\n    if (sh) {\n        // Freezes the shape on first read, so its getters resolve once and every later read sees the same schemas.\n        const get = () => {\n            const newSh = { ...sh };\n            Object.defineProperty(def, \"shape\", { value: newSh });\n            get.raw = newSh;\n            return newSh;\n        };\n        get.raw = sh;\n        Object.defineProperty(def, \"shape\", { get });\n    }\n    const _normalized = util.cached(() => normalizeDef(def));\n    util.defineLazyInternal(inst, \"propValues\", (zod) => {\n        const shape = zod.def.shape;\n        const propValues = {};\n        for (const key in shape) {\n            const field = shape[key]._zod;\n            if (field.values) {\n                if (!Object.prototype.hasOwnProperty.call(propValues, key)) {\n                    util.assignProp(propValues, key, new Set());\n                }\n                for (const v of field.values)\n                    propValues[key].add(v);\n                // An omittable slot reads back as undefined at a discriminator lookup, so it has to claim undefined: two options that can both omit the key are not discriminable on it.\n                if (field.optin !== undefined)\n                    propValues[key].add(undefined);\n            }\n        }\n        return propValues;\n    });\n    const isObject = util.isObject;\n    const catchall = def.catchall;\n    let value;\n    const memo = core.globalConfig.memoizer;\n    memo?.attach(inst);\n    inst._zod.parse = (payload, ctx) => {\n        value ?? (value = _normalized.value);\n        const input = payload.value;\n        if (!isObject(input)) {\n            payload.issues.push({\n                expected: \"object\",\n                code: \"invalid_type\",\n                input,\n                inst,\n            });\n            return payload;\n        }\n        payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};\n        const proms = [];\n        const shape = value.shape;\n        const abortEarly = ctx?.abortEarly;\n        let seen = payload.issues.length;\n        for (const key of value.allKeys) {\n            if (abortEarly && payload.issues.length !== seen) {\n                if (util.aborted(payload, seen))\n                    break;\n                seen = payload.issues.length;\n            }\n            if (key === \"__proto__\")\n                continue;\n            const el = shape[key];\n            const optin = el._zod.optin;\n            const optout = el._zod.optout;\n            const r = el._zod.run({ value: input[key], issues: [] }, ctx);\n            if (r instanceof Promise) {\n                proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));\n            }\n            else {\n                handlePropertyResult(r, payload, key, input, optin, optout);\n            }\n        }\n        if (!catchall) {\n            return proms.length ? Promise.all(proms).then(() => payload) : payload;\n        }\n        return handleCatchall(proms, input, payload, ctx, _normalized.value, inst, abortEarly === true);\n    };\n});\nexport const $ZodObjectJIT = /*@__PURE__*/ core.$constructor(\"$ZodObjectJIT\", (inst, def) => {\n    // requires cast because technically $ZodObject doesn't extend\n    $ZodObject.init(inst, def);\n    const superParse = inst._zod.parse;\n    const _normalized = util.cached(() => normalizeDef(def));\n    const memo = core.globalConfig.memoizer;\n    const generateFastpass = (shape) => {\n        const normalized = _normalized.value;\n        const syms = normalized.symbolKeys;\n        // a symbol has no source literal, so it is read as `syms[i]` off the closed-over scope\n        const doc = new Doc([\"payload\", \"ctx\"], { shape, inst, memo, syms });\n        const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;\n        // prefixes in place, like util.prefixIssues. newResult must land before the early return: a catchall runs after this and would otherwise write onto the caller's input\n        const prefixStr = (id, k) => `\n          let ${id}_ab = false;\n          for (let i = 0; i < ${id}.issues.length; i++) {\n            const iss = ${id}.issues[i];\n            iss.path = iss.path ? [${k}, ...iss.path] : [${k}];\n            payload.issues.push(iss);\n            if (iss.continue !== true) ${id}_ab = true;\n          }\n          if (${id}_ab && ctx && ctx.abortEarly) {\n            payload.value = newResult;\n            return payload;\n          }`;\n        doc.write(`const input = payload.value;`);\n        const ids = Object.create(null);\n        let counter = 0;\n        for (const key of normalized.allKeys) {\n            ids[key] = `key_${counter++}`;\n        }\n        // A: preserve key order {\n        doc.write(memo ? `const newResult = memo.alloc(inst, payload, {}, ctx);` : `const newResult = {};`);\n        for (const key of normalized.allKeys) {\n            if (key === \"__proto__\")\n                continue;\n            const id = ids[key];\n            const k = typeof key === \"symbol\" ? `syms[${syms.indexOf(key)}]` : util.esc(key);\n            const isPresent = `${k} in input`;\n            const schema = shape[key];\n            const optin = schema?._zod?.optin;\n            const isOptionalIn = optin !== undefined;\n            const isOptionalOut = schema?._zod?.optout === \"optional\";\n            doc.write(`const ${id} = ${parseStr(k)};`);\n            if (isOptionalIn && isOptionalOut) {\n                // For optional-in/out schemas, ignore errors on absent keys — and, like the interpreted path, drop the value produced alongside them. The middle rung goes further: it permits absence without supplying anything in its place, so an absent key contributes nothing at all.\n                const assign = optin === \"optional\" ? `${id}_present` : `${id}.value !== undefined || ${id}_present`;\n                doc.write(`\n        const ${id}_present = ${isPresent};\n        if (!${id}.issues.length || ${id}_present) {\n          if (${id}.issues.length) {${prefixStr(id, k)}\n          }\n\n          if (${assign}) {\n            newResult[${k}] = ${id}.value;\n          }\n        }\n\n      `);\n            }\n            else if (!isOptionalIn) {\n                doc.write(`\n        const ${id}_present = ${isPresent};\n        if (${id}.issues.length) {${prefixStr(id, k)}\n        }\n        if (!${id}_present && !${id}.issues.length) {\n          payload.issues.push({\n            code: \"invalid_type\",\n            expected: \"nonoptional\",\n            input: undefined,\n            path: [${k}]\n          });\n          if (ctx && ctx.abortEarly) {\n            payload.value = newResult;\n            return payload;\n          }\n        }\n\n        if (${id}_present) {\n          newResult[${k}] = ${id}.value;\n        }\n\n      `);\n            }\n            else {\n                doc.write(`\n        if (${id}.issues.length) {${prefixStr(id, k)}\n        }\n      `);\n                if (optin === \"defaulted\") {\n                    doc.write(`newResult[${k}] = ${id}.value;`);\n                }\n                else {\n                    doc.write(`\n        if (${id}.value !== undefined || ${isPresent}) {\n          newResult[${k}] = ${id}.value;\n        }\n      `);\n                }\n            }\n        }\n        doc.write(`payload.value = newResult;`);\n        doc.write(`return payload;`);\n        // closing `shape` in is what pays: turbofan specializes the parser against that one shape object, so every `shape[k]._zod.run` folds to a known callee. as a parameter it stays a generic load and measures 13% slower even with the forwarding frame gone\n        return doc.compile();\n    };\n    let fastpass;\n    const isObject = util.isObject;\n    const jit = !core.globalConfig.jitless;\n    const allowsEval = util.allowsEval;\n    const fastEnabled = jit && allowsEval.value; // && !def.catchall;\n    const catchall = def.catchall;\n    let value;\n    inst._zod.parse = (payload, ctx) => {\n        value ?? (value = _normalized.value);\n        const input = payload.value;\n        if (!isObject(input)) {\n            payload.issues.push({\n                expected: \"object\",\n                code: \"invalid_type\",\n                input,\n                inst,\n            });\n            return payload;\n        }\n        if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {\n            // always synchronous\n            if (!fastpass)\n                fastpass = generateFastpass(def.shape);\n            payload = fastpass(payload, ctx);\n            if (!catchall)\n                return payload;\n            return handleCatchall([], input, payload, ctx, value, inst, ctx?.abortEarly === true);\n        }\n        return superParse(payload, ctx);\n    };\n});\nfunction handleUnionResults(results, final, inst, ctx) {\n    for (const result of results) {\n        if (result.issues.length === 0) {\n            final.value = result.value;\n            return final;\n        }\n    }\n    const nonaborted = results.filter((r) => !util.aborted(r));\n    if (nonaborted.length === 1) {\n        final.value = nonaborted[0].value;\n        return nonaborted[0];\n    }\n    final.issues.push({\n        code: \"invalid_union\",\n        input: final.value,\n        inst,\n        errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n    });\n    return final;\n}\nexport const $ZodUnion = /*@__PURE__*/ core.$constructor(\"$ZodUnion\", (inst, def) => {\n    $ZodType.init(inst, def);\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.def.options.some((o) => o._zod.optin === \"defaulted\")\n        ? \"defaulted\"\n        : zod.def.options.some((o) => o._zod.optin !== undefined)\n            ? \"optional\"\n            : undefined);\n    util.defineLazyInternal(inst, \"optout\", (zod) => zod.def.options.some((o) => o._zod.optout === \"optional\") ? \"optional\" : undefined);\n    util.defineLazyInternal(inst, \"values\", (zod) => {\n        if (zod.def.options.every((o) => o._zod.values)) {\n            return new Set(zod.def.options.flatMap((option) => Array.from(option._zod.values)));\n        }\n        return undefined;\n    });\n    util.defineLazyInternal(inst, \"pattern\", (zod) => {\n        if (zod.def.options.every((o) => o._zod.pattern)) {\n            const patterns = zod.def.options.map((o) => o._zod.pattern);\n            return new RegExp(`^(${patterns.map((p) => util.cleanRegex(p.source)).join(\"|\")})$`);\n        }\n        return undefined;\n    });\n    const first = def.options.length === 1 ? def.options[0]._zod.run : null;\n    inst._zod.parse = (payload, ctx) => {\n        if (first) {\n            return first(payload, ctx);\n        }\n        let async = false;\n        const results = [];\n        for (const option of def.options) {\n            const result = option._zod.run({\n                value: payload.value,\n                issues: [],\n            }, ctx);\n            if (result instanceof Promise) {\n                results.push(result);\n                async = true;\n            }\n            else {\n                if (result.issues.length === 0)\n                    return result;\n                results.push(result);\n            }\n        }\n        if (!async)\n            return handleUnionResults(results, payload, inst, ctx);\n        return Promise.all(results).then((results) => {\n            return handleUnionResults(results, payload, inst, ctx);\n        });\n    };\n});\nfunction handleExclusiveUnionResults(results, final, inst, ctx) {\n    const matches = [];\n    for (let i = 0; i < results.length; i++) {\n        if (results[i].issues.length === 0)\n            matches.push(i);\n    }\n    if (matches.length === 1) {\n        final.value = results[matches[0]].value;\n        return final;\n    }\n    if (matches.length === 0) {\n        // No matches - same as regular union\n        final.issues.push({\n            code: \"invalid_union\",\n            input: final.value,\n            inst,\n            errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),\n        });\n    }\n    else {\n        // Multiple matches - exclusive union failure\n        final.issues.push({\n            code: \"invalid_union\",\n            input: final.value,\n            inst,\n            errors: [],\n            inclusive: false,\n            matches,\n        });\n    }\n    return final;\n}\nexport const $ZodXor = /*@__PURE__*/ core.$constructor(\"$ZodXor\", (inst, def) => {\n    $ZodUnion.init(inst, def);\n    def.inclusive = false;\n    const first = def.options.length === 1 ? def.options[0]._zod.run : null;\n    inst._zod.parse = (payload, ctx) => {\n        if (first) {\n            return first(payload, ctx);\n        }\n        let async = false;\n        const results = [];\n        for (const option of def.options) {\n            const result = option._zod.run({\n                value: payload.value,\n                issues: [],\n            }, ctx);\n            if (result instanceof Promise) {\n                results.push(result);\n                async = true;\n            }\n            else {\n                results.push(result);\n            }\n        }\n        if (!async)\n            return handleExclusiveUnionResults(results, payload, inst, ctx);\n        return Promise.all(results).then((results) => {\n            return handleExclusiveUnionResults(results, payload, inst, ctx);\n        });\n    };\n});\n/** Returns the option whose discriminator claims `value`, or throws if ambiguous. */\nexport function getDiscriminatedOption(union, value) {\n    const internals = union._zod;\n    let map = internals.bag.optionsMap;\n    if (!map) {\n        map = discriminatorMap(internals.def);\n        internals.bag.optionsMap = map;\n    }\n    const option = map.get(value);\n    if (option === null)\n        throw new Error(`Ambiguous discriminator value \"${String(value)}\"`);\n    return option;\n}\nfunction discriminatorMap(def) {\n    const map = new Map();\n    for (const option of def.options) {\n        const values = option._zod.propValues?.[def.discriminator];\n        if (!values || values.size === 0)\n            throw new Error(`Invalid discriminated union option at index \"${def.options.indexOf(option)}\"`);\n        for (const value of values) {\n            if (map.has(value)) {\n                if (value !== undefined)\n                    throw new Error(`Duplicate discriminator value \"${String(value)}\"`);\n                // keep the collision marked so a later member cannot reclaim it\n                map.set(value, null);\n            }\n            else {\n                map.set(value, option);\n            }\n        }\n    }\n    return map;\n}\nexport const $ZodDiscriminatedUnion = \n/*@__PURE__*/\ncore.$constructor(\"$ZodDiscriminatedUnion\", (inst, def) => {\n    def.inclusive = false;\n    $ZodUnion.init(inst, def);\n    const _super = inst._zod.parse;\n    util.defineLazyInternal(inst, \"propValues\", (zod) => {\n        const propValues = {};\n        let undefinedCount = 0;\n        for (const option of zod.def.options) {\n            const pv = option._zod.propValues;\n            if (!pv || Object.keys(pv).length === 0)\n                throw new Error(`Invalid discriminated union option at index \"${zod.def.options.indexOf(option)}\"`);\n            if (pv[zod.def.discriminator]?.has(undefined))\n                undefinedCount++;\n            for (const [k, v] of Object.entries(pv)) {\n                if (!Object.prototype.hasOwnProperty.call(propValues, k)) {\n                    util.assignProp(propValues, k, new Set());\n                }\n                for (const val of v) {\n                    propValues[k].add(val);\n                }\n            }\n        }\n        if (!zod.def.unionFallback && undefinedCount > 1)\n            propValues[zod.def.discriminator]?.delete(undefined);\n        return propValues;\n    });\n    // Checked now rather than in the lookup map below, so an option that lacks the discriminator fails at the `discriminatedUnion` call instead of on the first object parsed. Options whose shape cannot be enumerated without resolving it — pipes and lazies — are left to the map.\n    def.options.forEach((option, i) => {\n        const propShape = util.rawShape(option._zod.def);\n        if (propShape && !Object.prototype.hasOwnProperty.call(propShape, def.discriminator)) {\n            throw new Error(`Invalid discriminated union option at index \"${i}\"`);\n        }\n    });\n    const disc = util.cached(() => discriminatorMap(def));\n    inst._zod.parse = (payload, ctx) => {\n        const input = payload.value;\n        if (!util.isObject(input)) {\n            payload.issues.push({\n                code: \"invalid_type\",\n                expected: \"object\",\n                input,\n                inst,\n            });\n            return payload;\n        }\n        const value = input?.[def.discriminator];\n        const opt = disc.value.get(value);\n        // forward metadata cannot choose an encoder for an absent tag\n        if (opt && (value !== undefined || ctx.direction !== \"backward\")) {\n            return opt._zod.run(payload, ctx);\n        }\n        // Fall back to union matching when the fast discriminator path fails:\n        // - explicitly enabled via unionFallback, or\n        // - during backward direction (encode), since codec-based discriminators have different values in forward vs backward directions\n        if (def.unionFallback || ctx.direction === \"backward\") {\n            return _super(payload, ctx);\n        }\n        // no matching discriminator\n        payload.issues.push({\n            code: \"invalid_union\",\n            errors: [],\n            note: \"No matching discriminator\",\n            discriminator: def.discriminator,\n            options: Array.from(disc.value.keys()).filter((value) => disc.value.get(value) !== null),\n            input,\n            path: [def.discriminator],\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodIntersection = /*@__PURE__*/ core.$constructor(\"$ZodIntersection\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, ctx) => {\n        const input = payload.value;\n        const left = def.left._zod.run({ value: input, issues: [] }, ctx);\n        const right = def.right._zod.run({ value: input, issues: [] }, ctx);\n        const async = left instanceof Promise || right instanceof Promise;\n        if (async) {\n            return Promise.all([left, right]).then(([left, right]) => {\n                return handleIntersectionResults(payload, left, right);\n            });\n        }\n        return handleIntersectionResults(payload, left, right);\n    };\n});\nexport function mergeValues(a, b) {\n    // const aType = parse.t(a);\n    // const bType = parse.t(b);\n    if (a === b) {\n        return { valid: true, data: a };\n    }\n    if (a instanceof Date && b instanceof Date && +a === +b) {\n        return { valid: true, data: a };\n    }\n    if (util.isPlainObject(a) && util.isPlainObject(b)) {\n        const bKeys = Object.keys(b);\n        const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);\n        const newObj = { ...a, ...b };\n        if (Object.prototype.hasOwnProperty.call(newObj, \"__proto__\"))\n            delete newObj.__proto__;\n        for (const key of sharedKeys) {\n            if (key === \"__proto__\")\n                continue;\n            const sharedValue = mergeValues(a[key], b[key]);\n            if (!sharedValue.valid) {\n                return {\n                    valid: false,\n                    mergeErrorPath: [key, ...sharedValue.mergeErrorPath],\n                };\n            }\n            newObj[key] = sharedValue.data;\n        }\n        return { valid: true, data: newObj };\n    }\n    if (Array.isArray(a) && Array.isArray(b)) {\n        if (a.length !== b.length) {\n            return { valid: false, mergeErrorPath: [] };\n        }\n        const newArray = [];\n        for (let index = 0; index < a.length; index++) {\n            const itemA = a[index];\n            const itemB = b[index];\n            const sharedValue = mergeValues(itemA, itemB);\n            if (!sharedValue.valid) {\n                return {\n                    valid: false,\n                    mergeErrorPath: [index, ...sharedValue.mergeErrorPath],\n                };\n            }\n            newArray.push(sharedValue.data);\n        }\n        return { valid: true, data: newArray };\n    }\n    return { valid: false, mergeErrorPath: [] };\n}\nfunction handleIntersectionResults(result, left, right) {\n    // Track which side(s) reject each key. A key rejection is reported only when BOTH sides reject it, so a key owned by one branch survives the other's key schema. strictObject reports these as unrecognized_keys; a record with an open key schema reports one invalid_key per key.\n    const unrecKeys = new Map();\n    let unrecIssue;\n    const keyIssues = new Map();\n    const collect = (iss, side) => {\n        let keys;\n        if (iss.code === \"unrecognized_keys\" && !iss.path?.length) {\n            unrecIssue ?? (unrecIssue = iss);\n            keys = iss.keys;\n        }\n        else if (iss.code === \"invalid_key\" && iss.origin === \"record\" && iss.path?.length === 1) {\n            const k = String(iss.path[0]);\n            if (!keyIssues.has(k))\n                keyIssues.set(k, iss);\n            keys = [k];\n        }\n        else {\n            return false;\n        }\n        for (const k of keys) {\n            if (!unrecKeys.has(k))\n                unrecKeys.set(k, {});\n            unrecKeys.get(k)[side] = true;\n        }\n        return true;\n    };\n    for (const iss of left.issues) {\n        if (!collect(iss, \"l\"))\n            result.issues.push(iss);\n    }\n    for (const iss of right.issues) {\n        if (!collect(iss, \"r\"))\n            result.issues.push(iss);\n    }\n    // Report only keys rejected by BOTH sides\n    const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);\n    if (bothKeys.length) {\n        const aggregated = unrecIssue ? bothKeys.filter((k) => unrecIssue.keys.includes(k)) : [];\n        if (aggregated.length)\n            result.issues.push({ ...unrecIssue, keys: aggregated });\n        for (const k of bothKeys) {\n            if (!aggregated.includes(k) && keyIssues.has(k))\n                result.issues.push(keyIssues.get(k));\n        }\n    }\n    const merged = mergeValues(left.value, right.value);\n    if (!merged.valid) {\n        if (util.aborted(result))\n            return result;\n        throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);\n    }\n    result.value = merged.data;\n    return result;\n}\nexport const $ZodTuple = /*@__PURE__*/ core.$constructor(\"$ZodTuple\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const items = def.items;\n    const memo = core.globalConfig.memoizer;\n    memo?.attach(inst);\n    inst._zod.parse = (payload, ctx) => {\n        const input = payload.value;\n        if (!Array.isArray(input)) {\n            payload.issues.push({\n                input,\n                inst,\n                expected: \"tuple\",\n                code: \"invalid_type\",\n            });\n            return payload;\n        }\n        payload.value = memo ? memo.alloc(inst, payload, [], ctx) : [];\n        const proms = [];\n        const optinStart = getTupleOptStart(items, \"optin\");\n        const optoutStart = getTupleOptStart(items, \"optout\");\n        if (!def.rest) {\n            if (input.length < optinStart) {\n                payload.issues.push({\n                    code: \"too_small\",\n                    minimum: optinStart,\n                    inclusive: true,\n                    input,\n                    inst,\n                    origin: \"array\",\n                });\n                return payload;\n            }\n            if (input.length > items.length) {\n                payload.issues.push({\n                    code: \"too_big\",\n                    maximum: items.length,\n                    inclusive: true,\n                    input,\n                    inst,\n                    origin: \"array\",\n                });\n            }\n        }\n        // Run every item in parallel, collecting results into an indexed array. The post-processing in `handleTupleResults` walks them in order so it can decide whether an absent optional-output error can truncate the tail or must be reported to preserve required output.\n        const itemResults = new Array(items.length);\n        // only tracked when there is a rest loop to skip\n        const abortEarly = def.rest ? ctx?.abortEarly : undefined;\n        let itemAborted = false;\n        for (let i = 0; i < items.length; i++) {\n            const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);\n            if (r instanceof Promise) {\n                proms.push(r.then((rr) => {\n                    itemResults[i] = rr;\n                }));\n            }\n            else {\n                itemResults[i] = r;\n                if (abortEarly && !itemAborted && r.issues.length)\n                    itemAborted = util.aborted(r);\n            }\n        }\n        // sound because rest is non-empty exactly when every fixed index is present, the one case handleTupleResults cannot discard an item's issues\n        if (def.rest && !itemAborted) {\n            let i = items.length - 1;\n            const rest = input.slice(items.length);\n            let seen = payload.issues.length;\n            for (const el of rest) {\n                if (abortEarly && payload.issues.length !== seen) {\n                    if (util.aborted(payload, seen))\n                        break;\n                    seen = payload.issues.length;\n                }\n                i++;\n                const result = def.rest._zod.run({ value: el, issues: [] }, ctx);\n                if (result instanceof Promise) {\n                    proms.push(result.then((r) => handleTupleResult(r, payload, i)));\n                }\n                else {\n                    handleTupleResult(result, payload, i);\n                }\n            }\n        }\n        if (proms.length) {\n            return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));\n        }\n        return handleTupleResults(itemResults, payload, items, input, optoutStart);\n    };\n});\nfunction getTupleOptStart(items, key) {\n    for (let i = items.length - 1; i >= 0; i--) {\n        // optin is a three-rung ladder so any rung above `undefined` permits an absent slot; optout stays two-valued.\n        const omittable = key === \"optin\" ? items[i]._zod.optin !== undefined : items[i]._zod.optout === \"optional\";\n        if (!omittable)\n            return i + 1;\n    }\n    return 0;\n}\nfunction handleTupleResult(result, final, index) {\n    if (result.issues.length) {\n        final.issues.push(...util.prefixIssues(index, result.issues));\n    }\n    final.value[index] = result.value;\n}\nfunction handleTupleResults(itemResults, final, items, input, optoutStart) {\n    // Walk results in order. Mirror $ZodObject's swallow-on-absent-optional rule, but only after `optoutStart`: the first index where the output tuple tail can be absent.\n    for (let i = 0; i < items.length; i++) {\n        const r = itemResults[i];\n        const isPresent = i < input.length;\n        // The array analog of `handlePropertyResult`'s absent-key early return: the middle rung permits absence without supplying anything in its place, so the tail truncates here instead of materializing whatever the item made of `undefined`.\n        if (!isPresent && i >= optoutStart && items[i]._zod.optin === \"optional\") {\n            final.value.length = i;\n            break;\n        }\n        if (r.issues.length) {\n            if (!isPresent && i >= optoutStart) {\n                final.value.length = i;\n                break;\n            }\n            final.issues.push(...util.prefixIssues(i, r.issues));\n        }\n        final.value[i] = r.value;\n    }\n    // Drop trailing slots that produced `undefined` for absent input\n    // (the array analog of an absent optional key on an object). The\n    // `i >= input.length` floor is critical: an explicit `undefined`\n    // *inside* the input must be preserved even when the schema is\n    // optional-out (e.g. `z.string().or(z.undefined())` accepting an\n    // explicit undefined value).\n    for (let i = final.value.length - 1; i >= input.length; i--) {\n        if (items[i]._zod.optout === \"optional\" && final.value[i] === undefined) {\n            final.value.length = i;\n        }\n        else {\n            break;\n        }\n    }\n    return final;\n}\nexport const $ZodRecord = /*@__PURE__*/ core.$constructor(\"$ZodRecord\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const memo = core.globalConfig.memoizer;\n    memo?.attach(inst);\n    inst._zod.parse = (payload, ctx) => {\n        const input = payload.value;\n        if (!util.isPlainObject(input)) {\n            payload.issues.push({\n                expected: \"record\",\n                code: \"invalid_type\",\n                input,\n                inst,\n            });\n            return payload;\n        }\n        // no guard in either loop below: a record's invalid_key aborts but an enclosing intersection can reconcile it, so a stopped loop hides keys the sibling does not own and the intersection then rejects nothing\n        const proms = [];\n        const values = def.keyType._zod.values;\n        if (values && !def.partial) {\n            payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};\n            const recordKeys = new Set();\n            for (const key of values) {\n                if (typeof key === \"string\" || typeof key === \"number\" || typeof key === \"symbol\") {\n                    recordKeys.add(typeof key === \"number\" ? key.toString() : key);\n                    // A declared __proto__ is stripped but is not an unrecognized key.\n                    if (key === \"__proto__\")\n                        continue;\n                    const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n                    if (keyResult instanceof Promise) {\n                        throw new Error(\"Async schemas not supported in object keys currently\");\n                    }\n                    if (keyResult.issues.length) {\n                        payload.issues.push({\n                            code: \"invalid_key\",\n                            origin: \"record\",\n                            issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n                            input: key,\n                            path: [key],\n                            inst,\n                        });\n                        continue;\n                    }\n                    const outKey = keyResult.value;\n                    if (outKey === \"__proto__\")\n                        continue;\n                    const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);\n                    if (result instanceof Promise) {\n                        proms.push(result.then((result) => {\n                            if (result.issues.length) {\n                                payload.issues.push(...util.prefixIssues(key, result.issues));\n                            }\n                            payload.value[outKey] = result.value;\n                        }));\n                    }\n                    else {\n                        if (result.issues.length) {\n                            payload.issues.push(...util.prefixIssues(key, result.issues));\n                        }\n                        payload.value[outKey] = result.value;\n                    }\n                }\n            }\n            let unrecognized;\n            for (const key in input) {\n                if (!recordKeys.has(key)) {\n                    if (def.mode === \"loose\") {\n                        // skip __proto__ so it can't replace the result prototype via the assignment setter on the plain {} we build into\n                        if (key === \"__proto__\")\n                            continue;\n                        payload.value[key] = input[key];\n                    }\n                    else {\n                        unrecognized = unrecognized ?? [];\n                        unrecognized.push(key);\n                    }\n                }\n            }\n            if (unrecognized && unrecognized.length > 0) {\n                payload.issues.push({\n                    code: \"unrecognized_keys\",\n                    input,\n                    inst,\n                    keys: unrecognized,\n                    continue: true,\n                });\n            }\n        }\n        else {\n            payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};\n            // An enumerable key schema declares which keys the record owns, so a key outside the set is unrecognized. A non-enumerable one (regex, refine) is a constraint every key must satisfy, so a failing key is invalid. Only the former is reconcilable against the other side of an intersection.\n            let unrecognized;\n            // Reflect.ownKeys for Symbol-key support; filter non-enumerable to match z.object()\n            for (const key of Reflect.ownKeys(input)) {\n                if (key === \"__proto__\")\n                    continue;\n                if (!Object.prototype.propertyIsEnumerable.call(input, key))\n                    continue;\n                let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n                if (keyResult instanceof Promise) {\n                    throw new Error(\"Async schemas not supported in object keys currently\");\n                }\n                // Numeric string fallback: if key is a numeric string and failed, retry with Number(key). This handles z.number(), z.literal([1, 2, 3]), and unions containing numeric literals\n                const checkNumericKey = typeof key === \"string\" && regexes.number.test(key) && keyResult.issues.length;\n                if (checkNumericKey) {\n                    const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);\n                    if (retryResult instanceof Promise) {\n                        throw new Error(\"Async schemas not supported in object keys currently\");\n                    }\n                    if (retryResult.issues.length === 0) {\n                        keyResult = retryResult;\n                    }\n                }\n                if (keyResult.issues.length) {\n                    if (def.mode === \"loose\") {\n                        // Pass through unchanged\n                        payload.value[key] = input[key];\n                    }\n                    else if (values) {\n                        unrecognized = unrecognized ?? [];\n                        unrecognized.push(key);\n                    }\n                    else {\n                        // Default \"strict\" behavior: error on invalid key\n                        payload.issues.push({\n                            code: \"invalid_key\",\n                            origin: \"record\",\n                            issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n                            input: key,\n                            path: [key],\n                            inst,\n                        });\n                    }\n                    continue;\n                }\n                // the guard above tests the raw input key, but the key schema can normalize an ordinary key into __proto__; re-check the key we actually write under\n                const outKey = keyResult.value;\n                if (outKey === \"__proto__\")\n                    continue;\n                const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);\n                if (result instanceof Promise) {\n                    proms.push(result.then((result) => {\n                        if (result.issues.length) {\n                            payload.issues.push(...util.prefixIssues(key, result.issues));\n                        }\n                        payload.value[outKey] = result.value;\n                    }));\n                }\n                else {\n                    if (result.issues.length) {\n                        payload.issues.push(...util.prefixIssues(key, result.issues));\n                    }\n                    payload.value[outKey] = result.value;\n                }\n            }\n            if (unrecognized && unrecognized.length > 0) {\n                payload.issues.push({\n                    code: \"unrecognized_keys\",\n                    input,\n                    inst,\n                    keys: unrecognized,\n                    continue: true,\n                });\n            }\n        }\n        if (proms.length) {\n            return Promise.all(proms).then(() => payload);\n        }\n        return payload;\n    };\n});\nexport const $ZodMap = /*@__PURE__*/ core.$constructor(\"$ZodMap\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const memo = core.globalConfig.memoizer;\n    memo?.attach(inst);\n    inst._zod.parse = (payload, ctx) => {\n        const input = payload.value;\n        if (!(input instanceof Map)) {\n            payload.issues.push({\n                expected: \"map\",\n                code: \"invalid_type\",\n                input,\n                inst,\n            });\n            return payload;\n        }\n        const proms = [];\n        payload.value = memo ? memo.alloc(inst, payload, new Map(), ctx) : new Map();\n        const abortEarly = ctx?.abortEarly;\n        let seen = payload.issues.length;\n        for (const [key, value] of input) {\n            if (abortEarly && payload.issues.length !== seen) {\n                if (util.aborted(payload, seen))\n                    break;\n                seen = payload.issues.length;\n            }\n            const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n            const valueResult = def.valueType._zod.run({ value: value, issues: [] }, ctx);\n            if (keyResult instanceof Promise || valueResult instanceof Promise) {\n                proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => {\n                    handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);\n                }));\n            }\n            else {\n                handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);\n            }\n        }\n        if (proms.length)\n            return Promise.all(proms).then(() => payload);\n        return payload;\n    };\n    capSize(inst, mapSize);\n});\nfunction handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {\n    if (keyResult.issues.length) {\n        if (util.propertyKeyTypes.has(typeof key)) {\n            final.issues.push(...util.prefixIssues(key, keyResult.issues));\n        }\n        else {\n            final.issues.push({\n                code: \"invalid_key\",\n                origin: \"map\",\n                input,\n                inst,\n                issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n            });\n        }\n    }\n    if (valueResult.issues.length) {\n        if (util.propertyKeyTypes.has(typeof key)) {\n            final.issues.push(...util.prefixIssues(key, valueResult.issues));\n        }\n        else {\n            final.issues.push({\n                origin: \"map\",\n                code: \"invalid_element\",\n                input,\n                inst,\n                key: key,\n                issues: valueResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n            });\n        }\n    }\n    final.value.set(keyResult.value, valueResult.value);\n}\nexport const $ZodSet = /*@__PURE__*/ core.$constructor(\"$ZodSet\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const memo = core.globalConfig.memoizer;\n    memo?.attach(inst);\n    inst._zod.parse = (payload, ctx) => {\n        const input = payload.value;\n        if (!(input instanceof Set)) {\n            payload.issues.push({\n                input,\n                inst,\n                expected: \"set\",\n                code: \"invalid_type\",\n            });\n            return payload;\n        }\n        const proms = [];\n        payload.value = memo ? memo.alloc(inst, payload, new Set(), ctx) : new Set();\n        const abortEarly = ctx?.abortEarly;\n        let seen = payload.issues.length;\n        for (const item of input) {\n            if (abortEarly && payload.issues.length !== seen) {\n                if (util.aborted(payload, seen))\n                    break;\n                seen = payload.issues.length;\n            }\n            const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);\n            if (result instanceof Promise) {\n                proms.push(result.then((result) => handleSetResult(result, payload)));\n            }\n            else\n                handleSetResult(result, payload);\n        }\n        if (proms.length)\n            return Promise.all(proms).then(() => payload);\n        return payload;\n    };\n    capSize(inst, setSize);\n});\nfunction handleSetResult(result, final) {\n    if (result.issues.length) {\n        final.issues.push(...result.issues);\n    }\n    final.value.add(result.value);\n}\nexport const $ZodEnum = /*@__PURE__*/ core.$constructor(\"$ZodEnum\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const values = util.getEnumValues(def.entries);\n    const valuesSet = new Set(values);\n    inst._zod.values = valuesSet;\n    util.defineLazyInternal(inst, \"pattern\", (zod) => {\n        const patternValues = util.getEnumValues(zod.def.entries).filter((k) => util.propertyKeyTypes.has(typeof k));\n        // unmatchable fallback, RE2-safe: an empty alternation would compile to /^()$/, which matches \"\"\n        return new RegExp(patternValues.length ? `^(${patternValues.map((o) => util.escapeRegex(o.toString())).join(\"|\")})$` : \"^[^\\\\s\\\\S]$\");\n    });\n    inst._zod.parse = (payload, _ctx) => {\n        const input = payload.value;\n        if (valuesSet.has(input)) {\n            return payload;\n        }\n        payload.issues.push({\n            code: \"invalid_value\",\n            values,\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodLiteral = /*@__PURE__*/ core.$constructor(\"$ZodLiteral\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const values = new Set(def.values);\n    inst._zod.values = values;\n    util.defineLazyInternal(inst, \"pattern\", (zod) => {\n        const vals = zod.def.values;\n        // unmatchable fallback, RE2-safe: an empty alternation would compile to /^()$/, which matches \"\"\n        return new RegExp(vals.length\n            ? `^(${vals\n                .map((o) => typeof o === \"string\" ? util.escapeRegex(o) : o ? util.escapeRegex(o.toString()) : String(o))\n                .join(\"|\")})$`\n            : \"^[^\\\\s\\\\S]$\");\n    });\n    inst._zod.parse = (payload, _ctx) => {\n        const input = payload.value;\n        if (values.has(input)) {\n            return payload;\n        }\n        payload.issues.push({\n            code: \"invalid_value\",\n            values: def.values,\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodFile = /*@__PURE__*/ core.$constructor(\"$ZodFile\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, _ctx) => {\n        const input = payload.value;\n        // @ts-ignore\n        if (input instanceof File)\n            return payload;\n        payload.issues.push({\n            expected: \"file\",\n            code: \"invalid_type\",\n            input,\n            inst,\n        });\n        return payload;\n    };\n});\nexport const $ZodTransform = /*@__PURE__*/ core.$constructor(\"$ZodTransform\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.optin = \"optional\";\n    core.globalConfig.memoizer?.guard(inst);\n    inst._zod.parse = (payload, ctx) => {\n        if (ctx.direction === \"backward\") {\n            throw new core.$ZodEncodeError(inst.constructor.name);\n        }\n        const _out = def.transform(payload.value, payload);\n        if (ctx.async) {\n            const output = _out instanceof Promise ? _out : Promise.resolve(_out);\n            return output.then((output) => {\n                payload.value = output;\n                return payload;\n            });\n        }\n        if (_out instanceof Promise) {\n            throw new core.$ZodAsyncError();\n        }\n        payload.value = _out;\n        return payload;\n    };\n});\nfunction handleOptionalResult(payload, result) {\n    // A substituting schema that still failed has no usable answer; yield undefined. Its issues are simply dropped: it ran on a payload of its own, so there is no shared array to truncate and nothing of the caller's to lose with it.\n    payload.value = result.issues.length ? undefined : result.value;\n    return payload;\n}\nexport const $ZodOptional = /*@__PURE__*/ core.$constructor(\"$ZodOptional\", (inst, def) => {\n    $ZodType.init(inst, def);\n    // .optional() propagates absence rather than substituting for it, so a defaulted inner keeps its rung.\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.def.innerType._zod.optin === \"defaulted\" ? \"defaulted\" : \"optional\");\n    inst._zod.optout = \"optional\";\n    util.defineLazyInternal(inst, \"values\", (zod) => {\n        const values = zod.def.innerType._zod.values;\n        return values ? new Set([...values, undefined]) : undefined;\n    });\n    util.defineLazyInternal(inst, \"pattern\", (zod) => {\n        const pattern = zod.def.innerType._zod.pattern;\n        return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)})?$`) : undefined;\n    });\n    inst._zod.parse = (payload, ctx) => {\n        if (payload.value === undefined) {\n            // Only the top rung substitutes a value for absence; everything else leaves it intact, which is what .optional() means.\n            if (def.innerType._zod.optin !== \"defaulted\")\n                return payload;\n            // Its own payload, for the same reason $ZodCatch gets one: a pipe forwards an unrecognized key through the caller's issues array, and this must not read that as the substituting schema failing and drop it.\n            const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);\n            if (result instanceof Promise)\n                return result.then((result) => handleOptionalResult(payload, result));\n            return handleOptionalResult(payload, result);\n        }\n        return def.innerType._zod.run(payload, ctx);\n    };\n});\nexport const $ZodExactOptional = /*@__PURE__*/ core.$constructor(\"$ZodExactOptional\", (inst, def) => {\n    // Call parent init - inherits optin/optout = \"optional\"\n    $ZodOptional.init(inst, def);\n    // Override values/pattern to NOT add undefined\n    util.defineLazyInternal(inst, \"values\", (zod) => zod.def.innerType._zod.values);\n    util.defineLazyInternal(inst, \"pattern\", (zod) => zod.def.innerType._zod.pattern);\n    // Override parse to just delegate (no undefined handling)\n    inst._zod.parse = (payload, ctx) => {\n        return def.innerType._zod.run(payload, ctx);\n    };\n});\nexport const $ZodNullable = /*@__PURE__*/ core.$constructor(\"$ZodNullable\", (inst, def) => {\n    $ZodType.init(inst, def);\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.def.innerType._zod.optin);\n    util.defineLazyInternal(inst, \"optout\", (zod) => zod.def.innerType._zod.optout);\n    util.defineLazyInternal(inst, \"pattern\", (zod) => {\n        const pattern = zod.def.innerType._zod.pattern;\n        return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)}|null)$`) : undefined;\n    });\n    util.defineLazyInternal(inst, \"values\", (zod) => {\n        return zod.def.innerType._zod.values ? new Set([...zod.def.innerType._zod.values, null]) : undefined;\n    });\n    inst._zod.parse = (payload, ctx) => {\n        // Forward direction (decode): allow null to pass through\n        if (payload.value === null)\n            return payload;\n        return def.innerType._zod.run(payload, ctx);\n    };\n});\nexport const $ZodDefault = /*@__PURE__*/ core.$constructor(\"$ZodDefault\", (inst, def) => {\n    $ZodType.init(inst, def);\n    // inst._zod.qin = \"true\";\n    inst._zod.optin = \"defaulted\";\n    util.defineLazyInternal(inst, \"values\", (zod) => zod.def.innerType._zod.values);\n    inst._zod.parse = (payload, ctx) => {\n        if (ctx.direction === \"backward\") {\n            return def.innerType._zod.run(payload, ctx);\n        }\n        // Forward direction (decode): apply defaults for undefined input\n        if (payload.value === undefined) {\n            payload.value = def.defaultValue;\n            /**\n             * $ZodDefault returns the default value immediately in forward direction.\n             * It doesn't pass the default value into the validator (\"prefault\"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a \"prefault\" for the pipe.   */\n            return payload;\n        }\n        // Forward direction: continue with default handling\n        const result = def.innerType._zod.run(payload, ctx);\n        if (result instanceof Promise) {\n            return result.then((result) => handleDefaultResult(result, def));\n        }\n        return handleDefaultResult(result, def);\n    };\n});\nfunction handleDefaultResult(payload, def) {\n    if (payload.value === undefined) {\n        payload.value = def.defaultValue;\n    }\n    return payload;\n}\nexport const $ZodPrefault = /*@__PURE__*/ core.$constructor(\"$ZodPrefault\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.optin = \"defaulted\";\n    util.defineLazyInternal(inst, \"values\", (zod) => zod.def.innerType._zod.values);\n    inst._zod.parse = (payload, ctx) => {\n        if (ctx.direction === \"backward\") {\n            return def.innerType._zod.run(payload, ctx);\n        }\n        // Forward direction (decode): apply prefault for undefined input\n        if (payload.value === undefined) {\n            payload.value = def.defaultValue;\n        }\n        return def.innerType._zod.run(payload, ctx);\n    };\n});\nexport const $ZodNonOptional = /*@__PURE__*/ core.$constructor(\"$ZodNonOptional\", (inst, def) => {\n    $ZodType.init(inst, def);\n    util.defineLazyInternal(inst, \"values\", (zod) => {\n        const v = zod.def.innerType._zod.values;\n        return v ? new Set([...v].filter((x) => x !== undefined)) : undefined;\n    });\n    inst._zod.parse = (payload, ctx) => {\n        const result = def.innerType._zod.run(payload, ctx);\n        if (result instanceof Promise) {\n            return result.then((result) => handleNonOptionalResult(result, inst));\n        }\n        return handleNonOptionalResult(result, inst);\n    };\n});\nfunction handleNonOptionalResult(payload, inst) {\n    if (!payload.issues.length && payload.value === undefined) {\n        payload.issues.push({\n            code: \"invalid_type\",\n            expected: \"nonoptional\",\n            input: payload.value,\n            inst,\n        });\n    }\n    return payload;\n}\nexport const $ZodSuccess = /*@__PURE__*/ core.$constructor(\"$ZodSuccess\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, ctx) => {\n        if (ctx.direction === \"backward\") {\n            throw new core.$ZodEncodeError(\"ZodSuccess\");\n        }\n        const result = def.innerType._zod.run(payload, ctx);\n        if (result instanceof Promise) {\n            return result.then((result) => {\n                payload.value = result.issues.length === 0;\n                return payload;\n            });\n        }\n        payload.value = result.issues.length === 0;\n        return payload;\n    };\n});\nfunction handleCatchResult(payload, result, def, ctx) {\n    if (!result.issues.length) {\n        payload.value = result.value;\n        // The value carries up, so the flag describing it has to carry with it: a back-edge into a node still being parsed must not be frozen by an enclosing readonly, and its checks belong to the node itself. Guarded so the ordinary case adds no own property.\n        if (result.memo)\n            payload.memo = true;\n        return payload;\n    }\n    // Spread the inner's own payload, not ours: `value` has to stay the input the catch was handed, and the inner ran on a payload of its own so its issues are already private to this call.\n    payload.value = def.catchValue({\n        ...result,\n        value: payload.value,\n        error: {\n            issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),\n        },\n        input: payload.value,\n    });\n    return payload;\n}\nexport const $ZodCatch = /*@__PURE__*/ core.$constructor(\"$ZodCatch\", (inst, def) => {\n    $ZodType.init(inst, def);\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.def.innerType._zod.optin === \"defaulted\" ? \"defaulted\" : \"optional\");\n    util.defineLazyInternal(inst, \"optout\", (zod) => zod.def.innerType._zod.optout);\n    util.defineLazyInternal(inst, \"values\", (zod) => zod.def.innerType._zod.values);\n    inst._zod.parse = (payload, ctx) => {\n        if (ctx.direction === \"backward\") {\n            return def.innerType._zod.run(payload, ctx);\n        }\n        // Forward direction (decode): apply catch logic\n        const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);\n        if (result instanceof Promise) {\n            return result.then((result) => handleCatchResult(payload, result, def, ctx));\n        }\n        return handleCatchResult(payload, result, def, ctx);\n    };\n});\nexport const $ZodNaN = /*@__PURE__*/ core.$constructor(\"$ZodNaN\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, _ctx) => {\n        if (typeof payload.value !== \"number\" || !Number.isNaN(payload.value)) {\n            payload.issues.push({\n                input: payload.value,\n                inst,\n                expected: \"nan\",\n                code: \"invalid_type\",\n            });\n            return payload;\n        }\n        return payload;\n    };\n});\nexport const $ZodPipe = /*@__PURE__*/ core.$constructor(\"$ZodPipe\", (inst, def) => {\n    $ZodType.init(inst, def);\n    util.defineLazyInternal(inst, \"values\", (zod) => zod.def.in._zod.values);\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.def.in._zod.optin);\n    util.defineLazyInternal(inst, \"optout\", (zod) => zod.def.out._zod.optout);\n    util.defineLazyInternal(inst, \"propValues\", (zod) => zod.def.in._zod.propValues);\n    inst._zod.parse = (payload, ctx) => {\n        if (ctx.direction === \"backward\") {\n            const right = def.out._zod.run(payload, ctx);\n            if (right instanceof Promise) {\n                return right.then((right) => handlePipeResult(right, def.in, ctx));\n            }\n            return handlePipeResult(right, def.in, ctx);\n        }\n        const left = def.in._zod.run(payload, ctx);\n        if (left instanceof Promise) {\n            return left.then((left) => handlePipeResult(left, def.out, ctx));\n        }\n        return handlePipeResult(left, def.out, ctx);\n    };\n});\nfunction handlePipeResult(left, next, ctx) {\n    // Any issue stops the pipe, so a failing refinement never feeds its transform. An unrecognized key is the exception: it describes the input's extra properties, not the value being piped, and an enclosing intersection may yet reconcile it.\n    if (left.issues.some((iss) => iss.code !== \"unrecognized_keys\")) {\n        // prevent further checks\n        left.aborted = true;\n        return left;\n    }\n    return next._zod.run({ value: left.value, issues: left.issues }, ctx);\n}\nexport const $ZodCodec = /*@__PURE__*/ core.$constructor(\"$ZodCodec\", (inst, def) => {\n    $ZodType.init(inst, def);\n    util.defineLazyInternal(inst, \"values\", (zod) => zod.def.in._zod.values);\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.def.in._zod.optin);\n    util.defineLazyInternal(inst, \"optout\", (zod) => zod.def.out._zod.optout);\n    util.defineLazyInternal(inst, \"propValues\", (zod) => zod.def.in._zod.propValues);\n    inst._zod.parse = (payload, ctx) => {\n        const direction = ctx.direction || \"forward\";\n        if (direction === \"forward\") {\n            const left = def.in._zod.run(payload, ctx);\n            if (left instanceof Promise) {\n                return left.then((left) => handleCodecAResult(left, def, ctx));\n            }\n            return handleCodecAResult(left, def, ctx);\n        }\n        else {\n            const right = def.out._zod.run(payload, ctx);\n            if (right instanceof Promise) {\n                return right.then((right) => handleCodecAResult(right, def, ctx));\n            }\n            return handleCodecAResult(right, def, ctx);\n        }\n    };\n});\nfunction handleCodecAResult(result, def, ctx) {\n    if (result.issues.length) {\n        // prevent further checks\n        result.aborted = true;\n        return result;\n    }\n    const direction = ctx.direction || \"forward\";\n    if (direction === \"forward\") {\n        const transformed = def.transform(result.value, result);\n        if (transformed instanceof Promise) {\n            return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));\n        }\n        return handleCodecTxResult(result, transformed, def.out, ctx);\n    }\n    else {\n        const transformed = def.reverseTransform(result.value, result);\n        if (transformed instanceof Promise) {\n            return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));\n        }\n        return handleCodecTxResult(result, transformed, def.in, ctx);\n    }\n}\nfunction handleCodecTxResult(left, value, nextSchema, ctx) {\n    // Check if transform added any issues\n    if (left.issues.length) {\n        left.aborted = true;\n        return left;\n    }\n    return nextSchema._zod.run({ value, issues: left.issues }, ctx);\n}\nexport const $ZodPreprocess = /*@__PURE__*/ core.$constructor(\"$ZodPreprocess\", (inst, def) => {\n    $ZodPipe.init(inst, def);\n});\nexport const $ZodReadonly = /*@__PURE__*/ core.$constructor(\"$ZodReadonly\", (inst, def) => {\n    $ZodType.init(inst, def);\n    util.defineLazyInternal(inst, \"propValues\", (zod) => zod.def.innerType._zod.propValues);\n    util.defineLazyInternal(inst, \"values\", (zod) => zod.def.innerType._zod.values);\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.def.innerType?._zod?.optin);\n    util.defineLazyInternal(inst, \"optout\", (zod) => zod.def.innerType?._zod?.optout);\n    inst._zod.parse = (payload, ctx) => {\n        if (ctx.direction === \"backward\") {\n            return def.innerType._zod.run(payload, ctx);\n        }\n        const result = def.innerType._zod.run(payload, ctx);\n        if (result instanceof Promise) {\n            return result.then(handleReadonlyResult);\n        }\n        return handleReadonlyResult(result);\n    };\n});\nfunction handleReadonlyResult(payload) {\n    // A repeat visit hands back a node that is still being built; freezing it here would make the rest of its keys fail to assign.\n    if (!payload.memo)\n        payload.value = Object.freeze(payload.value);\n    return payload;\n}\n// a leaf's pattern source with its own checks folded in: the last pattern-carrying check wins, else length bounds narrow the catch-all, else an integer format narrows the number form. the fold lives here instead of on `_zod.pattern` so a bundle without template literals never pays for it\nfunction leafPattern(schema) {\n    const def = schema._zod.def;\n    let pattern = def.pattern;\n    let isInt = !!def.format?.includes(\"int\");\n    let minimum;\n    let maximum;\n    for (const ch of def.checks ?? []) {\n        const d = ch._zod.def;\n        if (d.pattern)\n            pattern = d.pattern;\n        isInt || (isInt = !!d.format?.includes(\"int\"));\n        const lo = d.minimum ?? d.length;\n        const hi = d.maximum ?? d.length;\n        if (lo !== undefined && (minimum === undefined || lo > minimum))\n            minimum = lo;\n        if (hi !== undefined && (maximum === undefined || hi < maximum))\n            maximum = hi;\n    }\n    if (pattern)\n        return pattern.source;\n    // an empty range matches nothing at runtime, and `{8,5}` is not a legal quantifier\n    if (minimum !== undefined && maximum !== undefined && minimum > maximum)\n        return \"(?!)\";\n    if (minimum !== undefined || maximum !== undefined)\n        return regexes.string({ minimum, maximum }).source;\n    const own = schema._zod.pattern;\n    return (isInt && own === regexes.number ? regexes.integer : own)?.source;\n}\n// a part's pattern source. a wrapper's pattern embeds its inner pattern's source verbatim, so the folded form is substituted in place without knowing the wrapper's own composition; a union's options are joined the way the union builds its own pattern\nfunction partPattern(schema) {\n    const def = schema._zod.def;\n    const own = schema._zod.pattern?.source;\n    // lazy resolves its inner on the internals, not the def\n    const inner = def.innerType ?? schema._zod.innerType;\n    if (inner) {\n        const before = inner._zod.pattern?.source;\n        const after = partPattern(inner);\n        if (own && before && after && after !== before) {\n            return own.replace(util.cleanRegex(before), () => util.cleanRegex(after));\n        }\n        return own;\n    }\n    if (def.options) {\n        const sources = def.options.map(partPattern);\n        if (sources.every(Boolean))\n            return `^(${sources.map((s) => util.cleanRegex(s)).join(\"|\")})$`;\n    }\n    return leafPattern(schema);\n}\nexport const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor(\"$ZodTemplateLiteral\", (inst, def) => {\n    $ZodType.init(inst, def);\n    const regexParts = [];\n    for (const part of def.parts) {\n        if (typeof part === \"object\" && part !== null) {\n            // is Zod schema\n            const source = partPattern(part);\n            if (!source) {\n                throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);\n            }\n            regexParts.push(util.cleanRegex(source));\n        }\n        else if (part === null || util.primitiveTypes.has(typeof part)) {\n            regexParts.push(util.escapeRegex(`${part}`));\n        }\n        else {\n            throw new Error(`Invalid template literal part: ${part}`);\n        }\n    }\n    inst._zod.pattern = new RegExp(`^${regexParts.join(\"\")}$`);\n    inst._zod.parse = (payload, _ctx) => {\n        if (typeof payload.value !== \"string\") {\n            payload.issues.push({\n                input: payload.value,\n                inst,\n                expected: \"string\",\n                code: \"invalid_type\",\n            });\n            return payload;\n        }\n        inst._zod.pattern.lastIndex = 0;\n        if (!inst._zod.pattern.test(payload.value)) {\n            payload.issues.push({\n                input: payload.value,\n                inst,\n                code: \"invalid_format\",\n                format: def.format ?? \"template_literal\",\n                pattern: inst._zod.pattern.source,\n            });\n            return payload;\n        }\n        return payload;\n    };\n});\nexport const $ZodFunction = /*@__PURE__*/ core.$constructor(\"$ZodFunction\", (inst, def) => {\n    $ZodType.init(inst, def);\n    // Defined, not assigned: the classic prototype exposes `_def` as a getter with no setter.\n    Object.defineProperty(inst, \"_def\", { value: def });\n    inst._zod.def = def;\n    inst.implement = (func) => {\n        if (typeof func !== \"function\") {\n            throw new Error(\"implement() must be called with a function\");\n        }\n        // Defined inline so the closure stays anonymous: binding it to a `const` first names it, which costs 256 bytes per implemented function.\n        return Object.defineProperty(function (...args) {\n            const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;\n            const result = Reflect.apply(func, this, parsedArgs);\n            if (inst._def.output) {\n                return parse(inst._def.output, result);\n            }\n            return result;\n        }, \"_zod\", { value: inst._zod, enumerable: false });\n    };\n    inst.implementAsync = (func) => {\n        if (typeof func !== \"function\") {\n            throw new Error(\"implementAsync() must be called with a function\");\n        }\n        return Object.defineProperty(async function (...args) {\n            const parsedArgs = inst._def.input ? await parseAsync(inst._def.input, args) : args;\n            const result = await Reflect.apply(func, this, parsedArgs);\n            if (inst._def.output) {\n                return await parseAsync(inst._def.output, result);\n            }\n            return result;\n        }, \"_zod\", { value: inst._zod, enumerable: false });\n    };\n    inst._zod.parse = (payload, _ctx) => {\n        if (typeof payload.value !== \"function\") {\n            payload.issues.push({\n                code: \"invalid_type\",\n                expected: \"function\",\n                input: payload.value,\n                inst,\n            });\n            return payload;\n        }\n        // Check if output is a promise type to determine if we should use async implementation\n        const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === \"promise\";\n        if (hasPromiseOutput) {\n            payload.value = inst.implementAsync(payload.value);\n        }\n        else {\n            payload.value = inst.implement(payload.value);\n        }\n        return payload;\n    };\n    inst.input = (...args) => {\n        const F = inst.constructor;\n        if (Array.isArray(args[0])) {\n            return new F({\n                type: \"function\",\n                input: new $ZodTuple({\n                    type: \"tuple\",\n                    items: args[0],\n                    rest: args[1],\n                }),\n                output: inst._def.output,\n            });\n        }\n        return new F({\n            type: \"function\",\n            input: args[0],\n            output: inst._def.output,\n        });\n    };\n    inst.output = (output) => {\n        const F = inst.constructor;\n        return new F({\n            type: \"function\",\n            input: inst._def.input,\n            output,\n        });\n    };\n    return inst;\n});\nexport const $ZodPromise = /*@__PURE__*/ core.$constructor(\"$ZodPromise\", (inst, def) => {\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, ctx) => {\n        return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));\n    };\n});\nexport const $ZodLazy = /*@__PURE__*/ core.$constructor(\"$ZodLazy\", (inst, def) => {\n    $ZodType.init(inst, def);\n    // Cache the resolved inner type on the shared `def` so all clones of this lazy (e.g. via `.describe()`/`.meta()`) share the same inner instance, preserving identity for cycle detection on recursive schemas.\n    util.defineLazy(inst._zod, \"innerType\", () => {\n        const d = def;\n        if (!d._cachedInner)\n            d._cachedInner = def.getter();\n        return d._cachedInner;\n    });\n    util.defineLazyInternal(inst, \"pattern\", (zod) => zod.innerType?._zod?.pattern);\n    util.defineLazyInternal(inst, \"propValues\", (zod) => zod.innerType?._zod?.propValues);\n    util.defineLazyInternal(inst, \"optin\", (zod) => zod.innerType?._zod?.optin ?? undefined);\n    util.defineLazyInternal(inst, \"optout\", (zod) => zod.innerType?._zod?.optout ?? undefined);\n    inst._zod.parse = (payload, ctx) => {\n        const inner = inst._zod.innerType;\n        return inner._zod.run(payload, ctx);\n    };\n});\nexport const $ZodCustom = /*@__PURE__*/ core.$constructor(\"$ZodCustom\", (inst, def) => {\n    checks.$ZodCheck.init(inst, def);\n    $ZodType.init(inst, def);\n    inst._zod.parse = (payload, _) => {\n        return payload;\n    };\n    inst._zod.check = (payload) => {\n        const input = payload.value;\n        const r = def.fn(input);\n        if (r instanceof Promise) {\n            return r.then((r) => handleRefineResult(r, payload, input, inst));\n        }\n        handleRefineResult(r, payload, input, inst);\n        return;\n    };\n});\nfunction handleRefineResult(result, payload, input, inst) {\n    if (!result) {\n        const _iss = {\n            code: \"custom\",\n            input,\n            inst, // incorporates params.error into issue reporting\n            path: [...(inst._zod.def.path ?? [])], // incorporates params.error into issue reporting\n            continue: !inst._zod.def.abort,\n            // params: inst._zod.def.params,\n        };\n        if (inst._zod.def.params)\n            _iss.params = inst._zod.def.params;\n        payload.issues.push(util.issue(_iss));\n    }\n}\n","import * as util from \"./util.js\";\nexport class $ZodCyclicError extends Error {\n    constructor() {\n        super(`Cannot parse a reference cycle that closes through a transform`);\n        this.name = \"ZodCyclicError\";\n    }\n}\n/** Keyed off the context object every schema in one parse call already shares. */\nconst STATE = \"~memo\";\nconst NO_ISSUES = [];\n// a value a cycle can close through\nfunction isRef(value) {\n    return value !== null && typeof value === \"object\";\n}\n// Receivers prefix paths in place, so the cache and every hand-out need their own copies.\nfunction cloneIssues(issues) {\n    return issues.map((iss) => (iss.path ? { ...iss, path: iss.path.slice() } : { ...iss }));\n}\nconst recursive = /*@__PURE__*/ new WeakMap();\n/** What the walk established, in order of certainty: ordered so the strongest answer among children wins. */\nconst NONE = 0;\nconst ASSUMED = 1;\nconst PROVEN = 2;\n/** Whether this schema's subtree contains a cycle, so one parse can re-enter it. */\nfunction isRecursive(inst, stack, resolve) {\n    const cached = recursive.get(inst);\n    if (cached !== undefined)\n        return cached ? PROVEN : NONE;\n    // Relative to the walk in progress, so not cached.\n    if (stack.has(inst))\n        return PROVEN;\n    stack.add(inst);\n    let result = NONE;\n    const check = (child) => {\n        if (result !== PROVEN && child?._zod) {\n            const answer = isRecursive(child, stack, resolve);\n            if (answer > result)\n                result = answer;\n        }\n    };\n    // `Reflect.ownKeys` rather than `Object.keys`, so a cycle through a declared symbol key is still seen\n    const shape = (sh, spread) => {\n        let answer = NONE;\n        for (const key of Reflect.ownKeys(sh)) {\n            const desc = Object.getOwnPropertyDescriptor(sh, key);\n            // an object resolves its shape by spread, so a key it does not enumerate is never parsed; `z.properties` reads every own key and so keeps them all\n            if (spread && !desc.enumerable)\n                continue;\n            // resolving runs user code, and a factory mints a fresh subtree per read, so an edge the walk can't follow counts as a cycle\n            const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack, resolve) : NONE;\n            if (child > answer)\n                answer = child;\n        }\n        return answer;\n    };\n    const merge = (answer) => {\n        if (answer > result)\n            result = answer;\n    };\n    const def = inst._zod.def;\n    const kind = def.type;\n    switch (kind) {\n        case \"object\": {\n            const raw = util.rawShape(def);\n            // a def with no raw shape answers `shape` from an accessor of its own, and running that can mint a whole fresh subtree\n            merge(raw ? shape(raw, true) : ASSUMED);\n            check(def.catchall);\n            break;\n        }\n        case \"array\":\n            check(def.element);\n            break;\n        case \"tuple\":\n            for (const el of def.items)\n                check(el);\n            check(def.rest);\n            break;\n        case \"record\":\n        case \"map\":\n            check(def.keyType);\n            check(def.valueType);\n            break;\n        case \"set\":\n            check(def.valueType);\n            break;\n        case \"union\":\n            for (const el of def.options)\n                check(el);\n            break;\n        case \"intersection\":\n            check(def.left);\n            check(def.right);\n            break;\n        case \"optional\":\n        case \"nullable\":\n        case \"default\":\n        case \"prefault\":\n        case \"catch\":\n        case \"readonly\":\n        case \"nonoptional\":\n        case \"promise\":\n        case \"success\":\n            check(def.innerType);\n            break;\n        case \"pipe\":\n            check(def.in);\n            check(def.out);\n            break;\n        case \"function\":\n            check(def.input);\n            check(def.output);\n            break;\n        // `$ZodLazy` caches its inner on the def, so a resolved edge is followed exactly\n        case \"lazy\": {\n            const inner = def._cachedInner ?? (resolve ? inst._zod.innerType : undefined);\n            // walked with resolution off: one hop sees past the deferral, and a lazy that yields only another unresolved lazy is generative, so it stops there\n            merge(inner ? isRecursive(inner, stack, false) : ASSUMED);\n            break;\n        }\n        // a leaf by choice: `parts` are regex fragments, not data positions\n        case \"template_literal\":\n        // leaves\n        case \"string\":\n        case \"number\":\n        case \"int\":\n        case \"boolean\":\n        case \"bigint\":\n        case \"symbol\":\n        case \"undefined\":\n        case \"null\":\n        case \"void\":\n        case \"never\":\n        case \"any\":\n        case \"unknown\":\n        case \"date\":\n        case \"nan\":\n        case \"enum\":\n        case \"literal\":\n        case \"file\":\n        case \"transform\":\n        case \"custom\":\n            break;\n        default: {\n            // a new built-in kind becomes a compile error here\n            kind;\n            // a user-defined kind can still hold children, and only its author knows where, so fall back to scanning the def — skipping accessors, since reading one can run user code\n            for (const key in def) {\n                const desc = Object.getOwnPropertyDescriptor(def, key);\n                if (!desc || desc.get)\n                    continue;\n                const value = desc.value;\n                if (!value || typeof value !== \"object\")\n                    continue;\n                if (value._zod)\n                    check(value);\n                else if (Array.isArray(value))\n                    for (const el of value)\n                        check(el);\n            }\n        }\n    }\n    stack.delete(inst);\n    return settle(inst, result);\n}\n/** An assumed answer must not outlive the resolution that settles it, so only a certain one is cached. */\nfunction settle(inst, answer) {\n    if (answer !== ASSUMED)\n        recursive.set(inst, answer === PROVEN);\n    return answer;\n}\n/**\n * Whether one parse can re-enter this schema, i.e. its subtree contains a cycle.\n * Exported for `z.compile`, which refuses to compile such a schema: cycle\n * breaking is driven from here off state keyed on the parse context, and a\n * generated fast path has no context to key on.\n */\nexport function isRecursiveSchema(inst) {\n    // z.compile never parses, so nothing would ever resolve a lazy for it; it runs once and already treats a throw here as recursive\n    return isRecursive(inst, new Set(), true) !== NONE;\n}\nfunction bucketFor(state, inst) {\n    let bucket = state.buckets.get(inst);\n    if (!bucket) {\n        bucket = new WeakMap();\n        state.buckets.set(inst, bucket);\n    }\n    return bucket;\n}\n// Set immediately before delegating to core and cleared immediately after, so `alloc` registers only for a visit this module is driving.\nlet handoff;\n// Allocated but unfinished entries. `alloc` and the matching pop both happen in the synchronous part of a parse, so they nest even when children are async, and one stack serves every schema.\nconst open = [];\nconst memo = {\n    alloc(_inst, payload, empty) {\n        const bucket = handoff;\n        if (!bucket)\n            return empty;\n        handoff = undefined;\n        const entry = { value: empty, issues: null };\n        bucket.set(payload.value, entry);\n        open.push(entry);\n        return empty;\n    },\n    guard(inst) {\n        var _a;\n        (_a = inst._zod).deferred ?? (_a.deferred = []);\n        inst._zod.deferred.push(() => {\n            const base = inst._zod.parse;\n            const wrapped = (payload, ctx) => {\n                // The value is a placeholder a back-edge is still waiting on, so the cycle closes through this transform. Its output can't exist in time to bind.\n                if (ctx.direction !== \"backward\" && isBackEdge(ctx, payload.value))\n                    throw new $ZodCyclicError();\n                return base(payload, ctx);\n            };\n            inst._zod.parse = wrapped;\n            if (inst._zod.run === base)\n                inst._zod.run = wrapped;\n        });\n    },\n    attach(inst) {\n        var _a;\n        let isRecursiveInst;\n        let rechecked = false;\n        // a recursive schema is re-entered many times per parse and its bucket never changes\n        let lastCtx;\n        let lastBucket;\n        // Wraps `parse` in a deferred so it sees the container's final parse. Core's own deferred copies `parse` into `run` when there are no checks, and it ran first, so `run` is patched to match; with checks, `run` reads `parse` dynamically.\n        (_a = inst._zod).deferred ?? (_a.deferred = []);\n        inst._zod.deferred.push(() => {\n            const base = inst._zod.parse;\n            const wrapped = (payload, ctx) => {\n                if (isRecursiveInst === undefined) {\n                    const walked = isRecursive(inst, new Set(), false);\n                    if (walked === NONE) {\n                        // Nothing here can ever fire, so take it back out.\n                        inst._zod.parse = base;\n                        if (inst._zod.run === wrapped)\n                            inst._zod.run = base;\n                        return base(payload, ctx);\n                    }\n                    // this parse resolves the deferred edges on its own path, so ask once more before latching\n                    if (walked === PROVEN || rechecked)\n                        isRecursiveInst = true;\n                    else\n                        rechecked = true;\n                }\n                const input = payload.value;\n                if (!isRef(input))\n                    return base(payload, ctx);\n                let state = ctx[STATE];\n                if (!state) {\n                    state = { buckets: new WeakMap(), backEdges: undefined };\n                    ctx[STATE] = state;\n                }\n                let bucket;\n                if (lastCtx === ctx) {\n                    bucket = lastBucket;\n                }\n                else {\n                    bucket = bucketFor(state, inst);\n                    lastCtx = ctx;\n                    lastBucket = bucket;\n                }\n                const hit = bucket.get(input);\n                if (hit) {\n                    payload.value = hit.value;\n                    if (hit.issues) {\n                        if (hit.issues.length)\n                            payload.issues.push(...cloneIssues(hit.issues));\n                    }\n                    else {\n                        // Still being parsed: its own checks cover it, so skip them here.\n                        payload.memo = true;\n                        state.backEdges ?? (state.backEdges = new WeakSet());\n                        state.backEdges.add(hit.value);\n                    }\n                    return payload;\n                }\n                handoff = bucket;\n                const depth = open.length;\n                const result = base(payload, ctx);\n                handoff = undefined;\n                // A container that rejected its input outright allocated nothing.\n                const entry = open.length > depth ? open.pop() : undefined;\n                // Both paths written out so the sync one allocates no closure. It runs once per node, and capturing here cost more than everything else combined.\n                if (result instanceof Promise) {\n                    return result.then((r) => {\n                        if (entry)\n                            entry.issues = r.issues.length ? cloneIssues(r.issues) : NO_ISSUES;\n                        return r;\n                    });\n                }\n                if (entry)\n                    entry.issues = result.issues.length ? cloneIssues(result.issues) : NO_ISSUES;\n                return result;\n            };\n            inst._zod.parse = wrapped;\n            if (inst._zod.run === base)\n                inst._zod.run = wrapped;\n        });\n    },\n};\n/** The memoizer that gives containers cycle support. `zod` installs it by default; `zod/mini` opts in with `config({ memoizer: memoizer() })`. */\nexport function memoizer() {\n    return memo;\n}\n/** Whether this value is a node a back-edge resolved to before it finished. */\nexport function isBackEdge(ctx, value) {\n    const backEdges = ctx[STATE]?.backEdges;\n    return backEdges !== undefined && isRef(value) && backEdges.has(value);\n}\n","export { default as ar } from \"./ar.js\";\nexport { default as az } from \"./az.js\";\nexport { default as be } from \"./be.js\";\nexport { default as bg } from \"./bg.js\";\nexport { default as bn } from \"./bn.js\";\nexport { default as ca } from \"./ca.js\";\nexport { default as ckb } from \"./ckb.js\";\nexport { default as cs } from \"./cs.js\";\nexport { default as da } from \"./da.js\";\nexport { default as de } from \"./de.js\";\nexport { default as el } from \"./el.js\";\nexport { default as en } from \"./en.js\";\nexport { default as eo } from \"./eo.js\";\nexport { default as es } from \"./es.js\";\nexport { default as fa } from \"./fa.js\";\nexport { default as fi } from \"./fi.js\";\nexport { default as fr } from \"./fr.js\";\nexport { default as frCA } from \"./fr-CA.js\";\nexport { default as gu } from \"./gu.js\";\nexport { default as he } from \"./he.js\";\nexport { default as hi } from \"./hi.js\";\nexport { default as hr } from \"./hr.js\";\nexport { default as hu } from \"./hu.js\";\nexport { default as hy } from \"./hy.js\";\nexport { default as id } from \"./id.js\";\nexport { default as is } from \"./is.js\";\nexport { default as it } from \"./it.js\";\nexport { default as ja } from \"./ja.js\";\nexport { default as ka } from \"./ka.js\";\nexport { default as kh } from \"./kh.js\";\nexport { default as km } from \"./km.js\";\nexport { default as kn } from \"./kn.js\";\nexport { default as ko } from \"./ko.js\";\nexport { default as lt } from \"./lt.js\";\nexport { default as mk } from \"./mk.js\";\nexport { default as ms } from \"./ms.js\";\nexport { default as ne } from \"./ne.js\";\nexport { default as nl } from \"./nl.js\";\nexport { default as nn } from \"./nn.js\";\nexport { default as no } from \"./no.js\";\nexport { default as ota } from \"./ota.js\";\nexport { default as ps } from \"./ps.js\";\nexport { default as pl } from \"./pl.js\";\nexport { default as pt } from \"./pt.js\";\nexport { default as ptBR } from \"./pt-BR.js\";\nexport { default as ro } from \"./ro.js\";\nexport { default as ru } from \"./ru.js\";\nexport { default as sk } from \"./sk.js\";\nexport { default as sl } from \"./sl.js\";\nexport { default as sv } from \"./sv.js\";\nexport { default as ta } from \"./ta.js\";\nexport { default as tg } from \"./tg.js\";\nexport { default as th } from \"./th.js\";\nexport { default as tk } from \"./tk.js\";\nexport { default as tr } from \"./tr.js\";\nexport { default as ua } from \"./ua.js\";\nexport { default as uk } from \"./uk.js\";\nexport { default as ur } from \"./ur.js\";\nexport { default as uz } from \"./uz.js\";\nexport { default as vi } from \"./vi.js\";\nexport { default as zhCN } from \"./zh-CN.js\";\nexport { default as zhTW } from \"./zh-TW.js\";\nexport { default as yo } from \"./yo.js\";\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"حرف\", verb: \"أن يحوي\" },\n        file: { unit: \"بايت\", verb: \"أن يحوي\" },\n        array: { unit: \"عنصر\", verb: \"أن يحوي\" },\n        set: { unit: \"عنصر\", verb: \"أن يحوي\" },\n        map: { unit: \"عنصر\", verb: \"أن يحوي\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"مدخل\",\n        email: \"بريد إلكتروني\",\n        url: \"رابط\",\n        emoji: \"إيموجي\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"تاريخ ووقت بمعيار ISO\",\n        date: \"تاريخ بمعيار ISO\",\n        time: \"وقت بمعيار ISO\",\n        duration: \"مدة بمعيار ISO\",\n        ipv4: \"عنوان IPv4\",\n        ipv6: \"عنوان IPv6\",\n        mac: \"عنوان MAC\",\n        cidrv4: \"مدى عناوين بصيغة IPv4\",\n        cidrv6: \"مدى عناوين بصيغة IPv6\",\n        base64: \"نَص بترميز base64-encoded\",\n        base64url: \"نَص بترميز base64url-encoded\",\n        json_string: \"نَص على هيئة JSON\",\n        e164: \"رقم هاتف بمعيار E.164\",\n        credit_card: \"رقم بطاقة الائتمان\",\n        currency_code: \"رمز العملة\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"مدخل\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `مدخلات غير مقبولة: يفترض إدخال instanceof ${issue.expected}، ولكن تم إدخال ${received}`;\n                }\n                return `مدخلات غير مقبولة: يفترض إدخال ${expected}، ولكن تم إدخال ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `مدخلات غير مقبولة: يفترض إدخال ${util.stringifyPrimitive(issue.values[0])}`;\n                return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return ` أكبر من اللازم: يفترض أن تكون ${issue.origin ?? \"القيمة\"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"عنصر\"}`;\n                return `أكبر من اللازم: يفترض أن تكون ${issue.origin ?? \"القيمة\"} ${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `نَص غير مقبول: يجب أن يبدأ بـ \"${issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `نَص غير مقبول: يجب أن ينتهي بـ \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `نَص غير مقبول: يجب أن يتضمَّن \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `نَص غير مقبول: يجب أن يطابق النمط ${_issue.pattern}`;\n                return `${FormatDictionary[_issue.format] ?? issue.format} غير مقبول`;\n            }\n            case \"not_multiple_of\":\n                return `رقم غير مقبول: يجب أن يكون من مضاعفات ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `معرف${issue.keys.length > 1 ? \"ات\" : \"\"} غريب${issue.keys.length > 1 ? \"ة\" : \"\"}: ${util.joinValues(issue.keys, \"، \")}`;\n            case \"invalid_key\":\n                return `معرف غير مقبول في ${issue.origin}`;\n            case \"invalid_union\":\n                return \"مدخل غير مقبول\";\n            case \"invalid_element\":\n                return `مدخل غير مقبول في ${issue.origin}`;\n            default:\n                return \"مدخل غير مقبول\";\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"simvol\", verb: \"olmalıdır\" },\n        file: { unit: \"bayt\", verb: \"olmalıdır\" },\n        array: { unit: \"element\", verb: \"olmalıdır\" },\n        set: { unit: \"element\", verb: \"olmalıdır\" },\n        map: { unit: \"element\", verb: \"olmalıdır\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"email address\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO datetime\",\n        date: \"ISO date\",\n        time: \"ISO time\",\n        duration: \"ISO duration\",\n        ipv4: \"IPv4 address\",\n        ipv6: \"IPv6 address\",\n        mac: \"MAC address\",\n        cidrv4: \"IPv4 range\",\n        cidrv6: \"IPv6 range\",\n        base64: \"base64-encoded string\",\n        base64url: \"base64url-encoded string\",\n        json_string: \"JSON string\",\n        e164: \"E.164 number\",\n        credit_card: \"kredit kartı nömrəsi\",\n        currency_code: \"valyuta kodu\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Yanlış dəyər: gözlənilən instanceof ${issue.expected}, daxil olan ${received}`;\n                }\n                return `Yanlış dəyər: gözlənilən ${expected}, daxil olan ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Yanlış dəyər: gözlənilən ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Çox böyük: gözlənilən ${issue.origin ?? \"dəyər\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"element\"}`;\n                return `Çox böyük: gözlənilən ${issue.origin ?? \"dəyər\"} ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Çox kiçik: gözlənilən ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                return `Çox kiçik: gözlənilən ${issue.origin} ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Yanlış mətn: \"${_issue.prefix}\" ilə başlamalıdır`;\n                if (_issue.format === \"ends_with\")\n                    return `Yanlış mətn: \"${_issue.suffix}\" ilə bitməlidir`;\n                if (_issue.format === \"includes\")\n                    return `Yanlış mətn: \"${_issue.includes}\" daxil olmalıdır`;\n                if (_issue.format === \"regex\")\n                    return `Yanlış mətn: ${_issue.pattern} şablonuna uyğun olmalıdır`;\n                return `Yanlış ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Yanlış ədəd: ${issue.divisor} ilə bölünə bilən olmalıdır`;\n            case \"unrecognized_keys\":\n                return `Tanınmayan açar${issue.keys.length > 1 ? \"lar\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} daxilində yanlış açar`;\n            case \"invalid_union\":\n                return \"Yanlış dəyər\";\n            case \"invalid_element\":\n                return `${issue.origin} daxilində yanlış dəyər`;\n            default:\n                return `Yanlış dəyər`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nfunction getBelarusianPlural(count, one, few, many) {\n    const absCount = Math.abs(count);\n    const lastDigit = absCount % 10;\n    const lastTwoDigits = absCount % 100;\n    if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {\n        return many;\n    }\n    if (lastDigit === 1) {\n        return one;\n    }\n    if (lastDigit >= 2 && lastDigit <= 4) {\n        return few;\n    }\n    return many;\n}\nconst error = () => {\n    const Sizable = {\n        string: {\n            unit: {\n                one: \"сімвал\",\n                few: \"сімвалы\",\n                many: \"сімвалаў\",\n            },\n            verb: \"мець\",\n        },\n        array: {\n            unit: {\n                one: \"элемент\",\n                few: \"элементы\",\n                many: \"элементаў\",\n            },\n            verb: \"мець\",\n        },\n        set: {\n            unit: {\n                one: \"элемент\",\n                few: \"элементы\",\n                many: \"элементаў\",\n            },\n            verb: \"мець\",\n        },\n        map: {\n            unit: {\n                one: \"элемент\",\n                few: \"элементы\",\n                many: \"элементаў\",\n            },\n            verb: \"мець\",\n        },\n        file: {\n            unit: {\n                one: \"байт\",\n                few: \"байты\",\n                many: \"байтаў\",\n            },\n            verb: \"мець\",\n        },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"увод\",\n        email: \"email адрас\",\n        url: \"URL\",\n        emoji: \"эмодзі\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO дата і час\",\n        date: \"ISO дата\",\n        time: \"ISO час\",\n        duration: \"ISO працягласць\",\n        ipv4: \"IPv4 адрас\",\n        ipv6: \"IPv6 адрас\",\n        mac: \"MAC адрас\",\n        cidrv4: \"IPv4 дыяпазон\",\n        cidrv6: \"IPv6 дыяпазон\",\n        base64: \"радок у фармаце base64\",\n        base64url: \"радок у фармаце base64url\",\n        json_string: \"JSON радок\",\n        e164: \"нумар E.164\",\n        credit_card: \"нумар крэдытнай карты\",\n        currency_code: \"код валюты\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"увод\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"лік\",\n        array: \"масіў\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Няправільны ўвод: чакаўся instanceof ${issue.expected}, атрымана ${received}`;\n                }\n                return `Няправільны ўвод: чакаўся ${expected}, атрымана ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Няправільны ўвод: чакалася ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Няправільны варыянт: чакаўся адзін з ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    const maxValue = Number(issue.maximum);\n                    const unit = getBelarusianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n                    return `Занадта вялікі: чакалася, што ${issue.origin ?? \"значэнне\"} павінна ${sizing.verb} ${adj}${issue.maximum.toString()} ${unit}`;\n                }\n                return `Занадта вялікі: чакалася, што ${issue.origin ?? \"значэнне\"} павінна быць ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    const minValue = Number(issue.minimum);\n                    const unit = getBelarusianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n                    return `Занадта малы: чакалася, што ${issue.origin} павінна ${sizing.verb} ${adj}${issue.minimum.toString()} ${unit}`;\n                }\n                return `Занадта малы: чакалася, што ${issue.origin} павінна быць ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Няправільны радок: павінен пачынацца з \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Няправільны радок: павінен заканчвацца на \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Няправільны радок: павінен змяшчаць \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Няправільны радок: павінен адпавядаць шаблону ${_issue.pattern}`;\n                return `Няправільны ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Няправільны лік: павінен быць кратным ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Нераспазнаны ${issue.keys.length > 1 ? \"ключы\" : \"ключ\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Няправільны ключ у ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Няправільны ўвод\";\n            case \"invalid_element\":\n                return `Няправільнае значэнне ў ${issue.origin}`;\n            default:\n                return `Няправільны ўвод`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"символа\", verb: \"да съдържа\" },\n        file: { unit: \"байта\", verb: \"да съдържа\" },\n        array: { unit: \"елемента\", verb: \"да съдържа\" },\n        set: { unit: \"елемента\", verb: \"да съдържа\" },\n        map: { unit: \"елемента\", verb: \"да съдържа\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"вход\",\n        email: \"имейл адрес\",\n        url: \"URL\",\n        emoji: \"емоджи\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO време\",\n        date: \"ISO дата\",\n        time: \"ISO време\",\n        duration: \"ISO продължителност\",\n        ipv4: \"IPv4 адрес\",\n        ipv6: \"IPv6 адрес\",\n        mac: \"MAC адрес\",\n        cidrv4: \"IPv4 диапазон\",\n        cidrv6: \"IPv6 диапазон\",\n        base64: \"base64-кодиран низ\",\n        base64url: \"base64url-кодиран низ\",\n        json_string: \"JSON низ\",\n        e164: \"E.164 номер\",\n        credit_card: \"номер на кредитна карта\",\n        currency_code: \"код на валута\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"вход\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"число\",\n        array: \"масив\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Невалиден вход: очакван instanceof ${issue.expected}, получен ${received}`;\n                }\n                return `Невалиден вход: очакван ${expected}, получен ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Невалиден вход: очакван ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Невалидна опция: очаквано едно от ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Твърде голямо: очаква се ${issue.origin ?? \"стойност\"} да съдържа ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"елемента\"}`;\n                return `Твърде голямо: очаква се ${issue.origin ?? \"стойност\"} да бъде ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Твърде малко: очаква се ${issue.origin} да съдържа ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Твърде малко: очаква се ${issue.origin} да бъде ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Невалиден низ: трябва да започва с \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Невалиден низ: трябва да завършва с \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Невалиден низ: трябва да включва \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Невалиден низ: трябва да съвпада с ${_issue.pattern}`;\n                let invalid_adj = \"Невалиден\";\n                if (_issue.format === \"emoji\")\n                    invalid_adj = \"Невалидно\";\n                if (_issue.format === \"datetime\")\n                    invalid_adj = \"Невалидно\";\n                if (_issue.format === \"date\")\n                    invalid_adj = \"Невалидна\";\n                if (_issue.format === \"time\")\n                    invalid_adj = \"Невалидно\";\n                if (_issue.format === \"duration\")\n                    invalid_adj = \"Невалидна\";\n                return `${invalid_adj} ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Невалидно число: трябва да бъде кратно на ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Неразпознат${issue.keys.length > 1 ? \"и\" : \"\"} ключ${issue.keys.length > 1 ? \"ове\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Невалиден ключ в ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Невалиден вход\";\n            case \"invalid_element\":\n                return `Невалидна стойност в ${issue.origin}`;\n            default:\n                return `Невалиден вход`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"অক্ষর\", verb: \"থাকতে হবে\" },\n        file: { unit: \"বাইট\", verb: \"থাকতে হবে\" },\n        array: { unit: \"আইটেম\", verb: \"থাকতে হবে\" },\n        set: { unit: \"আইটেম\", verb: \"থাকতে হবে\" },\n        map: { unit: \"এন্ট্রি\", verb: \"থাকতে হবে\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ইনপুট\",\n        email: \"ইমেইল ঠিকানা\",\n        url: \"URL\",\n        emoji: \"ইমোজি\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO তারিখ ও সময়\",\n        date: \"ISO তারিখ\",\n        time: \"ISO সময়\",\n        duration: \"ISO সময়কাল\",\n        ipv4: \"IPv4 ঠিকানা\",\n        ipv6: \"IPv6 ঠিকানা\",\n        mac: \"MAC ঠিকানা\",\n        cidrv4: \"IPv4 রেঞ্জ\",\n        cidrv6: \"IPv6 রেঞ্জ\",\n        base64: \"base64-এনকোডেড স্ট্রিং\",\n        base64url: \"base64url-এনকোডেড স্ট্রিং\",\n        json_string: \"JSON স্ট্রিং\",\n        e164: \"E.164 নম্বর\",\n        credit_card: \"ক্রেডিট কার্ড নম্বর\",\n        currency_code: \"মুদ্রা কোড\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ইনপুট\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `অবৈধ ইনপুট: প্রত্যাশিত ${expected}, প্রাপ্ত ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `অবৈধ ইনপুট: প্রত্যাশিত ${util.stringifyPrimitive(issue.values[0])}`;\n                return `অবৈধ অপশন: ${util.joinValues(issue.values, \" | \")} এর মধ্যে একটি প্রত্যাশিত`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `অনেক বড়: ${issue.origin ?? \"মান\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"এলিমেন্ট\"} হতে হবে`;\n                return `অনেক বড়: ${issue.origin ?? \"মান\"} ${adj}${issue.maximum.toString()} হতে হবে`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `অনেক ছোট: ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} হতে হবে`;\n                }\n                return `অনেক ছোট: ${issue.origin} ${adj}${issue.minimum.toString()} হতে হবে`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `অবৈধ স্ট্রিং: \"${_issue.prefix}\" দিয়ে শুরু হতে হবে`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `অবৈধ স্ট্রিং: \"${_issue.suffix}\" দিয়ে শেষ হতে হবে`;\n                if (_issue.format === \"includes\")\n                    return `অবৈধ স্ট্রিং: \"${_issue.includes}\" অন্তর্ভুক্ত থাকতে হবে`;\n                if (_issue.format === \"regex\")\n                    return `অবৈধ স্ট্রিং: ${_issue.pattern} প্যাটার্ন মিলতে হবে`;\n                return `অবৈধ ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `অবৈধ নম্বর: ${issue.divisor} এর গুণিতক হতে হবে`;\n            case \"unrecognized_keys\":\n                return `অচেনা কী${issue.keys.length > 1 ? \"গুলো\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} এ অবৈধ কী`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${opts}`;\n                }\n                return \"অবৈধ ইনপুট\";\n            case \"invalid_element\":\n                return `${issue.origin} এ অবৈধ মান`;\n            default:\n                return \"অবৈধ ইনপুট\";\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caràcters\", verb: \"contenir\" },\n        file: { unit: \"bytes\", verb: \"contenir\" },\n        array: { unit: \"elements\", verb: \"contenir\" },\n        set: { unit: \"elements\", verb: \"contenir\" },\n        map: { unit: \"elements\", verb: \"contenir\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"entrada\",\n        email: \"adreça electrònica\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"data i hora ISO\",\n        date: \"data ISO\",\n        time: \"hora ISO\",\n        duration: \"durada ISO\",\n        ipv4: \"adreça IPv4\",\n        ipv6: \"adreça IPv6\",\n        mac: \"adreça MAC\",\n        cidrv4: \"rang IPv4\",\n        cidrv6: \"rang IPv6\",\n        base64: \"cadena codificada en base64\",\n        base64url: \"cadena codificada en base64url\",\n        json_string: \"cadena JSON\",\n        e164: \"número E.164\",\n        credit_card: \"número de targeta de crèdit\",\n        currency_code: \"codi de moneda\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"entrada\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Tipus invàlid: s'esperava instanceof ${issue.expected}, s'ha rebut ${received}`;\n                }\n                return `Tipus invàlid: s'esperava ${expected}, s'ha rebut ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Valor invàlid: s'esperava ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Opció invàlida: s'esperava una de ${util.joinValues(issue.values, \" o \")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"com a màxim\" : \"menys de\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Massa gran: s'esperava que ${issue.origin ?? \"el valor\"} contingués ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"elements\"}`;\n                return `Massa gran: s'esperava que ${issue.origin ?? \"el valor\"} fos ${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \"com a mínim\" : \"més de\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Massa petit: s'esperava que ${issue.origin} contingués ${adj} ${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Massa petit: s'esperava que ${issue.origin} fos ${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Format invàlid: ha de començar amb \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Format invàlid: ha d'acabar amb \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Format invàlid: ha d'incloure \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Format invàlid: ha de coincidir amb el patró ${_issue.pattern}`;\n                return `Format invàlid per a ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Número invàlid: ha de ser múltiple de ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Clau${issue.keys.length > 1 ? \"s\" : \"\"} no reconeguda${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Clau invàlida a ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Entrada invàlida\"; // Could also be \"Tipus d'unió invàlid\" but \"Entrada invàlida\" is more general\n            case \"invalid_element\":\n                return `Element invàlid a ${issue.origin}`;\n            default:\n                return `Entrada invàlida`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"پیت\", verb: \"بێت\" },\n        file: { unit: \"بایت\", verb: \"بێت\" },\n        array: { unit: \"دانە\", verb: \"بێت\" },\n        set: { unit: \"دانە\", verb: \"بێت\" },\n        map: { unit: \"دانە\", verb: \"بێت\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"regex\",\n        email: \"ئیمەیڵ\",\n        url: \"بەستەر (URL)\",\n        emoji: \"ئیمۆجی\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ڕێکەوت و کات\",\n        date: \"ڕێکەوت\",\n        time: \"کات\",\n        duration: \"ماوە\",\n        ipv4: \"ناونیشانی IPv4\",\n        ipv6: \"ناونیشانی IPv6\",\n        mac: \"ناونیشانی MAC\",\n        cidrv4: \"مەودای IPv4\",\n        cidrv6: \"مەودای IPv6\",\n        base64: \"دەقی base64\",\n        base64url: \"دەقی base64url\",\n        json_string: \"دەقی JSON\",\n        e164: \"ژمارەی E.164\",\n        credit_card: \"ژمارەی کارتی کرێدیت\",\n        currency_code: \"کۆدی دراو\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"تێکردە\",\n    };\n    // type names: missing keys = do not translate (use raw value via ?? fallback)\n    const TypeDictionary = {\n        nan: \"NaN\",\n        string: \"نووسین\",\n        number: \"ژمارە\",\n        boolean: \"boolean\",\n        array: \"array\",\n        object: \"object\",\n        date: \"ڕێکەوت\",\n        integer: \"ژمارە\",\n        float: \"ژمارە\",\n        null: \"null\",\n        undefined: \"undefined\",\n        function: \"function\",\n        symbol: \"symbol\",\n        unknown: \"unknown\",\n        promise: \"promise\",\n        void: \"void\",\n        never: \"never\",\n        map: \"map\",\n        set: \"set\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                const postfix = [\"ا\", \"و\", \"ۆ\", \"وو\", \"ە\", \"ی\", \"ێ\"].some((p) => received.endsWith(p)) ? \"یە\" : \"ە\";\n                const isEnglish = /^[a-zA-Z]+$/.test(received);\n                if (receivedType === \"null\" || receivedType === \"undefined\")\n                    return `داواکراوە`;\n                return `چاوەڕوانکراوە ${expected} بێت، بەڵام ${received}${isEnglish ? \"\" : postfix}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `بەهاکە نادرووستە: چاوەڕوانکراوە ${util.stringifyPrimitive(issue.values[0])} بێت`;\n                return `هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `پێویستە بە لایەنی زۆرەوە ${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;\n                return `پێویستە بە لایەنی زۆرەوە ${issue.maximum.toString()} بێت`;\n            }\n            case \"too_small\": {\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `پێویستە بە لایەنی کەمەوە ${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;\n                return `پێویستە بە لایەنی کەمەوە ${issue.minimum.toString()} بێت`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `دەقی نادروست: پێویستە دەستپێبکات بە \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `دەقی نادروست: پێویستە کۆتاییبێت بە \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `دەقی نادروست: پێویستە \"${_issue.includes}\" لەخۆبگرێت`;\n                if (_issue.format === \"regex\")\n                    return `دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${_issue.pattern} بگونجێت`;\n                return `بەهای ${FormatDictionary[_issue.format] ?? issue.format} نادروستە`;\n            }\n            case \"not_multiple_of\":\n                return `ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `کلیلی نەناسراو: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `کلیلی نادروست لە ${issue.origin}`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${opts}`;\n                }\n                return \"یەکگرتنی نادروست\";\n            case \"invalid_element\":\n                return `${issue.origin} بەهاکە نادروستە`;\n            default:\n                return `تێکردەی نادروست`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"znaků\", verb: \"mít\" },\n        file: { unit: \"bajtů\", verb: \"mít\" },\n        array: { unit: \"prvků\", verb: \"mít\" },\n        set: { unit: \"prvků\", verb: \"mít\" },\n        map: { unit: \"prvků\", verb: \"mít\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"regulární výraz\",\n        email: \"e-mailová adresa\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"datum a čas ve formátu ISO\",\n        date: \"datum ve formátu ISO\",\n        time: \"čas ve formátu ISO\",\n        duration: \"doba trvání ISO\",\n        ipv4: \"IPv4 adresa\",\n        ipv6: \"IPv6 adresa\",\n        mac: \"MAC adresa\",\n        cidrv4: \"rozsah IPv4\",\n        cidrv6: \"rozsah IPv6\",\n        base64: \"řetězec zakódovaný ve formátu base64\",\n        base64url: \"řetězec zakódovaný ve formátu base64url\",\n        json_string: \"řetězec ve formátu JSON\",\n        e164: \"číslo E.164\",\n        credit_card: \"číslo kreditní karty\",\n        currency_code: \"kód měny\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"vstup\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"číslo\",\n        string: \"řetězec\",\n        function: \"funkce\",\n        array: \"pole\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Neplatný vstup: očekáváno instanceof ${issue.expected}, obdrženo ${received}`;\n                }\n                return `Neplatný vstup: očekáváno ${expected}, obdrženo ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Neplatný vstup: očekáváno ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Neplatná možnost: očekávána jedna z hodnot ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Hodnota je příliš velká: ${issue.origin ?? \"hodnota\"} musí mít ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"prvků\"}`;\n                }\n                return `Hodnota je příliš velká: ${issue.origin ?? \"hodnota\"} musí být ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Hodnota je příliš malá: ${issue.origin ?? \"hodnota\"} musí mít ${adj}${issue.minimum.toString()} ${sizing.unit ?? \"prvků\"}`;\n                }\n                return `Hodnota je příliš malá: ${issue.origin ?? \"hodnota\"} musí být ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Neplatný řetězec: musí začínat na \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Neplatný řetězec: musí končit na \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Neplatný řetězec: musí obsahovat \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Neplatný řetězec: musí odpovídat vzoru ${_issue.pattern}`;\n                return `Neplatný formát ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Neplatné číslo: musí být násobkem ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Neznámé klíče: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Neplatný klíč v ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Neplatný vstup\";\n            case \"invalid_element\":\n                return `Neplatná hodnota v ${issue.origin}`;\n            default:\n                return `Neplatný vstup`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"tegn\", verb: \"havde\" },\n        file: { unit: \"bytes\", verb: \"havde\" },\n        array: { unit: \"elementer\", verb: \"indeholdt\" },\n        set: { unit: \"elementer\", verb: \"indeholdt\" },\n        map: { unit: \"elementer\", verb: \"indeholdt\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"e-mailadresse\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO dato- og klokkeslæt\",\n        date: \"ISO-dato\",\n        time: \"ISO-klokkeslæt\",\n        duration: \"ISO-varighed\",\n        ipv4: \"IPv4-adresse\",\n        ipv6: \"IPv6-adresse\",\n        mac: \"MAC-adresse\",\n        cidrv4: \"IPv4-spektrum\",\n        cidrv6: \"IPv6-spektrum\",\n        base64: \"base64-kodet streng\",\n        base64url: \"base64url-kodet streng\",\n        json_string: \"JSON-streng\",\n        e164: \"E.164-nummer\",\n        credit_card: \"kreditkortnummer\",\n        currency_code: \"valutakode\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        string: \"streng\",\n        number: \"tal\",\n        boolean: \"boolean\",\n        array: \"liste\",\n        object: \"objekt\",\n        set: \"sæt\",\n        file: \"fil\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Ugyldigt input: forventede instanceof ${issue.expected}, fik ${received}`;\n                }\n                return `Ugyldigt input: forventede ${expected}, fik ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Ugyldig værdi: forventede ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Ugyldigt valg: forventede en af følgende ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                if (sizing)\n                    return `For stor: forventede ${origin ?? \"value\"} ${sizing.verb} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"elementer\"}`;\n                return `For stor: forventede ${origin ?? \"value\"} havde ${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                if (sizing) {\n                    return `For lille: forventede ${origin} ${sizing.verb} ${adj} ${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `For lille: forventede ${origin} havde ${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Ugyldig streng: skal starte med \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Ugyldig streng: skal ende med \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Ugyldig streng: skal indeholde \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Ugyldig streng: skal matche mønsteret ${_issue.pattern}`;\n                return `Ugyldig ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Ugyldigt tal: skal være deleligt med ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `${issue.keys.length > 1 ? \"Ukendte nøgler\" : \"Ukendt nøgle\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Ugyldig nøgle i ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Ugyldigt input: matcher ingen af de tilladte typer\";\n            case \"invalid_element\":\n                return `Ugyldig værdi i ${issue.origin}`;\n            default:\n                return `Ugyldigt input`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"Zeichen\", verb: \"zu haben\" },\n        file: { unit: \"Bytes\", verb: \"zu haben\" },\n        array: { unit: \"Elemente\", verb: \"zu haben\" },\n        set: { unit: \"Elemente\", verb: \"zu haben\" },\n        map: { unit: \"Elemente\", verb: \"zu haben\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"Eingabe\",\n        email: \"E-Mail-Adresse\",\n        url: \"URL\",\n        emoji: \"Emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO-Datum und -Uhrzeit\",\n        date: \"ISO-Datum\",\n        time: \"ISO-Uhrzeit\",\n        duration: \"ISO-Dauer\",\n        ipv4: \"IPv4-Adresse\",\n        ipv6: \"IPv6-Adresse\",\n        mac: \"MAC-Adresse\",\n        cidrv4: \"IPv4-Bereich\",\n        cidrv6: \"IPv6-Bereich\",\n        base64: \"Base64-codierter String\",\n        base64url: \"Base64-URL-codierter String\",\n        json_string: \"JSON-String\",\n        e164: \"E.164-Nummer\",\n        credit_card: \"Kreditkartennummer\",\n        currency_code: \"Währungscode\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"Eingabe\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"Zahl\",\n        array: \"Array\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Ungültige Eingabe: erwartet instanceof ${issue.expected}, erhalten ${received}`;\n                }\n                return `Ungültige Eingabe: erwartet ${expected}, erhalten ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Ungültige Eingabe: erwartet ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Ungültige Option: erwartet eine von ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Zu groß: erwartet, dass ${issue.origin ?? \"Wert\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"Elemente\"} hat`;\n                return `Zu groß: erwartet, dass ${issue.origin ?? \"Wert\"} ${adj}${issue.maximum.toString()} ist`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Zu klein: erwartet, dass ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} hat`;\n                }\n                return `Zu klein: erwartet, dass ${issue.origin} ${adj}${issue.minimum.toString()} ist`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Ungültiger String: muss mit \"${_issue.prefix}\" beginnen`;\n                if (_issue.format === \"ends_with\")\n                    return `Ungültiger String: muss mit \"${_issue.suffix}\" enden`;\n                if (_issue.format === \"includes\")\n                    return `Ungültiger String: muss \"${_issue.includes}\" enthalten`;\n                if (_issue.format === \"regex\")\n                    return `Ungültiger String: muss dem Muster ${_issue.pattern} entsprechen`;\n                return `Ungültig: ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Ungültige Zahl: muss ein Vielfaches von ${issue.divisor} sein`;\n            case \"unrecognized_keys\":\n                return `${issue.keys.length > 1 ? \"Unbekannte Schlüssel\" : \"Unbekannter Schlüssel\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Ungültiger Schlüssel in ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Ungültige Eingabe\";\n            case \"invalid_element\":\n                return `Ungültiger Wert in ${issue.origin}`;\n            default:\n                return `Ungültige Eingabe`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"χαρακτήρες\", verb: \"να έχει\" },\n        file: { unit: \"bytes\", verb: \"να έχει\" },\n        array: { unit: \"στοιχεία\", verb: \"να έχει\" },\n        set: { unit: \"στοιχεία\", verb: \"να έχει\" },\n        map: { unit: \"καταχωρήσεις\", verb: \"να έχει\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"είσοδος\",\n        email: \"διεύθυνση email\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO ημερομηνία και ώρα\",\n        date: \"ISO ημερομηνία\",\n        time: \"ISO ώρα\",\n        duration: \"ISO διάρκεια\",\n        ipv4: \"διεύθυνση IPv4\",\n        ipv6: \"διεύθυνση IPv6\",\n        mac: \"διεύθυνση MAC\",\n        cidrv4: \"εύρος IPv4\",\n        cidrv6: \"εύρος IPv6\",\n        base64: \"συμβολοσειρά κωδικοποιημένη σε base64\",\n        base64url: \"συμβολοσειρά κωδικοποιημένη σε base64url\",\n        json_string: \"συμβολοσειρά JSON\",\n        e164: \"αριθμός E.164\",\n        credit_card: \"αριθμός πιστωτικής κάρτας\",\n        currency_code: \"κωδικός νομίσματος\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"είσοδος\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (typeof issue.expected === \"string\" && /^[A-Z]/.test(issue.expected)) {\n                    return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue.expected}, λήφθηκε ${received}`;\n                }\n                return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Μη έγκυρη είσοδος: αναμενόταν ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? \"τιμή\"} να έχει ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"στοιχεία\"}`;\n                return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? \"τιμή\"} να είναι ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Πολύ μικρό: αναμενόταν ${issue.origin} να έχει ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Πολύ μικρό: αναμενόταν ${issue.origin} να είναι ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;\n                return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Άγνωστ${issue.keys.length > 1 ? \"α\" : \"ο\"} κλειδ${issue.keys.length > 1 ? \"ιά\" : \"ί\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Μη έγκυρο κλειδί στο ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Μη έγκυρη είσοδος\";\n            case \"invalid_element\":\n                return `Μη έγκυρη τιμή στο ${issue.origin}`;\n            default:\n                return `Μη έγκυρη είσοδος`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"characters\", verb: \"to have\" },\n        file: { unit: \"bytes\", verb: \"to have\" },\n        array: { unit: \"items\", verb: \"to have\" },\n        set: { unit: \"items\", verb: \"to have\" },\n        map: { unit: \"entries\", verb: \"to have\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"email address\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO datetime\",\n        date: \"ISO date\",\n        time: \"ISO time\",\n        duration: \"ISO duration\",\n        ipv4: \"IPv4 address\",\n        ipv6: \"IPv6 address\",\n        mac: \"MAC address\",\n        cidrv4: \"IPv4 range\",\n        cidrv6: \"IPv6 range\",\n        base64: \"base64-encoded string\",\n        base64url: \"base64url-encoded string\",\n        json_string: \"JSON string\",\n        e164: \"E.164 number\",\n        currency_code: \"currency code\",\n        credit_card: \"credit card number\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    // type names: missing keys = do not translate (use raw value via ?? fallback)\n    const TypeDictionary = {\n        // Compatibility: \"nan\" -> \"NaN\" for display\n        nan: \"NaN\",\n        // All other type names omitted - they fall back to raw values via ?? operator\n    };\n    function getTypeName(type, input) {\n        if (type === \"number\" && typeof input === \"number\" && !Number.isFinite(input)) {\n            return String(input);\n        }\n        return TypeDictionary[type] ?? type;\n    }\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = getTypeName(issue.expected);\n                const receivedType = util.parsedType(issue.input);\n                const received = getTypeName(receivedType, issue.input);\n                return `Invalid input: expected ${expected}, received ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Invalid input: expected ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Invalid option: expected one of ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.exact ? \"exactly \" : issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Too big: expected ${issue.origin ?? \"value\"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elements\"}`;\n                return `Too big: expected ${issue.origin ?? \"value\"} to be ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.exact ? \"exactly \" : issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Too small: expected ${issue.origin} to be ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Invalid string: must start with \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Invalid string: must end with \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Invalid string: must include \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Invalid string: must match pattern ${_issue.pattern}`;\n                return `Invalid ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Invalid number: must be a multiple of ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Unrecognized key${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Invalid key in ${issue.origin}`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `Invalid discriminator value. Expected ${opts}`;\n                }\n                if (issue.inclusive === false) {\n                    return \"Invalid input: more than one option matched\";\n                }\n                return \"Invalid input\";\n            case \"invalid_element\":\n                return `Invalid value in ${issue.origin}`;\n            default:\n                return `Invalid input`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"karaktrojn\", verb: \"havi\" },\n        file: { unit: \"bajtojn\", verb: \"havi\" },\n        array: { unit: \"elementojn\", verb: \"havi\" },\n        set: { unit: \"elementojn\", verb: \"havi\" },\n        map: { unit: \"elementojn\", verb: \"havi\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"enigo\",\n        email: \"retadreso\",\n        url: \"URL\",\n        emoji: \"emoĝio\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO-datotempo\",\n        date: \"ISO-dato\",\n        time: \"ISO-tempo\",\n        duration: \"ISO-daŭro\",\n        ipv4: \"IPv4-adreso\",\n        ipv6: \"IPv6-adreso\",\n        mac: \"MAC-adreso\",\n        cidrv4: \"IPv4-rango\",\n        cidrv6: \"IPv6-rango\",\n        base64: \"64-ume kodita karaktraro\",\n        base64url: \"URL-64-ume kodita karaktraro\",\n        json_string: \"JSON-karaktraro\",\n        e164: \"E.164-nombro\",\n        credit_card: \"kreditkarta numero\",\n        currency_code: \"valuta kodo\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"enigo\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"nombro\",\n        array: \"tabelo\",\n        null: \"senvalora\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Nevalida enigo: atendiĝis instanceof ${issue.expected}, riceviĝis ${received}`;\n                }\n                return `Nevalida enigo: atendiĝis ${expected}, riceviĝis ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Nevalida enigo: atendiĝis ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Nevalida opcio: atendiĝis unu el ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Tro granda: atendiĝis ke ${issue.origin ?? \"valoro\"} havu ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elementojn\"}`;\n                return `Tro granda: atendiĝis ke ${issue.origin ?? \"valoro\"} havu ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Tro malgranda: atendiĝis ke ${issue.origin} havu ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Tro malgranda: atendiĝis ke ${issue.origin} estu ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Nevalida karaktraro: devas komenciĝi per \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Nevalida karaktraro: devas finiĝi per \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Nevalida karaktraro: devas inkluzivi \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`;\n                return `Nevalida ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Nevalida nombro: devas esti oblo de ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Nekonata${issue.keys.length > 1 ? \"j\" : \"\"} ŝlosilo${issue.keys.length > 1 ? \"j\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Nevalida ŝlosilo en ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Nevalida enigo\";\n            case \"invalid_element\":\n                return `Nevalida valoro en ${issue.origin}`;\n            default:\n                return `Nevalida enigo`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caracteres\", verb: \"tener\" },\n        file: { unit: \"bytes\", verb: \"tener\" },\n        array: { unit: \"elementos\", verb: \"tener\" },\n        set: { unit: \"elementos\", verb: \"tener\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"entrada\",\n        email: \"dirección de correo electrónico\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"fecha y hora ISO\",\n        date: \"fecha ISO\",\n        time: \"hora ISO\",\n        duration: \"duración ISO\",\n        ipv4: \"dirección IPv4\",\n        ipv6: \"dirección IPv6\",\n        mac: \"dirección MAC\",\n        cidrv4: \"rango IPv4\",\n        cidrv6: \"rango IPv6\",\n        base64: \"cadena codificada en base64\",\n        base64url: \"URL codificada en base64\",\n        json_string: \"cadena JSON\",\n        e164: \"número E.164\",\n        credit_card: \"número de tarjeta de crédito\",\n        currency_code: \"código de moneda\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"entrada\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        string: \"texto\",\n        number: \"número\",\n        boolean: \"booleano\",\n        array: \"arreglo\",\n        object: \"objeto\",\n        set: \"conjunto\",\n        file: \"archivo\",\n        date: \"fecha\",\n        bigint: \"número grande\",\n        symbol: \"símbolo\",\n        undefined: \"indefinido\",\n        null: \"nulo\",\n        function: \"función\",\n        map: \"mapa\",\n        record: \"registro\",\n        tuple: \"tupla\",\n        enum: \"enumeración\",\n        union: \"unión\",\n        literal: \"literal\",\n        promise: \"promesa\",\n        void: \"vacío\",\n        never: \"nunca\",\n        unknown: \"desconocido\",\n        any: \"cualquiera\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Entrada inválida: se esperaba instanceof ${issue.expected}, recibido ${received}`;\n                }\n                return `Entrada inválida: se esperaba ${expected}, recibido ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Entrada inválida: se esperaba ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Opción inválida: se esperaba una de ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                if (sizing)\n                    return `Demasiado grande: se esperaba que ${origin ?? \"valor\"} tuviera ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elementos\"}`;\n                return `Demasiado grande: se esperaba que ${origin ?? \"valor\"} fuera ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                if (sizing) {\n                    return `Demasiado pequeño: se esperaba que ${origin} tuviera ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Demasiado pequeño: se esperaba que ${origin} fuera ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Cadena inválida: debe comenzar con \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Cadena inválida: debe terminar en \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Cadena inválida: debe incluir \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Cadena inválida: debe coincidir con el patrón ${_issue.pattern}`;\n                return `Inválido ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Número inválido: debe ser múltiplo de ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Llave${issue.keys.length > 1 ? \"s\" : \"\"} desconocida${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Llave inválida en ${TypeDictionary[issue.origin] ?? issue.origin}`;\n            case \"invalid_union\":\n                return \"Entrada inválida\";\n            case \"invalid_element\":\n                return `Valor inválido en ${TypeDictionary[issue.origin] ?? issue.origin}`;\n            default:\n                return `Entrada inválida`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"کاراکتر\", verb: \"داشته باشد\" },\n        file: { unit: \"بایت\", verb: \"داشته باشد\" },\n        array: { unit: \"آیتم\", verb: \"داشته باشد\" },\n        set: { unit: \"آیتم\", verb: \"داشته باشد\" },\n        map: { unit: \"آیتم\", verb: \"داشته باشد\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ورودی\",\n        email: \"آدرس ایمیل\",\n        url: \"URL\",\n        emoji: \"ایموجی\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"تاریخ و زمان ایزو\",\n        date: \"تاریخ ایزو\",\n        time: \"زمان ایزو\",\n        duration: \"مدت زمان ایزو\",\n        ipv4: \"IPv4 آدرس\",\n        ipv6: \"IPv6 آدرس\",\n        mac: \"MAC آدرس\",\n        cidrv4: \"IPv4 دامنه\",\n        cidrv6: \"IPv6 دامنه\",\n        base64: \"base64-encoded رشته\",\n        base64url: \"base64url-encoded رشته\",\n        json_string: \"JSON رشته\",\n        e164: \"E.164 عدد\",\n        credit_card: \"شماره کارت اعتباری\",\n        currency_code: \"کد ارز\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ورودی\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"عدد\",\n        array: \"آرایه\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `ورودی نامعتبر: می‌بایست instanceof ${issue.expected} می‌بود، ${received} دریافت شد`;\n                }\n                return `ورودی نامعتبر: می‌بایست ${expected} می‌بود، ${received} دریافت شد`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1) {\n                    return `ورودی نامعتبر: می‌بایست ${util.stringifyPrimitive(issue.values[0])} می‌بود`;\n                }\n                return `گزینه نامعتبر: می‌بایست یکی از ${util.joinValues(issue.values, \"|\")} می‌بود`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `خیلی بزرگ: ${issue.origin ?? \"مقدار\"} باید ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"عنصر\"} باشد`;\n                }\n                return `خیلی بزرگ: ${issue.origin ?? \"مقدار\"} باید ${adj}${issue.maximum.toString()} باشد`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `خیلی کوچک: ${issue.origin} باید ${adj}${issue.minimum.toString()} ${sizing.unit} باشد`;\n                }\n                return `خیلی کوچک: ${issue.origin} باید ${adj}${issue.minimum.toString()} باشد`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `رشته نامعتبر: باید با \"${_issue.prefix}\" شروع شود`;\n                }\n                if (_issue.format === \"ends_with\") {\n                    return `رشته نامعتبر: باید با \"${_issue.suffix}\" تمام شود`;\n                }\n                if (_issue.format === \"includes\") {\n                    return `رشته نامعتبر: باید شامل \"${_issue.includes}\" باشد`;\n                }\n                if (_issue.format === \"regex\") {\n                    return `رشته نامعتبر: باید با الگوی ${_issue.pattern} مطابقت داشته باشد`;\n                }\n                return `${FormatDictionary[_issue.format] ?? issue.format} نامعتبر`;\n            }\n            case \"not_multiple_of\":\n                return `عدد نامعتبر: باید مضرب ${issue.divisor} باشد`;\n            case \"unrecognized_keys\":\n                return `کلید${issue.keys.length > 1 ? \"های\" : \"\"} ناشناس: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `کلید ناشناس در ${issue.origin}`;\n            case \"invalid_union\":\n                return `ورودی نامعتبر`;\n            case \"invalid_element\":\n                return `مقدار نامعتبر در ${issue.origin}`;\n            default:\n                return `ورودی نامعتبر`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"merkkiä\", subject: \"merkkijonon\" },\n        file: { unit: \"tavua\", subject: \"tiedoston\" },\n        array: { unit: \"alkiota\", subject: \"listan\" },\n        set: { unit: \"alkiota\", subject: \"joukon\" },\n        map: { unit: \"alkiota\", subject: \"kuvauksen\" },\n        number: { unit: \"\", subject: \"luvun\" },\n        bigint: { unit: \"\", subject: \"suuren kokonaisluvun\" },\n        int: { unit: \"\", subject: \"kokonaisluvun\" },\n        date: { unit: \"\", subject: \"päivämäärän\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"säännöllinen lauseke\",\n        email: \"sähköpostiosoite\",\n        url: \"URL-osoite\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO-aikaleima\",\n        date: \"ISO-päivämäärä\",\n        time: \"ISO-aika\",\n        duration: \"ISO-kesto\",\n        ipv4: \"IPv4-osoite\",\n        ipv6: \"IPv6-osoite\",\n        mac: \"MAC-osoite\",\n        cidrv4: \"IPv4-alue\",\n        cidrv6: \"IPv6-alue\",\n        base64: \"base64-koodattu merkkijono\",\n        base64url: \"base64url-koodattu merkkijono\",\n        json_string: \"JSON-merkkijono\",\n        e164: \"E.164-luku\",\n        credit_card: \"luottokortin numero\",\n        currency_code: \"valuuttakoodi\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"templaattimerkkijono\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Virheellinen tyyppi: odotettiin instanceof ${issue.expected}, oli ${received}`;\n                }\n                return `Virheellinen tyyppi: odotettiin ${expected}, oli ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Virheellinen syöte: täytyy olla ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Virheellinen valinta: täytyy olla yksi seuraavista: ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Liian suuri: ${sizing.subject} täytyy olla ${adj}${issue.maximum.toString()} ${sizing.unit}`.trim();\n                }\n                return `Liian suuri: arvon täytyy olla ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Liian pieni: ${sizing.subject} täytyy olla ${adj}${issue.minimum.toString()} ${sizing.unit}`.trim();\n                }\n                return `Liian pieni: arvon täytyy olla ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Virheellinen syöte: täytyy alkaa \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Virheellinen syöte: täytyy loppua \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Virheellinen syöte: täytyy sisältää \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\") {\n                    return `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${_issue.pattern}`;\n                }\n                return `Virheellinen ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Virheellinen luku: täytyy olla luvun ${issue.divisor} monikerta`;\n            case \"unrecognized_keys\":\n                return `${issue.keys.length > 1 ? \"Tuntemattomat avaimet\" : \"Tuntematon avain\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return \"Virheellinen avain tietueessa\";\n            case \"invalid_union\":\n                return \"Virheellinen unioni\";\n            case \"invalid_element\":\n                return \"Virheellinen arvo joukossa\";\n            default:\n                return `Virheellinen syöte`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caractères\", verb: \"avoir\" },\n        file: { unit: \"octets\", verb: \"avoir\" },\n        array: { unit: \"éléments\", verb: \"avoir\" },\n        set: { unit: \"éléments\", verb: \"avoir\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"expression régulière\",\n        email: \"adresse e-mail\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"date et heure ISO\",\n        date: \"date ISO\",\n        time: \"heure ISO\",\n        duration: \"durée ISO\",\n        ipv4: \"adresse IPv4\",\n        ipv6: \"adresse IPv6\",\n        mac: \"adresse MAC\",\n        cidrv4: \"plage IPv4\",\n        cidrv6: \"plage IPv6\",\n        base64: \"chaîne de caractères encodée en base64\",\n        base64url: \"chaîne de caractères encodée en base64url\",\n        json_string: \"chaîne de caractères JSON\",\n        e164: \"numéro au format E.164\",\n        credit_card: \"numéro de carte de crédit\",\n        currency_code: \"code de devise\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"entrée\",\n    };\n    const TypeDictionary = {\n        string: \"chaîne de caractères\",\n        number: \"nombre\",\n        int: \"entier\",\n        boolean: \"booléen\",\n        bigint: \"grand entier\",\n        symbol: \"symbole\",\n        undefined: \"indéfini\",\n        null: \"null\",\n        never: \"jamais\",\n        void: \"vide\",\n        date: \"date\",\n        array: \"tableau\",\n        object: \"objet\",\n        tuple: \"tuple\",\n        record: \"record\",\n        map: \"map\",\n        set: \"ensemble\",\n        file: \"fichier\",\n        nonoptional: \"non optionnel\",\n        nan: \"NaN\",\n        function: \"fonction\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Entrée invalide : instance de ${issue.expected} attendu, ${received} reçu`;\n                }\n                return `Entrée invalide : ${expected} attendu, ${received} reçu`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Entrée invalide : ${util.stringifyPrimitive(issue.values[0])} attendu`;\n                return `Option invalide : une valeur parmi ${util.joinValues(issue.values, \"|\")} attendue`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Trop grand : ${TypeDictionary[issue.origin] ?? \"valeur\"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"élément(s)\"}`;\n                return `Trop grand : ${TypeDictionary[issue.origin] ?? \"valeur\"} doit être ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Trop petit : ${TypeDictionary[issue.origin] ?? \"valeur\"} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                return `Trop petit : ${TypeDictionary[issue.origin] ?? \"valeur\"} doit être ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Chaîne de caractères invalide : doit commencer par \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Chaîne de caractères invalide : doit se terminer par \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Chaîne de caractères invalide : doit inclure \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Chaîne de caractères invalide : doit correspondre au motif ${_issue.pattern}`;\n                return `${FormatDictionary[_issue.format] ?? issue.format} invalide`;\n            }\n            case \"not_multiple_of\":\n                return `Nombre invalide : doit être un multiple de ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Clé${issue.keys.length > 1 ? \"s\" : \"\"} non reconnue${issue.keys.length > 1 ? \"s\" : \"\"} : ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Clé invalide dans ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Entrée invalide\";\n            case \"invalid_element\":\n                return `Valeur invalide dans ${issue.origin}`;\n            default:\n                return `Entrée invalide`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caractères\", verb: \"avoir\" },\n        file: { unit: \"octets\", verb: \"avoir\" },\n        array: { unit: \"éléments\", verb: \"avoir\" },\n        set: { unit: \"éléments\", verb: \"avoir\" },\n        map: { unit: \"éléments\", verb: \"avoir\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"entrée\",\n        email: \"adresse courriel\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"date-heure ISO\",\n        date: \"date ISO\",\n        time: \"heure ISO\",\n        duration: \"durée ISO\",\n        ipv4: \"adresse IPv4\",\n        ipv6: \"adresse IPv6\",\n        mac: \"adresse MAC\",\n        cidrv4: \"plage IPv4\",\n        cidrv6: \"plage IPv6\",\n        base64: \"chaîne encodée en base64\",\n        base64url: \"chaîne encodée en base64url\",\n        json_string: \"chaîne JSON\",\n        e164: \"numéro E.164\",\n        credit_card: \"numéro de carte de crédit\",\n        currency_code: \"code de devise\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"entrée\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Entrée invalide : attendu instanceof ${issue.expected}, reçu ${received}`;\n                }\n                return `Entrée invalide : attendu ${expected}, reçu ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Entrée invalide : attendu ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Option invalide : attendu l'une des valeurs suivantes ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"≤\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Trop grand : attendu que ${issue.origin ?? \"la valeur\"} ait ${adj}${issue.maximum.toString()} ${sizing.unit}`;\n                return `Trop grand : attendu que ${issue.origin ?? \"la valeur\"} soit ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \"≥\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Trop petit : attendu que ${issue.origin} ait ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Trop petit : attendu que ${issue.origin} soit ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Chaîne invalide : doit commencer par \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Chaîne invalide : doit se terminer par \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Chaîne invalide : doit inclure \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Chaîne invalide : doit correspondre au motif ${_issue.pattern}`;\n                return `${FormatDictionary[_issue.format] ?? issue.format} invalide`;\n            }\n            case \"not_multiple_of\":\n                return `Nombre invalide : doit être un multiple de ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Clé${issue.keys.length > 1 ? \"s\" : \"\"} non reconnue${issue.keys.length > 1 ? \"s\" : \"\"} : ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Clé invalide dans ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Entrée invalide\";\n            case \"invalid_element\":\n                return `Valeur invalide dans ${issue.origin}`;\n            default:\n                return `Entrée invalide`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"અક્ષર\", verb: \"હોવા જોઈએ\" },\n        file: { unit: \"બાયટ\", verb: \"હોવા જોઈએ\" },\n        array: { unit: \"આઇટમ\", verb: \"હોવા જોઈએ\" },\n        set: { unit: \"આઇટમ\", verb: \"હોવા જોઈએ\" },\n        map: { unit: \"એન્ટ્રી\", verb: \"હોવા જોઈએ\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ઇનપુટ\",\n        email: \"ઈમેઇલ એડ્રેસ\",\n        url: \"URL\",\n        emoji: \"ઇમોજી\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO તારીખ અને સમય\",\n        date: \"ISO તારીખ\",\n        time: \"ISO સમય\",\n        duration: \"ISO અવધિ\",\n        ipv4: \"IPv4 એડ્રેસ\",\n        ipv6: \"IPv6 એડ્રેસ\",\n        mac: \"MAC એડ્રેસ\",\n        cidrv4: \"IPv4 શ્રેણી\",\n        cidrv6: \"IPv6 શ્રેણી\",\n        base64: \"base64-એન્કોડેડ સ્ટ્રિંગ\",\n        base64url: \"base64url-એન્કોડેડ સ્ટ્રિંગ\",\n        json_string: \"JSON સ્ટ્રિંગ\",\n        e164: \"E.164 નંબર\",\n        credit_card: \"ક્રેડિટ કાર્ડ નંબર\",\n        currency_code: \"ચલણ કોડ\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ઇનપુટ\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `અમાન્ય ઇનપુટ: અપેક્ષિત ${expected}, પ્રાપ્ત ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `અમાન્ય ઇનપુટ: અપેક્ષિત ${util.stringifyPrimitive(issue.values[0])}`;\n                return `અમાન્ય વિકલ્પ: ${util.joinValues(issue.values, \" | \")} માધ્યમથી એક અપેક્ષિત`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `ખૂબ મોટું: ${issue.origin ?? \"મૂલ્ય\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"એલિમેન્ટ\"} હોવા જોઈએ`;\n                return `ખૂબ મોટું: ${issue.origin ?? \"મૂલ્ય\"} ${adj}${issue.maximum.toString()} હોવું જોઈએ`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `ખૂબ નાનું: ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} હોવા જોઈએ`;\n                }\n                return `ખૂબ નાનું: ${issue.origin} ${adj}${issue.minimum.toString()} હોવું જોઈએ`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `અમાન્ય સ્ટ્રિંગ: \"${_issue.prefix}\" થી શરૂ થવું જોઈએ`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `અમાન્ય સ્ટ્રિંગ: \"${_issue.suffix}\" પર સમાપ્ત થવું જોઈએ`;\n                if (_issue.format === \"includes\")\n                    return `અમાન્ય સ્ટ્રિંગ: \"${_issue.includes}\" શામેલ હોવું જોઈએ`;\n                if (_issue.format === \"regex\")\n                    return `અમાન્ય સ્ટ્રિંગ: પેટર્ન ${_issue.pattern} સાથે મેળ ખાવું જોઈએ`;\n                return `અમાન્ય ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `અમાન્ય નંબર: ${issue.divisor} નો ગુણાંક હોવો જોઈએ`;\n            case \"unrecognized_keys\":\n                return `ઓળખી શકાતા નહીં તે કી${issue.keys.length > 1 ? \"ઓ\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} માં અમાન્ય કી`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત ${opts}`;\n                }\n                return \"અમાન્ય ઇનપુટ\";\n            case \"invalid_element\":\n                return `${issue.origin} માં અમાન્ય મૂલ્ય`;\n            default:\n                return \"અમાન્ય ઇનપુટ\";\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    // Hebrew labels + grammatical gender\n    const TypeNames = {\n        string: { label: \"מחרוזת\", gender: \"f\" },\n        number: { label: \"מספר\", gender: \"m\" },\n        boolean: { label: \"ערך בוליאני\", gender: \"m\" },\n        bigint: { label: \"BigInt\", gender: \"m\" },\n        date: { label: \"תאריך\", gender: \"m\" },\n        array: { label: \"מערך\", gender: \"m\" },\n        object: { label: \"אובייקט\", gender: \"m\" },\n        null: { label: \"ערך ריק (null)\", gender: \"m\" },\n        undefined: { label: \"ערך לא מוגדר (undefined)\", gender: \"m\" },\n        symbol: { label: \"סימבול (Symbol)\", gender: \"m\" },\n        function: { label: \"פונקציה\", gender: \"f\" },\n        map: { label: \"מפה (Map)\", gender: \"f\" },\n        set: { label: \"קבוצה (Set)\", gender: \"f\" },\n        file: { label: \"קובץ\", gender: \"m\" },\n        promise: { label: \"Promise\", gender: \"m\" },\n        NaN: { label: \"NaN\", gender: \"m\" },\n        unknown: { label: \"ערך לא ידוע\", gender: \"m\" },\n        value: { label: \"ערך\", gender: \"m\" },\n    };\n    // Sizing units for size-related messages + localized origin labels\n    const Sizable = {\n        string: { unit: \"תווים\", shortLabel: \"קצר\", longLabel: \"ארוך\" },\n        file: { unit: \"בייטים\", shortLabel: \"קטן\", longLabel: \"גדול\" },\n        array: { unit: \"פריטים\", shortLabel: \"קטן\", longLabel: \"גדול\" },\n        set: { unit: \"פריטים\", shortLabel: \"קטן\", longLabel: \"גדול\" },\n        number: { unit: \"\", shortLabel: \"קטן\", longLabel: \"גדול\" }, // no unit\n    };\n    // Helpers — labels, articles, and verbs\n    const typeEntry = (t) => (t ? TypeNames[t] : undefined);\n    const typeLabel = (t) => {\n        const e = typeEntry(t);\n        if (e)\n            return e.label;\n        // fallback: show raw string if unknown\n        return t ?? TypeNames.unknown.label;\n    };\n    const withDefinite = (t) => `ה${typeLabel(t)}`;\n    const verbFor = (t) => {\n        const e = typeEntry(t);\n        const gender = e?.gender ?? \"m\";\n        return gender === \"f\" ? \"צריכה להיות\" : \"צריך להיות\";\n    };\n    const getSizing = (origin) => {\n        if (!origin)\n            return null;\n        return Sizable[origin] ?? null;\n    };\n    const FormatDictionary = {\n        regex: { label: \"קלט\", gender: \"m\" },\n        email: { label: \"כתובת אימייל\", gender: \"f\" },\n        url: { label: \"כתובת רשת\", gender: \"f\" },\n        emoji: { label: \"אימוג'י\", gender: \"m\" },\n        uuid: { label: \"UUID\", gender: \"m\" },\n        uuidv4: { label: \"UUIDv4\", gender: \"m\" },\n        uuidv6: { label: \"UUIDv6\", gender: \"m\" },\n        nanoid: { label: \"nanoid\", gender: \"m\" },\n        guid: { label: \"GUID\", gender: \"m\" },\n        cuid: { label: \"cuid\", gender: \"m\" },\n        cuid2: { label: \"cuid2\", gender: \"m\" },\n        ulid: { label: \"ULID\", gender: \"m\" },\n        xid: { label: \"XID\", gender: \"m\" },\n        ksuid: { label: \"KSUID\", gender: \"m\" },\n        datetime: { label: \"תאריך וזמן ISO\", gender: \"m\" },\n        date: { label: \"תאריך ISO\", gender: \"m\" },\n        time: { label: \"זמן ISO\", gender: \"m\" },\n        duration: { label: \"משך זמן ISO\", gender: \"m\" },\n        ipv4: { label: \"כתובת IPv4\", gender: \"f\" },\n        ipv6: { label: \"כתובת IPv6\", gender: \"f\" },\n        mac: { label: \"כתובת MAC\", gender: \"f\" },\n        cidrv4: { label: \"טווח IPv4\", gender: \"m\" },\n        cidrv6: { label: \"טווח IPv6\", gender: \"m\" },\n        base64: { label: \"מחרוזת בבסיס 64\", gender: \"f\" },\n        base64url: { label: \"מחרוזת בבסיס 64 לכתובות רשת\", gender: \"f\" },\n        json_string: { label: \"מחרוזת JSON\", gender: \"f\" },\n        e164: { label: \"מספר E.164\", gender: \"m\" },\n        credit_card: { label: \"מספר כרטיס אשראי\", gender: \"m\" },\n        currency_code: { label: \"קוד מטבע\", gender: \"m\" },\n        iban: { label: \"IBAN\", gender: \"m\" },\n        jwt: { label: \"JWT\", gender: \"m\" },\n        template_literal: { label: \"קלט\", gender: \"m\" },\n        ends_with: { label: \"קלט\", gender: \"m\" },\n        includes: { label: \"קלט\", gender: \"m\" },\n        lowercase: { label: \"קלט\", gender: \"m\" },\n        starts_with: { label: \"קלט\", gender: \"m\" },\n        uppercase: { label: \"קלט\", gender: \"m\" },\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                // Expected type: show without definite article for clearer Hebrew\n                const expectedKey = issue.expected;\n                const expected = TypeDictionary[expectedKey ?? \"\"] ?? typeLabel(expectedKey);\n                // Received: show localized label if known, otherwise constructor/raw\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `קלט לא תקין: צריך להיות instanceof ${issue.expected}, התקבל ${received}`;\n                }\n                return `קלט לא תקין: צריך להיות ${expected}, התקבל ${received}`;\n            }\n            case \"invalid_value\": {\n                if (issue.values.length === 1) {\n                    return `ערך לא תקין: הערך חייב להיות ${util.stringifyPrimitive(issue.values[0])}`;\n                }\n                // Join values with proper Hebrew formatting\n                const stringified = issue.values.map((v) => util.stringifyPrimitive(v));\n                if (issue.values.length === 2) {\n                    return `ערך לא תקין: האפשרויות המתאימות הן ${stringified[0]} או ${stringified[1]}`;\n                }\n                // For 3+ values: \"a\", \"b\" או \"c\"\n                const lastValue = stringified[stringified.length - 1];\n                const restValues = stringified.slice(0, -1).join(\", \");\n                return `ערך לא תקין: האפשרויות המתאימות הן ${restValues} או ${lastValue}`;\n            }\n            case \"too_big\": {\n                const sizing = getSizing(issue.origin);\n                const subject = withDefinite(issue.origin ?? \"value\");\n                if (issue.origin === \"string\") {\n                    // Special handling for strings - more natural Hebrew\n                    return `${sizing?.longLabel ?? \"ארוך\"} מדי: ${subject} צריכה להכיל ${issue.maximum.toString()} ${sizing?.unit ?? \"\"} ${issue.inclusive ? \"או פחות\" : \"לכל היותר\"}`.trim();\n                }\n                if (issue.origin === \"number\") {\n                    // Natural Hebrew for numbers\n                    const comparison = issue.inclusive ? `קטן או שווה ל-${issue.maximum}` : `קטן מ-${issue.maximum}`;\n                    return `גדול מדי: ${subject} צריך להיות ${comparison}`;\n                }\n                if (issue.origin === \"array\" || issue.origin === \"set\") {\n                    // Natural Hebrew for arrays and sets\n                    const verb = issue.origin === \"set\" ? \"צריכה\" : \"צריך\";\n                    const comparison = issue.inclusive\n                        ? `${issue.maximum} ${sizing?.unit ?? \"\"} או פחות`\n                        : `פחות מ-${issue.maximum} ${sizing?.unit ?? \"\"}`;\n                    return `גדול מדי: ${subject} ${verb} להכיל ${comparison}`.trim();\n                }\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const be = verbFor(issue.origin ?? \"value\");\n                if (sizing?.unit) {\n                    return `${sizing.longLabel} מדי: ${subject} ${be} ${adj}${issue.maximum.toString()} ${sizing.unit}`;\n                }\n                return `${sizing?.longLabel ?? \"גדול\"} מדי: ${subject} ${be} ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const sizing = getSizing(issue.origin);\n                const subject = withDefinite(issue.origin ?? \"value\");\n                if (issue.origin === \"string\") {\n                    // Special handling for strings - more natural Hebrew\n                    return `${sizing?.shortLabel ?? \"קצר\"} מדי: ${subject} צריכה להכיל ${issue.minimum.toString()} ${sizing?.unit ?? \"\"} ${issue.inclusive ? \"או יותר\" : \"לפחות\"}`.trim();\n                }\n                if (issue.origin === \"number\") {\n                    // Natural Hebrew for numbers\n                    const comparison = issue.inclusive ? `גדול או שווה ל-${issue.minimum}` : `גדול מ-${issue.minimum}`;\n                    return `קטן מדי: ${subject} צריך להיות ${comparison}`;\n                }\n                if (issue.origin === \"array\" || issue.origin === \"set\") {\n                    // Natural Hebrew for arrays and sets\n                    const verb = issue.origin === \"set\" ? \"צריכה\" : \"צריך\";\n                    // Special case for singular (minimum === 1)\n                    if (issue.minimum === 1 && issue.inclusive) {\n                        const singularPhrase = issue.origin === \"set\" ? \"לפחות פריט אחד\" : \"לפחות פריט אחד\";\n                        return `קטן מדי: ${subject} ${verb} להכיל ${singularPhrase}`;\n                    }\n                    const comparison = issue.inclusive\n                        ? `${issue.minimum} ${sizing?.unit ?? \"\"} או יותר`\n                        : `יותר מ-${issue.minimum} ${sizing?.unit ?? \"\"}`;\n                    return `קטן מדי: ${subject} ${verb} להכיל ${comparison}`.trim();\n                }\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const be = verbFor(issue.origin ?? \"value\");\n                if (sizing?.unit) {\n                    return `${sizing.shortLabel} מדי: ${subject} ${be} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `${sizing?.shortLabel ?? \"קטן\"} מדי: ${subject} ${be} ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                // These apply to strings — use feminine grammar + ה׳ הידיעה\n                if (_issue.format === \"starts_with\")\n                    return `המחרוזת חייבת להתחיל ב \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `המחרוזת חייבת להסתיים ב \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `המחרוזת חייבת לכלול \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `המחרוזת חייבת להתאים לתבנית ${_issue.pattern}`;\n                // Handle gender agreement for formats\n                const nounEntry = FormatDictionary[_issue.format];\n                const noun = nounEntry?.label ?? _issue.format;\n                const gender = nounEntry?.gender ?? \"m\";\n                const adjective = gender === \"f\" ? \"תקינה\" : \"תקין\";\n                return `${noun} לא ${adjective}`;\n            }\n            case \"not_multiple_of\":\n                return `מספר לא תקין: חייב להיות מכפלה של ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `מפתח${issue.keys.length > 1 ? \"ות\" : \"\"} לא מזוה${issue.keys.length > 1 ? \"ים\" : \"ה\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\": {\n                return `שדה לא תקין באובייקט`;\n            }\n            case \"invalid_union\":\n                return \"קלט לא תקין\";\n            case \"invalid_element\": {\n                const place = withDefinite(issue.origin ?? \"array\");\n                return `ערך לא תקין ב${place}`;\n            }\n            default:\n                return `קלט לא תקין`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"अक्षर\", verb: \"रखने के लिए\" },\n        file: { unit: \"बाइट्स\", verb: \"रखने के लिए\" },\n        array: { unit: \"तत्व\", verb: \"रखने के लिए\" },\n        set: { unit: \"तत्व\", verb: \"रखने के लिए\" },\n        map: { unit: \"प्रविष्टियाँ\", verb: \"रखने के लिए\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"इनपुट\",\n        email: \"ईमेल पता\",\n        url: \"URL\",\n        emoji: \"इमोजी\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO तिथि और समय\",\n        date: \"ISO तिथि\",\n        time: \"ISO समय\",\n        duration: \"ISO अवधि\",\n        ipv4: \"IPv4 पता\",\n        ipv6: \"IPv6 पता\",\n        mac: \"MAC पता\",\n        cidrv4: \"IPv4 श्रेणी\",\n        cidrv6: \"IPv6 श्रेणी\",\n        base64: \"Base64-एन्कोडेड स्ट्रिंग\",\n        base64url: \"Base64URL-एन्कोडेड स्ट्रिंग\",\n        json_string: \"JSON स्ट्रिंग\",\n        e164: \"E.164 संख्या\",\n        credit_card: \"क्रेडिट कार्ड संख्या\",\n        currency_code: \"मुद्रा कोड\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"इनपुट\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `अमान्य इनपुट: अपेक्षित ${expected}, प्राप्त ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `अमान्य इनपुट: अपेक्षित ${util.stringifyPrimitive(issue.values[0])}`;\n                return `अमान्य विकल्प: अपेक्षित मानों में से एक ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `बहुत बड़ा: अपेक्षित था कि ${issue.origin ?? \"मान\"} में ${adj}${issue.maximum} ${sizing.unit} हों`;\n                return `बहुत बड़ा: अपेक्षित था कि ${issue.origin ?? \"मान\"} ${adj}${issue.maximum} हो`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `बहुत छोटा: अपेक्षित था कि ${issue.origin} में ${adj}${issue.minimum} ${sizing.unit} हों`;\n                return `बहुत छोटा: अपेक्षित था कि ${issue.origin} ${adj}${issue.minimum} हो`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `अमान्य स्ट्रिंग: \"${_issue.prefix}\" से शुरू होना चाहिए`;\n                if (_issue.format === \"ends_with\")\n                    return `अमान्य स्ट्रिंग: \"${_issue.suffix}\" पर समाप्त होना चाहिए`;\n                if (_issue.format === \"includes\")\n                    return `अमान्य स्ट्रिंग: इसमें \"${_issue.includes}\" शामिल होना चाहिए`;\n                if (_issue.format === \"regex\")\n                    return `अमान्य स्ट्रिंग: पैटर्न ${_issue.pattern} से मेल खाना चाहिए`;\n                return `अमान्य ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `अमान्य संख्या: यह ${issue.divisor} का गुणज होना चाहिए`;\n            case \"unrecognized_keys\":\n                return `अपरिचित कुंजी${issue.keys.length > 1 ? \"याँ\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `अमान्य कुंजी: ${issue.origin} में`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${opts}`;\n                }\n                return \"अमान्य इनपुट\";\n            case \"invalid_element\":\n                return `अमान्य मान: ${issue.origin} में`;\n            default:\n                return `अमान्य इनपुट`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"znakova\", verb: \"imati\" },\n        file: { unit: \"bajtova\", verb: \"imati\" },\n        array: { unit: \"stavki\", verb: \"imati\" },\n        set: { unit: \"stavki\", verb: \"imati\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"unos\",\n        email: \"email adresa\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO datum i vrijeme\",\n        date: \"ISO datum\",\n        time: \"ISO vrijeme\",\n        duration: \"ISO trajanje\",\n        ipv4: \"IPv4 adresa\",\n        ipv6: \"IPv6 adresa\",\n        mac: \"MAC adresa\",\n        cidrv4: \"IPv4 raspon\",\n        cidrv6: \"IPv6 raspon\",\n        base64: \"base64 kodirani tekst\",\n        base64url: \"base64url kodirani tekst\",\n        json_string: \"JSON tekst\",\n        e164: \"E.164 broj\",\n        credit_card: \"broj kreditne kartice\",\n        currency_code: \"kod valute\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"unos\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        string: \"tekst\",\n        number: \"broj\",\n        boolean: \"boolean\",\n        array: \"niz\",\n        object: \"objekt\",\n        set: \"skup\",\n        file: \"datoteka\",\n        date: \"datum\",\n        bigint: \"bigint\",\n        symbol: \"simbol\",\n        undefined: \"undefined\",\n        null: \"null\",\n        function: \"funkcija\",\n        map: \"mapa\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Neispravan unos: očekuje se instanceof ${issue.expected}, a primljeno je ${received}`;\n                }\n                return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Neispravna vrijednost: očekivano ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Neispravna opcija: očekivano jedno od ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                if (sizing)\n                    return `Preveliko: očekivano da ${origin ?? \"vrijednost\"} ima ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elemenata\"}`;\n                return `Preveliko: očekivano da ${origin ?? \"vrijednost\"} bude ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                if (sizing) {\n                    return `Premalo: očekivano da ${origin} ima ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Premalo: očekivano da ${origin} bude ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Neispravan tekst: mora započinjati s \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Neispravan tekst: mora završavati s \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Neispravan tekst: mora sadržavati \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;\n                return `Neispravna ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Neispravan broj: mora biti višekratnik od ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Neprepoznat${issue.keys.length > 1 ? \"i ključevi\" : \" ključ\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Neispravan ključ u ${TypeDictionary[issue.origin] ?? issue.origin}`;\n            case \"invalid_union\":\n                return \"Neispravan unos\";\n            case \"invalid_element\":\n                return `Neispravna vrijednost u ${TypeDictionary[issue.origin] ?? issue.origin}`;\n            default:\n                return `Neispravan unos`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"karakter\", verb: \"legyen\" },\n        file: { unit: \"byte\", verb: \"legyen\" },\n        array: { unit: \"elem\", verb: \"legyen\" },\n        set: { unit: \"elem\", verb: \"legyen\" },\n        map: { unit: \"elem\", verb: \"legyen\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"bemenet\",\n        email: \"email cím\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO időbélyeg\",\n        date: \"ISO dátum\",\n        time: \"ISO idő\",\n        duration: \"ISO időintervallum\",\n        ipv4: \"IPv4 cím\",\n        ipv6: \"IPv6 cím\",\n        mac: \"MAC cím\",\n        cidrv4: \"IPv4 tartomány\",\n        cidrv6: \"IPv6 tartomány\",\n        base64: \"base64-kódolt string\",\n        base64url: \"base64url-kódolt string\",\n        json_string: \"JSON string\",\n        e164: \"E.164 szám\",\n        credit_card: \"hitelkártyaszám\",\n        currency_code: \"pénznemkód\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"bemenet\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"szám\",\n        array: \"tömb\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Érvénytelen bemenet: a várt érték instanceof ${issue.expected}, a kapott érték ${received}`;\n                }\n                return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Érvénytelen bemenet: a várt érték ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Érvénytelen opció: valamelyik érték várt ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Túl nagy: ${issue.origin ?? \"érték\"} mérete túl nagy ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elem\"}`;\n                return `Túl nagy: a bemeneti érték ${issue.origin ?? \"érték\"} túl nagy: ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Túl kicsi: a bemeneti érték ${issue.origin} mérete túl kicsi ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Túl kicsi: a bemeneti érték ${issue.origin} túl kicsi ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Érvénytelen string: \"${_issue.prefix}\" értékkel kell kezdődnie`;\n                if (_issue.format === \"ends_with\")\n                    return `Érvénytelen string: \"${_issue.suffix}\" értékkel kell végződnie`;\n                if (_issue.format === \"includes\")\n                    return `Érvénytelen string: \"${_issue.includes}\" értéket kell tartalmaznia`;\n                if (_issue.format === \"regex\")\n                    return `Érvénytelen string: ${_issue.pattern} mintának kell megfelelnie`;\n                return `Érvénytelen ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Érvénytelen szám: ${issue.divisor} többszörösének kell lennie`;\n            case \"unrecognized_keys\":\n                return `Ismeretlen kulcs${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Érvénytelen kulcs ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Érvénytelen bemenet\";\n            case \"invalid_element\":\n                return `Érvénytelen érték: ${issue.origin}`;\n            default:\n                return `Érvénytelen bemenet`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nfunction getArmenianPlural(count, one, many) {\n    return Math.abs(count) === 1 ? one : many;\n}\nfunction withDefiniteArticle(word) {\n    if (!word)\n        return \"\";\n    const vowels = [\"ա\", \"ե\", \"ը\", \"ի\", \"ո\", \"ու\", \"օ\"];\n    const lastChar = word[word.length - 1];\n    return word + (vowels.includes(lastChar) ? \"ն\" : \"ը\");\n}\nconst error = () => {\n    const Sizable = {\n        string: {\n            unit: {\n                one: \"նշան\",\n                many: \"նշաններ\",\n            },\n            verb: \"ունենալ\",\n        },\n        file: {\n            unit: {\n                one: \"բայթ\",\n                many: \"բայթեր\",\n            },\n            verb: \"ունենալ\",\n        },\n        array: {\n            unit: {\n                one: \"տարր\",\n                many: \"տարրեր\",\n            },\n            verb: \"ունենալ\",\n        },\n        set: {\n            unit: {\n                one: \"տարր\",\n                many: \"տարրեր\",\n            },\n            verb: \"ունենալ\",\n        },\n        map: {\n            unit: {\n                one: \"տարր\",\n                many: \"տարրեր\",\n            },\n            verb: \"ունենալ\",\n        },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"մուտք\",\n        email: \"էլ. հասցե\",\n        url: \"URL\",\n        emoji: \"էմոջի\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO ամսաթիվ և ժամ\",\n        date: \"ISO ամսաթիվ\",\n        time: \"ISO ժամ\",\n        duration: \"ISO տևողություն\",\n        ipv4: \"IPv4 հասցե\",\n        ipv6: \"IPv6 հասցե\",\n        mac: \"MAC հասցե\",\n        cidrv4: \"IPv4 միջակայք\",\n        cidrv6: \"IPv6 միջակայք\",\n        base64: \"base64 ձևաչափով տող\",\n        base64url: \"base64url ձևաչափով տող\",\n        json_string: \"JSON տող\",\n        e164: \"E.164 համար\",\n        credit_card: \"կրեդիտ քարտի համար\",\n        currency_code: \"արժույթի կոդ\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"մուտք\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"թիվ\",\n        array: \"զանգված\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Սխալ մուտքագրում․ սպասվում էր instanceof ${issue.expected}, ստացվել է ${received}`;\n                }\n                return `Սխալ մուտքագրում․ սպասվում էր ${expected}, ստացվել է ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Սխալ մուտքագրում․ սպասվում էր ${util.stringifyPrimitive(issue.values[1])}`;\n                return `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    const maxValue = Number(issue.maximum);\n                    const unit = getArmenianPlural(maxValue, sizing.unit.one, sizing.unit.many);\n                    return `Չափազանց մեծ արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin ?? \"արժեք\")} կունենա ${adj}${issue.maximum.toString()} ${unit}`;\n                }\n                return `Չափազանց մեծ արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin ?? \"արժեք\")} լինի ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    const minValue = Number(issue.minimum);\n                    const unit = getArmenianPlural(minValue, sizing.unit.one, sizing.unit.many);\n                    return `Չափազանց փոքր արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin)} կունենա ${adj}${issue.minimum.toString()} ${unit}`;\n                }\n                return `Չափազանց փոքր արժեք․ սպասվում է, որ ${withDefiniteArticle(issue.origin)} լինի ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Սխալ տող․ պետք է սկսվի \"${_issue.prefix}\"-ով`;\n                if (_issue.format === \"ends_with\")\n                    return `Սխալ տող․ պետք է ավարտվի \"${_issue.suffix}\"-ով`;\n                if (_issue.format === \"includes\")\n                    return `Սխալ տող․ պետք է պարունակի \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Սխալ տող․ պետք է համապատասխանի ${_issue.pattern} ձևաչափին`;\n                return `Սխալ ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${issue.divisor}-ի`;\n            case \"unrecognized_keys\":\n                return `Չճանաչված բանալի${issue.keys.length > 1 ? \"ներ\" : \"\"}. ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Սխալ բանալի ${withDefiniteArticle(issue.origin)}-ում`;\n            case \"invalid_union\":\n                return \"Սխալ մուտքագրում\";\n            case \"invalid_element\":\n                return `Սխալ արժեք ${withDefiniteArticle(issue.origin)}-ում`;\n            default:\n                return `Սխալ մուտքագրում`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"karakter\", verb: \"memiliki\" },\n        file: { unit: \"byte\", verb: \"memiliki\" },\n        array: { unit: \"item\", verb: \"memiliki\" },\n        set: { unit: \"item\", verb: \"memiliki\" },\n        map: { unit: \"item\", verb: \"memiliki\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"alamat email\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"tanggal dan waktu format ISO\",\n        date: \"tanggal format ISO\",\n        time: \"jam format ISO\",\n        duration: \"durasi format ISO\",\n        ipv4: \"alamat IPv4\",\n        ipv6: \"alamat IPv6\",\n        mac: \"alamat MAC\",\n        cidrv4: \"rentang alamat IPv4\",\n        cidrv6: \"rentang alamat IPv6\",\n        base64: \"string dengan enkode base64\",\n        base64url: \"string dengan enkode base64url\",\n        json_string: \"string JSON\",\n        e164: \"angka E.164\",\n        credit_card: \"nomor kartu kredit\",\n        currency_code: \"kode mata uang\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Input tidak valid: diharapkan instanceof ${issue.expected}, diterima ${received}`;\n                }\n                return `Input tidak valid: diharapkan ${expected}, diterima ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Input tidak valid: diharapkan ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Pilihan tidak valid: diharapkan salah satu dari ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Terlalu besar: diharapkan ${issue.origin ?? \"value\"} memiliki ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elemen\"}`;\n                return `Terlalu besar: diharapkan ${issue.origin ?? \"value\"} menjadi ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Terlalu kecil: diharapkan ${issue.origin} memiliki ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Terlalu kecil: diharapkan ${issue.origin} menjadi ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `String tidak valid: harus dimulai dengan \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `String tidak valid: harus berakhir dengan \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `String tidak valid: harus menyertakan \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `String tidak valid: harus sesuai pola ${_issue.pattern}`;\n                return `${FormatDictionary[_issue.format] ?? issue.format} tidak valid`;\n            }\n            case \"not_multiple_of\":\n                return `Angka tidak valid: harus kelipatan dari ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Kunci tidak dikenali ${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Kunci tidak valid di ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Input tidak valid\";\n            case \"invalid_element\":\n                return `Nilai tidak valid di ${issue.origin}`;\n            default:\n                return `Input tidak valid`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"stafi\", verb: \"að hafa\" },\n        file: { unit: \"bæti\", verb: \"að hafa\" },\n        array: { unit: \"hluti\", verb: \"að hafa\" },\n        set: { unit: \"hluti\", verb: \"að hafa\" },\n        map: { unit: \"hluti\", verb: \"að hafa\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"gildi\",\n        email: \"netfang\",\n        url: \"vefslóð\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO dagsetning og tími\",\n        date: \"ISO dagsetning\",\n        time: \"ISO tími\",\n        duration: \"ISO tímalengd\",\n        ipv4: \"IPv4 address\",\n        ipv6: \"IPv6 address\",\n        mac: \"MAC address\",\n        cidrv4: \"IPv4 range\",\n        cidrv6: \"IPv6 range\",\n        base64: \"base64-encoded strengur\",\n        base64url: \"base64url-encoded strengur\",\n        json_string: \"JSON strengur\",\n        e164: \"E.164 tölugildi\",\n        credit_card: \"kreditkortanúmer\",\n        currency_code: \"gjaldmiðilskóði\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"gildi\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"númer\",\n        array: \"fylki\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Rangt gildi: Þú slóst inn ${received} þar sem á að vera instanceof ${issue.expected}`;\n                }\n                return `Rangt gildi: Þú slóst inn ${received} þar sem á að vera ${expected}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Rangt gildi: gert ráð fyrir ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Ógilt val: má vera eitt af eftirfarandi ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Of stórt: gert er ráð fyrir að ${issue.origin ?? \"gildi\"} hafi ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"hluti\"}`;\n                return `Of stórt: gert er ráð fyrir að ${issue.origin ?? \"gildi\"} sé ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Of lítið: gert er ráð fyrir að ${issue.origin} hafi ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Of lítið: gert er ráð fyrir að ${issue.origin} sé ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Ógildur strengur: verður að byrja á \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Ógildur strengur: verður að enda á \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Ógildur strengur: verður að innihalda \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Ógildur strengur: verður að fylgja mynstri ${_issue.pattern}`;\n                return `Rangt ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Röng tala: verður að vera margfeldi af ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Óþekkt ${issue.keys.length > 1 ? \"ir lyklar\" : \"ur lykill\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Rangur lykill í ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Rangt gildi\";\n            case \"invalid_element\":\n                return `Rangt gildi í ${issue.origin}`;\n            default:\n                return `Rangt gildi`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caratteri\", verb: \"avere\" },\n        file: { unit: \"byte\", verb: \"avere\" },\n        array: { unit: \"elementi\", verb: \"avere\" },\n        set: { unit: \"elementi\", verb: \"avere\" },\n        map: { unit: \"elementi\", verb: \"avere\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"indirizzo email\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"data e ora ISO\",\n        date: \"data ISO\",\n        time: \"ora ISO\",\n        duration: \"durata ISO\",\n        ipv4: \"indirizzo IPv4\",\n        ipv6: \"indirizzo IPv6\",\n        mac: \"indirizzo MAC\",\n        cidrv4: \"intervallo IPv4\",\n        cidrv6: \"intervallo IPv6\",\n        base64: \"stringa codificata in base64\",\n        base64url: \"URL codificata in base64\",\n        json_string: \"stringa JSON\",\n        e164: \"numero E.164\",\n        credit_card: \"numero di carta di credito\",\n        currency_code: \"codice valuta\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"numero\",\n        array: \"vettore\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Input non valido: atteso instanceof ${issue.expected}, ricevuto ${received}`;\n                }\n                return `Input non valido: atteso ${expected}, ricevuto ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Input non valido: atteso ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Opzione non valida: atteso uno tra ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Troppo grande: ${issue.origin ?? \"valore\"} deve avere ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elementi\"}`;\n                return `Troppo grande: ${issue.origin ?? \"valore\"} deve essere ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Troppo piccolo: ${issue.origin} deve avere ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Troppo piccolo: ${issue.origin} deve essere ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Stringa non valida: deve iniziare con \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Stringa non valida: deve terminare con \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Stringa non valida: deve includere \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;\n                return `Input non valido: ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Numero non valido: deve essere un multiplo di ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Chiav${issue.keys.length > 1 ? \"i\" : \"e\"} non riconosciut${issue.keys.length > 1 ? \"e\" : \"a\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Chiave non valida in ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Input non valido\";\n            case \"invalid_element\":\n                return `Valore non valido in ${issue.origin}`;\n            default:\n                return `Input non valido`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"文字\", verb: \"である\" },\n        file: { unit: \"バイト\", verb: \"である\" },\n        array: { unit: \"要素\", verb: \"である\" },\n        set: { unit: \"要素\", verb: \"である\" },\n        map: { unit: \"要素\", verb: \"である\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"入力値\",\n        email: \"メールアドレス\",\n        url: \"URL\",\n        emoji: \"絵文字\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO日時\",\n        date: \"ISO日付\",\n        time: \"ISO時刻\",\n        duration: \"ISO期間\",\n        ipv4: \"IPv4アドレス\",\n        ipv6: \"IPv6アドレス\",\n        mac: \"MACアドレス\",\n        cidrv4: \"IPv4範囲\",\n        cidrv6: \"IPv6範囲\",\n        base64: \"base64エンコード文字列\",\n        base64url: \"base64urlエンコード文字列\",\n        json_string: \"JSON文字列\",\n        e164: \"E.164番号\",\n        credit_card: \"クレジットカード番号\",\n        currency_code: \"通貨コード\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"入力値\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"数値\",\n        array: \"配列\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `無効な入力: instanceof ${issue.expected}が期待されましたが、${received}が入力されました`;\n                }\n                return `無効な入力: ${expected}が期待されましたが、${received}が入力されました`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `無効な入力: ${util.stringifyPrimitive(issue.values[0])}が期待されました`;\n                return `無効な選択: ${util.joinValues(issue.values, \"、\")}のいずれかである必要があります`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"以下である\" : \"より小さい\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `大きすぎる値: ${issue.origin ?? \"値\"}は${issue.maximum.toString()}${sizing.unit ?? \"要素\"}${adj}必要があります`;\n                return `大きすぎる値: ${issue.origin ?? \"値\"}は${issue.maximum.toString()}${adj}必要があります`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \"以上である\" : \"より大きい\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `小さすぎる値: ${issue.origin}は${issue.minimum.toString()}${sizing.unit}${adj}必要があります`;\n                return `小さすぎる値: ${issue.origin}は${issue.minimum.toString()}${adj}必要があります`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `無効な文字列: \"${_issue.prefix}\"で始まる必要があります`;\n                if (_issue.format === \"ends_with\")\n                    return `無効な文字列: \"${_issue.suffix}\"で終わる必要があります`;\n                if (_issue.format === \"includes\")\n                    return `無効な文字列: \"${_issue.includes}\"を含む必要があります`;\n                if (_issue.format === \"regex\")\n                    return `無効な文字列: パターン${_issue.pattern}に一致する必要があります`;\n                return `無効な${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `無効な数値: ${issue.divisor}の倍数である必要があります`;\n            case \"unrecognized_keys\":\n                return `認識されていないキー${issue.keys.length > 1 ? \"群\" : \"\"}: ${util.joinValues(issue.keys, \"、\")}`;\n            case \"invalid_key\":\n                return `${issue.origin}内の無効なキー`;\n            case \"invalid_union\":\n                return \"無効な入力\";\n            case \"invalid_element\":\n                return `${issue.origin}内の無効な値`;\n            default:\n                return `無効な入力`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"სიმბოლო\", verb: \"უნდა შეიცავდეს\" },\n        file: { unit: \"ბაიტი\", verb: \"უნდა შეიცავდეს\" },\n        array: { unit: \"ელემენტი\", verb: \"უნდა შეიცავდეს\" },\n        set: { unit: \"ელემენტი\", verb: \"უნდა შეიცავდეს\" },\n        map: { unit: \"ელემენტი\", verb: \"უნდა შეიცავდეს\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"შეყვანა\",\n        email: \"ელ-ფოსტის მისამართი\",\n        url: \"URL\",\n        emoji: \"ემოჯი\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"თარიღი-დრო\",\n        date: \"თარიღი\",\n        time: \"დრო\",\n        duration: \"ხანგრძლივობა\",\n        ipv4: \"IPv4 მისამართი\",\n        ipv6: \"IPv6 მისამართი\",\n        mac: \"MAC მისამართი\",\n        cidrv4: \"IPv4 დიაპაზონი\",\n        cidrv6: \"IPv6 დიაპაზონი\",\n        base64: \"base64-კოდირებული ველი\",\n        base64url: \"base64url-კოდირებული ველი\",\n        json_string: \"JSON ველი\",\n        e164: \"E.164 ნომერი\",\n        credit_card: \"საკრედიტო ბარათის ნომერი\",\n        currency_code: \"ვალუტის კოდი\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"შეყვანა\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"რიცხვი\",\n        string: \"ველი\",\n        boolean: \"ბულეანი\",\n        function: \"ფუნქცია\",\n        array: \"მასივი\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `არასწორი შეყვანა: მოსალოდნელი instanceof ${issue.expected}, მიღებული ${received}`;\n                }\n                return `არასწორი შეყვანა: მოსალოდნელი ${expected}, მიღებული ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `არასწორი შეყვანა: მოსალოდნელი ${util.stringifyPrimitive(issue.values[0])}`;\n                return `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${util.joinValues(issue.values, \"|\")}-დან`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `ზედმეტად დიდი: მოსალოდნელი ${issue.origin ?? \"მნიშვნელობა\"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit}`;\n                return `ზედმეტად დიდი: მოსალოდნელი ${issue.origin ?? \"მნიშვნელობა\"} იყოს ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `ზედმეტად პატარა: მოსალოდნელი ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `ზედმეტად პატარა: მოსალოდნელი ${issue.origin} იყოს ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `არასწორი ველი: უნდა იწყებოდეს \"${_issue.prefix}\"-ით`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `არასწორი ველი: უნდა მთავრდებოდეს \"${_issue.suffix}\"-ით`;\n                if (_issue.format === \"includes\")\n                    return `არასწორი ველი: უნდა შეიცავდეს \"${_issue.includes}\"-ს`;\n                if (_issue.format === \"regex\")\n                    return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;\n                return `არასწორი ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `არასწორი რიცხვი: უნდა იყოს ${issue.divisor}-ის ჯერადი`;\n            case \"unrecognized_keys\":\n                return `უცნობი გასაღებ${issue.keys.length > 1 ? \"ები\" : \"ი\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `არასწორი გასაღები ${issue.origin}-ში`;\n            case \"invalid_union\":\n                return \"არასწორი შეყვანა\";\n            case \"invalid_element\":\n                return `არასწორი მნიშვნელობა ${issue.origin}-ში`;\n            default:\n                return `არასწორი შეყვანა`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"តួអក្សរ\", verb: \"គួរមាន\" },\n        file: { unit: \"បៃ\", verb: \"គួរមាន\" },\n        array: { unit: \"ធាតុ\", verb: \"គួរមាន\" },\n        set: { unit: \"ធាតុ\", verb: \"គួរមាន\" },\n        map: { unit: \"ធាតុ\", verb: \"គួរមាន\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ទិន្នន័យបញ្ចូល\",\n        email: \"អាសយដ្ឋានអ៊ីមែល\",\n        url: \"URL\",\n        emoji: \"សញ្ញាអារម្មណ៍\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"កាលបរិច្ឆេទ និងម៉ោង ISO\",\n        date: \"កាលបរិច្ឆេទ ISO\",\n        time: \"ម៉ោង ISO\",\n        duration: \"រយៈពេល ISO\",\n        ipv4: \"អាសយដ្ឋាន IPv4\",\n        ipv6: \"អាសយដ្ឋាន IPv6\",\n        mac: \"អាសយដ្ឋាន MAC\",\n        cidrv4: \"ដែនអាសយដ្ឋាន IPv4\",\n        cidrv6: \"ដែនអាសយដ្ឋាន IPv6\",\n        base64: \"ខ្សែអក្សរអ៊ិកូដ base64\",\n        base64url: \"ខ្សែអក្សរអ៊ិកូដ base64url\",\n        json_string: \"ខ្សែអក្សរ JSON\",\n        e164: \"លេខ E.164\",\n        credit_card: \"លេខប័ណ្ណឥណទាន\",\n        currency_code: \"កូដរូបិយប័ណ្ណ\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ទិន្នន័យបញ្ចូល\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"លេខ\",\n        array: \"អារេ (Array)\",\n        null: \"គ្មានតម្លៃ (null)\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${issue.expected} ប៉ុន្តែទទួលបាន ${received}`;\n                }\n                return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${expected} ប៉ុន្តែទទួលបាន ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${util.stringifyPrimitive(issue.values[0])}`;\n                return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `ធំពេក៖ ត្រូវការ ${issue.origin ?? \"តម្លៃ\"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"ធាតុ\"}`;\n                return `ធំពេក៖ ត្រូវការ ${issue.origin ?? \"តម្លៃ\"} ${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `តូចពេក៖ ត្រូវការ ${issue.origin} ${adj} ${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `តូចពេក៖ ត្រូវការ ${issue.origin} ${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${_issue.pattern}`;\n                return `មិនត្រឹមត្រូវ៖ ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `រកឃើញសោមិនស្គាល់៖ ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `សោមិនត្រឹមត្រូវនៅក្នុង ${issue.origin}`;\n            case \"invalid_union\":\n                return `ទិន្នន័យមិនត្រឹមត្រូវ`;\n            case \"invalid_element\":\n                return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${issue.origin}`;\n            default:\n                return `ទិន្នន័យមិនត្រឹមត្រូវ`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import km from \"./km.js\";\n/** @deprecated Use `km` instead. */\nexport default function () {\n    return km();\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"ಅಕ್ಷರಗಳು\", verb: \"ಹೊಂದಲು\" },\n        file: { unit: \"ಬೈಟ್‌ಗಳು\", verb: \"ಹೊಂದಲು\" },\n        array: { unit: \"ವಸ್ತುಗಳು\", verb: \"ಹೊಂದಲು\" },\n        set: { unit: \"ವಸ್ತುಗಳು\", verb: \"ಹೊಂದಲು\" },\n        map: { unit: \"entries\", verb: \"ಹೊಂದಲು\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ಇನ್ಪುಟ್\",\n        email: \"email ವಿಳಾಸ\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO ದಿನಾಂಕದ ಸಮಯ\",\n        date: \"ISO ದಿನಾಂಕ\",\n        time: \"ISO ಸಮಯ\",\n        duration: \"ISO ಅವಧಿ\",\n        ipv4: \"IPv4 ವಿಳಾಸ\",\n        ipv6: \"IPv6 ವಿಳಾಸ\",\n        mac: \"MAC ವಿಳಾಸ\",\n        cidrv4: \"IPv4 ವ್ಯಾಪ್ತಿಯ\",\n        cidrv6: \"IPv6 ವ್ಯಾಪ್ತಿಯ\",\n        base64: \"base64-encodedಸ್ಟ್ರಿಂಗ್\",\n        base64url: \"base64url-encodedಸ್ಟ್ರಿಂಗ್\",\n        json_string: \"JSONಸ್ಟ್ರಿಂಗ್\",\n        e164: \"E.164 ಸಂಖ್ಯೆ\",\n        credit_card: \"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ\",\n        currency_code: \"ಕರೆನ್ಸಿ ಕೋಡ್\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ಇನ್ಪುಟ್\",\n    };\n    // type names: missing keys = do not translate (use raw value via ?? fallback)\n    const TypeDictionary = {\n        // Compatibility: \"nan\" -> \"NaN\" for display\n        nan: \"NaN\",\n        // All other type names omitted - they fall back to raw values via ?? operator\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${expected}, ಸ್ವೀಕರಿಸಿದನು ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${util.stringifyPrimitive(issue.values[0])}`;\n                return `ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${issue.origin ?? \"value\"} ಹೊಂದಲು ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"ಅಂಶಗಳು\"}`;\n                return `ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${issue.origin ?? \"value\"} ಎಂದು ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${issue.origin} ಹೊಂದಲು ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${issue.origin} ಎಂದು ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು ${_issue.pattern}`;\n                return `ಅಮಾನ್ಯ ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `ಗುರುತಿಸಲಾಗದ ಕೀ ${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ ${issue.origin}`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${opts}`;\n                }\n                return \"ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್\";\n            case \"invalid_element\":\n                return `ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ ${issue.origin}`;\n            default:\n                return `ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"문자\", verb: \"to have\" },\n        file: { unit: \"바이트\", verb: \"to have\" },\n        array: { unit: \"개\", verb: \"to have\" },\n        set: { unit: \"개\", verb: \"to have\" },\n        map: { unit: \"개\", verb: \"to have\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"입력\",\n        email: \"이메일 주소\",\n        url: \"URL\",\n        emoji: \"이모지\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO 날짜시간\",\n        date: \"ISO 날짜\",\n        time: \"ISO 시간\",\n        duration: \"ISO 기간\",\n        ipv4: \"IPv4 주소\",\n        ipv6: \"IPv6 주소\",\n        mac: \"MAC 주소\",\n        cidrv4: \"IPv4 범위\",\n        cidrv6: \"IPv6 범위\",\n        base64: \"base64 인코딩 문자열\",\n        base64url: \"base64url 인코딩 문자열\",\n        json_string: \"JSON 문자열\",\n        e164: \"E.164 번호\",\n        credit_card: \"신용카드 번호\",\n        currency_code: \"통화 코드\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"입력\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `잘못된 입력: 예상 타입은 instanceof ${issue.expected}, 받은 타입은 ${received}입니다`;\n                }\n                return `잘못된 입력: 예상 타입은 ${expected}, 받은 타입은 ${received}입니다`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `잘못된 입력: 값은 ${util.stringifyPrimitive(issue.values[0])} 이어야 합니다`;\n                return `잘못된 옵션: ${util.joinValues(issue.values, \"또는 \")} 중 하나여야 합니다`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"이하\" : \"미만\";\n                const suffix = adj === \"미만\" ? \"이어야 합니다\" : \"여야 합니다\";\n                const sizing = getSizing(issue.origin);\n                const unit = sizing?.unit ?? \"요소\";\n                if (sizing)\n                    return `${issue.origin ?? \"값\"}이 너무 큽니다: ${issue.maximum.toString()}${unit} ${adj}${suffix}`;\n                return `${issue.origin ?? \"값\"}이 너무 큽니다: ${issue.maximum.toString()} ${adj}${suffix}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \"이상\" : \"초과\";\n                const suffix = adj === \"이상\" ? \"이어야 합니다\" : \"여야 합니다\";\n                const sizing = getSizing(issue.origin);\n                const unit = sizing?.unit ?? \"요소\";\n                if (sizing) {\n                    return `${issue.origin ?? \"값\"}이 너무 작습니다: ${issue.minimum.toString()}${unit} ${adj}${suffix}`;\n                }\n                return `${issue.origin ?? \"값\"}이 너무 작습니다: ${issue.minimum.toString()} ${adj}${suffix}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `잘못된 문자열: \"${_issue.prefix}\"(으)로 시작해야 합니다`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `잘못된 문자열: \"${_issue.suffix}\"(으)로 끝나야 합니다`;\n                if (_issue.format === \"includes\")\n                    return `잘못된 문자열: \"${_issue.includes}\"을(를) 포함해야 합니다`;\n                if (_issue.format === \"regex\")\n                    return `잘못된 문자열: 정규식 ${_issue.pattern} 패턴과 일치해야 합니다`;\n                return `잘못된 ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `잘못된 숫자: ${issue.divisor}의 배수여야 합니다`;\n            case \"unrecognized_keys\":\n                return `인식할 수 없는 키: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `잘못된 키: ${issue.origin}`;\n            case \"invalid_union\":\n                return `잘못된 입력`;\n            case \"invalid_element\":\n                return `잘못된 값: ${issue.origin}`;\n            default:\n                return `잘못된 입력`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst capitalizeFirstCharacter = (text) => {\n    return text.charAt(0).toUpperCase() + text.slice(1);\n};\nfunction getUnitTypeFromNumber(number) {\n    const abs = Math.abs(number);\n    const last = abs % 10;\n    const last2 = abs % 100;\n    if ((last2 >= 11 && last2 <= 19) || last === 0)\n        return \"many\";\n    if (last === 1)\n        return \"one\";\n    return \"few\";\n}\nconst error = () => {\n    const Sizable = {\n        string: {\n            unit: {\n                one: \"simbolis\",\n                few: \"simboliai\",\n                many: \"simbolių\",\n            },\n            verb: {\n                smaller: {\n                    inclusive: \"turi būti ne ilgesnė kaip\",\n                    notInclusive: \"turi būti trumpesnė kaip\",\n                },\n                bigger: {\n                    inclusive: \"turi būti ne trumpesnė kaip\",\n                    notInclusive: \"turi būti ilgesnė kaip\",\n                },\n            },\n        },\n        file: {\n            unit: {\n                one: \"baitas\",\n                few: \"baitai\",\n                many: \"baitų\",\n            },\n            verb: {\n                smaller: {\n                    inclusive: \"turi būti ne didesnis kaip\",\n                    notInclusive: \"turi būti mažesnis kaip\",\n                },\n                bigger: {\n                    inclusive: \"turi būti ne mažesnis kaip\",\n                    notInclusive: \"turi būti didesnis kaip\",\n                },\n            },\n        },\n        array: {\n            unit: {\n                one: \"elementą\",\n                few: \"elementus\",\n                many: \"elementų\",\n            },\n            verb: {\n                smaller: {\n                    inclusive: \"turi turėti ne daugiau kaip\",\n                    notInclusive: \"turi turėti mažiau kaip\",\n                },\n                bigger: {\n                    inclusive: \"turi turėti ne mažiau kaip\",\n                    notInclusive: \"turi turėti daugiau kaip\",\n                },\n            },\n        },\n        set: {\n            unit: {\n                one: \"elementą\",\n                few: \"elementus\",\n                many: \"elementų\",\n            },\n            verb: {\n                smaller: {\n                    inclusive: \"turi turėti ne daugiau kaip\",\n                    notInclusive: \"turi turėti mažiau kaip\",\n                },\n                bigger: {\n                    inclusive: \"turi turėti ne mažiau kaip\",\n                    notInclusive: \"turi turėti daugiau kaip\",\n                },\n            },\n        },\n    };\n    function getSizing(origin, unitType, inclusive, targetShouldBe) {\n        const result = Sizable[origin] ?? null;\n        if (result === null)\n            return result;\n        return {\n            unit: result.unit[unitType],\n            verb: result.verb[targetShouldBe][inclusive ? \"inclusive\" : \"notInclusive\"],\n        };\n    }\n    const FormatDictionary = {\n        regex: \"įvestis\",\n        email: \"el. pašto adresas\",\n        url: \"URL\",\n        emoji: \"jaustukas\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO data ir laikas\",\n        date: \"ISO data\",\n        time: \"ISO laikas\",\n        duration: \"ISO trukmė\",\n        ipv4: \"IPv4 adresas\",\n        ipv6: \"IPv6 adresas\",\n        mac: \"MAC adresas\",\n        cidrv4: \"IPv4 tinklo prefiksas (CIDR)\",\n        cidrv6: \"IPv6 tinklo prefiksas (CIDR)\",\n        base64: \"base64 užkoduota eilutė\",\n        base64url: \"base64url užkoduota eilutė\",\n        json_string: \"JSON eilutė\",\n        e164: \"E.164 numeris\",\n        credit_card: \"kredito kortelės numeris\",\n        currency_code: \"valiutos kodas\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"įvestis\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"skaičius\",\n        bigint: \"sveikasis skaičius\",\n        string: \"eilutė\",\n        boolean: \"loginė reikšmė\",\n        undefined: \"neapibrėžta reikšmė\",\n        function: \"funkcija\",\n        symbol: \"simbolis\",\n        array: \"masyvas\",\n        object: \"objektas\",\n        null: \"nulinė reikšmė\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Gautas tipas ${received}, o tikėtasi - instanceof ${issue.expected}`;\n                }\n                return `Gautas tipas ${received}, o tikėtasi - ${expected}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Privalo būti ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Privalo būti vienas iš ${util.joinValues(issue.values, \"|\")} pasirinkimų`;\n            case \"too_big\": {\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                const sizing = getSizing(issue.origin, getUnitTypeFromNumber(Number(issue.maximum)), issue.inclusive ?? false, \"smaller\");\n                if (sizing?.verb)\n                    return `${capitalizeFirstCharacter(origin ?? issue.origin ?? \"reikšmė\")} ${sizing.verb} ${issue.maximum.toString()} ${sizing.unit ?? \"elementų\"}`;\n                const adj = issue.inclusive ? \"ne didesnis kaip\" : \"mažesnis kaip\";\n                return `${capitalizeFirstCharacter(origin ?? issue.origin ?? \"reikšmė\")} turi būti ${adj} ${issue.maximum.toString()} ${sizing?.unit}`;\n            }\n            case \"too_small\": {\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                const sizing = getSizing(issue.origin, getUnitTypeFromNumber(Number(issue.minimum)), issue.inclusive ?? false, \"bigger\");\n                if (sizing?.verb)\n                    return `${capitalizeFirstCharacter(origin ?? issue.origin ?? \"reikšmė\")} ${sizing.verb} ${issue.minimum.toString()} ${sizing.unit ?? \"elementų\"}`;\n                const adj = issue.inclusive ? \"ne mažesnis kaip\" : \"didesnis kaip\";\n                return `${capitalizeFirstCharacter(origin ?? issue.origin ?? \"reikšmė\")} turi būti ${adj} ${issue.minimum.toString()} ${sizing?.unit}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Eilutė privalo prasidėti \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Eilutė privalo pasibaigti \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Eilutė privalo įtraukti \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Eilutė privalo atitikti ${_issue.pattern}`;\n                return `Neteisingas ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Skaičius privalo būti ${issue.divisor} kartotinis.`;\n            case \"unrecognized_keys\":\n                return `Neatpažint${issue.keys.length > 1 ? \"i\" : \"as\"} rakt${issue.keys.length > 1 ? \"ai\" : \"as\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return \"Rastas klaidingas raktas\";\n            case \"invalid_union\":\n                return \"Klaidinga įvestis\";\n            case \"invalid_element\": {\n                const origin = TypeDictionary[issue.origin] ?? issue.origin;\n                return `${capitalizeFirstCharacter(origin ?? issue.origin ?? \"reikšmė\")} turi klaidingą įvestį`;\n            }\n            default:\n                return \"Klaidinga įvestis\";\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"знаци\", verb: \"да имаат\" },\n        file: { unit: \"бајти\", verb: \"да имаат\" },\n        array: { unit: \"ставки\", verb: \"да имаат\" },\n        set: { unit: \"ставки\", verb: \"да имаат\" },\n        map: { unit: \"ставки\", verb: \"да имаат\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"внес\",\n        email: \"адреса на е-пошта\",\n        url: \"URL\",\n        emoji: \"емоџи\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO датум и време\",\n        date: \"ISO датум\",\n        time: \"ISO време\",\n        duration: \"ISO времетраење\",\n        ipv4: \"IPv4 адреса\",\n        ipv6: \"IPv6 адреса\",\n        mac: \"MAC адреса\",\n        cidrv4: \"IPv4 опсег\",\n        cidrv6: \"IPv6 опсег\",\n        base64: \"base64-енкодирана низа\",\n        base64url: \"base64url-енкодирана низа\",\n        json_string: \"JSON низа\",\n        e164: \"E.164 број\",\n        credit_card: \"број на кредитна картичка\",\n        currency_code: \"код на валута\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"внес\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"број\",\n        array: \"низа\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Грешен внес: се очекува instanceof ${issue.expected}, примено ${received}`;\n                }\n                return `Грешен внес: се очекува ${expected}, примено ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Invalid input: expected ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Грешана опција: се очекува една ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Премногу голем: се очекува ${issue.origin ?? \"вредноста\"} да има ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"елементи\"}`;\n                return `Премногу голем: се очекува ${issue.origin ?? \"вредноста\"} да биде ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Премногу мал: се очекува ${issue.origin} да има ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Премногу мал: се очекува ${issue.origin} да биде ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Неважечка низа: мора да започнува со \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Неважечка низа: мора да завршува со \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Неважечка низа: мора да вклучува \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Неважечка низа: мора да одгоара на патернот ${_issue.pattern}`;\n                return `Invalid ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Грешен број: мора да биде делив со ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `${issue.keys.length > 1 ? \"Непрепознаени клучеви\" : \"Непрепознаен клуч\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Грешен клуч во ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Грешен внес\";\n            case \"invalid_element\":\n                return `Грешна вредност во ${issue.origin}`;\n            default:\n                return `Грешен внес`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"aksara\", verb: \"mempunyai\" },\n        file: { unit: \"bait\", verb: \"mempunyai\" },\n        array: { unit: \"elemen\", verb: \"mempunyai\" },\n        set: { unit: \"elemen\", verb: \"mempunyai\" },\n        map: { unit: \"elemen\", verb: \"mempunyai\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"alamat e-mel\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"tarikh masa ISO\",\n        date: \"tarikh ISO\",\n        time: \"masa ISO\",\n        duration: \"tempoh ISO\",\n        ipv4: \"alamat IPv4\",\n        ipv6: \"alamat IPv6\",\n        mac: \"alamat MAC\",\n        cidrv4: \"julat IPv4\",\n        cidrv6: \"julat IPv6\",\n        base64: \"string dikodkan base64\",\n        base64url: \"string dikodkan base64url\",\n        json_string: \"string JSON\",\n        e164: \"nombor E.164\",\n        credit_card: \"nombor kad kredit\",\n        currency_code: \"kod mata wang\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"nombor\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Input tidak sah: dijangka instanceof ${issue.expected}, diterima ${received}`;\n                }\n                return `Input tidak sah: dijangka ${expected}, diterima ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Input tidak sah: dijangka ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Pilihan tidak sah: dijangka salah satu daripada ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Terlalu besar: dijangka ${issue.origin ?? \"nilai\"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elemen\"}`;\n                return `Terlalu besar: dijangka ${issue.origin ?? \"nilai\"} adalah ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Terlalu kecil: dijangka ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Terlalu kecil: dijangka ${issue.origin} adalah ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `String tidak sah: mesti bermula dengan \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `String tidak sah: mesti berakhir dengan \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `String tidak sah: mesti mengandungi \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`;\n                return `${FormatDictionary[_issue.format] ?? issue.format} tidak sah`;\n            }\n            case \"not_multiple_of\":\n                return `Nombor tidak sah: perlu gandaan ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Kunci tidak dikenali: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Kunci tidak sah dalam ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Input tidak sah\";\n            case \"invalid_element\":\n                return `Nilai tidak sah dalam ${issue.origin}`;\n            default:\n                return `Input tidak sah`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"अक्षर\", verb: \"हुनुपर्छ\" },\n        file: { unit: \"बाइट\", verb: \"हुनुपर्छ\" },\n        array: { unit: \"तत्व\", verb: \"हुनुपर्छ\" },\n        set: { unit: \"तत्व\", verb: \"हुनुपर्छ\" },\n        map: { unit: \"प्रविष्टि\", verb: \"हुनुपर्छ\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"इनपुट\",\n        email: \"इमेल ठेगाना\",\n        url: \"URL\",\n        emoji: \"इमोजी\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO मिति र समय\",\n        date: \"ISO मिति\",\n        time: \"ISO समय\",\n        duration: \"ISO अवधि\",\n        ipv4: \"IPv4 ठेगाना\",\n        ipv6: \"IPv6 ठेगाना\",\n        mac: \"MAC ठेगाना\",\n        cidrv4: \"IPv4 दायरा\",\n        cidrv6: \"IPv6 दायरा\",\n        base64: \"base64-इन्कोड गरिएको स्ट्रिङ\",\n        base64url: \"base64url-इन्कोड गरिएको स्ट्रिङ\",\n        json_string: \"JSON स्ट्रिङ\",\n        e164: \"E.164 नम्बर\",\n        credit_card: \"क्रेडिट कार्ड नम्बर\",\n        currency_code: \"मुद्रा कोड\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"इनपुट\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `अमान्य इनपुट: अपेक्षित ${expected}, प्राप्त ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `अमान्य इनपुट: अपेक्षित ${util.stringifyPrimitive(issue.values[0])}`;\n                return `अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `धेरै ठूलो: ${issue.origin ?? \"मान\"} मा ${adj}${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;\n                return `धेरै ठूलो: ${issue.origin ?? \"मान\"} ${adj}${issue.maximum.toString()} हुनुपर्छ`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `धेरै सानो: ${issue.origin} मा ${adj}${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;\n                return `धेरै सानो: ${issue.origin} ${adj}${issue.minimum.toString()} हुनुपर्छ`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `अमान्य स्ट्रिङ: \"${_issue.prefix}\" बाट सुरु हुनुपर्छ`;\n                if (_issue.format === \"ends_with\")\n                    return `अमान्य स्ट्रिङ: \"${_issue.suffix}\" मा समाप्त हुनुपर्छ`;\n                if (_issue.format === \"includes\")\n                    return `अमान्य स्ट्रिङ: \"${_issue.includes}\" समावेश हुनुपर्छ`;\n                if (_issue.format === \"regex\")\n                    return `अमान्य स्ट्रिङ: ढाँचा ${_issue.pattern} सँग मेल खानुपर्छ`;\n                return `अमान्य ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `अमान्य संख्या: ${issue.divisor} को गुणज हुनुपर्छ`;\n            case \"unrecognized_keys\":\n                return `अपरिचित कुञ्जी${issue.keys.length > 1 ? \"हरू\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `अमान्य कुञ्जी: ${issue.origin} मा`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${opts}`;\n                }\n                return \"अमान्य इनपुट\";\n            case \"invalid_element\":\n                return `अमान्य मान: ${issue.origin} मा`;\n            default:\n                return `अमान्य इनपुट`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"tekens\", verb: \"heeft\" },\n        file: { unit: \"bytes\", verb: \"heeft\" },\n        array: { unit: \"elementen\", verb: \"heeft\" },\n        set: { unit: \"elementen\", verb: \"heeft\" },\n        map: { unit: \"elementen\", verb: \"heeft\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"invoer\",\n        email: \"emailadres\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO datum en tijd\",\n        date: \"ISO datum\",\n        time: \"ISO tijd\",\n        duration: \"ISO duur\",\n        ipv4: \"IPv4-adres\",\n        ipv6: \"IPv6-adres\",\n        mac: \"MAC-adres\",\n        cidrv4: \"IPv4-bereik\",\n        cidrv6: \"IPv6-bereik\",\n        base64: \"base64-gecodeerde tekst\",\n        base64url: \"base64 URL-gecodeerde tekst\",\n        json_string: \"JSON string\",\n        e164: \"E.164-nummer\",\n        credit_card: \"creditcardnummer\",\n        currency_code: \"valutacode\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"invoer\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"getal\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Ongeldige invoer: verwacht instanceof ${issue.expected}, ontving ${received}`;\n                }\n                return `Ongeldige invoer: verwacht ${expected}, ontving ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Ongeldige invoer: verwacht ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Ongeldige optie: verwacht één van ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                const longName = issue.origin === \"date\" ? \"laat\" : issue.origin === \"string\" ? \"lang\" : \"groot\";\n                if (sizing)\n                    return `Te ${longName}: verwacht dat ${issue.origin ?? \"waarde\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elementen\"} ${sizing.verb}`;\n                return `Te ${longName}: verwacht dat ${issue.origin ?? \"waarde\"} ${adj}${issue.maximum.toString()} is`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                const shortName = issue.origin === \"date\" ? \"vroeg\" : issue.origin === \"string\" ? \"kort\" : \"klein\";\n                if (sizing) {\n                    return `Te ${shortName}: verwacht dat ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;\n                }\n                return `Te ${shortName}: verwacht dat ${issue.origin} ${adj}${issue.minimum.toString()} is`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Ongeldige tekst: moet met \"${_issue.prefix}\" beginnen`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Ongeldige tekst: moet op \"${_issue.suffix}\" eindigen`;\n                if (_issue.format === \"includes\")\n                    return `Ongeldige tekst: moet \"${_issue.includes}\" bevatten`;\n                if (_issue.format === \"regex\")\n                    return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`;\n                return `Ongeldig: ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Ongeldig getal: moet een veelvoud van ${issue.divisor} zijn`;\n            case \"unrecognized_keys\":\n                return `Onbekende key${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Ongeldige key in ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Ongeldige invoer\";\n            case \"invalid_element\":\n                return `Ongeldige waarde in ${issue.origin}`;\n            default:\n                return `Ongeldige invoer`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"teikn\", verb: \"å ha\" },\n        file: { unit: \"bytes\", verb: \"å ha\" },\n        array: { unit: \"element\", verb: \"å innehalde\" },\n        set: { unit: \"element\", verb: \"å innehalde\" },\n        map: { unit: \"element\", verb: \"å innehalde\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"e-postadresse\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO dato- og klokkeslett\",\n        date: \"ISO-dato\",\n        time: \"ISO-klokkeslett\",\n        duration: \"ISO-varigheit\",\n        ipv4: \"IPv4-adresse\",\n        ipv6: \"IPv6-adresse\",\n        mac: \"MAC-adresse\",\n        cidrv4: \"IPv4-spekter\",\n        cidrv6: \"IPv6-spekter\",\n        base64: \"base64-enkoda streng\",\n        base64url: \"base64url-enkoda streng\",\n        json_string: \"JSON-streng\",\n        e164: \"E.164-nummer\",\n        credit_card: \"kredittkortnummer\",\n        currency_code: \"valutakode\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"tal\",\n        array: \"liste\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Ugyldig input: forventa instanceof ${issue.expected}, fekk ${received}`;\n                }\n                return `Ugyldig input: forventa ${expected}, fekk ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Ugyldig verdi: forventa ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Ugyldig val: forventa eitt av ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `For stor(t): forventa ${issue.origin ?? \"value\"} til å ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"element\"}`;\n                return `For stor(t): forventa ${issue.origin ?? \"value\"} til å ha ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `For lite(n): forventa ${issue.origin} til å ha ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `For lite(n): forventa ${issue.origin} til å ha ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Ugyldig streng: må starte med \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Ugyldig streng: må slutte med \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Ugyldig streng: må innehalde \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Ugyldig streng: må matche mønsteret ${_issue.pattern}`;\n                return `Ugyldig ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Ugyldig tal: må vere eit multiplum av ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `${issue.keys.length > 1 ? \"Ukjende nøklar\" : \"Ukjend nøkkel\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Ugyldig nøkkel i ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Ugyldig input\";\n            case \"invalid_element\":\n                return `Ugyldig verdi i ${issue.origin}`;\n            default:\n                return `Ugyldig input`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"tegn\", verb: \"å ha\" },\n        file: { unit: \"bytes\", verb: \"å ha\" },\n        array: { unit: \"elementer\", verb: \"å inneholde\" },\n        set: { unit: \"elementer\", verb: \"å inneholde\" },\n        map: { unit: \"elementer\", verb: \"å inneholde\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"input\",\n        email: \"e-postadresse\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO dato- og klokkeslett\",\n        date: \"ISO-dato\",\n        time: \"ISO-klokkeslett\",\n        duration: \"ISO-varighet\",\n        ipv4: \"IPv4-adresse\",\n        ipv6: \"IPv6-adresse\",\n        mac: \"MAC-adresse\",\n        cidrv4: \"IPv4-spekter\",\n        cidrv6: \"IPv6-spekter\",\n        base64: \"base64-enkodet streng\",\n        base64url: \"base64url-enkodet streng\",\n        json_string: \"JSON-streng\",\n        e164: \"E.164-nummer\",\n        credit_card: \"kredittkortnummer\",\n        currency_code: \"valutakode\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"tall\",\n        array: \"liste\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Ugyldig input: forventet instanceof ${issue.expected}, fikk ${received}`;\n                }\n                return `Ugyldig input: forventet ${expected}, fikk ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Ugyldig verdi: forventet ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Ugyldig valg: forventet en av ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `For stor(t): forventet ${issue.origin ?? \"value\"} til å ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elementer\"}`;\n                return `For stor(t): forventet ${issue.origin ?? \"value\"} til å ha ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `For lite(n): forventet ${issue.origin} til å ha ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `For lite(n): forventet ${issue.origin} til å ha ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Ugyldig streng: må starte med \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Ugyldig streng: må ende med \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Ugyldig streng: må inneholde \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Ugyldig streng: må matche mønsteret ${_issue.pattern}`;\n                return `Ugyldig ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Ugyldig tall: må være et multiplum av ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `${issue.keys.length > 1 ? \"Ukjente nøkler\" : \"Ukjent nøkkel\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Ugyldig nøkkel i ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Ugyldig input\";\n            case \"invalid_element\":\n                return `Ugyldig verdi i ${issue.origin}`;\n            default:\n                return `Ugyldig input`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"harf\", verb: \"olmalıdır\" },\n        file: { unit: \"bayt\", verb: \"olmalıdır\" },\n        array: { unit: \"unsur\", verb: \"olmalıdır\" },\n        set: { unit: \"unsur\", verb: \"olmalıdır\" },\n        map: { unit: \"unsur\", verb: \"olmalıdır\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"giren\",\n        email: \"epostagâh\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO hengâmı\",\n        date: \"ISO tarihi\",\n        time: \"ISO zamanı\",\n        duration: \"ISO müddeti\",\n        ipv4: \"IPv4 nişânı\",\n        ipv6: \"IPv6 nişânı\",\n        mac: \"MAC nişânı\",\n        cidrv4: \"IPv4 menzili\",\n        cidrv6: \"IPv6 menzili\",\n        base64: \"base64-şifreli metin\",\n        base64url: \"base64url-şifreli metin\",\n        json_string: \"JSON metin\",\n        e164: \"E.164 sayısı\",\n        credit_card: \"i'tibâr kartı numarası\",\n        currency_code: \"para birimi kodu\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"giren\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"numara\",\n        array: \"saf\",\n        null: \"gayb\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Fâsit giren: umulan instanceof ${issue.expected}, alınan ${received}`;\n                }\n                return `Fâsit giren: umulan ${expected}, alınan ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Fâsit giren: umulan ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Fâsit tercih: mûteberler ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Fazla büyük: ${issue.origin ?? \"value\"}, ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elements\"} sahip olmalıydı.`;\n                return `Fazla büyük: ${issue.origin ?? \"value\"}, ${adj}${issue.maximum.toString()} olmalıydı.`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Fazla küçük: ${issue.origin}, ${adj}${issue.minimum.toString()} ${sizing.unit} sahip olmalıydı.`;\n                }\n                return `Fazla küçük: ${issue.origin}, ${adj}${issue.minimum.toString()} olmalıydı.`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Fâsit metin: \"${_issue.prefix}\" ile başlamalı.`;\n                if (_issue.format === \"ends_with\")\n                    return `Fâsit metin: \"${_issue.suffix}\" ile bitmeli.`;\n                if (_issue.format === \"includes\")\n                    return `Fâsit metin: \"${_issue.includes}\" ihtivâ etmeli.`;\n                if (_issue.format === \"regex\")\n                    return `Fâsit metin: ${_issue.pattern} nakşına uymalı.`;\n                return `Fâsit ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Fâsit sayı: ${issue.divisor} katı olmalıydı.`;\n            case \"unrecognized_keys\":\n                return `Tanınmayan anahtar ${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} için tanınmayan anahtar var.`;\n            case \"invalid_union\":\n                return \"Giren tanınamadı.\";\n            case \"invalid_element\":\n                return `${issue.origin} için tanınmayan kıymet var.`;\n            default:\n                return `Kıymet tanınamadı.`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"توکي\", verb: \"ولري\" },\n        file: { unit: \"بایټس\", verb: \"ولري\" },\n        array: { unit: \"توکي\", verb: \"ولري\" },\n        set: { unit: \"توکي\", verb: \"ولري\" },\n        map: { unit: \"توکي\", verb: \"ولري\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ورودي\",\n        email: \"بریښنالیک\",\n        url: \"یو آر ال\",\n        emoji: \"ایموجي\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"نیټه او وخت\",\n        date: \"نېټه\",\n        time: \"وخت\",\n        duration: \"موده\",\n        ipv4: \"د IPv4 پته\",\n        ipv6: \"د IPv6 پته\",\n        mac: \"د MAC پته\",\n        cidrv4: \"د IPv4 ساحه\",\n        cidrv6: \"د IPv6 ساحه\",\n        base64: \"base64-encoded متن\",\n        base64url: \"base64url-encoded متن\",\n        json_string: \"JSON متن\",\n        e164: \"د E.164 شمېره\",\n        credit_card: \"د کریډیټ کارت شمیره\",\n        currency_code: \"د اسعارو کوډ\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ورودي\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"عدد\",\n        array: \"ارې\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `ناسم ورودي: باید instanceof ${issue.expected} وای, مګر ${received} ترلاسه شو`;\n                }\n                return `ناسم ورودي: باید ${expected} وای, مګر ${received} ترلاسه شو`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1) {\n                    return `ناسم ورودي: باید ${util.stringifyPrimitive(issue.values[0])} وای`;\n                }\n                return `ناسم انتخاب: باید یو له ${util.joinValues(issue.values, \"|\")} څخه وای`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `ډیر لوی: ${issue.origin ?? \"ارزښت\"} باید ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"عنصرونه\"} ولري`;\n                }\n                return `ډیر لوی: ${issue.origin ?? \"ارزښت\"} باید ${adj}${issue.maximum.toString()} وي`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `ډیر کوچنی: ${issue.origin} باید ${adj}${issue.minimum.toString()} ${sizing.unit} ولري`;\n                }\n                return `ډیر کوچنی: ${issue.origin} باید ${adj}${issue.minimum.toString()} وي`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `ناسم متن: باید د \"${_issue.prefix}\" سره پیل شي`;\n                }\n                if (_issue.format === \"ends_with\") {\n                    return `ناسم متن: باید د \"${_issue.suffix}\" سره پای ته ورسيږي`;\n                }\n                if (_issue.format === \"includes\") {\n                    return `ناسم متن: باید \"${_issue.includes}\" ولري`;\n                }\n                if (_issue.format === \"regex\") {\n                    return `ناسم متن: باید د ${_issue.pattern} سره مطابقت ولري`;\n                }\n                return `${FormatDictionary[_issue.format] ?? issue.format} ناسم دی`;\n            }\n            case \"not_multiple_of\":\n                return `ناسم عدد: باید د ${issue.divisor} مضرب وي`;\n            case \"unrecognized_keys\":\n                return `ناسم ${issue.keys.length > 1 ? \"کلیډونه\" : \"کلیډ\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `ناسم کلیډ په ${issue.origin} کې`;\n            case \"invalid_union\":\n                return `ناسمه ورودي`;\n            case \"invalid_element\":\n                return `ناسم عنصر په ${issue.origin} کې`;\n            default:\n                return `ناسمه ورودي`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"znaków\", verb: \"mieć\" },\n        file: { unit: \"bajtów\", verb: \"mieć\" },\n        array: { unit: \"elementów\", verb: \"mieć\" },\n        set: { unit: \"elementów\", verb: \"mieć\" },\n        map: { unit: \"elementów\", verb: \"mieć\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"wyrażenie\",\n        email: \"adres email\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"data i godzina w formacie ISO\",\n        date: \"data w formacie ISO\",\n        time: \"godzina w formacie ISO\",\n        duration: \"czas trwania ISO\",\n        ipv4: \"adres IPv4\",\n        ipv6: \"adres IPv6\",\n        mac: \"adres MAC\",\n        cidrv4: \"zakres IPv4\",\n        cidrv6: \"zakres IPv6\",\n        base64: \"ciąg znaków zakodowany w formacie base64\",\n        base64url: \"ciąg znaków zakodowany w formacie base64url\",\n        json_string: \"ciąg znaków w formacie JSON\",\n        e164: \"liczba E.164\",\n        credit_card: \"numer karty kredytowej\",\n        currency_code: \"kod waluty\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"wejście\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"liczba\",\n        array: \"tablica\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Nieprawidłowe dane wejściowe: oczekiwano instanceof ${issue.expected}, otrzymano ${received}`;\n                }\n                return `Nieprawidłowe dane wejściowe: oczekiwano ${expected}, otrzymano ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Nieprawidłowe dane wejściowe: oczekiwano ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Za duża wartość: oczekiwano, że ${issue.origin ?? \"wartość\"} będzie mieć ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elementów\"}`;\n                }\n                return `Zbyt duż(y/a/e): oczekiwano, że ${issue.origin ?? \"wartość\"} będzie wynosić ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Za mała wartość: oczekiwano, że ${issue.origin ?? \"wartość\"} będzie mieć ${adj}${issue.minimum.toString()} ${sizing.unit ?? \"elementów\"}`;\n                }\n                return `Zbyt mał(y/a/e): oczekiwano, że ${issue.origin ?? \"wartość\"} będzie wynosić ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Nieprawidłowy ciąg znaków: musi zaczynać się od \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Nieprawidłowy ciąg znaków: musi kończyć się na \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Nieprawidłowy ciąg znaków: musi zawierać \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${_issue.pattern}`;\n                return `Nieprawidłow(y/a/e) ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Nieprawidłowa liczba: musi być wielokrotnością ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Nierozpoznane klucze${issue.keys.length > 1 ? \"s\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Nieprawidłowy klucz w ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Nieprawidłowe dane wejściowe\";\n            case \"invalid_element\":\n                return `Nieprawidłowa wartość w ${issue.origin}`;\n            default:\n                return `Nieprawidłowe dane wejściowe`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caracteres\" },\n        file: { unit: \"bytes\" },\n        array: { unit: \"elementos\" },\n        set: { unit: \"elementos\" },\n        map: { unit: \"entradas\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"a entrada\",\n        email: \"o endereço de e-mail\",\n        url: \"o URL\",\n        emoji: \"o emoji\",\n        uuid: \"o UUID\",\n        uuidv4: \"o UUIDv4\",\n        uuidv6: \"o UUIDv6\",\n        nanoid: \"o nanoid\",\n        guid: \"o GUID\",\n        cuid: \"o cuid\",\n        cuid2: \"o cuid2\",\n        ulid: \"o ULID\",\n        xid: \"o XID\",\n        ksuid: \"o KSUID\",\n        datetime: \"a data e hora ISO\",\n        date: \"a data ISO\",\n        time: \"a hora ISO\",\n        duration: \"a duração ISO\",\n        ipv4: \"o endereço IPv4\",\n        ipv6: \"o endereço IPv6\",\n        mac: \"o endereço MAC\",\n        cidrv4: \"o intervalo de endereços IPv4\",\n        cidrv6: \"o intervalo de endereços IPv6\",\n        base64: \"o texto codificado em base64\",\n        base64url: \"o texto codificado em base64url\",\n        json_string: \"o texto JSON\",\n        e164: \"o número E.164\",\n        credit_card: \"o número de cartão de crédito\",\n        currency_code: \"o código de moeda\",\n        iban: \"o IBAN\",\n        jwt: \"o JWT\",\n        template_literal: \"a entrada\",\n    };\n    const Gender = {\n        masculine: { definite: \"o\", indefinite: \"um\" },\n        feminine: { definite: \"a\", indefinite: \"uma\" },\n    };\n    const TypeDictionary = {\n        string: { name: \"texto\", articles: Gender.masculine },\n        number: { name: \"número\", articles: Gender.masculine },\n        int: { name: \"número inteiro\", articles: Gender.masculine },\n        boolean: { name: \"valor booleano\", articles: Gender.masculine },\n        bigint: { name: \"número bigint\", articles: Gender.masculine },\n        symbol: { name: \"símbolo\", articles: Gender.masculine },\n        undefined: { name: 'valor \"undefined\"', articles: Gender.masculine },\n        null: { name: 'valor \"nulo\"', articles: Gender.masculine },\n        never: { name: 'valor \"never\"', articles: Gender.masculine },\n        void: { name: 'valor \"void\"', articles: Gender.masculine },\n        date: { name: \"data\", articles: Gender.feminine },\n        array: { name: \"vetor\", articles: Gender.masculine },\n        object: { name: \"objeto\", articles: Gender.masculine },\n        tuple: { name: \"tuplo\", articles: Gender.masculine },\n        record: { name: \"registo\", articles: Gender.masculine },\n        map: { name: \"mapa\", articles: Gender.masculine },\n        set: { name: \"conjunto\", articles: Gender.masculine },\n        file: { name: \"ficheiro\", articles: Gender.masculine },\n        nonoptional: { name: \"valor não opcional\", articles: Gender.masculine },\n        nan: { name: 'valor \"NaN\"', articles: Gender.masculine }, // Compatibility: \"nan\" -> \"NaN\" for display\n        function: { name: \"função\", articles: Gender.feminine },\n    };\n    function translateOriginWithArticle(type, articleType) {\n        const translatedValue = TypeDictionary[type] ?? { name: `valor \"${type}\"`, articles: Gender.masculine };\n        return `${translatedValue.articles[articleType]} ${translatedValue.name}`;\n    }\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = translateOriginWithArticle(issue.expected, \"indefinite\");\n                const receivedType = util.parsedType(issue.input);\n                const received = translateOriginWithArticle(receivedType, \"indefinite\");\n                return `Entrada inválida: esperava ${expected}, recebeu ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Entrada inválida: esperava ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Opção inválida: esperava uma das seguintes opções: ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Demasiado grande: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} tivesse ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"elementos\"}`;\n                return `Demasiado grande: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} fosse ${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Demasiado pequeno: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} tivesse ${adj} ${issue.minimum.toString()} ${sizing.unit ?? \"elementos\"}`;\n                }\n                return `Demasiado pequeno: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} fosse ${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Texto inválido: deve começar por \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Texto inválido: deve terminar em \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Texto inválido: deve incluir \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;\n                return `Formato d${FormatDictionary[_issue.format] ?? issue.format} inválido`;\n            }\n            case \"not_multiple_of\":\n                return `Número inválido: deve ser múltiplo de ${issue.divisor}`;\n            case \"unrecognized_keys\": {\n                const plural = issue.keys.length > 1 ? \"s\" : \"\";\n                return `Chave${plural} inválida${plural}: ${util.joinValues(issue.keys, \", \")}`;\n            }\n            case \"invalid_key\":\n                return `Entrada inválida n${translateOriginWithArticle(issue.origin, \"definite\")}`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `Valor de discriminação inválido. Esperava ${opts}`;\n                }\n                return \"Entrada inválida\";\n            case \"invalid_element\":\n                return `Entrada inválida n${translateOriginWithArticle(issue.origin, \"definite\")}`;\n            default:\n                return `Entrada inválida`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caracteres\" },\n        file: { unit: \"bytes\" },\n        array: { unit: \"elementos\" },\n        set: { unit: \"elementos\" },\n        map: { unit: \"entradas\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"a entrada\",\n        email: \"o endereço de e-mail\",\n        url: \"o URL\",\n        emoji: \"o emoji\",\n        uuid: \"o UUID\",\n        uuidv4: \"o UUIDv4\",\n        uuidv6: \"o UUIDv6\",\n        nanoid: \"o nanoid\",\n        guid: \"o GUID\",\n        cuid: \"o cuid\",\n        cuid2: \"o cuid2\",\n        ulid: \"o ULID\",\n        xid: \"o XID\",\n        ksuid: \"o KSUID\",\n        datetime: \"a data e hora ISO\",\n        date: \"a data ISO\",\n        time: \"a hora ISO\",\n        duration: \"a duração ISO\",\n        ipv4: \"o endereço IPv4\",\n        ipv6: \"o endereço IPv6\",\n        mac: \"o endereço MAC\",\n        cidrv4: \"a faixa de endereços IPv4\",\n        cidrv6: \"a faixa de endereços IPv6\",\n        base64: \"o texto codificado em base64\",\n        base64url: \"o texto codificado em base64url\",\n        json_string: \"o texto JSON\",\n        e164: \"o número E.164\",\n        credit_card: \"o número de cartão de crédito\",\n        currency_code: \"o código de moeda\",\n        iban: \"o IBAN\",\n        jwt: \"o JWT\",\n        template_literal: \"a entrada\",\n    };\n    const Gender = {\n        masculine: { definite: \"o\", indefinite: \"um\" },\n        feminine: { definite: \"a\", indefinite: \"uma\" },\n    };\n    const TypeDictionary = {\n        string: { name: \"texto\", articles: Gender.masculine },\n        number: { name: \"número\", articles: Gender.masculine },\n        int: { name: \"número inteiro\", articles: Gender.masculine },\n        boolean: { name: \"valor booleano\", articles: Gender.masculine },\n        bigint: { name: \"número bigint\", articles: Gender.masculine },\n        symbol: { name: \"símbolo\", articles: Gender.masculine },\n        undefined: { name: 'valor \"undefined\"', articles: Gender.masculine },\n        null: { name: 'valor \"nulo\"', articles: Gender.masculine },\n        never: { name: 'valor \"never\"', articles: Gender.masculine },\n        void: { name: 'valor \"void\"', articles: Gender.masculine },\n        date: { name: \"data\", articles: Gender.feminine },\n        array: { name: \"vetor\", articles: Gender.masculine },\n        object: { name: \"objeto\", articles: Gender.masculine },\n        tuple: { name: \"tupla\", articles: Gender.feminine },\n        record: { name: \"registro\", articles: Gender.masculine },\n        map: { name: \"mapa\", articles: Gender.masculine },\n        set: { name: \"conjunto\", articles: Gender.masculine },\n        file: { name: \"arquivo\", articles: Gender.masculine },\n        nonoptional: { name: \"valor não opcional\", articles: Gender.masculine },\n        nan: { name: 'valor \"NaN\"', articles: Gender.masculine }, // Compatibility: \"nan\" -> \"NaN\" for display\n        function: { name: \"função\", articles: Gender.feminine },\n    };\n    function translateOriginWithArticle(type, articleType) {\n        const translatedValue = TypeDictionary[type] ?? { name: `valor \"${type}\"`, articles: Gender.masculine };\n        return `${translatedValue.articles[articleType]} ${translatedValue.name}`;\n    }\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = translateOriginWithArticle(issue.expected, \"indefinite\");\n                const receivedType = util.parsedType(issue.input);\n                const received = translateOriginWithArticle(receivedType, \"indefinite\");\n                return `Entrada inválida: esperava ${expected}, recebeu ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Entrada inválida: esperava ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Opção inválida: esperava uma das seguintes opções: ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Grande demais: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} tivesse ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"elementos\"}`;\n                return `Grande demais: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} fosse ${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Pequeno demais: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} tivesse ${adj} ${issue.minimum.toString()} ${sizing.unit ?? \"elementos\"}`;\n                }\n                return `Pequeno demais: esperava que ${translateOriginWithArticle(issue.origin, \"definite\")} fosse ${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Texto inválido: deve começar com \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Texto inválido: deve terminar com \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Texto inválido: deve incluir \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;\n                return `Formato d${FormatDictionary[_issue.format] ?? issue.format} inválido`;\n            }\n            case \"not_multiple_of\":\n                return `Número inválido: deve ser múltiplo de ${issue.divisor}`;\n            case \"unrecognized_keys\": {\n                const plural = issue.keys.length > 1 ? \"s\" : \"\";\n                return `Chave${plural} inválida${plural}: ${util.joinValues(issue.keys, \", \")}`;\n            }\n            case \"invalid_key\":\n                return `Entrada inválida n${translateOriginWithArticle(issue.origin, \"definite\")}`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `Valor de discriminação inválido. Esperava ${opts}`;\n                }\n                return \"Entrada inválida\";\n            case \"invalid_element\":\n                return `Entrada inválida n${translateOriginWithArticle(issue.origin, \"definite\")}`;\n            default:\n                return `Entrada inválida`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"caractere\", verb: \"să aibă\" },\n        file: { unit: \"octeți\", verb: \"să aibă\" },\n        array: { unit: \"elemente\", verb: \"să aibă\" },\n        set: { unit: \"elemente\", verb: \"să aibă\" },\n        map: { unit: \"intrări\", verb: \"să aibă\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"intrare\",\n        email: \"adresă de email\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"dată și oră ISO\",\n        date: \"dată ISO\",\n        time: \"oră ISO\",\n        duration: \"durată ISO\",\n        ipv4: \"adresă IPv4\",\n        ipv6: \"adresă IPv6\",\n        mac: \"adresă MAC\",\n        cidrv4: \"interval IPv4\",\n        cidrv6: \"interval IPv6\",\n        base64: \"șir codat base64\",\n        base64url: \"șir codat base64url\",\n        json_string: \"șir JSON\",\n        e164: \"număr E.164\",\n        credit_card: \"număr de card de credit\",\n        currency_code: \"cod valutar\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"intrare\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        string: \"șir\",\n        number: \"număr\",\n        boolean: \"boolean\",\n        function: \"funcție\",\n        array: \"matrice\",\n        object: \"obiect\",\n        undefined: \"nedefinit\",\n        symbol: \"simbol\",\n        bigint: \"număr mare\",\n        void: \"void\",\n        never: \"never\",\n        map: \"hartă\",\n        set: \"set\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `Intrare invalidă: așteptat ${expected}, primit ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Intrare invalidă: așteptat ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Opțiune invalidă: așteptat una dintre ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Prea mare: așteptat ca ${issue.origin ?? \"valoarea\"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elemente\"}`;\n                return `Prea mare: așteptat ca ${issue.origin ?? \"valoarea\"} să fie ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Prea mic: așteptat ca ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Prea mic: așteptat ca ${issue.origin} să fie ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Șir invalid: trebuie să înceapă cu \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Șir invalid: trebuie să se termine cu \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Șir invalid: trebuie să includă \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;\n                return `Format invalid: ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Număr invalid: trebuie să fie multiplu de ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Chei nerecunoscute: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Cheie invalidă în ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Intrare invalidă\";\n            case \"invalid_element\":\n                return `Valoare invalidă în ${issue.origin}`;\n            default:\n                return `Intrare invalidă`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nfunction getRussianPlural(count, one, few, many) {\n    const absCount = Math.abs(count);\n    const lastDigit = absCount % 10;\n    const lastTwoDigits = absCount % 100;\n    if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {\n        return many;\n    }\n    if (lastDigit === 1) {\n        return one;\n    }\n    if (lastDigit >= 2 && lastDigit <= 4) {\n        return few;\n    }\n    return many;\n}\nconst error = () => {\n    const Sizable = {\n        string: {\n            unit: {\n                one: \"символ\",\n                few: \"символа\",\n                many: \"символов\",\n            },\n            verb: \"иметь\",\n        },\n        file: {\n            unit: {\n                one: \"байт\",\n                few: \"байта\",\n                many: \"байт\",\n            },\n            verb: \"иметь\",\n        },\n        array: {\n            unit: {\n                one: \"элемент\",\n                few: \"элемента\",\n                many: \"элементов\",\n            },\n            verb: \"иметь\",\n        },\n        set: {\n            unit: {\n                one: \"элемент\",\n                few: \"элемента\",\n                many: \"элементов\",\n            },\n            verb: \"иметь\",\n        },\n        map: {\n            unit: {\n                one: \"элемент\",\n                few: \"элемента\",\n                many: \"элементов\",\n            },\n            verb: \"иметь\",\n        },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ввод\",\n        email: \"email адрес\",\n        url: \"URL\",\n        emoji: \"эмодзи\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO дата и время\",\n        date: \"ISO дата\",\n        time: \"ISO время\",\n        duration: \"ISO длительность\",\n        ipv4: \"IPv4 адрес\",\n        ipv6: \"IPv6 адрес\",\n        mac: \"MAC адрес\",\n        cidrv4: \"IPv4 диапазон\",\n        cidrv6: \"IPv6 диапазон\",\n        base64: \"строка в формате base64\",\n        base64url: \"строка в формате base64url\",\n        json_string: \"JSON строка\",\n        e164: \"номер E.164\",\n        credit_card: \"номер кредитной карты\",\n        currency_code: \"код валюты\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ввод\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"число\",\n        array: \"массив\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Неверный ввод: ожидалось instanceof ${issue.expected}, получено ${received}`;\n                }\n                return `Неверный ввод: ожидалось ${expected}, получено ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Неверный ввод: ожидалось ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Неверный вариант: ожидалось одно из ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    const maxValue = Number(issue.maximum);\n                    const unit = getRussianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n                    return `Слишком большое значение: ожидалось, что ${issue.origin ?? \"значение\"} будет иметь ${adj}${issue.maximum.toString()} ${unit}`;\n                }\n                return `Слишком большое значение: ожидалось, что ${issue.origin ?? \"значение\"} будет ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    const minValue = Number(issue.minimum);\n                    const unit = getRussianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n                    return `Слишком маленькое значение: ожидалось, что ${issue.origin} будет иметь ${adj}${issue.minimum.toString()} ${unit}`;\n                }\n                return `Слишком маленькое значение: ожидалось, что ${issue.origin} будет ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Неверная строка: должна начинаться с \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Неверная строка: должна заканчиваться на \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Неверная строка: должна содержать \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Неверная строка: должна соответствовать шаблону ${_issue.pattern}`;\n                return `Неверный ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Неверное число: должно быть кратным ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Нераспознанн${issue.keys.length > 1 ? \"ые\" : \"ый\"} ключ${issue.keys.length > 1 ? \"и\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Неверный ключ в ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Неверные входные данные\";\n            case \"invalid_element\":\n                return `Неверное значение в ${issue.origin}`;\n            default:\n                return `Неверные входные данные`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"znakov\", verb: \"mať\" },\n        file: { unit: \"bajtov\", verb: \"mať\" },\n        array: { unit: \"prvkov\", verb: \"mať\" },\n        set: { unit: \"prvkov\", verb: \"mať\" },\n        map: { unit: \"položiek\", verb: \"mať\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"regulárny výraz\",\n        email: \"e-mailová adresa\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"dátum a čas vo formáte ISO\",\n        date: \"dátum vo formáte ISO\",\n        time: \"čas vo formáte ISO\",\n        duration: \"doba trvania ISO\",\n        ipv4: \"IPv4 adresa\",\n        ipv6: \"IPv6 adresa\",\n        mac: \"MAC adresa\",\n        cidrv4: \"rozsah IPv4\",\n        cidrv6: \"rozsah IPv6\",\n        base64: \"reťazec zakódovaný vo formáte base64\",\n        base64url: \"reťazec zakódovaný vo formáte base64url\",\n        json_string: \"reťazec vo formáte JSON\",\n        e164: \"číslo E.164\",\n        credit_card: \"číslo kreditnej karty\",\n        currency_code: \"kód meny\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"vstup\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"číslo\",\n        string: \"reťazec\",\n        function: \"funkcia\",\n        array: \"pole\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Neplatný vstup: očakávané instanceof ${issue.expected}, obdržané ${received}`;\n                }\n                return `Neplatný vstup: očakávané ${expected}, obdržané ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Neplatný vstup: očakávané ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Neplatný vstup: očakávaná jedna z hodnôt ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Hodnota je príliš veľká: ${issue.origin ?? \"hodnota\"} musí mať ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"prvkov\"}`;\n                }\n                return `Hodnota je príliš veľká: ${issue.origin ?? \"hodnota\"} musí byť ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Hodnota je príliš malá: ${issue.origin ?? \"hodnota\"} musí mať ${adj}${issue.minimum.toString()} ${sizing.unit ?? \"prvkov\"}`;\n                }\n                return `Hodnota je príliš malá: ${issue.origin ?? \"hodnota\"} musí byť ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Neplatný reťazec: musí začínať na \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Neplatný reťazec: musí končiť na \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Neplatný reťazec: musí obsahovať \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Neplatný reťazec: musí zodpovedať vzoru ${_issue.pattern}`;\n                return `Neplatný formát ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Neplatné číslo: musí byť násobkom ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Neznáme klúče: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Neplatný klúč v ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Neplatný vstup\";\n            case \"invalid_element\":\n                return `Neplatná hodnota v ${issue.origin}`;\n            default:\n                return `Neplatný vstup`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"znakov\", verb: \"imeti\" },\n        file: { unit: \"bajtov\", verb: \"imeti\" },\n        array: { unit: \"elementov\", verb: \"imeti\" },\n        set: { unit: \"elementov\", verb: \"imeti\" },\n        map: { unit: \"elementov\", verb: \"imeti\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"vnos\",\n        email: \"e-poštni naslov\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO datum in čas\",\n        date: \"ISO datum\",\n        time: \"ISO čas\",\n        duration: \"ISO trajanje\",\n        ipv4: \"IPv4 naslov\",\n        ipv6: \"IPv6 naslov\",\n        mac: \"MAC naslov\",\n        cidrv4: \"obseg IPv4\",\n        cidrv6: \"obseg IPv6\",\n        base64: \"base64 kodiran niz\",\n        base64url: \"base64url kodiran niz\",\n        json_string: \"JSON niz\",\n        e164: \"E.164 številka\",\n        credit_card: \"številka kreditne kartice\",\n        currency_code: \"koda valute\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"vnos\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"število\",\n        array: \"tabela\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Neveljaven vnos: pričakovano instanceof ${issue.expected}, prejeto ${received}`;\n                }\n                return `Neveljaven vnos: pričakovano ${expected}, prejeto ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Neveljaven vnos: pričakovano ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Neveljavna možnost: pričakovano eno izmed ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Preveliko: pričakovano, da bo ${issue.origin ?? \"vrednost\"} imelo ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"elementov\"}`;\n                return `Preveliko: pričakovano, da bo ${issue.origin ?? \"vrednost\"} ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Premajhno: pričakovano, da bo ${issue.origin} imelo ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Premajhno: pričakovano, da bo ${issue.origin} ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Neveljaven niz: mora se začeti z \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Neveljaven niz: mora se končati z \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Neveljaven niz: mora vsebovati \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`;\n                return `Neveljaven ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Neveljavno število: mora biti večkratnik ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Neprepoznan${issue.keys.length > 1 ? \"i ključi\" : \" ključ\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Neveljaven ključ v ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Neveljaven vnos\";\n            case \"invalid_element\":\n                return `Neveljavna vrednost v ${issue.origin}`;\n            default:\n                return \"Neveljaven vnos\";\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"tecken\", verb: \"att ha\" },\n        file: { unit: \"bytes\", verb: \"att ha\" },\n        array: { unit: \"objekt\", verb: \"att innehålla\" },\n        set: { unit: \"objekt\", verb: \"att innehålla\" },\n        map: { unit: \"objekt\", verb: \"att innehålla\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"reguljärt uttryck\",\n        email: \"e-postadress\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO-datum och tid\",\n        date: \"ISO-datum\",\n        time: \"ISO-tid\",\n        duration: \"ISO-varaktighet\",\n        ipv4: \"IPv4-adress\",\n        ipv6: \"IPv6-adress\",\n        mac: \"MAC-adress\",\n        cidrv4: \"IPv4-spektrum\",\n        cidrv6: \"IPv6-spektrum\",\n        base64: \"base64-kodad sträng\",\n        base64url: \"base64url-kodad sträng\",\n        json_string: \"JSON-sträng\",\n        e164: \"E.164-nummer\",\n        credit_card: \"kreditkortsnummer\",\n        currency_code: \"valutakod\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"mall-literal\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"antal\",\n        array: \"lista\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Ogiltig inmatning: förväntat instanceof ${issue.expected}, fick ${received}`;\n                }\n                return `Ogiltig inmatning: förväntat ${expected}, fick ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Ogiltig inmatning: förväntat ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Ogiltigt val: förväntade en av ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `För stor(t): förväntade ${issue.origin ?? \"värdet\"} att ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"element\"}`;\n                }\n                return `För stor(t): förväntat ${issue.origin ?? \"värdet\"} att ha ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `För lite(t): förväntade ${issue.origin ?? \"värdet\"} att ha ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `För lite(t): förväntade ${issue.origin ?? \"värdet\"} att ha ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `Ogiltig sträng: måste börja med \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `Ogiltig sträng: måste sluta med \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Ogiltig sträng: måste innehålla \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Ogiltig sträng: måste matcha mönstret \"${_issue.pattern}\"`;\n                return `Ogiltig(t) ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Ogiltigt tal: måste vara en multipel av ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `${issue.keys.length > 1 ? \"Okända nycklar\" : \"Okänd nyckel\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Ogiltig nyckel i ${issue.origin ?? \"värdet\"}`;\n            case \"invalid_union\":\n                return \"Ogiltig input\";\n            case \"invalid_element\":\n                return `Ogiltigt värde i ${issue.origin ?? \"värdet\"}`;\n            default:\n                return `Ogiltig input`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"எழுத்துக்கள்\", verb: \"கொண்டிருக்க வேண்டும்\" },\n        file: { unit: \"பைட்டுகள்\", verb: \"கொண்டிருக்க வேண்டும்\" },\n        array: { unit: \"உறுப்புகள்\", verb: \"கொண்டிருக்க வேண்டும்\" },\n        set: { unit: \"உறுப்புகள்\", verb: \"கொண்டிருக்க வேண்டும்\" },\n        map: { unit: \"உறுப்புகள்\", verb: \"கொண்டிருக்க வேண்டும்\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"உள்ளீடு\",\n        email: \"மின்னஞ்சல் முகவரி\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO தேதி நேரம்\",\n        date: \"ISO தேதி\",\n        time: \"ISO நேரம்\",\n        duration: \"ISO கால அளவு\",\n        ipv4: \"IPv4 முகவரி\",\n        ipv6: \"IPv6 முகவரி\",\n        mac: \"MAC முகவரி\",\n        cidrv4: \"IPv4 வரம்பு\",\n        cidrv6: \"IPv6 வரம்பு\",\n        base64: \"base64-encoded சரம்\",\n        base64url: \"base64url-encoded சரம்\",\n        json_string: \"JSON சரம்\",\n        e164: \"E.164 எண்\",\n        credit_card: \"கடன் அட்டை எண்\",\n        currency_code: \"நாணயக் குறியீடு\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"input\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"எண்\",\n        array: \"அணி\",\n        null: \"வெறுமை\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${issue.expected}, பெறப்பட்டது ${received}`;\n                }\n                return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${expected}, பெறப்பட்டது ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${util.stringifyPrimitive(issue.values[0])}`;\n                return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${util.joinValues(issue.values, \"|\")} இல் ஒன்று`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue.origin ?? \"மதிப்பு\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"உறுப்புகள்\"} ஆக இருக்க வேண்டும்`;\n                }\n                return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue.origin ?? \"மதிப்பு\"} ${adj}${issue.maximum.toString()} ஆக இருக்க வேண்டும்`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} ஆக இருக்க வேண்டும்`; //\n                }\n                return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue.origin} ${adj}${issue.minimum.toString()} ஆக இருக்க வேண்டும்`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `தவறான சரம்: \"${_issue.prefix}\" இல் தொடங்க வேண்டும்`;\n                if (_issue.format === \"ends_with\")\n                    return `தவறான சரம்: \"${_issue.suffix}\" இல் முடிவடைய வேண்டும்`;\n                if (_issue.format === \"includes\")\n                    return `தவறான சரம்: \"${_issue.includes}\" ஐ உள்ளடக்க வேண்டும்`;\n                if (_issue.format === \"regex\")\n                    return `தவறான சரம்: ${_issue.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;\n                return `தவறான ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `தவறான எண்: ${issue.divisor} இன் பலமாக இருக்க வேண்டும்`;\n            case \"unrecognized_keys\":\n                return `அடையாளம் தெரியாத விசை${issue.keys.length > 1 ? \"கள்\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} இல் தவறான விசை`;\n            case \"invalid_union\":\n                return \"தவறான உள்ளீடு\";\n            case \"invalid_element\":\n                return `${issue.origin} இல் தவறான மதிப்பு`;\n            default:\n                return `தவறான உள்ளீடு`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    // singular units after numerals in Tajik\n    const Sizable = {\n        string: { unit: \"аломат\", verb: \"дошта бошад\" },\n        file: { unit: \"байт\", verb: \"дошта бошад\" },\n        array: { unit: \"унсур\", verb: \"дошта бошад\" },\n        set: { unit: \"унсур\", verb: \"дошта бошад\" },\n        map: { unit: \"сабт\", verb: \"дошта бошад\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"вуруд\",\n        email: \"суроғаи email\",\n        url: \"URL\",\n        emoji: \"эмоҷи\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"санаву вақти ISO\",\n        date: \"санаи ISO\",\n        time: \"вақти ISO\",\n        duration: \"давомнокии ISO\",\n        ipv4: \"суроғаи IPv4\",\n        ipv6: \"суроғаи IPv6\",\n        mac: \"суроғаи MAC\",\n        cidrv4: \"маҳдудаи IPv4\",\n        cidrv6: \"маҳдудаи IPv6\",\n        base64: \"сатри дар формати base64\",\n        base64url: \"сатри дар формати base64url\",\n        json_string: \"сатри JSON\",\n        e164: \"рақами E.164\",\n        credit_card: \"рақами корти кредитӣ\",\n        currency_code: \"рамзи асъор\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"вуруд\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"рақам\",\n        string: \"сатр\",\n        array: \"массив\",\n        object: \"объект\",\n        date: \"сана\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `Вуруди нодуруст: ${expected} интизор мерафт, ${received} гирифта шуд`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Вуруди нодуруст: ${util.stringifyPrimitive(issue.values[0])} интизор мерафт`;\n                return `Интихоби нодуруст: яке аз ${util.joinValues(issue.values, \"|\")} интизор мерафт`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Хеле калон: ${issue.origin ?? \"қимат\"} бояд ${adj}${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;\n                return `Хеле калон: ${issue.origin ?? \"қимат\"} бояд ${adj}${issue.maximum.toString()} бошад`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;\n                return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} бошад`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Сатри нодуруст: бояд бо \"${_issue.prefix}\" оғоз шавад`;\n                if (_issue.format === \"ends_with\")\n                    return `Сатри нодуруст: бояд бо \"${_issue.suffix}\" анҷом ёбад`;\n                if (_issue.format === \"includes\")\n                    return `Сатри нодуруст: бояд \"${_issue.includes}\"-ро дар бар гирад`;\n                if (_issue.format === \"regex\")\n                    return `Сатри нодуруст: бояд ба намунаи ${_issue.pattern} мувофиқат кунад`;\n                return `${FormatDictionary[_issue.format] ?? issue.format}-и нодуруст`;\n            }\n            case \"not_multiple_of\":\n                return `Рақами нодуруст: бояд ба ${issue.divisor} бе бақия тақсим шавад`;\n            case \"unrecognized_keys\":\n                return `Калид${issue.keys.length > 1 ? \"ҳои\" : \"и\"} номаълум: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Калиди нодуруст дар ${issue.origin}`;\n            case \"invalid_union\":\n                if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {\n                    const opts = issue.options.map((o) => `'${o}'`).join(\" | \");\n                    return `Қимати нодурусти дискриминатор: ${opts} интизор мерафт`;\n                }\n                return \"Вуруди нодуруст\";\n            case \"invalid_element\":\n                return `Қимати нодуруст дар ${issue.origin}`;\n            default:\n                return `Вуруди нодуруст`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"ตัวอักษร\", verb: \"ควรมี\" },\n        file: { unit: \"ไบต์\", verb: \"ควรมี\" },\n        array: { unit: \"รายการ\", verb: \"ควรมี\" },\n        set: { unit: \"รายการ\", verb: \"ควรมี\" },\n        map: { unit: \"รายการ\", verb: \"ควรมี\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ข้อมูลที่ป้อน\",\n        email: \"ที่อยู่อีเมล\",\n        url: \"URL\",\n        emoji: \"อิโมจิ\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"วันที่เวลาแบบ ISO\",\n        date: \"วันที่แบบ ISO\",\n        time: \"เวลาแบบ ISO\",\n        duration: \"ช่วงเวลาแบบ ISO\",\n        ipv4: \"ที่อยู่ IPv4\",\n        ipv6: \"ที่อยู่ IPv6\",\n        mac: \"ที่อยู่ MAC\",\n        cidrv4: \"ช่วง IP แบบ IPv4\",\n        cidrv6: \"ช่วง IP แบบ IPv6\",\n        base64: \"ข้อความแบบ Base64\",\n        base64url: \"ข้อความแบบ Base64 สำหรับ URL\",\n        json_string: \"ข้อความแบบ JSON\",\n        e164: \"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)\",\n        credit_card: \"หมายเลขบัตรเครดิต\",\n        currency_code: \"รหัสสกุลเงิน\",\n        iban: \"IBAN\",\n        jwt: \"โทเคน JWT\",\n        template_literal: \"ข้อมูลที่ป้อน\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"ตัวเลข\",\n        array: \"อาร์เรย์ (Array)\",\n        null: \"ไม่มีค่า (null)\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${issue.expected} แต่ได้รับ ${received}`;\n                }\n                return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${expected} แต่ได้รับ ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `ค่าไม่ถูกต้อง: ควรเป็น ${util.stringifyPrimitive(issue.values[0])}`;\n                return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"ไม่เกิน\" : \"น้อยกว่า\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `เกินกำหนด: ${issue.origin ?? \"ค่า\"} ควรมี${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"รายการ\"}`;\n                return `เกินกำหนด: ${issue.origin ?? \"ค่า\"} ควรมี${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \"อย่างน้อย\" : \"มากกว่า\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `น้อยกว่ากำหนด: ${issue.origin} ควรมี${adj} ${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `น้อยกว่ากำหนด: ${issue.origin} ควรมี${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย \"${_issue.prefix}\"`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `รูปแบบไม่ถูกต้อง: ข้อความต้องมี \"${_issue.includes}\" อยู่ในข้อความ`;\n                if (_issue.format === \"regex\")\n                    return `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${_issue.pattern}`;\n                return `รูปแบบไม่ถูกต้อง: ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${issue.divisor} ได้ลงตัว`;\n            case \"unrecognized_keys\":\n                return `พบคีย์ที่ไม่รู้จัก: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `คีย์ไม่ถูกต้องใน ${issue.origin}`;\n            case \"invalid_union\":\n                return \"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้\";\n            case \"invalid_element\":\n                return `ข้อมูลไม่ถูกต้องใน ${issue.origin}`;\n            default:\n                return `ข้อมูลไม่ถูกต้อง`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"simwol\", verb: \"bolmaly\" },\n        file: { unit: \"baýt\", verb: \"bolmaly\" },\n        array: { unit: \"elementler\", verb: \"bolmaly\" },\n        set: { unit: \"elementler\", verb: \"bolmaly\" },\n        map: { unit: \"elementler\", verb: \"bolmaly\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"giriş\",\n        email: \"e-poçta salgysy\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO sene we wagt\",\n        date: \"ISO sene\",\n        time: \"ISO wagt\",\n        duration: \"ISO wagt aralygy\",\n        ipv4: \"IPv4 salgysy\",\n        ipv6: \"IPv6 salgysy\",\n        mac: \"MAC salgysy\",\n        cidrv4: \"IPv4 aralygy\",\n        cidrv6: \"IPv6 aralygy\",\n        base64: \"base64 bilen şifrlenen setir\",\n        base64url: \"base64url bilen şifrlenen setir\",\n        json_string: \"JSON setiri\",\n        e164: \"E.164 nomeri\",\n        credit_card: \"kredit kartynyň nomeri\",\n        currency_code: \"walýuta kody\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"şablon\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                return `Nädogry baha: garaşylan ${expected} ýerine ${received} alyndy`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Nädogry baha: ${util.stringifyPrimitive(issue.values[0])} bolmaly`;\n                return `Nädogry saýlaw: aşakdakylardan biri bolmaly: ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Has uly: garaşylýan ${issue.origin ?? \"baha\"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"element\"}`;\n                return `Has uly: garaşylýan ${issue.origin ?? \"baha\"} ${adj} ${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Has kiçi: garaşylýan ${issue.origin} ${adj} ${issue.minimum.toString()} ${sizing.unit}`;\n                return `Has kiçi: garaşylýan ${issue.origin} ${adj} ${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Nädogry setir: \"${_issue.prefix}\" bilen başlamaly`;\n                if (_issue.format === \"ends_with\")\n                    return `Nädogry setir: \"${_issue.suffix}\" bilen gutarmaly`;\n                if (_issue.format === \"includes\")\n                    return `Nädogry setir: \"${_issue.includes}\" saklamaly`;\n                if (_issue.format === \"regex\")\n                    return `Nädogry setir: ${_issue.pattern} nusga laýyk bolmaly`;\n                return `Nädogry ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Nädogry san: ${issue.divisor} bilen galyndysyz bölünmeli`;\n            case \"unrecognized_keys\":\n                return `Tanalmaýan açar${issue.keys.length > 1 ? \"lar\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} içinde nädogry açar`;\n            case \"invalid_union\":\n                return \"Nädogry baha\";\n            case \"invalid_element\":\n                return `${issue.origin} içinde nädogry baha`;\n            default:\n                return `Nädogry baha`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"karakter\", verb: \"olmalı\" },\n        file: { unit: \"bayt\", verb: \"olmalı\" },\n        array: { unit: \"öğe\", verb: \"olmalı\" },\n        set: { unit: \"öğe\", verb: \"olmalı\" },\n        map: { unit: \"öğe\", verb: \"olmalı\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"girdi\",\n        email: \"e-posta adresi\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO tarih ve saat\",\n        date: \"ISO tarih\",\n        time: \"ISO saat\",\n        duration: \"ISO süre\",\n        ipv4: \"IPv4 adresi\",\n        ipv6: \"IPv6 adresi\",\n        mac: \"MAC adresi\",\n        cidrv4: \"IPv4 aralığı\",\n        cidrv6: \"IPv6 aralığı\",\n        base64: \"base64 ile şifrelenmiş metin\",\n        base64url: \"base64url ile şifrelenmiş metin\",\n        json_string: \"JSON dizesi\",\n        e164: \"E.164 sayısı\",\n        credit_card: \"kredi kartı numarası\",\n        currency_code: \"para birimi kodu\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"Şablon dizesi\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Geçersiz değer: beklenen instanceof ${issue.expected}, alınan ${received}`;\n                }\n                return `Geçersiz değer: beklenen ${expected}, alınan ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Geçersiz değer: beklenen ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Çok büyük: beklenen ${issue.origin ?? \"değer\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"öğe\"}`;\n                return `Çok büyük: beklenen ${issue.origin ?? \"değer\"} ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Çok küçük: beklenen ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                return `Çok küçük: beklenen ${issue.origin} ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Geçersiz metin: \"${_issue.prefix}\" ile başlamalı`;\n                if (_issue.format === \"ends_with\")\n                    return `Geçersiz metin: \"${_issue.suffix}\" ile bitmeli`;\n                if (_issue.format === \"includes\")\n                    return `Geçersiz metin: \"${_issue.includes}\" içermeli`;\n                if (_issue.format === \"regex\")\n                    return `Geçersiz metin: ${_issue.pattern} desenine uymalı`;\n                return `Geçersiz ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Geçersiz sayı: ${issue.divisor} ile tam bölünebilmeli`;\n            case \"unrecognized_keys\":\n                return `Tanınmayan anahtar${issue.keys.length > 1 ? \"lar\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} içinde geçersiz anahtar`;\n            case \"invalid_union\":\n                return \"Geçersiz değer\";\n            case \"invalid_element\":\n                return `${issue.origin} içinde geçersiz değer`;\n            default:\n                return `Geçersiz değer`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"символів\", verb: \"матиме\" },\n        file: { unit: \"байтів\", verb: \"матиме\" },\n        array: { unit: \"елементів\", verb: \"матиме\" },\n        set: { unit: \"елементів\", verb: \"матиме\" },\n        map: { unit: \"елементів\", verb: \"матиме\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"вхідні дані\",\n        email: \"адреса електронної пошти\",\n        url: \"URL\",\n        emoji: \"емодзі\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"дата та час ISO\",\n        date: \"дата ISO\",\n        time: \"час ISO\",\n        duration: \"тривалість ISO\",\n        ipv4: \"адреса IPv4\",\n        ipv6: \"адреса IPv6\",\n        mac: \"адреса MAC\",\n        cidrv4: \"діапазон IPv4\",\n        cidrv6: \"діапазон IPv6\",\n        base64: \"рядок у кодуванні base64\",\n        base64url: \"рядок у кодуванні base64url\",\n        json_string: \"рядок JSON\",\n        e164: \"номер E.164\",\n        credit_card: \"номер кредитної картки\",\n        currency_code: \"код валюти\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"вхідні дані\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"число\",\n        array: \"масив\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Неправильні вхідні дані: очікується instanceof ${issue.expected}, отримано ${received}`;\n                }\n                return `Неправильні вхідні дані: очікується ${expected}, отримано ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Неправильні вхідні дані: очікується ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Неправильна опція: очікується одне з ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Занадто велике: очікується, що ${issue.origin ?? \"значення\"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"елементів\"}`;\n                return `Занадто велике: очікується, що ${issue.origin ?? \"значення\"} буде ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Занадто мале: очікується, що ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Занадто мале: очікується, що ${issue.origin} буде ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Неправильний рядок: повинен починатися з \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Неправильний рядок: повинен закінчуватися на \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Неправильний рядок: повинен містити \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Неправильний рядок: повинен відповідати шаблону ${_issue.pattern}`;\n                return `Неправильний ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Неправильне число: повинно бути кратним ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Нерозпізнаний ключ${issue.keys.length > 1 ? \"і\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Неправильний ключ у ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Неправильні вхідні дані\";\n            case \"invalid_element\":\n                return `Неправильне значення у ${issue.origin}`;\n            default:\n                return `Неправильні вхідні дані`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import uk from \"./uk.js\";\n/** @deprecated Use `uk` instead. */\nexport default function () {\n    return uk();\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"حروف\", verb: \"ہونا\" },\n        file: { unit: \"بائٹس\", verb: \"ہونا\" },\n        array: { unit: \"آئٹمز\", verb: \"ہونا\" },\n        set: { unit: \"آئٹمز\", verb: \"ہونا\" },\n        map: { unit: \"آئٹمز\", verb: \"ہونا\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ان پٹ\",\n        email: \"ای میل ایڈریس\",\n        url: \"یو آر ایل\",\n        emoji: \"ایموجی\",\n        uuid: \"یو یو آئی ڈی\",\n        uuidv4: \"یو یو آئی ڈی وی 4\",\n        uuidv6: \"یو یو آئی ڈی وی 6\",\n        nanoid: \"نینو آئی ڈی\",\n        guid: \"جی یو آئی ڈی\",\n        cuid: \"سی یو آئی ڈی\",\n        cuid2: \"سی یو آئی ڈی 2\",\n        ulid: \"یو ایل آئی ڈی\",\n        xid: \"ایکس آئی ڈی\",\n        ksuid: \"کے ایس یو آئی ڈی\",\n        datetime: \"آئی ایس او ڈیٹ ٹائم\",\n        date: \"آئی ایس او تاریخ\",\n        time: \"آئی ایس او وقت\",\n        duration: \"آئی ایس او مدت\",\n        ipv4: \"آئی پی وی 4 ایڈریس\",\n        ipv6: \"آئی پی وی 6 ایڈریس\",\n        mac: \"ایم اے سی ایڈریس\",\n        cidrv4: \"آئی پی وی 4 رینج\",\n        cidrv6: \"آئی پی وی 6 رینج\",\n        base64: \"بیس 64 ان کوڈڈ سٹرنگ\",\n        base64url: \"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ\",\n        json_string: \"جے ایس او این سٹرنگ\",\n        e164: \"ای 164 نمبر\",\n        credit_card: \"کریڈٹ کارڈ نمبر\",\n        currency_code: \"کرنسی کوڈ\",\n        iban: \"IBAN\",\n        jwt: \"جے ڈبلیو ٹی\",\n        template_literal: \"ان پٹ\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"نمبر\",\n        array: \"آرے\",\n        null: \"نل\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `غلط ان پٹ: instanceof ${issue.expected} متوقع تھا، ${received} موصول ہوا`;\n                }\n                return `غلط ان پٹ: ${expected} متوقع تھا، ${received} موصول ہوا`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `غلط ان پٹ: ${util.stringifyPrimitive(issue.values[0])} متوقع تھا`;\n                return `غلط آپشن: ${util.joinValues(issue.values, \"|\")} میں سے ایک متوقع تھا`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `بہت بڑا: ${issue.origin ?? \"ویلیو\"} کے ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"عناصر\"} ہونے متوقع تھے`;\n                return `بہت بڑا: ${issue.origin ?? \"ویلیو\"} کا ${adj}${issue.maximum.toString()} ہونا متوقع تھا`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `بہت چھوٹا: ${issue.origin} کے ${adj}${issue.minimum.toString()} ${sizing.unit} ہونے متوقع تھے`;\n                }\n                return `بہت چھوٹا: ${issue.origin} کا ${adj}${issue.minimum.toString()} ہونا متوقع تھا`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `غلط سٹرنگ: \"${_issue.prefix}\" سے شروع ہونا چاہیے`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `غلط سٹرنگ: \"${_issue.suffix}\" پر ختم ہونا چاہیے`;\n                if (_issue.format === \"includes\")\n                    return `غلط سٹرنگ: \"${_issue.includes}\" شامل ہونا چاہیے`;\n                if (_issue.format === \"regex\")\n                    return `غلط سٹرنگ: پیٹرن ${_issue.pattern} سے میچ ہونا چاہیے`;\n                return `غلط ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `غلط نمبر: ${issue.divisor} کا مضاعف ہونا چاہیے`;\n            case \"unrecognized_keys\":\n                return `غیر تسلیم شدہ کی${issue.keys.length > 1 ? \"ز\" : \"\"}: ${util.joinValues(issue.keys, \"، \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} میں غلط کی`;\n            case \"invalid_union\":\n                return \"غلط ان پٹ\";\n            case \"invalid_element\":\n                return `${issue.origin} میں غلط ویلیو`;\n            default:\n                return `غلط ان پٹ`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"belgi\", verb: \"bo‘lishi kerak\" },\n        file: { unit: \"bayt\", verb: \"bo‘lishi kerak\" },\n        array: { unit: \"element\", verb: \"bo‘lishi kerak\" },\n        set: { unit: \"element\", verb: \"bo‘lishi kerak\" },\n        map: { unit: \"yozuv\", verb: \"bo‘lishi kerak\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"kirish\",\n        email: \"elektron pochta manzili\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO sana va vaqti\",\n        date: \"ISO sana\",\n        time: \"ISO vaqt\",\n        duration: \"ISO davomiylik\",\n        ipv4: \"IPv4 manzil\",\n        ipv6: \"IPv6 manzil\",\n        mac: \"MAC manzil\",\n        cidrv4: \"IPv4 diapazon\",\n        cidrv6: \"IPv6 diapazon\",\n        base64: \"base64 kodlangan satr\",\n        base64url: \"base64url kodlangan satr\",\n        json_string: \"JSON satr\",\n        e164: \"E.164 raqam\",\n        credit_card: \"kredit karta raqami\",\n        currency_code: \"valyuta kodi\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"kirish\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"raqam\",\n        array: \"massiv\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Noto‘g‘ri kirish: kutilgan instanceof ${issue.expected}, qabul qilingan ${received}`;\n                }\n                return `Noto‘g‘ri kirish: kutilgan ${expected}, qabul qilingan ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Noto‘g‘ri kirish: kutilgan ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Juda katta: kutilgan ${issue.origin ?? \"qiymat\"} ${adj}${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;\n                return `Juda katta: kutilgan ${issue.origin ?? \"qiymat\"} ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Juda kichik: kutilgan ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;\n                }\n                return `Juda kichik: kutilgan ${issue.origin} ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Noto‘g‘ri satr: \"${_issue.prefix}\" bilan boshlanishi kerak`;\n                if (_issue.format === \"ends_with\")\n                    return `Noto‘g‘ri satr: \"${_issue.suffix}\" bilan tugashi kerak`;\n                if (_issue.format === \"includes\")\n                    return `Noto‘g‘ri satr: \"${_issue.includes}\" ni o‘z ichiga olishi kerak`;\n                if (_issue.format === \"regex\")\n                    return `Noto‘g‘ri satr: ${_issue.pattern} shabloniga mos kelishi kerak`;\n                return `Noto‘g‘ri ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Noto‘g‘ri raqam: ${issue.divisor} ning karralisi bo‘lishi kerak`;\n            case \"unrecognized_keys\":\n                return `Noma’lum kalit${issue.keys.length > 1 ? \"lar\" : \"\"}: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} dagi kalit noto‘g‘ri`;\n            case \"invalid_union\":\n                return \"Noto‘g‘ri kirish\";\n            case \"invalid_element\":\n                return `${issue.origin} da noto‘g‘ri qiymat`;\n            default:\n                return `Noto‘g‘ri kirish`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"ký tự\", verb: \"có\" },\n        file: { unit: \"byte\", verb: \"có\" },\n        array: { unit: \"phần tử\", verb: \"có\" },\n        set: { unit: \"phần tử\", verb: \"có\" },\n        map: { unit: \"phần tử\", verb: \"có\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"đầu vào\",\n        email: \"địa chỉ email\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ngày giờ ISO\",\n        date: \"ngày ISO\",\n        time: \"giờ ISO\",\n        duration: \"khoảng thời gian ISO\",\n        ipv4: \"địa chỉ IPv4\",\n        ipv6: \"địa chỉ IPv6\",\n        mac: \"địa chỉ MAC\",\n        cidrv4: \"dải IPv4\",\n        cidrv6: \"dải IPv6\",\n        base64: \"chuỗi mã hóa base64\",\n        base64url: \"chuỗi mã hóa base64url\",\n        json_string: \"chuỗi JSON\",\n        e164: \"số E.164\",\n        credit_card: \"số thẻ tín dụng\",\n        currency_code: \"mã tiền tệ\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"đầu vào\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"số\",\n        array: \"mảng\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Đầu vào không hợp lệ: mong đợi instanceof ${issue.expected}, nhận được ${received}`;\n                }\n                return `Đầu vào không hợp lệ: mong đợi ${expected}, nhận được ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Đầu vào không hợp lệ: mong đợi ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Quá lớn: mong đợi ${issue.origin ?? \"giá trị\"} ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"phần tử\"}`;\n                return `Quá lớn: mong đợi ${issue.origin ?? \"giá trị\"} ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `Quá nhỏ: mong đợi ${issue.origin} ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `Quá nhỏ: mong đợi ${issue.origin} ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Chuỗi không hợp lệ: phải bắt đầu bằng \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Chuỗi không hợp lệ: phải kết thúc bằng \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Chuỗi không hợp lệ: phải bao gồm \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Chuỗi không hợp lệ: phải khớp với mẫu ${_issue.pattern}`;\n                return `${FormatDictionary[_issue.format] ?? issue.format} không hợp lệ`;\n            }\n            case \"not_multiple_of\":\n                return `Số không hợp lệ: phải là bội số của ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Khóa không được nhận dạng: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Khóa không hợp lệ trong ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Đầu vào không hợp lệ\";\n            case \"invalid_element\":\n                return `Giá trị không hợp lệ trong ${issue.origin}`;\n            default:\n                return `Đầu vào không hợp lệ`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"字符\", verb: \"包含\" },\n        file: { unit: \"字节\", verb: \"包含\" },\n        array: { unit: \"项\", verb: \"包含\" },\n        set: { unit: \"项\", verb: \"包含\" },\n        map: { unit: \"项\", verb: \"包含\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"输入\",\n        email: \"电子邮件\",\n        url: \"URL\",\n        emoji: \"表情符号\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO日期时间\",\n        date: \"ISO日期\",\n        time: \"ISO时间\",\n        duration: \"ISO时长\",\n        ipv4: \"IPv4地址\",\n        ipv6: \"IPv6地址\",\n        mac: \"MAC地址\",\n        cidrv4: \"IPv4网段\",\n        cidrv6: \"IPv6网段\",\n        base64: \"base64编码字符串\",\n        base64url: \"base64url编码字符串\",\n        json_string: \"JSON字符串\",\n        e164: \"E.164号码\",\n        credit_card: \"信用卡号\",\n        currency_code: \"货币代码\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"输入\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"数字\",\n        array: \"数组\",\n        null: \"空值(null)\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `无效输入：期望 instanceof ${issue.expected}，实际接收 ${received}`;\n                }\n                return `无效输入：期望 ${expected}，实际接收 ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `无效输入：期望 ${util.stringifyPrimitive(issue.values[0])}`;\n                return `无效选项：期望以下之一 ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `数值过大：期望 ${issue.origin ?? \"值\"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"个元素\"}`;\n                return `数值过大：期望 ${issue.origin ?? \"值\"} ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `数值过小：期望 ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `数值过小：期望 ${issue.origin} ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `无效字符串：必须以 \"${_issue.prefix}\" 开头`;\n                if (_issue.format === \"ends_with\")\n                    return `无效字符串：必须以 \"${_issue.suffix}\" 结尾`;\n                if (_issue.format === \"includes\")\n                    return `无效字符串：必须包含 \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `无效字符串：必须满足正则表达式 ${_issue.pattern}`;\n                return `无效${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `无效数字：必须是 ${issue.divisor} 的倍数`;\n            case \"unrecognized_keys\":\n                return `出现未知的键(key): ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `${issue.origin} 中的键(key)无效`;\n            case \"invalid_union\":\n                return \"无效输入\";\n            case \"invalid_element\":\n                return `${issue.origin} 中包含无效值(value)`;\n            default:\n                return `无效输入`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"字元\", verb: \"擁有\" },\n        file: { unit: \"位元組\", verb: \"擁有\" },\n        array: { unit: \"項目\", verb: \"擁有\" },\n        set: { unit: \"項目\", verb: \"擁有\" },\n        map: { unit: \"項目\", verb: \"擁有\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"輸入\",\n        email: \"郵件地址\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"ISO 日期時間\",\n        date: \"ISO 日期\",\n        time: \"ISO 時間\",\n        duration: \"ISO 期間\",\n        ipv4: \"IPv4 位址\",\n        ipv6: \"IPv6 位址\",\n        mac: \"MAC 位址\",\n        cidrv4: \"IPv4 範圍\",\n        cidrv6: \"IPv6 範圍\",\n        base64: \"base64 編碼字串\",\n        base64url: \"base64url 編碼字串\",\n        json_string: \"JSON 字串\",\n        e164: \"E.164 數值\",\n        credit_card: \"信用卡號\",\n        currency_code: \"貨幣代碼\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"輸入\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `無效的輸入值：預期為 instanceof ${issue.expected}，但收到 ${received}`;\n                }\n                return `無效的輸入值：預期為 ${expected}，但收到 ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `無效的輸入值：預期為 ${util.stringifyPrimitive(issue.values[0])}`;\n                return `無效的選項：預期為以下其中之一 ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `數值過大：預期 ${issue.origin ?? \"值\"} 應為 ${adj}${issue.maximum.toString()} ${sizing.unit ?? \"個元素\"}`;\n                return `數值過大：預期 ${issue.origin ?? \"值\"} 應為 ${adj}${issue.maximum.toString()}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing) {\n                    return `數值過小：預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()} ${sizing.unit}`;\n                }\n                return `數值過小：預期 ${issue.origin} 應為 ${adj}${issue.minimum.toString()}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\") {\n                    return `無效的字串：必須以 \"${_issue.prefix}\" 開頭`;\n                }\n                if (_issue.format === \"ends_with\")\n                    return `無效的字串：必須以 \"${_issue.suffix}\" 結尾`;\n                if (_issue.format === \"includes\")\n                    return `無效的字串：必須包含 \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `無效的字串：必須符合格式 ${_issue.pattern}`;\n                return `無效的 ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `無效的數字：必須為 ${issue.divisor} 的倍數`;\n            case \"unrecognized_keys\":\n                return `無法識別的鍵值${issue.keys.length > 1 ? \"們\" : \"\"}：${util.joinValues(issue.keys, \"、\")}`;\n            case \"invalid_key\":\n                return `${issue.origin} 中有無效的鍵值`;\n            case \"invalid_union\":\n                return \"無效的輸入值\";\n            case \"invalid_element\":\n                return `${issue.origin} 中有無效的值`;\n            default:\n                return `無效的輸入值`;\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","import * as util from \"../core/util.js\";\nconst error = () => {\n    const Sizable = {\n        string: { unit: \"àmi\", verb: \"ní\" },\n        file: { unit: \"bytes\", verb: \"ní\" },\n        array: { unit: \"nkan\", verb: \"ní\" },\n        set: { unit: \"nkan\", verb: \"ní\" },\n        map: { unit: \"nkan\", verb: \"ní\" },\n    };\n    function getSizing(origin) {\n        return Sizable[origin] ?? null;\n    }\n    const FormatDictionary = {\n        regex: \"ẹ̀rọ ìbáwọlé\",\n        email: \"àdírẹ́sì ìmẹ́lì\",\n        url: \"URL\",\n        emoji: \"emoji\",\n        uuid: \"UUID\",\n        uuidv4: \"UUIDv4\",\n        uuidv6: \"UUIDv6\",\n        nanoid: \"nanoid\",\n        guid: \"GUID\",\n        cuid: \"cuid\",\n        cuid2: \"cuid2\",\n        ulid: \"ULID\",\n        xid: \"XID\",\n        ksuid: \"KSUID\",\n        datetime: \"àkókò ISO\",\n        date: \"ọjọ́ ISO\",\n        time: \"àkókò ISO\",\n        duration: \"àkókò tó pé ISO\",\n        ipv4: \"àdírẹ́sì IPv4\",\n        ipv6: \"àdírẹ́sì IPv6\",\n        mac: \"àdírẹ́sì MAC\",\n        cidrv4: \"àgbègbè IPv4\",\n        cidrv6: \"àgbègbè IPv6\",\n        base64: \"ọ̀rọ̀ tí a kọ́ ní base64\",\n        base64url: \"ọ̀rọ̀ base64url\",\n        json_string: \"ọ̀rọ̀ JSON\",\n        e164: \"nọ́mbà E.164\",\n        credit_card: \"nọmba kaadi gbese\",\n        currency_code: \"koodu owó\",\n        iban: \"IBAN\",\n        jwt: \"JWT\",\n        template_literal: \"ẹ̀rọ ìbáwọlé\",\n    };\n    const TypeDictionary = {\n        nan: \"NaN\",\n        number: \"nọ́mbà\",\n        array: \"akopọ\",\n    };\n    return (issue) => {\n        switch (issue.code) {\n            case \"invalid_type\": {\n                const expected = TypeDictionary[issue.expected] ?? issue.expected;\n                const receivedType = util.parsedType(issue.input);\n                const received = TypeDictionary[receivedType] ?? receivedType;\n                if (/^[A-Z]/.test(issue.expected)) {\n                    return `Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${issue.expected}, àmọ̀ a rí ${received}`;\n                }\n                return `Ìbáwọlé aṣìṣe: a ní láti fi ${expected}, àmọ̀ a rí ${received}`;\n            }\n            case \"invalid_value\":\n                if (issue.values.length === 1)\n                    return `Ìbáwọlé aṣìṣe: a ní láti fi ${util.stringifyPrimitive(issue.values[0])}`;\n                return `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${util.joinValues(issue.values, \"|\")}`;\n            case \"too_big\": {\n                const adj = issue.inclusive ? \"<=\" : \"<\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Tó pọ̀ jù: a ní láti jẹ́ pé ${issue.origin ?? \"iye\"} ${sizing.verb} ${adj}${issue.maximum} ${sizing.unit}`;\n                return `Tó pọ̀ jù: a ní láti jẹ́ ${adj}${issue.maximum}`;\n            }\n            case \"too_small\": {\n                const adj = issue.inclusive ? \">=\" : \">\";\n                const sizing = getSizing(issue.origin);\n                if (sizing)\n                    return `Kéré ju: a ní láti jẹ́ pé ${issue.origin} ${sizing.verb} ${adj}${issue.minimum} ${sizing.unit}`;\n                return `Kéré ju: a ní láti jẹ́ ${adj}${issue.minimum}`;\n            }\n            case \"invalid_format\": {\n                const _issue = issue;\n                if (_issue.format === \"starts_with\")\n                    return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú \"${_issue.prefix}\"`;\n                if (_issue.format === \"ends_with\")\n                    return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú \"${_issue.suffix}\"`;\n                if (_issue.format === \"includes\")\n                    return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní \"${_issue.includes}\"`;\n                if (_issue.format === \"regex\")\n                    return `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${_issue.pattern}`;\n                return `Aṣìṣe: ${FormatDictionary[_issue.format] ?? issue.format}`;\n            }\n            case \"not_multiple_of\":\n                return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${issue.divisor}`;\n            case \"unrecognized_keys\":\n                return `Bọtìnì àìmọ̀: ${util.joinValues(issue.keys, \", \")}`;\n            case \"invalid_key\":\n                return `Bọtìnì aṣìṣe nínú ${issue.origin}`;\n            case \"invalid_union\":\n                return \"Ìbáwọlé aṣìṣe\";\n            case \"invalid_element\":\n                return `Iye aṣìṣe nínú ${issue.origin}`;\n            default:\n                return \"Ìbáwọlé aṣìṣe\";\n        }\n    };\n};\nexport default function () {\n    return {\n        localeError: error(),\n    };\n}\n","var _a;\nexport const $output = /*@__PURE__*/ Symbol(\"ZodOutput\");\nexport const $input = /*@__PURE__*/ Symbol(\"ZodInput\");\nexport class $ZodRegistry {\n    constructor() {\n        this._map = new WeakMap();\n        this._idmap = new Map();\n    }\n    add(schema, ..._meta) {\n        const meta = _meta[0];\n        this._map.set(schema, meta);\n        if (meta && typeof meta === \"object\" && \"id\" in meta) {\n            this._idmap.set(meta.id, schema);\n        }\n        return this;\n    }\n    clear() {\n        this._map = new WeakMap();\n        this._idmap = new Map();\n        return this;\n    }\n    remove(schema) {\n        const meta = this._map.get(schema);\n        if (meta && typeof meta === \"object\" && \"id\" in meta) {\n            this._idmap.delete(meta.id);\n        }\n        this._map.delete(schema);\n        return this;\n    }\n    get(schema) {\n        // return this._map.get(schema) as any;\n        // inherit metadata\n        const p = schema._zod.parent;\n        if (p) {\n            const pm = { ...(this.get(p) ?? {}) };\n            delete pm.id; // do not inherit id\n            const f = { ...pm, ...this._map.get(schema) };\n            return Object.keys(f).length ? f : undefined;\n        }\n        return this._map.get(schema);\n    }\n    has(schema) {\n        return this._map.has(schema);\n    }\n}\n// registries\nexport function registry() {\n    return new $ZodRegistry();\n}\n(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());\nexport const globalRegistry = globalThis.__zod_globalRegistry;\n","import { $ZodAsyncError } from \"./core.js\";\nimport { Doc } from \"./doc.js\";\nimport { isBackEdge, isRecursiveSchema } from \"./memoizer.js\";\nimport * as regexes from \"./regexes.js\";\nimport { isValidBase64, isValidBase64URL, isValidCIDRv6, isValidCreditCard, isValidIBAN, isValidIPv6, isValidJWT, mergeValues, stripTabAndNewline, urlHostnameOk, urlProtocolOk, validateURL, } from \"./schemas.js\";\nimport * as util from \"./util.js\";\n/** @internal Sentinel the compiled fast path returns when validation fails. */\nexport const INVALID = Symbol.for(\"zod.compile.invalid\");\n// Set on the parse ctx when a compiled wrapper falls back to the runtime, so nested compiled wrappers skip their fast paths for the rest of that parse.\nconst FALLBACK_FLAG = Symbol.for(\"zod.compile.fallback\");\n/** Raised when the schema contains async refinements or transforms. Surfaces only under `compile(schema, { strict: true })`. */\nexport class ZodCompileAsyncError extends Error {\n    constructor(message = \"z.compile does not support async refinements, transforms, or checks\") {\n        super(message);\n        this.name = \"ZodCompileAsyncError\";\n    }\n}\n/**\n * Raised when the schema contains a feature whose semantics the fast path\n * can't fully model. Both the shim in `zod/compile` and the default\n * `compile()` fall back to the runtime parser for that schema; only\n * `compile(schema, { strict: true })` lets it surface.\n */\nexport class ZodCompileUnsupportedError extends Error {\n    constructor(feature, islandable = true) {\n        super(`z.compile does not support ${feature}; this schema must use the runtime parser`);\n        this.name = \"ZodCompileUnsupportedError\";\n        this.islandable = islandable;\n    }\n}\n/**\n * Build the validator `validate` calls: the same codegen as the parser with the output construction\n * dropped. A schema the flag cannot express reuses the parser, which still answers correctly — it\n * just builds a value nothing reads.\n */\nfunction compileValidator(schema, parser) {\n    try {\n        return compileFn(schema, { assertOnly: true });\n    }\n    catch {\n        return parser;\n    }\n}\n/**\n * AOT-compile a Zod schema. Returns a clone whose `_zod.run` calls a generated\n * fast path first and falls back to the original runtime parser on failure.\n *\n * - Forward direction only. Backward (encode), async, and `skipChecks` paths\n *   bypass the fast path and use the runtime directly.\n * - Never throws. A schema the fast path can't model is returned unchanged and\n *   keeps using the runtime parser. Pass `{ strict: true }` to get the refusal\n *   as a thrown `ZodCompileUnsupportedError` / `ZodCompileAsyncError` instead.\n * - The original schema is unchanged. The clone shares children by reference.\n */\nexport function compile(schema, options) {\n    try {\n        const parser = compileFn(schema);\n        const clone = withParser(schema, parser);\n        // withParser leaves the parser as its own validator; the generated assert-only variant is better when we have one\n        clone._zod.bag.validator = compileValidator(schema, parser);\n        return clone;\n    }\n    catch (err) {\n        if (options?.strict)\n            throw err;\n        // a schema we can't compile still has to work, so hand it back untouched on the runtime parser — the same silent fallback global mode already does\n        return schema;\n    }\n}\n/**\n * Install an already-generated parser as a schema's fast path. Returns a clone; the original is\n * unchanged.\n *\n * The parser takes the input and returns the parsed value, or `INVALID` to hand the parse to the\n * runtime. It must be synchronous and forward-direction, and it must build fresh output rather than\n * return its input — Zod cannot check either, and a wrong *success* is returned to the caller as-is.\n *\n * `compile()` is the ordinary entry point. This is for a build-time or native compiler that produces\n * a parser where `new Function` is unavailable.\n */\nexport function withParser(schema, parser) {\n    // generated code never receives the parse context, so only the runtime can close a reference cycle; compileFn refuses these too\n    if (isRecursiveSchema(schema)) {\n        throw new ZodCompileUnsupportedError(\"a schema whose subtree contains a reference cycle\");\n    }\n    const clone = util.clone(schema);\n    // Capture the source-of-truth runtime eagerly. If schema._zod.run is itself a shim installed by global-mode (`__originalRun` set), unwrap past it. Otherwise capturing the live property lazily would let a later self- replacement of schema._zod.run feed our wrapper back into itself.\n    const liveRun = schema._zod.run;\n    const originalRun = liveRun.__originalRun ?? liveRun;\n    // Delegate to the *original* schema's run on bypass/fallback, not the clone's. The original closed over its own `inst` at construction time, and issue payloads use that reference to derive things like the class name for `z.instanceof(Test)`; calling the clone's freshly-initialized run would push issues with `inst === clone` and diverge from the original schema's error messages.\n    const wrapped = (payload, ctx) => {\n        if (ctx?.async ||\n            ctx?.direction === \"backward\" ||\n            ctx?.skipChecks ||\n            ctx?.[FALLBACK_FLAG]) {\n            return originalRun(payload, ctx);\n        }\n        // A memoized back-edge: only the runtime can close a reference cycle, and a transform on one must raise $ZodCyclicError from its own parse.\n        if (ctx && isBackEdge(ctx, payload.value)) {\n            return originalRun(payload, ctx);\n        }\n        const out = parser(payload.value);\n        if (out !== INVALID) {\n            payload.value = out;\n            return payload;\n        }\n        // Mark this parse as runtime-driven: under global mode every nested schema carries its own compiled wrapper, and without the flag the parent's runtime fallback re-enters each child's fast path, running user callbacks a third time on invalid input.\n        if (ctx)\n            ctx[FALLBACK_FLAG] = true;\n        return originalRun(payload, ctx);\n    };\n    // Let later compiles of (or through) this run unwrap to the true runtime — both the global shim and repeated z.compile calls rely on this. The bag also carries the parser and the validator, so the standalone validate can skip the payload and wrapper on the happy path.\n    wrapped.__originalRun = originalRun;\n    clone._zod.bag.fallbackRun = originalRun;\n    // a supplied parser answers `validate` too: one implementation means parse and validate cannot disagree, and its undefined `definite` keeps the runtime re-parse on every rejection\n    clone._zod.bag.validator = parser;\n    clone._zod.run = wrapped;\n    // The fast parse/safeParse closures fall back through the source schema's methods. If the source is shim- or wrapper-managed, those methods route into a compiled run and would execute user callbacks a third time on invalid input — the plain method → wrapper path is exactly 2x, so skip.\n    if (!liveRun.__originalRun)\n        installCompiledUserMethods(clone, schema, parser);\n    return clone;\n}\nfunction installCompiledUserMethods(target, source, parser) {\n    const targetAny = target;\n    const sourceAny = source;\n    if (typeof sourceAny.safeParse === \"function\") {\n        const originalSafeParse = sourceAny.safeParse;\n        targetAny.safeParse = (data, params) => {\n            const out = parser(data);\n            if (out !== INVALID) {\n                return { success: true, data: out };\n            }\n            return originalSafeParse(data, params);\n        };\n    }\n    if (typeof sourceAny.parse === \"function\") {\n        const originalParse = sourceAny.parse;\n        targetAny.parse = (data, params) => {\n            const out = parser(data);\n            if (out !== INVALID) {\n                return out;\n            }\n            return originalParse(data, params);\n        };\n    }\n}\n/**\n * @internal Generate the standalone compiled function: a parser by default, a validator under\n * `assertOnly`. Returns the parsed value, `true` where nothing reads the output, or `INVALID`. Consumers use `compile()`.\n */\nexport function compileFn(schema, options) {\n    // Cycle-breaking is keyed on the parse context, which generated code never receives. `shape` can be a getter that throws (z.pick() with an unrecognized mask key), so treat \"can't tell\" as recursive.\n    let recursive = true;\n    try {\n        recursive = isRecursiveSchema(schema);\n    }\n    catch { }\n    if (recursive) {\n        throw new ZodCompileUnsupportedError(\"a schema whose subtree contains a reference cycle\");\n    }\n    const ctx = {\n        constants: new Map(),\n        constantCounter: 0,\n        varCounter: 0,\n        definite: true,\n    };\n    const doc = new Doc([\"input\"]);\n    const outputAccessor = generateCheck(doc, ctx, schema, \"input\", !options?.assertOnly);\n    // In assert mode a root that built nothing has already returned INVALID on every failure, so reaching the end means valid.\n    doc.write(outputAccessor === null ? `return true;` : `return ${outputAccessor};`);\n    // Build the function with hoisted constants Always include INVALID as the first constant\n    const constantNames = [\"INVALID\", ...ctx.constants.keys()];\n    const constantValues = [INVALID, ...ctx.constants.values()];\n    const code = doc.content.join(\"\\n\");\n    const fullCode = options?.debug\n        ? constantNames.length > 0\n            ? `// Constants: ${constantNames.join(\", \")}\\n${code}`\n            : code\n        : \"\";\n    const F = Function;\n    const factoryCode = `return (input) => {\\n${code}\\n}`;\n    let fn;\n    try {\n        const factory = new F(...constantNames, factoryCode);\n        fn = factory(...constantValues);\n    }\n    catch (err) {\n        // Malformed generated code (or a CSP environment rejecting `new Function`) surfaces as a typed error so the global shim falls back to the runtime instead of crashing with a raw SyntaxError/EvalError.\n        throw new ZodCompileUnsupportedError(`this schema (generated code failed to evaluate: ${err.message})`);\n    }\n    if (options?.debug) {\n        fn.code = fullCode;\n    }\n    fn.definite = ctx.definite;\n    return fn;\n}\nfunction addConstant(ctx, value) {\n    // Check if we already have this constant\n    for (const [name, v] of ctx.constants) {\n        if (v === value)\n            return name;\n    }\n    const name = `c${ctx.constantCounter++}`;\n    ctx.constants.set(name, value);\n    return name;\n}\n/** Hoists a user-supplied callback. Anything the schema's author wrote can throw, and generated code can reject an earlier sibling before ever reaching it, so this clears `definite` — a rejection is then no longer proof that the interpreter would have rejected rather than thrown. */\nfunction addUserConstant(ctx, fn) {\n    ctx.definite = false;\n    return addConstant(ctx, fn);\n}\nfunction newVar(ctx) {\n    return `v${ctx.varCounter++}`;\n}\n// Runs a child schema as a black box: its value, or INVALID for a failure or an async run.\nfunction runtimeRun(schema, value) {\n    const result = schema._zod.run({ value, issues: [] }, {});\n    if (result && typeof result.then === \"function\")\n        return INVALID;\n    const r = result;\n    return r.issues.length === 0 ? r.value : INVALID;\n}\n// `null` means the node built no value because nothing reads it. The overloads keep that case out of the 20-odd callers that always want one, so only a caller passing needsValue has to handle it.\nfunction compileChild(doc, ctx, schema, accessor, needsValue = true) {\n    const contentLen = doc.content.length;\n    const constantCount = ctx.constants.size;\n    const constantCounter = ctx.constantCounter;\n    const varCounter = ctx.varCounter;\n    try {\n        return generateCheck(doc, ctx, schema, accessor, needsValue);\n    }\n    catch (err) {\n        if (!(err instanceof ZodCompileUnsupportedError) || !err.islandable)\n            throw err;\n        doc.content.length = contentLen;\n        if (ctx.constants.size > constantCount) {\n            const trailing = Array.from(ctx.constants.keys()).slice(constantCount);\n            for (const k of trailing)\n                ctx.constants.delete(k);\n        }\n        ctx.constantCounter = constantCounter;\n        ctx.varCounter = varCounter;\n        return emitRuntimeIsland(doc, ctx, schema, accessor);\n    }\n}\nfunction emitRuntimeIsland(doc, ctx, schema, accessor) {\n    // an islanded child answers INVALID for an async run too, which the interpreter throws for\n    ctx.definite = false;\n    const schemaConst = addConstant(ctx, schema);\n    const runConst = addConstant(ctx, runtimeRun);\n    const outVar = newVar(ctx);\n    doc.write(`const ${outVar} = ${runConst}(${schemaConst}, ${accessor});`);\n    doc.write(`if (${outVar} === INVALID) return INVALID;`);\n    return outVar;\n}\n// Check classes whose `when` is auto-defaulted at init (checks.ts `when ??=`).\nconst WHEN_DEFAULTED_CHECKS = new Set([\n    \"max_size\",\n    \"min_size\",\n    \"size_equals\",\n    \"max_length\",\n    \"min_length\",\n    \"length_equals\",\n]);\nfunction generateChecks(doc, ctx, schema, accessor) {\n    const schemaChecks = schema._zod.def.checks;\n    if (!schemaChecks || schemaChecks.length === 0)\n        return accessor;\n    // Track current accessor - may change if overwrite checks are encountered\n    let currentAccessor = accessor;\n    for (const check of schemaChecks) {\n        const def = check._zod.def;\n        // A custom `when` skips a check the fast path always runs; the one auto-defaulted on size/length classes matches its bail-on-first-failure.\n        if (def.when && !WHEN_DEFAULTED_CHECKS.has(def.check)) {\n            throw new ZodCompileUnsupportedError(`check with a custom \"when\" condition`);\n        }\n        switch (def.check) {\n            case \"greater_than\":\n                generateGreaterThanCheck(doc, ctx, def, currentAccessor);\n                break;\n            case \"less_than\":\n                generateLessThanCheck(doc, ctx, def, currentAccessor);\n                break;\n            case \"multiple_of\":\n                generateMultipleOfCheck(doc, ctx, def, currentAccessor);\n                break;\n            case \"number_format\":\n                generateNumberFormatCheck(doc, def, currentAccessor);\n                break;\n            case \"min_length\": {\n                const min = numericOperand(def.minimum, \"min_length\");\n                const len = codePointLengthVar(doc, ctx, currentAccessor, `${currentAccessor}.length >= ${min} && ${currentAccessor}.length < ${def.minimum * 2}`);\n                doc.write(`if (${len} < ${min}) return INVALID;`);\n                break;\n            }\n            case \"max_length\": {\n                const max = numericOperand(def.maximum, \"max_length\");\n                const len = codePointLengthVar(doc, ctx, currentAccessor, `${currentAccessor}.length > ${max}`);\n                doc.write(`if (${len} > ${max}) return INVALID;`);\n                break;\n            }\n            case \"length_equals\": {\n                const exact = numericOperand(def.length, \"length_equals\");\n                const len = codePointLengthVar(doc, ctx, currentAccessor, `${currentAccessor}.length >= ${exact} && ${currentAccessor}.length <= ${def.length * 2}`);\n                doc.write(`if (${len} !== ${exact}) return INVALID;`);\n                break;\n            }\n            case \"min_size\":\n                doc.write(`if (${currentAccessor}.size < ${numericOperand(def.minimum, \"min_size\")}) return INVALID;`);\n                break;\n            case \"max_size\":\n                doc.write(`if (${currentAccessor}.size > ${numericOperand(def.maximum, \"max_size\")}) return INVALID;`);\n                break;\n            case \"size_equals\":\n                doc.write(`if (${currentAccessor}.size !== ${numericOperand(def.size, \"size_equals\")}) return INVALID;`);\n                break;\n            case \"string_format\":\n                currentAccessor = generateStringFormatCheck(doc, ctx, def, currentAccessor);\n                break;\n            case \"custom\":\n                currentAccessor = generateCustomRefineCheck(doc, ctx, check, currentAccessor);\n                break;\n            case \"bigint_format\":\n                generateBigIntFormatCheck(doc, def, currentAccessor);\n                break;\n            case \"mime_type\":\n                generateMimeTypeCheck(doc, ctx, def, currentAccessor);\n                break;\n            case \"property\":\n                generatePropertyCheck(doc, ctx, def, currentAccessor);\n                break;\n            case \"properties\":\n                generatePropertiesChecks(doc, ctx, def, currentAccessor);\n                break;\n            case \"overwrite\": {\n                // Overwrite transforms the value - create new variable for transformed result\n                const newAccessor = newVar(ctx);\n                generateOverwriteCheck(doc, ctx, check, currentAccessor, newAccessor);\n                currentAccessor = newAccessor;\n                break;\n            }\n            default: {\n                void def;\n                throw new ZodCompileUnsupportedError(`check type ${def.check}`);\n            }\n        }\n    }\n    return currentAccessor;\n}\n// Emit the length operand for a length check, mirroring `$ZodCheckMinLength` and friends: strings measure in code points, everything else in `.length`. `inDoubt` is the caller's cheap UTF-16 bound test — outside it the unit count already settles the comparison, so the scan is skipped.\nfunction codePointLengthVar(doc, ctx, accessor, inDoubt) {\n    const cpLen = addConstant(ctx, util.codePointLength);\n    const v = newVar(ctx);\n    doc.write(`const ${v} = typeof ${accessor} === \"string\" && ${inDoubt} ? ${cpLen}(${accessor}) : ${accessor}.length;`);\n    return v;\n}\n// Emit a source operand for a gt/lt bound. Numbers inline; Dates hoist as a constant (relational operators compare via valueOf). NaN and Invalid Date bounds can't compile to a comparison that matches runtime semantics.\n/**\n * A count bound reaches generated source verbatim, so a non-number would be\n * emitted as code rather than as a value — `min('0) {} evil(); if (0')` writes an\n * arbitrary statement into the function body. TypeScript types these as `number`\n * and fromJSONSchema guards them, so this is a backstop rather than a live hole,\n * but generated source is the one place a wrong type stops being a type error.\n */\nfunction numericOperand(value, label) {\n    if (typeof value !== \"number\" || !Number.isFinite(value)) {\n        throw new ZodCompileUnsupportedError(`${label} bound of type ${typeof value}`);\n    }\n    return `${value}`;\n}\nfunction comparisonOperand(ctx, value) {\n    if (typeof value === \"bigint\")\n        return `${value}n`;\n    if (typeof value === \"number\") {\n        if (Number.isNaN(value))\n            throw new ZodCompileUnsupportedError(\"comparison check with NaN bound\");\n        return `${value}`;\n    }\n    if (value instanceof Date) {\n        if (Number.isNaN(value.getTime())) {\n            throw new ZodCompileUnsupportedError(\"comparison check with Invalid Date bound\");\n        }\n        return addConstant(ctx, value);\n    }\n    throw new ZodCompileUnsupportedError(`comparison check bound of type ${typeof value}`);\n}\nfunction generateGreaterThanCheck(doc, ctx, def, accessor) {\n    const op = def.inclusive ? \"<\" : \"<=\";\n    doc.write(`if (${accessor} ${op} ${comparisonOperand(ctx, def.value)}) return INVALID;`);\n}\nfunction generateLessThanCheck(doc, ctx, def, accessor) {\n    const op = def.inclusive ? \">\" : \">=\";\n    doc.write(`if (${accessor} ${op} ${comparisonOperand(ctx, def.value)}) return INVALID;`);\n}\nfunction generateMultipleOfCheck(doc, ctx, def, accessor) {\n    if (typeof def.value === \"bigint\") {\n        // a zero divisor has no compiled form: `x % 0n` throws\n        if (def.value === BigInt(0))\n            throw new ZodCompileUnsupportedError(\"multiple_of check with a zero divisor\");\n        doc.write(`if (${accessor} % ${def.value}n !== 0n) return INVALID;`);\n    }\n    else {\n        // Float `%` has well-known precision issues for sub-integer steps\n        // (`1.5 % 0.1`, `2.5e-7 % 1e-7`). Defer to util.floatSafeRemainder so the\n        // exact tolerance logic stays in one place — single function call is fine\n        // since `multipleOf` runs at most once per number.\n        const remainder = addConstant(ctx, util.floatSafeRemainder);\n        doc.write(`if (${remainder}(${accessor}, ${numericOperand(def.value, \"multiple_of\")}) !== 0) return INVALID;`);\n    }\n}\nfunction generateNumberFormatCheck(doc, def, accessor) {\n    const format = def.format;\n    switch (format) {\n        case \"safeint\":\n            doc.write(`if (!Number.isSafeInteger(${accessor})) return INVALID;`);\n            break;\n        case \"int32\":\n            doc.write(`if (!Number.isInteger(${accessor}) || ${accessor} < -2147483648 || ${accessor} > 2147483647) return INVALID;`);\n            break;\n        case \"uint32\":\n            doc.write(`if (!Number.isInteger(${accessor}) || ${accessor} < 0 || ${accessor} > 4294967295) return INVALID;`);\n            break;\n        case \"float32\":\n            // Float32 range per util.NUMBER_FORMAT_RANGES\n            doc.write(`if (!Number.isFinite(${accessor}) || ${accessor} < -3.4028234663852886e38 || ${accessor} > 3.4028234663852886e38) return INVALID;`);\n            break;\n        case \"float64\":\n            doc.write(`if (!Number.isFinite(${accessor})) return INVALID;`);\n            break;\n        default: {\n            void format;\n            throw new ZodCompileUnsupportedError(`number format ${format}`);\n        }\n    }\n}\nfunction generateBigIntFormatCheck(doc, def, accessor) {\n    const format = def.format;\n    if (!format)\n        return; // undefined format means no range check\n    switch (format) {\n        case \"int64\":\n            doc.write(`if (${accessor} < -9223372036854775808n || ${accessor} > 9223372036854775807n) return INVALID;`);\n            break;\n        case \"uint64\":\n            doc.write(`if (${accessor} < 0n || ${accessor} > 18446744073709551615n) return INVALID;`);\n            break;\n        default: {\n            void format;\n            throw new ZodCompileUnsupportedError(`bigint format ${format}`);\n        }\n    }\n}\nfunction generateMimeTypeCheck(doc, ctx, def, accessor) {\n    const mimeTypes = def.mime;\n    if (mimeTypes && mimeTypes.length > 0) {\n        const mimeSet = addConstant(ctx, new Set(mimeTypes));\n        doc.write(`if (!${mimeSet}.has(${accessor}.type)) return INVALID;`);\n    }\n}\n// asserts each named property in place; children compile assert-only because z.properties never rebuilds its input\nfunction generatePropertiesChecks(doc, ctx, def, accessor) {\n    // a custom `when` gates the assertion at runtime; inside a union a wrongly-run branch is absorbed as a branch failure rather than falling back, so refuse at codegen\n    if (def.when) {\n        throw new ZodCompileUnsupportedError(`check with a custom \"when\" condition`);\n    }\n    // matches the runtime gate: the base schema already typed the value, so only a nullish one is rejected\n    doc.write(`if (${accessor} == null) return INVALID;`);\n    const shape = def.shape;\n    for (const key of Reflect.ownKeys(shape)) {\n        // a symbol has no source literal, so it is hoisted as a constant\n        const keyExpr = typeof key === \"symbol\" ? addConstant(ctx, key) : util.esc(key);\n        // cache the property read so a getter runs exactly once, matching the runtime\n        const inputVar = newVar(ctx);\n        doc.write(`const ${inputVar} = ${accessor}[${keyExpr}];`);\n        compileChild(doc, ctx, shape[key], inputVar, false);\n    }\n}\nfunction generatePropertyCheck(doc, ctx, def, accessor) {\n    const propAccessor = `${accessor}[${JSON.stringify(def.property)}]`;\n    generateCheck(doc, ctx, def.schema, propAccessor);\n}\nfunction generateOverwriteCheck(doc, ctx, check, currentAccessor, newAccessor) {\n    const tx = check._zod.def.tx;\n    if (!tx) {\n        throw new ZodCompileUnsupportedError(\"overwrite check without a transform function\");\n    }\n    // Check for async transform\n    if (isAsyncFunction(tx)) {\n        throw new ZodCompileAsyncError(\"z.compile: async overwrite transforms are not supported\");\n    }\n    // Hoist the transform function as a constant and apply it\n    const txConst = addConstant(ctx, tx);\n    doc.write(`const ${newAccessor} = ${txConst}(${currentAccessor});`);\n}\n/** A predicate that hands back a thenable is an async check reached synchronously, and the interpreter throws `$ZodAsyncError` for it. Returning INVALID instead would be a bail-out, and a union reads a bail-out as a rejected branch and answers with a later one — so the throw has to survive into generated code. */\nfunction throwAsync() {\n    throw new $ZodAsyncError();\n}\n/** Shared `addIssue` for the spoofed payloads a refine, check or transform receives. Allocating one per call — a fresh closure plus a `this`-bound method on a fresh literal — pinned every payload-allocating schema at ~2.7M ops/sec against 135M for a plain object literal. It captures nothing per call; it only reaches `this.issues`. */\nfunction pushIssue(issue) {\n    this.issues.push(issue);\n}\nfunction generateCustomRefineCheck(doc, ctx, check, accessor) {\n    const def = check._zod.def;\n    if (def.fn) {\n        // Simple predicate function (from .refine())\n        if (isAsyncFunction(def.fn)) {\n            throw new ZodCompileAsyncError(\"z.compile: async .refine() predicates are not supported\");\n        }\n        const fnConst = addUserConstant(ctx, def.fn);\n        const throwAsyncConst = addConstant(ctx, throwAsync);\n        const resVar = newVar(ctx);\n        doc.write(`const ${resVar} = ${fnConst}(${accessor});`);\n        // A thenable is truthy, so it would otherwise read as a pass. It is not a rejection either: the interpreter throws, and INVALID inside a union would just hand the parse to the next branch.\n        doc.write(`if (${resVar} instanceof Promise) ${throwAsyncConst}();`);\n        doc.write(`if (!${resVar}) return INVALID;`);\n        // A `.refine()` predicate only answers yes or no; it cannot rewrite the value.\n        return accessor;\n    }\n    if (check._zod.check) {\n        if (isAsyncFunction(check._zod.check)) {\n            throw new ZodCompileAsyncError(\"z.compile: async .superRefine() / check functions are not supported\");\n        }\n        // SuperRefine or other check function - need to spoof context Create a helper that runs the check and returns true if no issues\n        const checkFn = check._zod.check;\n        // `$RefinementCtx` extends the parse payload, so a check may rewrite\n        // `ctx.value` as well as push issues — `.superRefine((v, ctx) => { ctx.value =\n        // v.trim() })` is a value transform. Returning only a boolean discarded that\n        // write and emitted the untrimmed input. Hand the value back and thread it on.\n        const helperFn = (value) => {\n            const fakePayload = { value, issues: [], addIssue: pushIssue };\n            const result = checkFn(fakePayload);\n            // Throw rather than return INVALID: the interpreter throws here, and a union would read INVALID as a rejected branch.\n            if (result instanceof Promise)\n                throwAsync();\n            return fakePayload.issues.length === 0 ? fakePayload.value : INVALID;\n        };\n        const helperConst = addUserConstant(ctx, helperFn);\n        const outVar = newVar(ctx);\n        doc.write(`const ${outVar} = ${helperConst}(${accessor});`);\n        doc.write(`if (${outVar} === INVALID) return INVALID;`);\n        return outVar;\n    }\n    throw new ZodCompileUnsupportedError(\"custom check without a predicate or check function\");\n}\n/**\n * Built-in formats that validate with nothing but `def.pattern`, so compiling\n * the regex reproduces the runtime exactly. Deliberately an allowlist: a format\n * missing from it loses its fast path, while a format wrongly added to it\n * silently accepts input the runtime rejects. Formats that layer extra\n * validation over a shape-only pattern (`credit_card`, `base64`, `ipv6`, …) are\n * handled above by hoisting the runtime validator itself.\n */\nconst PATTERN_IS_COMPLETE = new Set([\n    \"cidrv4\",\n    \"cuid\",\n    \"cuid2\",\n    \"date\",\n    \"datetime\",\n    \"duration\",\n    \"e164\",\n    \"email\",\n    \"emoji\",\n    \"ends_with\",\n    \"guid\",\n    \"includes\",\n    \"ipv4\",\n    \"ksuid\",\n    \"lowercase\",\n    \"mac\",\n    \"nanoid\",\n    \"regex\",\n    \"starts_with\",\n    \"time\",\n    \"ulid\",\n    \"uppercase\",\n    \"uuid\",\n    \"xid\",\n]);\nfunction generateStringFormatCheck(doc, ctx, def, accessor, needsValue = true) {\n    // Some string formats do runtime validation beyond their advertised pattern. For cheap pure utility checks, hoist the runtime function and call it so the fast path stays correct without cloning the utility logic into codegen.\n    const fmt = def.format;\n    if (fmt === \"base64\") {\n        const validator = addConstant(ctx, isValidBase64);\n        doc.write(`if (!${validator}(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    if (fmt === \"base64url\") {\n        const validator = addConstant(ctx, isValidBase64URL);\n        doc.write(`if (!${validator}(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    if (fmt === \"jwt\") {\n        const validator = addConstant(ctx, isValidJWT);\n        const alg = addConstant(ctx, def.alg ?? null);\n        doc.write(`if (!${validator}(${accessor}, ${alg})) return INVALID;`);\n        return accessor;\n    }\n    if (fmt === \"ipv6\") {\n        const validator = addConstant(ctx, isValidIPv6);\n        doc.write(`if (!${validator}(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    if (fmt === \"cidrv6\") {\n        const validator = addConstant(ctx, isValidCIDRv6);\n        doc.write(`if (!${validator}(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    if (fmt === \"credit_card\") {\n        const validator = addConstant(ctx, isValidCreditCard);\n        doc.write(`if (!${validator}(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    if (fmt === \"iban\") {\n        const validator = addConstant(ctx, isValidIBAN);\n        doc.write(`if (!${validator}(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    const formatDef = def;\n    if (fmt === \"url\" ||\n        fmt === \"httpurl\" ||\n        formatDef.normalize ||\n        formatDef.hostname !== undefined ||\n        formatDef.protocol !== undefined) {\n        // Same three predicates the runtime calls, in the same order, so there is no second URL implementation to drift. Which options exist is known now, so the calls the runtime makes conditionally are emitted conditionally instead.\n        const parseConst = addConstant(ctx, validateURL);\n        const defConst = addConstant(ctx, def);\n        const trimVar = newVar(ctx);\n        const urlVar = newVar(ctx);\n        doc.write(`const ${trimVar} = ${accessor}.trim();`);\n        doc.write(`const ${urlVar} = ${parseConst}(${trimVar}, ${defConst});`);\n        doc.write(`if (typeof ${urlVar} === \"number\") return INVALID;`);\n        if (formatDef.hostname !== undefined) {\n            const hostnameConst = addConstant(ctx, urlHostnameOk);\n            doc.write(`if (!${hostnameConst}(${urlVar}, ${defConst}.hostname)) return INVALID;`);\n        }\n        if (formatDef.protocol !== undefined) {\n            const protocolConst = addConstant(ctx, urlProtocolOk);\n            doc.write(`if (!${protocolConst}(${urlVar}, ${defConst}.protocol)) return INVALID;`);\n        }\n        if (!needsValue)\n            return null;\n        const outputVar = newVar(ctx);\n        const outputExpr = formatDef.normalize ? `${urlVar}.href` : `${addConstant(ctx, stripTabAndNewline)}(${trimVar})`;\n        doc.write(`const ${outputVar} = ${outputExpr};`);\n        return outputVar;\n    }\n    // A custom string format carries the predicate the runtime actually calls. Hoist and call it instead of testing `def.pattern`: the two only coincide when the format was built from a RegExp, and relying on that coupling is how supplemental validation gets dropped.\n    const customFn = def.fn;\n    if (customFn) {\n        if (isAsyncFunction(customFn))\n            throw new ZodCompileUnsupportedError(`async string format ${fmt}`);\n        const fnConst = addConstant(ctx, customFn);\n        doc.write(`if (!${fnConst}(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    // Formats whose `pattern` IS the whole check. An allowlist rather than `if (def.pattern)`, because credit_card, base64 and ipv6 carry a shape-only pattern and validate the rest separately.\n    if (PATTERN_IS_COMPLETE.has(fmt) && def.pattern) {\n        const patternConst = addConstant(ctx, def.pattern);\n        doc.write(`${patternConst}.lastIndex = 0;`);\n        doc.write(`if (!${patternConst}.test(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    const format = def.format;\n    switch (format) {\n        case \"regex\":\n            // A regex check with a pattern returned above. Reaching here means there is no pattern to test, and accepting unconditionally would pass every input, so hand the schema back to the runtime.\n            throw new ZodCompileUnsupportedError(\"regex format without a pattern\");\n        case \"lowercase\":\n            doc.write(`if (${accessor} !== ${accessor}.toLowerCase()) return INVALID;`);\n            break;\n        case \"uppercase\":\n            doc.write(`if (${accessor} !== ${accessor}.toUpperCase()) return INVALID;`);\n            break;\n        case \"includes\":\n            doc.write(`if (!${accessor}.includes(${util.esc(def.includes)})) return INVALID;`);\n            break;\n        case \"starts_with\": {\n            const prefix = def.prefix;\n            doc.write(`if (${accessor}.slice(0, ${prefix.length}) !== ${util.esc(prefix)}) return INVALID;`);\n            break;\n        }\n        case \"ends_with\": {\n            const suffix = def.suffix;\n            doc.write(`if (${accessor}.slice(-${suffix.length}) !== ${util.esc(suffix)}) return INVALID;`);\n            break;\n        }\n        default: {\n            void format;\n            throw new ZodCompileUnsupportedError(`string format ${format}`);\n        }\n    }\n    return accessor;\n}\nfunction generateCheck(doc, ctx, schema, accessor, needsValue = true) {\n    const def = schema._zod.def;\n    const type = def.type;\n    // A coercing schema would compile to the bare type test and reject what it should convert; inside a union that reads as a rejected branch, so refuse at codegen.\n    if (def.coerce) {\n        throw new ZodCompileUnsupportedError(`coercion (z.coerce.${type}())`);\n    }\n    // A node builds its output when its caller reads one, or when it carries checks of its own, since a check reads what was built. One polarity for the whole walk: this is what the node does, and it is what its children are told they need.\n    const buildsValue = needsValue || !!def.checks?.length;\n    let typeAccessor;\n    switch (type) {\n        case \"string\":\n            typeAccessor = generateStringCheck(doc, ctx, schema, accessor, buildsValue);\n            break;\n        case \"number\":\n            typeAccessor = generateNumberCheck(doc, schema, accessor);\n            break;\n        case \"boolean\":\n            typeAccessor = generateBooleanCheck(doc, accessor);\n            break;\n        case \"bigint\":\n            typeAccessor = generateBigIntCheck(doc, schema, accessor);\n            break;\n        case \"symbol\":\n            typeAccessor = generateSymbolCheck(doc, accessor);\n            break;\n        case \"undefined\":\n            typeAccessor = generateUndefinedCheck(doc, accessor);\n            break;\n        case \"null\":\n            typeAccessor = generateNullCheck(doc, accessor);\n            break;\n        case \"any\":\n        case \"unknown\":\n            // No check needed - pass through\n            typeAccessor = accessor;\n            break;\n        case \"never\":\n            doc.write(\"return INVALID;\");\n            typeAccessor = accessor;\n            break;\n        case \"void\":\n            typeAccessor = generateVoidCheck(doc, accessor);\n            break;\n        case \"nan\":\n            typeAccessor = generateNaNCheck(doc, accessor);\n            break;\n        case \"date\":\n            typeAccessor = generateDateCheck(doc, accessor);\n            break;\n        case \"object\":\n            typeAccessor = generateObjectCheck(doc, ctx, schema, accessor, buildsValue);\n            break;\n        case \"optional\":\n            typeAccessor = generateOptionalCheck(doc, ctx, schema, accessor, buildsValue);\n            break;\n        case \"nullable\":\n            typeAccessor = generateNullableCheck(doc, ctx, schema, accessor, buildsValue);\n            break;\n        case \"array\":\n            typeAccessor = generateArrayCheck(doc, ctx, schema, accessor, buildsValue);\n            break;\n        case \"literal\":\n            typeAccessor = generateLiteralCheck(doc, ctx, schema, accessor);\n            break;\n        case \"enum\":\n            typeAccessor = generateEnumCheck(doc, ctx, schema, accessor);\n            break;\n        case \"readonly\": {\n            const innerOut = generateWrapperCheck(doc, ctx, schema, accessor);\n            // Runtime freezes the parsed value (schemas.ts handleReadonlyResult).\n            const frozenVar = newVar(ctx);\n            doc.write(`const ${frozenVar} = Object.freeze(${innerOut});`);\n            typeAccessor = frozenVar;\n            break;\n        }\n        case \"success\":\n            // Runtime output is `issues.length === 0`. The fast path only reaches\n            // here when the inner check passed (failure returns INVALID and the\n            // runtime fallback reproduces the inner issues), so the output is\n            // always `true`.\n            generateWrapperCheck(doc, ctx, schema, accessor);\n            typeAccessor = \"true\";\n            break;\n        case \"default\":\n        case \"prefault\":\n            typeAccessor = generateDefaultCheck(doc, ctx, schema, accessor);\n            break;\n        case \"nonoptional\":\n            typeAccessor = generateNonOptionalCheck(doc, ctx, schema, accessor);\n            break;\n        case \"tuple\":\n            typeAccessor = generateTupleCheck(doc, ctx, schema, accessor);\n            break;\n        case \"union\":\n            typeAccessor = generateUnionCheck(doc, ctx, schema, accessor);\n            break;\n        case \"intersection\":\n            typeAccessor = generateIntersectionCheck(doc, ctx, schema, accessor);\n            break;\n        case \"record\":\n            typeAccessor = generateRecordCheck(doc, ctx, schema, accessor);\n            break;\n        case \"map\":\n            typeAccessor = generateMapCheck(doc, ctx, schema, accessor);\n            break;\n        case \"set\":\n            typeAccessor = generateSetCheck(doc, ctx, schema, accessor);\n            break;\n        case \"file\":\n            typeAccessor = generateFileCheck(doc, accessor);\n            break;\n        case \"template_literal\":\n            typeAccessor = generateTemplateLiteralCheck(doc, ctx, schema, accessor);\n            break;\n        case \"lazy\":\n            typeAccessor = generateLazyCheck(doc, ctx, schema, accessor);\n            break;\n        case \"pipe\":\n            typeAccessor = generatePipeCheck(doc, ctx, schema, accessor);\n            break;\n        case \"custom\":\n            typeAccessor = generateCustomCheck(doc, ctx, schema, accessor);\n            break;\n        case \"transform\":\n            typeAccessor = generateTransformCheck(doc, ctx, schema, accessor);\n            break;\n        case \"catch\":\n            typeAccessor = generateCatchCheck(doc, ctx, schema, accessor);\n            break;\n        default: {\n            void type;\n            throw new ZodCompileUnsupportedError(`schema type ${type}`);\n        }\n    }\n    // a node that built nothing has no checks to run: not building requires an empty check list\n    if (typeAccessor === null)\n        return null;\n    // Generate checks after the type-specific validation (may transform value)\n    return generateChecks(doc, ctx, schema, typeAccessor);\n}\nfunction generateStringCheck(doc, ctx, schema, accessor, needsValue = true) {\n    doc.write(`if (typeof ${accessor} !== \"string\") return INVALID;`);\n    // z.email() carries its format on the def, z.string().email() in def.checks; both route here so the format table has no second copy to drift from.\n    const def = schema._zod.def;\n    if (def.format === undefined)\n        return accessor;\n    return generateStringFormatCheck(doc, ctx, def, accessor, needsValue);\n}\nfunction generateNumberCheck(doc, schema, accessor) {\n    // Runtime z.number() rejects NaN and ±Infinity. Number.isFinite covers both.\n    doc.write(`if (typeof ${accessor} !== \"number\" || !Number.isFinite(${accessor})) return INVALID;`);\n    // Mini factories like z.int(), z.int32(), z.uint32(), z.float32() bake a number_format check into the schema def itself (not into def.checks). Apply the same constraint here.\n    const def = schema._zod.def;\n    if (def.check === \"number_format\" && def.format) {\n        generateNumberFormatCheck(doc, { format: def.format }, accessor);\n    }\n    return accessor;\n}\nfunction generateBooleanCheck(doc, accessor) {\n    doc.write(`if (typeof ${accessor} !== \"boolean\") return INVALID;`);\n    return accessor;\n}\nfunction generateBigIntCheck(doc, schema, accessor) {\n    doc.write(`if (typeof ${accessor} !== \"bigint\") return INVALID;`);\n    // Handle bigint format (int64, uint64) directly on the schema def\n    const def = schema._zod.def;\n    if (def.format) {\n        switch (def.format) {\n            case \"int64\":\n                doc.write(`if (${accessor} < -9223372036854775808n || ${accessor} > 9223372036854775807n) return INVALID;`);\n                break;\n            case \"uint64\":\n                doc.write(`if (${accessor} < 0n || ${accessor} > 18446744073709551615n) return INVALID;`);\n                break;\n        }\n    }\n    return accessor;\n}\nfunction generateSymbolCheck(doc, accessor) {\n    doc.write(`if (typeof ${accessor} !== \"symbol\") return INVALID;`);\n    return accessor;\n}\nfunction generateUndefinedCheck(doc, accessor) {\n    doc.write(`if (${accessor} !== undefined) return INVALID;`);\n    return accessor;\n}\nfunction generateNullCheck(doc, accessor) {\n    doc.write(`if (${accessor} !== null) return INVALID;`);\n    return accessor;\n}\nfunction generateVoidCheck(doc, accessor) {\n    doc.write(`if (${accessor} !== undefined) return INVALID;`);\n    return accessor;\n}\nfunction generateNaNCheck(doc, accessor) {\n    doc.write(`if (typeof ${accessor} !== \"number\" || !Number.isNaN(${accessor})) return INVALID;`);\n    return accessor;\n}\nfunction generateDateCheck(doc, accessor) {\n    doc.write(`if (!(${accessor} instanceof Date) || Number.isNaN(${accessor}.getTime())) return INVALID;`);\n    return accessor;\n}\nfunction generateObjectCheck(doc, ctx, schema, accessor, buildsValue = true) {\n    const def = schema._zod.def;\n    // Check that input is a non-null, non-array object\n    doc.write(`if (typeof ${accessor} !== \"object\" || ${accessor} === null || Array.isArray(${accessor})) return INVALID;`);\n    const shape = def.shape;\n    const keys = Object.keys(shape);\n    const symbolKeys = Object.getOwnPropertySymbols(shape);\n    // a symbol has no source literal, so it is hoisted as a constant; `keys` stays string-only where the emitted code uses `for...in`\n    const allKeys = symbolKeys.length ? [...keys, ...symbolKeys] : keys;\n    const keyExpr = (k) => (typeof k === \"symbol\" ? addConstant(ctx, k) : util.esc(k));\n    const propKey = (k) => (typeof k === \"symbol\" ? `[${keyExpr(k)}]` : util.esc(k));\n    const propShape = shape;\n    // `__proto__` as an own shape key can't be expressed in an output object literal (the literal form sets the prototype instead of an own property).\n    if (keys.includes(\"__proto__\")) {\n        throw new ZodCompileUnsupportedError('object shape key \"__proto__\"');\n    }\n    // Map from key to output accessor for that property\n    const propOutputs = new Map();\n    // Validate each property and collect output accessors\n    for (const key of allKeys) {\n        const propSchema = propShape[key];\n        const kx = keyExpr(key);\n        // Always cache the property read: the runtime reads input[key] exactly once, so a getter must not be re-read by checks or output assembly.\n        const inputVar = newVar(ctx);\n        doc.write(`const ${inputVar} = ${accessor}[${kx}];`);\n        if (propSchema._zod.optin !== undefined) {\n            // Any optin rung means the key may be omitted. The runtime runs the property anyway and ignores issues only when the key is genuinely absent, which is what makes exactOptional compositional.\n            const outputVar = newVar(ctx);\n            doc.write(`let ${outputVar} = (() => {`);\n            doc.indented((d) => {\n                const outputAccessor = compileChild(d, ctx, propSchema, inputVar);\n                d.write(`return ${outputAccessor};`);\n            });\n            doc.write(`})();`);\n            if (propSchema._zod.optout === \"optional\") {\n                doc.write(`if (${outputVar} === INVALID) {`);\n                doc.indented((d) => {\n                    d.write(`if (${kx} in ${accessor}) return INVALID;`);\n                    d.write(`${outputVar} = undefined;`);\n                });\n                doc.write(`}`);\n            }\n            else {\n                doc.write(`if (${outputVar} === INVALID) return INVALID;`);\n            }\n            propOutputs.set(key, outputVar);\n        }\n        else {\n            if (requiresPresenceCheck(propSchema)) {\n                doc.write(`if (!(${kx} in ${accessor})) return INVALID;`);\n            }\n            // Generate check and get output accessor\n            const outputAccessor = compileChild(doc, ctx, propSchema, inputVar, buildsValue);\n            if (outputAccessor !== null)\n                propOutputs.set(key, outputAccessor);\n        }\n    }\n    // Handle catchall\n    const catchall = def.catchall;\n    let unknownKeysMode = \"none\";\n    if (catchall) {\n        const catchallType = catchall._zod.def.type;\n        if (catchallType === \"never\") {\n            // Strict: one `for...in`, as the runtime does, so inherited enumerable keys count. An undeclared `__proto__` is reported here and excluded only from the output (#6221); an own-key count would wrongly reject a class instance.\n            const condition = keys.map((k) => `k !== ${util.esc(k)}`).join(\" && \") || \"true\";\n            doc.write(`for (const k in ${accessor}) {`);\n            doc.indented((d) => {\n                d.write(`if (${condition}) return INVALID;`);\n            });\n            doc.write(`}`);\n        }\n        else if ((catchallType === \"unknown\" || catchallType === \"any\") && !catchall._zod.def.checks?.length) {\n            unknownKeysMode = \"passthrough\";\n        }\n        else {\n            unknownKeysMode = \"schema\";\n        }\n    }\n    // else: strip mode (no catchall) - unknown keys ignored, only include known keys\n    // defaulted required outputs keep their keys even when undefined\n    const outputVar = newVar(ctx);\n    const hasConditionalKeys = allKeys.some((k) => mayOmitUndefined(propShape[k]) || dropsWhenAbsent(propShape[k]));\n    // Assert mode: every declared key is validated above, so the output literal and the unknown-key copy are pure waste. A `never` catchall already emitted its rejection loop; a schema catchall still has to validate the values it would otherwise have stored.\n    if (!buildsValue) {\n        if (unknownKeysMode === \"schema\") {\n            const knownSet = keys.length > 0 ? addConstant(ctx, new Set(keys)) : null;\n            doc.write(`for (const k in ${accessor}) {`);\n            doc.indented((d) => {\n                d.write(`if (k === \"__proto__\") continue;`);\n                if (knownSet)\n                    d.write(`if (${knownSet}.has(k)) continue;`);\n                const valVar = newVar(ctx);\n                d.write(`const ${valVar} = ${accessor}[k];`);\n                compileChild(d, ctx, catchall, valVar, false);\n            });\n            doc.write(`}`);\n        }\n        return null;\n    }\n    if (!hasConditionalKeys) {\n        const propLiterals = allKeys.map((k) => `${propKey(k)}: ${propOutputs.get(k)}`).join(\", \");\n        doc.write(`const ${outputVar} = { ${propLiterals} };`);\n    }\n    else {\n        doc.write(`const ${outputVar} = {};`);\n        for (const k of allKeys) {\n            const kx = keyExpr(k);\n            const out = propOutputs.get(k);\n            if (dropsWhenAbsent(propShape[k])) {\n                doc.write(`if (${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`);\n            }\n            else if (mayOmitUndefined(propShape[k])) {\n                doc.write(`if (${out} !== undefined || ${kx} in ${accessor}) ${outputVar}[${kx}] = ${out};`);\n            }\n            else {\n                doc.write(`${outputVar}[${kx}] = ${out};`);\n            }\n        }\n    }\n    if (unknownKeysMode !== \"none\") {\n        // Unknown keys are written directly into the output after shape keys — for...in (like the runtime) so inherited enumerables participate.\n        const knownSet = keys.length > 0 ? addConstant(ctx, new Set(keys)) : null;\n        doc.write(`for (const k in ${accessor}) {`);\n        doc.indented((d) => {\n            // Skip __proto__: assigning obj[\"__proto__\"] on a plain {} replaces the prototype via the setter rather than adding an own property. Mirrors the runtime catchall fix (#5898).\n            d.write(`if (k === \"__proto__\") continue;`);\n            if (knownSet)\n                d.write(`if (${knownSet}.has(k)) continue;`);\n            if (unknownKeysMode === \"passthrough\") {\n                d.write(`${outputVar}[k] = ${accessor}[k];`);\n            }\n            else {\n                const valVar = newVar(ctx);\n                d.write(`const ${valVar} = ${accessor}[k];`);\n                const catchallOut = compileChild(d, ctx, catchall, valVar);\n                d.write(`${outputVar}[k] = ${catchallOut};`);\n            }\n        });\n        doc.write(`}`);\n    }\n    return outputVar;\n}\nfunction generateOptionalCheck(doc, ctx, schema, accessor, buildsValue = true) {\n    const def = schema._zod.def;\n    if (isExactOptional(schema)) {\n        return generateCheck(doc, ctx, def.innerType, accessor, buildsValue);\n    }\n    // Same question $ZodOptional asks: only the top rung of the optin ladder substitutes a value for an absent input, so only it is worth running on `undefined`. Every other rung leaves the value intact, which is the skip branch below.\n    if (def.innerType._zod.optin === \"defaulted\") {\n        const outputVar = newVar(ctx);\n        const branchVar = newVar(ctx);\n        doc.write(`let ${outputVar};`);\n        doc.write(`if (${accessor} === undefined) {`);\n        doc.indented((d) => {\n            d.write(`const ${branchVar} = (() => {`);\n            d.indented((d2) => {\n                const innerOutput = generateCheck(d2, ctx, def.innerType, accessor);\n                d2.write(`return ${innerOutput};`);\n            });\n            d.write(`})();`);\n            d.write(`if (${branchVar} !== INVALID) ${outputVar} = ${branchVar};`);\n        });\n        doc.write(`} else {`);\n        doc.indented((d) => {\n            const innerOutput = generateCheck(d, ctx, def.innerType, accessor);\n            d.write(`${outputVar} = ${innerOutput};`);\n        });\n        doc.write(`}`);\n        return outputVar;\n    }\n    const outputVar = buildsValue ? newVar(ctx) : null;\n    if (outputVar)\n        doc.write(`let ${outputVar};`);\n    doc.write(`if (${accessor} !== undefined) {`);\n    doc.indented((d) => {\n        const innerOutput = generateCheck(d, ctx, def.innerType, accessor, buildsValue);\n        if (outputVar && innerOutput !== null)\n            d.write(`${outputVar} = ${innerOutput};`);\n    });\n    doc.write(`}`);\n    return outputVar;\n}\nfunction isExactOptional(schema) {\n    return schema._zod.traits?.has(\"$ZodExactOptional\") === true;\n}\n// A value-level fast path reads an absent key as `undefined`, so z.undefined(), z.any() and unions containing undefined would accept a missing property the runtime rejects.\nfunction requiresPresenceCheck(schema) {\n    return schema._zod.optin === undefined && fastPathAcceptsAbsence(schema);\n}\nfunction fastPathAcceptsAbsence(schema) {\n    // An island is handed `input[key]` and cannot tell absent from explicitly undefined, so report absence-accepting and let the object emit the presence guard (#6405).\n    if (schema._zod.def.coerce)\n        return true;\n    const def = schema._zod.def;\n    switch (def.type) {\n        case \"any\":\n        case \"unknown\":\n        case \"undefined\":\n        case \"void\":\n        case \"default\":\n        case \"prefault\":\n        case \"transform\":\n        case \"custom\":\n        case \"lazy\":\n            return true;\n        case \"string\":\n        case \"number\":\n        case \"boolean\":\n        case \"bigint\":\n        case \"symbol\":\n        case \"null\":\n        case \"never\":\n        case \"nan\":\n        case \"date\":\n        case \"object\":\n        case \"array\":\n        case \"tuple\":\n        case \"record\":\n        case \"map\":\n        case \"set\":\n        case \"file\":\n        case \"template_literal\":\n            return false;\n        case \"nonoptional\":\n            // Normally rejects an absent key, but not when something inside supplies a value for it: `.default(v).optional().nonoptional()` accepts absence and yields v. Defer to the inner — over-reporting here only costs a presence check, and a fast path that wrongly rejects still falls back to the runtime.\n            return def.innerType ? fastPathAcceptsAbsence(def.innerType) : false;\n        case \"literal\":\n            return !!def.values?.includes(undefined);\n        case \"enum\":\n            return !!schema._zod.values?.has(undefined);\n        case \"optional\":\n        case \"nullable\":\n        case \"readonly\":\n        case \"success\":\n            return def.innerType ? fastPathAcceptsAbsence(def.innerType) : true;\n        case \"catch\":\n            // catch always produces a value (inner may fail → catchValue substitutes), so it accepts an absent key regardless of inner.\n            return true;\n        case \"union\":\n            return def.options ? def.options.some(fastPathAcceptsAbsence) : true;\n        case \"intersection\":\n            if (!def.left || !def.right)\n                return true;\n            return fastPathAcceptsAbsence(def.left) && fastPathAcceptsAbsence(def.right);\n        case \"pipe\":\n            return def.in ? fastPathAcceptsAbsence(def.in) : true;\n        default:\n            return true;\n    }\n}\n/** The middle rung permits absence without supplying anything in its place, so an absent key contributes nothing — mirrors the leading gate in `handlePropertyResult`. */\nfunction dropsWhenAbsent(schema) {\n    return schema._zod.optin === \"optional\" && schema._zod.optout === \"optional\";\n}\nfunction mayOmitUndefined(schema) {\n    return (schema._zod.optin !== \"defaulted\" || schema._zod.optout === \"optional\") && mayOutputUndefined(schema);\n}\n// whether a schema's success-path output can be undefined\nfunction mayOutputUndefined(schema) {\n    const def = schema._zod.def;\n    switch (def.type) {\n        case \"string\":\n        case \"number\":\n        case \"boolean\":\n        case \"bigint\":\n        case \"symbol\":\n        case \"null\":\n        case \"nan\":\n        case \"date\":\n        case \"object\":\n        case \"array\":\n        case \"tuple\":\n        case \"record\":\n        case \"map\":\n        case \"set\":\n        case \"file\":\n        case \"template_literal\":\n        case \"never\":\n        case \"success\":\n            return false;\n        case \"literal\":\n            return !!def.values?.includes(undefined);\n        case \"enum\":\n            return !!schema._zod.values?.has(undefined);\n        case \"optional\":\n            return true;\n        case \"nullable\":\n        case \"readonly\":\n        case \"nonoptional\":\n            return def.innerType ? mayOutputUndefined(def.innerType) : true;\n        case \"union\":\n            return def.options ? def.options.some(mayOutputUndefined) : true;\n        case \"intersection\":\n            return !def.left || !def.right || mayOutputUndefined(def.left) || mayOutputUndefined(def.right);\n        case \"pipe\":\n            return def.out ? mayOutputUndefined(def.out) : true;\n        default:\n            // any/unknown/undefined/void/default/prefault/transform/custom/lazy/catch\n            return true;\n    }\n}\nfunction generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {\n    const def = schema._zod.def;\n    const outputVar = buildsValue ? newVar(ctx) : null;\n    if (outputVar)\n        doc.write(`let ${outputVar} = null;`);\n    doc.write(`if (${accessor} !== null) {`);\n    doc.indented((d) => {\n        const innerOutput = generateCheck(d, ctx, def.innerType, accessor, buildsValue);\n        if (outputVar && innerOutput !== null)\n            d.write(`${outputVar} = ${innerOutput};`);\n    });\n    doc.write(`}`);\n    return outputVar;\n}\nfunction generateSizeGate(doc, schema, size) {\n    for (const [max, check] of util.sizeCaps(schema._zod.def.checks)) {\n        doc.write(`if (${size} > ${numericOperand(max, check._zod.def.check)}) return INVALID;`);\n    }\n}\nfunction generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {\n    const def = schema._zod.def;\n    doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);\n    generateSizeGate(doc, schema, `${accessor}.length`);\n    // Build a new array with validated/transformed elements.\n    const outputVar = buildsValue ? newVar(ctx) : null;\n    const iVar = newVar(ctx);\n    const elemVar = newVar(ctx);\n    if (outputVar)\n        doc.write(`const ${outputVar} = new Array(${accessor}.length);`);\n    doc.write(`for (let ${iVar} = 0; ${iVar} < ${accessor}.length; ${iVar}++) {`);\n    doc.indented((d) => {\n        d.write(`const ${elemVar} = ${accessor}[${iVar}];`);\n        const elemOutput = compileChild(d, ctx, def.element, elemVar, buildsValue);\n        if (outputVar && elemOutput !== null)\n            d.write(`${outputVar}[${iVar}] = ${elemOutput};`);\n    });\n    doc.write(`}`);\n    return outputVar;\n}\nfunction generateLiteralCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    const values = def.values;\n    // Anything but a single value goes through Set.has: multi-value so every value participates, empty so nothing does — values[0] would be undefined and compile to an `!== undefined` check that accepts it. Single-value stays inlined for speed.\n    if (values.length !== 1) {\n        const literalSet = addConstant(ctx, new Set(values));\n        doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    const value = values[0];\n    // `$ZodLiteral` matches with `values.has`, i.e. SameValueZero, so NaN matches itself. `x !== NaN` is true for every input, which would reject everything — hand it to the same Set form the multi-value path uses.\n    if (typeof value === \"number\" && Number.isNaN(value)) {\n        const literalSet = addConstant(ctx, new Set(values));\n        doc.write(`if (!${literalSet}.has(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    if (typeof value === \"string\") {\n        doc.write(`if (${accessor} !== ${util.esc(value)}) return INVALID;`);\n    }\n    else if (typeof value === \"number\" || typeof value === \"boolean\") {\n        doc.write(`if (${accessor} !== ${value}) return INVALID;`);\n    }\n    else if (value === null) {\n        doc.write(`if (${accessor} !== null) return INVALID;`);\n    }\n    else if (value === undefined) {\n        doc.write(`if (${accessor} !== undefined) return INVALID;`);\n    }\n    else if (typeof value === \"bigint\") {\n        doc.write(`if (${accessor} !== ${value}n) return INVALID;`);\n    }\n    else {\n        throw new ZodCompileUnsupportedError(`literal type ${typeof value}`);\n    }\n    return accessor;\n}\nfunction generateEnumCheck(doc, ctx, schema, accessor) {\n    const values = schema._zod.values;\n    // z.partialRecord and friends clear `_zod.values`, leaving no set to test membership against. Throw rather than emit INVALID so a union falls back whole instead of counting a false rejection.\n    if (!values) {\n        throw new ZodCompileUnsupportedError(\"enum schema without enumerated values\");\n    }\n    const enumSet = addConstant(ctx, values);\n    doc.write(`if (!${enumSet}.has(${accessor})) return INVALID;`);\n    return accessor;\n}\nfunction generateWrapperCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    return generateCheck(doc, ctx, def.innerType, accessor);\n}\nfunction generateDefaultCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    // `defaultValue` is an accessor on schemas built through the classic/mini\n    // factories and a plain data property on ones rebuilt programmatically\n    // (deepPartial and friends). Read it off the def either way — taking only\n    // `descriptor.get` silently dropped the default for the second kind, so\n    // `.default(v)` compiled to `undefined` instead of `v`.\n    const descriptor = Object.getOwnPropertyDescriptor(schema._zod.def, \"defaultValue\");\n    const defaultGetter = descriptor\n        ? () => schema._zod.def.defaultValue\n        : undefined;\n    // prefault differs from default: undefined-input is first replaced with the prefault value, then run through the inner schema.\n    if (schema._zod.def.type === \"prefault\") {\n        if (!defaultGetter) {\n            return generateCheck(doc, ctx, def.innerType, accessor);\n        }\n        const defaultFn = addConstant(ctx, defaultGetter);\n        const inputVar = newVar(ctx);\n        doc.write(`let ${inputVar} = ${accessor};`);\n        doc.write(`if (${accessor} === undefined) ${inputVar} = ${defaultFn}();`);\n        return generateCheck(doc, ctx, def.innerType, inputVar);\n    }\n    const outputVar = newVar(ctx);\n    // Default allows undefined (replaces with default value), otherwise validates inner type\n    if (defaultGetter) {\n        const defaultFn = addConstant(ctx, defaultGetter);\n        const cloneFn = addConstant(ctx, util.shallowClone);\n        doc.write(`let ${outputVar};`);\n        doc.write(`if (${accessor} === undefined) {`);\n        doc.indented((d) => {\n            // Shallow-clone the default so callers can mutate the result without affecting subsequent parses (#5855 — also covers Map/Set).\n            d.write(`${outputVar} = ${cloneFn}(${defaultFn}());`);\n        });\n        doc.write(`} else {`);\n        doc.indented((d) => {\n            const innerOutput = generateCheck(d, ctx, def.innerType, accessor);\n            d.write(`${outputVar} = ${innerOutput} === undefined ? ${cloneFn}(${defaultFn}()) : ${innerOutput};`);\n        });\n        doc.write(`}`);\n    }\n    else {\n        doc.write(`let ${outputVar};`);\n        doc.write(`if (${accessor} !== undefined) {`);\n        doc.indented((d) => {\n            const innerOutput = generateCheck(d, ctx, def.innerType, accessor);\n            d.write(`${outputVar} = ${innerOutput};`);\n        });\n        doc.write(`}`);\n    }\n    return outputVar;\n}\nfunction generateNonOptionalCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    // The runtime inspects what the inner produced, not what it was given: a catch can turn a defined input into undefined, a default an absent one into a value.\n    const innerOutput = generateCheck(doc, ctx, def.innerType, accessor);\n    const outputVar = newVar(ctx);\n    doc.write(`const ${outputVar} = ${innerOutput};`);\n    doc.write(`if (${outputVar} === undefined) return INVALID;`);\n    return outputVar;\n}\nfunction generateTupleCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    const items = def.items;\n    const rest = def.rest;\n    doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);\n    // Mirror the runtime's getTupleOptStart: find the first index where every subsequent slot accepts `undefined` (i.e. is optional on input). Anything shorter than this is too_small; trailing absent slots are legal.\n    const optinStart = getTupleOptStart(items, \"optin\");\n    const optoutStart = getTupleOptStart(items, \"optout\");\n    // Length bounds\n    if (rest) {\n        // With rest: minimum length is the last required input slot\n        doc.write(`if (${accessor}.length < ${optinStart}) return INVALID;`);\n    }\n    else {\n        // No rest: input must be in [optinStart, items.length]\n        doc.write(`if (${accessor}.length < ${optinStart} || ${accessor}.length > ${items.length}) return INVALID;`);\n    }\n    // Build the output in assignment order so absent optional-output tail slots can truncate while default/prefault slots still fill missing positions.\n    const outputVar = newVar(ctx);\n    doc.write(`const ${outputVar} = [];`);\n    // Validate and collect each fixed item\n    for (let i = 0; i < items.length; i++) {\n        const itemSchema = items[i];\n        if (i >= optoutStart) {\n            doc.write(`if (${outputVar}.length === ${i}) {`);\n            doc.indented((d) => {\n                d.write(`if (${i} < ${accessor}.length) {`);\n                d.indented((d2) => {\n                    const elemVar = newVar(ctx);\n                    d2.write(`const ${elemVar} = ${accessor}[${i}];`);\n                    const elemOutput = compileChild(d2, ctx, itemSchema, elemVar);\n                    d2.write(`${outputVar}[${i}] = ${elemOutput};`);\n                });\n                d.write(`} else {`);\n                d.indented((d2) => {\n                    // Middle rung: absence supplies nothing in its place, so truncate rather than running the item on `undefined` and keeping what it invents. Mirrors the leading gate in `handleTupleResults`.\n                    if (dropsWhenAbsent(itemSchema)) {\n                        d2.write(`${outputVar}.length = ${i};`);\n                        return;\n                    }\n                    const elemVar = newVar(ctx);\n                    const branchVar = newVar(ctx);\n                    d2.write(`const ${elemVar} = undefined;`);\n                    d2.write(`const ${branchVar} = (() => {`);\n                    d2.indented((d3) => {\n                        const elemOutput = compileChild(d3, ctx, itemSchema, elemVar);\n                        d3.write(`return ${elemOutput};`);\n                    });\n                    d2.write(`})();`);\n                    d2.write(`if (${branchVar} === INVALID || ${branchVar} === undefined) ${outputVar}.length = ${i};`);\n                    d2.write(`else ${outputVar}[${i}] = ${branchVar};`);\n                });\n                d.write(`}`);\n            });\n            doc.write(`}`);\n        }\n        else {\n            const elemVar = newVar(ctx);\n            doc.write(`const ${elemVar} = ${accessor}[${i}];`);\n            const elemOutput = compileChild(doc, ctx, itemSchema, elemVar);\n            doc.write(`${outputVar}[${i}] = ${elemOutput};`);\n        }\n    }\n    // Validate and collect rest elements if present\n    if (rest) {\n        const iVar = newVar(ctx);\n        const elemVar = newVar(ctx);\n        doc.write(`for (let ${iVar} = ${items.length}; ${iVar} < ${accessor}.length; ${iVar}++) {`);\n        doc.indented((d) => {\n            d.write(`const ${elemVar} = ${accessor}[${iVar}];`);\n            const elemOutput = compileChild(d, ctx, rest, elemVar);\n            d.write(`${outputVar}[${iVar}] = ${elemOutput};`);\n        });\n        doc.write(`}`);\n    }\n    return outputVar;\n}\nfunction getTupleOptStart(items, key) {\n    for (let i = items.length - 1; i >= 0; i--) {\n        // Mirrors the runtime: optin is a three-rung ladder so any rung above `undefined` permits an absent slot; optout stays two-valued.\n        const omittable = key === \"optin\" ? items[i]._zod.optin !== undefined : items[i]._zod.optout === \"optional\";\n        if (!omittable)\n            return i + 1;\n    }\n    return 0;\n}\nfunction generateUnionCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    const options = def.options;\n    if (def.discriminator) {\n        return generateDiscriminatedUnionCheck(doc, ctx, def, accessor);\n    }\n    // z.xor requires *exactly one* option to match. Match-counting in the fast path is only sound if every branch is exactly as strict as the runtime — any falsely-rejecting branch silently turns a multi-match rejection into an accept. Force the runtime for this rare combinator.\n    if (def.inclusive === false) {\n        throw new ZodCompileUnsupportedError(\"exclusive unions (z.xor)\");\n    }\n    if (options.length === 0) {\n        doc.write(\"return INVALID;\");\n        return accessor;\n    }\n    if (options.length === 1) {\n        return generateCheck(doc, ctx, options[0], accessor);\n    }\n    // Check if all options are bare literals - use Set optimization. A literal option carrying checks (e.g. .refine) must take the general path or the Set would accept values its checks reject.\n    const allLiterals = options.every((opt) => opt._zod.def.type === \"literal\" && !opt._zod.def.checks?.length);\n    if (allLiterals) {\n        const values = new Set(options.flatMap((opt) => opt._zod.def.values));\n        const valuesConst = addConstant(ctx, values);\n        doc.write(`if (!${valuesConst}.has(${accessor})) return INVALID;`);\n        return accessor;\n    }\n    // General case: try each option until one succeeds Use IIFEs that return the output or INVALID\n    const outputVar = newVar(ctx);\n    doc.write(`let ${outputVar};`);\n    for (let i = 0; i < options.length; i++) {\n        const opt = options[i];\n        if (i === 0) {\n            doc.write(`${outputVar} = (() => {`);\n        }\n        else {\n            doc.write(`if (${outputVar} === INVALID) ${outputVar} = (() => {`);\n        }\n        doc.indented((d) => {\n            // Generate check inside IIFE - returns INVALID on failure\n            const branchOutput = generateCheck(d, ctx, opt, accessor);\n            d.write(`return ${branchOutput};`);\n        });\n        doc.write(`})();`);\n    }\n    doc.write(`if (${outputVar} === INVALID) return INVALID;`);\n    return outputVar;\n}\nfunction generateDiscriminatedUnionCheck(doc, ctx, def, accessor) {\n    if (def.unionFallback) {\n        throw new ZodCompileUnsupportedError(\"discriminated union with unionFallback\");\n    }\n    if (def.options.length === 0) {\n        doc.write(\"return INVALID;\");\n        return accessor;\n    }\n    const discVar = newVar(ctx);\n    const outputVar = newVar(ctx);\n    doc.write(`const ${discVar} = ${accessor}?.[${util.esc(def.discriminator)}];`);\n    doc.write(`let ${outputVar};`);\n    let firstBranch = true;\n    const claimed = new Set();\n    for (const option of def.options) {\n        const values = option._zod.propValues?.[def.discriminator];\n        if (!values || values.size === 0) {\n            throw new ZodCompileUnsupportedError(\"discriminated union option without static discriminator values\");\n        }\n        // let the interpreter handle collisions instead of compiling first-match dispatch\n        for (const value of values) {\n            if (claimed.has(value)) {\n                throw new ZodCompileUnsupportedError(`duplicate discriminator value ${String(value)}`);\n            }\n            claimed.add(value);\n        }\n        const conditions = Array.from(values, (value) => literalEquality(ctx, discVar, value));\n        const prefix = firstBranch ? \"if\" : \"else if\";\n        doc.write(`${prefix} (${conditions.join(\" || \")}) {`);\n        doc.indented((d) => {\n            const branchOutput = generateCheck(d, ctx, option, accessor);\n            d.write(`${outputVar} = ${branchOutput};`);\n        });\n        doc.write(`}`);\n        firstBranch = false;\n    }\n    doc.write(`else { return INVALID; }`);\n    return outputVar;\n}\nfunction literalEquality(ctx, accessor, value) {\n    if (typeof value === \"string\")\n        return `${accessor} === ${util.esc(value)}`;\n    if (typeof value === \"number\") {\n        if (Number.isNaN(value))\n            return `Number.isNaN(${accessor})`;\n        return `${accessor} === ${value}`;\n    }\n    if (typeof value === \"boolean\")\n        return `${accessor} === ${value}`;\n    if (value === null)\n        return `${accessor} === null`;\n    if (value === undefined)\n        return `${accessor} === undefined`;\n    if (typeof value === \"bigint\")\n        return `${accessor} === ${value}n`;\n    if (typeof value === \"symbol\") {\n        const symbolConst = addConstant(ctx, value);\n        return `${accessor} === ${symbolConst}`;\n    }\n    throw new ZodCompileUnsupportedError(`literal discriminator value ${String(value)}`);\n}\nfunction generateIntersectionCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    // An unmergeable merge, and a child failing before the merge is even reached, both return INVALID for a case the interpreter answers with a throw.\n    ctx.definite = false;\n    const leftOutput = compileChild(doc, ctx, def.left, accessor);\n    const rightOutput = compileChild(doc, ctx, def.right, accessor);\n    // Hoist the runtime merge helper so recursive object/array merge semantics stay in one place. If the merge is invalid, return INVALID and let the runtime fallback construct canonical errors.\n    const mergeConst = addConstant(ctx, mergeValues);\n    const mergedVar = newVar(ctx);\n    doc.write(`const ${mergedVar} = ${mergeConst}(${leftOutput}, ${rightOutput});`);\n    doc.write(`if (!${mergedVar}.valid) return INVALID;`);\n    return `${mergedVar}.data`;\n}\nfunction generateRecordCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    // Use util.isPlainObject (rejects Date, Map, Set, class instances, etc.) to match runtime behavior. Hoisted call instead of inline so this stays a single source of truth with the runtime parser.\n    const isPlainObjectConst = addConstant(ctx, util.isPlainObject);\n    doc.write(`if (!${isPlainObjectConst}(${accessor})) return INVALID;`);\n    const outputVar = newVar(ctx);\n    const kVar = newVar(ctx);\n    const valVar = newVar(ctx);\n    doc.write(`const ${outputVar} = {};`);\n    // Exhaustive record. The runtime gates this on `values && !def.partial`, since z.partialRecord keeps its value set but makes every key optional; a loose record passes unrecognized keys through, which the per-key scan cannot express.\n    const recordDef = def;\n    const keyValues = recordDef.partial ? undefined : def.keyType._zod.values;\n    if (keyValues) {\n        const inputKeys = [];\n        for (const key of keyValues) {\n            if (!(typeof key === \"string\" || typeof key === \"number\" || typeof key === \"symbol\")) {\n                throw new ZodCompileUnsupportedError(`record key value ${String(key)}`);\n            }\n            const inputKey = typeof key === \"number\" ? key.toString() : key;\n            if (inputKey === \"__proto__\") {\n                // `out[\"__proto__\"] = v` would hit the prototype setter on the output.\n                throw new ZodCompileUnsupportedError('record key \"__proto__\"');\n            }\n            inputKeys.push(inputKey);\n            const keyConst = addConstant(ctx, key);\n            const outKey = generateCheck(doc, ctx, def.keyType, keyConst);\n            // Read the property once. Passing the raw expression let compileChild validate one read while the output write performed a second, so a getter could hand back a value nothing had checked.\n            const valueVar = newVar(ctx);\n            doc.write(`const ${valueVar} = ${accessor}[${literalPropertyKey(ctx, inputKey)}];`);\n            const valOutput = compileChild(doc, ctx, def.valueType, valueVar);\n            doc.write(`${outputVar}[${outKey}] = ${valOutput};`);\n        }\n        // `mode: \"loose\"` changes only what happens to unrecognized keys, so it belongs here rather than the per-present-key scan. Passing them through matches the runtime, which skips `__proto__`.\n        const knownKeysConst = addConstant(ctx, new Set(inputKeys));\n        doc.write(`for (const ${kVar} in ${accessor}) {`);\n        doc.indented((d) => {\n            d.write(`if (${knownKeysConst}.has(${kVar})) continue;`);\n            if (recordDef.mode === \"loose\") {\n                d.write(`if (${kVar} !== \"__proto__\") ${outputVar}[${kVar}] = ${accessor}[${kVar}];`);\n            }\n            else {\n                d.write(`return INVALID;`);\n            }\n        });\n        doc.write(`}`);\n        return outputVar;\n    }\n    // The bare-string shortcut below only tests `typeof key === \"string\"`, so it\n    // is correct exclusively for a `z.string()` carrying nothing else. A string\n    // *format* lives on the def rather than in `checks` — `z.record(z.email(), …)`\n    // reads as a plain string here — and coercion rewrites the key, so both have\n    // to take the general path or the shortcut accepts keys the runtime rejects.\n    const keyDef = def.keyType._zod.def;\n    const keyIsBareString = keyDef.type === \"string\" && keyDef.format === undefined && !keyDef.coerce && (keyDef.checks?.length ?? 0) === 0;\n    if (!keyIsBareString) {\n        // A key schema with no value set is a constraint every key must satisfy\n        // (`z.email()`, `z.string().min(3)`, `z.number()`, a template literal).\n        // The runtime runs it against each own enumerable key and writes the value\n        // under the key it produced, so compile it once and call it per key.\n        const isLoose = def.mode === \"loose\";\n        // the key compiles in its own context, so carry its verdict out: a key schema that can answer INVALID undecidably makes this validator undecidable too\n        const keyFn = compileFn(def.keyType);\n        if (keyFn.definite === false)\n            ctx.definite = false;\n        const keyFast = addConstant(ctx, keyFn);\n        const numericConst = addConstant(ctx, regexes.number);\n        const outKeyVar = newVar(ctx);\n        // the body runs once per string key and once per symbol key, since a key schema can accept symbols\n        emitOwnKeys(doc, ctx, accessor, kVar, (d) => {\n            d.write(`let ${outKeyVar} = ${keyFast}(${kVar});`);\n            // Numeric-string retry, mirroring the runtime: a key the schema rejects as a string is tried again as a number, so z.record(z.number(), …) matches the numeric keys JavaScript stringified on the way in.\n            d.write(`if (${outKeyVar} === INVALID && typeof ${kVar} === \"string\" && ${numericConst}.test(${kVar})) ${outKeyVar} = ${keyFast}(Number(${kVar}));`);\n            if (isLoose) {\n                // A loose record keeps a key its schema rejects, copying the value across unvalidated rather than failing the parse.\n                d.write(`if (${outKeyVar} === INVALID) { ${outputVar}[${kVar}] = ${accessor}[${kVar}]; continue; }`);\n            }\n            else {\n                d.write(`if (${outKeyVar} === INVALID) return INVALID;`);\n            }\n            // The guard above tested the input key, but the schema can normalize an ordinary key into __proto__; re-check the one actually written under.\n            d.write(`if (${outKeyVar} === \"__proto__\") continue;`);\n            // Read once: the raw expression would be evaluated again by the output write below, so an accessor could return an unvalidated second value.\n            const valueVar = newVar(ctx);\n            d.write(`const ${valueVar} = ${accessor}[${kVar}];`);\n            const valOutput = compileChild(d, ctx, def.valueType, valueVar);\n            d.write(`${outputVar}[${outKeyVar}] = ${valOutput};`);\n        });\n        return outputVar;\n    }\n    // Plain z.string() keys: every own enumerable string key's value is validated, and an own enumerable symbol key fails the string key schema, as it does in the runtime's Reflect.ownKeys walk.\n    emitOwnKeys(doc, ctx, accessor, kVar, (d) => {\n        d.write(`const ${valVar} = ${accessor}[${kVar}];`);\n        const valOutput = compileChild(d, ctx, def.valueType, valVar);\n        d.write(`${outputVar}[${kVar}] = ${valOutput};`);\n    }, `return INVALID;`);\n    return outputVar;\n}\n// Walks the own enumerable keys of a plain object in Reflect.ownKeys order — strings from getOwnPropertyNames, then symbols — instead of Reflect.ownKeys, whose accumulator made that walk 3–6x the cost of the loop it fed. Both snapshots are taken before any value is read and every key is rechecked with propertyIsEnumerable when visited, exactly the runtime's walk, so a getter that adds, deletes, hides or reveals a key mid-walk sees the runtime's verdict; for-in and Object.keys were no faster and each lost a case (for-in enumerates the prototype chain after the own keys, Object.keys drops a key that is non-enumerable at snapshot time). `body` is written once for the string loop and once for the symbol loop unless `onSymbol` replaces the latter.\nfunction emitOwnKeys(doc, ctx, accessor, kVar, body, onSymbol) {\n    const propIsEnumerableConst = addConstant(ctx, Object.prototype.propertyIsEnumerable);\n    const symsVar = newVar(ctx);\n    const keysVar = newVar(ctx);\n    const iVar = newVar(ctx);\n    doc.write(`const ${symsVar} = Object.getOwnPropertySymbols(${accessor});`);\n    doc.write(`const ${keysVar} = Object.getOwnPropertyNames(${accessor});`);\n    doc.write(`for (let ${iVar} = 0; ${iVar} < ${keysVar}.length; ${iVar}++) {`);\n    doc.indented((d) => {\n        d.write(`const ${kVar} = ${keysVar}[${iVar}];`);\n        d.write(`if (${kVar} === \"__proto__\" || !${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`);\n        body(d);\n    });\n    doc.write(`}`);\n    doc.write(`for (let ${iVar} = 0; ${iVar} < ${symsVar}.length; ${iVar}++) {`);\n    doc.indented((d) => {\n        d.write(`const ${kVar} = ${symsVar}[${iVar}];`);\n        d.write(`if (!${propIsEnumerableConst}.call(${accessor}, ${kVar})) continue;`);\n        if (onSymbol)\n            d.write(onSymbol);\n        else\n            body(d);\n    });\n    doc.write(`}`);\n}\nfunction literalPropertyKey(ctx, key) {\n    if (typeof key === \"string\")\n        return util.esc(key);\n    return addConstant(ctx, key);\n}\nfunction generateMapCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);\n    generateSizeGate(doc, schema, `${accessor}.size`);\n    const outputVar = newVar(ctx);\n    const kVar = newVar(ctx);\n    const valVar = newVar(ctx);\n    doc.write(`const ${outputVar} = new Map();`);\n    doc.write(`for (const [${kVar}, ${valVar}] of ${accessor}) {`);\n    doc.indented((d) => {\n        const keyOutput = generateCheck(d, ctx, def.keyType, kVar);\n        const valOutput = generateCheck(d, ctx, def.valueType, valVar);\n        d.write(`${outputVar}.set(${keyOutput}, ${valOutput});`);\n    });\n    doc.write(`}`);\n    return outputVar;\n}\nfunction generateSetCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);\n    generateSizeGate(doc, schema, `${accessor}.size`);\n    const outputVar = newVar(ctx);\n    const valVar = newVar(ctx);\n    doc.write(`const ${outputVar} = new Set();`);\n    doc.write(`for (const ${valVar} of ${accessor}) {`);\n    doc.indented((d) => {\n        const valOutput = generateCheck(d, ctx, def.valueType, valVar);\n        d.write(`${outputVar}.add(${valOutput});`);\n    });\n    doc.write(`}`);\n    return outputVar;\n}\nfunction generateFileCheck(doc, accessor) {\n    // Runtime $ZodFile is a bare `instanceof File`, including the implicit global lookup. The previous duck-typed fallback accepted arbitrary {name, size} objects in File-less environments — behavior the runtime never had.\n    doc.write(`if (!(${accessor} instanceof File)) return INVALID;`);\n    return accessor;\n}\nfunction generateTemplateLiteralCheck(doc, ctx, schema, accessor) {\n    doc.write(`if (typeof ${accessor} !== \"string\") return INVALID;`);\n    // Template literal schemas have a pre-computed pattern in _zod.pattern\n    const pattern = schema._zod.pattern;\n    if (pattern) {\n        const patternConst = addConstant(ctx, pattern);\n        doc.write(`${patternConst}.lastIndex = 0;`);\n        doc.write(`if (!${patternConst}.test(${accessor})) return INVALID;`);\n    }\n    return accessor;\n}\nfunction generateLazyCheck(doc, ctx, schema, accessor) {\n    // For lazy schemas, we use a cached parser that falls back to runtime Zod parsing This handles recursive schemas correctly by avoiding infinite compilation loops\n    const def = schema._zod.def;\n    const getterConst = addUserConstant(ctx, def.getter);\n    const cacheConst = addConstant(ctx, { parser: null });\n    doc.write(`if (!${cacheConst}.parser) {`);\n    doc.indented((d) => {\n        d.write(`const inner = ${getterConst}();`);\n        d.write(`${cacheConst}.parser = function(input) {`);\n        d.indented((d2) => {\n            // Use runtime Zod parsing - this correctly handles recursive schemas Pass an empty ctx like runtimeRun does — runtime parsers read ctx.skipChecks/ctx.direction unconditionally and crash on undefined.\n            d2.write(`const result = inner._zod.run({ value: input, issues: [] }, {});`);\n            d2.write(`return result.issues.length === 0 ? result.value : INVALID;`);\n        });\n        d.write(`};`);\n    });\n    doc.write(`}`);\n    const outputVar = newVar(ctx);\n    doc.write(`const ${outputVar} = ${cacheConst}.parser(${accessor});`);\n    doc.write(`if (${outputVar} === INVALID) return INVALID;`);\n    return outputVar;\n}\nfunction generatePipeCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    // Validate input type first\n    const inputOutput = generateCheck(doc, ctx, def.in, accessor);\n    if (def.transform) {\n        // Apply transform and validate output. The transform may read its second `payload` argument (codec transforms like z.stringbool() push issues there) so wrap the call in a helper that spoofs a payload. Pushed issues signal INVALID and the wrapper falls back to the runtime, and a plain function handing back a promise answers INVALID too — union parity, but not a decidable rejection at the top level.\n        if (isAsyncFunction(def.transform)) {\n            throw new ZodCompileAsyncError(\"z.compile: async transforms in pipes are not supported\");\n        }\n        const transformFn = def.transform;\n        const helperFn = (value) => {\n            // `addIssue` has to be here: a transform reporting through it is reporting, not failing. Without it the call threw a TypeError that the old catch swallowed into a fallback, so every ctx.addIssue transform quietly lost its fast path and the real error was never visible.\n            const fakePayload = { value, issues: [], addIssue: pushIssue };\n            // A throw is deliberately not caught. The interpreter lets one propagate out of the whole parse; swallowing it into INVALID turned a thrown error into a merely-rejected union branch, so a later branch answered instead.\n            const result = transformFn(value, fakePayload);\n            if (result instanceof Promise)\n                return INVALID;\n            return fakePayload.issues.length === 0 ? result : INVALID;\n        };\n        const helperConst = addUserConstant(ctx, helperFn);\n        const transformedVar = newVar(ctx);\n        doc.write(`const ${transformedVar} = ${helperConst}(${inputOutput});`);\n        doc.write(`if (${transformedVar} === INVALID) return INVALID;`);\n        return generateCheck(doc, ctx, def.out, transformedVar);\n    }\n    else {\n        // No transform - validate output type on same value\n        return generateCheck(doc, ctx, def.out, inputOutput);\n    }\n}\nfunction isAsyncFunction(fn) {\n    return (typeof fn === \"function\" &&\n        (fn.constructor.name === \"AsyncFunction\" ||\n            fn[Symbol.toStringTag] === \"AsyncFunction\"));\n}\nfunction generateCustomCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    if (def.fn) {\n        // Check for async function\n        if (isAsyncFunction(def.fn)) {\n            throw new ZodCompileAsyncError(\"z.compile: async custom predicates are not supported\");\n        }\n        // Custom schema with a predicate function (e.g. z.instanceof). `isAsyncFunction` above is syntactic, so a plain function returning a promise reaches here, and a promise is truthy — it would read as a pass where the interpreter throws.\n        const fnConst = addUserConstant(ctx, def.fn);\n        const throwAsyncConst = addConstant(ctx, throwAsync);\n        const resVar = newVar(ctx);\n        doc.write(`const ${resVar} = ${fnConst}(${accessor});`);\n        doc.write(`if (${resVar} instanceof Promise) ${throwAsyncConst}();`);\n        doc.write(`if (!${resVar}) return INVALID;`);\n    }\n    else {\n        throw new ZodCompileUnsupportedError(\"custom schema without a predicate function\");\n    }\n    return accessor;\n}\n// Runtime helper for a compiled `catch`: runs the inner schema once and returns its value when it succeeded. Anything else — a failure the catch would handle, or an async inner — returns INVALID so the interpreter takes over.\nfunction runtimeCatch(innerSchema, catchValue, value) {\n    const result = innerSchema._zod.run({ value, issues: [] }, {});\n    if (result && typeof result.then === \"function\")\n        return INVALID;\n    const r = result;\n    if (r.issues.length === 0)\n        return r.value;\n    // Only reached for a catch value that ignores the parse context — codegen refuses the rest — so there are no issues to finalize and nothing here needs the caller's error map.\n    return catchValue();\n}\nfunction generateCatchCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    // An untagged catchValue is a user callback, and one reading `ctx.error` needs the caller's per-parse error map. Catch *succeeds*, so a wrong message there is unobservable — refuse at codegen, and not islandable either, since `runtimeRun` has no context to hand it.\n    if (!def.catchValue[util.CONSTANT_CATCH]) {\n        throw new ZodCompileUnsupportedError(\"catch with a callback (only a constant catch value compiles)\", false);\n    }\n    const outputVar = newVar(ctx);\n    doc.write(`let ${outputVar} = (() => {`);\n    doc.indented((d) => {\n        const innerOut = compileChild(d, ctx, def.innerType, accessor);\n        d.write(`return ${innerOut};`);\n    });\n    doc.write(`})();`);\n    const innerConst = addConstant(ctx, def.innerType);\n    const catchConst = addUserConstant(ctx, def.catchValue);\n    const catchHelperConst = addConstant(ctx, runtimeCatch);\n    doc.write(`if (${outputVar} === INVALID) {`);\n    doc.indented((d) => {\n        d.write(`${outputVar} = ${catchHelperConst}(${innerConst}, ${catchConst}, ${accessor});`);\n        d.write(`if (${outputVar} === INVALID) return INVALID;`);\n    });\n    doc.write(`}`);\n    return outputVar;\n}\nfunction generateTransformCheck(doc, ctx, schema, accessor) {\n    const def = schema._zod.def;\n    if (def.transform) {\n        // Check for async transform\n        if (isAsyncFunction(def.transform)) {\n            throw new ZodCompileAsyncError(\"z.compile: async transforms are not supported\");\n        }\n        // Create a helper that runs the transform and returns the result or INVALID on error\n        const transformFn = def.transform;\n        const helperFn = (value) => {\n            const fakePayload = { value, issues: [], addIssue: pushIssue };\n            // As in the pipe helper: a throw propagates, because the interpreter lets it out of the whole parse rather than treating it as a failed branch.\n            const result = transformFn(value, fakePayload);\n            if (result instanceof Promise)\n                return INVALID;\n            return fakePayload.issues.length === 0 ? result : INVALID;\n        };\n        const helperConst = addUserConstant(ctx, helperFn);\n        const outputVar = newVar(ctx);\n        doc.write(`const ${outputVar} = ${helperConst}(${accessor});`);\n        doc.write(`if (${outputVar} === INVALID) return INVALID;`);\n        return outputVar;\n    }\n    return accessor;\n}\n","import * as checks from \"./checks.js\";\nimport * as registries from \"./registries.js\";\nimport * as schemas from \"./schemas.js\";\nimport * as util from \"./util.js\";\nfunction snapshotChecks(def) {\n    if (def.checks)\n        def.checks = [...def.checks];\n    return def;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _string(Class, params) {\n    return new Class(snapshotChecks({ type: \"string\", ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedString(Class, params) {\n    return new Class(snapshotChecks({ type: \"string\", coerce: true, ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _email(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"email\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _guid(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"guid\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuid(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"uuid\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv4(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"uuid\",\n        check: \"string_format\",\n        abort: false,\n        version: \"v4\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv6(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"uuid\",\n        check: \"string_format\",\n        abort: false,\n        version: \"v6\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv7(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"uuid\",\n        check: \"string_format\",\n        abort: false,\n        version: \"v7\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _url(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"url\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _emoji(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"emoji\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nanoid(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"nanoid\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link _cuid2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\n// @__NO_SIDE_EFFECTS__\nexport function _cuid(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"cuid\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cuid2(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"cuid2\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ulid(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"ulid\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _xid(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"xid\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ksuid(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"ksuid\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv4(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"ipv4\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv6(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"ipv6\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mac(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"mac\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv4(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"cidrv4\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv6(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"cidrv6\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"base64\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64url(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"base64url\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _e164(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"e164\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _creditCard(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"credit_card\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _iban(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"iban\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _jwt(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"jwt\",\n        check: \"string_format\",\n        abort: false,\n        ...util.normalizeParams(params),\n    });\n}\nexport const TimePrecision = {\n    Any: null,\n    Minute: -1,\n    Second: 0,\n    Millisecond: 3,\n    Microsecond: 6,\n};\n// @__NO_SIDE_EFFECTS__\nexport function _isoDateTime(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"datetime\",\n        check: \"string_format\",\n        offset: false,\n        local: false,\n        precision: null,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDate(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"date\",\n        check: \"string_format\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoTime(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"time\",\n        check: \"string_format\",\n        precision: null,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDuration(Class, params) {\n    return new Class({\n        type: \"string\",\n        format: \"duration\",\n        check: \"string_format\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _number(Class, params) {\n    return new Class(snapshotChecks({ type: \"number\", checks: [], ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedNumber(Class, params) {\n    return new Class(snapshotChecks({ type: \"number\", coerce: true, checks: [], ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int(Class, params) {\n    return new Class({\n        type: \"number\",\n        check: \"number_format\",\n        abort: false,\n        format: \"safeint\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float32(Class, params) {\n    return new Class({\n        type: \"number\",\n        check: \"number_format\",\n        abort: false,\n        format: \"float32\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float64(Class, params) {\n    return new Class({\n        type: \"number\",\n        check: \"number_format\",\n        abort: false,\n        format: \"float64\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int32(Class, params) {\n    return new Class({\n        type: \"number\",\n        check: \"number_format\",\n        abort: false,\n        format: \"int32\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint32(Class, params) {\n    return new Class({\n        type: \"number\",\n        check: \"number_format\",\n        abort: false,\n        format: \"uint32\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _boolean(Class, params) {\n    return new Class({\n        type: \"boolean\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBoolean(Class, params) {\n    return new Class({\n        type: \"boolean\",\n        coerce: true,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _bigint(Class, params) {\n    return new Class({\n        type: \"bigint\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBigint(Class, params) {\n    return new Class({\n        type: \"bigint\",\n        coerce: true,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int64(Class, params) {\n    return new Class({\n        type: \"bigint\",\n        check: \"bigint_format\",\n        abort: false,\n        format: \"int64\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint64(Class, params) {\n    return new Class({\n        type: \"bigint\",\n        check: \"bigint_format\",\n        abort: false,\n        format: \"uint64\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _symbol(Class, params) {\n    return new Class({\n        type: \"symbol\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _undefined(Class, params) {\n    return new Class({\n        type: \"undefined\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _null(Class, params) {\n    return new Class({\n        type: \"null\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _any(Class) {\n    return new Class({\n        type: \"any\",\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _unknown(Class) {\n    return new Class({\n        type: \"unknown\",\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _never(Class, params) {\n    return new Class({\n        type: \"never\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _void(Class, params) {\n    return new Class({\n        type: \"void\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _date(Class, params) {\n    return new Class({\n        type: \"date\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedDate(Class, params) {\n    return new Class({\n        type: \"date\",\n        coerce: true,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nan(Class, params) {\n    return new Class({\n        type: \"nan\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lt(value, params) {\n    return new checks.$ZodCheckLessThan({\n        check: \"less_than\",\n        ...util.normalizeParams(params),\n        value,\n        inclusive: false,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lte(value, params) {\n    return new checks.$ZodCheckLessThan({\n        check: \"less_than\",\n        ...util.normalizeParams(params),\n        value,\n        inclusive: true,\n    });\n}\nexport { \n/** @deprecated Use `z.lte()` instead. */\n_lte as _max, };\n// @__NO_SIDE_EFFECTS__\nexport function _gt(value, params) {\n    return new checks.$ZodCheckGreaterThan({\n        check: \"greater_than\",\n        ...util.normalizeParams(params),\n        value,\n        inclusive: false,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _gte(value, params) {\n    return new checks.$ZodCheckGreaterThan({\n        check: \"greater_than\",\n        ...util.normalizeParams(params),\n        value,\n        inclusive: true,\n    });\n}\nexport { \n/** @deprecated Use `z.gte()` instead. */\n_gte as _min, };\n// @__NO_SIDE_EFFECTS__\nexport function _positive(params) {\n    return _gt(0, params);\n}\n// negative\n// @__NO_SIDE_EFFECTS__\nexport function _negative(params) {\n    return _lt(0, params);\n}\n// nonpositive\n// @__NO_SIDE_EFFECTS__\nexport function _nonpositive(params) {\n    return _lte(0, params);\n}\n// nonnegative\n// @__NO_SIDE_EFFECTS__\nexport function _nonnegative(params) {\n    return _gte(0, params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function _multipleOf(value, params) {\n    return new checks.$ZodCheckMultipleOf({\n        check: \"multiple_of\",\n        ...util.normalizeParams(params),\n        value,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxSize(maximum, params) {\n    return new checks.$ZodCheckMaxSize({\n        check: \"max_size\",\n        ...util.normalizeParams(params),\n        maximum,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minSize(minimum, params) {\n    return new checks.$ZodCheckMinSize({\n        check: \"min_size\",\n        ...util.normalizeParams(params),\n        minimum,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _size(size, params) {\n    return new checks.$ZodCheckSizeEquals({\n        check: \"size_equals\",\n        ...util.normalizeParams(params),\n        size,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxLength(maximum, params) {\n    const ch = new checks.$ZodCheckMaxLength({\n        check: \"max_length\",\n        ...util.normalizeParams(params),\n        maximum,\n    });\n    return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minLength(minimum, params) {\n    return new checks.$ZodCheckMinLength({\n        check: \"min_length\",\n        ...util.normalizeParams(params),\n        minimum,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _length(length, params) {\n    return new checks.$ZodCheckLengthEquals({\n        check: \"length_equals\",\n        ...util.normalizeParams(params),\n        length,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _regex(pattern, params) {\n    return new checks.$ZodCheckRegex({\n        check: \"string_format\",\n        format: \"regex\",\n        ...util.normalizeParams(params),\n        pattern,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lowercase(params) {\n    return new checks.$ZodCheckLowerCase({\n        check: \"string_format\",\n        format: \"lowercase\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uppercase(params) {\n    return new checks.$ZodCheckUpperCase({\n        check: \"string_format\",\n        format: \"uppercase\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _includes(includes, params) {\n    return new checks.$ZodCheckIncludes({\n        check: \"string_format\",\n        format: \"includes\",\n        ...util.normalizeParams(params),\n        includes,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _startsWith(prefix, params) {\n    return new checks.$ZodCheckStartsWith({\n        check: \"string_format\",\n        format: \"starts_with\",\n        ...util.normalizeParams(params),\n        prefix,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _endsWith(suffix, params) {\n    return new checks.$ZodCheckEndsWith({\n        check: \"string_format\",\n        format: \"ends_with\",\n        ...util.normalizeParams(params),\n        suffix,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _property(property, schema, params) {\n    return new checks.$ZodCheckProperty({\n        check: \"property\",\n        property,\n        schema,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _properties(shape, params) {\n    return new checks.$ZodCheckProperties({\n        check: \"properties\",\n        shape,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mime(types, params) {\n    return new checks.$ZodCheckMimeType({\n        check: \"mime_type\",\n        mime: types,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _overwrite(tx) {\n    return new checks.$ZodCheckOverwrite({\n        check: \"overwrite\",\n        tx,\n    });\n}\n// normalize\n// @__NO_SIDE_EFFECTS__\nexport function _normalize(form) {\n    return _overwrite((input) => input.normalize(form));\n}\n// trim\n// @__NO_SIDE_EFFECTS__\nexport function _trim() {\n    return _overwrite((input) => input.trim());\n}\n// toLowerCase\n// @__NO_SIDE_EFFECTS__\nexport function _toLowerCase() {\n    return _overwrite((input) => input.toLowerCase());\n}\n// toUpperCase\n// @__NO_SIDE_EFFECTS__\nexport function _toUpperCase() {\n    return _overwrite((input) => input.toUpperCase());\n}\n// slugify\n// @__NO_SIDE_EFFECTS__\nexport function _slugify() {\n    return _overwrite((input) => util.slugify(input));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _array(Class, element, params) {\n    return new Class({\n        type: \"array\",\n        element,\n        // get element() {\n        //   return element;\n        // },\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _union(Class, options, params) {\n    return new Class({\n        type: \"union\",\n        options,\n        ...util.normalizeParams(params),\n    });\n}\nexport function _xor(Class, options, params) {\n    return new Class({\n        type: \"union\",\n        options,\n        inclusive: false,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _discriminatedUnion(Class, discriminator, options, params) {\n    return new Class({\n        type: \"union\",\n        options: options,\n        discriminator,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _intersection(Class, left, right) {\n    return new Class({\n        type: \"intersection\",\n        left,\n        right,\n    });\n}\n// export function _tuple(\n//   Class: util.SchemaClass<schemas.$ZodTuple>,\n//   items: [],\n//   params?: string | $ZodTupleParams\n// ): schemas.$ZodTuple<[], null>;\n// @__NO_SIDE_EFFECTS__\nexport function _tuple(Class, items, _paramsOrRest, _params) {\n    const hasRest = _paramsOrRest instanceof schemas.$ZodType;\n    const params = hasRest ? _params : _paramsOrRest;\n    const rest = hasRest ? _paramsOrRest : null;\n    return new Class({\n        type: \"tuple\",\n        items,\n        rest,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _record(Class, keyType, valueType, params) {\n    return new Class({\n        type: \"record\",\n        keyType,\n        valueType,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _map(Class, keyType, valueType, params) {\n    return new Class({\n        type: \"map\",\n        keyType,\n        valueType,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _set(Class, valueType, params) {\n    return new Class({\n        type: \"set\",\n        valueType,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _enum(Class, values, params) {\n    const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;\n    // if (Array.isArray(values)) {\n    //   for (const value of values) {\n    //     entries[value] = value;\n    //   }\n    // } else {\n    //   Object.assign(entries, values);\n    // }\n    // const entries: util.EnumLike = {};\n    // for (const val of values) {\n    //   entries[val] = val;\n    // }\n    return new Class({\n        type: \"enum\",\n        entries,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport function _nativeEnum(Class, entries, params) {\n    return new Class({\n        type: \"enum\",\n        entries,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _literal(Class, value, params) {\n    return new Class({\n        type: \"literal\",\n        values: Array.isArray(value) ? value : [value],\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _file(Class, params) {\n    return new Class({\n        type: \"file\",\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _transform(Class, fn) {\n    return new Class({\n        type: \"transform\",\n        transform: fn,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _optional(Class, innerType) {\n    return new Class({\n        type: \"optional\",\n        innerType,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nullable(Class, innerType) {\n    return new Class({\n        type: \"nullable\",\n        innerType,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _default(Class, innerType, defaultValue) {\n    return new Class({\n        type: \"default\",\n        innerType,\n        get defaultValue() {\n            return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n        },\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nonoptional(Class, innerType, params) {\n    return new Class({\n        type: \"nonoptional\",\n        innerType,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _success(Class, innerType) {\n    return new Class({\n        type: \"success\",\n        innerType,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _catch(Class, innerType, catchValue) {\n    return new Class({\n        type: \"catch\",\n        innerType,\n        catchValue: (typeof catchValue === \"function\" ? catchValue : util.constantCatch(catchValue)),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _pipe(Class, in_, out) {\n    return new Class({\n        type: \"pipe\",\n        in: in_,\n        out,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _readonly(Class, innerType) {\n    return new Class({\n        type: \"readonly\",\n        innerType,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _templateLiteral(Class, parts, params) {\n    return new Class({\n        type: \"template_literal\",\n        parts,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lazy(Class, getter) {\n    return new Class({\n        type: \"lazy\",\n        getter,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _promise(Class, innerType) {\n    return new Class({\n        type: \"promise\",\n        innerType,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _custom(Class, fn, _params) {\n    const norm = util.normalizeParams(_params);\n    norm.abort ?? (norm.abort = true); // default to abort:false\n    const schema = new Class({\n        type: \"custom\",\n        check: \"custom\",\n        fn: fn,\n        ...norm,\n    });\n    return schema;\n}\n// same as _custom but defaults to abort:false\n// @__NO_SIDE_EFFECTS__\nexport function _refine(Class, fn, _params) {\n    const schema = new Class({\n        type: \"custom\",\n        check: \"custom\",\n        fn: fn,\n        ...util.normalizeParams(_params),\n    });\n    return schema;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _superRefine(fn, params) {\n    const ch = _check((payload) => {\n        payload.addIssue = (issue) => {\n            if (typeof issue === \"string\") {\n                payload.issues.push(util.issue(issue, payload.value, ch._zod.def));\n            }\n            else {\n                // for Zod 3 backwards compatibility\n                const _issue = issue;\n                if (_issue.fatal)\n                    _issue.continue = false;\n                _issue.code ?? (_issue.code = \"custom\");\n                if (!(\"input\" in _issue))\n                    _issue.input = payload.value;\n                _issue.inst ?? (_issue.inst = ch);\n                _issue.continue ?? (_issue.continue = !ch._zod.def.abort); // abort is always undefined, so this is always true...\n                payload.issues.push(util.issue(_issue));\n            }\n        };\n        return fn(payload.value, payload);\n    }, params);\n    return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _check(fn, params) {\n    const ch = new checks.$ZodCheck({\n        check: \"custom\",\n        ...util.normalizeParams(params),\n    });\n    ch._zod.check = fn;\n    return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function describe(description) {\n    const ch = new checks.$ZodCheck({ check: \"describe\" });\n    ch._zod.onattach = [\n        (inst) => {\n            const existing = registries.globalRegistry.get(inst) ?? {};\n            registries.globalRegistry.add(inst, { ...existing, description });\n        },\n    ];\n    ch._zod.check = () => { }; // no-op check\n    return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function meta(metadata) {\n    const ch = new checks.$ZodCheck({ check: \"meta\" });\n    ch._zod.onattach = [\n        (inst) => {\n            const existing = registries.globalRegistry.get(inst) ?? {};\n            registries.globalRegistry.add(inst, { ...existing, ...metadata });\n        },\n    ];\n    ch._zod.check = () => { }; // no-op check\n    return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringbool(Classes, _params) {\n    const params = util.normalizeParams(_params);\n    let truthyArray = params.truthy ?? [\"true\", \"1\", \"yes\", \"on\", \"y\", \"enabled\"];\n    let falsyArray = params.falsy ?? [\"false\", \"0\", \"no\", \"off\", \"n\", \"disabled\"];\n    if (params.case !== \"sensitive\") {\n        truthyArray = truthyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n        falsyArray = falsyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n    }\n    const truthySet = new Set(truthyArray);\n    const falsySet = new Set(falsyArray);\n    const _Codec = Classes.Codec ?? schemas.$ZodCodec;\n    const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;\n    const _String = Classes.String ?? schemas.$ZodString;\n    const stringSchema = new _String({ type: \"string\", error: params.error });\n    const booleanSchema = new _Boolean({ type: \"boolean\", error: params.error });\n    const codec = new _Codec({\n        type: \"pipe\",\n        in: stringSchema,\n        out: booleanSchema,\n        transform: ((input, payload) => {\n            let data = input;\n            if (params.case !== \"sensitive\")\n                data = data.toLowerCase();\n            if (truthySet.has(data)) {\n                return true;\n            }\n            else if (falsySet.has(data)) {\n                return false;\n            }\n            else {\n                payload.issues.push({\n                    code: \"invalid_value\",\n                    expected: \"stringbool\",\n                    values: [...truthySet, ...falsySet],\n                    input: payload.value,\n                    inst: codec,\n                    continue: false,\n                });\n                return {};\n            }\n        }),\n        reverseTransform: ((input, _payload) => {\n            if (input === true) {\n                return truthyArray[0] || \"true\";\n            }\n            else {\n                return falsyArray[0] || \"false\";\n            }\n        }),\n        error: params.error,\n    });\n    codec._zod.bag.truthy = truthyArray;\n    codec._zod.bag.falsy = falsyArray;\n    codec._zod.bag.case = params.case ?? \"insensitive\";\n    return codec;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringFormat(Class, format, fnOrRegex, _params = {}) {\n    const params = util.normalizeParams(_params);\n    const def = {\n        check: \"string_format\",\n        type: \"string\",\n        format,\n        fn: typeof fnOrRegex === \"function\" ? fnOrRegex : (val) => fnOrRegex.test(val),\n        ...params,\n    };\n    if (fnOrRegex instanceof RegExp) {\n        def.pattern = fnOrRegex;\n    }\n    const inst = new Class(def);\n    return inst;\n}\n","import { globalRegistry } from \"./registries.js\";\nimport { assignProp } from \"./util.js\";\nfunction assignProps(target, ...sources) {\n    for (const source of sources) {\n        for (const key of Reflect.ownKeys(source)) {\n            if (Object.prototype.propertyIsEnumerable.call(source, key)) {\n                assignProp(target, key, source[key]);\n            }\n        }\n    }\n    return target;\n}\n// function initializeContext<T extends schemas.$ZodType>(inputs: JSONSchemaGeneratorParams<T>): ToJSONSchemaContext<T> {\n//   return {\n//     processor: inputs.processor,\n//     metadataRegistry: inputs.metadata ?? globalRegistry,\n//     target: inputs.target ?? \"draft-2020-12\",\n//     unrepresentable: inputs.unrepresentable ?? \"throw\",\n//   };\n// }\nexport function initializeContext(params) {\n    // Normalize target: convert old non-hyphenated versions to hyphenated versions\n    let target = params?.target ?? \"draft-2020-12\";\n    if (target === \"draft-4\")\n        target = \"draft-04\";\n    if (target === \"draft-7\")\n        target = \"draft-07\";\n    return {\n        processors: params.processors ?? {},\n        metadataRegistry: params?.metadata ?? globalRegistry,\n        target,\n        unrepresentable: params?.unrepresentable ?? \"throw\",\n        override: params?.override ?? (() => { }),\n        io: params?.io ?? \"output\",\n        counter: 0,\n        seen: new Map(),\n        sharedDefsExtractedFor: undefined,\n        sharedEmitDoneFor: undefined,\n        cycles: params?.cycles ?? \"ref\",\n        reused: params?.reused ?? \"inline\",\n        intersections: [],\n        deferred: [],\n        external: params?.external ?? undefined,\n    };\n}\n/**\n * Applies the `unrepresentable` setting at a site that has no JSON Schema equivalent. Throws\n * `message` unless the setting (or the handler's return value) says otherwise. Returns `true` if a\n * custom JSON Schema was written into `json`, in which case the caller must not write its own.\n */\nexport function handleUnrepresentable(schema, ctx, json, params, message) {\n    const result = typeof ctx.unrepresentable === \"function\"\n        ? ctx.unrepresentable({ zodSchema: schema, path: params.path, message })\n        : ctx.unrepresentable;\n    if (result === \"any\")\n        return false;\n    if (result === undefined || result === \"throw\")\n        throw new Error(message);\n    Object.assign(json, result);\n    return true;\n}\n// never rename this back to `process`: bundler polyfills inject a top-level `const process` that a lexical declaration of the same name collides with (#6397)\nexport function processSchema(schema, ctx, _params = { path: [], schemaPath: [] }) {\n    var _a;\n    const def = schema._zod.def;\n    // check for schema in seens\n    const seen = ctx.seen.get(schema);\n    if (seen) {\n        seen.count++;\n        // check if cycle\n        const isCycle = _params.schemaPath.includes(schema);\n        if (isCycle) {\n            seen.cycle = _params.path;\n        }\n        return seen.schema;\n    }\n    // initialize\n    const result = { schema: {}, count: 1, cycle: undefined, path: _params.path };\n    ctx.seen.set(schema, result);\n    ctx.sharedDefsExtractedFor = undefined;\n    ctx.sharedEmitDoneFor = undefined;\n    // custom method overrides default behavior\n    const overrideSchema = schema._zod.toJSONSchema?.();\n    if (overrideSchema) {\n        result.schema = overrideSchema;\n    }\n    else {\n        const params = {\n            ..._params,\n            schemaPath: [..._params.schemaPath, schema],\n            path: _params.path,\n        };\n        if (schema._zod.processJSONSchema) {\n            schema._zod.processJSONSchema(ctx, result.schema, params);\n        }\n        else {\n            const _json = result.schema;\n            const processor = ctx.processors[def.type];\n            if (!processor) {\n                throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);\n            }\n            processor(schema, ctx, _json, params);\n        }\n        const parent = schema._zod.parent;\n        if (parent) {\n            // Also set ref if processor didn't (for inheritance)\n            if (!result.ref)\n                result.ref = parent;\n            processSchema(parent, ctx, params);\n            ctx.seen.get(parent).isParent = true;\n        }\n    }\n    // metadata\n    const meta = ctx.metadataRegistry.get(schema);\n    if (meta)\n        assignProps(result.schema, meta);\n    if (ctx.io === \"input\" && isTransforming(schema)) {\n        // examples/defaults only apply to output type of pipe\n        delete result.schema.examples;\n        delete result.schema.default;\n    }\n    // set prefault as default\n    if (ctx.io === \"input\" && \"_prefault\" in result.schema)\n        (_a = result.schema).default ?? (_a.default = result.schema._prefault);\n    delete result.schema._prefault;\n    // pulling fresh from ctx.seen in case it was overwritten\n    const _result = ctx.seen.get(schema);\n    return _result.schema;\n}\n/** @deprecated Renamed to `processSchema`. An export alias declares no binding, so it is safe to keep. */\nexport { processSchema as process };\n// Escape a reference token for use in a JSON Pointer fragment (RFC 6901): `~` becomes `~0` and `/` becomes `~1`. The `~` replacement must run first.\nfunction encodeJSONPointerSegment(segment) {\n    return segment.replace(/~/g, \"~0\").replace(/\\//g, \"~1\");\n}\nexport function extractDefs(ctx, schema\n// params: EmitParams\n) {\n    // iterate over seen map;\n    const root = ctx.seen.get(schema);\n    if (!root)\n        throw new Error(\"Unprocessed schema. This is a bug in Zod.\");\n    // With `external` set, every registered schema resolves through the external branch of `makeURI`, so the root branch below produces the same ref the external branch would — this pass is identical whichever schema it is called with, and only needs to run once.\n    if (ctx.external && ctx.sharedDefsExtractedFor === ctx.external)\n        return;\n    // Track ids to detect duplicates across different schemas\n    const idToSchema = new Map();\n    for (const entry of ctx.seen.entries()) {\n        const id = ctx.metadataRegistry.get(entry[0])?.id;\n        if (id) {\n            const existing = idToSchema.get(id);\n            if (existing && existing !== entry[0]) {\n                throw new Error(`Duplicate schema id \"${id}\" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);\n            }\n            idToSchema.set(id, entry[0]);\n        }\n    }\n    // returns a ref to the schema defId will be empty if the ref points to an external schema (or #)\n    const makeURI = (entry) => {\n        // comparing the seen objects because sometimes multiple schemas map to the same seen object. e.g. lazy\n        // external is configured\n        const defsSegment = ctx.target === \"draft-2020-12\" ? \"$defs\" : \"definitions\";\n        if (ctx.external) {\n            const externalId = ctx.external.registry.get(entry[0])?.id; // ?? \"__shared\";// `__schema${ctx.counter++}`;\n            // check if schema is in the external registry\n            const uriGenerator = ctx.external.uri ?? ((id) => id);\n            if (externalId) {\n                return { ref: uriGenerator(externalId) };\n            }\n            // otherwise, add to __shared\n            const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;\n            entry[1].defId = id; // set defId so it will be reused if needed\n            return { defId: id, ref: `${uriGenerator(\"__shared\")}#/${defsSegment}/${encodeJSONPointerSegment(id)}` };\n        }\n        const uriPrefix = `#`;\n        const defUriPrefix = `${uriPrefix}/${defsSegment}/`;\n        // an id-less root has nowhere to be extracted to, so it stays inline and self-references as `#`\n        if (entry[1] === root && !entry[1].schema.id) {\n            return { ref: uriPrefix };\n        }\n        // self-contained schema\n        const defId = entry[1].schema.id ?? `__schema${ctx.counter++}`;\n        return { defId, ref: defUriPrefix + encodeJSONPointerSegment(defId) };\n    };\n    // stored cached version in `def` property remove all properties, set $ref\n    const extractToDef = (entry) => {\n        // if the schema is already a reference, do not extract it\n        if (entry[1].schema.$ref) {\n            return;\n        }\n        const seen = entry[1];\n        const { ref, defId } = makeURI(entry);\n        seen.def = { ...seen.schema };\n        // defId won't be set if the schema is a reference to an external schema or if the schema is the root schema\n        if (defId)\n            seen.defId = defId;\n        // wipe away all properties except $ref\n        const schema = seen.schema;\n        for (const key in schema) {\n            delete schema[key];\n        }\n        schema.$ref = ref;\n    };\n    // throw on cycles\n    // break cycles\n    if (ctx.cycles === \"throw\") {\n        for (const entry of ctx.seen.entries()) {\n            const seen = entry[1];\n            if (seen.cycle) {\n                throw new Error(\"Cycle detected: \" +\n                    `#/${seen.cycle?.join(\"/\")}/<root>` +\n                    '\\n\\nSet the `cycles` parameter to `\"ref\"` to resolve cyclical schemas with defs.');\n            }\n        }\n    }\n    // extract schemas into $defs\n    for (const entry of ctx.seen.entries()) {\n        const seen = entry[1];\n        // convert root schema to # $ref\n        if (schema === entry[0]) {\n            extractToDef(entry); // this has special handling for the root schema\n            continue;\n        }\n        // extract schemas that are in the external registry\n        if (ctx.external) {\n            const ext = ctx.external.registry.get(entry[0])?.id;\n            if (schema !== entry[0] && ext) {\n                extractToDef(entry);\n                continue;\n            }\n        }\n        // extract schemas with `id` meta\n        const id = ctx.metadataRegistry.get(entry[0])?.id;\n        if (id) {\n            extractToDef(entry);\n            continue;\n        }\n        // break cycles\n        if (seen.cycle) {\n            // any\n            extractToDef(entry);\n            continue;\n        }\n        // extract reused schemas\n        if (seen.count > 1) {\n            if (ctx.reused === \"ref\") {\n                extractToDef(entry);\n            }\n        }\n    }\n    if (ctx.external)\n        ctx.sharedDefsExtractedFor = ctx.external;\n}\n/** Rewrites `anyOf: [{type: \"a\"}, {type: \"b\"}]` to `type: [\"a\", \"b\"]`, which every JSON Schema draft treats as equivalent and most consumers render far better for the nullable case. Only branches that are a bare type assertion qualify — anything carrying a constraint, `$ref`, `const` or metadata is left alone. Runs after `flattenRef`, so a branch an override decorated or `$defs` extraction turned into a `$ref` is no longer bare and correctly stays in `anyOf`. `oneOf` is excluded: `integer` and `number` overlap, so \"exactly one\" and \"at least one\" are not the same there. OpenAPI 3.0 is excluded: its `type` must be a single string. */\nfunction compactTypeUnion(schema) {\n    const options = schema.anyOf;\n    if (!Array.isArray(options) || options.length === 0 || schema.type !== undefined)\n        return;\n    const types = [];\n    for (const option of options) {\n        if (!option || typeof option !== \"object\")\n            return;\n        // A branch that is itself a compactible union folds into this one — nested `anyOf` and a flat `type` array say the same thing. Compacting it first also makes the result independent of the order this pass walks the seen map in.\n        compactTypeUnion(option);\n        const keys = Object.keys(option);\n        if (keys.length !== 1 || keys[0] !== \"type\")\n            return;\n        const type = option.type;\n        for (const member of Array.isArray(type) ? type : [type]) {\n            if (typeof member !== \"string\")\n                return;\n            if (!types.includes(member))\n                types.push(member);\n        }\n    }\n    delete schema.anyOf;\n    // A `type` array must be non-empty and unique (metaschema); a single member is spelled as a bare string.\n    schema.type = types.length === 1 ? types[0] : types;\n}\n/** Keywords `foldIntersection` knows how to combine. Anything else — `$ref`, `patternProperties`,\n * an annotation like `description` — makes a member unfoldable, so a constraint this does not\n * understand leaves the `allOf` alone instead of being silently dropped or misattributed. */\nconst FOLDABLE_KEYS = new Set([\"type\", \"properties\", \"required\", \"additionalProperties\"]);\nconst UNION_KEYS = [\"oneOf\", \"anyOf\"];\n/** A member's constraint on a key it does not declare itself. A `catchall` states one; `false`, an absent `additionalProperties`, and the empty schema a loose object emits state nothing. */\nfunction undeclaredConstraint(member) {\n    const extra = member.additionalProperties;\n    if (extra === undefined || extra === false || typeof extra !== \"object\" || extra === null)\n        return null;\n    return Object.keys(extra).length ? extra : null;\n}\n/** Combines object members into the single object they describe together, or returns `null` if any of them carries a keyword outside {@link FOLDABLE_KEYS}. */\nfunction foldObjects(members) {\n    const objects = [];\n    for (const member of members) {\n        // A boolean subschema is legal JSON Schema and carries no keywords to fold.\n        if (typeof member !== \"object\" || member.type !== \"object\")\n            return null;\n        for (const key in member) {\n            if (!FOLDABLE_KEYS.has(key))\n                return null;\n        }\n        objects.push(member);\n    }\n    const properties = {};\n    const required = new Set();\n    for (const object of objects) {\n        for (const key in object.properties) {\n            // `in` would report a `__proto__` key as already present via the prototype chain and skip it.\n            if (Object.prototype.hasOwnProperty.call(properties, key))\n                continue;\n            // Every member constrains this key: the ones that declare it say how, and a `catchall` member constrains it too even though it does not name it. The key has to satisfy all of them, which is the same intersection one level down.\n            const parts = [];\n            for (const other of objects) {\n                const part = other.properties?.[key] ?? undeclaredConstraint(other);\n                if (part === null || part === undefined)\n                    continue;\n                if (!parts.some((seen) => JSON.stringify(seen) === JSON.stringify(part)))\n                    parts.push(part);\n            }\n            const merged = parts.length === 1\n                ? parts[0]\n                : (foldObjects(parts) ?? { allOf: parts });\n            assignProp(properties, key, merged);\n        }\n        for (const key of object.required ?? [])\n            required.add(key);\n    }\n    const folded = { type: \"object\", properties };\n    if (required.size)\n        folded.required = [...required];\n    // A key no member declares is rejected only when every member rejects it, so the fold is closed only when every member is. Otherwise it carries whatever the `catchall` members demand of such a key.\n    if (objects.every((object) => object.additionalProperties === false)) {\n        folded.additionalProperties = false;\n    }\n    else {\n        const constraints = [];\n        for (const object of objects) {\n            const constraint = undeclaredConstraint(object);\n            if (constraint && !constraints.some((seen) => JSON.stringify(seen) === JSON.stringify(constraint)))\n                constraints.push(constraint);\n        }\n        if (constraints.length === 1)\n            folded.additionalProperties = constraints[0];\n        else if (constraints.length > 1)\n            folded.additionalProperties = { allOf: constraints };\n    }\n    return folded;\n}\n/** `additionalProperties` in an `allOf` member sees only that member's own `properties`, so two\n * closed object members reject each other's keys and the schema validates nothing. Zod's parser\n * pools the key sets instead — `handleIntersectionResults` reports a key as unrecognized only when\n * *every* side rejects it — so the emitted schema has to pool them too, and folding the members\n * into one object is the encoding that says so on every target.\n *\n * This runs from `finalize`, after `extractDefs`, which is what keeps it clear of the `$ref`\n * machinery: a member extracted into `$defs` is already a `$ref` by now and declines to fold, so it\n * keeps its reference and its own closedness rather than being inlined as a stale copy. */\nfunction foldIntersection(json) {\n    const allOf = json.allOf;\n    if (!Array.isArray(allOf) || allOf.length < 2)\n        return;\n    // An `override` runs before this pass and may have written object keywords onto the intersection itself. Those are deliberate, so decline rather than overwrite them.\n    for (const key of FOLDABLE_KEYS)\n        if (key in json)\n            return;\n    // An intersection distributes over a union: `A & (X | Y)` is `(A & X) | (A & Y)`. Only the first union is distributed over; a second one stays among the members every branch folds against, where it fails the object check and declines the whole intersection rather than multiplying out.\n    const unions = allOf.filter((m) => UNION_KEYS.some((k) => Array.isArray(m[k])));\n    let folded = null;\n    if (!unions.length) {\n        folded = foldObjects(allOf);\n    }\n    else {\n        const union = unions[0];\n        const keyword = UNION_KEYS.find((k) => Array.isArray(union[k]));\n        if (Object.keys(union).length !== 1)\n            return;\n        const rest = allOf.filter((m) => m !== union);\n        const branches = union[keyword].map((branch) => foldObjects([...rest, branch]));\n        if (branches.some((b) => !b))\n            return;\n        folded = { [keyword]: branches };\n    }\n    if (!folded)\n        return;\n    delete json.allOf;\n    assignProps(json, folded);\n}\nexport function finalize(ctx, schema) {\n    const root = ctx.seen.get(schema);\n    if (!root)\n        throw new Error(\"Unprocessed schema. This is a bug in Zod.\");\n    // flatten refs - inherit properties from parent schemas\n    const flattenRef = (zodSchema) => {\n        const seen = ctx.seen.get(zodSchema);\n        // already processed\n        if (seen.ref === null)\n            return;\n        const schema = seen.def ?? seen.schema;\n        const _cached = { ...schema };\n        const ref = seen.ref;\n        seen.ref = null; // prevent infinite recursion\n        if (ref) {\n            flattenRef(ref);\n            const refSeen = ctx.seen.get(ref);\n            const refSchema = refSeen.schema;\n            // merge referenced schema into current\n            if (refSchema.$ref && (ctx.target === \"draft-07\" || ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\")) {\n                // older drafts can't combine $ref with other properties\n                schema.allOf = schema.allOf ?? [];\n                schema.allOf.push(refSchema);\n            }\n            else {\n                assignProps(schema, refSchema);\n            }\n            // restore child's own properties (child wins)\n            assignProps(schema, _cached);\n            const isParentRef = zodSchema._zod.parent === ref;\n            // For parent chain, child is a refinement - remove parent-only properties\n            if (isParentRef) {\n                for (const key in schema) {\n                    if (key === \"$ref\" || key === \"allOf\")\n                        continue;\n                    if (!(key in _cached)) {\n                        delete schema[key];\n                    }\n                }\n            }\n            // When ref was extracted to $defs, remove properties that match the definition\n            if (refSchema.$ref && refSeen.def) {\n                for (const key in schema) {\n                    if (key === \"$ref\" || key === \"allOf\")\n                        continue;\n                    if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {\n                        delete schema[key];\n                    }\n                }\n            }\n        }\n        // If parent was extracted (has $ref), propagate $ref to this schema. This handles cases like: readonly().meta({id}).describe() where processor sets ref to innerType but parent should be referenced\n        const parent = zodSchema._zod.parent;\n        if (parent && parent !== ref) {\n            // Ensure parent is processed first so its def has inherited properties\n            flattenRef(parent);\n            const parentSeen = ctx.seen.get(parent);\n            if (parentSeen?.schema.$ref) {\n                schema.$ref = parentSeen.schema.$ref;\n                // De-duplicate with parent's definition\n                if (parentSeen.def) {\n                    for (const key in schema) {\n                        if (key === \"$ref\" || key === \"allOf\")\n                            continue;\n                        if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {\n                            delete schema[key];\n                        }\n                    }\n                }\n            }\n        }\n        // execute overrides\n        ctx.override({\n            zodSchema: zodSchema,\n            jsonSchema: schema,\n            path: seen.path ?? [],\n        });\n    };\n    // Flattening walks the whole map and clears each `ref` as it goes, so a second call over the same map is a no-op scan. Skip it outright once it has run for a registry conversion.\n    if (!ctx.external || ctx.sharedEmitDoneFor !== ctx.external) {\n        for (const entry of [...ctx.seen.entries()].reverse()) {\n            flattenRef(entry[0]);\n        }\n        if (ctx.target !== \"openapi-3.0\") {\n            for (const entry of ctx.seen.entries()) {\n                compactTypeUnion(entry[1].def ?? entry[1].schema);\n            }\n        }\n        for (const rewrite of ctx.deferred)\n            rewrite();\n        // After flattening, every member that was extracted is a `$ref`, so the fold sees the final shape. A schema that inherits an intersection — through `z.lazy`, or any `ref` chain — holds the same `allOf` array, so fold by array identity to catch every copy.\n        if (ctx.intersections.length) {\n            const carriers = new Map();\n            for (const seen of ctx.seen.values()) {\n                for (const json of [seen.schema, seen.def]) {\n                    const allOf = json?.allOf;\n                    if (!Array.isArray(allOf))\n                        continue;\n                    const existing = carriers.get(allOf);\n                    if (existing)\n                        existing.push(json);\n                    else\n                        carriers.set(allOf, [json]);\n                }\n            }\n            for (const allOf of ctx.intersections) {\n                for (const json of carriers.get(allOf) ?? [])\n                    foldIntersection(json);\n            }\n        }\n    }\n    const result = {};\n    if (ctx.target === \"draft-2020-12\") {\n        result.$schema = \"https://json-schema.org/draft/2020-12/schema\";\n    }\n    else if (ctx.target === \"draft-07\") {\n        result.$schema = \"http://json-schema.org/draft-07/schema#\";\n    }\n    else if (ctx.target === \"draft-04\") {\n        result.$schema = \"http://json-schema.org/draft-04/schema#\";\n    }\n    else if (ctx.target === \"openapi-3.0\") {\n        // OpenAPI 3.0 schema objects should not include a $schema property\n    }\n    else {\n        // Arbitrary string values are allowed but won't have a $schema property set\n    }\n    if (ctx.external?.uri) {\n        const id = ctx.external.registry.get(schema)?.id;\n        if (!id)\n            throw new Error(\"Schema is missing an `id` property\");\n        result.$id = ctx.external.uri(id);\n    }\n    // when the root was extracted into $defs, `root.schema` is the `$ref` wrapper and `root.def` is the body that now lives under $defs\n    assignProps(result, root.defId ? root.schema : (root.def ?? root.schema));\n    // The `id` in `.meta()` is a Zod-specific registration tag used to extract schemas into $defs — it is not user-facing JSON Schema metadata. Strip it from the output body where it would otherwise leak. The id is preserved implicitly via the $defs key (and via $ref paths).\n    const rootMetaId = ctx.metadataRegistry.get(schema)?.id;\n    if (rootMetaId !== undefined && result.id === rootMetaId)\n        delete result.id;\n    // build defs object. With `external`, `defs` is the shared object every schema writes into, so the same entries are reassigned on every call. Without it, `defs` is fresh per call and must be rebuilt.\n    const defs = ctx.external?.defs ?? {};\n    if (!ctx.external || ctx.sharedEmitDoneFor !== ctx.external) {\n        for (const entry of ctx.seen.entries()) {\n            const seen = entry[1];\n            if (seen.def && seen.defId) {\n                if (seen.def.id === seen.defId)\n                    delete seen.def.id;\n                assignProp(defs, seen.defId, seen.def);\n            }\n        }\n    }\n    if (ctx.external)\n        ctx.sharedEmitDoneFor = ctx.external;\n    // set definitions in result\n    if (ctx.external) {\n    }\n    else {\n        if (Object.keys(defs).length > 0) {\n            if (ctx.target === \"draft-2020-12\") {\n                result.$defs = defs;\n            }\n            else {\n                result.definitions = defs;\n            }\n        }\n    }\n    try {\n        // this \"finalizes\" this schema and ensures all cycles are removed each call to finalize() is functionally independent though the seen map is shared\n        const finalized = JSON.parse(JSON.stringify(result));\n        Object.defineProperty(finalized, \"~standard\", {\n            value: {\n                ...schema[\"~standard\"],\n                jsonSchema: {\n                    input: createStandardJSONSchemaMethod(schema, \"input\", ctx.processors),\n                    output: createStandardJSONSchemaMethod(schema, \"output\", ctx.processors),\n                },\n            },\n            enumerable: false,\n            writable: false,\n        });\n        return finalized;\n    }\n    catch (_err) {\n        throw new Error(\"Error converting schema to JSON.\");\n    }\n}\nfunction isTransforming(_schema, _ctx) {\n    const ctx = _ctx ?? { seen: new Set() };\n    if (ctx.seen.has(_schema))\n        return false;\n    ctx.seen.add(_schema);\n    const def = _schema._zod.def;\n    if (def.type === \"transform\")\n        return true;\n    if (def.type === \"array\")\n        return isTransforming(def.element, ctx);\n    if (def.type === \"set\")\n        return isTransforming(def.valueType, ctx);\n    if (def.type === \"lazy\")\n        return isTransforming(def.getter(), ctx);\n    if (def.type === \"promise\" ||\n        def.type === \"optional\" ||\n        def.type === \"nonoptional\" ||\n        def.type === \"nullable\" ||\n        def.type === \"readonly\" ||\n        def.type === \"default\" ||\n        def.type === \"prefault\" ||\n        def.type === \"catch\") {\n        return isTransforming(def.innerType, ctx);\n    }\n    if (def.type === \"intersection\") {\n        return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);\n    }\n    if (def.type === \"record\" || def.type === \"map\") {\n        return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);\n    }\n    if (def.type === \"pipe\") {\n        if (_schema._zod.traits.has(\"$ZodCodec\"))\n            return true;\n        return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);\n    }\n    if (def.type === \"object\") {\n        for (const key in def.shape) {\n            if (isTransforming(def.shape[key], ctx))\n                return true;\n        }\n        return false;\n    }\n    if (def.type === \"union\") {\n        for (const option of def.options) {\n            if (isTransforming(option, ctx))\n                return true;\n        }\n        return false;\n    }\n    if (def.type === \"tuple\") {\n        for (const item of def.items) {\n            if (isTransforming(item, ctx))\n                return true;\n        }\n        if (def.rest && isTransforming(def.rest, ctx))\n            return true;\n        return false;\n    }\n    return false;\n}\n/**\n * Creates a toJSONSchema method for a schema instance.\n * This encapsulates the logic of initializing context, processing, extracting defs, and finalizing.\n */\nexport const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {\n    const ctx = initializeContext({ ...params, processors });\n    processSchema(schema, ctx);\n    extractDefs(ctx, schema);\n    return finalize(ctx, schema);\n};\nexport const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {\n    const { libraryOptions, target } = params ?? {};\n    const ctx = initializeContext({ ...(libraryOptions ?? {}), target, io, processors });\n    processSchema(schema, ctx);\n    extractDefs(ctx, schema);\n    return finalize(ctx, schema);\n};\n","import * as regexes from \"./regexes.js\";\nimport { base64Charset, base64urlCharset } from \"./schemas.js\";\nimport { extractDefs, finalize, handleUnrepresentable, initializeContext, processSchema, } from \"./to-json-schema.js\";\nimport { BIGINT_FORMAT_RANGES, NUMBER_FORMAT_RANGES, assignProp, getEnumValues } from \"./util.js\";\nconst narrowMin = (agg, key, value) => {\n    if (agg[key] === undefined || value > agg[key])\n        agg[key] = value;\n};\nconst narrowMax = (agg, key, value) => {\n    if (agg[key] === undefined || value < agg[key])\n        agg[key] = value;\n};\nconst narrowBoth = (agg, value) => {\n    narrowMin(agg, \"minimum\", value);\n    narrowMax(agg, \"maximum\", value);\n};\nconst addDivisor = (agg, value) => {\n    agg.multipleOf ?? (agg.multipleOf = []);\n    if (!agg.multipleOf.includes(value))\n        agg.multipleOf.push(value);\n};\nconst addPattern = (agg, pattern) => {\n    agg.patterns ?? (agg.patterns = new Set());\n    agg.patterns.add(pattern);\n};\nconst intersectMime = (agg, mime) => {\n    agg.mime = agg.mime ? agg.mime.filter((m) => mime.includes(m)) : [...mime];\n};\n// last-wins, matching the bag's historical write order; the flag keeps an integer format from being lost to a later float one\nconst setFormat = (agg, format) => {\n    agg.format = format;\n    if (format.includes(\"int\"))\n        agg.isInt = true;\n};\nconst minContributor = (agg, def) => narrowMin(agg, \"minimum\", def.minimum);\nconst maxContributor = (agg, def) => narrowMax(agg, \"maximum\", def.maximum);\nconst formatContributor = (ranges) => (agg, def) => {\n    setFormat(agg, def.format);\n    const [minimum, maximum] = ranges[def.format];\n    narrowMin(agg, \"minimum\", minimum);\n    narrowMax(agg, \"maximum\", maximum);\n};\nconst contributors = {\n    greater_than: (agg, def) => narrowMin(agg, def.inclusive ? \"minimum\" : \"exclusiveMinimum\", def.value),\n    less_than: (agg, def) => narrowMax(agg, def.inclusive ? \"maximum\" : \"exclusiveMaximum\", def.value),\n    multiple_of: (agg, def) => addDivisor(agg, def.value),\n    number_format: formatContributor(NUMBER_FORMAT_RANGES),\n    bigint_format: formatContributor(BIGINT_FORMAT_RANGES),\n    min_length: minContributor,\n    max_length: maxContributor,\n    length_equals: (agg, def) => narrowBoth(agg, def.length),\n    min_size: minContributor,\n    max_size: maxContributor,\n    size_equals: (agg, def) => narrowBoth(agg, def.size),\n    string_format: (agg, def) => {\n        setFormat(agg, def.format);\n        if (def.pattern)\n            addPattern(agg, def.pattern);\n        if (def.format === \"base64\" || def.format === \"base64url\")\n            agg.contentEncoding = def.format;\n        if (def.local || def.precision === -1)\n            agg.laxFormat = true;\n    },\n    mime_type: (agg, def) => intersectMime(agg, def.mime),\n};\nexport function aggregateChecks(schema) {\n    const agg = {};\n    const def = schema._zod.def;\n    // a format schema is its own first check, same rule as $ZodType init\n    const list = schema._zod.traits.has(\"$ZodCheck\")\n        ? [schema, ...(def.checks ?? [])]\n        : (def.checks ?? []);\n    for (const ch of list)\n        contributors[ch._zod.def.check]?.(agg, ch._zod.def);\n    // reconcile with the bag so third-party onattach contributions still land; first-party residue is never tighter than the fold, so merging it back is idempotent for one and additive for the other\n    const bag = schema._zod.bag;\n    if (bag.minimum !== undefined)\n        narrowMin(agg, \"minimum\", bag.minimum);\n    if (bag.exclusiveMinimum !== undefined)\n        narrowMin(agg, \"exclusiveMinimum\", bag.exclusiveMinimum);\n    if (bag.maximum !== undefined)\n        narrowMax(agg, \"maximum\", bag.maximum);\n    if (bag.exclusiveMaximum !== undefined)\n        narrowMax(agg, \"exclusiveMaximum\", bag.exclusiveMaximum);\n    if (bag.multipleOf !== undefined)\n        addDivisor(agg, bag.multipleOf);\n    if (bag.format !== undefined) {\n        agg.format ?? (agg.format = bag.format);\n        if (bag.format.includes(\"int\"))\n            agg.isInt = true;\n    }\n    if (bag.mime)\n        intersectMime(agg, bag.mime);\n    for (const pattern of bag.patterns ?? [])\n        addPattern(agg, pattern);\n    return agg;\n}\nconst formatMap = {\n    guid: \"uuid\",\n    url: \"uri\",\n    datetime: \"date-time\",\n    json_string: \"json-string\",\n    regex: \"\", // do not set\n};\n// ==================== SIMPLE TYPE PROCESSORS ====================\n// the runtime patterns are lax so parse paths never overflow the regex stack; the emitted schema swaps in the exact block forms, which zod itself never executes\nconst exactPatterns = new Map([\n    [base64Charset, regexes.base64],\n    [base64urlCharset, regexes.base64url],\n]);\nconst exactPattern = (p) => exactPatterns.get(p) ?? p;\nexport const stringProcessor = (schema, ctx, _json, _params) => {\n    const json = _json;\n    json.type = \"string\";\n    const { minimum, maximum, format, patterns, contentEncoding, laxFormat } = aggregateChecks(schema);\n    if (typeof minimum === \"number\")\n        json.minLength = minimum;\n    if (typeof maximum === \"number\")\n        json.maxLength = maximum;\n    // custom pattern overrides format\n    if (format) {\n        json.format = formatMap[format] ?? format;\n        if (json.format === \"\")\n            delete json.format; // empty format is not valid\n        // `z.iso.time()` is never full-time, and `laxFormat` carries the datetime shapes that also accept what their keyword forbids\n        if (format === \"time\" || laxFormat) {\n            delete json.format;\n        }\n    }\n    if (contentEncoding)\n        json.contentEncoding = contentEncoding;\n    if (patterns && patterns.size > 0) {\n        const patternList = [...patterns].map(exactPattern);\n        if (patternList.length === 1)\n            json.pattern = patternList[0].source;\n        else if (patternList.length > 1) {\n            json.allOf = [\n                ...patternList.map((regex) => ({\n                    ...(ctx.target === \"draft-07\" || ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\"\n                        ? { type: \"string\" }\n                        : {}),\n                    pattern: regex.source,\n                })),\n            ];\n        }\n    }\n};\nexport const numberProcessor = (schema, ctx, _json, params) => {\n    const json = _json;\n    const { minimum, maximum, multipleOf, exclusiveMaximum, exclusiveMinimum, isInt } = aggregateChecks(schema);\n    json.type = isInt ? \"integer\" : \"number\";\n    // when both minimum and exclusiveMinimum exist, pick the more restrictive one\n    const exMin = typeof exclusiveMinimum === \"number\" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);\n    const exMax = typeof exclusiveMaximum === \"number\" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);\n    const legacy = ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\";\n    if (exMin) {\n        if (legacy) {\n            json.minimum = exclusiveMinimum;\n            json.exclusiveMinimum = true;\n        }\n        else {\n            json.exclusiveMinimum = exclusiveMinimum;\n        }\n    }\n    else if (typeof minimum === \"number\") {\n        json.minimum = minimum;\n    }\n    if (exMax) {\n        if (legacy) {\n            json.maximum = exclusiveMaximum;\n            json.exclusiveMaximum = true;\n        }\n        else {\n            json.exclusiveMaximum = exclusiveMaximum;\n        }\n    }\n    else if (typeof maximum === \"number\") {\n        json.maximum = maximum;\n    }\n    if (multipleOf) {\n        // JSON Schema requires a divisor strictly greater than zero, and a non-finite one does not survive JSON at all. A negative divisor accepts exactly what its absolute value accepts, so it still maps; zero, NaN and Infinity have no keyword form.\n        const divisors = new Set();\n        for (const divisor of multipleOf) {\n            if (Number.isFinite(divisor) && divisor !== 0)\n                divisors.add(Math.abs(divisor));\n            else\n                handleUnrepresentable(schema, ctx, json, params, `A multipleOf divisor of ${divisor} cannot be represented in JSON Schema`);\n        }\n        // chained divisors are a conjunction the keyword cannot carry alone, so extras ride an allOf, same as stacked patterns\n        const [first, ...rest] = divisors;\n        if (first !== undefined)\n            json.multipleOf = first;\n        if (rest.length)\n            json.allOf = [...(json.allOf ?? []), ...rest.map((m) => ({ multipleOf: m }))];\n    }\n};\nexport const booleanProcessor = (_schema, _ctx, json, _params) => {\n    json.type = \"boolean\";\n};\nexport const bigintProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"BigInt cannot be represented in JSON Schema\");\n};\nexport const symbolProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Symbols cannot be represented in JSON Schema\");\n};\nexport const nullProcessor = (_schema, ctx, json, _params) => {\n    if (ctx.target === \"openapi-3.0\") {\n        json.type = \"string\";\n        json.nullable = true;\n        json.enum = [null];\n    }\n    else {\n        json.type = \"null\";\n    }\n};\nexport const undefinedProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Undefined cannot be represented in JSON Schema\");\n};\nexport const voidProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Void cannot be represented in JSON Schema\");\n};\nexport const neverProcessor = (_schema, _ctx, json, _params) => {\n    json.not = {};\n};\nexport const anyProcessor = (_schema, _ctx, _json, _params) => {\n    // empty schema accepts anything\n};\nexport const unknownProcessor = (_schema, _ctx, _json, _params) => {\n    // empty schema accepts anything\n};\nexport const dateProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Date cannot be represented in JSON Schema\");\n};\nexport const enumProcessor = (schema, _ctx, json, _params) => {\n    const def = schema._zod.def;\n    const values = getEnumValues(def.entries);\n    // an empty enum accepts nothing, same as z.never()\n    if (values.length === 0) {\n        json.not = {};\n        return;\n    }\n    // Number enums can have both string and number values\n    if (values.every((v) => typeof v === \"number\"))\n        json.type = \"number\";\n    if (values.every((v) => typeof v === \"string\"))\n        json.type = \"string\";\n    json.enum = values;\n};\nexport const literalProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    // a literal with no values accepts nothing, same as z.never()\n    if (def.values.length === 0) {\n        json.not = {};\n        return;\n    }\n    const vals = [];\n    for (const val of def.values) {\n        if (val === undefined) {\n            // a custom schema replaces the whole literal, so there is nothing left to accumulate\n            if (handleUnrepresentable(schema, ctx, json, params, \"Literal `undefined` cannot be represented in JSON Schema\"))\n                return;\n            // otherwise do not add to vals\n        }\n        else if (typeof val === \"bigint\") {\n            if (handleUnrepresentable(schema, ctx, json, params, \"BigInt literals cannot be represented in JSON Schema\"))\n                return;\n            vals.push(Number(val));\n        }\n        else {\n            vals.push(val);\n        }\n    }\n    if (vals.length === 0) {\n        // do nothing (an undefined literal was stripped)\n    }\n    else if (vals.length === 1) {\n        const val = vals[0];\n        json.type = val === null ? \"null\" : typeof val;\n        if (ctx.target === \"draft-04\" || ctx.target === \"openapi-3.0\") {\n            json.enum = [val];\n        }\n        else {\n            json.const = val;\n        }\n    }\n    else {\n        if (vals.every((v) => typeof v === \"number\"))\n            json.type = \"number\";\n        if (vals.every((v) => typeof v === \"string\"))\n            json.type = \"string\";\n        if (vals.every((v) => typeof v === \"boolean\"))\n            json.type = \"boolean\";\n        if (vals.every((v) => v === null))\n            json.type = \"null\";\n        json.enum = vals;\n    }\n};\nexport const nanProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"NaN cannot be represented in JSON Schema\");\n};\nexport const templateLiteralProcessor = (schema, _ctx, json, _params) => {\n    const _json = json;\n    const pattern = schema._zod.pattern;\n    if (!pattern)\n        throw new Error(\"Pattern not found in template literal\");\n    _json.type = \"string\";\n    _json.pattern = pattern.source;\n};\nexport const fileProcessor = (schema, _ctx, json, _params) => {\n    const _json = json;\n    _json.type = \"string\";\n    _json.format = \"binary\";\n    _json.contentEncoding = \"binary\";\n    const { minimum, maximum, mime } = aggregateChecks(schema);\n    if (minimum !== undefined)\n        _json.minLength = minimum;\n    if (maximum !== undefined)\n        _json.maxLength = maximum;\n    if (!mime)\n        return;\n    // an empty intersection means the mime checks share no value, so nothing passes at runtime; `anyOf` must be non-empty, so the false schema is `not: {}`\n    if (mime.length === 0)\n        _json.not = {};\n    else if (mime.length === 1)\n        _json.contentMediaType = mime[0];\n    // only contentMediaType differs, so the shared props stay at the root\n    else\n        _json.anyOf = mime.map((m) => ({ contentMediaType: m }));\n};\nexport const successProcessor = (_schema, _ctx, json, _params) => {\n    json.type = \"boolean\";\n};\nexport const customProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Custom types cannot be represented in JSON Schema\");\n};\nexport const functionProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Function types cannot be represented in JSON Schema\");\n};\nexport const transformProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Transforms cannot be represented in JSON Schema\");\n};\nexport const mapProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Map cannot be represented in JSON Schema\");\n};\nexport const setProcessor = (schema, ctx, json, params) => {\n    handleUnrepresentable(schema, ctx, json, params, \"Set cannot be represented in JSON Schema\");\n};\n// ==================== COMPOSITE TYPE PROCESSORS ====================\nexport const arrayProcessor = (schema, ctx, _json, params) => {\n    const json = _json;\n    const def = schema._zod.def;\n    const { minimum, maximum } = aggregateChecks(schema);\n    if (typeof minimum === \"number\")\n        json.minItems = minimum;\n    if (typeof maximum === \"number\")\n        json.maxItems = maximum;\n    json.type = \"array\";\n    json.items = processSchema(def.element, ctx, {\n        ...params,\n        path: [...params.path, \"items\"],\n    });\n};\n// Transform and catch set `optin = \"optional\"` at runtime so the parser lets them observe an\n// absent key, but their declared input type stays required. An input JSON Schema describes the\n// declared type, so resolve past them to the schema that actually carries the optionality.\n// Used by both `objectProcessor` (for `required`) and `tupleProcessor` (for `minItems`); see\n// wiki/optionality.md, \"The JSON Schema emitter reads the *static* value\".\nfunction inputOptin(schema) {\n    const def = schema._zod.def;\n    if (def.type === \"pipe\" && def.in._zod.traits.has(\"$ZodTransform\")) {\n        return inputOptin(def.out);\n    }\n    if (def.type === \"catch\") {\n        return inputOptin(def.innerType);\n    }\n    return schema._zod.optin;\n}\nexport const objectProcessor = (schema, ctx, _json, params) => {\n    const json = _json;\n    const def = schema._zod.def;\n    const shape = def.shape;\n    // dropping it while still emitting `additionalProperties: false` would emit a schema that rejects data this one requires\n    const symbolKeys = Object.getOwnPropertySymbols(shape);\n    if (symbolKeys.length &&\n        handleUnrepresentable(schema, ctx, json, params, \"Symbol keys cannot be represented in JSON Schema\")) {\n        return;\n    }\n    json.type = \"object\";\n    json.properties = {};\n    for (const key in shape) {\n        // assignProp so a __proto__ key becomes an own property instead of hitting the inherited setter on the plain {} we build into\n        assignProp(json.properties, key, processSchema(shape[key], ctx, {\n            ...params,\n            path: [...params.path, \"properties\", key],\n        }));\n    }\n    // required keys\n    const requiredKeys = [];\n    for (const key of Object.keys(shape)) {\n        const field = def.shape[key];\n        if (ctx.io === \"input\" ? inputOptin(field) === undefined : field._zod.optout === undefined) {\n            requiredKeys.push(key);\n        }\n    }\n    if (requiredKeys.length > 0) {\n        json.required = requiredKeys;\n    }\n    // catchall\n    if (def.catchall?._zod.def.type === \"never\") {\n        // strict\n        json.additionalProperties = false;\n    }\n    else if (!def.catchall) {\n        // regular\n        if (ctx.io === \"output\")\n            json.additionalProperties = false;\n    }\n    else if (def.catchall) {\n        json.additionalProperties = processSchema(def.catchall, ctx, {\n            ...params,\n            path: [...params.path, \"additionalProperties\"],\n        });\n    }\n};\nexport const unionProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    // Exclusive unions (inclusive === false) use oneOf (exactly one match) instead of anyOf (one or more matches). This includes both z.xor() and discriminated unions\n    const isExclusive = def.inclusive === false;\n    const options = def.options.map((x, i) => processSchema(x, ctx, {\n        ...params,\n        path: [...params.path, isExclusive ? \"oneOf\" : \"anyOf\", i],\n    }));\n    if (isExclusive) {\n        json.oneOf = options;\n    }\n    else {\n        json.anyOf = options;\n    }\n};\nexport const intersectionProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    const a = processSchema(def.left, ctx, {\n        ...params,\n        path: [...params.path, \"allOf\", 0],\n    });\n    const b = processSchema(def.right, ctx, {\n        ...params,\n        path: [...params.path, \"allOf\", 1],\n    });\n    const isSimpleIntersection = (val) => \"allOf\" in val && Object.keys(val).length === 1;\n    const allOf = [\n        ...(isSimpleIntersection(a) ? a.allOf : [a]),\n        ...(isSimpleIntersection(b) ? b.allOf : [b]),\n    ];\n    json.allOf = allOf;\n    // Recorded innermost first, so a nested intersection has already folded by the time this one is considered. The array is the handle rather than the schema, because a wrapper that inherits this schema shares the same array; `finalize` folds every object holding it. See `foldIntersection`.\n    ctx.intersections.push(allOf);\n};\nexport const tupleProcessor = (schema, ctx, _json, params) => {\n    const json = _json;\n    const def = schema._zod.def;\n    json.type = \"array\";\n    const prefixPath = ctx.target === \"draft-2020-12\" ? \"prefixItems\" : \"items\";\n    const restPath = ctx.target === \"draft-2020-12\" ? \"items\" : ctx.target === \"openapi-3.0\" ? \"items\" : \"additionalItems\";\n    const prefixItems = def.items.map((x, i) => processSchema(x, ctx, {\n        ...params,\n        path: [...params.path, prefixPath, i],\n    }));\n    const rest = def.rest\n        ? processSchema(def.rest, ctx, {\n            ...params,\n            path: [...params.path, restPath, ...(ctx.target === \"openapi-3.0\" ? [def.items.length] : [])],\n        })\n        : null;\n    let minItems = def.items.length;\n    while (minItems > 0) {\n        const item = def.items[minItems - 1];\n        const optional = ctx.io === \"input\" ? inputOptin(item) !== undefined : item._zod.optout === \"optional\";\n        if (!optional)\n            break;\n        minItems--;\n    }\n    const maxItems = def.items.length;\n    const isClosed = !def.rest;\n    if (ctx.target === \"draft-2020-12\") {\n        json.prefixItems = prefixItems;\n        if (isClosed) {\n            json.items = false;\n        }\n        else if (rest) {\n            json.items = rest;\n        }\n        if (minItems > 0)\n            json.minItems = minItems;\n        if (isClosed)\n            json.maxItems = maxItems;\n    }\n    else if (ctx.target === \"openapi-3.0\") {\n        json.items = {\n            anyOf: prefixItems,\n        };\n        if (rest) {\n            json.items.anyOf.push(rest);\n        }\n        if (minItems > 0)\n            json.minItems = minItems;\n        if (isClosed)\n            json.maxItems = maxItems;\n    }\n    else {\n        json.items = prefixItems;\n        if (isClosed) {\n            json.additionalItems = false;\n        }\n        else if (rest) {\n            json.additionalItems = rest;\n        }\n        if (minItems > 0)\n            json.minItems = minItems;\n        if (isClosed)\n            json.maxItems = maxItems;\n    }\n    // explicit user-defined length checks take precedence\n    const { minimum, maximum } = aggregateChecks(schema);\n    if (typeof minimum === \"number\")\n        json.minItems = minimum;\n    if (typeof maximum === \"number\")\n        json.maxItems = maximum;\n};\n/** JSON object keys are always strings, so a numeric record key schema is re-expressed over the\n * numeric-string form the record parser matches. Deferred to `finalize`, after the flatten: a key\n * behind a wrapper only carries its own `type` before then, and a union key only has its branches.\n *\n * A numeric bound cannot apply to a property name, so `minimum` and its siblings are dropped rather\n * than carried over: keeping them beside `type: \"string\"` reproduces the match-nothing schema this\n * exists to fix. A key that carries one therefore emits wider than the record parses — `z.record(z.number().min(5), V)`\n * accepts `\"3\"` — which is the deliberate trade, since throwing on it would reject an ordinary schema\n * outright. */\nfunction stringifyKeyNames(bySchema, json, visited) {\n    // an extracted key that rewrites cannot go on sharing its definition — the string form a key position needs is not the number form every other reference wants — so it inlines. One that does not rewrite keeps the `$ref`.\n    if (json.$ref) {\n        // a recursive key holds its own reference inside its definition, so a node already on the path is left alone rather than resolved again\n        if (visited.has(json))\n            return json;\n        visited.add(json);\n        const def = bySchema.get(json)?.def;\n        if (!def)\n            return json;\n        const inlined = stringifyKeyNames(bySchema, def, visited);\n        return inlined === def ? json : inlined;\n    }\n    for (const keyword of [\"anyOf\", \"oneOf\"]) {\n        const branches = json[keyword];\n        if (!Array.isArray(branches))\n            continue;\n        const mapped = branches.map((branch) => stringifyKeyNames(bySchema, branch, visited));\n        // rebuilding regardless would detach a key that had nothing to re-express, dropping its `$ref` and leaking the internal `id`\n        if (mapped.some((branch, i) => branch !== branches[i]))\n            json = { ...json, [keyword]: mapped };\n    }\n    // a member that already admits a string leaves the key unconstrained, so the node's own type re-expresses only when every member is numeric\n    const types = Array.isArray(json.type) ? json.type : [json.type];\n    const numericType = !types.includes(\"string\") && types.some((t) => t === \"number\" || t === \"integer\");\n    // a heterogeneous key carries no type at all, so its numeric members are caught here instead\n    const values = json.enum ?? (json.const !== undefined ? [json.const] : undefined);\n    if (!numericType && !values?.some((v) => typeof v === \"number\"))\n        return json;\n    const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id, ...rest } = json;\n    if (rest.enum)\n        rest.enum = rest.enum.map((v) => (typeof v === \"number\" ? String(v) : v));\n    else if (typeof rest.const === \"number\")\n        rest.const = String(rest.const);\n    // a heterogeneous key keeps its absent type: the stringified members already say what a key may be\n    if (!numericType)\n        return rest;\n    rest.type = \"string\";\n    if (!values)\n        rest.pattern = (types.includes(\"number\") ? regexes.number : regexes.integer).source;\n    return rest;\n}\n/** Every record of one conversion, so the carriers are found in a single pass rather than once per record. */\nconst pendingRecords = new WeakMap();\nfunction rewriteKeyNames(ctx) {\n    // an extracted key is resolved by the object `extractToDef` left in its place, so the map is built once rather than searched per reference. `_zod.toJSONSchema` can hand the same object to two schemas, so the first entry carrying a body wins, as a search would have found it.\n    const bySchema = new Map();\n    for (const entry of ctx.seen.values()) {\n        if (entry.def && !bySchema.has(entry.schema))\n            bySchema.set(entry.schema, entry);\n    }\n    const rewrites = new Map();\n    for (const record of pendingRecords.get(ctx) ?? []) {\n        const seen = ctx.seen.get(record);\n        const names = (seen?.def ?? seen?.schema)?.propertyNames;\n        if (!names || names === true || rewrites.has(names))\n            continue;\n        const rewritten = stringifyKeyNames(bySchema, names, new Set());\n        if (rewritten !== names)\n            rewrites.set(names, rewritten);\n    }\n    if (!rewrites.size)\n        return;\n    // the flatten has already copied each record's own properties onto every wrapper by reference, and an extracted body is another such copy, so every carrier holding a rewritten key is updated together\n    for (const entry of ctx.seen.values()) {\n        for (const carrier of [entry.schema, entry.def]) {\n            const rewritten = carrier && rewrites.get(carrier.propertyNames);\n            if (rewritten)\n                carrier.propertyNames = rewritten;\n        }\n    }\n}\nexport const recordProcessor = (schema, ctx, _json, params) => {\n    const json = _json;\n    const def = schema._zod.def;\n    json.type = \"object\";\n    // For looseRecord with regex patterns, use patternProperties. This correctly represents \"only validate keys matching the pattern\" semantics and composes well with allOf (intersections)\n    const keyType = def.keyType;\n    const patterns = aggregateChecks(keyType).patterns;\n    if (def.mode === \"loose\" && patterns && patterns.size > 0) {\n        // Use patternProperties for looseRecord with regex patterns\n        const valueSchema = processSchema(def.valueType, ctx, {\n            ...params,\n            path: [...params.path, \"patternProperties\", \"*\"],\n        });\n        json.patternProperties = {};\n        for (const pattern of patterns) {\n            assignProp(json.patternProperties, exactPattern(pattern).source, valueSchema);\n        }\n    }\n    else {\n        // Default behavior: use propertyNames + additionalProperties\n        if (ctx.target === \"draft-07\" || ctx.target === \"draft-2020-12\") {\n            json.propertyNames = processSchema(def.keyType, ctx, {\n                ...params,\n                path: [...params.path, \"propertyNames\"],\n            });\n            let pending = pendingRecords.get(ctx);\n            if (!pending) {\n                pending = [];\n                pendingRecords.set(ctx, pending);\n                ctx.deferred.push(() => rewriteKeyNames(ctx));\n            }\n            pending.push(schema);\n        }\n        json.additionalProperties = processSchema(def.valueType, ctx, {\n            ...params,\n            path: [...params.path, \"additionalProperties\"],\n        });\n    }\n    // Add required for keys with discrete values (enum, literal, etc.)\n    const keyValues = keyType._zod.values;\n    // Every key shares one value schema, so an optional-in value makes the whole key set omittable on input. Output keeps them: the exhaustive branch assigns every key, even one whose value came back undefined.\n    const omittableOnInput = ctx.io === \"input\" && inputOptin(def.valueType) !== undefined;\n    if (keyValues && !def.partial && !omittableOnInput) {\n        const validKeyValues = [...keyValues].filter((v) => typeof v === \"string\" || typeof v === \"number\");\n        if (validKeyValues.length > 0) {\n            json.required = validKeyValues.map(String);\n        }\n    }\n};\nexport const nullableProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    const inner = processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    if (ctx.target === \"openapi-3.0\") {\n        seen.ref = def.innerType;\n        json.nullable = true;\n    }\n    else {\n        json.anyOf = [inner, { type: \"null\" }];\n    }\n};\nexport const nonoptionalProcessor = (schema, ctx, _json, params) => {\n    const def = schema._zod.def;\n    processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = def.innerType;\n};\n/** Round-trips a default value through JSON so the emitted schema is guaranteed to be valid JSON.\n * A BigInt has no reliable encoding, so it goes through `unrepresentable` like any other\n * unrepresentable value. Returns a sentinel when the caller must not write a default of its own. */\nconst UNREPRESENTABLE_DEFAULT = Symbol();\nfunction serializeDefaultValue(value, schema, ctx, json, params) {\n    let unrepresentable = false;\n    const serialized = JSON.stringify(value, (_, val) => {\n        if (typeof val !== \"bigint\")\n            return val;\n        unrepresentable = true;\n        return null;\n    });\n    if (!unrepresentable)\n        return JSON.parse(serialized);\n    handleUnrepresentable(schema, ctx, json, params, \"BigInt defaults cannot be represented in JSON Schema\");\n    return UNREPRESENTABLE_DEFAULT;\n}\nexport const defaultProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = def.innerType;\n    const value = serializeDefaultValue(def.defaultValue, schema, ctx, json, params);\n    if (value !== UNREPRESENTABLE_DEFAULT)\n        json.default = value;\n};\nexport const prefaultProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = def.innerType;\n    if (ctx.io !== \"input\")\n        return;\n    const value = serializeDefaultValue(def.defaultValue, schema, ctx, json, params);\n    if (value !== UNREPRESENTABLE_DEFAULT)\n        json._prefault = value;\n};\nexport const catchProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = def.innerType;\n    let catchValue;\n    try {\n        catchValue = def.catchValue(undefined);\n    }\n    catch {\n        handleUnrepresentable(schema, ctx, json, params, \"Dynamic catch values are not supported in JSON Schema\");\n        return;\n    }\n    json.default = catchValue;\n};\nexport const pipeProcessor = (schema, ctx, _json, params) => {\n    const def = schema._zod.def;\n    const inIsTransform = def.in._zod.traits.has(\"$ZodTransform\");\n    const innerType = ctx.io === \"input\" ? (inIsTransform ? def.out : def.in) : def.out;\n    processSchema(innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = innerType;\n};\nexport const readonlyProcessor = (schema, ctx, json, params) => {\n    const def = schema._zod.def;\n    processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = def.innerType;\n    json.readOnly = true;\n};\nexport const promiseProcessor = (schema, ctx, _json, params) => {\n    const def = schema._zod.def;\n    processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = def.innerType;\n};\nexport const optionalProcessor = (schema, ctx, _json, params) => {\n    const def = schema._zod.def;\n    processSchema(def.innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = def.innerType;\n};\nexport const lazyProcessor = (schema, ctx, _json, params) => {\n    const innerType = schema._zod.innerType;\n    processSchema(innerType, ctx, params);\n    const seen = ctx.seen.get(schema);\n    seen.ref = innerType;\n};\n// ==================== ALL PROCESSORS ====================\nexport const allProcessors = {\n    string: stringProcessor,\n    number: numberProcessor,\n    boolean: booleanProcessor,\n    bigint: bigintProcessor,\n    symbol: symbolProcessor,\n    null: nullProcessor,\n    undefined: undefinedProcessor,\n    void: voidProcessor,\n    never: neverProcessor,\n    any: anyProcessor,\n    unknown: unknownProcessor,\n    date: dateProcessor,\n    enum: enumProcessor,\n    literal: literalProcessor,\n    nan: nanProcessor,\n    template_literal: templateLiteralProcessor,\n    file: fileProcessor,\n    success: successProcessor,\n    custom: customProcessor,\n    function: functionProcessor,\n    transform: transformProcessor,\n    map: mapProcessor,\n    set: setProcessor,\n    array: arrayProcessor,\n    object: objectProcessor,\n    union: unionProcessor,\n    intersection: intersectionProcessor,\n    tuple: tupleProcessor,\n    record: recordProcessor,\n    nullable: nullableProcessor,\n    nonoptional: nonoptionalProcessor,\n    default: defaultProcessor,\n    prefault: prefaultProcessor,\n    catch: catchProcessor,\n    pipe: pipeProcessor,\n    readonly: readonlyProcessor,\n    promise: promiseProcessor,\n    optional: optionalProcessor,\n    lazy: lazyProcessor,\n};\nexport function toJSONSchema(input, params) {\n    if (\"_idmap\" in input) {\n        // Registry case\n        const registry = input;\n        const ctx = initializeContext({ ...params, processors: allProcessors });\n        const defs = {};\n        // First pass: process all schemas to build the seen map\n        for (const entry of registry._idmap.entries()) {\n            const [_, schema] = entry;\n            processSchema(schema, ctx);\n        }\n        const schemas = {};\n        const external = {\n            registry,\n            uri: params?.uri,\n            defs,\n        };\n        // Update the context with external configuration\n        ctx.external = external;\n        // Second pass: emit each schema\n        for (const entry of registry._idmap.entries()) {\n            const [key, schema] = entry;\n            extractDefs(ctx, schema);\n            assignProp(schemas, key, finalize(ctx, schema));\n        }\n        if (Object.keys(defs).length > 0) {\n            const defsSegment = ctx.target === \"draft-2020-12\" ? \"$defs\" : \"definitions\";\n            schemas.__shared = {\n                [defsSegment]: defs,\n            };\n        }\n        return { schemas };\n    }\n    // Single schema case\n    const ctx = initializeContext({ ...params, processors: allProcessors });\n    processSchema(input, ctx);\n    extractDefs(ctx, input);\n    return finalize(ctx, input);\n}\n","import { allProcessors } from \"./json-schema-processors.js\";\nimport { extractDefs, finalize, initializeContext, processSchema, } from \"./to-json-schema.js\";\n/**\n * Legacy class-based interface for JSON Schema generation.\n * This class wraps the new functional implementation to provide backward compatibility.\n *\n * @deprecated Use the `toJSONSchema` function instead for new code.\n *\n * @example\n * ```typescript\n * // Legacy usage (still supported)\n * const gen = new JSONSchemaGenerator({ target: \"draft-07\" });\n * gen.process(schema);\n * const result = gen.emit(schema);\n *\n * // Preferred modern usage\n * const result = toJSONSchema(schema, { target: \"draft-07\" });\n * ```\n */\nexport class JSONSchemaGenerator {\n    /** @deprecated Access via ctx instead */\n    get metadataRegistry() {\n        return this.ctx.metadataRegistry;\n    }\n    /** @deprecated Access via ctx instead */\n    get target() {\n        return this.ctx.target;\n    }\n    // annotated so the .d.cts emits an indexed access rather than an inline `import()` of an ESM path\n    /** @deprecated Access via ctx instead */\n    get unrepresentable() {\n        return this.ctx.unrepresentable;\n    }\n    /** @deprecated Access via ctx instead */\n    get override() {\n        return this.ctx.override;\n    }\n    /** @deprecated Access via ctx instead */\n    get io() {\n        return this.ctx.io;\n    }\n    /** @deprecated Access via ctx instead */\n    get counter() {\n        return this.ctx.counter;\n    }\n    set counter(value) {\n        this.ctx.counter = value;\n    }\n    /** @deprecated Access via ctx instead */\n    get seen() {\n        return this.ctx.seen;\n    }\n    constructor(params) {\n        // Normalize target for internal context\n        let normalizedTarget = params?.target ?? \"draft-2020-12\";\n        if (normalizedTarget === \"draft-4\")\n            normalizedTarget = \"draft-04\";\n        if (normalizedTarget === \"draft-7\")\n            normalizedTarget = \"draft-07\";\n        this.ctx = initializeContext({\n            processors: allProcessors,\n            target: normalizedTarget,\n            ...(params?.metadata && { metadata: params.metadata }),\n            ...(params?.unrepresentable && { unrepresentable: params.unrepresentable }),\n            ...(params?.override && { override: params.override }),\n            ...(params?.io && { io: params.io }),\n        });\n    }\n    /**\n     * Process a schema to prepare it for JSON Schema generation.\n     * This must be called before emit().\n     */\n    process(schema, _params = { path: [], schemaPath: [] }) {\n        return processSchema(schema, this.ctx, _params);\n    }\n    /**\n     * Emit the final JSON Schema after processing.\n     * Must call process() first.\n     */\n    emit(schema, _params) {\n        // Apply emit params to the context\n        if (_params) {\n            if (_params.cycles)\n                this.ctx.cycles = _params.cycles;\n            if (_params.reused)\n                this.ctx.reused = _params.reused;\n            if (_params.external)\n                this.ctx.external = _params.external;\n        }\n        // extractDefs/finalize skip their whole-map passes when they have already run for this `external`, but they also branch on `cycles`, `reused`, `seen.count` and the metadata registry — any of which can change between emits, including with no params at all. Drop the guards so the passes re-run. The registry conversion calls extractDefs/finalize directly and never routes through here, so it keeps skipping them.\n        this.ctx.sharedDefsExtractedFor = undefined;\n        this.ctx.sharedEmitDoneFor = undefined;\n        extractDefs(this.ctx, schema);\n        const result = finalize(this.ctx, schema);\n        // Strip ~standard property to match old implementation's return type\n        const { \"~standard\": _, ...plainResult } = result;\n        return plainResult;\n    }\n}\n","export {};\n","import * as core from \"../core/index.js\";\nimport * as regexes from \"../core/regexes.js\";\nimport * as util from \"../core/util.js\";\nimport * as parse from \"./parse.js\";\nexport const ZodMiniType = /*@__PURE__*/ core.$constructor(\"ZodMiniType\", (inst, def) => {\n    if (!inst._zod)\n        throw new Error(\"Uninitialized schema in ZodMiniType.\");\n    core.$ZodType.init(inst, def);\n    inst.def = def;\n    inst.type = def.type;\n}, {\n    // `with` is an alias for `check`: the same function object, not a wrapper.\n    get with() {\n        return this.check;\n    },\n    set with(value) {\n        util.own(this, \"with\", value);\n    },\n    parse(data, params) {\n        return parse.parse(this, data, params, { callee: this.parse });\n    },\n    parseAsync(data, params) {\n        return parse.parseAsync(this, data, params, { callee: this.parseAsync });\n    },\n    safeParse(data, params) {\n        return parse.safeParse(this, data, params);\n    },\n    safeParseAsync(data, params) {\n        return parse.safeParseAsync(this, data, params);\n    },\n    check(...checks) {\n        const def = this.def;\n        return this.clone({\n            ...def,\n            checks: [\n                ...(def.checks ?? []),\n                ...checks.map((ch) => typeof ch === \"function\" ? { _zod: { check: ch, def: { check: \"custom\" }, onattach: [] } } : ch),\n            ],\n        }, { parent: true });\n    },\n    clone(_def, params) {\n        return core.clone(this, _def, params);\n    },\n    brand() {\n        return this;\n    },\n    register(reg, meta) {\n        reg.add(this, meta);\n        return this;\n    },\n    apply(fn, ...args) {\n        return args.length === 0 ? fn(this) : fn(this, ...args);\n    },\n});\nexport const ZodMiniString = /*@__PURE__*/ core.$constructor(\"ZodMiniString\", (inst, def) => {\n    core.$ZodString.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function string(params) {\n    return core._string(ZodMiniString, params);\n}\nexport const ZodMiniStringFormat = /*@__PURE__*/ core.$constructor(\"ZodMiniStringFormat\", (inst, def) => {\n    core.$ZodStringFormat.init(inst, def);\n    ZodMiniString.init(inst, def);\n});\nexport const ZodMiniEmail = /*@__PURE__*/ core.$constructor(\"ZodMiniEmail\", (inst, def) => {\n    core.$ZodEmail.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function email(params) {\n    return core._email(ZodMiniEmail, params);\n}\nexport const ZodMiniGUID = /*@__PURE__*/ core.$constructor(\"ZodMiniGUID\", (inst, def) => {\n    core.$ZodGUID.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function guid(params) {\n    return core._guid(ZodMiniGUID, params);\n}\nexport const ZodMiniUUID = /*@__PURE__*/ core.$constructor(\"ZodMiniUUID\", (inst, def) => {\n    core.$ZodUUID.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function uuid(params) {\n    return core._uuid(ZodMiniUUID, params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function uuidv4(params) {\n    return core._uuidv4(ZodMiniUUID, params);\n}\n// ZodMiniUUIDv6\n// @__NO_SIDE_EFFECTS__\nexport function uuidv6(params) {\n    return core._uuidv6(ZodMiniUUID, params);\n}\n// ZodMiniUUIDv7\n// @__NO_SIDE_EFFECTS__\nexport function uuidv7(params) {\n    return core._uuidv7(ZodMiniUUID, params);\n}\nexport const ZodMiniURL = /*@__PURE__*/ core.$constructor(\"ZodMiniURL\", (inst, def) => {\n    core.$ZodURL.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function url(params) {\n    return core._url(ZodMiniURL, params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function httpUrl(params) {\n    return core._url(ZodMiniURL, {\n        protocol: regexes.httpProtocol,\n        hostname: regexes.domain,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniEmoji = /*@__PURE__*/ core.$constructor(\"ZodMiniEmoji\", (inst, def) => {\n    core.$ZodEmoji.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function emoji(params) {\n    return core._emoji(ZodMiniEmoji, params);\n}\nexport const ZodMiniNanoID = /*@__PURE__*/ core.$constructor(\"ZodMiniNanoID\", (inst, def) => {\n    core.$ZodNanoID.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function nanoid(params) {\n    return core._nanoid(ZodMiniNanoID, params);\n}\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport const ZodMiniCUID = /*@__PURE__*/ core.$constructor(\"ZodMiniCUID\", (inst, def) => {\n    core.$ZodCUID.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n/**\n * Validates a CUID v1 string.\n *\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.\n * See https://github.com/paralleldrive/cuid.\n */\n// @__NO_SIDE_EFFECTS__\nexport function cuid(params) {\n    return core._cuid(ZodMiniCUID, params);\n}\nexport const ZodMiniCUID2 = /*@__PURE__*/ core.$constructor(\"ZodMiniCUID2\", (inst, def) => {\n    core.$ZodCUID2.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function cuid2(params) {\n    return core._cuid2(ZodMiniCUID2, params);\n}\nexport const ZodMiniULID = /*@__PURE__*/ core.$constructor(\"ZodMiniULID\", (inst, def) => {\n    core.$ZodULID.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function ulid(params) {\n    return core._ulid(ZodMiniULID, params);\n}\nexport const ZodMiniXID = /*@__PURE__*/ core.$constructor(\"ZodMiniXID\", (inst, def) => {\n    core.$ZodXID.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function xid(params) {\n    return core._xid(ZodMiniXID, params);\n}\nexport const ZodMiniKSUID = /*@__PURE__*/ core.$constructor(\"ZodMiniKSUID\", (inst, def) => {\n    core.$ZodKSUID.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function ksuid(params) {\n    return core._ksuid(ZodMiniKSUID, params);\n}\nexport const ZodMiniIPv4 = /*@__PURE__*/ core.$constructor(\"ZodMiniIPv4\", (inst, def) => {\n    core.$ZodIPv4.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function ipv4(params) {\n    return core._ipv4(ZodMiniIPv4, params);\n}\nexport const ZodMiniIPv6 = /*@__PURE__*/ core.$constructor(\"ZodMiniIPv6\", (inst, def) => {\n    core.$ZodIPv6.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function ipv6(params) {\n    return core._ipv6(ZodMiniIPv6, params);\n}\nexport const ZodMiniCIDRv4 = /*@__PURE__*/ core.$constructor(\"ZodMiniCIDRv4\", (inst, def) => {\n    core.$ZodCIDRv4.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function cidrv4(params) {\n    return core._cidrv4(ZodMiniCIDRv4, params);\n}\nexport const ZodMiniCIDRv6 = /*@__PURE__*/ core.$constructor(\"ZodMiniCIDRv6\", (inst, def) => {\n    core.$ZodCIDRv6.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function cidrv6(params) {\n    return core._cidrv6(ZodMiniCIDRv6, params);\n}\nexport const ZodMiniMAC = /*@__PURE__*/ core.$constructor(\"ZodMiniMAC\", (inst, def) => {\n    core.$ZodMAC.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function mac(params) {\n    return core._mac(ZodMiniMAC, params);\n}\nexport const ZodMiniBase64 = /*@__PURE__*/ core.$constructor(\"ZodMiniBase64\", (inst, def) => {\n    core.$ZodBase64.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function base64(params) {\n    return core._base64(ZodMiniBase64, params);\n}\nexport const ZodMiniBase64URL = /*@__PURE__*/ core.$constructor(\"ZodMiniBase64URL\", (inst, def) => {\n    core.$ZodBase64URL.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function base64url(params) {\n    return core._base64url(ZodMiniBase64URL, params);\n}\nexport const ZodMiniE164 = /*@__PURE__*/ core.$constructor(\"ZodMiniE164\", (inst, def) => {\n    core.$ZodE164.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function e164(params) {\n    return core._e164(ZodMiniE164, params);\n}\nexport const ZodMiniCreditCard = /*@__PURE__*/ core.$constructor(\"ZodMiniCreditCard\", (inst, def) => {\n    core.$ZodCreditCard.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function creditCard(params) {\n    return core._creditCard(ZodMiniCreditCard, params);\n}\nexport const ZodMiniIBAN = /*@__PURE__*/ core.$constructor(\"ZodMiniIBAN\", (inst, def) => {\n    core.$ZodIBAN.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function iban(params) {\n    return core._iban(ZodMiniIBAN, params);\n}\nexport const ZodMiniJWT = /*@__PURE__*/ core.$constructor(\"ZodMiniJWT\", (inst, def) => {\n    core.$ZodJWT.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function jwt(params) {\n    return core._jwt(ZodMiniJWT, params);\n}\nexport const ZodMiniCustomStringFormat = /*@__PURE__*/ core.$constructor(\"ZodMiniCustomStringFormat\", (inst, def) => {\n    core.$ZodCustomStringFormat.init(inst, def);\n    ZodMiniStringFormat.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function stringFormat(format, fnOrRegex, _params = {}) {\n    return core._stringFormat(ZodMiniCustomStringFormat, format, fnOrRegex, _params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function hostname(_params) {\n    return core._stringFormat(ZodMiniCustomStringFormat, \"hostname\", regexes.hostname, _params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function hex(_params) {\n    return core._stringFormat(ZodMiniCustomStringFormat, \"hex\", regexes.hex, _params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function currencyCode(_params) {\n    return core._stringFormat(ZodMiniCustomStringFormat, \"currency_code\", regexes.currencyCode, _params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function hash(alg, params) {\n    const enc = params?.enc ?? \"hex\";\n    const format = `${alg}_${enc}`;\n    const regex = core.regexes[format];\n    // check for unrecognized format\n    if (!regex)\n        throw new Error(`Unrecognized hash format: ${format}`);\n    return core._stringFormat(ZodMiniCustomStringFormat, format, regex, params);\n}\nexport const ZodMiniNumber = /*@__PURE__*/ core.$constructor(\"ZodMiniNumber\", (inst, def) => {\n    core.$ZodNumber.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function number(params) {\n    return core._number(ZodMiniNumber, params);\n}\nexport const ZodMiniNumberFormat = /*@__PURE__*/ core.$constructor(\"ZodMiniNumberFormat\", (inst, def) => {\n    core.$ZodNumberFormat.init(inst, def);\n    ZodMiniNumber.init(inst, def);\n});\nexport function int(params) {\n    return core._int(ZodMiniNumberFormat, params);\n}\nexport function float32(params) {\n    return core._float32(ZodMiniNumberFormat, params);\n}\nexport function float64(params) {\n    return core._float64(ZodMiniNumberFormat, params);\n}\nexport function int32(params) {\n    return core._int32(ZodMiniNumberFormat, params);\n}\nexport function uint32(params) {\n    return core._uint32(ZodMiniNumberFormat, params);\n}\nexport const ZodMiniBoolean = /*@__PURE__*/ core.$constructor(\"ZodMiniBoolean\", (inst, def) => {\n    core.$ZodBoolean.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function boolean(params) {\n    return core._boolean(ZodMiniBoolean, params);\n}\nexport const ZodMiniBigInt = /*@__PURE__*/ core.$constructor(\"ZodMiniBigInt\", (inst, def) => {\n    core.$ZodBigInt.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function bigint(params) {\n    return core._bigint(ZodMiniBigInt, params);\n}\nexport const ZodMiniBigIntFormat = /*@__PURE__*/ core.$constructor(\"ZodMiniBigIntFormat\", (inst, def) => {\n    core.$ZodBigIntFormat.init(inst, def);\n    ZodMiniBigInt.init(inst, def);\n});\nexport function int64(params) {\n    return core._int64(ZodMiniBigIntFormat, params);\n}\nexport function uint64(params) {\n    return core._uint64(ZodMiniBigIntFormat, params);\n}\nexport const ZodMiniSymbol = /*@__PURE__*/ core.$constructor(\"ZodMiniSymbol\", (inst, def) => {\n    core.$ZodSymbol.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function symbol(params) {\n    return core._symbol(ZodMiniSymbol, params);\n}\nexport const ZodMiniUndefined = /*@__PURE__*/ core.$constructor(\"ZodMiniUndefined\", (inst, def) => {\n    core.$ZodUndefined.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nfunction _undefined(params) {\n    return core._undefined(ZodMiniUndefined, params);\n}\nexport { _undefined as undefined };\nexport const ZodMiniNull = /*@__PURE__*/ core.$constructor(\"ZodMiniNull\", (inst, def) => {\n    core.$ZodNull.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nfunction _null(params) {\n    return core._null(ZodMiniNull, params);\n}\nexport { _null as null };\nexport const ZodMiniAny = /*@__PURE__*/ core.$constructor(\"ZodMiniAny\", (inst, def) => {\n    core.$ZodAny.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function any() {\n    return core._any(ZodMiniAny);\n}\nexport const ZodMiniUnknown = /*@__PURE__*/ core.$constructor(\"ZodMiniUnknown\", (inst, def) => {\n    core.$ZodUnknown.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function unknown() {\n    return core._unknown(ZodMiniUnknown);\n}\nexport const ZodMiniNever = /*@__PURE__*/ core.$constructor(\"ZodMiniNever\", (inst, def) => {\n    core.$ZodNever.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function never(params) {\n    return core._never(ZodMiniNever, params);\n}\nexport const ZodMiniVoid = /*@__PURE__*/ core.$constructor(\"ZodMiniVoid\", (inst, def) => {\n    core.$ZodVoid.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nfunction _void(params) {\n    return core._void(ZodMiniVoid, params);\n}\nexport { _void as void };\nexport const ZodMiniDate = /*@__PURE__*/ core.$constructor(\"ZodMiniDate\", (inst, def) => {\n    core.$ZodDate.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function date(params) {\n    return core._date(ZodMiniDate, params);\n}\nexport const ZodMiniArray = /*@__PURE__*/ core.$constructor(\"ZodMiniArray\", (inst, def) => {\n    core.$ZodArray.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function array(element, params) {\n    return new ZodMiniArray({\n        type: \"array\",\n        element: element,\n        ...util.normalizeParams(params),\n    });\n}\n// .keyof\n// @__NO_SIDE_EFFECTS__\nexport function keyof(schema) {\n    const shape = schema._zod.def.shape;\n    return _enum(Object.keys(shape));\n}\nexport const ZodMiniObject = /*@__PURE__*/ core.$constructor(\"ZodMiniObject\", (inst, def) => {\n    core.$ZodObject.init(inst, def);\n    ZodMiniType.init(inst, def);\n    util.installLazyProp(inst, \"shape\", (self) => self._zod.def.shape, false);\n});\n// @__NO_SIDE_EFFECTS__\nexport function object(shape, params) {\n    const def = {\n        type: \"object\",\n        shape: shape ?? {},\n        ...util.normalizeParams(params),\n    };\n    return new ZodMiniObject(def);\n}\n// strictObject\n// @__NO_SIDE_EFFECTS__\nexport function strictObject(shape, params) {\n    return new ZodMiniObject({\n        type: \"object\",\n        shape,\n        catchall: never(),\n        ...util.normalizeParams(params),\n    });\n}\n// looseObject\n// @__NO_SIDE_EFFECTS__\nexport function looseObject(shape, params) {\n    return new ZodMiniObject({\n        type: \"object\",\n        shape,\n        catchall: unknown(),\n        ...util.normalizeParams(params),\n    });\n}\n// object methods\n// @__NO_SIDE_EFFECTS__\nexport function extend(schema, shape) {\n    return util.extend(schema, shape);\n}\n// @__NO_SIDE_EFFECTS__\nexport function safeExtend(schema, shape) {\n    return util.safeExtend(schema, shape);\n}\n/**\n * @deprecated Use [`z.extend(A, B.shape)`](https://zod.dev/api?id=extend) instead.\n */\n// @__NO_SIDE_EFFECTS__\nexport function merge(a, b) {\n    return util.merge(a, b);\n}\n// @__NO_SIDE_EFFECTS__\nexport function pick(schema, mask) {\n    return util.pick(schema, mask);\n}\n// .omit\n// @__NO_SIDE_EFFECTS__\nexport function omit(schema, mask) {\n    return util.omit(schema, mask);\n}\n// @__NO_SIDE_EFFECTS__\nexport function partial(schema, mask) {\n    const def = schema._zod.def;\n    if (def.type !== \"tuple\")\n        return util.partial(ZodMiniOptional, schema, mask);\n    // a refinement was authored against the full arity; partialing would run it on a shorter array\n    if (def.checks?.length)\n        throw new Error(\".partial() cannot be used on tuple schemas containing refinements\");\n    return util.clone(schema, {\n        ...def,\n        items: def.items.map((item) => new ZodMiniOptional({ type: \"optional\", innerType: item })),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function exactPartial(schema, mask) {\n    return util.partial(ZodMiniExactOptional, schema, mask, \"exactPartial\");\n}\n// @__NO_SIDE_EFFECTS__\nexport function required(schema, mask) {\n    return util.required(ZodMiniNonOptional, schema, mask);\n}\n// @__NO_SIDE_EFFECTS__\nexport function catchall(inst, catchall) {\n    // `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree\n    return inst.clone(util.mergeDefs(inst._zod.def, { catchall: catchall }));\n}\nexport const ZodMiniUnion = /*@__PURE__*/ core.$constructor(\"ZodMiniUnion\", (inst, def) => {\n    core.$ZodUnion.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function union(options, params) {\n    return new ZodMiniUnion({\n        type: \"union\",\n        options: options,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniXor = /*@__PURE__*/ core.$constructor(\"ZodMiniXor\", (inst, def) => {\n    ZodMiniUnion.init(inst, def);\n    core.$ZodXor.init(inst, def);\n});\n/** Creates an exclusive union (XOR) where exactly one option must match.\n * Unlike regular unions that succeed when any option matches, xor fails if\n * zero or more than one option matches the input. */\nexport function xor(options, params) {\n    return new ZodMiniXor({\n        type: \"union\",\n        options: options,\n        inclusive: false,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniDiscriminatedUnion = /*@__PURE__*/ core.$constructor(\"ZodMiniDiscriminatedUnion\", (inst, def) => {\n    core.$ZodDiscriminatedUnion.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function discriminatedUnion(discriminator, options, params) {\n    return new ZodMiniDiscriminatedUnion({\n        type: \"union\",\n        options: options,\n        discriminator,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniIntersection = /*@__PURE__*/ core.$constructor(\"ZodMiniIntersection\", (inst, def) => {\n    core.$ZodIntersection.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function intersection(left, right) {\n    return new ZodMiniIntersection({\n        type: \"intersection\",\n        left: left,\n        right: right,\n    });\n}\nexport const ZodMiniTuple = /*@__PURE__*/ core.$constructor(\"ZodMiniTuple\", (inst, def) => {\n    core.$ZodTuple.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function tuple(items, _paramsOrRest, _params) {\n    const hasRest = _paramsOrRest instanceof core.$ZodType;\n    const params = hasRest ? _params : _paramsOrRest;\n    const rest = hasRest ? _paramsOrRest : null;\n    return new ZodMiniTuple({\n        type: \"tuple\",\n        items: items,\n        rest,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniRecord = /*@__PURE__*/ core.$constructor(\"ZodMiniRecord\", (inst, def) => {\n    core.$ZodRecord.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function record(keyType, valueType, params) {\n    // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()\n    if (!valueType || !valueType._zod) {\n        return new ZodMiniRecord({\n            type: \"record\",\n            keyType: string(),\n            valueType: keyType,\n            ...util.normalizeParams(valueType),\n        });\n    }\n    return new ZodMiniRecord({\n        type: \"record\",\n        keyType,\n        valueType: valueType,\n        ...util.normalizeParams(params),\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function partialRecord(keyType, valueType, params) {\n    return new ZodMiniRecord({\n        type: \"record\",\n        keyType,\n        valueType: valueType,\n        ...util.normalizeParams(params),\n        partial: true,\n    });\n}\nexport function looseRecord(keyType, valueType, params) {\n    return new ZodMiniRecord({\n        type: \"record\",\n        keyType,\n        valueType: valueType,\n        mode: \"loose\",\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniMap = /*@__PURE__*/ core.$constructor(\"ZodMiniMap\", (inst, def) => {\n    core.$ZodMap.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function map(keyType, valueType, params) {\n    return new ZodMiniMap({\n        type: \"map\",\n        keyType: keyType,\n        valueType: valueType,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniSet = /*@__PURE__*/ core.$constructor(\"ZodMiniSet\", (inst, def) => {\n    core.$ZodSet.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function set(valueType, params) {\n    return new ZodMiniSet({\n        type: \"set\",\n        valueType: valueType,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniEnum = /*@__PURE__*/ core.$constructor(\"ZodMiniEnum\", (inst, def) => {\n    core.$ZodEnum.init(inst, def);\n    ZodMiniType.init(inst, def);\n    // reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out\n    inst.options = [...inst._zod.values];\n});\n// @__NO_SIDE_EFFECTS__\nfunction _enum(values, params) {\n    const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;\n    return new ZodMiniEnum({\n        type: \"enum\",\n        entries,\n        ...util.normalizeParams(params),\n    });\n}\nexport { _enum as enum };\n// @__NO_SIDE_EFFECTS__\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport function nativeEnum(entries, params) {\n    return new ZodMiniEnum({\n        type: \"enum\",\n        entries,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniLiteral = /*@__PURE__*/ core.$constructor(\"ZodMiniLiteral\", (inst, def) => {\n    core.$ZodLiteral.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function literal(value, params) {\n    return new ZodMiniLiteral({\n        type: \"literal\",\n        values: Array.isArray(value) ? value : [value],\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniFile = /*@__PURE__*/ core.$constructor(\"ZodMiniFile\", (inst, def) => {\n    core.$ZodFile.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function file(params) {\n    return core._file(ZodMiniFile, params);\n}\nexport const ZodMiniTransform = /*@__PURE__*/ core.$constructor(\"ZodMiniTransform\", (inst, def) => {\n    core.$ZodTransform.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function transform(fn) {\n    return new ZodMiniTransform({\n        type: \"transform\",\n        transform: fn,\n    });\n}\nexport const ZodMiniOptional = /*@__PURE__*/ core.$constructor(\"ZodMiniOptional\", (inst, def) => {\n    core.$ZodOptional.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function optional(innerType) {\n    return new ZodMiniOptional({\n        type: \"optional\",\n        innerType: innerType,\n    });\n}\nexport const ZodMiniExactOptional = /*@__PURE__*/ core.$constructor(\"ZodMiniExactOptional\", (inst, def) => {\n    core.$ZodExactOptional.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function exactOptional(innerType) {\n    return new ZodMiniExactOptional({\n        type: \"optional\",\n        innerType: innerType,\n    });\n}\nexport const ZodMiniNullable = /*@__PURE__*/ core.$constructor(\"ZodMiniNullable\", (inst, def) => {\n    core.$ZodNullable.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function nullable(innerType) {\n    return new ZodMiniNullable({\n        type: \"nullable\",\n        innerType: innerType,\n    });\n}\n// nullish\n// @__NO_SIDE_EFFECTS__\nexport function nullish(innerType) {\n    return optional(nullable(innerType));\n}\nexport const ZodMiniDefault = /*@__PURE__*/ core.$constructor(\"ZodMiniDefault\", (inst, def) => {\n    core.$ZodDefault.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function _default(innerType, defaultValue) {\n    return new ZodMiniDefault({\n        type: \"default\",\n        innerType: innerType,\n        get defaultValue() {\n            return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n        },\n    });\n}\nexport const ZodMiniPrefault = /*@__PURE__*/ core.$constructor(\"ZodMiniPrefault\", (inst, def) => {\n    core.$ZodPrefault.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function prefault(innerType, defaultValue) {\n    return new ZodMiniPrefault({\n        type: \"prefault\",\n        innerType: innerType,\n        get defaultValue() {\n            return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n        },\n    });\n}\nexport const ZodMiniNonOptional = /*@__PURE__*/ core.$constructor(\"ZodMiniNonOptional\", (inst, def) => {\n    core.$ZodNonOptional.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function nonoptional(innerType, params) {\n    return new ZodMiniNonOptional({\n        type: \"nonoptional\",\n        innerType: innerType,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniSuccess = /*@__PURE__*/ core.$constructor(\"ZodMiniSuccess\", (inst, def) => {\n    core.$ZodSuccess.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function success(innerType) {\n    return new ZodMiniSuccess({\n        type: \"success\",\n        innerType: innerType,\n    });\n}\nexport const ZodMiniCatch = /*@__PURE__*/ core.$constructor(\"ZodMiniCatch\", (inst, def) => {\n    core.$ZodCatch.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nfunction _catch(innerType, catchValue) {\n    return new ZodMiniCatch({\n        type: \"catch\",\n        innerType: innerType,\n        catchValue: (typeof catchValue === \"function\" ? catchValue : core.util.constantCatch(catchValue)),\n    });\n}\nexport { _catch as catch };\nexport const ZodMiniNaN = /*@__PURE__*/ core.$constructor(\"ZodMiniNaN\", (inst, def) => {\n    core.$ZodNaN.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function nan(params) {\n    return core._nan(ZodMiniNaN, params);\n}\nexport const ZodMiniPipe = /*@__PURE__*/ core.$constructor(\"ZodMiniPipe\", (inst, def) => {\n    core.$ZodPipe.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function pipe(in_, out) {\n    return new ZodMiniPipe({\n        type: \"pipe\",\n        in: in_,\n        out: out,\n    });\n}\nexport const ZodMiniCodec = /*@__PURE__*/ core.$constructor(\"ZodMiniCodec\", (inst, def) => {\n    ZodMiniPipe.init(inst, def);\n    core.$ZodCodec.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function codec(in_, out, params) {\n    return new ZodMiniCodec({\n        type: \"pipe\",\n        in: in_,\n        out: out,\n        transform: params.decode,\n        reverseTransform: params.encode,\n    });\n}\n// @__NO_SIDE_EFFECTS__\nexport function invertCodec(codec) {\n    const def = codec._zod.def;\n    return new ZodMiniCodec({\n        type: \"pipe\",\n        in: def.out,\n        out: def.in,\n        transform: def.reverseTransform,\n        reverseTransform: def.transform,\n    });\n}\nexport const ZodMiniReadonly = /*@__PURE__*/ core.$constructor(\"ZodMiniReadonly\", (inst, def) => {\n    core.$ZodReadonly.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function readonly(innerType) {\n    return new ZodMiniReadonly({\n        type: \"readonly\",\n        innerType: innerType,\n    });\n}\nexport const ZodMiniTemplateLiteral = /*@__PURE__*/ core.$constructor(\"ZodMiniTemplateLiteral\", (inst, def) => {\n    core.$ZodTemplateLiteral.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function templateLiteral(parts, params) {\n    return new ZodMiniTemplateLiteral({\n        type: \"template_literal\",\n        parts,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMiniLazy = /*@__PURE__*/ core.$constructor(\"ZodMiniLazy\", (inst, def) => {\n    core.$ZodLazy.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// export function lazy<T extends object>(getter: () => T): T {\n//   return util.createTransparentProxy<T>(getter);\n// }\n// @__NO_SIDE_EFFECTS__\nfunction _lazy(getter) {\n    return new ZodMiniLazy({\n        type: \"lazy\",\n        getter: getter,\n    });\n}\nexport { _lazy as lazy };\nexport const ZodMiniPromise = /*@__PURE__*/ core.$constructor(\"ZodMiniPromise\", (inst, def) => {\n    core.$ZodPromise.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function promise(innerType) {\n    return new ZodMiniPromise({\n        type: \"promise\",\n        innerType: innerType,\n    });\n}\nexport const ZodMiniCustom = /*@__PURE__*/ core.$constructor(\"ZodMiniCustom\", (inst, def) => {\n    core.$ZodCustom.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// custom checks\n// @__NO_SIDE_EFFECTS__\nexport function check(fn, params) {\n    const ch = new core.$ZodCheck({\n        check: \"custom\",\n        ...util.normalizeParams(params),\n    });\n    ch._zod.check = fn;\n    return ch;\n}\n// ZodCustom custom schema\n// @__NO_SIDE_EFFECTS__\nexport function custom(fn, _params) {\n    return core._custom(ZodMiniCustom, fn ?? (() => true), _params);\n}\n// refine\n// @__NO_SIDE_EFFECTS__\nexport function refine(fn, _params = {}) {\n    return core._refine(ZodMiniCustom, fn, _params);\n}\n// superRefine\n// @__NO_SIDE_EFFECTS__\nexport function superRefine(fn, params) {\n    return core._superRefine(fn, params);\n}\n// Re-export describe and meta from core\nexport const describe = core.describe;\nexport const meta = core.meta;\n// instanceof\nclass Class {\n    constructor(..._args) { }\n}\n// @__NO_SIDE_EFFECTS__\nfunction _instanceof(cls, params = {}) {\n    const inst = custom((data) => data instanceof cls, params);\n    inst._zod.bag.Class = cls;\n    // Override check to emit invalid_type instead of custom\n    inst._zod.check = (payload) => {\n        if (!(payload.value instanceof cls)) {\n            payload.issues.push({\n                code: \"invalid_type\",\n                expected: cls.name,\n                input: payload.value,\n                inst,\n                path: [...(inst._zod.def.path ?? [])],\n            });\n        }\n    };\n    return inst;\n}\nexport { _instanceof as instanceof };\n// stringbool\nexport const stringbool = (...args) => core._stringbool({\n    Codec: ZodMiniCodec,\n    Boolean: ZodMiniBoolean,\n    String: ZodMiniString,\n}, ...args);\n// @__NO_SIDE_EFFECTS__\nexport function json() {\n    const jsonSchema = _lazy(() => {\n        return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);\n    });\n    return jsonSchema;\n}\nexport const ZodMiniFunction = /*@__PURE__*/ core.$constructor(\"ZodMiniFunction\", (inst, def) => {\n    core.$ZodFunction.init(inst, def);\n    ZodMiniType.init(inst, def);\n});\n// @__NO_SIDE_EFFECTS__\nexport function _function(params) {\n    return new ZodMiniFunction({\n        type: \"function\",\n        input: Array.isArray(params?.input) ? tuple(params?.input) : (params?.input ?? array(unknown())),\n        output: params?.output ?? unknown(),\n    });\n}\nexport { _function as function };\n","// Traversal pattern adapted from Jaen's v3 `mapOnSchema` (Apache-2.0): https://gist.github.com/jaens/7e15ae1984bb338c86eb5e452dee3010\nimport * as schemas from \"./schemas.js\";\nimport { clone } from \"./util.js\";\nconst RESOLVING = Symbol(\"z.visit/resolving\");\nexport function visit(schema, fnOrHandlers) {\n    const fn = typeof fnOrHandlers === \"function\"\n        ? fnOrHandlers\n        : (node, rewritten) => {\n            // A union of handlers isn't callable with one argument; handler `K` only ever sees kind `K`.\n            const h = fnOrHandlers[node._zod.def.type];\n            return h ? h(node, rewritten) : node;\n        };\n    const cache = new Map();\n    function run(s) {\n        const cached = cache.get(s);\n        if (cached === RESOLVING) {\n            // Non-lazy cycle. Defer to parse time, when the cache holds the finished node.\n            return new schemas.$ZodLazy({\n                type: \"lazy\",\n                getter: () => cache.get(s),\n            });\n        }\n        if (cached !== undefined)\n            return cached;\n        cache.set(s, RESOLVING);\n        const inner = mapInner(s);\n        const mapped = fn(inner, inner !== s);\n        cache.set(s, mapped);\n        return mapped;\n    }\n    function mapInner(s) {\n        const def = s._zod.def;\n        const kind = def.type;\n        switch (kind) {\n            case \"object\": {\n                const oldShape = def.shape;\n                const keys = Object.keys(oldShape);\n                let changed = false;\n                const newShape = {};\n                for (const k of keys) {\n                    const mapped = run(oldShape[k]);\n                    if (mapped !== oldShape[k])\n                        changed = true;\n                    newShape[k] = mapped;\n                }\n                let newCatchall = def.catchall;\n                if (def.catchall) {\n                    newCatchall = run(def.catchall);\n                    if (newCatchall !== def.catchall)\n                        changed = true;\n                }\n                return changed ? clone(s, { ...def, shape: newShape, catchall: newCatchall }) : s;\n            }\n            case \"array\": {\n                const mapped = run(def.element);\n                return mapped === def.element ? s : clone(s, { ...def, element: mapped });\n            }\n            case \"tuple\": {\n                const oldItems = def.items;\n                let changed = false;\n                const newItems = [];\n                for (const item of oldItems) {\n                    const mapped = run(item);\n                    if (mapped !== item)\n                        changed = true;\n                    newItems.push(mapped);\n                }\n                let newRest = def.rest;\n                if (def.rest) {\n                    newRest = run(def.rest);\n                    if (newRest !== def.rest)\n                        changed = true;\n                }\n                return changed ? clone(s, { ...def, items: newItems, rest: newRest }) : s;\n            }\n            case \"record\":\n            case \"map\": {\n                const newKey = run(def.keyType);\n                const newVal = run(def.valueType);\n                return newKey === def.keyType && newVal === def.valueType\n                    ? s\n                    : clone(s, { ...def, keyType: newKey, valueType: newVal });\n            }\n            case \"set\": {\n                const newVal = run(def.valueType);\n                return newVal === def.valueType ? s : clone(s, { ...def, valueType: newVal });\n            }\n            case \"union\": {\n                const oldOptions = def.options;\n                let changed = false;\n                const newOptions = [];\n                for (const opt of oldOptions) {\n                    const mapped = run(opt);\n                    if (mapped !== opt)\n                        changed = true;\n                    newOptions.push(mapped);\n                }\n                return changed ? clone(s, { ...def, options: newOptions }) : s;\n            }\n            case \"intersection\": {\n                const newLeft = run(def.left);\n                const newRight = run(def.right);\n                return newLeft === def.left && newRight === def.right\n                    ? s\n                    : clone(s, { ...def, left: newLeft, right: newRight });\n            }\n            case \"optional\":\n            case \"nullable\":\n            case \"default\":\n            case \"prefault\":\n            case \"catch\":\n            case \"readonly\":\n            case \"nonoptional\":\n            case \"promise\":\n            case \"success\": {\n                const newInner = run(def.innerType);\n                return newInner === def.innerType ? s : clone(s, { ...def, innerType: newInner });\n            }\n            case \"pipe\": {\n                const newIn = run(def.in);\n                const newOut = run(def.out);\n                return newIn === def.in && newOut === def.out ? s : clone(s, { ...def, in: newIn, out: newOut });\n            }\n            case \"function\": {\n                const newInput = run(def.input);\n                const newOutput = run(def.output);\n                return newInput === def.input && newOutput === def.output\n                    ? s\n                    : clone(s, { ...def, input: newInput, output: newOutput });\n            }\n            case \"lazy\": {\n                // Invoking the getter here would trip the cycle check, so lazy nodes always re-clone.\n                const original = def.getter;\n                // Drop the memo, or it shadows the new getter forever.\n                const { _cachedInner, ...rest } = def;\n                return clone(s, { ...rest, getter: () => run(original()) });\n            }\n            // A leaf by choice: `parts` are regex fragments, not data positions.\n            case \"template_literal\":\n            // Leaves.\n            case \"string\":\n            case \"number\":\n            case \"int\":\n            case \"boolean\":\n            case \"bigint\":\n            case \"symbol\":\n            case \"undefined\":\n            case \"null\":\n            case \"void\":\n            case \"never\":\n            case \"any\":\n            case \"unknown\":\n            case \"date\":\n            case \"nan\":\n            case \"enum\":\n            case \"literal\":\n            case \"file\":\n            case \"transform\":\n            case \"custom\":\n                return s;\n            default: {\n                // A new built-in kind becomes a compile error here; unknown user kinds fall through.\n                kind;\n                return s;\n            }\n        }\n    }\n    return run(schema);\n}\n",null,"export * as core from \"../core/index.js\";\nexport * from \"./schemas.js\";\nexport * from \"./checks.js\";\nexport * from \"./errors.js\";\nexport * from \"./parse.js\";\nexport * from \"./compat.js\";\nexport { globalRegistry, registry, config, memoizer, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, INVALID, toZod, compile, withParser, ZodCompileAsyncError, ZodCompileUnsupportedError, getDiscriminatedOption, } from \"../core/index.js\";\nexport { toJSONSchema } from \"../core/json-schema-processors.js\";\nexport { fromJSONSchema } from \"./from-json-schema.js\";\nexport { deepPartial } from \"./deep-partial.js\";\n// Types and values both, from one module — re-exporting the types from core would collide.\nexport { input, output } from \"./in-out.js\";\nexport * as locales from \"../locales/index.js\";\n// iso must be exported from top-level https://github.com/colinhacks/zod/issues/4491\nexport { ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration } from \"./iso.js\";\nexport * as iso from \"./iso.js\";\nexport * as coerce from \"./coerce.js\";\n","import * as core from \"../core/index.js\";\nimport { util } from \"../core/index.js\";\nimport * as processors from \"../core/json-schema-processors.js\";\nimport * as regexes from \"../core/regexes.js\";\nimport { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from \"../core/to-json-schema.js\";\nimport en from \"../locales/en.js\";\nimport * as checks from \"./checks.js\";\nimport * as parse from \"./parse.js\";\n// Register English as the default locale on first ZodType construction. Hooked into the `ZodType` `$constructor` (rather than a top-level `config(en())` in `external.ts`) so bundlers honoring `sideEffects: false` can't tree-shake it out — see #5953, #5725. An explicit `z.config(z.locales.xx())` call wins regardless of order, since this only sets the default when none is present.\nfunction _ensureDefaultLocale() {\n    if (!core.globalConfig.localeError)\n        core.config(en());\n}\n// the default memoizer is read by the core container init, which runs before `ZodType.init`, so each container calls this first\nfunction _ensureDefaultMemoizer() {\n    if (!core.globalConfig.memoizer)\n        core.config({ memoizer: core.memoizer() });\n}\nexport const ZodType = /*@__PURE__*/ core.$constructor(\"ZodType\", (inst, def) => {\n    _ensureDefaultLocale();\n    core.$ZodType.init(inst, def);\n    inst.def = def;\n    inst.type = def.type;\n    return inst;\n}, {\n    check(...chks) {\n        const def = this.def;\n        return this.clone(util.mergeDefs(def, {\n            checks: [\n                ...(def.checks ?? []),\n                ...chks.map((ch) => typeof ch === \"function\" ? { _zod: { check: ch, def: { check: \"custom\" }, onattach: [] } } : ch),\n            ],\n        }), { parent: true });\n    },\n    with(...chks) {\n        return this.check(...chks);\n    },\n    clone(def, params) {\n        return core.clone(this, def, params);\n    },\n    brand() {\n        return this;\n    },\n    register(reg, meta) {\n        reg.add(this, meta);\n        return this;\n    },\n    refine(check, params) {\n        return this.check(refine(check, params));\n    },\n    superRefine(refinement, params) {\n        return this.check(superRefine(refinement, params));\n    },\n    overwrite(fn) {\n        return this.check(checks.overwrite(fn));\n    },\n    optional() {\n        return optional(this);\n    },\n    exactOptional() {\n        return exactOptional(this);\n    },\n    nullable() {\n        return nullable(this);\n    },\n    nullish() {\n        return optional(nullable(this));\n    },\n    nonoptional(params) {\n        return nonoptional(this, params);\n    },\n    array() {\n        return array(this);\n    },\n    or(arg) {\n        return union([this, arg]);\n    },\n    and(arg) {\n        return intersection(this, arg);\n    },\n    transform(tx) {\n        return pipe(this, transform(tx));\n    },\n    default(d) {\n        return _default(this, d);\n    },\n    prefault(d) {\n        return prefault(this, d);\n    },\n    catch(params) {\n        return _catch(this, params);\n    },\n    pipe(target) {\n        return pipe(this, target);\n    },\n    readonly() {\n        return readonly(this);\n    },\n    describe(description) {\n        const cl = this.clone();\n        core.globalRegistry.add(cl, { description });\n        return cl;\n    },\n    meta(...args) {\n        // overloaded: meta() returns the registered metadata, meta(data) returns a clone with `data` registered. The mapped type picks up the second overload, so we accept variadic any-args and return `any` to satisfy both at runtime.\n        if (args.length === 0)\n            return core.globalRegistry.get(this);\n        const cl = this.clone();\n        core.globalRegistry.add(cl, args[0]);\n        return cl;\n    },\n    isOptional() {\n        return this.safeParse(undefined).success;\n    },\n    isNullable() {\n        return this.safeParse(null).success;\n    },\n    apply(fn, ...args) {\n        return args.length === 0 ? fn(this) : fn(this, ...args);\n    },\n    // Overrides core's `~standard` to add `jsonSchema`. Must stay a prototype entry: redefining it per instance demotes instances to dictionary mode.\n    get \"~standard\"() {\n        return util.hide(this, \"~standard\", {\n            ...core.standardProps(this),\n            jsonSchema: {\n                input: createStandardJSONSchemaMethod(this, \"input\"),\n                output: createStandardJSONSchemaMethod(this, \"output\"),\n            },\n        });\n    },\n    set \"~standard\"(value) {\n        util.own(this, \"~standard\", value);\n    },\n    parse: function _parse(data, params) {\n        return parse.parse(this, data, params, { callee: _parse });\n    },\n    parseAsync: async function _parseAsync(data, params) {\n        return await parse.parseAsync(this, data, params, { callee: _parseAsync });\n    },\n    safeParse(data, params) {\n        return parse.safeParse(this, data, params);\n    },\n    async safeParseAsync(data, params) {\n        return parse.safeParseAsync(this, data, params);\n    },\n    // `spa` is an alias: same function object as `safeParseAsync`, as before.\n    get spa() {\n        return this?.safeParseAsync;\n    },\n    set spa(value) {\n        util.own(this, \"spa\", value);\n    },\n    validate(data, params) {\n        return parse.validate(this, data, params);\n    },\n    validateAsync(data, params) {\n        return parse.validateAsync(this, data, params);\n    },\n    encode: function _encode(data, params) {\n        return parse.encode(this, data, params, { callee: _encode });\n    },\n    decode: function _decode(data, params) {\n        return parse.decode(this, data, params, { callee: _decode });\n    },\n    encodeAsync: async function _encodeAsync(data, params) {\n        return await parse.encodeAsync(this, data, params, { callee: _encodeAsync });\n    },\n    decodeAsync: async function _decodeAsync(data, params) {\n        return await parse.decodeAsync(this, data, params, { callee: _decodeAsync });\n    },\n    safeEncode(data, params) {\n        return parse.safeEncode(this, data, params);\n    },\n    safeDecode(data, params) {\n        return parse.safeDecode(this, data, params);\n    },\n    async safeEncodeAsync(data, params) {\n        return parse.safeEncodeAsync(this, data, params);\n    },\n    async safeDecodeAsync(data, params) {\n        return parse.safeDecodeAsync(this, data, params);\n    },\n    toJSONSchema(params) {\n        return createToJSONSchemaMethod(this, {})(params);\n    },\n    // Reads through to the registry on every access, so it must not cache.\n    get description() {\n        return core.globalRegistry.get(this)?.description;\n    },\n    // No setter: `schema._def = x` throws, as it did when `_def` was a non-writable own property.\n    get _def() {\n        return this._zod.def;\n    },\n});\n/** @internal */\nexport const _ZodString = /*@__PURE__*/ core.$constructor(\"_ZodString\", (inst, def) => {\n    core.$ZodString.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.stringProcessor(inst, ctx, json, params);\n}, \n/*@__PURE__*/ util.derived({\n    format: (inst) => processors.aggregateChecks(inst).format ?? null,\n    minLength: (inst) => processors.aggregateChecks(inst).minimum ?? null,\n    maxLength: (inst) => processors.aggregateChecks(inst).maximum ?? null,\n}, {\n    regex(...args) {\n        return this.check(checks.regex(...args));\n    },\n    includes(...args) {\n        return this.check(checks.includes(...args));\n    },\n    startsWith(...args) {\n        return this.check(checks.startsWith(...args));\n    },\n    endsWith(...args) {\n        return this.check(checks.endsWith(...args));\n    },\n    min(...args) {\n        return this.check(checks.minLength(...args));\n    },\n    max(...args) {\n        return this.check(checks.maxLength(...args));\n    },\n    length(...args) {\n        return this.check(checks.length(...args));\n    },\n    nonempty(...args) {\n        return this.check(checks.minLength(1, ...args));\n    },\n    lowercase(params) {\n        return this.check(checks.lowercase(params));\n    },\n    uppercase(params) {\n        return this.check(checks.uppercase(params));\n    },\n    trim() {\n        return this.check(checks.trim());\n    },\n    normalize(...args) {\n        return this.check(checks.normalize(...args));\n    },\n    toLowerCase() {\n        return this.check(checks.toLowerCase());\n    },\n    toUpperCase() {\n        return this.check(checks.toUpperCase());\n    },\n    slugify() {\n        return this.check(checks.slugify());\n    },\n}));\nexport const ZodString = /*@__PURE__*/ core.$constructor(\"ZodString\", (inst, def) => {\n    core.$ZodString.init(inst, def);\n    _ZodString.init(inst, def);\n}, {\n    email(params) {\n        return this.check(core._email(ZodEmail, params));\n    },\n    url(params) {\n        return this.check(core._url(ZodURL, params));\n    },\n    jwt(params) {\n        return this.check(core._jwt(ZodJWT, params));\n    },\n    emoji(params) {\n        return this.check(core._emoji(ZodEmoji, params));\n    },\n    guid(params) {\n        return this.check(core._guid(ZodGUID, params));\n    },\n    uuid(params) {\n        return this.check(core._uuid(ZodUUID, params));\n    },\n    uuidv4(params) {\n        return this.check(core._uuidv4(ZodUUID, params));\n    },\n    uuidv6(params) {\n        return this.check(core._uuidv6(ZodUUID, params));\n    },\n    uuidv7(params) {\n        return this.check(core._uuidv7(ZodUUID, params));\n    },\n    nanoid(params) {\n        return this.check(core._nanoid(ZodNanoID, params));\n    },\n    cuid(params) {\n        return this.check(core._cuid(ZodCUID, params));\n    },\n    cuid2(params) {\n        return this.check(core._cuid2(ZodCUID2, params));\n    },\n    ulid(params) {\n        return this.check(core._ulid(ZodULID, params));\n    },\n    base64(params) {\n        return this.check(core._base64(ZodBase64, params));\n    },\n    base64url(params) {\n        return this.check(core._base64url(ZodBase64URL, params));\n    },\n    xid(params) {\n        return this.check(core._xid(ZodXID, params));\n    },\n    ksuid(params) {\n        return this.check(core._ksuid(ZodKSUID, params));\n    },\n    ipv4(params) {\n        return this.check(core._ipv4(ZodIPv4, params));\n    },\n    ipv6(params) {\n        return this.check(core._ipv6(ZodIPv6, params));\n    },\n    cidrv4(params) {\n        return this.check(core._cidrv4(ZodCIDRv4, params));\n    },\n    cidrv6(params) {\n        return this.check(core._cidrv6(ZodCIDRv6, params));\n    },\n    e164(params) {\n        return this.check(core._e164(ZodE164, params));\n    },\n    datetime(params) {\n        return this.check(core._isoDateTime(ZodISODateTime, params));\n    },\n    date(params) {\n        return this.check(core._isoDate(ZodISODate, params));\n    },\n    time(params) {\n        return this.check(core._isoTime(ZodISOTime, params));\n    },\n    duration(params) {\n        return this.check(core._isoDuration(ZodISODuration, params));\n    },\n});\nexport function string(params) {\n    return core._string(ZodString, params);\n}\nexport const ZodStringFormat = /*@__PURE__*/ core.$constructor(\"ZodStringFormat\", (inst, def) => {\n    core.$ZodStringFormat.init(inst, def);\n    _ZodString.init(inst, def);\n});\nexport const ZodISODateTime = /*@__PURE__*/ core.$constructor(\"ZodISODateTime\", (inst, def) => {\n    core.$ZodISODateTime.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport const ZodISODate = /*@__PURE__*/ core.$constructor(\"ZodISODate\", (inst, def) => {\n    core.$ZodISODate.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport const ZodISOTime = /*@__PURE__*/ core.$constructor(\"ZodISOTime\", (inst, def) => {\n    core.$ZodISOTime.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport const ZodISODuration = /*@__PURE__*/ core.$constructor(\"ZodISODuration\", (inst, def) => {\n    core.$ZodISODuration.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport const ZodEmail = /*@__PURE__*/ core.$constructor(\"ZodEmail\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodEmail.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function email(params) {\n    return core._email(ZodEmail, params);\n}\nexport const ZodGUID = /*@__PURE__*/ core.$constructor(\"ZodGUID\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodGUID.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function guid(params) {\n    return core._guid(ZodGUID, params);\n}\nexport const ZodUUID = /*@__PURE__*/ core.$constructor(\"ZodUUID\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodUUID.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function uuid(params) {\n    return core._uuid(ZodUUID, params);\n}\nexport function uuidv4(params) {\n    return core._uuidv4(ZodUUID, params);\n}\n// ZodUUIDv6\nexport function uuidv6(params) {\n    return core._uuidv6(ZodUUID, params);\n}\n// ZodUUIDv7\nexport function uuidv7(params) {\n    return core._uuidv7(ZodUUID, params);\n}\nexport const ZodURL = /*@__PURE__*/ core.$constructor(\"ZodURL\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodURL.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function url(params) {\n    return core._url(ZodURL, params);\n}\nexport function httpUrl(params) {\n    return core._url(ZodURL, {\n        protocol: regexes.httpProtocol,\n        hostname: regexes.domain,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodEmoji = /*@__PURE__*/ core.$constructor(\"ZodEmoji\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodEmoji.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function emoji(params) {\n    return core._emoji(ZodEmoji, params);\n}\nexport const ZodNanoID = /*@__PURE__*/ core.$constructor(\"ZodNanoID\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodNanoID.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function nanoid(params) {\n    return core._nanoid(ZodNanoID, params);\n}\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link ZodCUID2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport const ZodCUID = /*@__PURE__*/ core.$constructor(\"ZodCUID\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodCUID.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\n/**\n * Validates a CUID v1 string.\n *\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.\n * See https://github.com/paralleldrive/cuid.\n */\nexport function cuid(params) {\n    return core._cuid(ZodCUID, params);\n}\nexport const ZodCUID2 = /*@__PURE__*/ core.$constructor(\"ZodCUID2\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodCUID2.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function cuid2(params) {\n    return core._cuid2(ZodCUID2, params);\n}\nexport const ZodULID = /*@__PURE__*/ core.$constructor(\"ZodULID\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodULID.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function ulid(params) {\n    return core._ulid(ZodULID, params);\n}\nexport const ZodXID = /*@__PURE__*/ core.$constructor(\"ZodXID\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodXID.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function xid(params) {\n    return core._xid(ZodXID, params);\n}\nexport const ZodKSUID = /*@__PURE__*/ core.$constructor(\"ZodKSUID\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodKSUID.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function ksuid(params) {\n    return core._ksuid(ZodKSUID, params);\n}\nexport const ZodIPv4 = /*@__PURE__*/ core.$constructor(\"ZodIPv4\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodIPv4.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function ipv4(params) {\n    return core._ipv4(ZodIPv4, params);\n}\nexport const ZodMAC = /*@__PURE__*/ core.$constructor(\"ZodMAC\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodMAC.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function mac(params) {\n    return core._mac(ZodMAC, params);\n}\nexport const ZodIPv6 = /*@__PURE__*/ core.$constructor(\"ZodIPv6\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodIPv6.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function ipv6(params) {\n    return core._ipv6(ZodIPv6, params);\n}\nexport const ZodCIDRv4 = /*@__PURE__*/ core.$constructor(\"ZodCIDRv4\", (inst, def) => {\n    core.$ZodCIDRv4.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function cidrv4(params) {\n    return core._cidrv4(ZodCIDRv4, params);\n}\nexport const ZodCIDRv6 = /*@__PURE__*/ core.$constructor(\"ZodCIDRv6\", (inst, def) => {\n    core.$ZodCIDRv6.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function cidrv6(params) {\n    return core._cidrv6(ZodCIDRv6, params);\n}\nexport const ZodBase64 = /*@__PURE__*/ core.$constructor(\"ZodBase64\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodBase64.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function base64(params) {\n    return core._base64(ZodBase64, params);\n}\nexport const ZodBase64URL = /*@__PURE__*/ core.$constructor(\"ZodBase64URL\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodBase64URL.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function base64url(params) {\n    return core._base64url(ZodBase64URL, params);\n}\nexport const ZodE164 = /*@__PURE__*/ core.$constructor(\"ZodE164\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodE164.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function e164(params) {\n    return core._e164(ZodE164, params);\n}\nexport const ZodCreditCard = /*@__PURE__*/ core.$constructor(\"ZodCreditCard\", (inst, def) => {\n    core.$ZodCreditCard.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function creditCard(params) {\n    return core._creditCard(ZodCreditCard, params);\n}\nexport const ZodIBAN = /*@__PURE__*/ core.$constructor(\"ZodIBAN\", (inst, def) => {\n    core.$ZodIBAN.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function iban(params) {\n    return core._iban(ZodIBAN, params);\n}\nexport const ZodJWT = /*@__PURE__*/ core.$constructor(\"ZodJWT\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodJWT.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function jwt(params) {\n    return core._jwt(ZodJWT, params);\n}\nexport const ZodCustomStringFormat = /*@__PURE__*/ core.$constructor(\"ZodCustomStringFormat\", (inst, def) => {\n    // ZodStringFormat.init(inst, def);\n    core.$ZodCustomStringFormat.init(inst, def);\n    ZodStringFormat.init(inst, def);\n});\nexport function stringFormat(format, fnOrRegex, _params = {}) {\n    return core._stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);\n}\nexport function hostname(_params) {\n    return core._stringFormat(ZodCustomStringFormat, \"hostname\", regexes.hostname, _params);\n}\nexport function hex(_params) {\n    return core._stringFormat(ZodCustomStringFormat, \"hex\", regexes.hex, _params);\n}\nexport function currencyCode(_params) {\n    return core._stringFormat(ZodCustomStringFormat, \"currency_code\", regexes.currencyCode, _params);\n}\nexport function hash(alg, params) {\n    const enc = params?.enc ?? \"hex\";\n    const format = `${alg}_${enc}`;\n    const regex = core.regexes[format];\n    if (!regex)\n        throw new Error(`Unrecognized hash format: ${format}`);\n    return core._stringFormat(ZodCustomStringFormat, format, regex, params);\n}\nexport const ZodNumber = /*@__PURE__*/ core.$constructor(\"ZodNumber\", (inst, def) => {\n    core.$ZodNumber.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);\n    inst.isFinite = true;\n}, \n/*@__PURE__*/ util.derived({\n    minValue: (inst) => {\n        const { minimum, exclusiveMinimum } = processors.aggregateChecks(inst);\n        return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);\n    },\n    maxValue: (inst) => {\n        const { maximum, exclusiveMaximum } = processors.aggregateChecks(inst);\n        return Math.min(maximum ?? Number.POSITIVE_INFINITY, exclusiveMaximum ?? Number.POSITIVE_INFINITY);\n    },\n    isInt: (inst) => {\n        const { isInt, multipleOf } = processors.aggregateChecks(inst);\n        return !!isInt || !!multipleOf?.some(Number.isSafeInteger);\n    },\n    format: (inst) => processors.aggregateChecks(inst).format ?? null,\n}, {\n    gt(value, params) {\n        return this.check(checks.gt(value, params));\n    },\n    gte(value, params) {\n        return this.check(checks.gte(value, params));\n    },\n    min(value, params) {\n        return this.check(checks.gte(value, params));\n    },\n    lt(value, params) {\n        return this.check(checks.lt(value, params));\n    },\n    lte(value, params) {\n        return this.check(checks.lte(value, params));\n    },\n    max(value, params) {\n        return this.check(checks.lte(value, params));\n    },\n    int(params) {\n        return this.check(int(params));\n    },\n    safe(params) {\n        return this.check(int(params));\n    },\n    positive(params) {\n        return this.check(checks.gt(0, params));\n    },\n    nonnegative(params) {\n        return this.check(checks.gte(0, params));\n    },\n    negative(params) {\n        return this.check(checks.lt(0, params));\n    },\n    nonpositive(params) {\n        return this.check(checks.lte(0, params));\n    },\n    multipleOf(value, params) {\n        return this.check(checks.multipleOf(value, params));\n    },\n    step(value, params) {\n        return this.check(checks.multipleOf(value, params));\n    },\n    finite() {\n        return this;\n    },\n}));\nexport function number(params) {\n    return core._number(ZodNumber, params);\n}\nexport const ZodNumberFormat = /*@__PURE__*/ core.$constructor(\"ZodNumberFormat\", (inst, def) => {\n    core.$ZodNumberFormat.init(inst, def);\n    ZodNumber.init(inst, def);\n});\nexport function int(params) {\n    return core._int(ZodNumberFormat, params);\n}\nexport function float32(params) {\n    return core._float32(ZodNumberFormat, params);\n}\nexport function float64(params) {\n    return core._float64(ZodNumberFormat, params);\n}\nexport function int32(params) {\n    return core._int32(ZodNumberFormat, params);\n}\nexport function uint32(params) {\n    return core._uint32(ZodNumberFormat, params);\n}\nexport const ZodBoolean = /*@__PURE__*/ core.$constructor(\"ZodBoolean\", (inst, def) => {\n    core.$ZodBoolean.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.booleanProcessor(inst, ctx, json, params);\n});\nexport function boolean(params) {\n    return core._boolean(ZodBoolean, params);\n}\nexport const ZodBigInt = /*@__PURE__*/ core.$constructor(\"ZodBigInt\", (inst, def) => {\n    core.$ZodBigInt.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.bigintProcessor(inst, ctx, json, params);\n}, \n/*@__PURE__*/ util.derived({\n    minValue: (inst) => processors.aggregateChecks(inst).minimum ?? null,\n    maxValue: (inst) => processors.aggregateChecks(inst).maximum ?? null,\n    format: (inst) => processors.aggregateChecks(inst).format ?? null,\n}, {\n    gte(value, params) {\n        return this.check(checks.gte(value, params));\n    },\n    min(value, params) {\n        return this.check(checks.gte(value, params));\n    },\n    gt(value, params) {\n        return this.check(checks.gt(value, params));\n    },\n    lt(value, params) {\n        return this.check(checks.lt(value, params));\n    },\n    lte(value, params) {\n        return this.check(checks.lte(value, params));\n    },\n    max(value, params) {\n        return this.check(checks.lte(value, params));\n    },\n    positive(params) {\n        return this.check(checks.gt(BigInt(0), params));\n    },\n    negative(params) {\n        return this.check(checks.lt(BigInt(0), params));\n    },\n    nonpositive(params) {\n        return this.check(checks.lte(BigInt(0), params));\n    },\n    nonnegative(params) {\n        return this.check(checks.gte(BigInt(0), params));\n    },\n    multipleOf(value, params) {\n        return this.check(checks.multipleOf(value, params));\n    },\n}));\nexport function bigint(params) {\n    return core._bigint(ZodBigInt, params);\n}\nexport const ZodBigIntFormat = /*@__PURE__*/ core.$constructor(\"ZodBigIntFormat\", (inst, def) => {\n    core.$ZodBigIntFormat.init(inst, def);\n    ZodBigInt.init(inst, def);\n});\nexport function int64(params) {\n    return core._int64(ZodBigIntFormat, params);\n}\nexport function uint64(params) {\n    return core._uint64(ZodBigIntFormat, params);\n}\nexport const ZodSymbol = /*@__PURE__*/ core.$constructor(\"ZodSymbol\", (inst, def) => {\n    core.$ZodSymbol.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.symbolProcessor(inst, ctx, json, params);\n});\nexport function symbol(params) {\n    return core._symbol(ZodSymbol, params);\n}\nexport const ZodUndefined = /*@__PURE__*/ core.$constructor(\"ZodUndefined\", (inst, def) => {\n    core.$ZodUndefined.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.undefinedProcessor(inst, ctx, json, params);\n});\nfunction _undefined(params) {\n    return core._undefined(ZodUndefined, params);\n}\nexport { _undefined as undefined };\nexport const ZodNull = /*@__PURE__*/ core.$constructor(\"ZodNull\", (inst, def) => {\n    core.$ZodNull.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.nullProcessor(inst, ctx, json, params);\n});\nfunction _null(params) {\n    return core._null(ZodNull, params);\n}\nexport { _null as null };\nexport const ZodAny = /*@__PURE__*/ core.$constructor(\"ZodAny\", (inst, def) => {\n    core.$ZodAny.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.anyProcessor(inst, ctx, json, params);\n});\nexport function any() {\n    return core._any(ZodAny);\n}\nexport const ZodUnknown = /*@__PURE__*/ core.$constructor(\"ZodUnknown\", (inst, def) => {\n    core.$ZodUnknown.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.unknownProcessor(inst, ctx, json, params);\n});\nexport function unknown() {\n    return core._unknown(ZodUnknown);\n}\nexport const ZodNever = /*@__PURE__*/ core.$constructor(\"ZodNever\", (inst, def) => {\n    core.$ZodNever.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.neverProcessor(inst, ctx, json, params);\n});\nexport function never(params) {\n    return core._never(ZodNever, params);\n}\nexport const ZodVoid = /*@__PURE__*/ core.$constructor(\"ZodVoid\", (inst, def) => {\n    core.$ZodVoid.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.voidProcessor(inst, ctx, json, params);\n});\nfunction _void(params) {\n    return core._void(ZodVoid, params);\n}\nexport { _void as void };\nexport const ZodDate = /*@__PURE__*/ core.$constructor(\"ZodDate\", (inst, def) => {\n    core.$ZodDate.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.dateProcessor(inst, ctx, json, params);\n    inst.min = (value, params) => inst.check(checks.gte(value, params));\n    inst.max = (value, params) => inst.check(checks.lte(value, params));\n}, \n/*@__PURE__*/ util.derived({\n    minDate: (inst) => {\n        const { minimum } = processors.aggregateChecks(inst);\n        return minimum ? new Date(minimum) : null;\n    },\n    maxDate: (inst) => {\n        const { maximum } = processors.aggregateChecks(inst);\n        return maximum ? new Date(maximum) : null;\n    },\n}, {}));\nexport function date(params) {\n    return core._date(ZodDate, params);\n}\nexport const ZodArray = /*@__PURE__*/ core.$constructor(\"ZodArray\", (inst, def) => {\n    _ensureDefaultMemoizer();\n    core.$ZodArray.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);\n    inst.element = def.element;\n}, {\n    min(n, params) {\n        return this.check(checks.minLength(n, params));\n    },\n    nonempty(params) {\n        return this.check(checks.minLength(1, params));\n    },\n    max(n, params) {\n        return this.check(checks.maxLength(n, params));\n    },\n    length(n, params) {\n        return this.check(checks.length(n, params));\n    },\n    unwrap() {\n        return this.element;\n    },\n});\nexport function array(element, params) {\n    return core._array(ZodArray, element, params);\n}\n// .keyof\nexport function keyof(schema) {\n    const shape = schema._zod.def.shape;\n    return _enum(Object.keys(shape));\n}\nexport const ZodObject = /*@__PURE__*/ core.$constructor(\"ZodObject\", (inst, def) => {\n    _ensureDefaultMemoizer();\n    core.$ZodObjectJIT.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.objectProcessor(inst, ctx, json, params);\n    util.installLazyProp(inst, \"shape\", (self) => self._zod.def.shape, false);\n}, {\n    keyof() {\n        return _enum(Object.keys(this._zod.def.shape));\n    },\n    catchall(catchall) {\n        // `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree\n        return this.clone(util.mergeDefs(this._zod.def, { catchall: catchall }));\n    },\n    passthrough() {\n        return this.clone(util.mergeDefs(this._zod.def, { catchall: unknown() }));\n    },\n    loose() {\n        return this.clone(util.mergeDefs(this._zod.def, { catchall: unknown() }));\n    },\n    strict() {\n        return this.clone(util.mergeDefs(this._zod.def, { catchall: never() }));\n    },\n    strip() {\n        return this.clone(util.mergeDefs(this._zod.def, { catchall: undefined }));\n    },\n    extend(incoming) {\n        return util.extend(this, incoming);\n    },\n    safeExtend(incoming) {\n        return util.safeExtend(this, incoming);\n    },\n    merge(other) {\n        return util.merge(this, other);\n    },\n    pick(mask) {\n        return util.pick(this, mask);\n    },\n    omit(mask) {\n        return util.omit(this, mask);\n    },\n    partial(...args) {\n        return util.partial(ZodOptional, this, args[0]);\n    },\n    exactPartial(...args) {\n        return util.partial(ZodExactOptional, this, args[0], \"exactPartial\");\n    },\n    required(...args) {\n        return util.required(ZodNonOptional, this, args[0]);\n    },\n});\nexport function object(shape, params) {\n    const def = {\n        type: \"object\",\n        shape: shape ?? {},\n        ...util.normalizeParams(params),\n    };\n    return new ZodObject(def);\n}\n// strictObject\nexport function strictObject(shape, params) {\n    return new ZodObject({\n        type: \"object\",\n        shape,\n        catchall: never(),\n        ...util.normalizeParams(params),\n    });\n}\n// looseObject\nexport function looseObject(shape, params) {\n    return new ZodObject({\n        type: \"object\",\n        shape,\n        catchall: unknown(),\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodUnion = /*@__PURE__*/ core.$constructor(\"ZodUnion\", (inst, def) => {\n    core.$ZodUnion.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);\n    inst.options = def.options;\n});\nexport function union(options, params) {\n    return new ZodUnion({\n        type: \"union\",\n        options: options,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodXor = /*@__PURE__*/ core.$constructor(\"ZodXor\", (inst, def) => {\n    ZodUnion.init(inst, def);\n    core.$ZodXor.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);\n    inst.options = def.options;\n});\n/** Creates an exclusive union (XOR) where exactly one option must match.\n * Unlike regular unions that succeed when any option matches, xor fails if\n * zero or more than one option matches the input. */\nexport function xor(options, params) {\n    return new ZodXor({\n        type: \"union\",\n        options: options,\n        inclusive: false,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodDiscriminatedUnion = /*@__PURE__*/ core.$constructor(\"ZodDiscriminatedUnion\", (inst, def) => {\n    ZodUnion.init(inst, def);\n    core.$ZodDiscriminatedUnion.init(inst, def);\n});\nexport function discriminatedUnion(discriminator, options, params) {\n    // const [options, params] = args;\n    return new ZodDiscriminatedUnion({\n        type: \"union\",\n        options: options,\n        discriminator,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodIntersection = /*@__PURE__*/ core.$constructor(\"ZodIntersection\", (inst, def) => {\n    core.$ZodIntersection.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.intersectionProcessor(inst, ctx, json, params);\n});\nexport function intersection(left, right) {\n    return new ZodIntersection({\n        type: \"intersection\",\n        left: left,\n        right: right,\n    });\n}\nexport const ZodTuple = /*@__PURE__*/ core.$constructor(\"ZodTuple\", (inst, def) => {\n    _ensureDefaultMemoizer();\n    core.$ZodTuple.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.tupleProcessor(inst, ctx, json, params);\n}, {\n    rest(rest) {\n        return this.clone({\n            ...this._zod.def,\n            rest: rest,\n        });\n    },\n    partial() {\n        const def = this._zod.def;\n        // a refinement was authored against the full arity; partialing would run it on a shorter array\n        if (def.checks?.length)\n            throw new Error(\".partial() cannot be used on tuple schemas containing refinements\");\n        return this.clone({\n            ...def,\n            items: def.items.map((item) => new ZodOptional({ type: \"optional\", innerType: item })),\n        });\n    },\n});\nexport function tuple(items, _paramsOrRest, _params) {\n    const hasRest = _paramsOrRest instanceof core.$ZodType;\n    const params = hasRest ? _params : _paramsOrRest;\n    const rest = hasRest ? _paramsOrRest : null;\n    return new ZodTuple({\n        type: \"tuple\",\n        items: items,\n        rest,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodRecord = /*@__PURE__*/ core.$constructor(\"ZodRecord\", (inst, def) => {\n    _ensureDefaultMemoizer();\n    core.$ZodRecord.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.recordProcessor(inst, ctx, json, params);\n    inst.keyType = def.keyType;\n    inst.valueType = def.valueType;\n});\nexport function record(keyType, valueType, params) {\n    // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()\n    if (!valueType || !valueType._zod) {\n        return new ZodRecord({\n            type: \"record\",\n            keyType: string(),\n            valueType: keyType,\n            ...util.normalizeParams(valueType),\n        });\n    }\n    return new ZodRecord({\n        type: \"record\",\n        keyType,\n        valueType: valueType,\n        ...util.normalizeParams(params),\n    });\n}\n// type alksjf = core.output<core.$ZodRecordKey>;\nexport function partialRecord(keyType, valueType, params) {\n    return new ZodRecord({\n        type: \"record\",\n        keyType,\n        valueType: valueType,\n        ...util.normalizeParams(params),\n        partial: true,\n    });\n}\nexport function looseRecord(keyType, valueType, params) {\n    return new ZodRecord({\n        type: \"record\",\n        keyType,\n        valueType: valueType,\n        mode: \"loose\",\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodMap = /*@__PURE__*/ core.$constructor(\"ZodMap\", (inst, def) => {\n    _ensureDefaultMemoizer();\n    core.$ZodMap.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.mapProcessor(inst, ctx, json, params);\n    inst.keyType = def.keyType;\n    inst.valueType = def.valueType;\n    inst.min = (...args) => inst.check(core._minSize(...args));\n    inst.nonempty = (params) => inst.check(core._minSize(1, params));\n    inst.max = (...args) => inst.check(core._maxSize(...args));\n    inst.size = (...args) => inst.check(core._size(...args));\n});\nexport function map(keyType, valueType, params) {\n    return new ZodMap({\n        type: \"map\",\n        keyType: keyType,\n        valueType: valueType,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodSet = /*@__PURE__*/ core.$constructor(\"ZodSet\", (inst, def) => {\n    _ensureDefaultMemoizer();\n    core.$ZodSet.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.setProcessor(inst, ctx, json, params);\n    inst.min = (...args) => inst.check(core._minSize(...args));\n    inst.nonempty = (params) => inst.check(core._minSize(1, params));\n    inst.max = (...args) => inst.check(core._maxSize(...args));\n    inst.size = (...args) => inst.check(core._size(...args));\n});\nexport function set(valueType, params) {\n    return new ZodSet({\n        type: \"set\",\n        valueType: valueType,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodEnum = /*@__PURE__*/ core.$constructor(\"ZodEnum\", (inst, def) => {\n    core.$ZodEnum.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.enumProcessor(inst, ctx, json, params);\n    inst.enum = def.entries;\n    // reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out\n    inst.options = [...inst._zod.values];\n    const keys = new Set(Object.keys(def.entries));\n    inst.extract = (values, params) => {\n        const newEntries = {};\n        for (const value of values) {\n            if (keys.has(value)) {\n                newEntries[value] = def.entries[value];\n            }\n            else\n                throw new Error(`Key ${value} not found in enum`);\n        }\n        return new ZodEnum({\n            ...def,\n            checks: [],\n            ...util.normalizeParams(params),\n            entries: newEntries,\n        });\n    };\n    inst.exclude = (values, params) => {\n        const newEntries = { ...def.entries };\n        for (const value of values) {\n            if (keys.has(value)) {\n                delete newEntries[value];\n            }\n            else\n                throw new Error(`Key ${value} not found in enum`);\n        }\n        return new ZodEnum({\n            ...def,\n            checks: [],\n            ...util.normalizeParams(params),\n            entries: newEntries,\n        });\n    };\n});\nfunction _enum(values, params) {\n    const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;\n    return new ZodEnum({\n        type: \"enum\",\n        entries,\n        ...util.normalizeParams(params),\n    });\n}\nexport { _enum as enum };\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport function nativeEnum(entries, params) {\n    return new ZodEnum({\n        type: \"enum\",\n        entries,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodLiteral = /*@__PURE__*/ core.$constructor(\"ZodLiteral\", (inst, def) => {\n    core.$ZodLiteral.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.literalProcessor(inst, ctx, json, params);\n    inst.values = new Set(def.values);\n    Object.defineProperty(inst, \"value\", {\n        get() {\n            if (def.values.length > 1) {\n                throw new Error(\"This schema contains multiple valid literal values. Use `.values` instead.\");\n            }\n            return def.values[0];\n        },\n    });\n});\nexport function literal(value, params) {\n    return new ZodLiteral({\n        type: \"literal\",\n        values: Array.isArray(value) ? value : [value],\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodFile = /*@__PURE__*/ core.$constructor(\"ZodFile\", (inst, def) => {\n    core.$ZodFile.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.fileProcessor(inst, ctx, json, params);\n    inst.min = (size, params) => inst.check(core._minSize(size, params));\n    inst.max = (size, params) => inst.check(core._maxSize(size, params));\n    inst.mime = (types, params) => inst.check(core._mime(Array.isArray(types) ? types : [types], params));\n});\nexport function file(params) {\n    return core._file(ZodFile, params);\n}\nexport const ZodTransform = /*@__PURE__*/ core.$constructor(\"ZodTransform\", (inst, def) => {\n    _ensureDefaultMemoizer();\n    core.$ZodTransform.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.transformProcessor(inst, ctx, json, params);\n    inst._zod.parse = (payload, _ctx) => {\n        if (_ctx.direction === \"backward\") {\n            throw new core.$ZodEncodeError(inst.constructor.name);\n        }\n        payload.addIssue = (issue) => {\n            if (typeof issue === \"string\") {\n                payload.issues.push(util.issue(issue, payload.value, def));\n            }\n            else {\n                // for Zod 3 backwards compatibility\n                const _issue = issue;\n                if (_issue.fatal)\n                    _issue.continue = false;\n                _issue.code ?? (_issue.code = \"custom\");\n                if (!(\"input\" in _issue))\n                    _issue.input = payload.value;\n                _issue.inst ?? (_issue.inst = inst);\n                // _issue.continue ??= true;\n                payload.issues.push(util.issue(_issue));\n            }\n        };\n        const output = def.transform(payload.value, payload);\n        if (output instanceof Promise) {\n            return output.then((output) => {\n                payload.value = output;\n                return payload;\n            });\n        }\n        payload.value = output;\n        return payload;\n    };\n});\nexport function transform(fn) {\n    return new ZodTransform({\n        type: \"transform\",\n        transform: fn,\n    });\n}\nexport const ZodOptional = /*@__PURE__*/ core.$constructor(\"ZodOptional\", (inst, def) => {\n    core.$ZodOptional.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function optional(innerType) {\n    return new ZodOptional({\n        type: \"optional\",\n        innerType: innerType,\n    });\n}\nexport const ZodExactOptional = /*@__PURE__*/ core.$constructor(\"ZodExactOptional\", (inst, def) => {\n    core.$ZodExactOptional.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function exactOptional(innerType) {\n    return new ZodExactOptional({\n        type: \"optional\",\n        innerType: innerType,\n    });\n}\nexport const ZodNullable = /*@__PURE__*/ core.$constructor(\"ZodNullable\", (inst, def) => {\n    core.$ZodNullable.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.nullableProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function nullable(innerType) {\n    return new ZodNullable({\n        type: \"nullable\",\n        innerType: innerType,\n    });\n}\n// nullish\nexport function nullish(innerType) {\n    return optional(nullable(innerType));\n}\nexport const ZodDefault = /*@__PURE__*/ core.$constructor(\"ZodDefault\", (inst, def) => {\n    core.$ZodDefault.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.defaultProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n    inst.removeDefault = inst.unwrap;\n});\nexport function _default(innerType, defaultValue) {\n    return new ZodDefault({\n        type: \"default\",\n        innerType: innerType,\n        get defaultValue() {\n            return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n        },\n    });\n}\nexport const ZodPrefault = /*@__PURE__*/ core.$constructor(\"ZodPrefault\", (inst, def) => {\n    core.$ZodPrefault.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.prefaultProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function prefault(innerType, defaultValue) {\n    return new ZodPrefault({\n        type: \"prefault\",\n        innerType: innerType,\n        get defaultValue() {\n            return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n        },\n    });\n}\nexport const ZodNonOptional = /*@__PURE__*/ core.$constructor(\"ZodNonOptional\", (inst, def) => {\n    core.$ZodNonOptional.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.nonoptionalProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function nonoptional(innerType, params) {\n    return new ZodNonOptional({\n        type: \"nonoptional\",\n        innerType: innerType,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodSuccess = /*@__PURE__*/ core.$constructor(\"ZodSuccess\", (inst, def) => {\n    core.$ZodSuccess.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.successProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function success(innerType) {\n    return new ZodSuccess({\n        type: \"success\",\n        innerType: innerType,\n    });\n}\nexport const ZodCatch = /*@__PURE__*/ core.$constructor(\"ZodCatch\", (inst, def) => {\n    core.$ZodCatch.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.catchProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n    inst.removeCatch = inst.unwrap;\n});\nfunction _catch(innerType, catchValue) {\n    return new ZodCatch({\n        type: \"catch\",\n        innerType: innerType,\n        catchValue: (typeof catchValue === \"function\" ? catchValue : core.util.constantCatch(catchValue)),\n    });\n}\nexport { _catch as catch };\nexport const ZodNaN = /*@__PURE__*/ core.$constructor(\"ZodNaN\", (inst, def) => {\n    core.$ZodNaN.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.nanProcessor(inst, ctx, json, params);\n});\nexport function nan(params) {\n    return core._nan(ZodNaN, params);\n}\nexport const ZodPipe = /*@__PURE__*/ core.$constructor(\"ZodPipe\", (inst, def) => {\n    core.$ZodPipe.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.pipeProcessor(inst, ctx, json, params);\n    inst.in = def.in;\n    inst.out = def.out;\n});\nexport function pipe(in_, out) {\n    return new ZodPipe({\n        type: \"pipe\",\n        in: in_,\n        out: out,\n        // ...util.normalizeParams(params),\n    });\n}\nexport const ZodCodec = /*@__PURE__*/ core.$constructor(\"ZodCodec\", (inst, def) => {\n    ZodPipe.init(inst, def);\n    core.$ZodCodec.init(inst, def);\n});\nexport function codec(in_, out, params) {\n    return new ZodCodec({\n        type: \"pipe\",\n        in: in_,\n        out: out,\n        transform: params.decode,\n        reverseTransform: params.encode,\n    });\n}\nexport function invertCodec(codec) {\n    const def = codec._zod.def;\n    return new ZodCodec({\n        type: \"pipe\",\n        in: def.out,\n        out: def.in,\n        transform: def.reverseTransform,\n        reverseTransform: def.transform,\n    });\n}\nexport const ZodPreprocess = /*@__PURE__*/ core.$constructor(\"ZodPreprocess\", (inst, def) => {\n    ZodPipe.init(inst, def);\n    core.$ZodPreprocess.init(inst, def);\n});\nexport const ZodReadonly = /*@__PURE__*/ core.$constructor(\"ZodReadonly\", (inst, def) => {\n    core.$ZodReadonly.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.readonlyProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function readonly(innerType) {\n    return new ZodReadonly({\n        type: \"readonly\",\n        innerType: innerType,\n    });\n}\nexport const ZodTemplateLiteral = /*@__PURE__*/ core.$constructor(\"ZodTemplateLiteral\", (inst, def) => {\n    core.$ZodTemplateLiteral.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.templateLiteralProcessor(inst, ctx, json, params);\n});\nexport function templateLiteral(parts, params) {\n    return new ZodTemplateLiteral({\n        type: \"template_literal\",\n        parts,\n        ...util.normalizeParams(params),\n    });\n}\nexport const ZodLazy = /*@__PURE__*/ core.$constructor(\"ZodLazy\", (inst, def) => {\n    core.$ZodLazy.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.lazyProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.getter();\n});\nexport function lazy(getter) {\n    return new ZodLazy({\n        type: \"lazy\",\n        getter: getter,\n    });\n}\nexport const ZodPromise = /*@__PURE__*/ core.$constructor(\"ZodPromise\", (inst, def) => {\n    core.$ZodPromise.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.promiseProcessor(inst, ctx, json, params);\n    inst.unwrap = () => inst._zod.def.innerType;\n});\nexport function promise(innerType) {\n    return new ZodPromise({\n        type: \"promise\",\n        innerType: innerType,\n    });\n}\nexport const ZodFunction = /*@__PURE__*/ core.$constructor(\"ZodFunction\", (inst, def) => {\n    core.$ZodFunction.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.functionProcessor(inst, ctx, json, params);\n});\nexport function _function(params) {\n    return new ZodFunction({\n        type: \"function\",\n        input: Array.isArray(params?.input) ? tuple(params?.input) : (params?.input ?? array(unknown())),\n        output: params?.output ?? unknown(),\n    });\n}\nexport { _function as function };\nexport const ZodCustom = /*@__PURE__*/ core.$constructor(\"ZodCustom\", (inst, def) => {\n    core.$ZodCustom.init(inst, def);\n    ZodType.init(inst, def);\n    inst._zod.processJSONSchema = (ctx, json, params) => processors.customProcessor(inst, ctx, json, params);\n});\n// custom checks\nexport function check(fn) {\n    const ch = new core.$ZodCheck({\n        check: \"custom\",\n        // ...util.normalizeParams(params),\n    });\n    ch._zod.check = fn;\n    return ch;\n}\nexport function custom(fn, _params) {\n    return core._custom(ZodCustom, fn ?? (() => true), _params);\n}\nexport function refine(fn, _params = {}) {\n    return core._refine(ZodCustom, fn, _params);\n}\n// superRefine\nexport function superRefine(fn, params) {\n    return core._superRefine(fn, params);\n}\n// Re-export describe and meta from core\nexport const describe = core.describe;\nexport const meta = core.meta;\nexport const ZodInstanceOf = /*@__PURE__*/ core.$constructor(\"ZodInstanceOf\", (inst, def) => {\n    ZodCustom.init(inst, def);\n}, {\n    properties(shape, params) {\n        // asserts in place, so the narrowed output type is truthful without a wrapper\n        return this.check(core._properties(shape, params));\n    },\n});\nfunction _instanceof(cls, params = {}) {\n    const inst = new ZodInstanceOf({\n        type: \"custom\",\n        check: \"custom\",\n        fn: (data) => data instanceof cls,\n        abort: true,\n        ...util.normalizeParams(params),\n    });\n    inst._zod.bag.Class = cls;\n    // Override check to emit invalid_type instead of custom\n    inst._zod.check = (payload) => {\n        if (!(payload.value instanceof cls)) {\n            payload.issues.push({\n                code: \"invalid_type\",\n                expected: cls.name,\n                input: payload.value,\n                inst,\n                path: [...(inst._zod.def.path ?? [])],\n            });\n        }\n    };\n    return inst;\n}\nexport { _instanceof as instanceof };\n// stringbool\nexport const stringbool = (...args) => core._stringbool({\n    Codec: ZodCodec,\n    Boolean: ZodBoolean,\n    String: ZodString,\n}, ...args);\nexport function json(params) {\n    const jsonSchema = lazy(() => {\n        return union([string(params), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);\n    });\n    return jsonSchema;\n}\n// preprocess\nexport function preprocess(fn, schema) {\n    return new ZodPreprocess({\n        type: \"pipe\",\n        in: transform(fn),\n        out: schema,\n    });\n}\n","export { _lt as lt, _lte as lte, _gt as gt, _gte as gte, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, _slugify as slugify, } from \"../core/index.js\";\n","import * as core from \"../core/index.js\";\nimport { $ZodError } from \"../core/index.js\";\nimport * as util from \"../core/util.js\";\n/* Prototypes that already carry the lazy helper methods. Seeded with the\n * intrinsics so that `init` on a foreign object — it accepts any object —\n * can never install an accessor onto a prototype we do not own. */\nconst _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);\n/* Helper methods live as non-enumerable lazy getters on the shared\n * prototype instead of own properties on every instance. On first\n * access the getter allocates the per-instance closure and caches it\n * as a non-enumerable own property, so detached usage still works and\n * the allocation only happens for methods actually touched. */\nfunction _lazyMethod(proto, key, make) {\n    Object.defineProperty(proto, key, {\n        configurable: true,\n        enumerable: false,\n        get() {\n            const value = make(this);\n            Object.defineProperty(this, key, { value, configurable: true, writable: true });\n            return value;\n        },\n        set(value) {\n            Object.defineProperty(this, key, { value, configurable: true, writable: true });\n        },\n    });\n}\nconst initializer = (inst, issues) => {\n    $ZodError.init(inst, issues);\n    inst.name = \"ZodError\";\n    const proto = Object.getPrototypeOf(inst);\n    if (_installedErrorProtos.has(proto))\n        return;\n    _installedErrorProtos.add(proto);\n    _lazyMethod(proto, \"format\", (self) => (mapper) => core.formatError(self, mapper));\n    _lazyMethod(proto, \"flatten\", (self) => (mapper) => core.flattenError(self, mapper));\n    _lazyMethod(proto, \"addIssue\", (self) => (issue) => {\n        self.issues.push(issue);\n        self.message = JSON.stringify(self.issues, util.jsonStringifyReplacer, 2);\n    });\n    _lazyMethod(proto, \"addIssues\", (self) => (issues) => {\n        self.issues.push(...issues);\n        self.message = JSON.stringify(self.issues, util.jsonStringifyReplacer, 2);\n    });\n    Object.defineProperty(proto, \"isEmpty\", {\n        configurable: true,\n        enumerable: false,\n        get() {\n            return this.issues.length === 0;\n        },\n    });\n};\nexport const ZodError = /*@__PURE__*/ core.$constructor(\"ZodError\", initializer);\nexport const ZodRealError = /*@__PURE__*/ core.$constructor(\"ZodError\", initializer, undefined, {\n    Parent: Error,\n});\n// /** @deprecated Use `z.core.$ZodErrorMapCtx` instead. */\n// export type ErrorMapCtx = core.$ZodErrorMapCtx;\n","import * as core from \"../core/index.js\";\nimport { ZodRealError } from \"./errors.js\";\nexport const parse = /* @__PURE__ */ core._parse(ZodRealError);\nexport const parseAsync = /* @__PURE__ */ core._parseAsync(ZodRealError);\nexport const safeParse = /* @__PURE__ */ core._safeParse(ZodRealError);\nexport const safeParseAsync = /* @__PURE__ */ core._safeParseAsync(ZodRealError);\nexport { validate, validateAsync } from \"../core/index.js\";\n// Codec functions\nexport const encode = /* @__PURE__ */ core._encode(ZodRealError);\nexport const decode = /* @__PURE__ */ core._decode(ZodRealError);\nexport const encodeAsync = /* @__PURE__ */ core._encodeAsync(ZodRealError);\nexport const decodeAsync = /* @__PURE__ */ core._decodeAsync(ZodRealError);\nexport const safeEncode = /* @__PURE__ */ core._safeEncode(ZodRealError);\nexport const safeDecode = /* @__PURE__ */ core._safeDecode(ZodRealError);\nexport const safeEncodeAsync = /* @__PURE__ */ core._safeEncodeAsync(ZodRealError);\nexport const safeDecodeAsync = /* @__PURE__ */ core._safeDecodeAsync(ZodRealError);\n","// Zod 3 compat layer\nimport * as core from \"../core/index.js\";\n/** @deprecated Use the raw string literal codes instead, e.g. \"invalid_type\". */\nexport const ZodIssueCode = {\n    invalid_type: \"invalid_type\",\n    too_big: \"too_big\",\n    too_small: \"too_small\",\n    invalid_format: \"invalid_format\",\n    not_multiple_of: \"not_multiple_of\",\n    unrecognized_keys: \"unrecognized_keys\",\n    invalid_union: \"invalid_union\",\n    invalid_key: \"invalid_key\",\n    invalid_element: \"invalid_element\",\n    invalid_value: \"invalid_value\",\n    custom: \"custom\",\n};\nexport { $brand, config } from \"../core/index.js\";\n/** @deprecated Use `z.config(params)` instead. */\nexport function setErrorMap(map) {\n    core.config({\n        customError: map,\n    });\n}\n/** @deprecated Use `z.config()` instead. */\nexport function getErrorMap() {\n    return core.config().customError;\n}\n/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */\nexport var ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));\n","import * as core from \"../core/index.js\";\nimport { ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime } from \"./schemas.js\";\nexport { ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime } from \"./schemas.js\";\nexport function datetime(params) {\n    return core._isoDateTime(ZodISODateTime, params);\n}\nexport function date(params) {\n    return core._isoDate(ZodISODate, params);\n}\nexport function time(params) {\n    return core._isoTime(ZodISOTime, params);\n}\nexport function duration(params) {\n    return core._isoDuration(ZodISODuration, params);\n}\n","import { globalRegistry } from \"../core/registries.js\";\nimport { assignProp, isPlainObject } from \"../core/util.js\";\nimport * as _checks from \"./checks.js\";\nimport * as _iso from \"./iso.js\";\nimport * as _schemas from \"./schemas.js\";\n// Local z object to avoid circular dependency with ../index.js\nconst z = {\n    ..._schemas,\n    ..._checks,\n    iso: _iso,\n};\n// Keys that are recognized and handled by the conversion logic\nconst RECOGNIZED_KEYS = /*@__PURE__*/ new Set([\n    // Schema identification\n    \"$schema\",\n    \"$ref\",\n    \"$defs\",\n    \"definitions\",\n    // Core schema keywords\n    \"$id\",\n    \"id\",\n    \"$comment\",\n    \"$anchor\",\n    \"$vocabulary\",\n    \"$dynamicRef\",\n    \"$dynamicAnchor\",\n    // Type\n    \"type\",\n    \"enum\",\n    \"const\",\n    // Composition\n    \"anyOf\",\n    \"oneOf\",\n    \"allOf\",\n    \"not\",\n    // Object\n    \"properties\",\n    \"required\",\n    \"additionalProperties\",\n    \"patternProperties\",\n    \"propertyNames\",\n    \"minProperties\",\n    \"maxProperties\",\n    // Array\n    \"items\",\n    \"prefixItems\",\n    \"additionalItems\",\n    \"minItems\",\n    \"maxItems\",\n    \"uniqueItems\",\n    \"contains\",\n    \"minContains\",\n    \"maxContains\",\n    // String\n    \"minLength\",\n    \"maxLength\",\n    \"pattern\",\n    \"format\",\n    // Number\n    \"minimum\",\n    \"maximum\",\n    \"exclusiveMinimum\",\n    \"exclusiveMaximum\",\n    \"multipleOf\",\n    // Already handled metadata\n    \"description\",\n    \"default\",\n    // Content\n    \"contentEncoding\",\n    \"contentMediaType\",\n    \"contentSchema\",\n    // Unsupported (error-throwing)\n    \"unevaluatedItems\",\n    \"unevaluatedProperties\",\n    \"if\",\n    \"then\",\n    \"else\",\n    \"dependentSchemas\",\n    \"dependentRequired\",\n    // OpenAPI\n    \"nullable\",\n    \"readOnly\",\n]);\nfunction detectVersion(schema, defaultTarget) {\n    const $schema = schema.$schema;\n    if ($schema === \"https://json-schema.org/draft/2020-12/schema\") {\n        return \"draft-2020-12\";\n    }\n    if ($schema === \"http://json-schema.org/draft-07/schema#\") {\n        return \"draft-7\";\n    }\n    if ($schema === \"http://json-schema.org/draft-04/schema#\") {\n        return \"draft-4\";\n    }\n    // Use defaultTarget if provided, otherwise default to draft-2020-12\n    return defaultTarget ?? \"draft-2020-12\";\n}\n// Positional schemas constrain the elements that are present; only minItems makes them required.\nfunction applyMinItems(items, minItems) {\n    return items.map((item, index) => (index < minItems ? item : item.optional()));\n}\n// Inverse of the encoding applied to $ref pointer segments in to-json-schema.ts. Per RFC 6901 the `~1` replacement must run before `~0`.\nfunction decodeJSONPointerSegment(segment) {\n    return segment.replace(/~1/g, \"/\").replace(/~0/g, \"~\");\n}\nfunction resolveRef(ref, ctx) {\n    if (!ref.startsWith(\"#\")) {\n        throw new Error(\"External $ref is not supported, only local refs (#/...) are allowed\");\n    }\n    const path = ref.slice(1).split(\"/\").filter(Boolean);\n    // Handle root reference \"#\"\n    if (path.length === 0) {\n        return ctx.rootSchema;\n    }\n    const defsKey = ctx.version === \"draft-2020-12\" ? \"$defs\" : \"definitions\";\n    if (path[0] === defsKey) {\n        const key = path[1] === undefined ? undefined : decodeJSONPointerSegment(path[1]);\n        if (!key || !ctx.defs[key]) {\n            throw new Error(`Reference not found: ${ref}`);\n        }\n        return ctx.defs[key];\n    }\n    throw new Error(`Reference not found: ${ref}`);\n}\n/**\n * Enforces the keywords that constrain an object's own keys — `propertyNames`,\n * `minProperties`, `maxProperties` — before `objectSchema` runs. The guard has\n * to see the raw input: an object parse drops `__proto__` and can add keys from\n * a property `default`, so its output is not the set of names the instance\n * actually carried.\n */\nfunction checkObjectGuards(objectSchema, guards) {\n    // An identity transform, not z.any(), so `toJSONSchema` reports the object on both the input and the output side of the pipe.\n    const guard = z\n        .transform((value) => value)\n        .check((payload) => {\n        const value = payload.value;\n        if (typeof value !== \"object\" || value === null || Array.isArray(value))\n            return;\n        const keys = Object.getOwnPropertyNames(value);\n        if (guards.minProperties !== undefined && keys.length < guards.minProperties) {\n            payload.issues.push({\n                origin: \"object\",\n                code: \"too_small\",\n                minimum: guards.minProperties,\n                inclusive: true,\n                message: `Too small: expected object to have >=${guards.minProperties} properties`,\n                input: value,\n                inst: objectSchema,\n                continue: true,\n            });\n        }\n        if (guards.maxProperties !== undefined && keys.length > guards.maxProperties) {\n            payload.issues.push({\n                origin: \"object\",\n                code: \"too_big\",\n                maximum: guards.maxProperties,\n                inclusive: true,\n                message: `Too big: expected object to have <=${guards.maxProperties} properties`,\n                input: value,\n                inst: objectSchema,\n                continue: true,\n            });\n        }\n        if (guards.keySchema) {\n            for (const key of keys) {\n                const result = guards.keySchema.safeParse(key);\n                if (result.success)\n                    continue;\n                payload.issues.push({\n                    code: \"invalid_key\",\n                    origin: \"record\",\n                    issues: result.error.issues,\n                    input: key,\n                    path: [key],\n                    continue: true,\n                });\n            }\n        }\n    });\n    return guard.pipe(objectSchema);\n}\n/**\n * An injective string for JSON data: two values share a key exactly when `uniqueItems` calls them\n * equal, so duplicate detection is a Map lookup rather than a pairwise walk. Strings and keys are\n * length-prefixed so no value can spell another one. `null` means \"never equal to anything\" — a\n * cycle or a NaN, neither of which JSON can express.\n */\nfunction canonicalKey(value, seen) {\n    if (value === null)\n        return \"z\";\n    const type = typeof value;\n    if (type !== \"object\") {\n        if (type === \"number\" && Number.isNaN(value))\n            return null;\n        const raw = String(value);\n        return `${type[0]}${raw.length}:${raw}`;\n    }\n    if (seen.has(value))\n        return null;\n    seen.add(value);\n    try {\n        if (Array.isArray(value)) {\n            const parts = [];\n            for (const item of value) {\n                const key = canonicalKey(item, seen);\n                if (key === null)\n                    return null;\n                parts.push(key);\n            }\n            return `a${parts.length}:[${parts.join(\",\")}]`;\n        }\n        const keys = Object.keys(value).sort();\n        const parts = [];\n        for (const k of keys) {\n            const key = canonicalKey(value[k], seen);\n            if (key === null)\n                return null;\n            parts.push(`${k.length}:${k}=${key}`);\n        }\n        return `o${parts.length}:{${parts.join(\",\")}}`;\n    }\n    finally {\n        seen.delete(value);\n    }\n}\n// keywords whose value is a schema or an array of them\nconst SCHEMA_KEYWORDS = /*@__PURE__*/ new Set([\n    \"items\",\n    \"prefixItems\",\n    \"additionalItems\",\n    \"additionalProperties\",\n    \"contains\",\n    \"propertyNames\",\n    \"not\",\n    \"if\",\n    \"then\",\n    \"else\",\n    \"allOf\",\n    \"anyOf\",\n    \"oneOf\",\n    \"unevaluatedItems\",\n    \"unevaluatedProperties\",\n    \"contentSchema\",\n]);\n// keywords whose value maps names to schemas. draft-7 `dependencies` also allows an array of property names, which holds no schema to walk\nconst SCHEMA_MAP_KEYWORDS = /*@__PURE__*/ new Set([\n    \"properties\",\n    \"patternProperties\",\n    \"dependentSchemas\",\n    \"dependencies\",\n    \"$defs\",\n    \"definitions\",\n]);\n/**\n * True when a subschema holds a `$ref` anywhere a schema can appear. Only those positions are\n * walked: `$ref` under `default` or an `x-` annotation is instance data with an ordinary key, and\n * reading it as a reference would drop a constraint that resolves perfectly well.\n */\nfunction containsRef(value) {\n    if (typeof value !== \"object\" || value === null)\n        return false;\n    if (Array.isArray(value))\n        return value.some(containsRef);\n    if (typeof value.$ref === \"string\")\n        return true;\n    return Object.entries(value).some(([key, sub]) => {\n        if (SCHEMA_KEYWORDS.has(key))\n            return containsRef(sub);\n        if (!SCHEMA_MAP_KEYWORDS.has(key) || typeof sub !== \"object\" || sub === null)\n            return false;\n        return Object.values(sub).some(containsRef);\n    });\n}\nfunction plural(n) {\n    return n === 1 ? \"element\" : \"elements\";\n}\n/**\n * Enforces `uniqueItems` and the `contains` family before `arraySchema` runs, for the same reason\n * `checkObjectGuards` runs pre-pipe: an item parse can apply a nested `default`, so the parsed\n * array is not the instance the keywords are defined over. A guard issue aborts the pipe, so\n * `minItems`/`maxItems` are not also reported on the same parse — instance correctness is worth\n * more than co-reporting two issues.\n */\nfunction checkArrayGuards(arraySchema, guards) {\n    // An identity transform, not z.any(), so `toJSONSchema` reports the array on both the input and the output side of the pipe.\n    const guard = z\n        .transform((value) => value)\n        .check((payload) => {\n        const items = payload.value;\n        if (!Array.isArray(items))\n            return;\n        if (guards.uniqueItems === true) {\n            const firstSeen = new Map();\n            for (let i = 0; i < items.length; i++) {\n                const key = canonicalKey(items[i], new Set());\n                if (key === null)\n                    continue;\n                const first = firstSeen.get(key);\n                if (first === undefined) {\n                    firstSeen.set(key, i);\n                    continue;\n                }\n                payload.issues.push({\n                    code: \"custom\",\n                    message: `Array items must be unique: element at index ${i} duplicates the one at index ${first}`,\n                    input: items,\n                    path: [i],\n                    continue: true,\n                });\n            }\n        }\n        if (guards.containsSchema) {\n            const minContains = guards.minContains ?? 1;\n            // one past the ceiling already proves the failure, and nothing above it changes the verdict\n            const ceiling = guards.maxContains !== undefined ? guards.maxContains + 1 : Number.POSITIVE_INFINITY;\n            let matches = 0;\n            for (const item of items) {\n                if (guards.containsSchema.safeParse(item).success && ++matches >= ceiling)\n                    break;\n            }\n            if (matches < minContains) {\n                // the scan ran to the end, so this count is exact\n                payload.issues.push({\n                    code: \"custom\",\n                    message: `Array must contain at least ${minContains} matching ${plural(minContains)}; found ${matches}`,\n                    input: items,\n                    continue: true,\n                });\n            }\n            if (guards.maxContains !== undefined && matches > guards.maxContains) {\n                payload.issues.push({\n                    code: \"custom\",\n                    message: `Array must contain at most ${guards.maxContains} matching ${plural(guards.maxContains)}`,\n                    input: items,\n                    continue: true,\n                });\n            }\n        }\n    });\n    return guard.pipe(arraySchema);\n}\nfunction getTupleRest(restSchema, ctx) {\n    if (restSchema === false) {\n        return undefined;\n    }\n    if (restSchema === undefined || restSchema === true) {\n        return z.any();\n    }\n    return convertSchema(restSchema, ctx);\n}\n// the RFC 3339 full-time keyword, narrower than `z.iso.time()`; local because sharing it via `timeSource` pins that builder into every bundle (+139 B gzipped on a mini `z.boolean()`)\nconst fullTime = /^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$/;\nfunction convertBaseSchema(schema, ctx) {\n    // Handle unsupported features\n    if (schema.not !== undefined) {\n        // Special case: { not: {} } represents never\n        if (typeof schema.not === \"object\" && Object.keys(schema.not).length === 0) {\n            return z.never();\n        }\n        throw new Error(\"not is not supported in Zod (except { not: {} } for never)\");\n    }\n    if (schema.unevaluatedItems !== undefined) {\n        throw new Error(\"unevaluatedItems is not supported\");\n    }\n    if (schema.unevaluatedProperties !== undefined) {\n        throw new Error(\"unevaluatedProperties is not supported\");\n    }\n    if (schema.if !== undefined || schema.then !== undefined || schema.else !== undefined) {\n        throw new Error(\"Conditional schemas (if/then/else) are not supported\");\n    }\n    if (schema.dependentSchemas !== undefined || schema.dependentRequired !== undefined) {\n        throw new Error(\"dependentSchemas and dependentRequired are not supported\");\n    }\n    // Handle $ref\n    if (schema.$ref) {\n        const refPath = schema.$ref;\n        if (ctx.refs.has(refPath)) {\n            return ctx.refs.get(refPath);\n        }\n        if (ctx.processing.has(refPath)) {\n            // Circular reference - use lazy\n            return z.lazy(() => {\n                if (!ctx.refs.has(refPath)) {\n                    throw new Error(`Circular reference not resolved: ${refPath}`);\n                }\n                return ctx.refs.get(refPath);\n            });\n        }\n        ctx.processing.add(refPath);\n        const resolved = resolveRef(refPath, ctx);\n        const zodSchema = convertSchema(resolved, ctx);\n        ctx.refs.set(refPath, zodSchema);\n        ctx.processing.delete(refPath);\n        return zodSchema;\n    }\n    // Handle enum\n    if (schema.enum !== undefined) {\n        const enumValues = schema.enum;\n        // Special case: OpenAPI 3.0 null representation { type: \"string\", nullable: true, enum: [null] }\n        if (ctx.version === \"openapi-3.0\" &&\n            schema.nullable === true &&\n            enumValues.length === 1 &&\n            enumValues[0] === null) {\n            return z.null();\n        }\n        if (enumValues.length === 0) {\n            return z.never();\n        }\n        if (enumValues.length === 1) {\n            return z.literal(enumValues[0]);\n        }\n        // Check if all values are strings\n        if (enumValues.every((v) => typeof v === \"string\")) {\n            return z.enum(enumValues);\n        }\n        // Mixed types - use union of literals\n        const literalSchemas = enumValues.map((v) => z.literal(v));\n        if (literalSchemas.length < 2) {\n            return literalSchemas[0];\n        }\n        return z.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);\n    }\n    // Handle const\n    if (schema.const !== undefined) {\n        return z.literal(schema.const);\n    }\n    // Handle type\n    const type = schema.type;\n    if (Array.isArray(type)) {\n        // Expand type array into anyOf union\n        const typeSchemas = type.map((t) => {\n            const typeSchema = { ...schema, type: t };\n            return convertBaseSchema(typeSchema, ctx);\n        });\n        if (typeSchemas.length === 0) {\n            return z.never();\n        }\n        if (typeSchemas.length === 1) {\n            return typeSchemas[0];\n        }\n        return z.union(typeSchemas);\n    }\n    if (!type) {\n        // No type specified - empty schema (any)\n        return z.any();\n    }\n    let zodSchema;\n    switch (type) {\n        case \"string\": {\n            let stringSchema = z.string();\n            // Apply format using .check() with Zod format functions\n            if (schema.format) {\n                const format = schema.format;\n                // Map common formats to Zod check functions\n                if (format === \"email\") {\n                    stringSchema = stringSchema.check(z.email());\n                }\n                else if (format === \"uri\" || format === \"uri-reference\") {\n                    stringSchema = stringSchema.check(z.url());\n                }\n                else if (format === \"uuid\" || format === \"guid\") {\n                    stringSchema = stringSchema.check(z.uuid());\n                }\n                else if (format === \"date-time\") {\n                    stringSchema = stringSchema.check(z.iso.datetime({ offset: true }));\n                }\n                else if (format === \"date\") {\n                    stringSchema = stringSchema.check(z.iso.date());\n                }\n                else if (format === \"time\") {\n                    stringSchema = stringSchema.check(z.regex(fullTime));\n                }\n                else if (format === \"duration\") {\n                    stringSchema = stringSchema.check(z.iso.duration());\n                }\n                else if (format === \"hostname\") {\n                    stringSchema = stringSchema.check(z.hostname());\n                }\n                else if (format === \"ipv4\") {\n                    stringSchema = stringSchema.check(z.ipv4());\n                }\n                else if (format === \"ipv6\") {\n                    stringSchema = stringSchema.check(z.ipv6());\n                }\n                else if (format === \"mac\") {\n                    stringSchema = stringSchema.check(z.mac());\n                }\n                else if (format === \"cidr\") {\n                    stringSchema = stringSchema.check(z.cidrv4());\n                }\n                else if (format === \"cidr-v6\") {\n                    stringSchema = stringSchema.check(z.cidrv6());\n                }\n                else if (format === \"base64\") {\n                    stringSchema = stringSchema.check(z.base64());\n                }\n                else if (format === \"base64url\") {\n                    stringSchema = stringSchema.check(z.base64url());\n                }\n                else if (format === \"e164\") {\n                    stringSchema = stringSchema.check(z.e164());\n                }\n                else if (format === \"credit_card\") {\n                    stringSchema = stringSchema.check(z.creditCard());\n                }\n                else if (format === \"iban\") {\n                    stringSchema = stringSchema.check(z.iban());\n                }\n                else if (format === \"jwt\") {\n                    stringSchema = stringSchema.check(z.jwt());\n                }\n                else if (format === \"emoji\") {\n                    stringSchema = stringSchema.check(z.emoji());\n                }\n                else if (format === \"nanoid\") {\n                    stringSchema = stringSchema.check(z.nanoid());\n                }\n                else if (format === \"cuid\") {\n                    stringSchema = stringSchema.check(z.cuid());\n                }\n                else if (format === \"cuid2\") {\n                    stringSchema = stringSchema.check(z.cuid2());\n                }\n                else if (format === \"ulid\") {\n                    stringSchema = stringSchema.check(z.ulid());\n                }\n                else if (format === \"xid\") {\n                    stringSchema = stringSchema.check(z.xid());\n                }\n                else if (format === \"ksuid\") {\n                    stringSchema = stringSchema.check(z.ksuid());\n                }\n                // Note: json-string format is not currently supported by Zod\n                // Custom formats are ignored - keep as plain string\n            }\n            // Apply constraints\n            if (typeof schema.minLength === \"number\") {\n                stringSchema = stringSchema.min(schema.minLength);\n            }\n            if (typeof schema.maxLength === \"number\") {\n                stringSchema = stringSchema.max(schema.maxLength);\n            }\n            if (schema.pattern) {\n                // JSON Schema patterns are not implicitly anchored (match anywhere in string)\n                stringSchema = stringSchema.regex(new RegExp(schema.pattern));\n            }\n            zodSchema = stringSchema;\n            break;\n        }\n        case \"number\":\n        case \"integer\": {\n            let numberSchema = type === \"integer\" ? z.number().int() : z.number();\n            // Apply constraints\n            // In draft-04, `exclusiveMinimum: true` makes the sibling `minimum` exclusive rather than an independent bound, so the inclusive `.min()` is skipped; emitting it too would be dominated by the exclusive check and report a second, weaker issue.\n            if (typeof schema.minimum === \"number\" && schema.exclusiveMinimum !== true) {\n                numberSchema = numberSchema.min(schema.minimum);\n            }\n            if (typeof schema.maximum === \"number\" && schema.exclusiveMaximum !== true) {\n                numberSchema = numberSchema.max(schema.maximum);\n            }\n            if (typeof schema.exclusiveMinimum === \"number\") {\n                numberSchema = numberSchema.gt(schema.exclusiveMinimum);\n            }\n            else if (schema.exclusiveMinimum === true && typeof schema.minimum === \"number\") {\n                numberSchema = numberSchema.gt(schema.minimum);\n            }\n            if (typeof schema.exclusiveMaximum === \"number\") {\n                numberSchema = numberSchema.lt(schema.exclusiveMaximum);\n            }\n            else if (schema.exclusiveMaximum === true && typeof schema.maximum === \"number\") {\n                numberSchema = numberSchema.lt(schema.maximum);\n            }\n            if (typeof schema.multipleOf === \"number\") {\n                numberSchema = numberSchema.multipleOf(schema.multipleOf);\n            }\n            zodSchema = numberSchema;\n            break;\n        }\n        case \"boolean\": {\n            zodSchema = z.boolean();\n            break;\n        }\n        case \"null\": {\n            zodSchema = z.null();\n            break;\n        }\n        case \"object\": {\n            const shape = {};\n            const properties = schema.properties || {};\n            const requiredSet = new Set(schema.required || []);\n            const additionalSchema = typeof schema.additionalProperties === \"object\"\n                ? convertSchema(schema.additionalProperties, ctx)\n                : undefined;\n            // Convert properties - mark optional ones\n            for (const [key, propSchema] of Object.entries(properties)) {\n                const propZodSchema = convertSchema(propSchema, ctx);\n                // If not in required array, make it optional. assignProp so a __proto__ key becomes an own property instead of hitting the inherited setter\n                assignProp(shape, key, requiredSet.has(key) ? propZodSchema : propZodSchema.optional());\n            }\n            // Handle patternProperties\n            if (schema.patternProperties) {\n                // patternProperties: keys matching pattern must satisfy corresponding schema. Use loose records so non-matching keys pass through\n                const patternProps = schema.patternProperties;\n                const patternKeys = Object.keys(patternProps);\n                const looseRecords = [];\n                for (const pattern of patternKeys) {\n                    const patternValue = convertSchema(patternProps[pattern], ctx);\n                    const keySchema = z.string().regex(new RegExp(pattern));\n                    looseRecords.push(z.looseRecord(keySchema, patternValue));\n                }\n                // Build intersection: object schema + all pattern property records\n                const schemasToIntersect = [];\n                if (Object.keys(shape).length > 0) {\n                    // Use passthrough so patternProperties can validate additional keys\n                    schemasToIntersect.push(z.object(shape).passthrough());\n                }\n                schemasToIntersect.push(...looseRecords);\n                if (schemasToIntersect.length === 0) {\n                    zodSchema = z.object({}).passthrough();\n                }\n                else if (schemasToIntersect.length === 1) {\n                    zodSchema = schemasToIntersect[0];\n                }\n                else {\n                    // Chain intersections: (A & B) & C & D ...\n                    let result = z.intersection(schemasToIntersect[0], schemasToIntersect[1]);\n                    for (let i = 2; i < schemasToIntersect.length; i++) {\n                        result = z.intersection(result, schemasToIntersect[i]);\n                    }\n                    zodSchema = result;\n                }\n                // When additionalProperties is false, reject keys that are neither defined in properties nor matched by any patternProperty.\n                if (schema.additionalProperties === false) {\n                    const propertyKeys = Object.keys(shape);\n                    const patterns = patternKeys.map((p) => new RegExp(p));\n                    const basePatternSchema = zodSchema;\n                    zodSchema = zodSchema.check((payload) => {\n                        if (!isPlainObject(payload.value))\n                            return;\n                        const unrecognized = [];\n                        for (const key of Object.keys(payload.value)) {\n                            if (propertyKeys.includes(key))\n                                continue;\n                            if (patterns.some((regex) => regex.test(key)))\n                                continue;\n                            unrecognized.push(key);\n                        }\n                        if (unrecognized.length) {\n                            payload.issues.push({\n                                code: \"unrecognized_keys\",\n                                keys: unrecognized,\n                                input: payload.value,\n                                inst: basePatternSchema,\n                            });\n                        }\n                    });\n                }\n            }\n            else {\n                // Handle additionalProperties. In JSON Schema, additionalProperties defaults to true (allow any extra properties). In Zod, objects strip unknown keys by default, so we need to handle this explicitly\n                const objectSchema = z.object(shape);\n                if (schema.additionalProperties === false) {\n                    // Strict mode - no extra properties allowed\n                    zodSchema = objectSchema.strict();\n                }\n                else if (additionalSchema) {\n                    // Extra properties must match the specified schema\n                    zodSchema = objectSchema.catchall(additionalSchema);\n                }\n                else {\n                    // additionalProperties is true or undefined - allow any extra properties (passthrough)\n                    zodSchema = objectSchema.passthrough();\n                }\n            }\n            // propertyNames constrains key *names* only, and says nothing about which keys are required or how their values validate. Layering it on top of the result keeps properties/patternProperties/additionalProperties composing underneath. `true` allows every name, so it needs no guard.\n            const hasKeyGuard = schema.propertyNames !== undefined && schema.propertyNames !== true;\n            const minProperties = typeof schema.minProperties === \"number\" ? schema.minProperties : undefined;\n            const maxProperties = typeof schema.maxProperties === \"number\" ? schema.maxProperties : undefined;\n            if (hasKeyGuard || minProperties !== undefined || maxProperties !== undefined) {\n                let keySchema;\n                if (hasKeyGuard) {\n                    // Keys are always strings, so a propertyNames subschema that omits `type` still constrains them — without this it would convert to z.any().\n                    const keyJSONSchema = typeof schema.propertyNames === \"object\" && schema.propertyNames.type === undefined\n                        ? { type: \"string\", ...schema.propertyNames }\n                        : schema.propertyNames;\n                    keySchema = convertSchema(keyJSONSchema, ctx);\n                }\n                zodSchema = checkObjectGuards(zodSchema, { keySchema, minProperties, maxProperties });\n            }\n            break;\n        }\n        case \"array\": {\n            // Check if this is a tuple (prefixItems or items as array)\n            const prefixItems = schema.prefixItems;\n            const items = schema.items;\n            if (prefixItems && Array.isArray(prefixItems)) {\n                // Tuple with prefixItems (draft-2020-12)\n                const minItems = typeof schema.minItems === \"number\" ? schema.minItems : 0;\n                const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));\n                const positionalItems = applyMinItems(tupleItems, minItems);\n                const rest = !Array.isArray(items) ? getTupleRest(items, ctx) : undefined;\n                const tupleSchema = z.tuple(positionalItems);\n                zodSchema = rest ? tupleSchema.rest(rest) : tupleSchema;\n                // Apply minItems/maxItems constraints to tuples\n                if (typeof schema.minItems === \"number\") {\n                    zodSchema = zodSchema.check(z.minLength(schema.minItems));\n                }\n                if (typeof schema.maxItems === \"number\") {\n                    zodSchema = zodSchema.check(z.maxLength(schema.maxItems));\n                }\n            }\n            else if (Array.isArray(items)) {\n                // Tuple with items array (draft-7)\n                const minItems = typeof schema.minItems === \"number\" ? schema.minItems : 0;\n                const tupleItems = items.map((item) => convertSchema(item, ctx));\n                const positionalItems = applyMinItems(tupleItems, minItems);\n                const rest = getTupleRest(schema.additionalItems, ctx);\n                const tupleSchema = z.tuple(positionalItems);\n                zodSchema = rest ? tupleSchema.rest(rest) : tupleSchema;\n                // Apply minItems/maxItems constraints to tuples\n                if (typeof schema.minItems === \"number\") {\n                    zodSchema = zodSchema.check(z.minLength(schema.minItems));\n                }\n                if (typeof schema.maxItems === \"number\") {\n                    zodSchema = zodSchema.check(z.maxLength(schema.maxItems));\n                }\n            }\n            else if (items !== undefined) {\n                // Regular array\n                const element = convertSchema(items, ctx);\n                let arraySchema = z.array(element);\n                // Apply constraints\n                if (typeof schema.minItems === \"number\") {\n                    arraySchema = arraySchema.min(schema.minItems);\n                }\n                if (typeof schema.maxItems === \"number\") {\n                    arraySchema = arraySchema.max(schema.maxItems);\n                }\n                zodSchema = arraySchema;\n            }\n            else {\n                // No items specified - array of any\n                zodSchema = z.array(z.any());\n            }\n            // minContains/maxContains only constrain anything when `contains` itself is present\n            if (schema.uniqueItems === true || schema.contains !== undefined) {\n                zodSchema = checkArrayGuards(zodSchema, {\n                    uniqueItems: schema.uniqueItems === true,\n                    containsSchema: schema.contains !== undefined ? convertSchema(schema.contains, ctx) : undefined,\n                    minContains: typeof schema.minContains === \"number\" ? schema.minContains : undefined,\n                    maxContains: typeof schema.maxContains === \"number\" ? schema.maxContains : undefined,\n                });\n            }\n            break;\n        }\n        default:\n            throw new Error(`Unsupported type: ${type}`);\n    }\n    return zodSchema;\n}\nfunction convertSchema(schema, ctx) {\n    if (typeof schema === \"boolean\") {\n        return schema ? z.any() : z.never();\n    }\n    // Convert base schema first (ignoring composition keywords)\n    let baseSchema = convertBaseSchema(schema, ctx);\n    const hasExplicitType = schema.type || schema.enum !== undefined || schema.const !== undefined;\n    // Process composition keywords LAST (they can appear together)\n    // Handle anyOf - wrap base schema with union\n    if (schema.anyOf && Array.isArray(schema.anyOf)) {\n        const options = schema.anyOf.map((s) => convertSchema(s, ctx));\n        const anyOfUnion = z.union(options);\n        baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;\n    }\n    // Handle oneOf - exclusive union (exactly one must match)\n    if (schema.oneOf && Array.isArray(schema.oneOf)) {\n        const options = schema.oneOf.map((s) => convertSchema(s, ctx));\n        const oneOfUnion = z.xor(options);\n        baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;\n    }\n    // Handle allOf - wrap base schema with intersection\n    if (schema.allOf && Array.isArray(schema.allOf)) {\n        if (schema.allOf.length === 0) {\n            baseSchema = hasExplicitType ? baseSchema : z.any();\n        }\n        else {\n            let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);\n            const startIdx = hasExplicitType ? 0 : 1;\n            for (let i = startIdx; i < schema.allOf.length; i++) {\n                result = z.intersection(result, convertSchema(schema.allOf[i], ctx));\n            }\n            baseSchema = result;\n        }\n    }\n    // Handle nullable (OpenAPI 3.0)\n    if (schema.nullable === true && ctx.version === \"openapi-3.0\") {\n        baseSchema = z.nullable(baseSchema);\n    }\n    // Handle readOnly\n    if (schema.readOnly === true) {\n        baseSchema = z.readonly(baseSchema);\n    }\n    // Apply `default` so it wraps the fully-composed schema. This ensures `parse(undefined) -> default` works regardless of which branch of `convertBaseSchema` produced the inner schema (enum/const/not/typed/etc.).\n    if (schema.default !== undefined) {\n        baseSchema = baseSchema.default(schema.default);\n    }\n    // Collect non-description annotation metadata into the user-supplied registry. Description is handled separately below via `.describe()` to preserve the contract that `schema.description` reads from globalRegistry.\n    const extraMeta = {};\n    const coreMetadataKeys = [\"$id\", \"id\", \"$comment\", \"$anchor\", \"$vocabulary\", \"$dynamicRef\", \"$dynamicAnchor\"];\n    for (const key of coreMetadataKeys) {\n        if (key in schema) {\n            extraMeta[key] = schema[key];\n        }\n    }\n    const contentMetadataKeys = [\"contentEncoding\", \"contentMediaType\", \"contentSchema\"];\n    for (const key of contentMetadataKeys) {\n        if (key in schema) {\n            extraMeta[key] = schema[key];\n        }\n    }\n    // `propertyNames` and `contains` are enforced by a guard, which `toJSONSchema` cannot infer, so the original keyword is carried as metadata to keep the round-trip lossless. Only where it was actually applied: on any other type it is inert, and on a `$ref` the metadata would land on the target every reference shares. A carried subschema is copied verbatim while the root `$defs` stay behind, so one holding a `$ref` is dropped rather than emitted as a dangling reference.\n    if (schema.type === \"object\" && schema.$ref === undefined) {\n        if (schema.propertyNames !== undefined && !containsRef(schema.propertyNames)) {\n            extraMeta.propertyNames = schema.propertyNames;\n        }\n        for (const key of [\"minProperties\", \"maxProperties\"]) {\n            if (schema[key] !== undefined)\n                extraMeta[key] = schema[key];\n        }\n    }\n    if (schema.type === \"array\" && schema.$ref === undefined) {\n        if (schema.contains !== undefined && !containsRef(schema.contains)) {\n            extraMeta.contains = schema.contains;\n        }\n        for (const key of [\"uniqueItems\", \"minContains\", \"maxContains\"]) {\n            if (schema[key] !== undefined)\n                extraMeta[key] = schema[key];\n        }\n    }\n    for (const key of Object.keys(schema)) {\n        if (!RECOGNIZED_KEYS.has(key)) {\n            assignProp(extraMeta, key, schema[key]);\n        }\n    }\n    if (Object.keys(extraMeta).length > 0) {\n        ctx.registry.add(baseSchema, extraMeta);\n    }\n    // Apply description last. `.describe()` clones the schema and sets `_zod.parent` on the clone, so registry lookups on the returned reference still resolve `extraMeta` via parent inheritance.\n    if (schema.description) {\n        baseSchema = baseSchema.describe(schema.description);\n    }\n    return baseSchema;\n}\n/**\n * Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */\nexport function fromJSONSchema(schema, params) {\n    // Handle boolean schemas\n    if (typeof schema === \"boolean\") {\n        return schema ? z.any() : z.never();\n    }\n    // Normalize input via a JSON round-trip. This guarantees the converter walks a plain, finite, JSON-valid object graph: cyclic inputs fail here, getter/Proxy-based properties are materialized into static values, and class instances collapse to plain objects.\n    let normalized;\n    try {\n        normalized = JSON.parse(JSON.stringify(schema));\n    }\n    catch {\n        throw new Error(\"fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas\");\n    }\n    const version = detectVersion(normalized, params?.defaultTarget);\n    const defs = (normalized.$defs || normalized.definitions || {});\n    const ctx = {\n        version,\n        defs,\n        refs: new Map(),\n        processing: new Set(),\n        rootSchema: normalized,\n        registry: params?.registry ?? globalRegistry,\n    };\n    return convertSchema(normalized, ctx);\n}\n","import { visit } from \"../core/visit.js\";\nimport * as schemas from \"./schemas.js\";\n/** Returns a copy of the schema with every nested object's properties made optional. */\nexport function deepPartial(schema) {\n    return visit(schema, {\n        object: (s) => s.partial(),\n        // Every partialed option now admits `undefined`, which the constructor rejects as a duplicate.\n        union: (s) => {\n            const def = s._zod.def;\n            return def.discriminator === undefined ? s : schemas.union(def.options);\n        },\n    });\n}\n","import { clone, mergeDefs } from \"../core/util.js\";\nimport { visit } from \"../core/visit.js\";\nimport * as schemas from \"./schemas.js\";\n/** Appends a pipe's own checks to the side that replaces it, mirroring how `.check()` clones. */\nfunction withChecks(side, checks) {\n    if (!checks?.length)\n        return side;\n    const def = side._zod.def;\n    return clone(side, mergeDefs(def, { checks: [...(def.checks ?? []), ...checks] }), { parent: true });\n}\n/** The out side, carrying the pipe's own checks: those run against the decoded value, which is what `out` produces. */\nfunction outSide(def) {\n    return withChecks(def.out, def.checks);\n}\n/** The in side. `z.preprocess` pipes a transform into a schema, and a bare transform validates nothing, so the schema it feeds is the real input side — the resolution `toJSONSchema` already makes for this case. */\nfunction inSide(def) {\n    return def.in._zod.traits.has(\"$ZodTransform\") ? outSide(def) : def.in;\n}\n/** Returns a copy of the schema with every pipe replaced by its input side. A codec's checks are dropped: they constrain the decoded value the input side never produces. */\nexport function input(schema) {\n    return visit(schema, {\n        pipe: (s) => inSide(s._zod.def),\n        // A default value belongs to the output side, so a rewritten inner type leaves it stranded. `.default()` widens the declared input type with `undefined`, and `optional` is what carries that across.\n        default: (s, rewritten) => (rewritten ? schemas.optional(s._zod.def.innerType) : s),\n        // A catch value is output-side too, but `.catch()` leaves the declared input type alone, so the inner schema stands on its own.\n        catch: (s, rewritten) => (rewritten ? s._zod.def.innerType : s),\n    });\n}\n/** Returns a copy of the schema with every pipe replaced by its output side, carrying over the pipe's own checks. */\nexport function output(schema) {\n    return visit(schema, {\n        pipe: (s) => outSide(s._zod.def),\n        // A prefault value is fed through the schema, which makes it input-side, so a rewritten inner type leaves it stranded.\n        prefault: (s, rewritten) => (rewritten ? s._zod.def.innerType : s),\n    });\n}\n","import * as core from \"../core/index.js\";\nimport * as schemas from \"./schemas.js\";\nexport function string(params) {\n    return core._coercedString(schemas.ZodString, params);\n}\nexport function number(params) {\n    return core._coercedNumber(schemas.ZodNumber, params);\n}\nexport function boolean(params) {\n    return core._coercedBoolean(schemas.ZodBoolean, params);\n}\nexport function bigint(params) {\n    return core._coercedBigint(schemas.ZodBigInt, params);\n}\nexport function date(params) {\n    return core._coercedDate(schemas.ZodDate, params);\n}\n",null,null,"export const ignoreOverride = Symbol(\"Let zodToJsonSchema decide on which parser to use\");\nexport const jsonDescription = (jsonSchema, def) => {\n    if (def.description) {\n        try {\n            return {\n                ...jsonSchema,\n                ...JSON.parse(def.description),\n            };\n        }\n        catch { }\n    }\n    return jsonSchema;\n};\nexport const defaultOptions = {\n    name: undefined,\n    $refStrategy: \"root\",\n    basePath: [\"#\"],\n    effectStrategy: \"input\",\n    pipeStrategy: \"all\",\n    dateStrategy: \"format:date-time\",\n    mapStrategy: \"entries\",\n    removeAdditionalStrategy: \"passthrough\",\n    allowedAdditionalProperties: true,\n    rejectedAdditionalProperties: false,\n    definitionPath: \"definitions\",\n    target: \"jsonSchema7\",\n    strictUnions: false,\n    definitions: {},\n    errorMessages: false,\n    markdownDescription: false,\n    patternStrategy: \"escape\",\n    applyRegexFlags: false,\n    emailStrategy: \"format:email\",\n    base64Strategy: \"contentEncoding:base64\",\n    nameStrategy: \"ref\",\n    openAiAnyTypeName: \"OpenAiAnyType\"\n};\nexport const getDefaultOptions = (options) => (typeof options === \"string\"\n    ? {\n        ...defaultOptions,\n        name: options,\n    }\n    : {\n        ...defaultOptions,\n        ...options,\n    });\n","import { getDefaultOptions } from \"./Options.js\";\nexport const getRefs = (options) => {\n    const _options = getDefaultOptions(options);\n    const currentPath = _options.name !== undefined\n        ? [..._options.basePath, _options.definitionPath, _options.name]\n        : _options.basePath;\n    return {\n        ..._options,\n        flags: { hasReferencedOpenAiAnyType: false },\n        currentPath: currentPath,\n        propertyPath: undefined,\n        seen: new Map(Object.entries(_options.definitions).map(([name, def]) => [\n            def._def,\n            {\n                def: def._def,\n                path: [..._options.basePath, _options.definitionPath, name],\n                // Resolution of references will be forced even though seen, so it's ok that the schema is undefined here for now.\n                jsonSchema: undefined,\n            },\n        ])),\n    };\n};\n","export function addErrorMessage(res, key, errorMessage, refs) {\n    if (!refs?.errorMessages)\n        return;\n    if (errorMessage) {\n        res.errorMessage = {\n            ...res.errorMessage,\n            [key]: errorMessage,\n        };\n    }\n}\nexport function setResponseValueAndErrors(res, key, value, errorMessage, refs) {\n    res[key] = value;\n    addErrorMessage(res, key, errorMessage, refs);\n}\n","export const getRelativePath = (pathA, pathB) => {\n    let i = 0;\n    for (; i < pathA.length && i < pathB.length; i++) {\n        if (pathA[i] !== pathB[i])\n            break;\n    }\n    return [(pathA.length - i).toString(), ...pathB.slice(i)].join(\"/\");\n};\n","import { getRelativePath } from \"../getRelativePath.js\";\nexport function parseAnyDef(refs) {\n    if (refs.target !== \"openAi\") {\n        return {};\n    }\n    const anyDefinitionPath = [\n        ...refs.basePath,\n        refs.definitionPath,\n        refs.openAiAnyTypeName,\n    ];\n    refs.flags.hasReferencedOpenAiAnyType = true;\n    return {\n        $ref: refs.$refStrategy === \"relative\"\n            ? getRelativePath(anyDefinitionPath, refs.currentPath)\n            : anyDefinitionPath.join(\"/\"),\n    };\n}\n","import { ZodFirstPartyTypeKind } from \"zod/v3\";\nimport { setResponseValueAndErrors } from \"../errorMessages.js\";\nimport { parseDef } from \"../parseDef.js\";\nexport function parseArrayDef(def, refs) {\n    const res = {\n        type: \"array\",\n    };\n    if (def.type?._def &&\n        def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) {\n        res.items = parseDef(def.type._def, {\n            ...refs,\n            currentPath: [...refs.currentPath, \"items\"],\n        });\n    }\n    if (def.minLength) {\n        setResponseValueAndErrors(res, \"minItems\", def.minLength.value, def.minLength.message, refs);\n    }\n    if (def.maxLength) {\n        setResponseValueAndErrors(res, \"maxItems\", def.maxLength.value, def.maxLength.message, refs);\n    }\n    if (def.exactLength) {\n        setResponseValueAndErrors(res, \"minItems\", def.exactLength.value, def.exactLength.message, refs);\n        setResponseValueAndErrors(res, \"maxItems\", def.exactLength.value, def.exactLength.message, refs);\n    }\n    return res;\n}\n","import { setResponseValueAndErrors } from \"../errorMessages.js\";\nexport function parseBigintDef(def, refs) {\n    const res = {\n        type: \"integer\",\n        format: \"int64\",\n    };\n    if (!def.checks)\n        return res;\n    for (const check of def.checks) {\n        switch (check.kind) {\n            case \"min\":\n                if (refs.target === \"jsonSchema7\") {\n                    if (check.inclusive) {\n                        setResponseValueAndErrors(res, \"minimum\", check.value, check.message, refs);\n                    }\n                    else {\n                        setResponseValueAndErrors(res, \"exclusiveMinimum\", check.value, check.message, refs);\n                    }\n                }\n                else {\n                    if (!check.inclusive) {\n                        res.exclusiveMinimum = true;\n                    }\n                    setResponseValueAndErrors(res, \"minimum\", check.value, check.message, refs);\n                }\n                break;\n            case \"max\":\n                if (refs.target === \"jsonSchema7\") {\n                    if (check.inclusive) {\n                        setResponseValueAndErrors(res, \"maximum\", check.value, check.message, refs);\n                    }\n                    else {\n                        setResponseValueAndErrors(res, \"exclusiveMaximum\", check.value, check.message, refs);\n                    }\n                }\n                else {\n                    if (!check.inclusive) {\n                        res.exclusiveMaximum = true;\n                    }\n                    setResponseValueAndErrors(res, \"maximum\", check.value, check.message, refs);\n                }\n                break;\n            case \"multipleOf\":\n                setResponseValueAndErrors(res, \"multipleOf\", check.value, check.message, refs);\n                break;\n        }\n    }\n    return res;\n}\n","export function parseBooleanDef() {\n    return {\n        type: \"boolean\",\n    };\n}\n","import { parseDef } from \"../parseDef.js\";\nexport function parseBrandedDef(_def, refs) {\n    return parseDef(_def.type._def, refs);\n}\n","import { parseDef } from \"../parseDef.js\";\nexport const parseCatchDef = (def, refs) => {\n    return parseDef(def.innerType._def, refs);\n};\n","import { setResponseValueAndErrors } from \"../errorMessages.js\";\nexport function parseDateDef(def, refs, overrideDateStrategy) {\n    const strategy = overrideDateStrategy ?? refs.dateStrategy;\n    if (Array.isArray(strategy)) {\n        return {\n            anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)),\n        };\n    }\n    switch (strategy) {\n        case \"string\":\n        case \"format:date-time\":\n            return {\n                type: \"string\",\n                format: \"date-time\",\n            };\n        case \"format:date\":\n            return {\n                type: \"string\",\n                format: \"date\",\n            };\n        case \"integer\":\n            return integerDateParser(def, refs);\n    }\n}\nconst integerDateParser = (def, refs) => {\n    const res = {\n        type: \"integer\",\n        format: \"unix-time\",\n    };\n    if (refs.target === \"openApi3\") {\n        return res;\n    }\n    for (const check of def.checks) {\n        switch (check.kind) {\n            case \"min\":\n                setResponseValueAndErrors(res, \"minimum\", check.value, // This is in milliseconds\n                check.message, refs);\n                break;\n            case \"max\":\n                setResponseValueAndErrors(res, \"maximum\", check.value, // This is in milliseconds\n                check.message, refs);\n                break;\n        }\n    }\n    return res;\n};\n","import { parseDef } from \"../parseDef.js\";\nexport function parseDefaultDef(_def, refs) {\n    return {\n        ...parseDef(_def.innerType._def, refs),\n        default: _def.defaultValue(),\n    };\n}\n","import { parseDef } from \"../parseDef.js\";\nimport { parseAnyDef } from \"./any.js\";\nexport function parseEffectsDef(_def, refs) {\n    return refs.effectStrategy === \"input\"\n        ? parseDef(_def.schema._def, refs)\n        : parseAnyDef(refs);\n}\n","export function parseEnumDef(def) {\n    return {\n        type: \"string\",\n        enum: Array.from(def.values),\n    };\n}\n","import { parseDef } from \"../parseDef.js\";\nconst isJsonSchema7AllOfType = (type) => {\n    if (\"type\" in type && type.type === \"string\")\n        return false;\n    return \"allOf\" in type;\n};\nexport function parseIntersectionDef(def, refs) {\n    const allOf = [\n        parseDef(def.left._def, {\n            ...refs,\n            currentPath: [...refs.currentPath, \"allOf\", \"0\"],\n        }),\n        parseDef(def.right._def, {\n            ...refs,\n            currentPath: [...refs.currentPath, \"allOf\", \"1\"],\n        }),\n    ].filter((x) => !!x);\n    let unevaluatedProperties = refs.target === \"jsonSchema2019-09\"\n        ? { unevaluatedProperties: false }\n        : undefined;\n    const mergedAllOf = [];\n    // If either of the schemas is an allOf, merge them into a single allOf\n    allOf.forEach((schema) => {\n        if (isJsonSchema7AllOfType(schema)) {\n            mergedAllOf.push(...schema.allOf);\n            if (schema.unevaluatedProperties === undefined) {\n                // If one of the schemas has no unevaluatedProperties set,\n                // the merged schema should also have no unevaluatedProperties set\n                unevaluatedProperties = undefined;\n            }\n        }\n        else {\n            let nestedSchema = schema;\n            if (\"additionalProperties\" in schema &&\n                schema.additionalProperties === false) {\n                const { additionalProperties, ...rest } = schema;\n                nestedSchema = rest;\n            }\n            else {\n                // As soon as one of the schemas has additionalProperties set not to false, we allow unevaluatedProperties\n                unevaluatedProperties = undefined;\n            }\n            mergedAllOf.push(nestedSchema);\n        }\n    });\n    return mergedAllOf.length\n        ? {\n            allOf: mergedAllOf,\n            ...unevaluatedProperties,\n        }\n        : undefined;\n}\n","export function parseLiteralDef(def, refs) {\n    const parsedType = typeof def.value;\n    if (parsedType !== \"bigint\" &&\n        parsedType !== \"number\" &&\n        parsedType !== \"boolean\" &&\n        parsedType !== \"string\") {\n        return {\n            type: Array.isArray(def.value) ? \"array\" : \"object\",\n        };\n    }\n    if (refs.target === \"openApi3\") {\n        return {\n            type: parsedType === \"bigint\" ? \"integer\" : parsedType,\n            enum: [def.value],\n        };\n    }\n    return {\n        type: parsedType === \"bigint\" ? \"integer\" : parsedType,\n        const: def.value,\n    };\n}\n","import { setResponseValueAndErrors } from \"../errorMessages.js\";\nlet emojiRegex = undefined;\n/**\n * Generated from the regular expressions found here as of 2024-05-22:\n * https://github.com/colinhacks/zod/blob/master/src/types.ts.\n *\n * Expressions with /i flag have been changed accordingly.\n */\nexport const zodPatterns = {\n    /**\n     * `c` was changed to `[cC]` to replicate /i flag\n     */\n    cuid: /^[cC][^\\s-]{8,}$/,\n    cuid2: /^[0-9a-z]+$/,\n    ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/,\n    /**\n     * `a-z` was added to replicate /i flag\n     */\n    email: /^(?!\\.)(?!.*\\.\\.)([a-zA-Z0-9_'+\\-\\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\\-]*\\.)+[a-zA-Z]{2,}$/,\n    /**\n     * Constructed a valid Unicode RegExp\n     *\n     * Lazily instantiate since this type of regex isn't supported\n     * in all envs (e.g. React Native).\n     *\n     * See:\n     * https://github.com/colinhacks/zod/issues/2433\n     * Fix in Zod:\n     * https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b\n     */\n    emoji: () => {\n        if (emojiRegex === undefined) {\n            emojiRegex = RegExp(\"^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$\", \"u\");\n        }\n        return emojiRegex;\n    },\n    /**\n     * Unused\n     */\n    uuid: /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/,\n    /**\n     * Unused\n     */\n    ipv4: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,\n    ipv4Cidr: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/(3[0-2]|[12]?[0-9])$/,\n    /**\n     * Unused\n     */\n    ipv6: /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,\n    ipv6Cidr: /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,\n    base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,\n    base64url: /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,\n    nanoid: /^[a-zA-Z0-9_-]{21}$/,\n    jwt: /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/,\n};\nexport function parseStringDef(def, refs) {\n    const res = {\n        type: \"string\",\n    };\n    if (def.checks) {\n        for (const check of def.checks) {\n            switch (check.kind) {\n                case \"min\":\n                    setResponseValueAndErrors(res, \"minLength\", typeof res.minLength === \"number\"\n                        ? Math.max(res.minLength, check.value)\n                        : check.value, check.message, refs);\n                    break;\n                case \"max\":\n                    setResponseValueAndErrors(res, \"maxLength\", typeof res.maxLength === \"number\"\n                        ? Math.min(res.maxLength, check.value)\n                        : check.value, check.message, refs);\n                    break;\n                case \"email\":\n                    switch (refs.emailStrategy) {\n                        case \"format:email\":\n                            addFormat(res, \"email\", check.message, refs);\n                            break;\n                        case \"format:idn-email\":\n                            addFormat(res, \"idn-email\", check.message, refs);\n                            break;\n                        case \"pattern:zod\":\n                            addPattern(res, zodPatterns.email, check.message, refs);\n                            break;\n                    }\n                    break;\n                case \"url\":\n                    addFormat(res, \"uri\", check.message, refs);\n                    break;\n                case \"uuid\":\n                    addFormat(res, \"uuid\", check.message, refs);\n                    break;\n                case \"regex\":\n                    addPattern(res, check.regex, check.message, refs);\n                    break;\n                case \"cuid\":\n                    addPattern(res, zodPatterns.cuid, check.message, refs);\n                    break;\n                case \"cuid2\":\n                    addPattern(res, zodPatterns.cuid2, check.message, refs);\n                    break;\n                case \"startsWith\":\n                    addPattern(res, RegExp(`^${escapeLiteralCheckValue(check.value, refs)}`), check.message, refs);\n                    break;\n                case \"endsWith\":\n                    addPattern(res, RegExp(`${escapeLiteralCheckValue(check.value, refs)}$`), check.message, refs);\n                    break;\n                case \"datetime\":\n                    addFormat(res, \"date-time\", check.message, refs);\n                    break;\n                case \"date\":\n                    addFormat(res, \"date\", check.message, refs);\n                    break;\n                case \"time\":\n                    addFormat(res, \"time\", check.message, refs);\n                    break;\n                case \"duration\":\n                    addFormat(res, \"duration\", check.message, refs);\n                    break;\n                case \"length\":\n                    setResponseValueAndErrors(res, \"minLength\", typeof res.minLength === \"number\"\n                        ? Math.max(res.minLength, check.value)\n                        : check.value, check.message, refs);\n                    setResponseValueAndErrors(res, \"maxLength\", typeof res.maxLength === \"number\"\n                        ? Math.min(res.maxLength, check.value)\n                        : check.value, check.message, refs);\n                    break;\n                case \"includes\": {\n                    addPattern(res, RegExp(escapeLiteralCheckValue(check.value, refs)), check.message, refs);\n                    break;\n                }\n                case \"ip\": {\n                    if (check.version !== \"v6\") {\n                        addFormat(res, \"ipv4\", check.message, refs);\n                    }\n                    if (check.version !== \"v4\") {\n                        addFormat(res, \"ipv6\", check.message, refs);\n                    }\n                    break;\n                }\n                case \"base64url\":\n                    addPattern(res, zodPatterns.base64url, check.message, refs);\n                    break;\n                case \"jwt\":\n                    addPattern(res, zodPatterns.jwt, check.message, refs);\n                    break;\n                case \"cidr\": {\n                    if (check.version !== \"v6\") {\n                        addPattern(res, zodPatterns.ipv4Cidr, check.message, refs);\n                    }\n                    if (check.version !== \"v4\") {\n                        addPattern(res, zodPatterns.ipv6Cidr, check.message, refs);\n                    }\n                    break;\n                }\n                case \"emoji\":\n                    addPattern(res, zodPatterns.emoji(), check.message, refs);\n                    break;\n                case \"ulid\": {\n                    addPattern(res, zodPatterns.ulid, check.message, refs);\n                    break;\n                }\n                case \"base64\": {\n                    switch (refs.base64Strategy) {\n                        case \"format:binary\": {\n                            addFormat(res, \"binary\", check.message, refs);\n                            break;\n                        }\n                        case \"contentEncoding:base64\": {\n                            setResponseValueAndErrors(res, \"contentEncoding\", \"base64\", check.message, refs);\n                            break;\n                        }\n                        case \"pattern:zod\": {\n                            addPattern(res, zodPatterns.base64, check.message, refs);\n                            break;\n                        }\n                    }\n                    break;\n                }\n                case \"nanoid\": {\n                    addPattern(res, zodPatterns.nanoid, check.message, refs);\n                }\n                case \"toLowerCase\":\n                case \"toUpperCase\":\n                case \"trim\":\n                    break;\n                default:\n                    ((_) => { })(check);\n            }\n        }\n    }\n    return res;\n}\nfunction escapeLiteralCheckValue(literal, refs) {\n    return refs.patternStrategy === \"escape\"\n        ? escapeNonAlphaNumeric(literal)\n        : literal;\n}\nconst ALPHA_NUMERIC = new Set(\"ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789\");\nfunction escapeNonAlphaNumeric(source) {\n    let result = \"\";\n    for (let i = 0; i < source.length; i++) {\n        if (!ALPHA_NUMERIC.has(source[i])) {\n            result += \"\\\\\";\n        }\n        result += source[i];\n    }\n    return result;\n}\n// Adds a \"format\" keyword to the schema. If a format exists, both formats will be joined in an allOf-node, along with subsequent ones.\nfunction addFormat(schema, value, message, refs) {\n    if (schema.format || schema.anyOf?.some((x) => x.format)) {\n        if (!schema.anyOf) {\n            schema.anyOf = [];\n        }\n        if (schema.format) {\n            schema.anyOf.push({\n                format: schema.format,\n                ...(schema.errorMessage &&\n                    refs.errorMessages && {\n                    errorMessage: { format: schema.errorMessage.format },\n                }),\n            });\n            delete schema.format;\n            if (schema.errorMessage) {\n                delete schema.errorMessage.format;\n                if (Object.keys(schema.errorMessage).length === 0) {\n                    delete schema.errorMessage;\n                }\n            }\n        }\n        schema.anyOf.push({\n            format: value,\n            ...(message &&\n                refs.errorMessages && { errorMessage: { format: message } }),\n        });\n    }\n    else {\n        setResponseValueAndErrors(schema, \"format\", value, message, refs);\n    }\n}\n// Adds a \"pattern\" keyword to the schema. If a pattern exists, both patterns will be joined in an allOf-node, along with subsequent ones.\nfunction addPattern(schema, regex, message, refs) {\n    if (schema.pattern || schema.allOf?.some((x) => x.pattern)) {\n        if (!schema.allOf) {\n            schema.allOf = [];\n        }\n        if (schema.pattern) {\n            schema.allOf.push({\n                pattern: schema.pattern,\n                ...(schema.errorMessage &&\n                    refs.errorMessages && {\n                    errorMessage: { pattern: schema.errorMessage.pattern },\n                }),\n            });\n            delete schema.pattern;\n            if (schema.errorMessage) {\n                delete schema.errorMessage.pattern;\n                if (Object.keys(schema.errorMessage).length === 0) {\n                    delete schema.errorMessage;\n                }\n            }\n        }\n        schema.allOf.push({\n            pattern: stringifyRegExpWithFlags(regex, refs),\n            ...(message &&\n                refs.errorMessages && { errorMessage: { pattern: message } }),\n        });\n    }\n    else {\n        setResponseValueAndErrors(schema, \"pattern\", stringifyRegExpWithFlags(regex, refs), message, refs);\n    }\n}\n// Mutate z.string.regex() in a best attempt to accommodate for regex flags when applyRegexFlags is true\nfunction stringifyRegExpWithFlags(regex, refs) {\n    if (!refs.applyRegexFlags || !regex.flags) {\n        return regex.source;\n    }\n    // Currently handled flags\n    const flags = {\n        i: regex.flags.includes(\"i\"),\n        m: regex.flags.includes(\"m\"),\n        s: regex.flags.includes(\"s\"), // `.` matches newlines\n    };\n    // The general principle here is to step through each character, one at a time, applying mutations as flags require. We keep track when the current character is escaped, and when it's inside a group /like [this]/ or (also) a range like /[a-z]/. The following is fairly brittle imperative code; edit at your peril!\n    const source = flags.i ? regex.source.toLowerCase() : regex.source;\n    let pattern = \"\";\n    let isEscaped = false;\n    let inCharGroup = false;\n    let inCharRange = false;\n    for (let i = 0; i < source.length; i++) {\n        if (isEscaped) {\n            pattern += source[i];\n            isEscaped = false;\n            continue;\n        }\n        if (flags.i) {\n            if (inCharGroup) {\n                if (source[i].match(/[a-z]/)) {\n                    if (inCharRange) {\n                        pattern += source[i];\n                        pattern += `${source[i - 2]}-${source[i]}`.toUpperCase();\n                        inCharRange = false;\n                    }\n                    else if (source[i + 1] === \"-\" && source[i + 2]?.match(/[a-z]/)) {\n                        pattern += source[i];\n                        inCharRange = true;\n                    }\n                    else {\n                        pattern += `${source[i]}${source[i].toUpperCase()}`;\n                    }\n                    continue;\n                }\n            }\n            else if (source[i].match(/[a-z]/)) {\n                pattern += `[${source[i]}${source[i].toUpperCase()}]`;\n                continue;\n            }\n        }\n        if (flags.m) {\n            if (source[i] === \"^\") {\n                pattern += `(^|(?<=[\\r\\n]))`;\n                continue;\n            }\n            else if (source[i] === \"$\") {\n                pattern += `($|(?=[\\r\\n]))`;\n                continue;\n            }\n        }\n        if (flags.s && source[i] === \".\") {\n            pattern += inCharGroup ? `${source[i]}\\r\\n` : `[${source[i]}\\r\\n]`;\n            continue;\n        }\n        pattern += source[i];\n        if (source[i] === \"\\\\\") {\n            isEscaped = true;\n        }\n        else if (inCharGroup && source[i] === \"]\") {\n            inCharGroup = false;\n        }\n        else if (!inCharGroup && source[i] === \"[\") {\n            inCharGroup = true;\n        }\n    }\n    try {\n        new RegExp(pattern);\n    }\n    catch {\n        console.warn(`Could not convert regex pattern at ${refs.currentPath.join(\"/\")} to a flag-independent form! Falling back to the flag-ignorant source`);\n        return regex.source;\n    }\n    return pattern;\n}\n","import { ZodFirstPartyTypeKind, } from \"zod/v3\";\nimport { parseDef } from \"../parseDef.js\";\nimport { parseStringDef } from \"./string.js\";\nimport { parseBrandedDef } from \"./branded.js\";\nimport { parseAnyDef } from \"./any.js\";\nexport function parseRecordDef(def, refs) {\n    if (refs.target === \"openAi\") {\n        console.warn(\"Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.\");\n    }\n    if (refs.target === \"openApi3\" &&\n        def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) {\n        return {\n            type: \"object\",\n            required: def.keyType._def.values,\n            properties: def.keyType._def.values.reduce((acc, key) => ({\n                ...acc,\n                [key]: parseDef(def.valueType._def, {\n                    ...refs,\n                    currentPath: [...refs.currentPath, \"properties\", key],\n                }) ?? parseAnyDef(refs),\n            }), {}),\n            additionalProperties: refs.rejectedAdditionalProperties,\n        };\n    }\n    const schema = {\n        type: \"object\",\n        additionalProperties: parseDef(def.valueType._def, {\n            ...refs,\n            currentPath: [...refs.currentPath, \"additionalProperties\"],\n        }) ?? refs.allowedAdditionalProperties,\n    };\n    if (refs.target === \"openApi3\") {\n        return schema;\n    }\n    if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodString &&\n        def.keyType._def.checks?.length) {\n        const { type, ...keyType } = parseStringDef(def.keyType._def, refs);\n        return {\n            ...schema,\n            propertyNames: keyType,\n        };\n    }\n    else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) {\n        return {\n            ...schema,\n            propertyNames: {\n                enum: def.keyType._def.values,\n            },\n        };\n    }\n    else if (def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodBranded &&\n        def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind.ZodString &&\n        def.keyType._def.type._def.checks?.length) {\n        const { type, ...keyType } = parseBrandedDef(def.keyType._def, refs);\n        return {\n            ...schema,\n            propertyNames: keyType,\n        };\n    }\n    return schema;\n}\n","import { parseDef } from \"../parseDef.js\";\nimport { parseRecordDef } from \"./record.js\";\nimport { parseAnyDef } from \"./any.js\";\nexport function parseMapDef(def, refs) {\n    if (refs.mapStrategy === \"record\") {\n        return parseRecordDef(def, refs);\n    }\n    const keys = parseDef(def.keyType._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"items\", \"items\", \"0\"],\n    }) || parseAnyDef(refs);\n    const values = parseDef(def.valueType._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"items\", \"items\", \"1\"],\n    }) || parseAnyDef(refs);\n    return {\n        type: \"array\",\n        maxItems: 125,\n        items: {\n            type: \"array\",\n            items: [keys, values],\n            minItems: 2,\n            maxItems: 2,\n        },\n    };\n}\n","export function parseNativeEnumDef(def) {\n    const object = def.values;\n    const actualKeys = Object.keys(def.values).filter((key) => {\n        return typeof object[object[key]] !== \"number\";\n    });\n    const actualValues = actualKeys.map((key) => object[key]);\n    const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));\n    return {\n        type: parsedTypes.length === 1\n            ? parsedTypes[0] === \"string\"\n                ? \"string\"\n                : \"number\"\n            : [\"string\", \"number\"],\n        enum: actualValues,\n    };\n}\n","import { parseAnyDef } from \"./any.js\";\nexport function parseNeverDef(refs) {\n    return refs.target === \"openAi\"\n        ? undefined\n        : {\n            not: parseAnyDef({\n                ...refs,\n                currentPath: [...refs.currentPath, \"not\"],\n            }),\n        };\n}\n","export function parseNullDef(refs) {\n    return refs.target === \"openApi3\"\n        ? {\n            enum: [\"null\"],\n            nullable: true,\n        }\n        : {\n            type: \"null\",\n        };\n}\n","import { parseDef } from \"../parseDef.js\";\nexport const primitiveMappings = {\n    ZodString: \"string\",\n    ZodNumber: \"number\",\n    ZodBigInt: \"integer\",\n    ZodBoolean: \"boolean\",\n    ZodNull: \"null\",\n};\nexport function parseUnionDef(def, refs) {\n    if (refs.target === \"openApi3\")\n        return asAnyOf(def, refs);\n    const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;\n    // This blocks tries to look ahead a bit to produce nicer looking schemas with type array instead of anyOf.\n    if (options.every((x) => x._def.typeName in primitiveMappings &&\n        (!x._def.checks || !x._def.checks.length))) {\n        // all types in union are primitive and lack checks, so might as well squash into {type: [...]}\n        const types = options.reduce((types, x) => {\n            const type = primitiveMappings[x._def.typeName]; //Can be safely casted due to row 43\n            return type && !types.includes(type) ? [...types, type] : types;\n        }, []);\n        return {\n            type: types.length > 1 ? types : types[0],\n        };\n    }\n    else if (options.every((x) => x._def.typeName === \"ZodLiteral\" && !x.description)) {\n        // all options literals\n        const types = options.reduce((acc, x) => {\n            const type = typeof x._def.value;\n            switch (type) {\n                case \"string\":\n                case \"number\":\n                case \"boolean\":\n                    return [...acc, type];\n                case \"bigint\":\n                    return [...acc, \"integer\"];\n                case \"object\":\n                    if (x._def.value === null)\n                        return [...acc, \"null\"];\n                case \"symbol\":\n                case \"undefined\":\n                case \"function\":\n                default:\n                    return acc;\n            }\n        }, []);\n        if (types.length === options.length) {\n            // all the literals are primitive, as far as null can be considered primitive\n            const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);\n            return {\n                type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],\n                enum: options.reduce((acc, x) => {\n                    return acc.includes(x._def.value) ? acc : [...acc, x._def.value];\n                }, []),\n            };\n        }\n    }\n    else if (options.every((x) => x._def.typeName === \"ZodEnum\")) {\n        return {\n            type: \"string\",\n            enum: options.reduce((acc, x) => [\n                ...acc,\n                ...x._def.values.filter((x) => !acc.includes(x)),\n            ], []),\n        };\n    }\n    return asAnyOf(def, refs);\n}\nconst asAnyOf = (def, refs) => {\n    const anyOf = (def.options instanceof Map\n        ? Array.from(def.options.values())\n        : def.options)\n        .map((x, i) => parseDef(x._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"anyOf\", `${i}`],\n    }))\n        .filter((x) => !!x &&\n        (!refs.strictUnions ||\n            (typeof x === \"object\" && Object.keys(x).length > 0)));\n    return anyOf.length ? { anyOf } : undefined;\n};\n","import { parseDef } from \"../parseDef.js\";\nimport { primitiveMappings } from \"./union.js\";\nexport function parseNullableDef(def, refs) {\n    if ([\"ZodString\", \"ZodNumber\", \"ZodBigInt\", \"ZodBoolean\", \"ZodNull\"].includes(def.innerType._def.typeName) &&\n        (!def.innerType._def.checks || !def.innerType._def.checks.length)) {\n        if (refs.target === \"openApi3\") {\n            return {\n                type: primitiveMappings[def.innerType._def.typeName],\n                nullable: true,\n            };\n        }\n        return {\n            type: [\n                primitiveMappings[def.innerType._def.typeName],\n                \"null\",\n            ],\n        };\n    }\n    if (refs.target === \"openApi3\") {\n        const base = parseDef(def.innerType._def, {\n            ...refs,\n            currentPath: [...refs.currentPath],\n        });\n        if (base && \"$ref\" in base)\n            return { allOf: [base], nullable: true };\n        return base && { ...base, nullable: true };\n    }\n    const base = parseDef(def.innerType._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"anyOf\", \"0\"],\n    });\n    return base && { anyOf: [base, { type: \"null\" }] };\n}\n","import { addErrorMessage, setResponseValueAndErrors, } from \"../errorMessages.js\";\nexport function parseNumberDef(def, refs) {\n    const res = {\n        type: \"number\",\n    };\n    if (!def.checks)\n        return res;\n    for (const check of def.checks) {\n        switch (check.kind) {\n            case \"int\":\n                res.type = \"integer\";\n                addErrorMessage(res, \"type\", check.message, refs);\n                break;\n            case \"min\":\n                if (refs.target === \"jsonSchema7\") {\n                    if (check.inclusive) {\n                        setResponseValueAndErrors(res, \"minimum\", check.value, check.message, refs);\n                    }\n                    else {\n                        setResponseValueAndErrors(res, \"exclusiveMinimum\", check.value, check.message, refs);\n                    }\n                }\n                else {\n                    if (!check.inclusive) {\n                        res.exclusiveMinimum = true;\n                    }\n                    setResponseValueAndErrors(res, \"minimum\", check.value, check.message, refs);\n                }\n                break;\n            case \"max\":\n                if (refs.target === \"jsonSchema7\") {\n                    if (check.inclusive) {\n                        setResponseValueAndErrors(res, \"maximum\", check.value, check.message, refs);\n                    }\n                    else {\n                        setResponseValueAndErrors(res, \"exclusiveMaximum\", check.value, check.message, refs);\n                    }\n                }\n                else {\n                    if (!check.inclusive) {\n                        res.exclusiveMaximum = true;\n                    }\n                    setResponseValueAndErrors(res, \"maximum\", check.value, check.message, refs);\n                }\n                break;\n            case \"multipleOf\":\n                setResponseValueAndErrors(res, \"multipleOf\", check.value, check.message, refs);\n                break;\n        }\n    }\n    return res;\n}\n","import { parseDef } from \"../parseDef.js\";\nexport function parseObjectDef(def, refs) {\n    const forceOptionalIntoNullable = refs.target === \"openAi\";\n    const result = {\n        type: \"object\",\n        properties: {},\n    };\n    const required = [];\n    const shape = def.shape();\n    for (const propName in shape) {\n        let propDef = shape[propName];\n        if (propDef === undefined || propDef._def === undefined) {\n            continue;\n        }\n        let propOptional = safeIsOptional(propDef);\n        if (propOptional && forceOptionalIntoNullable) {\n            if (propDef._def.typeName === \"ZodOptional\") {\n                propDef = propDef._def.innerType;\n            }\n            if (!propDef.isNullable()) {\n                propDef = propDef.nullable();\n            }\n            propOptional = false;\n        }\n        const parsedDef = parseDef(propDef._def, {\n            ...refs,\n            currentPath: [...refs.currentPath, \"properties\", propName],\n            propertyPath: [...refs.currentPath, \"properties\", propName],\n        });\n        if (parsedDef === undefined) {\n            continue;\n        }\n        result.properties[propName] = parsedDef;\n        if (!propOptional) {\n            required.push(propName);\n        }\n    }\n    if (required.length) {\n        result.required = required;\n    }\n    const additionalProperties = decideAdditionalProperties(def, refs);\n    if (additionalProperties !== undefined) {\n        result.additionalProperties = additionalProperties;\n    }\n    return result;\n}\nfunction decideAdditionalProperties(def, refs) {\n    if (def.catchall._def.typeName !== \"ZodNever\") {\n        return parseDef(def.catchall._def, {\n            ...refs,\n            currentPath: [...refs.currentPath, \"additionalProperties\"],\n        });\n    }\n    switch (def.unknownKeys) {\n        case \"passthrough\":\n            return refs.allowedAdditionalProperties;\n        case \"strict\":\n            return refs.rejectedAdditionalProperties;\n        case \"strip\":\n            return refs.removeAdditionalStrategy === \"strict\"\n                ? refs.allowedAdditionalProperties\n                : refs.rejectedAdditionalProperties;\n    }\n}\nfunction safeIsOptional(schema) {\n    try {\n        return schema.isOptional();\n    }\n    catch {\n        return true;\n    }\n}\n","import { parseDef } from \"../parseDef.js\";\nimport { parseAnyDef } from \"./any.js\";\nexport const parseOptionalDef = (def, refs) => {\n    if (refs.currentPath.toString() === refs.propertyPath?.toString()) {\n        return parseDef(def.innerType._def, refs);\n    }\n    const innerSchema = parseDef(def.innerType._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"anyOf\", \"1\"],\n    });\n    return innerSchema\n        ? {\n            anyOf: [\n                {\n                    not: parseAnyDef(refs),\n                },\n                innerSchema,\n            ],\n        }\n        : parseAnyDef(refs);\n};\n","import { parseDef } from \"../parseDef.js\";\nexport const parsePipelineDef = (def, refs) => {\n    if (refs.pipeStrategy === \"input\") {\n        return parseDef(def.in._def, refs);\n    }\n    else if (refs.pipeStrategy === \"output\") {\n        return parseDef(def.out._def, refs);\n    }\n    const a = parseDef(def.in._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"allOf\", \"0\"],\n    });\n    const b = parseDef(def.out._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"allOf\", a ? \"1\" : \"0\"],\n    });\n    return {\n        allOf: [a, b].filter((x) => x !== undefined),\n    };\n};\n","import { parseDef } from \"../parseDef.js\";\nexport function parsePromiseDef(def, refs) {\n    return parseDef(def.type._def, refs);\n}\n","import { setResponseValueAndErrors } from \"../errorMessages.js\";\nimport { parseDef } from \"../parseDef.js\";\nexport function parseSetDef(def, refs) {\n    const items = parseDef(def.valueType._def, {\n        ...refs,\n        currentPath: [...refs.currentPath, \"items\"],\n    });\n    const schema = {\n        type: \"array\",\n        uniqueItems: true,\n        items,\n    };\n    if (def.minSize) {\n        setResponseValueAndErrors(schema, \"minItems\", def.minSize.value, def.minSize.message, refs);\n    }\n    if (def.maxSize) {\n        setResponseValueAndErrors(schema, \"maxItems\", def.maxSize.value, def.maxSize.message, refs);\n    }\n    return schema;\n}\n","import { parseDef } from \"../parseDef.js\";\nexport function parseTupleDef(def, refs) {\n    if (def.rest) {\n        return {\n            type: \"array\",\n            minItems: def.items.length,\n            items: def.items\n                .map((x, i) => parseDef(x._def, {\n                ...refs,\n                currentPath: [...refs.currentPath, \"items\", `${i}`],\n            }))\n                .reduce((acc, x) => (x === undefined ? acc : [...acc, x]), []),\n            additionalItems: parseDef(def.rest._def, {\n                ...refs,\n                currentPath: [...refs.currentPath, \"additionalItems\"],\n            }),\n        };\n    }\n    else {\n        return {\n            type: \"array\",\n            minItems: def.items.length,\n            maxItems: def.items.length,\n            items: def.items\n                .map((x, i) => parseDef(x._def, {\n                ...refs,\n                currentPath: [...refs.currentPath, \"items\", `${i}`],\n            }))\n                .reduce((acc, x) => (x === undefined ? acc : [...acc, x]), []),\n        };\n    }\n}\n","import { parseAnyDef } from \"./any.js\";\nexport function parseUndefinedDef(refs) {\n    return {\n        not: parseAnyDef(refs),\n    };\n}\n","import { parseAnyDef } from \"./any.js\";\nexport function parseUnknownDef(refs) {\n    return parseAnyDef(refs);\n}\n","import { parseDef } from \"../parseDef.js\";\nexport const parseReadonlyDef = (def, refs) => {\n    return parseDef(def.innerType._def, refs);\n};\n","import { ZodFirstPartyTypeKind } from \"zod/v3\";\nimport { parseAnyDef } from \"./parsers/any.js\";\nimport { parseArrayDef } from \"./parsers/array.js\";\nimport { parseBigintDef } from \"./parsers/bigint.js\";\nimport { parseBooleanDef } from \"./parsers/boolean.js\";\nimport { parseBrandedDef } from \"./parsers/branded.js\";\nimport { parseCatchDef } from \"./parsers/catch.js\";\nimport { parseDateDef } from \"./parsers/date.js\";\nimport { parseDefaultDef } from \"./parsers/default.js\";\nimport { parseEffectsDef } from \"./parsers/effects.js\";\nimport { parseEnumDef } from \"./parsers/enum.js\";\nimport { parseIntersectionDef } from \"./parsers/intersection.js\";\nimport { parseLiteralDef } from \"./parsers/literal.js\";\nimport { parseMapDef } from \"./parsers/map.js\";\nimport { parseNativeEnumDef } from \"./parsers/nativeEnum.js\";\nimport { parseNeverDef } from \"./parsers/never.js\";\nimport { parseNullDef } from \"./parsers/null.js\";\nimport { parseNullableDef } from \"./parsers/nullable.js\";\nimport { parseNumberDef } from \"./parsers/number.js\";\nimport { parseObjectDef } from \"./parsers/object.js\";\nimport { parseOptionalDef } from \"./parsers/optional.js\";\nimport { parsePipelineDef } from \"./parsers/pipeline.js\";\nimport { parsePromiseDef } from \"./parsers/promise.js\";\nimport { parseRecordDef } from \"./parsers/record.js\";\nimport { parseSetDef } from \"./parsers/set.js\";\nimport { parseStringDef } from \"./parsers/string.js\";\nimport { parseTupleDef } from \"./parsers/tuple.js\";\nimport { parseUndefinedDef } from \"./parsers/undefined.js\";\nimport { parseUnionDef } from \"./parsers/union.js\";\nimport { parseUnknownDef } from \"./parsers/unknown.js\";\nimport { parseReadonlyDef } from \"./parsers/readonly.js\";\nexport const selectParser = (def, typeName, refs) => {\n    switch (typeName) {\n        case ZodFirstPartyTypeKind.ZodString:\n            return parseStringDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodNumber:\n            return parseNumberDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodObject:\n            return parseObjectDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodBigInt:\n            return parseBigintDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodBoolean:\n            return parseBooleanDef();\n        case ZodFirstPartyTypeKind.ZodDate:\n            return parseDateDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodUndefined:\n            return parseUndefinedDef(refs);\n        case ZodFirstPartyTypeKind.ZodNull:\n            return parseNullDef(refs);\n        case ZodFirstPartyTypeKind.ZodArray:\n            return parseArrayDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodUnion:\n        case ZodFirstPartyTypeKind.ZodDiscriminatedUnion:\n            return parseUnionDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodIntersection:\n            return parseIntersectionDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodTuple:\n            return parseTupleDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodRecord:\n            return parseRecordDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodLiteral:\n            return parseLiteralDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodEnum:\n            return parseEnumDef(def);\n        case ZodFirstPartyTypeKind.ZodNativeEnum:\n            return parseNativeEnumDef(def);\n        case ZodFirstPartyTypeKind.ZodNullable:\n            return parseNullableDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodOptional:\n            return parseOptionalDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodMap:\n            return parseMapDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodSet:\n            return parseSetDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodLazy:\n            return () => def.getter()._def;\n        case ZodFirstPartyTypeKind.ZodPromise:\n            return parsePromiseDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodNaN:\n        case ZodFirstPartyTypeKind.ZodNever:\n            return parseNeverDef(refs);\n        case ZodFirstPartyTypeKind.ZodEffects:\n            return parseEffectsDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodAny:\n            return parseAnyDef(refs);\n        case ZodFirstPartyTypeKind.ZodUnknown:\n            return parseUnknownDef(refs);\n        case ZodFirstPartyTypeKind.ZodDefault:\n            return parseDefaultDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodBranded:\n            return parseBrandedDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodReadonly:\n            return parseReadonlyDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodCatch:\n            return parseCatchDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodPipeline:\n            return parsePipelineDef(def, refs);\n        case ZodFirstPartyTypeKind.ZodFunction:\n        case ZodFirstPartyTypeKind.ZodVoid:\n        case ZodFirstPartyTypeKind.ZodSymbol:\n            return undefined;\n        default:\n            return ((_) => undefined)(typeName);\n    }\n};\n","import { ignoreOverride } from \"./Options.js\";\nimport { selectParser } from \"./selectParser.js\";\nimport { getRelativePath } from \"./getRelativePath.js\";\nimport { parseAnyDef } from \"./parsers/any.js\";\nexport function parseDef(def, refs, forceResolution = false) {\n    const seenItem = refs.seen.get(def);\n    if (refs.override) {\n        const overrideResult = refs.override?.(def, refs, seenItem, forceResolution);\n        if (overrideResult !== ignoreOverride) {\n            return overrideResult;\n        }\n    }\n    if (seenItem && !forceResolution) {\n        const seenSchema = get$ref(seenItem, refs);\n        if (seenSchema !== undefined) {\n            return seenSchema;\n        }\n    }\n    const newItem = { def, path: refs.currentPath, jsonSchema: undefined };\n    refs.seen.set(def, newItem);\n    const jsonSchemaOrGetter = selectParser(def, def.typeName, refs);\n    // If the return was a function, then the inner definition needs to be extracted before a call to parseDef (recursive)\n    const jsonSchema = typeof jsonSchemaOrGetter === \"function\"\n        ? parseDef(jsonSchemaOrGetter(), refs)\n        : jsonSchemaOrGetter;\n    if (jsonSchema) {\n        addMeta(def, refs, jsonSchema);\n    }\n    if (refs.postProcess) {\n        const postProcessResult = refs.postProcess(jsonSchema, def, refs);\n        newItem.jsonSchema = jsonSchema;\n        return postProcessResult;\n    }\n    newItem.jsonSchema = jsonSchema;\n    return jsonSchema;\n}\nconst get$ref = (item, refs) => {\n    switch (refs.$refStrategy) {\n        case \"root\":\n            return { $ref: item.path.join(\"/\") };\n        case \"relative\":\n            return { $ref: getRelativePath(refs.currentPath, item.path) };\n        case \"none\":\n        case \"seen\": {\n            if (item.path.length < refs.currentPath.length &&\n                item.path.every((value, index) => refs.currentPath[index] === value)) {\n                console.warn(`Recursive reference detected at ${refs.currentPath.join(\"/\")}! Defaulting to any`);\n                return parseAnyDef(refs);\n            }\n            return refs.$refStrategy === \"seen\" ? parseAnyDef(refs) : undefined;\n        }\n    }\n};\nconst addMeta = (def, refs, jsonSchema) => {\n    if (def.description) {\n        jsonSchema.description = def.description;\n        if (refs.markdownDescription) {\n            jsonSchema.markdownDescription = def.description;\n        }\n    }\n    return jsonSchema;\n};\n","import { parseDef } from \"./parseDef.js\";\nimport { getRefs } from \"./Refs.js\";\nimport { parseAnyDef } from \"./parsers/any.js\";\nconst zodToJsonSchema = (schema, options) => {\n    const refs = getRefs(options);\n    let definitions = typeof options === \"object\" && options.definitions\n        ? Object.entries(options.definitions).reduce((acc, [name, schema]) => ({\n            ...acc,\n            [name]: parseDef(schema._def, {\n                ...refs,\n                currentPath: [...refs.basePath, refs.definitionPath, name],\n            }, true) ?? parseAnyDef(refs),\n        }), {})\n        : undefined;\n    const name = typeof options === \"string\"\n        ? options\n        : options?.nameStrategy === \"title\"\n            ? undefined\n            : options?.name;\n    const main = parseDef(schema._def, name === undefined\n        ? refs\n        : {\n            ...refs,\n            currentPath: [...refs.basePath, refs.definitionPath, name],\n        }, false) ?? parseAnyDef(refs);\n    const title = typeof options === \"object\" &&\n        options.name !== undefined &&\n        options.nameStrategy === \"title\"\n        ? options.name\n        : undefined;\n    if (title !== undefined) {\n        main.title = title;\n    }\n    if (refs.flags.hasReferencedOpenAiAnyType) {\n        if (!definitions) {\n            definitions = {};\n        }\n        if (!definitions[refs.openAiAnyTypeName]) {\n            definitions[refs.openAiAnyTypeName] = {\n                // Skipping \"object\" as no properties can be defined and additionalProperties must be \"false\"\n                type: [\"string\", \"number\", \"integer\", \"boolean\", \"array\", \"null\"],\n                items: {\n                    $ref: refs.$refStrategy === \"relative\"\n                        ? \"1\"\n                        : [\n                            ...refs.basePath,\n                            refs.definitionPath,\n                            refs.openAiAnyTypeName,\n                        ].join(\"/\"),\n                },\n            };\n        }\n    }\n    const combined = name === undefined\n        ? definitions\n            ? {\n                ...main,\n                [refs.definitionPath]: definitions,\n            }\n            : main\n        : {\n            $ref: [\n                ...(refs.$refStrategy === \"relative\" ? [] : refs.basePath),\n                refs.definitionPath,\n                name,\n            ].join(\"/\"),\n            [refs.definitionPath]: {\n                ...definitions,\n                [name]: main,\n            },\n        };\n    if (refs.target === \"jsonSchema7\") {\n        combined.$schema = \"http://json-schema.org/draft-07/schema#\";\n    }\n    else if (refs.target === \"jsonSchema2019-09\" || refs.target === \"openAi\") {\n        combined.$schema = \"https://json-schema.org/draft/2019-09/schema#\";\n    }\n    if (refs.target === \"openAi\" &&\n        (\"anyOf\" in combined ||\n            \"oneOf\" in combined ||\n            \"allOf\" in combined ||\n            (\"type\" in combined && Array.isArray(combined.type)))) {\n        console.warn(\"Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.\");\n    }\n    return combined;\n};\nexport { zodToJsonSchema };\n",null,null,null,null,null,null,null,null,null,null,null,null,"// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * OS-keystore storage for the MCPB's secrets — passwords, TOTP secrets, passkeys.\n *\n * All three are credentials to a medical record, and a passkey is the sharpest\n * of them: a raw ECDSA P-256 private key that logs in without a password and\n * without 2FA. In plaintext files under the home directory they ride along into\n * Time Machine snapshots, cloud-synced home directories and any backup tarball,\n * and macOS grants no TCC protection to `~/.openrecord-mcpb`. Handing them to\n * the OS keystore encrypts them at rest and scopes them to the logged-in user.\n *\n * **What this does not buy.** On every platform the keystore is unlocked\n * whenever the user is logged in, and the item is readable by anything running\n * as that user. This is protection for data at rest and against other users on\n * the box — not against local code running as you.\n *\n * `@napi-rs/keyring` is the binding (the maintained successor to keytar), so\n * each platform goes through its real API — Keychain Services, Windows\n * Credential Manager, or the Secret Service — rather than a CLI. That matters\n * beyond tidiness: shelling out to `security(1)` silently truncates any secret\n * over 128 bytes at its stdin prompt, and pops a modal offering to reset the\n * user's keychain search list when no keychain resolves. Neither failure mode\n * exists here.\n *\n * **The file is still the fallback.** The native module may not load (an\n * unsupported platform, a stripped install), and the keystore may be unusable\n * (a locked keychain, a headless Linux box with no Secret Service). Neither may\n * cost the user their saved login, so the secret lands in the 0600 file\n * instead — exactly where it lived before this module existed.\n */\n\n/** The keychain service / credential target all our items are filed under. */\nconst SERVICE = 'openrecord-mcpb';\n\nexport type BackendName =\n  | 'keychain'\n  | 'credential-manager'\n  | 'secret-service'\n  | 'keyring'\n  | 'file';\n\n/**\n * How to name each backend to a patient being asked whether to store a passkey\n * there. It lives next to `BackendName` rather than at the call site so the\n * record stays exhaustive: adding a sixth backend without a sentence is a type\n * error, not a caller that quietly falls through to something vague about where\n * a P-256 private key to a medical record ended up.\n */\nexport const BACKEND_DESCRIPTION: Record<BackendName, string> = {\n  keychain: 'the macOS Keychain on this machine',\n  'credential-manager': 'Windows Credential Manager on this machine',\n  'secret-service': 'the system keyring (Secret Service) on this machine',\n  keyring: 'the OS credential store on this machine',\n  file: 'a private (0600) file under ~/.openrecord-mcpb on this machine — the OS keystore is not available here',\n};\n\n/**\n * The plaintext file a secret used to live in, supplied by the caller so this\n * module never learns any caller's file layout. Reading it is also how\n * migration works: the first keystore read that misses looks here.\n */\nexport interface FileSlot {\n  read(): string | undefined;\n  write(secret: string): void;\n  clear(): void;\n}\n\n/** The slice of `@napi-rs/keyring` we use — all synchronous. */\ninterface KeyringEntry {\n  setPassword(password: string): void;\n  getPassword(): string | null;\n  deleteCredential(): boolean;\n}\ninterface KeyringModule {\n  Entry: new (service: string, account: string) => KeyringEntry;\n}\n\n/** What the platform's credential store is actually called, for diagnostics. */\nconst DISPLAY_NAME: Record<string, BackendName> = {\n  darwin: 'keychain',\n  win32: 'credential-manager',\n  linux: 'secret-service',\n};\n\n// ── Loading the native module ───────────────────────────────────────────────\n\n/**\n * Loaded lazily and defensively. This is the one dependency in the MCPB that is\n * not pure JS, so it is also the one that can fail to load — a platform with no\n * prebuilt binary, or a package that got stripped on the way into the bundle.\n * A health-records server must not fail to start over where it files a secret,\n * so a load failure degrades to the file rather than throwing.\n *\n * `require` rather than a static import: the module is external to the tsup\n * bundle and resolves at runtime, and a static import would make a load failure\n * unrecoverable — the server would not start at all.\n */\nfunction loadKeyring(): KeyringModule | null {\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-require-imports\n    return require('@napi-rs/keyring') as KeyringModule;\n  } catch {\n    return null;\n  }\n}\n\n/**\n * `OPENRECORD_SECRET_BACKEND`:\n *   auto (default) — use the OS keystore, fall back to the file on any failure\n *   os | keychain  — use the OS keystore and fail loudly rather than write plaintext\n *   file           — plaintext file only, the pre-keystore behaviour\n */\ntype Mode = 'auto' | 'os' | 'file';\n\nfunction mode(): Mode {\n  const raw = (process.env.OPENRECORD_SECRET_BACKEND ?? '').trim().toLowerCase();\n  if (raw === 'file') return 'file';\n  if (raw === 'os' || raw === 'keychain') return 'os';\n  if (raw === 'auto') return 'auto';\n  // Unset. Under a test runner that means the file: otherwise every suite\n  // touching the store would write items into the developer's own login\n  // keychain, which is not something a suite may do — and on CI it would fail\n  // outright. Setting the variable explicitly still opts back in, so the\n  // keystore stays exercisable.\n  return process.env.NODE_ENV === 'test' ? 'file' : 'auto';\n}\n\n/** undefined = not yet probed, null = deliberately none (file only). */\nlet cached: KeyringModule | null | undefined;\n\nfunction keyring(): KeyringModule | null {\n  if (cached !== undefined) return cached;\n  const m = mode();\n  if (m === 'file') {\n    cached = null;\n    return cached;\n  }\n  cached = loadKeyring();\n  if (!cached) {\n    if (m === 'os') {\n      throw new Error('@napi-rs/keyring could not be loaded and no OS keystore is available');\n    }\n    console.error(\n      '[openrecord] @napi-rs/keyring could not be loaded; ' +\n        'storing passkeys in ~/.openrecord-mcpb instead',\n    );\n  }\n  return cached;\n}\n\n/**\n * Take the keystore out of play for the rest of the process. Called after an\n * operation fails in `auto` mode: a locked keychain or an absent Secret Service\n * will still be locked or absent on the next call, and retrying it on every\n * passkey read just pays the same error twice.\n */\nfunction demote(op: string, err: unknown): void {\n  cached = null;\n  console.error(\n    `[openrecord] OS keystore unavailable (${op}: ${(err as Error).message}); ` +\n      'falling back to file storage under ~/.openrecord-mcpb',\n  );\n}\n\n/** Which backend secrets are actually going to right now, for diagnostics. */\nexport function activeBackend(): BackendName {\n  if (!keyring()) return 'file';\n  return DISPLAY_NAME[process.platform] ?? 'keyring';\n}\n\nfunction entryFor(key: string, mod: KeyringModule): KeyringEntry {\n  return new mod.Entry(SERVICE, key);\n}\n\n// ── Public API ──────────────────────────────────────────────────────────────\n\n/**\n * Read a secret, preferring the keystore and migrating on the way.\n *\n * A hit in the plaintext file when the keystore has nothing is an install that\n * predates this module: the secret is promoted into the keystore and the\n * plaintext copy deleted, so a user upgrades without re-registering a passkey\n * and without leaving the old copy behind.\n */\nexport function readSecret(key: string, slot: FileSlot): string | undefined {\n  const mod = keyring();\n  if (mod) {\n    try {\n      const found = entryFor(key, mod).getPassword();\n      if (found !== null) return found;\n    } catch (err) {\n      if (mode() === 'os') throw err;\n      // @napi-rs/keyring 2 throws where 1 returned null: a locked keychain, or\n      // access to this one item denied. That is not a broken keystore — the\n      // other accounts' items may still be readable — so this read falls back\n      // to the file without demoting the backend for the whole process.\n      console.error(`[openrecord] could not read a secret from the OS keystore (${(err as Error).message})`);\n    }\n  }\n\n  const fromFile = slot.read();\n  if (fromFile === undefined) return undefined;\n\n  const target = keyring();\n  if (target) {\n    try {\n      entryFor(key, target).setPassword(fromFile);\n      slot.clear();\n    } catch (err) {\n      // A failed promotion still returns the secret: it must not look like a\n      // missing passkey and send the user back through password + 2FA.\n      if (mode() === 'os') throw err;\n      demote('migrate', err);\n    }\n  }\n  return fromFile;\n}\n\n/**\n * Write a secret to the keystore, or to the file if there isn't one. A\n * successful keystore write clears any plaintext copy, so the two can never\n * disagree about which one is current.\n */\nexport function writeSecret(key: string, secret: string, slot: FileSlot): void {\n  const mod = keyring();\n  if (mod) {\n    try {\n      entryFor(key, mod).setPassword(secret);\n      slot.clear();\n      return;\n    } catch (err) {\n      if (mode() === 'os') throw err;\n      demote('write', err);\n    }\n  }\n  slot.write(secret);\n}\n\n/** Clear both copies — a stale plaintext file would resurrect a deleted secret. */\nexport function clearSecret(key: string, slot: FileSlot): void {\n  const mod = keyring();\n  if (mod) {\n    try {\n      entryFor(key, mod).deleteCredential();\n    } catch (err) {\n      // Deleting something that was never there is not a failure worth\n      // reporting, but a locked keystore is.\n      if (mode() === 'os') throw err;\n      demote('clear', err);\n    }\n  }\n  slot.clear();\n}\n\n// ── Diagnostics / tests ─────────────────────────────────────────────────────\n\nexport const _internals = {\n  SERVICE,\n  /** Forget the loaded module, so a test can change platform or env. */\n  resetCache(): void {\n    cached = undefined;\n  },\n  /** True when the native binding is present — asserted by the packaging test. */\n  keyringLoads(): boolean {\n    return loadKeyring() !== null;\n  },\n  /** Swap in a stub module, so backend behaviour is testable without a keystore. */\n  setKeyringForTests(mod: KeyringModule | null): void {\n    cached = mod;\n  },\n};\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * In-memory store for in-flight login attempts that are waiting on a 2FA\n * code from the user. `setup_account`, or a data tool that had to sign in,\n * produces a `pending_id` when MyChart sends a 2FA code; the user gives\n * Claude the code in chat; Claude then calls `complete_2fa(pending_id, code)`\n * to finish.\n *\n * Entries expire after 10 minutes to keep the map bounded.\n */\n\nimport { randomUUID } from 'crypto';\nimport type { MyChartRequest } from '../../../scrapers/myChart/core/myChartRequest';\nimport type { TwoFaDeliveryInfo } from '../../../scrapers/myChart/auth/login';\nimport { normalizeHostname } from './credential-store';\n\ninterface PendingLogin {\n  hostname: string;\n  username: string;\n  password: string;\n  mychartRequest: MyChartRequest;\n  delivery?: TwoFaDeliveryInfo | undefined;\n  expiresAt: number;\n}\n\nconst pending = new Map<string, PendingLogin>();\n\nconst TTL_MS = 10 * 60_000;\n\nfunction gc(): void {\n  const now = Date.now();\n  for (const [id, p] of pending) {\n    if (p.expiresAt < now) pending.delete(id);\n  }\n}\n\nexport function addPending(args: Omit<PendingLogin, 'expiresAt'>): string {\n  gc();\n  const id = randomUUID();\n  pending.set(id, { ...args, hostname: normalizeHostname(args.hostname), expiresAt: Date.now() + TTL_MS });\n  return id;\n}\n\nexport function takePending(id: string): PendingLogin | null {\n  gc();\n  const entry = pending.get(id);\n  if (!entry) return null;\n  pending.delete(id);\n  return entry;\n}\n\n/**\n * The unexpired pending login for an account, if one is waiting on a code.\n * A data tool that finds one hands back its id rather than signing in again —\n * every fresh sign-in would text or email the user another code.\n */\nexport function findPendingFor(hostname: string, username: string): { id: string; delivery?: TwoFaDeliveryInfo | undefined } | null {\n  gc();\n  // Both sides normalised: setup_account and a data tool may spell the same\n  // account differently, and a miss here means a second code.\n  const host = normalizeHostname(hostname);\n  const user = username.trim().toLowerCase();\n  for (const [id, p] of pending) {\n    if (p.hostname === host && p.username.trim().toLowerCase() === user) return { id, delivery: p.delivery };\n  }\n  return null;\n}\n\nexport function discardPending(id: string): void {\n  pending.delete(id);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Credential storage for the OpenRecord MCPB.\n *\n * Every secret goes to the OS keystore — the macOS Keychain, the Windows\n * Credential Manager, or the Secret Service on Linux — via `secret-store.ts`,\n * which falls back to the files below wherever no keystore answers. Three items\n * per identity, under service `openrecord-mcpb`:\n *   password:<hostname>:<username>\n *   totp:<hostname>:<username>\n *   passkey:<hostname>:<username>\n *\n * What stays on disk under ~/.openrecord-mcpb/:\n *   accounts.json                          — the index: { accounts: [{ hostname, username }] }.\n *                                            Also holds password/totpSecret inline when there is\n *                                            no keystore, which is where every pre-keystore\n *                                            install left them.\n *   passkeys/<hostname>/<username>.json    — keystore fallback only\n *   sessions/<hostname>/<username>.json    — serialized MyChartRequest cookie state. Cookies are\n *                                            bearer credentials too, but they expire and the\n *                                            silent-login ladder just re-mints them.\n *\n * Migration is a side effect of reading: a secret found in the old file\n * location is written to the keystore and removed from the file, so an upgrade\n * costs nobody a re-login.\n *\n * Everything is keyed by (hostname, username), never by hostname alone: a\n * household shares a computer, so one hostname routinely carries several\n * logins, and setting up a second one must never touch the first one's\n * credentials, passkey or session. Passkeys and sessions are identity — a\n * hostname-keyed file would hand the previous user's WebAuthn credential to\n * whoever registered last, and the silent-login ladder would then authenticate\n * as the wrong patient.\n *\n * Hostname is lowercased + trimmed before being used in a path; usernames are\n * matched case-insensitively (MyChart logins are) and percent-encoded on disk.\n */\n\nimport * as fs from 'fs';\nimport * as os from 'os';\nimport * as path from 'path';\n\nimport { clearSecret, readSecret, writeSecret, activeBackend, type BackendName, type FileSlot } from './secret-store';\n\nconst ROOT = path.join(os.homedir(), '.openrecord-mcpb');\nconst ACCOUNTS_PATH = path.join(ROOT, 'accounts.json');\nconst PASSKEYS_DIR = path.join(ROOT, 'passkeys');\nconst SESSIONS_DIR = path.join(ROOT, 'sessions');\n\nexport interface AccountConfig {\n  hostname: string;\n  username: string;\n  password: string;\n  // Hydrated from the keystore, which returns undefined for \"nothing saved\".\n  // `AccountRow` is the persisted shape; this one is in-memory only.\n  totpSecret?: string | undefined;\n}\n\nexport function normalizeHostname(hostname: string): string {\n  const trimmed = hostname.toLowerCase().trim();\n  try {\n    // Strips protocol and path, keeps host:port\n    const parsed = new URL(trimmed.includes('://') ? trimmed : `https://${trimmed}`);\n    return parsed.host;\n  } catch {\n    return trimmed;\n  }\n}\n\n/** MyChart usernames are case-insensitive, so \"Homer\" and \"homer\" are the same login. */\nfunction sameUsername(a: string, b: string): boolean {\n  return a.trim().toLowerCase() === b.trim().toLowerCase();\n}\n\n/** Filesystem-safe form of a username (may contain '/', ':', anything). */\nfunction usernameKey(username: string): string {\n  return encodeURIComponent(username.trim().toLowerCase());\n}\n\n/**\n * The account id: `username@hostname`, e.g. `homer@mychart.example.org`.\n * This is what list_accounts returns and the only thing tools accept as\n * `account`.\n */\nexport function accountId(account: Pick<AccountConfig, 'hostname' | 'username'>): string {\n  return `${account.username.trim()}@${normalizeHostname(account.hostname)}`;\n}\n\nfunction ensureDir(dir: string): void {\n  fs.mkdirSync(dir, { recursive: true });\n}\n\n// ── Accounts ────────────────────────────────────────────────────────────────\n\n/**\n * A row as it sits in accounts.json. With a keystore this is just the index —\n * which logins exist — and `password`/`totpSecret` are absent. They are still\n * declared because that is exactly where they live when there is no keystore,\n * and where every install written before this change left them.\n */\ninterface AccountRow {\n  hostname: string;\n  username: string;\n  password?: string;\n  totpSecret?: string;\n}\n\nfunction readRows(): AccountRow[] {\n  try {\n    const raw = JSON.parse(fs.readFileSync(ACCOUNTS_PATH, 'utf-8'));\n    if (!Array.isArray(raw.accounts)) return [];\n    return raw.accounts as AccountRow[];\n  } catch {\n    return [];\n  }\n}\n\nfunction writeRows(accounts: AccountRow[]): void {\n  ensureDir(ROOT);\n  fs.writeFileSync(ACCOUNTS_PATH, JSON.stringify({ accounts }, null, 2));\n  try { fs.chmodSync(ACCOUNTS_PATH, 0o600); } catch { /* best effort */ }\n}\n\nfunction rowIndex(rows: AccountRow[], hostname: string, username: string): number {\n  const normalized = normalizeHostname(hostname);\n  return rows.findIndex(\n    r => normalizeHostname(r.hostname) === normalized && sameUsername(r.username, username),\n  );\n}\n\n/** Keystore item names. One per secret per identity, same shape as the passkey's. */\nfunction passwordKey(hostname: string, username: string): string {\n  return `password:${normalizeHostname(hostname)}:${usernameKey(username)}`;\n}\nfunction totpKey(hostname: string, username: string): string {\n  return `totp:${normalizeHostname(hostname)}:${usernameKey(username)}`;\n}\n\n/**\n * The accounts.json field a secret used to live in — the fallback when there is\n * no keystore, and the source `readSecret` migrates from on the first read\n * after an upgrade. Writing through it never invents a row: `upsertAccount`\n * puts the index row down first, and a secret with no login to attach it to is\n * a credential entry nobody can use.\n */\nfunction accountFieldSlot(\n  hostname: string,\n  username: string,\n  field: 'password' | 'totpSecret',\n): FileSlot {\n  return {\n    read() {\n      const rows = readRows();\n      return rows[rowIndex(rows, hostname, username)]?.[field];\n    },\n    write(secret: string) {\n      const rows = readRows();\n      const idx = rowIndex(rows, hostname, username);\n      const existing = rows[idx];\n      if (!existing) return;\n      rows[idx] = { ...existing, [field]: secret };\n      writeRows(rows);\n    },\n    clear() {\n      const rows = readRows();\n      const idx = rowIndex(rows, hostname, username);\n      const existing = rows[idx];\n      if (existing?.[field] === undefined) return;\n      const { [field]: _dropped, ...rest } = existing;\n      rows[idx] = rest;\n      writeRows(rows);\n    },\n  };\n}\n\n/**\n * Every account, with its secrets resolved from wherever they actually live.\n *\n * The hydration is why callers can keep treating `AccountConfig` as a plain\n * object: moving the password and TOTP secret into the keystore changed where\n * they are persisted, not what a caller sees. A legacy row that still carries\n * them inline is migrated by `readSecret` on the way past.\n */\nexport function readAccounts(): AccountConfig[] {\n  return readRows().map(hydrate);\n}\n\nfunction hydrate(row: AccountRow): AccountConfig {\n  return {\n    hostname: row.hostname,\n    username: row.username,\n    password:\n      readSecret(\n        passwordKey(row.hostname, row.username),\n        accountFieldSlot(row.hostname, row.username, 'password'),\n      ) ?? '',\n    totpSecret: readSecret(\n      totpKey(row.hostname, row.username),\n      accountFieldSlot(row.hostname, row.username, 'totpSecret'),\n    ),\n  };\n}\n\n/** Which login an account is, without its secrets. */\nexport type AccountIdentity = Pick<AccountConfig, 'hostname' | 'username'>;\n\n/** Every saved login, without reading a single secret from the keystore. */\nexport function readAccountIdentities(): AccountIdentity[] {\n  return readRows().map((r) => ({ hostname: r.hostname, username: r.username }));\n}\n\nfunction findRow(hostname: string, username: string): AccountRow | undefined {\n  const rows = readRows();\n  return rows[rowIndex(rows, hostname, username)];\n}\n\n// Matches on the index before touching the keystore: every keystore read is a\n// Keychain round trip, and hydrating every saved login to find one made each\n// lookup cost two reads per account.\nexport function findAccount(hostname: string, username: string): AccountConfig | undefined {\n  const row = findRow(hostname, username);\n  return row ? hydrate(row) : undefined;\n}\n\n/**\n * Split an `account` argument: the id is `username@hostname`, split on the\n * LAST '@' since usernames can be email addresses. A perfect hostname +\n * username match or nothing — there is deliberately no hostname-only or fuzzy\n * fallback, because a ref that \"nearly\" names a login resolving to some other\n * user is the wrong-identity failure this store exists to prevent.\n */\nfunction parseRef(ref: string): AccountIdentity | undefined {\n  const trimmed = ref.trim();\n  const at = trimmed.lastIndexOf('@');\n  if (at < 0) return undefined;\n  return { hostname: trimmed.slice(at + 1), username: trimmed.slice(0, at) };\n}\n\n/** Resolve an `account` argument to the saved login, secrets included. */\nexport function lookupAccount(ref: string): AccountConfig | undefined {\n  const parsed = parseRef(ref);\n  return parsed && findAccount(parsed.hostname, parsed.username);\n}\n\n/** Resolve an `account` argument to the saved login without reading any secret. */\nexport function lookupIdentity(ref: string): AccountIdentity | undefined {\n  const parsed = parseRef(ref);\n  const row = parsed && findRow(parsed.hostname, parsed.username);\n  return row && { hostname: row.hostname, username: row.username };\n}\n\n/**\n * Insert or update the (hostname, username) row. A different username on the\n * same hostname is a NEW account alongside the existing ones — nothing is ever\n * replaced or deleted across identities, so every user's saved login keeps\n * working. Re-registering the same username updates that row in place (e.g. a\n * changed password) and keeps its passkey and session.\n */\nexport function upsertAccount(account: AccountConfig): void {\n  const { hostname, username } = account;\n  const normalized = normalizeHostname(hostname);\n  const rows = readRows();\n  const idx = rowIndex(rows, hostname, username);\n  // The index row carries no secrets. It goes down FIRST, because the file\n  // fallback attaches secrets to an existing row and will not invent one.\n  const row: AccountRow = { hostname: normalized, username };\n  if (idx >= 0) rows[idx] = row; else rows.push(row);\n  writeRows(rows);\n\n  writeSecret(passwordKey(hostname, username), account.password, accountFieldSlot(hostname, username, 'password'));\n  if (account.totpSecret !== undefined) {\n    writeSecret(totpKey(hostname, username), account.totpSecret, accountFieldSlot(hostname, username, 'totpSecret'));\n  }\n}\n\nexport function removeAccount(hostname: string, username: string): boolean {\n  const rows = readRows();\n  const idx = rowIndex(rows, hostname, username);\n  if (idx < 0) return false;\n  // Secrets first: dropping the row before clearing them would strip the file\n  // fallback's own storage out from under it and orphan the keystore items.\n  clearSecret(passwordKey(hostname, username), accountFieldSlot(hostname, username, 'password'));\n  clearSecret(totpKey(hostname, username), accountFieldSlot(hostname, username, 'totpSecret'));\n  clearAccountPasskey(hostname, username);\n  clearAccountSession(hostname, username);\n\n  const remaining = readRows();\n  const stillThere = rowIndex(remaining, hostname, username);\n  if (stillThere >= 0) remaining.splice(stillThere, 1);\n  writeRows(remaining);\n  return true;\n}\n\n/**\n * Store the TOTP secret produced by the `setup_totp` capability, so later\n * logins can generate their own codes instead of waiting on an emailed one.\n * No-ops when the (hostname, username) pair has no saved account — there is\n * nothing to attach the secret to, and inventing an account row here would\n * leave a credential entry with no password.\n */\nexport function saveAccountTotpSecret(hostname: string, username: string, totpSecret: string): boolean {\n  const rows = readRows();\n  if (rowIndex(rows, hostname, username) < 0) return false;\n  writeSecret(totpKey(hostname, username), totpSecret, accountFieldSlot(hostname, username, 'totpSecret'));\n  return true;\n}\n\n// ── Passkeys ────────────────────────────────────────────────────────────────\n\nfunction passkeyPath(hostname: string, username: string): string {\n  return path.join(PASSKEYS_DIR, normalizeHostname(hostname), `${usernameKey(username)}.json`);\n}\n\n/**\n * The keystore item name. Human-readable on purpose: this is what shows up in\n * Keychain Access and in the Windows Credential Manager, and a user auditing\n * what OpenRecord stored should be able to tell whose passkey each item is.\n *\n * Same (hostname, username) normalisation as the file layout, so the two agree\n * on identity and migration lands on the right item.\n */\nfunction passkeyKey(hostname: string, username: string): string {\n  return `passkey:${normalizeHostname(hostname)}:${usernameKey(username)}`;\n}\n\n/**\n * The pre-keystore plaintext file for one passkey. Still the fallback when no\n * keystore answers, and still read once on migration, so its shape is frozen.\n */\nfunction passkeySlot(hostname: string, username: string): FileSlot {\n  const p = passkeyPath(hostname, username);\n  return {\n    read() {\n      try {\n        const data = JSON.parse(fs.readFileSync(p, 'utf-8'));\n        return data?.passkey || undefined;\n      } catch {\n        return undefined;\n      }\n    },\n    write(secret: string) {\n      ensureDir(path.dirname(p));\n      fs.writeFileSync(p, JSON.stringify({ passkey: secret }, null, 2));\n      try { fs.chmodSync(p, 0o600); } catch { /* best effort */ }\n    },\n    clear() {\n      try { fs.unlinkSync(p); } catch { /* ignore */ }\n    },\n  };\n}\n\nexport function readAccountPasskey(hostname: string, username: string): string | undefined {\n  return readSecret(passkeyKey(hostname, username), passkeySlot(hostname, username));\n}\n\nexport function saveAccountPasskey(hostname: string, username: string, serialized: string): void {\n  writeSecret(passkeyKey(hostname, username), serialized, passkeySlot(hostname, username));\n}\n\nexport function clearAccountPasskey(hostname: string, username: string): void {\n  clearSecret(passkeyKey(hostname, username), passkeySlot(hostname, username));\n}\n\n/**\n * Where secrets are actually being stored, for `list_accounts` diagnostics and\n * for telling a patient where a passkey would land. Returns the union, not\n * `string`: callers pair it with `BACKEND_DESCRIPTION`, which only stays\n * exhaustive if the backend keeps its type on the way out.\n */\nexport function secretBackend(): BackendName {\n  return activeBackend();\n}\n\n// ── Sessions (serialized MyChartRequest cookie state) ───────────────────────\n\nfunction sessionPath(hostname: string, username: string): string {\n  return path.join(SESSIONS_DIR, normalizeHostname(hostname), `${usernameKey(username)}.json`);\n}\n\nexport function readAccountSession(hostname: string, username: string): string | undefined {\n  try {\n    return fs.readFileSync(sessionPath(hostname, username), 'utf-8');\n  } catch {\n    return undefined;\n  }\n}\n\nexport function saveAccountSession(hostname: string, username: string, serialized: string): void {\n  const p = sessionPath(hostname, username);\n  ensureDir(path.dirname(p));\n  fs.writeFileSync(p, serialized);\n  try { fs.chmodSync(p, 0o600); } catch { /* best effort */ }\n}\n\nexport function clearAccountSession(hostname: string, username: string): void {\n  try { fs.unlinkSync(sessionPath(hostname, username)); } catch { /* ignore */ }\n}\n\n// ── Diagnostics ─────────────────────────────────────────────────────────────\n\nexport const _paths = { ROOT, ACCOUNTS_PATH, PASSKEYS_DIR, SESSIONS_DIR };\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Multi-account session manager for the OpenRecord MCPB.\n *\n * - One `MyChartRequest` per account — (hostname, username), NOT per hostname:\n *   a family shares a computer, so one hostname can carry several logins, each\n *   with its own cookies, passkey and renewal credentials. Kept warm by the\n *   shared sessionStore keepalive (30s /Home/KeepAlive pings, matching\n *   MyChart's own JS).\n * - On first use: try the on-disk cookie cache, then `humanLogin` (saved\n *   passkey with signature-counter retry → saved password → TOTP secret →\n *   otherwise MyChart sends the user a code). A tool call is human-triggered —\n *   the user asked Claude, Claude called the tool — and Claude can relay the\n *   code back through complete_2fa, so it may send one. See\n *   docs/login-modes.md.\n * - Every session carries a `reauthenticate` hook, so an expiry mid-scrape is\n *   renewed transparently by makeAuthenticatedRequest instead of failing the\n *   tool call. That hook is `machineLogin`: it runs mid-request, where nobody\n *   could hand it a code, so it never sends one. (The keepalive never renews:\n *   a dead heartbeat only marks the session expired until the next real\n *   request.)\n * - Persists cookie state to disk after login and after every renewal so a\n *   Claude Desktop restart doesn't force a fresh login.\n *\n * Multiple accounts can be active simultaneously — every call carries an\n * explicit account id (`username@hostname`), so there is no \"active account\"\n * state to track.\n */\n\nimport { MyChartRequest } from '../../../scrapers/myChart/core/myChartRequest';\nimport { areCookiesValid } from '../../../scrapers/myChart/auth/login';\nimport { humanLogin, machineLogin, wireSilentReauthentication, type StoredLoginParams } from '../../../scrapers/myChart/auth/loginModes';\nimport type { TwoFaDeliveryInfo } from '../../../scrapers/myChart/auth/login';\nimport { addPending, findPendingFor } from './pending-logins';\nimport { sessionStore } from '../../../scrapers/myChart/core/sessionStore';\nimport {\n  deserializeCredential,\n  serializeCredential,\n} from '../../../scrapers/myChart/auth/softwareAuthenticator';\nimport {\n  type AccountIdentity,\n  accountId,\n  findAccount,\n  lookupIdentity,\n  readAccounts,\n  readAccountPasskey,\n  readAccountSession,\n  saveAccountPasskey,\n  saveAccountSession,\n  clearAccountPasskey,\n  clearAccountSession,\n  normalizeHostname,\n} from './credential-store';\n\nconst sessions = new Map<string, MyChartRequest>();\nconst loginLocks = new Map<string, Promise<MyChartRequest>>();\n\n/**\n * In-memory map key for one account. Hostname is normalized and the username\n * lowercased, so every spelling of the same login lands on the same session.\n */\nfunction sessionKey(hostname: string, username: string): string {\n  return `${normalizeHostname(hostname)}\\0${username.trim().toLowerCase()}`;\n}\n\n// ── Inspection ──────────────────────────────────────────────────────────────\n\n/** Whether an in-memory session exists for the account `ref` names. */\nexport function isConnected(ref: string): boolean {\n  const account = lookupIdentity(ref);\n  if (!account) return false;\n  return sessions.has(sessionKey(account.hostname, account.username));\n}\n\n/** The in-memory session for the account `ref` names, if one is open. Never logs in. */\nexport function openSession(ref: string): MyChartRequest | undefined {\n  const account = lookupIdentity(ref);\n  return account ? sessions.get(sessionKey(account.hostname, account.username)) : undefined;\n}\n\nexport function clearSession(ref: string): void {\n  const account = lookupIdentity(ref);\n  if (!account) return;\n  const key = sessionKey(account.hostname, account.username);\n  const session = sessions.get(key);\n  if (session) sessionStore.unregister(session);\n  sessions.delete(key);\n  loginLocks.delete(lockKey(key, 'human'));\n  loginLocks.delete(lockKey(key, 'machine'));\n}\n\nexport function clearAllSessions(): void {\n  for (const [, session] of sessions) {\n    sessionStore.unregister(session);\n  }\n  sessions.clear();\n  loginLocks.clear();\n  sessionStore.stopKeepalive();\n}\n\n// ── Login (cookie cache → passkey → user/pass → TOTP or a sent code) ────────\n\n/**\n * Signing in to answer a tool call made MyChart send the user a code. Not a\n * failure: the tool hands Claude the pending_id to finish with complete_2fa.\n * The message carries no contact details — errors reach telemetry.\n */\nexport class NeedsTwoFactorError extends Error {\n  constructor(\n    readonly account: string,\n    readonly pendingId: string,\n    readonly delivery: TwoFaDeliveryInfo | undefined,\n  ) {\n    super(`MyChart sent a verification code to sign in to ${account}.`);\n    this.name = 'NeedsTwoFactorError';\n  }\n}\n\n/**\n * A machine-mode sign-in hit 2FA with nothing stored that answers it. No code\n * was sent; retrying won't help until the user signs in, or saves a passkey\n * or an authenticator app.\n */\nexport class NeedsHumanSignInError extends Error {\n  constructor(readonly account: string) {\n    super(`MyChart needs a verification code to sign in to ${account}, and no passkey or authenticator app is saved for it.`);\n    this.name = 'NeedsHumanSignInError';\n  }\n}\n\n/**\n * Try to restore a session from the on-disk cookie cache. Returns null if\n * no cache exists or the cached cookies have expired.\n */\nasync function tryRestoreSession(hostname: string, username: string): Promise<MyChartRequest | null> {\n  const cached = readAccountSession(hostname, username);\n  if (!cached) return null;\n  try {\n    const req = await MyChartRequest.unserialize(cached);\n    if (!req) return null;\n    if (await areCookiesValid(req)) return req;\n  } catch {\n    // fall through\n  }\n  clearAccountSession(hostname, username);\n  return null;\n}\n\n/**\n * The stored credential set for one account, read fresh from disk so a\n * renewal picks up anything saved since login (an updated password, a passkey\n * registered mid-session).\n */\nfunction storedLoginParams(hostname: string, username: string): StoredLoginParams {\n  const account = findAccount(hostname, username);\n  const passkeySerialized = readAccountPasskey(hostname, username);\n  let passkey = null;\n  if (passkeySerialized) {\n    try {\n      passkey = deserializeCredential(passkeySerialized);\n    } catch {\n      // Corrupt passkey file — fall back to password.\n    }\n  }\n  return {\n    hostname,\n    username: account?.username ?? username,\n    password: account?.password,\n    totpSecret: account?.totpSecret,\n    passkey,\n    onPasskeyUsed: (credential) => saveAccountPasskey(hostname, username, serializeCredential(credential)),\n    onPasskeyInvalid: () => clearAccountPasskey(hostname, username),\n  };\n}\n\nasync function loginAccountAsHuman(account: AccountIdentity): Promise<MyChartRequest> {\n  const hostname = normalizeHostname(account.hostname);\n  const id = accountId(account);\n\n  const restored = await tryRestoreSession(hostname, account.username);\n  if (restored) return restored;\n\n  // A code is already on its way for this account — hand back the same\n  // pending login instead of making MyChart send another.\n  const waiting = findPendingFor(hostname, account.username);\n  if (waiting) throw new NeedsTwoFactorError(id, waiting.id, waiting.delivery);\n\n  const params = storedLoginParams(hostname, account.username);\n  const outcome = await humanLogin(params);\n  switch (outcome.state) {\n    case 'logged_in':\n      await persistSession(hostname, account.username, outcome.mychartRequest);\n      return outcome.mychartRequest;\n    case 'need_2fa': {\n      const pendingId = addPending({\n        hostname,\n        username: account.username,\n        // need_2fa is only reached through the password rung.\n        password: params.password ?? '',\n        mychartRequest: outcome.mychartRequest,\n        delivery: outcome.delivery,\n      });\n      throw new NeedsTwoFactorError(id, pendingId, outcome.delivery);\n    }\n    case 'invalid_login':\n      throw new Error(`MyChart rejected the saved password for ${id}. Ask the user for the current one and run setup_account.`);\n    case 'failed':\n      throw new Error(`Login failed for ${id}: ${outcome.reason}. Run setup_account to update credentials.`);\n  }\n}\n\n/** Sign in with nobody waiting on a code. Never makes MyChart send one. */\nasync function loginAccountAsMachine(account: AccountIdentity): Promise<MyChartRequest> {\n  const hostname = normalizeHostname(account.hostname);\n  const id = accountId(account);\n\n  const restored = await tryRestoreSession(hostname, account.username);\n  if (restored) return restored;\n\n  const outcome = await machineLogin(storedLoginParams(hostname, account.username));\n  switch (outcome.state) {\n    case 'logged_in':\n      await persistSession(hostname, account.username, outcome.mychartRequest);\n      return outcome.mychartRequest;\n    case 'needs_human':\n      throw new NeedsHumanSignInError(id);\n    case 'failed':\n      throw new Error(`Login failed for ${id}: ${outcome.reason}.`);\n  }\n}\n\nexport async function persistSession(hostname: string, username: string, req: MyChartRequest): Promise<void> {\n  try {\n    saveAccountSession(hostname, username, await req.serialize());\n  } catch (err) {\n    console.error(`[openrecord:${normalizeHostname(hostname)}] failed to persist session: ${(err as Error).message}`);\n  }\n}\n\n// ── Session lifecycle (renewal hook + keepalive + lazy login) ───────────────\n\n/**\n * Turn a freshly acquired session into a managed one: wire the machine-mode\n * re-login hook (this is what makes mid-scrape expiry invisible to tools) and\n * enroll it in the shared keepalive heartbeat.\n */\nfunction manageSession(hostname: string, username: string, session: MyChartRequest): MyChartRequest {\n  wireSilentReauthentication(\n    session,\n    () => storedLoginParams(hostname, username),\n    (renewed) => persistSession(hostname, username, renewed),\n  );\n  sessionStore.registerForKeepalive(session);\n  sessions.set(sessionKey(hostname, username), session);\n  return session;\n}\n\ntype LoginMode = 'human' | 'machine';\n\n/** One in-flight sign-in per account AND mode: a human caller must not inherit a machine sign-in's needs_human. */\nfunction lockKey(key: string, mode: LoginMode): string {\n  return `${key}\\0${mode}`;\n}\n\nasync function ensureAccountSession(account: AccountIdentity, mode: LoginMode): Promise<MyChartRequest> {\n  const hostname = normalizeHostname(account.hostname);\n  const key = sessionKey(hostname, account.username);\n\n  // An existing session is simply returned — expiry is handled at request\n  // time by the renewal hook, so there is no \"expired\" flag to check here.\n  const existing = sessions.get(key);\n  if (existing) return existing;\n\n  const lk = lockKey(key, mode);\n  const lock = loginLocks.get(lk);\n  if (lock) return lock;\n\n  const login = mode === 'human' ? loginAccountAsHuman : loginAccountAsMachine;\n  const promise = login(account).then(session => {\n    manageSession(hostname, account.username, session);\n    loginLocks.delete(lk);\n    return session;\n  }).catch((err: unknown) => {\n    loginLocks.delete(lk);\n    throw err;\n  });\n\n  loginLocks.set(lk, promise);\n  return promise;\n}\n\nfunction requireAccount(ref: string): AccountIdentity {\n  if (!ref) {\n    throw new Error('account is required. Call list_accounts to see configured account IDs, then pass one as `account`.');\n  }\n  const account = lookupIdentity(ref);\n  if (!account) {\n    const available = readAccounts().map(accountId);\n    throw new Error(\n      available.length === 0\n        ? `No MyChart accounts configured. Call setup_account first.`\n        : `Account \"${ref}\" is not configured. Configured accounts: ${available.join(', ')}.`,\n    );\n  }\n  return account;\n}\n\n/**\n * Get a logged-in MyChartRequest for the given account id, for a tool call —\n * human mode: signing in may make MyChart send a code, surfaced as\n * NeedsTwoFactorError. The id must be an exact `username@hostname` match —\n * anything else throws, listing the configured ids.\n */\nexport async function resolveSession(ref: string): Promise<MyChartRequest> {\n  return ensureAccountSession(requireAccount(ref), 'human');\n}\n\n/**\n * The same, for work nobody is waiting on (a background sync). Machine mode:\n * never sends a code; throws NeedsHumanSignInError when only a code would do.\n */\nexport async function resolveSessionWithoutUser(ref: string): Promise<MyChartRequest> {\n  return ensureAccountSession(requireAccount(ref), 'machine');\n}\n\n/**\n * Adopt an already-logged-in session (e.g. produced by setup_account or\n * complete_2fa) into the session manager so subsequent tool calls reuse\n * the cookies + benefit from renewal and keepalive.\n */\nexport async function adoptSession(hostname: string, username: string, session: MyChartRequest): Promise<void> {\n  const key = sessionKey(hostname, username);\n  const existing = sessions.get(key);\n  if (existing) sessionStore.unregister(existing);\n  sessions.delete(key);\n  loginLocks.delete(lockKey(key, 'human'));\n  loginLocks.delete(lockKey(key, 'machine'));\n  await persistSession(hostname, username, session);\n  manageSession(normalizeHostname(hostname), username, session);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { SANDBOX_INSTANCE } from '../../../scrapers/list-all-mycharts/searchDirectory';\nimport { accountId, normalizeHostname, readAccounts, removeAccount, upsertAccount } from './credential-store';\nimport { clearSession } from './session-manager';\n\n/**\n * The fake MyChart demo and real accounts are never connected together: with\n * both saved, Claude could read the fictional chart while the user believes it\n * is theirs, or the reverse. A real account replaces the demo (its login is\n * throwaway); the demo is refused while real accounts exist, because making\n * room would delete the user's saved logins and passkeys.\n */\n\nconst DEMO_HOSTNAME = normalizeHostname(SANDBOX_INSTANCE.url);\n\nconst isDemoHostname = (hostname: string) => normalizeHostname(hostname) === DEMO_HOSTNAME;\n\n/** The real accounts that keep `hostname` from being connected now; empty when it can be. Checked before logging in. */\nexport function demoConflict(hostname: string): string[] {\n  if (!isDemoHostname(hostname)) return [];\n  return readAccounts().filter((a) => !isDemoHostname(a.hostname)).map(accountId);\n}\n\nexport function demoConflictMessage(accounts: string[]): string {\n  return (\n    `The fake MyChart can't be connected while real accounts are: ${accounts.join(', ')}. ` +\n    'Tell the user it would mean disconnecting those first (disconnect_account deletes their saved login and passkey). ' +\n    'Do not disconnect them unless the user explicitly asks.'\n  );\n}\n\n/** Save a login that just succeeded, enforcing the rule above. */\nexport function saveAccount(hostname: string, username: string, password: string): void {\n  const conflict = demoConflict(hostname);\n  if (conflict.length) throw new Error(demoConflictMessage(conflict));\n  upsertAccount({ hostname: normalizeHostname(hostname), username, password });\n  if (isDemoHostname(hostname)) return;\n  for (const demo of readAccounts().filter((a) => isDemoHostname(a.hostname))) {\n    clearSession(accountId(demo));\n    removeAccount(demo.hostname, demo.username);\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Parks a tool call that outruns Claude Desktop's request timeout, so its\n * result can be collected by id with `check_pending_call`.\n *\n * The timeout is undocumented. The one measurement on record is in Claude\n * Desktop's client log (~/Library/Logs/Claude/mcp.log): a `notifications/\n * cancelled` with \"MCP error -32001: Request timed out\" 197 s after the\n * request (June 2026 build, on `initialize`); four minutes is the figure\n * usually quoted. DEADLINE_MS sits under both and above the scrapers'\n * 2-minute per-request deadline (scrapers/http.ts).\n *\n * Calls are not serialized — the same log shows Claude Desktop issuing a\n * second call 5.5 s after an unanswered first — so several may park. A\n * parked call refuses one thing: a repeat of itself with the same arguments,\n * the retry that would send a message twice. switch_proxy_target also\n * refuses while a parked read on the account is still running\n * (`unsettledCallOnAccount`): MyChart's active patient is server-side state,\n * and switching under a running read hands it the wrong chart.\n *\n * Abandoning a call only stops waiting for it. Nothing in the scraper core\n * takes an abort signal, so the work runs on and a write already sent lands.\n */\n\nimport { randomUUID } from 'crypto';\nimport type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';\nimport { detailedMessage } from '../../../shared/detailedError';\n\nexport const CHECK_TOOL = 'check_pending_call';\nconst DEADLINE_MS = 150_000;\nexport const DEADLINE_LABEL = '2.5 minutes';\n/** From a call's start, after which it is dropped: result given up on, chart lock released. Also how long an unread result is kept. */\nexport const MAX_RUN_MS = 10 * 60_000;\n\ninterface Parked {\n  id: string;\n  tool: string;\n  key: string;\n  account: string | null;\n  startedAt: number;\n  promise: Promise<CallToolResult>;\n  result?: CallToolResult;\n  settledAt?: number;\n  /** The caller stopped waiting, so the result is no longer theirs. The entry stays until the scrape settles, or the cap, so the proxy guard still sees it. */\n  abandoned?: boolean;\n}\n\nconst parked = new Map<string, Parked>();\n\n/**\n * Why a call that is no longer parked went away, kept for the last few, so a\n * stale id gets an answer instead of one message covering \"you collected it\",\n * \"you abandoned it\" and \"it ran too long\" alike. Live testing could not tell\n * those apart, and they call for different next moves.\n */\nconst gone = new Map<string, string>();\nconst GONE_KEEP = 50;\n\n/** Drop a parked call, remembering what became of it. */\nfunction forget(p: Parked, why: string): void {\n  parked.delete(p.id);\n  gone.set(p.id, `${p.tool} was ${why}`);\n  if (gone.size > GONE_KEEP) gone.delete(gone.keys().next().value!);\n}\n\nconst ABANDON_MEANS =\n  'Abandoning only stops waiting: the work runs on in the background until it finishes, and a message or request it already sent still lands.';\n\nfunction text(message: string, isError = false): CallToolResult {\n  return { content: [{ type: 'text', text: message }], ...(isError ? { isError: true } : {}) };\n}\n\n/**\n * The id a \"still running\" note carries as data, for code that waits a call\n * out (the setup widget) rather than reading the sentence the model gets.\n */\nexport interface PendingCallNote {\n  pending_call: { id: string };\n}\n\nfunction stillRunning(message: string, id: string): CallToolResult {\n  const note: PendingCallNote = { pending_call: { id } };\n  return { ...text(message), structuredContent: { ...note } };\n}\n\nfunction elapsed(startedAt: number, now: number): string {\n  const secs = Math.max(0, Math.round((now - startedAt) / 1000));\n  return `${Math.floor(secs / 60)}m ${secs % 60}s`;\n}\n\n/**\n * Sorted keys at every level, so argument order cannot make two calls differ.\n * Not a `JSON.stringify` replacer array: that is an allowlist applied at every\n * depth, so a nested object's keys are dropped and it serialises as `{}`.\n */\nfunction canonical(value: unknown): string {\n  if (Array.isArray(value)) return `[${value.map(canonical).join(',')}]`;\n  if (value && typeof value === 'object') {\n    const o = value as Record<string, unknown>;\n    const keys = Object.keys(o).filter((k) => o[k] !== undefined).sort();\n    return `{${keys.map((k) => `${JSON.stringify(k)}:${canonical(o[k])}`).join(',')}}`;\n  }\n  return JSON.stringify(value) ?? 'null';\n}\n\n/** The result if it arrives within `ms`, else undefined. Never rejects. */\nfunction settleWithin(promise: Promise<CallToolResult>, ms: number): Promise<CallToolResult | undefined> {\n  let timer: ReturnType<typeof setTimeout> | undefined;\n  const deadline = new Promise<undefined>((resolve) => {\n    timer = setTimeout(() => resolve(undefined), ms);\n  });\n  return Promise.race([promise, deadline]).finally(() => clearTimeout(timer));\n}\n\nfunction sweep(now: number): void {\n  for (const p of parked.values()) {\n    if (p.settledAt === undefined) {\n      // Past the cap the result is given up on, and the chart lock with it.\n      // A scrape can fail to settle at all, and an entry kept for one would\n      // block switch_proxy_target for the life of the process with no call\n      // able to clear it.\n      if (now - p.startedAt >= MAX_RUN_MS) forget(p, 'given up on after running 10 minutes');\n    } else if (p.abandoned) {\n      forget(p, 'abandoned, and its result discarded when it finished');\n    } else if (now - p.settledAt >= MAX_RUN_MS) {\n      forget(p, 'left uncollected for 10 minutes after it finished, and dropped');\n    }\n  }\n}\n\nfunction describe(p: Parked, now: number): string {\n  const state =\n    p.settledAt !== undefined ? 'finished, result unread'\n      : p.abandoned ? `abandoned, but still reading after ${elapsed(p.startedAt, now)}`\n        : `running for ${elapsed(p.startedAt, now)}`;\n  return `${p.tool} (id \"${p.id}\", ${state}${p.account ? `, on ${p.account}` : ''})`;\n}\n\n/** Every parked call, oldest first — what blocks a repeat or a proxy switch. */\nfunction listing(now: number): string {\n  const all = [...parked.values()].sort((a, b) => a.startedAt - b.startedAt);\n  return all.length ? all.map((p) => describe(p, now)).join('; ') : 'nothing is pending';\n}\n\n/** Run a tool's handler under the deadline. `deadlineMs` is the test seam. */\nexport async function runGuarded(\n  tool: string,\n  args: Record<string, unknown>,\n  fn: () => CallToolResult | Promise<CallToolResult>,\n  deadlineMs = DEADLINE_MS,\n): Promise<CallToolResult> {\n  const now = Date.now();\n  sweep(now);\n  const key = `${tool} ${canonical(args)}`;\n  const same = [...parked.values()].find((p) => p.key === key && !p.abandoned);\n  if (same) {\n    const state = same.settledAt === undefined ? `running (started ${elapsed(same.startedAt, now)} ago)` : 'finished, with its result unread';\n    return text(`This exact call is already ${state}. Call ${CHECK_TOOL} with id \"${same.id}\" instead of running it again.`, true);\n  }\n\n  const promise = Promise.resolve()\n    .then(fn)\n    .catch((err: unknown) => text(`Error: ${detailedMessage(err)}`, true));\n  const result = await settleWithin(promise, deadlineMs);\n  if (result) return result;\n\n  const account = typeof args.account === 'string' ? args.account.trim().toLowerCase() : null;\n  const entry: Parked = { id: randomUUID(), tool, key, account, startedAt: now, promise };\n  parked.set(entry.id, entry);\n  void promise.then((r) => {\n    entry.result = r;\n    entry.settledAt = Date.now();\n  });\n  return stillRunning(\n    `${tool} (id \"${entry.id}\") is still running after ${DEADLINE_LABEL} and keeps running in the background for up ` +\n      `to 10 minutes. Call ${CHECK_TOOL} with that id to wait for and read its result. Do NOT call ${tool} again ` +\n      'with the same arguments; it would be refused. Other tools are unaffected.',\n    entry.id,\n  );\n}\n\n/** The parked call still reading this account's chart, abandoned or not. */\nexport function unsettledCallOnAccount(account: string): { tool: string; id: string } | undefined {\n  sweep(Date.now());\n  const wanted = account.trim().toLowerCase();\n  return [...parked.values()].find((p) => p.settledAt === undefined && p.account === wanted);\n}\n\n/** The `check_pending_call` handler. `deadlineMs` is the test seam. */\nexport async function checkPendingCall(\n  { id, wait, abandon }: { id?: string; wait?: boolean; abandon?: boolean },\n  deadlineMs = DEADLINE_MS,\n): Promise<CallToolResult> {\n  const now = Date.now();\n  sweep(now);\n  // The listing is read through the same sweep as every guard, so what it says\n  // is pending is exactly what can be blocking a repeat or a proxy switch.\n  if (id === undefined) return text(`Pending calls: ${listing(now)}.`);\n  const p = parked.get(id);\n  if (!p) {\n    const why = gone.get(id) ?? 'no call with that id was parked here';\n    return text(`No pending call has id \"${id}\": ${why}, and it is holding nothing. Pending calls: ${listing(now)}.`, true);\n  }\n\n  if (abandon) {\n    if (p.settledAt !== undefined) {\n      forget(p, 'abandoned, and its finished result discarded unread');\n      return text(`Abandoned ${p.tool}: its finished result was discarded unread.`);\n    }\n    p.abandoned = true;\n    const guard = p.account\n      ? ` switch_proxy_target on ${p.account} refuses until the read finishes; call ${CHECK_TOOL} with this id again to wait for that.`\n      : '';\n    return text(`Abandoned ${p.tool}. ${ABANDON_MEANS}${guard}`);\n  }\n\n  // An abandoned call's result is not the caller's any more, but its scrape is\n  // still reading the chart, so waiting here is how they see the account come\n  // free — which is exactly what switch_proxy_target's refusal tells them to\n  // do. Short-circuiting here instead left that instruction unfollowable.\n  const discarded = p.abandoned === true;\n\n  // A wait that would run past the cap is cut to the cap, and running that\n  // out means the cap is reached even if the test clock never moved.\n  const remaining = MAX_RUN_MS - (now - p.startedAt);\n  const clipped = remaining <= deadlineMs;\n  const result = p.result ?? (wait === false ? undefined : await settleWithin(p.promise, clipped ? remaining : deadlineMs));\n  if (result) {\n    forget(p, discarded ? 'abandoned, and its result discarded when it finished' : 'collected');\n    if (!discarded) return result;\n    const freed = p.account ? ` switch_proxy_target on ${p.account} is free again.` : '';\n    return text(`${p.tool} has finished, and its result was discarded because the call was abandoned.${freed}`);\n  }\n  if (wait !== false && clipped) {\n    forget(p, 'given up on after running 10 minutes');\n    return text(`Gave up on ${p.tool} after 10 minutes. Its result is discarded and this account is no longer held. ${ABANDON_MEANS}`, true);\n  }\n  const how = discarded\n    ? `Its result will be discarded, because it was abandoned. Call ${CHECK_TOOL} again to wait for the account to come free.`\n    : `Call ${CHECK_TOOL} again to keep waiting, or with abandon: true to stop waiting. ${ABANDON_MEANS}`;\n  return stillRunning(`${p.tool} (id \"${id}\") is still running (${elapsed(p.startedAt, Date.now())} so far, of at most 10 minutes). ${how}`, id);\n}\n\n/** Test seam. */\nexport function resetPendingCalls(): void {\n  parked.clear();\n  gone.clear();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Offer to reuse the MyChart passwords the user already has saved in their\n * browser, the way a browser offers to import from another browser.\n *\n * The rule this file exists to enforce: **a scanned password never leaves this\n * process.** Tool results are sent to the model, so `import_browser_passwords`\n * returns only what a human needs in order to choose — hostname, username,\n * which browser it came from, how confident we are — and holds the credential\n * here under an opaque id. `connect_imported_account` redeems that id locally.\n *\n * Nothing is written anywhere until the user picks an entry: the scan is\n * read-only, and reading the macOS Keychain raises the system's own permission\n * prompt, which is the consent gate for the scan itself.\n */\n\nimport { blockedBrowsers, findMyChartCandidates, isSupportedPlatform, type MyChartCandidate } from '../read-local-passwords/index';\n\n/**\n * Scanned credentials, held only long enough for the user to choose one.\n * One id covers every saved password for the same login — Chrome and Firefox\n * often both hold one, and they can disagree after a password change.\n */\nconst held = new Map<string, { candidates: MyChartCandidate[]; expiresAt: number }>();\n\n/**\n * Ten minutes, matching the pending-2FA window. Long enough to talk it over\n * with the user, short enough that a forgotten scan is not sitting in memory\n * for the life of the process.\n */\nconst TTL_MS = 10 * 60 * 1000;\n\nfunction evictExpired(now = Date.now()): void {\n  for (const [key, value] of held) if (value.expiresAt <= now) held.delete(key);\n}\n\n/** What the model is allowed to see about one candidate. */\ninterface ImportedAccountSummary {\n  import_id: string;\n  hostname: string;\n  username: string | null;\n  /** Browser the credential was read from, e.g. \"Chrome\". */\n  source?: string;\n  confidence: MyChartCandidate['confidence'];\n  instance_name?: string;\n}\n\n/**\n * Group candidates that are the same login: same host, same username (MyChart\n * usernames are case-insensitive). `classifyMyChartEntries` already collapsed\n * identical passwords, so what is left in a group is passwords that differ.\n */\nfunction groupByLogin(candidates: MyChartCandidate[]): MyChartCandidate[][] {\n  const groups = new Map<string, MyChartCandidate[]>();\n  for (const candidate of candidates) {\n    const id = `${candidate.hostname}|${(candidate.user ?? '').toLowerCase()}`;\n    groups.set(id, [...(groups.get(id) ?? []), candidate]);\n  }\n  return [...groups.values()];\n}\n\n/** \"Chrome\", \"Chrome and Firefox\", \"Arc, Chrome and Firefox\". */\nfunction sourcesLabel(group: MyChartCandidate[]): string | undefined {\n  const sources = [...new Set(group.map((c) => c.source).filter((s): s is string => !!s))];\n  if (sources.length <= 1) return sources[0];\n  return `${sources.slice(0, -1).join(', ')} and ${sources[sources.length - 1]}`;\n}\n\nfunction summarize(group: MyChartCandidate[]): ImportedAccountSummary {\n  // The filter sorts directory matches first, so the head has the best confidence.\n  const [first] = group as [MyChartCandidate, ...MyChartCandidate[]];\n  const source = sourcesLabel(group);\n  const instanceName = group.find((c) => c.instanceName)?.instanceName;\n  return {\n    import_id: first.key,\n    hostname: first.hostname,\n    username: first.user,\n    ...(source ? { source } : {}),\n    confidence: first.confidence,\n    ...(instanceName ? { instance_name: instanceName } : {}),\n  };\n}\n\nexport interface ScanResult {\n  supported: boolean;\n  accounts: ImportedAccountSummary[];\n  /** Browsers macOS would not let us read. Their logins are missing from `accounts`. */\n  blocked_browsers: string[];\n}\n\n/**\n * Scan the local browser password stores for MyChart logins.\n *\n * Only accounts we could confirm are returned. A saved password for a host that\n * does not answer is a login we could not perform anyway, so offering it would\n * buy the user a failed attempt instead of an account; `setup_account` is there\n * for anything this misses, and a later re-run picks up a portal that was down.\n */\nexport async function scanBrowserPasswords(options: { probeUnknownHosts?: boolean } = {}): Promise<ScanResult> {\n  if (!isSupportedPlatform()) return { supported: false, accounts: [], blocked_browsers: [] };\n\n  evictExpired();\n  const candidates = await findMyChartCandidates(options);\n\n  const expiresAt = Date.now() + TTL_MS;\n  const groups = groupByLogin(candidates);\n  for (const group of groups) held.set(group[0]!.key, { candidates: group, expiresAt });\n\n  return { supported: true, accounts: groups.map(summarize), blocked_browsers: blockedBrowsers() };\n}\n\n/**\n * Redeem an id from the last scan: every saved password for that login, to be\n * tried in turn. Returns undefined once it has expired.\n */\nexport function takeImportedCandidates(importId: string): MyChartCandidate[] | undefined {\n  evictExpired();\n  return held.get(importId)?.candidates;\n}\n\n/** Drop a credential once it has been connected (or explicitly declined). */\nexport function releaseImportedCandidate(importId: string): void {\n  held.delete(importId);\n}\n\n/** Test seam: forget everything scanned so far. */\nexport function _clearHeldImports(): void {\n  held.clear();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n// No imports: the setup widget's browser bundle uses this too.\n\n/** What the user does to let the browser-password scan read a browser macOS blocked, inside Claude Desktop. */\nexport const FULL_DISK_ACCESS_STEPS = [\n  'Open System Settings → Privacy & Security → Full Disk Access.',\n  'Turn on Claude. If it is not listed, click +, choose Claude from Applications, then turn it on.',\n  'Quit Claude completely and reopen it, then import again.',\n];\n\n/** The same, when the server runs under whatever app launched `mychart-cli mcp`. */\nexport const FULL_DISK_ACCESS_STEPS_OTHER_HOST = [\n  'Open System Settings → Privacy & Security → Full Disk Access.',\n  'Turn on the app that runs OpenRecord — your terminal, or the editor or AI app whose MCP settings start `mychart-cli mcp`.',\n  'Quit that app completely and reopen it, then import again.',\n];\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Convert CLO images to JPEG without native dependencies.\n *\n * The other exporters in this directory wrap sharp, a native Node module that\n * two of our targets cannot load: the Claude Desktop extension (a portable\n * .mcpb bundle) and the Expo app (React Native). This is the JPEG path those\n * targets share — jpeg-js only, pure JS end to end — so every client windows\n * and encodes an image identically to the CLI.\n */\n\nimport jpegJs from \"jpeg-js\";\nimport { convertCloToBitmap } from \"../clo_to_bitmap\";\nimport type { Bitmap } from \"../clo_to_bitmap\";\n\nexport interface PureJsJpeg {\n  /** Encoded JPEG bytes. */\n  buffer: Uint8Array;\n  width: number;\n  height: number;\n}\n\n/** Grayscale → RGBA (alpha = 255). jpeg-js encodes RGBA input. */\nexport function grayscaleToRgba(gray: Uint8Array): Uint8Array {\n  const out = new Uint8Array(gray.length * 4);\n  for (let i = 0; i < gray.length; i++) {\n    const v = gray[i]!; // i bounded by loop over gray.length; noUncheckedIndexedAccess\n    const o = i * 4;\n    out[o] = v;\n    out[o + 1] = v;\n    out[o + 2] = v;\n    out[o + 3] = 255;\n  }\n  return out;\n}\n\n/**\n * Encode an 8-bit grayscale bitmap as a JPEG at quality 100 — medical images,\n * deliberately no knob to degrade them.\n */\nexport function convertBitmapToJpgPureJs(bitmap: Bitmap): PureJsJpeg {\n  const rgba = grayscaleToRgba(bitmap.pixels);\n  const encoded = jpegJs.encode(\n    { data: rgba, width: bitmap.width, height: bitmap.height },\n    100,\n  );\n  return { buffer: encoded.data, width: bitmap.width, height: bitmap.height };\n}\n\n/** Decode a CLO pixel/wrapper pair and encode the result as a JPEG. */\nexport function convertCloToJpgPureJs(\n  pixelInput: string | Buffer,\n  wrapperInput?: string | Buffer,\n): PureJsJpeg {\n  return convertBitmapToJpgPureJs(convertCloToBitmap(pixelInput, wrapperInput));\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Decode a downloaded imaging study and encode it as JPEGs.\n *\n * The download itself is the shared `download_imaging_study` capability\n * (`clients/shared/capabilities/`), which returns raw CLO bytes. Decoding is the\n * shared pure-JS parser (`convertCloToBitmap`) and encoding is the shared\n * pure-JS exporter (`convertBitmapToJpgPureJs`) — the same code path the Expo\n * app uses, so an X-ray renders identically in every client. This module is\n * just the MCPB glue around them, kept out of tool registration so it can be\n * unit-tested against fake-mychart without standing up an MCP server.\n *\n * Decoding is split from encoding because the tool needs two encodings of\n * the same pixels: full resolution for the copy saved to disk, and a\n * size-budgeted preview for the conversation (`inline-preview.ts`). CLO\n * decoding is the expensive step, so it happens once.\n */\nimport type { MyChartRequest } from '../../../../scrapers/myChart/core/myChartRequest';\nimport type { FdiContext } from '../../../../scrapers/myChart/eunity/imagingViewer';\nimport { convertCloToBitmap, type Bitmap } from '../../../../scrapers/myChart/clo-image-parser/clo_to_bitmap';\nimport { convertBitmapToJpgPureJs } from '../../../../scrapers/myChart/clo-image-parser/exporters/to_jpg_purejs';\nimport {\n  encodeImageId,\n  executeCapability,\n  getCapability,\n  type StudyImagePayload,\n} from '../../capabilities';\n\nexport interface DecodedImage {\n  index: number;\n  seriesDescription: string;\n  bitmap: Bitmap;\n}\n\nexport interface DecodedStudy {\n  studyName: string;\n  /** Total image instances the study contains. */\n  totalImages: number;\n  images: DecodedImage[];\n  /** Non-fatal errors from the download/decode pipeline. */\n  errors: string[];\n}\n\nexport interface StudyJpeg {\n  index: number;\n  seriesDescription: string;\n  width: number;\n  height: number;\n  bytes: number;\n  /** Base64-encoded JPEG bytes, ready to drop into an MCP image content block. */\n  jpegBase64: string;\n}\n\nexport interface DownloadStudyJpegsResult {\n  studyName: string;\n  /** Total image instances the study contains. */\n  totalImages: number;\n  /** How many images were encoded and returned. */\n  returned: number;\n  images: StudyJpeg[];\n  /** Non-fatal errors from the download/encode pipeline. */\n  errors: string[];\n}\n\nexport interface DownloadStudyJpegsOptions {\n  studyName?: string;\n}\n\n/**\n * Decode the raw CLO images the `download_imaging_study` capability returned\n * into 8-bit grayscale bitmaps. Pure — no network — so the tool handler can\n * call the capability once and hand its payload straight here.\n */\nexport function decodeStudy(payload: StudyImagePayload): DecodedStudy {\n  const errors = [...payload.errors];\n  const withPixels = payload.images.filter((img) => img.pixelData && img.pixelData.length > 0);\n  const images: DecodedImage[] = [];\n\n  for (let i = 0; i < withPixels.length; i++) {\n    const img = withPixels[i]!; // i bounded by loop over withPixels.length; noUncheckedIndexedAccess\n    try {\n      const bitmap = convertCloToBitmap(Buffer.from(img.pixelData!), img.wrapperData ? Buffer.from(img.wrapperData) : undefined);\n      images.push({ index: i, seriesDescription: img.seriesDescription, bitmap });\n    } catch (err) {\n      errors.push(`Failed to decode image ${i} (${img.seriesDescription}): ${(err as Error).message}`);\n    }\n  }\n\n  return {\n    studyName: payload.studyName || 'imaging study',\n    totalImages: payload.totalImages,\n    errors,\n    images,\n  };\n}\n\n/** Encode every decoded image at full resolution and quality 100 — the copy that goes to disk. */\nexport function encodeFullResolutionJpegs(study: DecodedStudy): DownloadStudyJpegsResult {\n  const images: StudyJpeg[] = study.images.map((img) => {\n    const encoded = convertBitmapToJpgPureJs(img.bitmap);\n    return {\n      index: img.index,\n      seriesDescription: img.seriesDescription,\n      width: encoded.width,\n      height: encoded.height,\n      bytes: encoded.buffer.length,\n      jpegBase64: Buffer.from(encoded.buffer).toString('base64'),\n    };\n  });\n  return {\n    studyName: study.studyName,\n    totalImages: study.totalImages,\n    returned: images.length,\n    errors: [...study.errors],\n    images,\n  };\n}\n\n/** Decode and encode at full resolution in one step. */\nexport function encodeStudyJpegs(payload: StudyImagePayload): DownloadStudyJpegsResult {\n  return encodeFullResolutionJpegs(decodeStudy(payload));\n}\n\n/**\n * Resolve a fresh image-viewer session from `fdiContext`, download the study's\n * CLO image data over HTTP, and encode every image as a full-resolution JPEG.\n *\n * `fdiContext` ({ fdi, ord }) comes from an entry returned by\n * `getImagingResults` — it is durable report-identifier data, so a fresh\n * single-use SAML viewer URL is fetched internally on every call.\n */\nexport async function downloadStudyJpegs(\n  req: MyChartRequest,\n  fdiContext: FdiContext,\n  opts: DownloadStudyJpegsOptions = {},\n): Promise<DownloadStudyJpegsResult> {\n  const capability = getCapability('download_imaging_study');\n  if (!capability?.rendersMedia) {\n    throw new Error('The imaging-download capability is missing from the registry.');\n  }\n  // executeCapability, not the implementation: this asserts which patient's\n  // chart is active before downloading anything. Reaching `run` here was a\n  // live bypass — the regex that was supposed to prevent it only scanned three\n  // other files, and this reached `run` via getCapability rather than by the\n  // one spelling it matched.\n  const payload = (await executeCapability(req, capability.id, {\n    image_id: encodeImageId(fdiContext),\n    study_name: opts.studyName ?? 'imaging study',\n  })) as StudyImagePayload;\n\n  return encodeStudyJpegs(payload);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Size-budgeted previews of an imaging study for the conversation.\n *\n * Claude Desktop rejects any tool result over 1MB, and a single full-size\n * radiograph is ~4MB as a quality-100 JPEG (5.7MB once base64-encoded). So\n * the pictures shown inline are previews: downscaled and re-encoded until the\n * whole set fits under {@link INLINE_BUDGET_BYTES}. Full resolution is what\n * `save_to_downloads` writes to disk, never what goes in the chat — and a\n * saving call shows no pictures at all, only where the files went.\n *\n * A CT is hundreds of slices, and hundreds of thumbnails is not a useful\n * preview of one, so at most {@link MAX_INLINE_IMAGES} are shown, spread\n * evenly across the study.\n *\n * Resizing is pica, pure JS/WASM — sharp is native and cannot ship in the\n * .mcpb bundle.\n */\nimport jpegJs from 'jpeg-js';\nimport createPica from 'pica';\nimport { grayscaleToRgba } from '../../../../scrapers/myChart/clo-image-parser/exporters/to_jpg_purejs';\nimport type { DecodedImage, DecodedStudy, StudyJpeg } from './download-study';\n\n/**\n * Base64 bytes the images may take in one tool result. Claude Desktop's cap is\n * 1MB on the whole result; the rest is headroom for the JSON summary and\n * whatever framing the host adds.\n */\nexport const INLINE_BUDGET_BYTES = 800 * 1024;\nexport const MAX_INLINE_IMAGES = 12;\nconst PREVIEW_QUALITY = 85;\n/** Longest-edge sizes to try, largest first; the first that fits the per-image budget wins. */\nconst EDGE_LADDER = [1400, 1200, 1024, 800, 640, 512, 400];\n\n// No canvas, no workers: this runs in a stdio server process.\nconst pica = createPica({ features: ['js', 'wasm'] });\n\nexport interface InlinePreviews {\n  images: StudyJpeg[];\n  /** True when at least one shown image is smaller than its source. */\n  downscaled: boolean;\n  errors: string[];\n}\n\n/** `count` indices spread evenly over `0..total-1`, always including both ends. */\nexport function spreadIndices(total: number, count: number): number[] {\n  if (total <= count) return Array.from({ length: total }, (_, i) => i);\n  if (count === 1) return [0];\n  return Array.from({ length: count }, (_, i) => Math.round((i * (total - 1)) / (count - 1)));\n}\n\nfunction base64Length(bytes: number): number {\n  return Math.ceil(bytes / 3) * 4;\n}\n\nasync function encodePreview(img: DecodedImage, budget: number): Promise<StudyJpeg> {\n  const { width, height } = img.bitmap;\n  const longest = Math.max(width, height);\n  // A source no bigger than the top rung is tried untouched first; rungs at or\n  // above the source size would only re-encode the same pixels, so they go.\n  const rungs = [...(longest <= EDGE_LADDER[0]! ? [longest] : []), ...EDGE_LADDER.filter((e) => e < longest)];\n  const src = grayscaleToRgba(img.bitmap.pixels);\n\n  let best: { width: number; height: number; data: Uint8Array } | undefined;\n  for (const edge of rungs) {\n    const toWidth = Math.max(1, Math.round((width * edge) / longest));\n    const toHeight = Math.max(1, Math.round((height * edge) / longest));\n    const data =\n      edge === longest\n        ? src\n        : await pica.resizeBuffer({ src, width, height, toWidth, toHeight });\n    const encoded = jpegJs.encode({ data, width: toWidth, height: toHeight }, PREVIEW_QUALITY);\n    best = { width: toWidth, height: toHeight, data: encoded.data };\n    if (base64Length(encoded.data.length) <= budget) break;\n  }\n  // `rungs` is never empty: either the source fits the top rung or every rung is below it.\n  const { width: w, height: h, data } = best!;\n  return {\n    index: img.index,\n    seriesDescription: img.seriesDescription,\n    width: w,\n    height: h,\n    bytes: data.length,\n    jpegBase64: Buffer.from(data).toString('base64'),\n  };\n}\n\n/**\n * Pick which images to show and encode each within an equal share of the\n * budget. If even the smallest rung of the ladder overshoots, the image is\n * shown at that size anyway — a slightly-too-large preview beats none.\n */\nexport async function inlinePreviews(study: DecodedStudy, budgetBytes: number = INLINE_BUDGET_BYTES): Promise<InlinePreviews> {\n  const chosen = spreadIndices(study.images.length, MAX_INLINE_IMAGES).map((i) => study.images[i]!); // indices < length\n  const perImage = chosen.length ? Math.floor(budgetBytes / chosen.length) : budgetBytes;\n  const images: StudyJpeg[] = [];\n  const errors: string[] = [];\n  let downscaled = false;\n\n  for (const img of chosen) {\n    try {\n      const preview = await encodePreview(img, perImage);\n      if (preview.width < img.bitmap.width || preview.height < img.bitmap.height) downscaled = true;\n      images.push(preview);\n    } catch (err) {\n      errors.push(`Failed to encode image ${img.index} (${img.seriesDescription}): ${(err as Error).message}`);\n    }\n  }\n\n  return { images, downscaled, errors };\n}\n","// base64 decode str -> Uint8Array, to load WA modules\n//\nconst BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\n\nexport default function base64decode (str) {\n  const input = str.replace(/[\\r\\n=]/g, ''), // remove CR/LF & padding to simplify scan\n    max = input.length\n\n  const out = new Uint8Array((max * 3) >> 2)\n\n  // Collect by 6*4 bits (3 bytes)\n\n  let bits = 0\n  let ptr = 0\n\n  for (let idx = 0; idx < max; idx++) {\n    if ((idx % 4 === 0) && idx) {\n      out[ptr++] = (bits >> 16) & 0xFF\n      out[ptr++] = (bits >> 8) & 0xFF\n      out[ptr++] = bits & 0xFF\n    }\n\n    bits = (bits << 6) | BASE64_MAP.indexOf(input.charAt(idx))\n  }\n\n  // Dump tail\n\n  const tailbits = (max % 4) * 6\n\n  if (tailbits === 0) {\n    out[ptr++] = (bits >> 16) & 0xFF\n    out[ptr++] = (bits >> 8) & 0xFF\n    out[ptr++] = bits & 0xFF\n  } else if (tailbits === 18) {\n    out[ptr++] = (bits >> 10) & 0xFF\n    out[ptr++] = (bits >> 2) & 0xFF\n  } else if (tailbits === 12) {\n    out[ptr++] = (bits >> 4) & 0xFF\n  }\n\n  return out\n}\n","// Detect WebAssembly support.\n// - Check global WebAssembly object\n// - Try to load simple module (can be disabled via CSP)\n//\nlet wa\n\nexport default function hasWebAssembly () {\n  // use cache if called before;\n  if (typeof wa !== 'undefined') return wa\n\n  wa = false\n\n  if (typeof WebAssembly === 'undefined') return wa\n\n  // If WebAssenbly is disabled, code can throw on compile\n  try {\n    // https://github.com/brion/min-wasm-fail/blob/master/min-wasm-fail.in.js\n    // Additional check that WA internals are correct\n\n    const bin = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 6, 1, 96, 1, 127, 1, 127, 3, 2, 1, 0, 5, 3, 1, 0, 1, 7, 8, 1, 4, 116, 101, 115, 116, 0, 0, 10, 16, 1, 14, 0, 32, 0, 65, 1, 54, 2, 0, 32, 0, 40, 2, 0, 11])\n    const module = new WebAssembly.Module(bin)\n    const instance = new WebAssembly.Instance(module, {})\n\n    // test storing to and loading from a non-zero location via a parameter.\n    // Safari on iOS 11.2.5 returns 0 unexpectedly at non-zero locations\n    if (instance.exports.test(4) !== 0) wa = true\n\n    return wa\n  } catch (__) {}\n\n  return wa\n}\n","import base64decode from './base64decode.mjs'\nimport hasWebAssembly from './wa_detect.mjs'\n\nconst DEFAULT_OPTIONS = {\n  js: true,\n  wasm: true\n}\n\nclass MultiMath {\n  constructor (options) {\n    const opts = Object.assign({}, DEFAULT_OPTIONS, options || {})\n\n    this.options = opts\n\n    this.__cache = {}\n\n    this.__init_promise = null\n    this.__modules = opts.modules || {}\n    this.__memory = null\n    this.__wasm = {}\n\n    this.__isLE = ((new Uint32Array((new Uint8Array([1, 0, 0, 0])).buffer))[0] === 1)\n\n    if (!this.options.js && !this.options.wasm) {\n      throw new Error('mathlib: at least \"js\" or \"wasm\" should be enabled')\n    }\n  }\n\n  has_wasm () { return hasWebAssembly() }\n\n  use (module) {\n    this.__modules[module.name] = module\n\n    // Pin the best possible implementation\n    if (this.options.wasm && this.has_wasm() && module.wasm_fn) {\n      this[module.name] = module.wasm_fn\n    } else {\n      this[module.name] = module.fn\n    }\n\n    return this\n  }\n\n  init () {\n    if (this.__init_promise) return this.__init_promise\n\n    if (!this.options.js && this.options.wasm && !this.has_wasm()) {\n      return Promise.reject(new Error('mathlib: only \"wasm\" was enabled, but it\\'s not supported'))\n    }\n\n    this.__init_promise = Promise.all(Object.keys(this.__modules).map(name => {\n      const module = this.__modules[name]\n\n      if (!this.options.wasm || !this.has_wasm() || !module.wasm_fn) return null\n\n      // If already compiled - exit\n      if (this.__wasm[name]) return null\n\n      // Compile wasm source\n      return WebAssembly.compile(base64decode(module.wasm_src))\n        .then(m => { this.__wasm[name] = m })\n    }))\n      .then(() => this)\n\n    return this.__init_promise\n  }\n\n  // //////////////////////////////////////////////////////////////////////////////\n  // Methods below are for internal use from plugins\n\n  // Increase current memory to include specified number of bytes. Do nothing if\n  // size is already ok. You probably don't need to call this method directly,\n  // because it will be invoked from `.__instance()`.\n  //\n  __reallocate (bytes) {\n    if (!this.__memory) {\n      this.__memory = new WebAssembly.Memory({\n        initial: Math.ceil(bytes / (64 * 1024))\n      })\n      return this.__memory\n    }\n\n    const mem_size = this.__memory.buffer.byteLength\n\n    if (mem_size < bytes) {\n      this.__memory.grow(Math.ceil((bytes - mem_size) / (64 * 1024)))\n    }\n\n    return this.__memory\n  }\n\n  // Returns instantinated webassembly item by name, with specified memory size\n  // and environment.\n  // - use cache if available\n  // - do sync module init, if async init was not called earlier\n  // - allocate memory if not enougth\n  // - can export functions to webassembly via \"env_extra\",\n  //   for example, { exp: Math.exp }\n  //\n  __instance (name, memsize, env_extra) {\n    if (memsize) this.__reallocate(memsize)\n\n    // If .init() was not called, do sync compile\n    if (!this.__wasm[name]) {\n      const module = this.__modules[name]\n      this.__wasm[name] = new WebAssembly.Module(base64decode(module.wasm_src))\n    }\n\n    if (!this.__cache[name]) {\n      const env_base = {\n        memoryBase: 0,\n        memory: this.__memory,\n        tableBase: 0,\n        table: new WebAssembly.Table({ initial: 0, element: 'anyfunc' })\n      }\n\n      this.__cache[name] = new WebAssembly.Instance(this.__wasm[name], {\n        env: Object.assign(env_base, env_extra || {})\n      })\n    }\n\n    return this.__cache[name]\n  }\n\n  // Helper to calculate memory aligh for pointers. Webassembly does not require\n  // this, but you may wish to experiment. Default base = 8;\n  //\n  __align (number, base) {\n    base = base || 8\n    const reminder = number % base\n    return number + (reminder ? base - reminder : 0)\n  }\n}\n\nexport default MultiMath\n","// Calculate Gaussian blur of an image using IIR filter\n// The method is taken from Intel's white paper and code example attached to it:\n// https://software.intel.com/en-us/articles/iir-gaussian-blur-filter\n// -implementation-using-intel-advanced-vector-extensions\n\nfunction gaussCoef (sigma) {\n  if (sigma < 0.5) {\n    sigma = 0.5\n  }\n\n  const a = Math.exp(0.726 * 0.726) / sigma,\n    g1 = Math.exp(-a),\n    g2 = Math.exp(-2 * a),\n    k = (1 - g1) * (1 - g1) / (1 + 2 * a * g1 - g2)\n\n  const a0 = k\n  const a1 = k * (a - 1) * g1\n  const a2 = k * (a + 1) * g1\n  const a3 = -k * g2\n  const b1 = 2 * g1\n  const b2 = -g2\n  const left_corner = (a0 + a1) / (1 - b1 - b2)\n  const right_corner = (a2 + a3) / (1 - b1 - b2)\n\n  // Attempt to force type to FP32.\n  return new Float32Array([a0, a1, a2, a3, b1, b2, left_corner, right_corner])\n}\n\nfunction convolveMono16 (src, out, line, coeff, width, height) {\n  // takes src image and writes the blurred and transposed result into out\n\n  let prev_src, curr_src, curr_out, prev_out, prev_prev_out\n  let src_index, out_index, line_index\n  let i, j\n  let coeff_a0, coeff_a1, coeff_b1, coeff_b2\n\n  for (i = 0; i < height; i++) {\n    src_index = i * width\n    out_index = i\n    line_index = 0\n\n    // left to right\n    prev_src = src[src_index]\n    prev_prev_out = prev_src * coeff[6]\n    prev_out = prev_prev_out\n\n    coeff_a0 = coeff[0]\n    coeff_a1 = coeff[1]\n    coeff_b1 = coeff[4]\n    coeff_b2 = coeff[5]\n\n    for (j = 0; j < width; j++) {\n      curr_src = src[src_index]\n\n      curr_out = curr_src * coeff_a0 +\n                 prev_src * coeff_a1 +\n                 prev_out * coeff_b1 +\n                 prev_prev_out * coeff_b2\n\n      prev_prev_out = prev_out\n      prev_out = curr_out\n      prev_src = curr_src\n\n      line[line_index] = prev_out\n      line_index++\n      src_index++\n    }\n\n    src_index--\n    line_index--\n    out_index += height * (width - 1)\n\n    // right to left\n    prev_src = src[src_index]\n    prev_prev_out = prev_src * coeff[7]\n    prev_out = prev_prev_out\n    curr_src = prev_src\n\n    coeff_a0 = coeff[2]\n    coeff_a1 = coeff[3]\n\n    for (j = width - 1; j >= 0; j--) {\n      curr_out = curr_src * coeff_a0 +\n                 prev_src * coeff_a1 +\n                 prev_out * coeff_b1 +\n                 prev_prev_out * coeff_b2\n\n      prev_prev_out = prev_out\n      prev_out = curr_out\n\n      prev_src = curr_src\n      curr_src = src[src_index]\n\n      out[out_index] = line[line_index] + prev_out\n\n      src_index--\n      line_index--\n      out_index -= height\n    }\n  }\n}\n\nfunction blurMono16 (src, width, height, radius) {\n  // Quick exit on zero radius\n  if (!radius) { return }\n\n  const out = new Uint16Array(src.length),\n    tmp_line = new Float32Array(Math.max(width, height))\n\n  const coeff = gaussCoef(radius)\n\n  convolveMono16(src, out, tmp_line, coeff, width, height, radius)\n  convolveMono16(out, src, tmp_line, coeff, height, width, radius)\n}\n\nexport default blurMono16\n","// Unsharp mask filter\n//\n// http://stackoverflow.com/a/23322820/1031804\n// USM(O) = O + (2 * (Amount / 100) * (O - GB))\n// GB - gaussian blur.\n//\n// Image is converted from RGB to HSV, unsharp mask is applied to the\n// brightness channel and then image is converted back to RGB.\n//\nimport { blurMono16 } from 'glur'\nimport type { MathImageBuffer } from '../mathlib'\n\nfunction hsv_v16 (img: MathImageBuffer, width: number, height: number): Uint16Array {\n  const size = width * height\n  const out = new Uint16Array(size)\n  let r, g, b, max\n  for (let i = 0; i < size; i++) {\n    r = img[4 * i]\n    g = img[4 * i + 1]\n    b = img[4 * i + 2]\n    max = (r >= g && r >= b) ? r : (g >= b && g >= r) ? g : b\n    out[i] = max << 8\n  }\n  return out\n}\n\nexport default function unsharp (\n  img: MathImageBuffer,\n  width: number,\n  height: number,\n  amount: number,\n  radius: number,\n  threshold: number\n): void {\n  let v1, v2, vmul\n  let diff, iTimes4\n\n  if (amount === 0 || radius < 0.5) {\n    return\n  }\n  if (radius > 2.0) {\n    radius = 2.0\n  }\n\n  const brightness = hsv_v16(img, width, height)\n\n  const blured = new Uint16Array(brightness) // copy, because blur modifies src\n\n  blurMono16(blured, width, height, radius)\n\n  const amountFp = (amount / 100 * 0x1000 + 0.5)|0\n  const thresholdFp = threshold << 8\n\n  const size = width * height\n\n  for (let i = 0; i < size; i++) {\n    v1 = brightness[i]\n    diff = v1 - blured[i]\n\n    if (Math.abs(diff) >= thresholdFp) {\n      // add unsharp mask to the brightness channel\n      v2 = v1 + ((amountFp * diff + 0x800) >> 12)\n\n      // Both v1 and v2 are within [0.0 .. 255.0] (0000-FF00) range, never going into\n      // [255.003 .. 255.996] (FF01-FFFF). This allows to round this value as (x+.5)|0\n      // later without overflowing.\n      v2 = v2 > 0xff00 ? 0xff00 : v2\n      v2 = v2 < 0x0000 ? 0x0000 : v2\n\n      // Avoid division by 0. V=0 means rgb(0,0,0), unsharp with unsharpAmount>0 cannot\n      // change this value (because diff between colors gets inflated), so no need to verify correctness.\n      v1 = v1 !== 0 ? v1 : 1\n\n      // Multiplying V in HSV model by a constant is equivalent to multiplying each component\n      // in RGB by the same constant (same for HSL), see also:\n      // https://beesbuzz.biz/code/16-hsv-color-transforms\n      vmul = ((v2 << 12) / v1)|0\n\n      // Result will be in [0..255] range because:\n      //  - all numbers are positive\n      //  - r,g,b <= (v1/256)\n      //  - r,g,b,(v1/256),(v2/256) <= 255\n      // So highest this number can get is X*255/X+0.5=255.5 which is < 256 and rounds down.\n\n      iTimes4 = i * 4\n      img[iTimes4] = (img[iTimes4] * vmul + 0x800) >> 12 // R\n      img[iTimes4 + 1] = (img[iTimes4 + 1] * vmul + 0x800) >> 12 // G\n      img[iTimes4 + 2] = (img[iTimes4 + 2] * vmul + 0x800) >> 12 // B\n    }\n  }\n}\n","import type { MathWasmContext, MathImageBuffer } from '../mathlib'\n\nexport default function unsharp (\n  this: MathWasmContext,\n  img: MathImageBuffer,\n  width: number,\n  height: number,\n  amount: number,\n  radius: number,\n  threshold: number\n): void {\n  if (amount === 0 || radius < 0.5) {\n    return\n  }\n\n  if (radius > 2.0) {\n    radius = 2.0\n  }\n\n  const pixels = width * height\n\n  const img_bytes_cnt = pixels * 4\n  const hsv_bytes_cnt = pixels * 2\n  const blur_bytes_cnt = pixels * 2\n  const blur_line_byte_cnt = Math.max(width, height) * 4 // float32 array\n  const blur_coeffs_byte_cnt = 8 * 4 // float32 array\n\n  const img_offset = 0\n  const hsv_offset = img_bytes_cnt\n  const blur_offset = hsv_offset + hsv_bytes_cnt\n  const blur_tmp_offset = blur_offset + blur_bytes_cnt\n  const blur_line_offset = blur_tmp_offset + blur_bytes_cnt\n  const blur_coeffs_offset = blur_line_offset + blur_line_byte_cnt\n\n  const instance = this.__instance(\n    'unsharp_mask',\n    img_bytes_cnt + hsv_bytes_cnt + blur_bytes_cnt * 2 + blur_line_byte_cnt + blur_coeffs_byte_cnt,\n    { exp: Math.exp }\n  )\n\n  // 32-bit copy is much faster in chrome\n  const img32 = new Uint32Array(img.buffer)\n  const mem32 = new Uint32Array(this.__memory!.buffer)\n  mem32.set(img32)\n\n  // HSL\n  let fn = (instance.exports.hsv_v16 || instance.exports._hsv_v16) as Function | undefined\n  if (!fn) throw new Error('WASM hsv_v16 function is not available')\n  fn(img_offset, hsv_offset, width, height)\n\n  // BLUR\n  fn = (instance.exports.blurMono16 || instance.exports._blurMono16) as Function | undefined\n  if (!fn) throw new Error('WASM blurMono16 function is not available')\n  fn(hsv_offset, blur_offset, blur_tmp_offset,\n    blur_line_offset, blur_coeffs_offset, width, height, radius)\n\n  // UNSHARP\n  fn = (instance.exports.unsharp || instance.exports._unsharp) as Function | undefined\n  if (!fn) throw new Error('WASM unsharp function is not available')\n  fn(img_offset, img_offset, hsv_offset,\n    blur_offset, width, height, amount, threshold)\n\n  // 32-bit copy is much faster in chrome\n  img32.set(new Uint32Array(this.__memory!.buffer, 0, pixels))\n}\n","// This is autogenerated file from math.wasm, don't edit.\n//\nexport default 'AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52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aiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL'\n","import fn from './unsharp_mask'\nimport wasm_fn from './unsharp_mask_wasm'\nimport wasm_src from './unsharp_mask_wasm_base64'\n\nexport default {\n  name: 'unsharp_mask' as const,\n  fn,\n  wasm_fn,\n  wasm_src\n}\n","import type { MathResizeFilter } from '../mathlib'\n\n// Filter definitions to build tables for\n// resizing convolvers.\n//\n// Presets for quality 0..3. Filter functions + window size\n//\nexport interface FilterInfo {\n  win: number\n  fn: (x: number) => number\n}\n\nconst filter: Record<MathResizeFilter, FilterInfo> = {\n  // Nearest neighbor\n  box: {\n    win: 0.5,\n    fn (x: number) {\n      if (x < 0) x = -x\n      return (x < 0.5) ? 1.0 : 0.0\n    }\n  },\n  // // Hamming\n  hamming: {\n    win: 1.0,\n    fn (x: number) {\n      if (x < 0) x = -x\n      if (x >= 1.0) { return 0.0 }\n      if (x < 1.19209290E-07) { return 1.0 }\n      const xpi = x * Math.PI\n      return ((Math.sin(xpi) / xpi) * (0.54 + 0.46 * Math.cos(xpi / 1.0)))\n    }\n  },\n  // Lanczos, win = 2\n  lanczos2: {\n    win: 2.0,\n    fn (x: number) {\n      if (x < 0) x = -x\n      if (x >= 2.0) { return 0.0 }\n      if (x < 1.19209290E-07) { return 1.0 }\n      const xpi = x * Math.PI\n      return (Math.sin(xpi) / xpi) * Math.sin(xpi / 2.0) / (xpi / 2.0)\n    }\n  },\n  // Lanczos, win = 3\n  lanczos3: {\n    win: 3.0,\n    fn (x: number) {\n      if (x < 0) x = -x\n      if (x >= 3.0) { return 0.0 }\n      if (x < 1.19209290E-07) { return 1.0 }\n      const xpi = x * Math.PI\n      return (Math.sin(xpi) / xpi) * Math.sin(xpi / 3.0) / (xpi / 3.0)\n    }\n  },\n  // Magic Kernel Sharp 2013, win = 2.5\n  // http://johncostella.com/magic/\n  mks2013: {\n    win: 2.5,\n    fn (x: number) {\n      if (x < 0) x = -x\n      if (x >= 2.5) { return 0.0 }\n      if (x >= 1.5) { return -0.125 * (x - 2.5) * (x - 2.5) }\n      if (x >= 0.5) { return 0.25 * (4 * x * x - 11 * x + 7) }\n      return 1.0625 - 1.75 * x * x\n    }\n  }\n}\n\nexport default {\n  filter\n}\n","// Calculate convolution filters for each destination point,\n// and pack data to Int16Array:\n//\n// [ shift, length, data..., shift2, length2, data..., ... ]\n//\n// - shift - offset in src image\n// - length - filter length (in src points)\n// - data - filter values sequence\n//\nimport FILTER_INFO from './resize_filter_info'\nimport type { MathResizeFilter } from '../mathlib'\n\n// Precision of fixed FP values\nconst FIXED_FRAC_BITS = 14\n\nfunction toFixedPoint (num: number): number {\n  return Math.round(num * ((1 << FIXED_FRAC_BITS) - 1))\n}\n\nexport default function resizeFilterGen (\n  filter: MathResizeFilter,\n  srcSize: number,\n  destSize: number,\n  scale: number,\n  offset: number\n): Int16Array {\n  const filterFunction = FILTER_INFO.filter[filter].fn\n\n  const scaleInverted = 1.0 / scale\n  const scaleClamped = Math.min(1.0, scale) // For upscale\n\n  // Filter window (averaging interval), scaled to src image\n  const srcWindow = FILTER_INFO.filter[filter].win / scaleClamped\n\n  let destPixel, srcPixel, srcFirst, srcLast, filterElementSize,\n    floatFilter, fxpFilter, total, pxl, idx, floatVal, filterTotal, filterVal\n  let leftNotEmpty, rightNotEmpty, filterShift, filterSize\n\n  const maxFilterElementSize = Math.floor((srcWindow + 1) * 2)\n  const packedFilter = new Int16Array((maxFilterElementSize + 2) * destSize)\n  let packedFilterPtr = 0\n\n  const slowCopy = !packedFilter.subarray || !packedFilter.set\n\n  // For each destination pixel calculate source range and built filter values\n  for (destPixel = 0; destPixel < destSize; destPixel++) {\n    // Scaling should be done relative to central pixel point\n    srcPixel = (destPixel + 0.5) * scaleInverted + offset\n\n    srcFirst = Math.max(0, Math.floor(srcPixel - srcWindow))\n    srcLast = Math.min(srcSize - 1, Math.ceil(srcPixel + srcWindow))\n\n    filterElementSize = srcLast - srcFirst + 1\n    floatFilter = new Float32Array(filterElementSize)\n    fxpFilter = new Int16Array(filterElementSize)\n\n    total = 0.0\n\n    // Fill filter values for calculated range\n    for (pxl = srcFirst, idx = 0; pxl <= srcLast; pxl++, idx++) {\n      floatVal = filterFunction(((pxl + 0.5) - srcPixel) * scaleClamped)\n      total += floatVal\n      floatFilter[idx] = floatVal\n    }\n\n    // Normalize filter, convert to fixed point and accumulate conversion error\n    filterTotal = 0\n\n    for (idx = 0; idx < floatFilter.length; idx++) {\n      filterVal = floatFilter[idx] / total\n      filterTotal += filterVal\n      fxpFilter[idx] = toFixedPoint(filterVal)\n    }\n\n    // Compensate normalization error, to minimize brightness drift\n    fxpFilter[destSize >> 1] += toFixedPoint(1.0 - filterTotal)\n\n    //\n    // Now pack filter to useable form\n    //\n    // 1. Trim leading and trailing zero values, and compensate shift/length\n    // 2. Put all to single array in this format:\n    //\n    //    [ pos shift, data length, value1, value2, value3, ... ]\n    //\n\n    leftNotEmpty = 0\n    while (leftNotEmpty < fxpFilter.length && fxpFilter[leftNotEmpty] === 0) {\n      leftNotEmpty++\n    }\n\n    if (leftNotEmpty < fxpFilter.length) {\n      rightNotEmpty = fxpFilter.length - 1\n      while (rightNotEmpty > 0 && fxpFilter[rightNotEmpty] === 0) {\n        rightNotEmpty--\n      }\n\n      filterShift = srcFirst + leftNotEmpty\n      filterSize = rightNotEmpty - leftNotEmpty + 1\n\n      packedFilter[packedFilterPtr++] = filterShift // shift\n      packedFilter[packedFilterPtr++] = filterSize // size\n\n      if (!slowCopy) {\n        packedFilter.set(fxpFilter.subarray(leftNotEmpty, rightNotEmpty + 1), packedFilterPtr)\n        packedFilterPtr += filterSize\n      } else {\n        // fallback for old IE < 11, without subarray/set methods\n        for (idx = leftNotEmpty; idx <= rightNotEmpty; idx++) {\n          packedFilter[packedFilterPtr++] = fxpFilter[idx]\n        }\n      }\n    } else {\n      // zero data, write header only\n      packedFilter[packedFilterPtr++] = 0 // shift\n      packedFilter[packedFilterPtr++] = 0 // size\n    }\n  }\n  return packedFilter\n}\n","// Resize convolvers, pure JS implementation\n//\n// Precision of fixed FP values\n// var FIXED_FRAC_BITS = 14;\n\nfunction clampTo8 (i: number): number { return i < 0 ? 0 : (i > 255 ? 255 : i) }\nfunction clampNegative (i: number): number { return i >= 0 ? i : 0 }\n\nimport type { MathImageBuffer } from '../mathlib'\n\n// Convolve image data in horizontal direction. Can be used for:\n//\n// 1. bitmap with premultiplied alpha\n// 2. bitmap without alpha (all values 255)\n//\n// Notes:\n//\n// - output is transposed\n// - output resolution is ~15 bits per channel(for better precision).\n//\nfunction convolveHor (\n  src: MathImageBuffer,\n  dest: Uint16Array,\n  srcW: number,\n  srcH: number,\n  destW: number,\n  filters: Int16Array\n): void {\n  let r, g, b, a\n  let filterPtr, filterShift, filterSize\n  let srcPtr, srcY, destX, filterVal\n  let srcOffset = 0, destOffset = 0\n\n  // For each row\n  for (srcY = 0; srcY < srcH; srcY++) {\n    filterPtr = 0\n\n    // Apply precomputed filters to each destination row point\n    for (destX = 0; destX < destW; destX++) {\n      // Get the filter that determines the current output pixel.\n      filterShift = filters[filterPtr++]\n      filterSize = filters[filterPtr++]\n\n      srcPtr = (srcOffset + (filterShift * 4))|0\n\n      r = g = b = a = 0\n\n      // Apply the filter to the row to get the destination pixel r, g, b, a\n      for (; filterSize > 0; filterSize--) {\n        filterVal = filters[filterPtr++]\n\n        // Use reverse order to workaround deopts in old v8 (node v.10)\n        // Big thanks to @mraleph (Vyacheslav Egorov) for the tip.\n        a = (a + filterVal * src[srcPtr + 3])|0\n        b = (b + filterVal * src[srcPtr + 2])|0\n        g = (g + filterVal * src[srcPtr + 1])|0\n        r = (r + filterVal * src[srcPtr])|0\n        srcPtr = (srcPtr + 4)|0\n      }\n\n      // Store 15 bits between passes for better precision\n      // Instead of shift to 14 (FIXED_FRAC_BITS), shift to 7 only\n      //\n      dest[destOffset + 3] = clampNegative(a >> 7)\n      dest[destOffset + 2] = clampNegative(b >> 7)\n      dest[destOffset + 1] = clampNegative(g >> 7)\n      dest[destOffset] = clampNegative(r >> 7)\n      destOffset = (destOffset + srcH * 4)|0\n    }\n\n    destOffset = ((srcY + 1) * 4)|0\n    srcOffset = ((srcY + 1) * srcW * 4)|0\n  }\n}\n\n// Supplementary method for `convolveHor()`\n//\nfunction convolveVert (\n  src: Uint16Array,\n  dest: Uint8Array,\n  srcW: number,\n  srcH: number,\n  destW: number,\n  filters: Int16Array\n): void {\n  let r, g, b, a\n  let filterPtr, filterShift, filterSize\n  let srcPtr, srcY, destX, filterVal\n  let srcOffset = 0, destOffset = 0\n\n  // For each row\n  for (srcY = 0; srcY < srcH; srcY++) {\n    filterPtr = 0\n\n    // Apply precomputed filters to each destination row point\n    for (destX = 0; destX < destW; destX++) {\n      // Get the filter that determines the current output pixel.\n      filterShift = filters[filterPtr++]\n      filterSize = filters[filterPtr++]\n\n      srcPtr = (srcOffset + (filterShift * 4))|0\n\n      r = g = b = a = 0\n\n      // Apply the filter to the row to get the destination pixel r, g, b, a\n      for (; filterSize > 0; filterSize--) {\n        filterVal = filters[filterPtr++]\n\n        // Use reverse order to workaround deopts in old v8 (node v.10)\n        // Big thanks to @mraleph (Vyacheslav Egorov) for the tip.\n        a = (a + filterVal * src[srcPtr + 3])|0\n        b = (b + filterVal * src[srcPtr + 2])|0\n        g = (g + filterVal * src[srcPtr + 1])|0\n        r = (r + filterVal * src[srcPtr])|0\n        srcPtr = (srcPtr + 4)|0\n      }\n\n      // Sync with premultiplied version for exact result match\n      r >>= 7\n      g >>= 7\n      b >>= 7\n      a >>= 7\n\n      // Bring this value back in range + round result.\n      //\n      dest[destOffset + 3] = clampTo8((a + (1 << 13)) >> 14)\n      dest[destOffset + 2] = clampTo8((b + (1 << 13)) >> 14)\n      dest[destOffset + 1] = clampTo8((g + (1 << 13)) >> 14)\n      dest[destOffset] = clampTo8((r + (1 << 13)) >> 14)\n      destOffset = (destOffset + srcH * 4)|0\n    }\n\n    destOffset = ((srcY + 1) * 4)|0\n    srcOffset = ((srcY + 1) * srcW * 4)|0\n  }\n}\n\n// Premultiply & convolve image data in horizontal direction. Can be used for:\n//\n// - Any bitmap data, extracted with `.getImageData()` method (with\n//   non-premultiplied alpha)\n//\n// For images without alpha channel this method is slower than `convolveHor()`\n//\nfunction convolveHorWithPre (\n  src: MathImageBuffer,\n  dest: Uint16Array,\n  srcW: number,\n  srcH: number,\n  destW: number,\n  filters: Int16Array\n): void {\n  let r, g, b, a, alpha\n  let filterPtr, filterShift, filterSize\n  let srcPtr, srcY, destX, filterVal\n  let srcOffset = 0, destOffset = 0\n\n  // For each row\n  for (srcY = 0; srcY < srcH; srcY++) {\n    filterPtr = 0\n\n    // Apply precomputed filters to each destination row point\n    for (destX = 0; destX < destW; destX++) {\n      // Get the filter that determines the current output pixel.\n      filterShift = filters[filterPtr++]\n      filterSize = filters[filterPtr++]\n\n      srcPtr = (srcOffset + (filterShift * 4))|0\n\n      r = g = b = a = 0\n\n      // Apply the filter to the row to get the destination pixel r, g, b, a\n      for (; filterSize > 0; filterSize--) {\n        filterVal = filters[filterPtr++]\n\n        // Use reverse order to workaround deopts in old v8 (node v.10)\n        // Big thanks to @mraleph (Vyacheslav Egorov) for the tip.\n        alpha = src[srcPtr + 3]\n        a = (a + filterVal * alpha)|0\n        b = (b + filterVal * src[srcPtr + 2] * alpha)|0\n        g = (g + filterVal * src[srcPtr + 1] * alpha)|0\n        r = (r + filterVal * src[srcPtr] * alpha)|0\n        srcPtr = (srcPtr + 4)|0\n      }\n\n      // Premultiply is (* alpha / 255).\n      // Postpone division for better performance\n      b = (b / 255)|0\n      g = (g / 255)|0\n      r = (r / 255)|0\n\n      // Store 15 bits between passes for better precision\n      // Instead of shift to 14 (FIXED_FRAC_BITS), shift to 7 only\n      //\n      dest[destOffset + 3] = clampNegative(a >> 7)\n      dest[destOffset + 2] = clampNegative(b >> 7)\n      dest[destOffset + 1] = clampNegative(g >> 7)\n      dest[destOffset] = clampNegative(r >> 7)\n      destOffset = (destOffset + srcH * 4)|0\n    }\n\n    destOffset = ((srcY + 1) * 4)|0\n    srcOffset = ((srcY + 1) * srcW * 4)|0\n  }\n}\n\n// Supplementary method for `convolveHorWithPre()`\n//\nfunction convolveVertWithPre (\n  src: Uint16Array,\n  dest: Uint8Array,\n  srcW: number,\n  srcH: number,\n  destW: number,\n  filters: Int16Array\n): void {\n  let r, g, b, a\n  let filterPtr, filterShift, filterSize\n  let srcPtr, srcY, destX, filterVal\n  let srcOffset = 0, destOffset = 0\n\n  // For each row\n  for (srcY = 0; srcY < srcH; srcY++) {\n    filterPtr = 0\n\n    // Apply precomputed filters to each destination row point\n    for (destX = 0; destX < destW; destX++) {\n      // Get the filter that determines the current output pixel.\n      filterShift = filters[filterPtr++]\n      filterSize = filters[filterPtr++]\n\n      srcPtr = (srcOffset + (filterShift * 4))|0\n\n      r = g = b = a = 0\n\n      // Apply the filter to the row to get the destination pixel r, g, b, a\n      for (; filterSize > 0; filterSize--) {\n        filterVal = filters[filterPtr++]\n\n        // Use reverse order to workaround deopts in old v8 (node v.10)\n        // Big thanks to @mraleph (Vyacheslav Egorov) for the tip.\n        a = (a + filterVal * src[srcPtr + 3])|0\n        b = (b + filterVal * src[srcPtr + 2])|0\n        g = (g + filterVal * src[srcPtr + 1])|0\n        r = (r + filterVal * src[srcPtr])|0\n        srcPtr = (srcPtr + 4)|0\n      }\n\n      // Downscale to leave room for un-premultiply\n      r >>= 7\n      g >>= 7\n      b >>= 7\n      a >>= 7\n\n      // Un-premultiply\n      a = clampTo8((a + (1 << 13)) >> 14)\n      if (a > 0) {\n        r = (r * 255 / a)|0\n        g = (g * 255 / a)|0\n        b = (b * 255 / a)|0\n      }\n\n      // Bring this value back in range + round result.\n      // Shift value = FIXED_FRAC_BITS + 7\n      //\n      dest[destOffset + 3] = a\n      dest[destOffset + 2] = clampTo8((b + (1 << 13)) >> 14)\n      dest[destOffset + 1] = clampTo8((g + (1 << 13)) >> 14)\n      dest[destOffset] = clampTo8((r + (1 << 13)) >> 14)\n      destOffset = (destOffset + srcH * 4)|0\n    }\n\n    destOffset = ((srcY + 1) * 4)|0\n    srcOffset = ((srcY + 1) * srcW * 4)|0\n  }\n}\n\nexport {\n  convolveHor,\n  convolveVert,\n  convolveHorWithPre,\n  convolveVertWithPre\n}\n","import createFilters from './resize_filter_gen'\nimport { convolveHor, convolveVert, convolveHorWithPre, convolveVertWithPre } from './convolve'\nimport type { MathResizeOptions, MathImageBuffer } from '../mathlib'\n\nfunction hasAlpha (src: MathImageBuffer, width: number, height: number): boolean {\n  let ptr = 3\n  const len = (width * height * 4)|0\n  while (ptr < len) {\n    if (src[ptr] !== 255) return true\n    ptr = (ptr + 4)|0\n  }\n  return false\n}\n\nfunction resetAlpha (dst: Uint8Array, width: number, height: number): void {\n  let ptr = 3\n  const len = (width * height * 4)|0\n  while (ptr < len) { dst[ptr] = 0xFF; ptr = (ptr + 4)|0 }\n}\n\nexport default function resize (options: MathResizeOptions): Uint8Array {\n  const src = options.src\n  const srcW = options.width\n  const srcH = options.height\n  const destW = options.toWidth\n  const destH = options.toHeight\n  const scaleX = options.scaleX || options.toWidth / options.width\n  const scaleY = options.scaleY || options.toHeight / options.height\n  const offsetX = options.offsetX || 0\n  const offsetY = options.offsetY || 0\n  const dest = options.dest || new Uint8Array(destW * destH * 4)\n\n  const filter = typeof options.filter === 'undefined' ? 'mks2013' : options.filter\n  const filtersX = createFilters(filter, srcW, destW, scaleX, offsetX),\n    filtersY = createFilters(filter, srcH, destH, scaleY, offsetY)\n\n  const tmp = new Uint16Array(destW * srcH * 4)\n\n  // Autodetect if alpha channel exists, and use appropriate method\n  if (hasAlpha(src, srcW, srcH)) {\n    convolveHorWithPre(src, tmp, srcW, srcH, destW, filtersX)\n    convolveVertWithPre(tmp, dest, srcH, destW, destH, filtersY)\n  } else {\n    convolveHor(src, tmp, srcW, srcH, destW, filtersX)\n    convolveVert(tmp, dest, srcH, destW, destH, filtersY)\n    resetAlpha(dest, destW, destH)\n  }\n\n  return dest\n}\n","import createFilters from './resize_filter_gen'\nimport type { MathResizeOptions, MathWasmContext, MathImageBuffer } from '../mathlib'\n\nfunction hasAlpha (src: MathImageBuffer, width: number, height: number): boolean {\n  let ptr = 3\n  const len = (width * height * 4)|0\n  while (ptr < len) {\n    if (src[ptr] !== 255) return true\n    ptr = (ptr + 4)|0\n  }\n  return false\n}\n\nfunction resetAlpha (dst: Uint8Array, width: number, height: number): void {\n  let ptr = 3\n  const len = (width * height * 4)|0\n  while (ptr < len) { dst[ptr] = 0xFF; ptr = (ptr + 4)|0 }\n}\n\nfunction asUint8Array (src: Int16Array): Uint8Array {\n  return new Uint8Array(src.buffer, 0, src.byteLength)\n}\n\nlet IS_LE = true\n// should not crash everything on module load in old browsers\ntry {\n  IS_LE = ((new Uint32Array((new Uint8Array([1, 0, 0, 0])).buffer))[0] === 1)\n} catch (__) {}\n\nfunction copyInt16asLE (src: Int16Array, target: Uint8Array, target_offset: number): void {\n  if (IS_LE) {\n    target.set(asUint8Array(src), target_offset)\n    return\n  }\n\n  for (let ptr = target_offset, i = 0; i < src.length; i++) {\n    const data = src[i]\n    target[ptr++] = data & 0xFF\n    target[ptr++] = (data >> 8) & 0xFF\n  }\n}\n\nexport default function resize_wasm (this: MathWasmContext, options: MathResizeOptions): Uint8Array {\n  const src = options.src\n  const srcW = options.width\n  const srcH = options.height\n  const destW = options.toWidth\n  const destH = options.toHeight\n  const scaleX = options.scaleX || options.toWidth / options.width\n  const scaleY = options.scaleY || options.toHeight / options.height\n  const offsetX = options.offsetX || 0.0\n  const offsetY = options.offsetY || 0.0\n  const dest = options.dest || new Uint8Array(destW * destH * 4)\n\n  const filter = typeof options.filter === 'undefined' ? 'mks2013' : options.filter\n  const filtersX = createFilters(filter, srcW, destW, scaleX, offsetX),\n    filtersY = createFilters(filter, srcH, destH, scaleY, offsetY)\n\n  // destination is 0 too.\n  const src_offset = 0\n  const src_size = Math.max(src.byteLength, dest.byteLength)\n  // buffer between convolve passes\n  const tmp_offset = this.__align(src_offset + src_size)\n  const tmp_size = srcH * destW * 4 * 2 // 2 bytes per channel\n\n  const filtersX_offset = this.__align(tmp_offset + tmp_size)\n  const filtersY_offset = this.__align(filtersX_offset + filtersX.byteLength)\n  const alloc_bytes = filtersY_offset + filtersY.byteLength\n\n  const instance = this.__instance('resize', alloc_bytes)\n\n  //\n  // Fill memory block with data to process\n  //\n\n  const mem = new Uint8Array(this.__memory!.buffer)\n  const mem32 = new Uint32Array(this.__memory!.buffer)\n\n  // 32-bit copy is much faster in chrome\n  const src32 = new Uint32Array(src.buffer)\n  mem32.set(src32)\n\n  // We should guarantee LE bytes order. Filters are not big, so\n  // speed difference is not significant vs direct .set()\n  copyInt16asLE(filtersX, mem, filtersX_offset)\n  copyInt16asLE(filtersY, mem, filtersY_offset)\n\n  // Now call webassembly method\n  // emsdk does method names with '_'\n  const fn = (instance.exports.convolveHV || instance.exports._convolveHV) as Function | undefined\n  if (!fn) throw new Error('WASM resize function is not available')\n\n  if (hasAlpha(src, srcW, srcH)) {\n    fn(filtersX_offset, filtersY_offset, tmp_offset, srcW, srcH, destW, destH, 1)\n  } else {\n    fn(filtersX_offset, filtersY_offset, tmp_offset, srcW, srcH, destW, destH, 0)\n    resetAlpha(dest, destW, destH)\n  }\n\n  //\n  // Copy data back to typed array\n  //\n\n  // 32-bit copy is much faster in chrome\n  const dest32 = new Uint32Array(dest.buffer)\n  dest32.set(new Uint32Array(this.__memory!.buffer, 0, destH * destW))\n\n  return dest\n}\n","// This is autogenerated file from math.wasm, don't edit.\n//\nexport default 'AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEYA2AGf39/f39/AGAAAGAIf39/f39/f38AAg8BA2VudgZtZW1vcnkCAAADBwYBAAAAAAIGBgF/AEEACweUAQgRX193YXNtX2NhbGxfY3Rvcn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wgDWohDSAJQQRqIQkgBkEBaiEGIAJBAWsiAg0ACyAHQQd1IQggDUEHdSEJIA9BB3UhBiAKIBNqIQcgDkEHdQtBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKGyIKQf8BcQRAIAlB/wFsIAJtIQkgCEH/AWwgAm0hCCAGQf8BbCACbSEGCyABIAxBAnRqIAlBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKG0EIdEGA/gNxIAZBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKG0EQdEGAgPwHcSAKQRh0ciAIQYBAa0EOdSICQf8BIAJB/wFIGyICQQAgAkEAShtycjYCACADIAxqIQwgEkEBaiISIARHDQALIBQgC0EBaiILbCERIAMgC0cNAAsLC0AAIAcEQEEAIAIgAyAEIAUgABADIAJBACAEIAUgBiABEAQPC0EAIAIgAyAEIAUgABABIAJBACAEIAUgBiABEAIL'\n","import fn from './resize'\nimport wasm_fn from './resize_wasm'\nimport wasm_src from './convolve_wasm_base64'\n\nexport default {\n  name: 'resize' as const,\n  fn,\n  wasm_fn,\n  wasm_src\n}\n","// Collection of math functions\n//\n// 1. Combine components together\n// 2. Has async init to load wasm modules\n//\nimport { MultiMath } from 'multimath'\n\nimport mm_unsharp_mask from './mm_unsharp_mask'\nimport mm_resize from './mm_resize'\n\nexport type MathFeaturesMap = { js: boolean; wasm: boolean }\nexport type { MultiMathPlugin as MathPlugin } from 'multimath'\nexport type MathImageBuffer = Uint8Array | Uint8ClampedArray\nexport type MathWasmContext = MultiMath\n\nexport type MathResizeFilter = 'box' | 'hamming' | 'lanczos2' | 'lanczos3' | 'mks2013'\n\nexport interface MathResizeOptions {\n  src: MathImageBuffer\n  width: number\n  height: number\n  toWidth: number\n  toHeight: number\n  dest?: Uint8Array\n  scaleX: number\n  scaleY: number\n  offsetX: number\n  offsetY: number\n  filter: MathResizeFilter\n}\n\nexport interface MathResizeAndUnsharpOptions extends MathResizeOptions {\n  unsharpAmount: number\n  unsharpRadius: number\n  unsharpThreshold: number\n}\n\nexport default class MathLib extends MultiMath {\n  declare features: MathFeaturesMap\n  declare resize: typeof mm_resize.fn\n  declare unsharp_mask: typeof mm_unsharp_mask.fn\n\n  constructor (requested_features?: readonly string[]) {\n    const __requested_features = requested_features || []\n\n    const features = {\n      js: __requested_features.indexOf('js') >= 0,\n      wasm: __requested_features.indexOf('wasm') >= 0\n    }\n\n    super(features)\n\n    this.features = {\n      js: features.js,\n      wasm: features.wasm && this.has_wasm()\n    }\n\n    this.use(mm_unsharp_mask)\n    this.use(mm_resize)\n  }\n\n  resizeAndUnsharp (options: MathResizeAndUnsharpOptions): Uint8Array {\n    const result = this.resize(options)\n\n    if (options.unsharpAmount) {\n      this.unsharp_mask(\n        result,\n        options.toWidth,\n        options.toHeight,\n        options.unsharpAmount,\n        options.unsharpRadius,\n        options.unsharpThreshold\n      )\n    }\n\n    return result\n  }\n}\n","const GC_INTERVAL = 100\n\n// Acquired items\nexport interface PoolResource<T> {\n  value: T\n  release: () => void\n}\n\n// Internal storage format\ninterface PoolResourceDescriptor<T> {\n  id: number\n  lastUsed: number\n  value: T\n  destroy: () => void\n}\n\nexport default class Pool<T> {\n  create: () => { value: T, destroy: () => void }\n  available: Array<PoolResourceDescriptor<T>>\n  acquired: Record<number, PoolResourceDescriptor<T>>\n  lastId: number\n  timeoutId: ReturnType<typeof setTimeout> | 0\n  idle: number\n\n  constructor (create: () => { value: T, destroy: () => void }, idle?: number) {\n    this.create = create\n\n    this.available = []\n    this.acquired = {}\n    this.lastId = 1\n\n    this.timeoutId = 0\n    this.idle = idle || 2000\n  }\n\n  acquire (): PoolResource<T> {\n    let descriptor: PoolResourceDescriptor<T>\n\n    if (this.available.length !== 0) {\n      descriptor = this.available.pop() as PoolResourceDescriptor<T>\n    } else {\n      const init = this.create()\n      descriptor = { ...init, id: this.lastId++, lastUsed: 0 }\n    }\n    this.acquired[descriptor.id] = descriptor\n    return { value: descriptor.value, release: () => this.release(descriptor) }\n  }\n\n  release (descriptor: PoolResourceDescriptor<T>): void {\n    delete this.acquired[descriptor.id]\n\n    descriptor.lastUsed = Date.now()\n    this.available.push(descriptor)\n\n    if (this.timeoutId === 0) {\n      this.timeoutId = setTimeout(() => this.gc(), GC_INTERVAL)\n    }\n  }\n\n  gc (): void {\n    const now = Date.now()\n\n    this.available = this.available.filter(descriptor => {\n      if (now - descriptor.lastUsed > this.idle) {\n        descriptor.destroy()\n        return false\n      }\n      return true\n    })\n\n    if (this.available.length !== 0) {\n      this.timeoutId = setTimeout(() => this.gc(), GC_INTERVAL)\n    } else {\n      this.timeoutId = 0\n    }\n  }\n}\n","import type { CibResizeQuality, Filter, Limiter, PicaCanvas } from './types'\n\n// Uses constructor.name — safe because all targets are browser built-ins or\n// native Node.js library classes that minifiers don't rename. If this ever\n// breaks after a toolchain change, fall back to Object.prototype.toString:\n//   Object.prototype.toString.call(obj) === '[object HTMLCanvasElement]'  etc.\nfunction objClass (obj: unknown): string {\n  return (obj as any)?.constructor?.name ?? ''\n}\n\nexport function isCanvas (element: unknown): element is PicaCanvas {\n  const cname = objClass(element)\n\n  return cname === 'HTMLCanvasElement' ||\n         cname === 'OffscreenCanvas' ||\n         cname === 'Canvas' /* node-canvas */ ||\n         cname === 'CanvasElement' /* @napi-rs/canvas */\n}\n\nexport function isImage (element: unknown): element is HTMLImageElement {\n  return objClass(element) === 'HTMLImageElement'\n}\n\nexport function isImageBitmap (element: unknown): element is ImageBitmap {\n  return objClass(element) === 'ImageBitmap'\n}\n\nexport function limiter (concurrency: number): Limiter {\n  let active = 0\n  const queue: Array<() => void> = []\n\n  function roll () {\n    if (active < concurrency && queue.length) {\n      active++\n      queue.shift()?.()\n    }\n  }\n\n  return function limit<T> (fn: () => Promise<T>): Promise<T> {\n    return new Promise((resolve, reject) => {\n      queue.push(() => {\n        fn().then(\n          result => {\n            resolve(result)\n            active--\n            roll()\n          },\n          err => {\n            reject(err)\n            active--\n            roll()\n          }\n        )\n      })\n\n      roll()\n    })\n  }\n}\n\nexport function cib_quality_name (num: number): ResizeQuality {\n  switch (num) {\n    case 0: return 'pixelated'\n    case 1: return 'low'\n    case 2: return 'medium'\n  }\n  return 'high'\n}\n\nconst CIB_QUALITY_FILTERS: Filter[] = ['box', 'hamming', 'lanczos2', 'lanczos3']\n\nexport function cib_quality_filter (num: CibResizeQuality): Filter {\n  return CIB_QUALITY_FILTERS[num]\n}\n\nexport function is_cib_filter (filter: Filter): boolean {\n  return CIB_QUALITY_FILTERS.indexOf(filter) >= 0\n}\n\nexport function filter_to_cib_quality (filter: Filter): CibResizeQuality | undefined {\n  const index = CIB_QUALITY_FILTERS.indexOf(filter)\n\n  return index >= 0 ? index as CibResizeQuality : undefined\n}\n\ntype ResizeQuality = 'pixelated' | 'low' | 'medium' | 'high'\n","export type Stage = [width: number, height: number]\n\n// Add intermediate resizing steps when scaling down by a very large factor.\n//\n// For example, when resizing 10000x10000 down to 10x10, it'll resize it to\n// 300x300 first.\n//\n// It's needed because tiler has issues when the entire tile is scaled down\n// to a few pixels (1024px source tile with border size 3 should result in\n// at least 3+3+2 = 8px target tile, so max scale factor is 128 here).\n//\n// Also, adding intermediate steps can speed up processing if we use lower\n// quality algorithms for first stages.\n//\n\n// min size = 0 results in infinite loop,\n// min size = 1 can consume large amount of memory\nconst MIN_INNER_TILE_SIZE = 2\n\nconst DEST_TILE_BORDER = 3 // Max possible filter window size\n\nexport default function createStages (\n  fromWidth: number,\n  fromHeight: number,\n  toWidth: number,\n  toHeight: number,\n  srcTileSize: number\n): Stage[] {\n  const scaleX = toWidth / fromWidth\n  const scaleY = toHeight / fromHeight\n\n  // derived from createRegions equation:\n  // innerTileWidth = pixelFloor(srcTileSize * scaleX) - 2 * destTileBorder;\n  const minScale = (2 * DEST_TILE_BORDER + MIN_INNER_TILE_SIZE + 1) / srcTileSize\n\n  // refuse to scale image multiple times by less than twice each time,\n  // it could only happen because of invalid options\n  if (minScale > 0.5) return [[toWidth, toHeight]]\n\n  const stageCount = Math.ceil(Math.log(Math.min(scaleX, scaleY)) / Math.log(minScale))\n\n  // no additional resizes are necessary,\n  // stageCount can be zero or be negative when enlarging the image\n  if (stageCount <= 1) return [[toWidth, toHeight]]\n\n  const result: Stage[] = []\n\n  for (let i = 0; i < stageCount; i++) {\n    const width = Math.round(\n      Math.pow(\n        Math.pow(fromWidth, stageCount - i - 1) * Math.pow(toWidth, i + 1),\n        1 / stageCount\n      )\n    )\n\n    const height = Math.round(\n      Math.pow(\n        Math.pow(fromHeight, stageCount - i - 1) * Math.pow(toHeight, i + 1),\n        1 / stageCount\n      )\n    )\n\n    result.push([width, height])\n  }\n\n  return result\n}\n","export interface Tile {\n  toX: number\n  toY: number\n  toWidth: number\n  toHeight: number\n  toInnerX: number\n  toInnerY: number\n  toInnerWidth: number\n  toInnerHeight: number\n  offsetX: number\n  offsetY: number\n  scaleX: number\n  scaleY: number\n  x: number\n  y: number\n  width: number\n  height: number\n}\n\nexport interface TilerOptions {\n  width: number\n  height: number\n  srcTileSize: number\n  toWidth: number\n  toHeight: number\n  destTileBorder: number\n}\n\n// Split original image into multiple 1024x1024 chunks to reduce memory usage\n// (images have to be unpacked into typed arrays for resizing) and allow\n// parallel processing of multiple tiles at a time.\n//\n\n/*\n * pixelFloor and pixelCeil are modified versions of Math.floor and Math.ceil\n * functions which take into account floating point arithmetic errors.\n * Those errors can cause undesired increments/decrements of sizes and offsets:\n * Math.ceil(36 / (36 / 500)) = 501\n * pixelCeil(36 / (36 / 500)) = 500\n */\n\nconst PIXEL_EPSILON = 1e-5\n\nfunction pixelFloor (x: number): number {\n  const nearest = Math.round(x)\n\n  if (Math.abs(x - nearest) < PIXEL_EPSILON) { return nearest }\n  return Math.floor(x)\n}\n\nfunction pixelCeil (x: number): number {\n  const nearest = Math.round(x)\n\n  if (Math.abs(x - nearest) < PIXEL_EPSILON) { return nearest }\n  return Math.ceil(x)\n}\n\nexport default function createRegions (options: TilerOptions): Tile[] {\n  const scaleX = options.toWidth / options.width\n  const scaleY = options.toHeight / options.height\n\n  const innerTileWidth = pixelFloor(options.srcTileSize * scaleX) - 2 * options.destTileBorder\n  const innerTileHeight = pixelFloor(options.srcTileSize * scaleY) - 2 * options.destTileBorder\n\n  // prevent infinite loop, this should never happen\n  if (innerTileWidth < 1 || innerTileHeight < 1) {\n    throw new Error('Internal error in pica: target tile width/height is too small.')\n  }\n\n  let x, y\n  let innerX, innerY, toTileWidth, toTileHeight\n  const tiles: Tile[] = []\n  let tile: Tile\n\n  // we go top-to-bottom instead of left-to-right so the image is displayed\n  // from top to bottom in the browser\n  for (innerY = 0; innerY < options.toHeight; innerY += innerTileHeight) {\n    for (innerX = 0; innerX < options.toWidth; innerX += innerTileWidth) {\n      x = innerX - options.destTileBorder\n      if (x < 0) { x = 0 }\n      toTileWidth = innerX + innerTileWidth + options.destTileBorder - x\n      if (x + toTileWidth >= options.toWidth) {\n        toTileWidth = options.toWidth - x\n      }\n\n      y = innerY - options.destTileBorder\n      if (y < 0) { y = 0 }\n      toTileHeight = innerY + innerTileHeight + options.destTileBorder - y\n      if (y + toTileHeight >= options.toHeight) {\n        toTileHeight = options.toHeight - y\n      }\n\n      tile = {\n        toX: x,\n        toY: y,\n        toWidth: toTileWidth,\n        toHeight: toTileHeight,\n\n        toInnerX: innerX,\n        toInnerY: innerY,\n        toInnerWidth: innerTileWidth,\n        toInnerHeight: innerTileHeight,\n\n        offsetX: x / scaleX - pixelFloor(x / scaleX),\n        offsetY: y / scaleY - pixelFloor(y / scaleY),\n        scaleX,\n        scaleY,\n\n        x: pixelFloor(x / scaleX),\n        y: pixelFloor(y / scaleY),\n        width: pixelCeil(toTileWidth / scaleX),\n        height: pixelCeil(toTileHeight / scaleY)\n      }\n\n      tiles.push(tile)\n    }\n  }\n\n  return tiles\n}\n","import type { PicaCanvas, PicaCanvasCtx } from './types'\n\nexport interface SupportedFeatures {\n  canvas: boolean\n  offscreen_canvas: boolean\n  may_be_worker: boolean\n  create_image_bitmap: boolean\n  safari_put_image_data_fix: boolean\n  bug_canvas_orientation_region: boolean\n  bug_image_bitmap_orientation_region: boolean\n  cib_resize: boolean\n}\n\n// 3x2 JPEG with EXIF orientation 6 (rotate 90deg clockwise when decoded).\n//\n// Stored pixels, before orientation (Black, White):\n//\n//   B W B\n//   B B B\n//\n// After orientation is applied, decoded image should be 2x3:\n//\n//   B B\n//   B W  <- pixel at (1, 1) should be white if region crop is correct\n//   B B\n//\n// If crop coordinates are applied before orientation, region (1, 1, 1, 1)\n// returns black instead. The checks below use this to detect region/orientation\n// bugs in canvas drawImage() and createImageBitmap().\nconst ORIENTED_JPEG_BASE64 =\n  '/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/4AAQskZJRgABAQAAA' +\n  'QABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCw' +\n  'kJDRENDg8QEBEQCgwSExIQEw8QEBD/wAALCAACAAMBAREA/8QAFAABAAAAAAAAAAAAAAAA' +\n  'AAAACf/EABsQAAMBAQADAAAAAAAAAAAAAAECAwQFABEx/9oACAEBAAA/AC06fW6va0ps' +\n  '7PT179E88MiV02arrCEkjGQZiSEnKc5ovxURVHoADz//2Q=='\n\nconst features: SupportedFeatures = {\n  canvas: false,\n  offscreen_canvas: false,\n  may_be_worker: false,\n  create_image_bitmap: false,\n  safari_put_image_data_fix: false,\n  bug_canvas_orientation_region: true,\n  bug_image_bitmap_orientation_region: true,\n  cib_resize: false\n}\n\nlet checked = false\nlet checking: Promise<SupportedFeatures> | null = null\n\nconst ctxOpts: CanvasRenderingContext2DSettings = { willReadFrequently: true }\n\nfunction check_canvas (): boolean {\n  if (typeof document === 'undefined' || !document.createElement) return false\n\n  try {\n    const canvas = document.createElement('canvas')\n    canvas.width = 2\n    canvas.height = 1\n\n    const ctx = canvas.getContext('2d', ctxOpts)!\n\n    // Fingerprinting protection can randomize readback.\n    // In that case we can not rely on canvas pixel data.\n    let d = ctx.createImageData(2, 1)\n\n    d.data[0] = 12; d.data[1] = 23; d.data[2] = 34; d.data[3] = 255\n    d.data[4] = 45; d.data[5] = 56; d.data[6] = 67; d.data[7] = 255\n    ctx.putImageData(d, 0, 0)\n    d = ctx.getImageData(0, 0, 2, 1)\n\n    return d.data[0] === 12 && d.data[1] === 23 && d.data[2] === 34 && d.data[3] === 255 &&\n           d.data[4] === 45 && d.data[5] === 56 && d.data[6] === 67 && d.data[7] === 255\n  } catch (__) {\n    return false\n  }\n}\n\nfunction check_offscreen_canvas (): boolean {\n  if (typeof OffscreenCanvas === 'undefined') return false\n\n  try {\n    const canvas = new OffscreenCanvas(2, 1)\n    const ctx = canvas.getContext('2d', ctxOpts)!\n\n    // Fingerprinting protection can randomize readback.\n    // In that case we can not rely on canvas pixel data.\n    let d = ctx.createImageData(2, 1)\n\n    d.data[0] = 12; d.data[1] = 23; d.data[2] = 34; d.data[3] = 255\n    d.data[4] = 45; d.data[5] = 56; d.data[6] = 67; d.data[7] = 255\n    ctx.putImageData(d, 0, 0)\n    d = ctx.getImageData(0, 0, 2, 1)\n\n    return d.data[0] === 12 && d.data[1] === 23 && d.data[2] === 34 && d.data[3] === 255 &&\n           d.data[4] === 45 && d.data[5] === 56 && d.data[6] === 67 && d.data[7] === 255\n  } catch (__) {\n    return false\n  }\n}\n\nfunction check_create_image_bitmap (): boolean {\n  return typeof createImageBitmap !== 'undefined'\n}\n\nfunction check_may_be_worker (): boolean {\n  return typeof Worker !== 'undefined' &&\n    // Filter out IE <= 11 for sure\n    (typeof URL !== 'undefined' && !!URL.createObjectURL)\n}\n\nfunction check_safari_put_image_data_fix (): boolean {\n  try {\n    return !!(typeof navigator !== 'undefined' &&\n           navigator.userAgent &&\n           navigator.userAgent.indexOf('Safari') >= 0 &&\n           navigator.userAgent.indexOf('Chrome') < 0)\n  } catch (__) {\n    return false\n  }\n}\n\nfunction check_bug_canvas_orientation_region_async (): Promise<boolean> {\n  return Promise.resolve().then(() => {\n    const canOffscreenCanvas = check_offscreen_canvas() &&\n                             check_create_image_bitmap() &&\n                             typeof Blob !== 'undefined' &&\n                             typeof atob !== 'undefined'\n\n    if (canOffscreenCanvas) {\n      const binary = atob(ORIENTED_JPEG_BASE64)\n      const bytes = new Uint8Array(binary.length)\n\n      for (let i = 0; i < binary.length; i++) {\n        bytes[i] = binary.charCodeAt(i)\n      }\n\n      return createImageBitmap(new Blob([bytes], { type: 'image/jpeg' }))\n        .then(bitmap => {\n          const canvas = new OffscreenCanvas(1, 1)\n\n          try {\n            const ctx = canvas.getContext('2d', ctxOpts)!\n            ctx.drawImage(bitmap, 1, 1, 1, 1, 0, 0, 1, 1)\n\n            return ctx.getImageData(0, 0, 1, 1).data[0] < 240\n          } finally {\n            bitmap.close()\n          }\n        })\n    }\n\n    if (check_canvas() && typeof Image !== 'undefined') {\n      return new Promise<boolean>(resolve => {\n        const image = new Image()\n\n        image.onload = () => {\n          try {\n            const canvas = document.createElement('canvas')\n            canvas.width = 1\n            canvas.height = 1\n\n            const ctx = canvas.getContext('2d', ctxOpts)!\n            ctx.drawImage(image, 1, 1, 1, 1, 0, 0, 1, 1)\n\n            resolve(ctx.getImageData(0, 0, 1, 1).data[0] < 240)\n          } catch (__) {\n            resolve(true)\n          }\n        }\n\n        image.onerror = () => resolve(true)\n        image.src = `data:image/jpeg;base64,${ORIENTED_JPEG_BASE64}`\n      })\n    }\n\n    return true\n  })\n    .catch(() => true)\n}\n\nfunction check_bug_image_bitmap_orientation_region_async (): Promise<boolean> {\n  return Promise.resolve().then(() => {\n    if (!features.create_image_bitmap && !check_create_image_bitmap()) return true\n    if (typeof Blob === 'undefined' || typeof atob === 'undefined') return true\n\n    const canOffscreenCanvas = check_offscreen_canvas()\n    const canCanvas = check_canvas()\n\n    if (!canOffscreenCanvas && !canCanvas) return true\n\n    const binary = atob(ORIENTED_JPEG_BASE64)\n    const bytes = new Uint8Array(binary.length)\n\n    for (let i = 0; i < binary.length; i++) {\n      bytes[i] = binary.charCodeAt(i)\n    }\n\n    return createImageBitmap(new Blob([bytes], { type: 'image/jpeg' }))\n      .then(imageBitmap => createImageBitmap(imageBitmap, 1, 1, 1, 1)\n        .then(bitmap => {\n          let canvas: PicaCanvas\n\n          if (canOffscreenCanvas) {\n            canvas = new OffscreenCanvas(1, 1)\n          } else {\n            canvas = document.createElement('canvas')\n            canvas.width = 1\n            canvas.height = 1\n          }\n\n          try {\n            const ctx = canvas.getContext('2d', ctxOpts) as PicaCanvasCtx\n            ctx.drawImage(bitmap, 0, 0)\n\n            return bitmap.width !== 1 || bitmap.height !== 1 ||\n                   ctx.getImageData(0, 0, 1, 1).data[0] < 240\n          } finally {\n            imageBitmap.close()\n            bitmap.close()\n          }\n        }, () => {\n          imageBitmap.close()\n          return true\n        }))\n  })\n    .catch(() => true)\n}\n\nfunction check_cib_resize_async (): Promise<boolean> {\n  return Promise.resolve().then(() => {\n    if (!check_create_image_bitmap()) return false\n\n    const SRC_SIZE = 20\n    const DST_SIZE = 5\n\n    let canvas: PicaCanvas | null\n\n    if (features.canvas || check_canvas()) {\n      canvas = document.createElement('canvas')\n      canvas.width = SRC_SIZE\n      canvas.height = SRC_SIZE\n    } else if (features.offscreen_canvas || check_offscreen_canvas()) {\n      canvas = new OffscreenCanvas(SRC_SIZE, SRC_SIZE)\n      // Chrome fails to createImageBitmap() from canvas without drawing\n      // anything on it.\n      const ctx = canvas.getContext('2d', ctxOpts)!\n      ctx.clearRect(0, 0, SRC_SIZE, SRC_SIZE)\n    } else {\n      return false\n    }\n\n    return createImageBitmap(canvas, 0, 0, SRC_SIZE, SRC_SIZE, {\n      resizeWidth: DST_SIZE,\n      resizeHeight: DST_SIZE,\n      resizeQuality: 'high'\n    })\n      .then(bitmap => {\n        const status = bitmap.width === DST_SIZE && !!bitmap.close\n\n        if (bitmap.close) bitmap.close()\n        canvas = null\n        return status\n      })\n  })\n    .catch(() => false)\n}\n\nexport function get_supported_features (): Promise<SupportedFeatures> {\n  if (checked) return Promise.resolve(Object.assign({}, features))\n  if (checking) return checking.then(() => Object.assign({}, features))\n\n  features.canvas = check_canvas()\n  features.offscreen_canvas = check_offscreen_canvas()\n  features.may_be_worker = check_may_be_worker()\n  features.create_image_bitmap = check_create_image_bitmap()\n  features.safari_put_image_data_fix = check_safari_put_image_data_fix()\n\n  const bugCanvasOrientationRegion = check_bug_canvas_orientation_region_async()\n    .then(result => { features.bug_canvas_orientation_region = result })\n    .catch(() => {})\n\n  const bugImageBitmapOrientationRegion = check_bug_image_bitmap_orientation_region_async()\n    .then(result => { features.bug_image_bitmap_orientation_region = result })\n    .catch(() => {})\n\n  const cibResize = check_cib_resize_async()\n    .then(result => { features.cib_resize = result })\n    .catch(() => {})\n\n  checking = Promise.all([\n    bugCanvasOrientationRegion,\n    bugImageBitmapOrientationRegion,\n    cibResize\n  ]).then(() => {\n    checked = true\n    checking = null\n    return Object.assign({}, features)\n  }, err => {\n    checking = null\n    throw err\n  })\n\n  return checking\n}\n","import MathLib, { type MathResizeAndUnsharpOptions } from './mathlib'\nimport Pool from './pool'\nimport * as utils from './utils'\nimport createStages from './stepper'\nimport createRegions, { type Tile } from './tiler'\nimport * as supported_features from './supported_features'\nimport type {\n  Capabilities,\n  CreateCanvasPreference,\n  PicaFeaturesFlat,\n  Filter,\n  Limiter,\n  PicaCanvas,\n  PicaCanvasCtx,\n  PicaOptions,\n  PicaSource,\n  ResizeBufferOptions,\n  ResizeContext,\n  ResizeFeaturesMap,\n  ResizeParams,\n  TileResizeJob,\n  TileResizeJobBase,\n  ResizeOptions,\n  ResizeResult,\n  ResolvedPicaOptions,\n  StageEnv,\n  WorkerFeaturesResult,\n  WorkerMethod,\n  WorkerResizePayload\n} from './types'\n\nexport type {\n  PicaFeaturesFlat,\n  Filter,\n  PicaCanvas,\n  PicaOptions,\n  PicaSource,\n  ResizeBufferOptions,\n  ResizeOptions,\n  CibResizeQuality\n} from './types'\n\ndeclare const __PICA_WORKER_SRC__: string | undefined\n\nconst WORKER_SRC = typeof __PICA_WORKER_SRC__ !== 'undefined' ? __PICA_WORKER_SRC__ : ''\n\nlet concurrency = 1\nif (typeof navigator !== 'undefined') {\n  concurrency = Math.min(navigator.hardwareConcurrency || 1, 4)\n}\n\nconst DEFAULT_PICA_OPTS: ResolvedPicaOptions = {\n  tile: 1024,\n  concurrency,\n  features: ['js', 'wasm', 'ww'],\n  idle: 2000,\n}\n\nconst DEFAULT_RESIZE_OPTS = {\n  filter: 'mks2013',\n  unsharpAmount: 0,\n  unsharpRadius: 0.0,\n  unsharpThreshold: 0\n}\n\nconst ctxOpts: CanvasRenderingContext2DSettings = { willReadFrequently: true }\n\n// //////////////////////////////////////////////////////////////////////////////\n// API methods\n\nexport class Pica {\n  private options: ResolvedPicaOptions\n  private __limit: Limiter\n  private resize_features: ResizeFeaturesMap\n  private __workersPool: Pool<Worker> | null\n  private capabilities: Capabilities\n  private __requested_features: PicaFeaturesFlat\n  private __mathlib: MathLib | null\n  private __initPromise?: Promise<this>\n\n  constructor (options?: PicaOptions) {\n    this.options = Object.assign({}, DEFAULT_PICA_OPTS, options || {})\n\n    const workerRequested = this.options.features.indexOf('ww') >= 0 || this.options.features.indexOf('all') >= 0\n\n    if (workerRequested && !this.options.workerURL && !WORKER_SRC) {\n      throw new Error('Pica: cannot use WebWorker without workerURL')\n    }\n\n    this.__limit = utils.limiter(this.options.concurrency)\n\n    // List of enabled resize methods, according to options & browser/node.js\n    this.resize_features = {\n      js: false, // pure JS implementation, can be disabled for testing\n      wasm: false, // webassembly implementation for heavy functions\n      cib: false, // resize via createImageBitmap (only FF at this moment)\n      ww: false // webworkers\n    }\n\n    this.__workersPool = null\n    this.capabilities = {\n      worker: false,\n      ww_offscreen_canvas: false,\n      canvas: false,\n      offscreen_canvas: false,\n      may_be_worker: false,\n      create_image_bitmap: false,\n      safari_put_image_data_fix: false,\n      bug_canvas_orientation_region: true,\n      bug_image_bitmap_orientation_region: true,\n      cib_resize: false\n    }\n\n    // Store requested features for webworkers\n    this.__requested_features = []\n\n    this.__mathlib = null\n  }\n\n  init (): Promise<this> {\n    if (this.__initPromise) return this.__initPromise\n\n    this.__initPromise = this.__init()\n\n    return this.__initPromise\n  }\n\n  private async __init (): Promise<this> {\n    let features = this.options.features.slice()\n\n    if (features.indexOf('all') >= 0) {\n      features = ['cib', 'wasm', 'js', 'ww']\n    }\n\n    this.__requested_features = features\n\n    this.__mathlib = new MathLib(features)\n\n    const result = await supported_features.get_supported_features()\n    Object.assign(this.capabilities, result)\n\n    if (this.capabilities.cib_resize && features.indexOf('cib') >= 0) {\n      this.resize_features.cib = true\n    }\n\n    // Check WebWorker support if requested\n    if (this.capabilities.may_be_worker && features.indexOf('ww') >= 0 && (WORKER_SRC || this.options.workerURL)) {\n      this.__workersPool = new Pool(() => this.__createWorkerSlot(), this.options.idle)\n    }\n\n    if (this.__workersPool) {\n      try {\n        const result = await this.__invokeWorker<WorkerFeaturesResult>('get_supported_features')\n        const resultData = result && result.data\n        if (resultData) {\n          this.capabilities.worker = true\n          this.resize_features.ww = true\n          this.capabilities.ww_offscreen_canvas = !!resultData.offscreen_canvas\n        }\n      } catch (__) {}\n    }\n\n    const mathlib = await this.__mathlib.init()\n    // Copy detected resize methods\n    Object.assign(this.resize_features, mathlib.features)\n\n    return this\n  }\n\n  createCanvas (width: number, height: number, preferOffscreen?: CreateCanvasPreference): PicaCanvas {\n    if (preferOffscreen && this.capabilities.offscreen_canvas) {\n      return new OffscreenCanvas(width, height)\n    }\n\n    if (this.capabilities.canvas) {\n      const canvas = document.createElement('canvas')\n      canvas.width = width\n      canvas.height = height\n      return canvas\n    }\n\n    if (this.capabilities.ww_offscreen_canvas) {\n      return new OffscreenCanvas(width, height)\n    }\n\n    throw new Error('Pica: cannot create canvas')\n  }\n\n  private __createWorkerSlot (): { value: Worker, destroy: () => void } {\n    if (this.options.workerURL) {\n      const worker = new Worker(String(this.options.workerURL))\n      return { value: worker, destroy () { worker.terminate() } }\n    }\n\n    if (WORKER_SRC) {\n      const objectURL = window.URL.createObjectURL(new Blob([WORKER_SRC], { type: 'text/javascript' }))\n      const worker = new Worker(objectURL)\n      return {\n        value: worker,\n        destroy () {\n          worker.terminate()\n          if (typeof window !== 'undefined') {\n            window.URL?.revokeObjectURL?.(objectURL)\n          }\n        }\n      }\n    }\n\n    throw new Error('Pica: no worker source available')\n  }\n\n  // Call resizer in webworker or locally, depending on config\n  private __invokeWorker<TResult> (\n    method: WorkerMethod,\n    payload?: Record<string, unknown>,\n    transfer?: Transferable[],\n    opts?: { cancelToken?: Promise<unknown> }\n  ): Promise<TResult> {\n    return new Promise((resolve, reject) => {\n      const w = this.__workersPool!.acquire()\n\n      if (opts && opts.cancelToken) opts.cancelToken.catch(err => reject(err))\n\n      w.value.onmessage = ev => {\n        w.release()\n\n        if (ev.data.err) reject(ev.data.err)\n        else resolve(ev.data)\n      }\n\n      w.value.postMessage(Object.assign({ method }, payload || {}), transfer || [])\n    })\n  }\n\n  private async __invokeResize (tileJob: TileResizeJob, ctx: ResizeContext): Promise<ResizeResult> {\n    await Promise.resolve()\n\n    if (!this.resize_features.ww) {\n    // not possible to have ImageBitmap here if user disabled WW\n      if (tileJob.kind !== 'array') throw new Error('Pica: resize tile data is missing')\n\n      const mathOpts: MathResizeAndUnsharpOptions = {\n        src: tileJob.src,\n        width: tileJob.width,\n        height: tileJob.height,\n        toWidth: tileJob.toWidth,\n        toHeight: tileJob.toHeight,\n        scaleX: tileJob.scaleX,\n        scaleY: tileJob.scaleY,\n        offsetX: tileJob.offsetX,\n        offsetY: tileJob.offsetY,\n        filter: tileJob.filter,\n        unsharpAmount: tileJob.unsharpAmount,\n        unsharpRadius: tileJob.unsharpRadius,\n        unsharpThreshold: tileJob.unsharpThreshold\n      }\n\n      return { kind: 'array', data: this.__mathlib!.resizeAndUnsharp(mathOpts) }\n    }\n\n    const transfer = []\n\n    if (tileJob.kind === 'array') transfer.push(tileJob.src.buffer)\n    else transfer.push(tileJob.src)\n\n    return this.__invokeWorker<ResizeResult>(\n      'resize',\n      {\n        job: tileJob,\n        features: this.__requested_features\n      } satisfies Omit<WorkerResizePayload, 'method'>,\n      transfer,\n      ctx\n    )\n  }\n\n  // this function can return promise if createImageBitmap is used\n  private __extractTileData (\n    tile: Tile,\n    from: PicaSource,\n    stageEnv: StageEnv,\n    extractTo: TileResizeJobBase\n  ): TileResizeJob {\n    if (this.resize_features.ww && this.capabilities.ww_offscreen_canvas) {\n      this.debug('Create tile imageBitmap')\n\n      const tileCanvas = this.createCanvas(tile.width, tile.height, { preferOffscreen: true })\n      const tileCtx = tileCanvas.getContext('2d', ctxOpts) as PicaCanvasCtx\n\n      tileCtx.drawImage(stageEnv.srcImageBitmap || from,\n        tile.x, tile.y, tile.width, tile.height,\n        0, 0, tile.width, tile.height)\n\n      if (!('transferToImageBitmap' in tileCanvas)) {\n        throw new Error('Pica: offscreen canvas is not available for worker transfer')\n      }\n\n      return Object.assign({}, extractTo, {\n        kind: 'bitmap' as const,\n        src: tileCanvas.transferToImageBitmap()\n      })\n\n    // Direct region extraction, intentionally disabled. This can be faster,\n    // but has known EXIF orientation bugs in some browsers.\n    //\n    // return createImageBitmap(stageEnv.srcImageBitmap || from, tile.x, tile.y, tile.width, tile.height)\n    //   .then(bitmap => {\n    //     extractTo.src = bitmap;\n    //     return extractTo;\n    //   });\n    }\n\n    // Extract tile RGBA buffer, depending on input type\n    if (utils.isCanvas(from)) {\n      if (!stageEnv.srcCtx) stageEnv.srcCtx = from.getContext('2d', ctxOpts) as PicaCanvasCtx\n\n      // If input is Canvas - extract region data directly\n      this.debug('Get tile pixel data')\n      return Object.assign({}, extractTo, {\n        kind: 'array' as const,\n        src: stageEnv.srcCtx.getImageData(tile.x, tile.y, tile.width, tile.height).data\n      })\n    }\n\n    // If input is Image or decoded to ImageBitmap,\n    // draw region to temporary canvas and extract data from it\n    //\n    // Note! Attempt to reuse this canvas causes significant slowdown in chrome\n    //\n    this.debug('Draw tile imageBitmap/image to temporary canvas')\n\n    const tmpCanvas = this.createCanvas(tile.width, tile.height, { preferOffscreen: true })\n\n    const tmpCtx = tmpCanvas.getContext('2d', ctxOpts) as PicaCanvasCtx\n    tmpCtx.globalCompositeOperation = 'copy'\n    tmpCtx.drawImage(stageEnv.srcImageBitmap || from,\n      tile.x, tile.y, tile.width, tile.height,\n      0, 0, tile.width, tile.height)\n\n    this.debug('Get tile pixel data')\n\n    const src = tmpCtx.getImageData(0, 0, tile.width, tile.height).data\n\n    // Safari 12 workaround\n    // https://github.com/nodeca/pica/issues/199\n    tmpCanvas.width = tmpCanvas.height = 0\n\n    return Object.assign({}, extractTo, {\n      kind: 'array' as const,\n      src\n    })\n  }\n\n  private __landTileData (tile: Tile, result: ResizeResult, stageEnv: StageEnv): null {\n    if (result.kind === 'bitmap') {\n      stageEnv.toCtx!.drawImage(result.data, tile.toX, tile.toY)\n      result.data.close()\n      return null\n    }\n\n    this.debug('Draw tile')\n\n    const toImageData = stageEnv.toCtx!.createImageData(tile.toWidth, tile.toHeight)\n    toImageData.data.set(result.data)\n\n    if (this.capabilities.safari_put_image_data_fix) {\n    // Safari draws thin white stripes between tiles without this fix\n      stageEnv.toCtx!.putImageData(toImageData, tile.toX, tile.toY,\n        tile.toInnerX - tile.toX, tile.toInnerY - tile.toY,\n        tile.toInnerWidth + 1e-5, tile.toInnerHeight + 1e-5)\n    } else {\n      stageEnv.toCtx!.putImageData(toImageData, tile.toX, tile.toY,\n        tile.toInnerX - tile.toX, tile.toInnerY - tile.toY,\n        tile.toInnerWidth, tile.toInnerHeight)\n    }\n\n    return null\n  }\n\n  private async __tileAndResize (\n    from: PicaSource,\n    to: PicaCanvas,\n    resizeParams: ResizeParams,\n    ctx: ResizeContext\n  ): Promise<PicaCanvas> {\n    const stageEnv: StageEnv = {\n      srcCtx: null,\n      srcImageBitmap: null,\n      isImageBitmapReused: false,\n      toCtx: null\n    }\n\n    const processTile = (tile: Tile) => this.__limit(async () => {\n      if (ctx.canceled) return ctx.cancelToken\n\n      const tileJob: TileResizeJobBase = {\n        width: tile.width,\n        height: tile.height,\n        toWidth: tile.toWidth,\n        toHeight: tile.toHeight,\n        scaleX: tile.scaleX,\n        scaleY: tile.scaleY,\n        offsetX: tile.offsetX,\n        offsetY: tile.offsetY,\n        filter: resizeParams.filter,\n        unsharpAmount: resizeParams.unsharpAmount,\n        unsharpRadius: resizeParams.unsharpRadius,\n        unsharpThreshold: resizeParams.unsharpThreshold\n      }\n\n      this.debug('Invoke resize math')\n\n      const extractedTileJob = await this.__extractTileData(tile, from, stageEnv, tileJob)\n\n      this.debug('Invoke resize math')\n      const result = await this.__invokeResize(extractedTileJob, ctx)\n\n      if (ctx.canceled) return ctx.cancelToken\n      return this.__landTileData(tile, result, stageEnv)\n    })\n\n    // Need to normalize data source first. It can be canvas or image.\n    // If image - try to decode in background if possible\n    await Promise.resolve()\n\n    stageEnv.toCtx = to.getContext('2d', ctxOpts) as PicaCanvasCtx\n\n    if (utils.isCanvas(from)) {\n    // Source is ready as-is.\n    } else if (utils.isImageBitmap(from)) {\n      stageEnv.srcImageBitmap = from\n      stageEnv.isImageBitmapReused = true\n    } else if (utils.isImage(from)) {\n    // try to decode image in background for faster next operations;\n    // if we're using offscreen canvas, cib is called per tile, so not needed here\n      if (this.capabilities.create_image_bitmap) {\n        this.debug('Decode image via createImageBitmap')\n\n        // Suppress error to use fallback, if method fails\n        // https://github.com/nodeca/pica/issues/190\n        try {\n          stageEnv.srcImageBitmap = await createImageBitmap(from)\n        } catch (__) {}\n      }\n    } else {\n      throw new Error('Pica: \".from\" should be Image, Canvas or ImageBitmap')\n    }\n\n    if (ctx.canceled) return ctx.cancelToken as Promise<PicaCanvas>\n\n    this.debug('Calculate tiles')\n\n    //\n    // Here we are with \"normalized\" source,\n    // follow to tiling\n    //\n\n    const regions = createRegions({\n      width: resizeParams.width,\n      height: resizeParams.height,\n      srcTileSize: this.options.tile,\n      toWidth: resizeParams.toWidth,\n      toHeight: resizeParams.toHeight,\n      destTileBorder: Math.ceil(Math.max(3, 2.5 * resizeParams.unsharpRadius | 0))\n    })\n\n    const jobs = regions.map(tile => processTile(tile))\n\n    function cleanup (stageEnv: StageEnv) {\n      if (stageEnv.srcImageBitmap) {\n        if (!stageEnv.isImageBitmapReused) stageEnv.srcImageBitmap.close()\n        stageEnv.srcImageBitmap = null\n      }\n    }\n\n    this.debug('Process tiles')\n\n    try {\n      await Promise.all(jobs)\n      this.debug('Finished!')\n      cleanup(stageEnv)\n      return to\n    } catch (err) {\n      cleanup(stageEnv)\n      throw err\n    }\n  }\n\n  private async __planStagesAndResize (\n    from: PicaSource,\n    to: PicaCanvas,\n    resizeParams: ResizeParams,\n    ctx: ResizeContext\n  ): Promise<PicaCanvas> {\n    let src: PicaSource = from\n    let srcWidth = resizeParams.width\n    let srcHeight = resizeParams.height\n\n    const stages = createStages(\n      resizeParams.width,\n      resizeParams.height,\n      resizeParams.toWidth,\n      resizeParams.toHeight,\n      this.options.tile\n    )\n\n    while (stages.length > 0) {\n      if (ctx.canceled) return ctx.cancelToken as Promise<PicaCanvas>\n\n      const [toWidth, toHeight] = stages.shift()!\n      const isLastStage = stages.length === 0\n\n      // Optimization for legacy filters -\n      // only use user-defined quality for the last stage,\n      // use simpler (Hamming) filter for the first stages where\n      // scale factor is large enough (more than 2-3)\n      //\n      // For advanced filters (mks2013 and custom) - skip optimization,\n      // because need to apply sharpening every time\n      let filter: Filter\n      if (isLastStage || !utils.is_cib_filter(resizeParams.filter)) filter = resizeParams.filter\n      else if (resizeParams.filter === 'box') filter = 'box'\n      else filter = 'hamming'\n\n      const stageParams: ResizeParams = { ...resizeParams, filter, width: srcWidth, height: srcHeight, toWidth, toHeight }\n      const dest = isLastStage ? to : this.createCanvas(toWidth, toHeight, { preferOffscreen: true })\n\n      // Previous intermediate canvas (not the original `from`) can be freed after use\n      const prevTmp = src !== from ? src as PicaCanvas : undefined\n\n      try {\n        await this.__tileAndResize(src, dest, stageParams, ctx)\n      } finally {\n        // Safari 12 workaround: https://github.com/nodeca/pica/issues/199\n        if (prevTmp) prevTmp.width = prevTmp.height = 0\n      }\n\n      src = dest\n      srcWidth = toWidth\n      srcHeight = toHeight\n    }\n\n    return to\n  }\n\n  private async __resizeViaCreateImageBitmap (\n    from: PicaSource,\n    to: PicaCanvas,\n    resizeParams: ResizeParams,\n    ctx: ResizeContext\n  ): Promise<PicaCanvas> {\n    let toCtx: PicaCanvasCtx | null = to.getContext('2d', ctxOpts) as PicaCanvasCtx\n\n    this.debug('Resize via createImageBitmap()')\n\n    const imageBitmap = await createImageBitmap(from, {\n      resizeWidth: resizeParams.toWidth,\n      resizeHeight: resizeParams.toHeight,\n      resizeQuality: utils.cib_quality_name(utils.filter_to_cib_quality(resizeParams.filter) ?? 3)\n    })\n    if (ctx.canceled) return ctx.cancelToken as Promise<PicaCanvas>\n\n    // if no unsharp - draw directly to output canvas\n    if (!resizeParams.unsharpAmount) {\n      toCtx.drawImage(imageBitmap, 0, 0)\n      imageBitmap.close()\n      toCtx = null\n\n      this.debug('Finished!')\n\n      return to\n    }\n\n    this.debug('Unsharp result')\n\n    let tmpCanvas: PicaCanvas | null = this.createCanvas(resizeParams.toWidth, resizeParams.toHeight)\n\n    let tmpCtx: PicaCanvasCtx | null = tmpCanvas.getContext('2d', ctxOpts) as PicaCanvasCtx\n\n    tmpCtx.drawImage(imageBitmap, 0, 0)\n    imageBitmap.close()\n\n    let iData: ImageData | null = tmpCtx.getImageData(0, 0, resizeParams.toWidth, resizeParams.toHeight)\n\n    this.__mathlib!.unsharp_mask(\n      iData.data,\n      resizeParams.toWidth,\n      resizeParams.toHeight,\n      resizeParams.unsharpAmount,\n      resizeParams.unsharpRadius,\n      resizeParams.unsharpThreshold\n    )\n\n    toCtx.putImageData(iData, 0, 0)\n\n    // Safari 12 workaround\n    // https://github.com/nodeca/pica/issues/199\n    tmpCanvas.width = tmpCanvas.height = 0\n\n    iData = tmpCtx = tmpCanvas = toCtx = null\n\n    this.debug('Finished!')\n\n    return to\n  }\n\n  async resize<TCanvas extends PicaCanvas> (\n    from: PicaSource,\n    to: TCanvas,\n    options?: ResizeOptions\n  ): Promise<TCanvas> {\n    this.debug('Start resize...')\n\n    const requested: ResizeOptions = {}\n\n    if (options) {\n      Object.assign(requested, options)\n    }\n\n    let filter: Filter = (requested.filter || DEFAULT_RESIZE_OPTS.filter) as Filter\n\n    // Legacy `.quality` option\n    if (Object.prototype.hasOwnProperty.call(requested, 'quality')) {\n      const quality = requested.quality\n      if (typeof quality !== 'number' || quality < 0 || quality > 3) {\n        throw new Error(`Pica: .quality should be [0..3], got ${quality}`)\n      }\n      filter = utils.cib_quality_filter(quality)\n    }\n\n    const resizeParams: ResizeParams = {\n      filter,\n      unsharpAmount: requested.unsharpAmount || DEFAULT_RESIZE_OPTS.unsharpAmount,\n      unsharpRadius: requested.unsharpRadius || DEFAULT_RESIZE_OPTS.unsharpRadius,\n      unsharpThreshold: requested.unsharpThreshold || DEFAULT_RESIZE_OPTS.unsharpThreshold,\n      width: utils.isImage(from) ? from.naturalWidth : from.width,\n      height: utils.isImage(from) ? from.naturalHeight : from.height,\n      toWidth: to.width,\n      toHeight: to.height\n    }\n\n    if (resizeParams.unsharpRadius > 2) resizeParams.unsharpRadius = 2\n\n    // Prevent stepper from infinite loop\n    if (to.width === 0 || to.height === 0) {\n      return Promise.reject(new Error(`Invalid output size: ${to.width}x${to.height}`))\n    }\n\n    const ctx: ResizeContext = {\n      cancelToken: requested.cancelToken,\n      canceled: false\n    }\n\n    if (ctx.cancelToken) {\n    // Wrap cancelToken to avoid successive resolve & set flag\n      ctx.cancelToken = ctx.cancelToken.then(\n        data => { ctx.canceled = true; throw data },\n        err => { ctx.canceled = true; throw err }\n      )\n    }\n\n    await this.init()\n\n    if (ctx.canceled) return ctx.cancelToken as Promise<TCanvas>\n\n    // createImageBitmap doesn't work for images (Image, ImageBitmap) with\n    // Exif orientation in Chrome. Enforce canvas use for such inputs.\n    // see https://bugs.chromium.org/p/chromium/issues/detail?id=1220671\n    if (this.capabilities.bug_image_bitmap_orientation_region &&\n        (utils.isImage(from) || (utils.isImageBitmap(from)))) {\n      const tmpCanvas = this.createCanvas(resizeParams.width, resizeParams.height)\n      const tmpCtx = tmpCanvas.getContext('2d', ctxOpts) as PicaCanvasCtx\n      tmpCtx.drawImage(from, 0, 0)\n      from = tmpCanvas\n    }\n\n    // if createImageBitmap supports resize, just do it and return\n    if (this.resize_features.cib) {\n      if (utils.is_cib_filter(resizeParams.filter)) {\n        return this.__resizeViaCreateImageBitmap(from, to, resizeParams, ctx) as Promise<TCanvas>\n      }\n\n      this.debug('cib is enabled, but not supports provided filter, fallback to manual math')\n    }\n\n    if (!this.capabilities.canvas && !this.capabilities.offscreen_canvas) {\n      const err = new Error('Pica: cannot use getImageData on canvas, ' +\n                        \"make sure fingerprinting protection isn't enabled\")\n      // @ts-ignore\n      err.code = 'ERR_GET_IMAGE_DATA'\n      throw err\n    }\n\n    //\n    // No easy way, let's resize manually via arrays\n    //\n\n    return this.__planStagesAndResize(from, to, resizeParams, ctx) as Promise<TCanvas>\n  }\n\n  // RGBA buffer resize\n  //\n  async resizeBuffer (options: ResizeBufferOptions): Promise<Uint8Array> {\n    const opts = Object.assign({}, DEFAULT_RESIZE_OPTS, options)\n\n    // Legacy `.quality` option\n    if (Object.prototype.hasOwnProperty.call(opts, 'quality')) {\n      const quality = opts.quality\n      if (typeof quality !== 'number' || quality < 0 || quality > 3) {\n        throw new Error(`Pica: .quality should be [0..3], got ${quality}`)\n      }\n      opts.filter = utils.cib_quality_filter(quality)\n    }\n\n    await this.init()\n    if (!this.__mathlib) throw new Error('Pica: math library is not initialized')\n\n    const mathOpts: MathResizeAndUnsharpOptions = {\n      src: opts.src,\n      width: opts.width,\n      height: opts.height,\n      toWidth: opts.toWidth,\n      toHeight: opts.toHeight,\n      dest: opts.dest,\n      scaleX: opts.toWidth / opts.width,\n      scaleY: opts.toHeight / opts.height,\n      offsetX: 0,\n      offsetY: 0,\n      filter: opts.filter,\n      unsharpAmount: opts.unsharpAmount,\n      unsharpRadius: opts.unsharpRadius,\n      unsharpThreshold: opts.unsharpThreshold\n    }\n\n    return this.__mathlib.resizeAndUnsharp(mathOpts)\n  }\n\n  async toBlob (canvas: HTMLCanvasElement | OffscreenCanvas, mimeType?: string, quality?: number): Promise<Blob> {\n    mimeType = mimeType || 'image/png'\n\n    // Ordinary Canvas\n    if ('toBlob' in canvas && canvas.toBlob) {\n      return new Promise(resolve => {\n        canvas.toBlob(blob => resolve(blob as Blob), mimeType, quality)\n      })\n    }\n\n    // OffscreenCanvas\n    if ('convertToBlob' in canvas && canvas.convertToBlob) {\n      return canvas.convertToBlob({\n        type: mimeType,\n        quality\n      })\n    }\n\n    // Fallback for old browsers\n    const asString = atob((canvas as HTMLCanvasElement).toDataURL(mimeType, quality).split(',')[1])\n    const len = asString.length\n    const asBuffer = new Uint8Array(len)\n\n    for (let i = 0; i < len; i++) {\n      asBuffer[i] = asString.charCodeAt(i)\n    }\n\n    return new Blob([asBuffer], { type: mimeType })\n  }\n\n  debug (..._args: unknown[]): void {}\n}\n\nexport default function pica (options?: PicaOptions): Pica {\n  return new Pica(options)\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Write a downloaded imaging study's JPEGs into the user's Downloads folder.\n *\n * This extension is a local stdio server, so the filesystem is the only\n * \"download\" surface it has: inline image blocks let Claude see an X-ray, but\n * they live and die with the conversation. Which is why saving exists — and\n * why the caller asks for it explicitly, rather than every viewed scan leaving\n * files behind.\n *\n * Every study gets its own folder because a CT is hundreds of slices, and\n * dumping those loose into Downloads is hostile.\n */\nimport * as fs from 'fs';\nimport * as os from 'os';\nimport * as path from 'path';\n\nimport type { DownloadStudyJpegsResult } from './download-study';\nimport { DetailedError } from '../../../../shared/detailedError';\n\nexport interface SavedStudy {\n  /** Absolute path of the folder the JPEGs were written to. */\n  directory: string;\n  /** File names inside {@link directory}, in study order. */\n  files: string[];\n}\n\n/**\n * `~/Downloads`, which is its default location on both platforms the extension\n * ships for. Falls back to the home directory when it is missing rather than\n * creating a Downloads folder for a user who deliberately does not have one.\n */\nexport function downloadsDir(): string {\n  const downloads = path.join(os.homedir(), 'Downloads');\n  return fs.existsSync(downloads) ? downloads : os.homedir();\n}\n\n/** Study and series names come from MyChart, so they can hold any character. */\nfunction safeName(name: string, fallback: string): string {\n  const cleaned = name\n    .replace(/[^a-zA-Z0-9_-]+/g, '_')\n    .replace(/^_+|_+$/g, '')\n    .substring(0, 80);\n  return cleaned || fallback;\n}\n\n/**\n * Claim a new folder for this study. Re-downloading a study must not overwrite\n * the copy already on disk, so a taken name gets a numeric suffix — `mkdir`\n * without `recursive` is what makes testing the name and claiming it one step,\n * where `existsSync` then `mkdir` would race.\n */\nfunction makeStudyDir(base: string, name: string): string {\n  for (let attempt = 1; attempt <= 100; attempt++) {\n    const dir = path.join(base, attempt === 1 ? name : `${name}-${attempt}`);\n    try {\n      fs.mkdirSync(dir);\n      return dir;\n    } catch (err) {\n      if ((err as NodeJS.ErrnoException).code !== 'EEXIST') throw err;\n    }\n  }\n  throw new DetailedError(\n    'Could not create a folder for this study — 100 copies of its name already exist.',\n    `Could not create a folder for this study under ${base} — 100 copies already exist.`,\n  );\n}\n\n/**\n * Write every encoded image of {@link result} to a fresh folder and return\n * where they went. Throws if the folder cannot be created or a write fails —\n * the caller keeps the inline images either way, so a failure here costs a\n * copy on disk, never the pictures themselves.\n *\n * `baseDir` exists so the tests can point this at a temp directory — the\n * product always saves to Downloads.\n */\nexport function saveStudyJpegs(result: DownloadStudyJpegsResult, baseDir: string = downloadsDir()): SavedStudy {\n  const directory = makeStudyDir(baseDir, safeName(result.studyName, 'imaging-study'));\n  const files: string[] = [];\n\n  // Numbered by position, not by `index`: an image that failed to encode\n  // leaves a hole in `index`, and gaps in a folder of files read as pictures\n  // that went missing. File N is the Nth picture Claude was shown.\n  result.images.forEach((img, position) => {\n    const file = `${String(position + 1).padStart(3, '0')}_${safeName(img.seriesDescription, 'image')}.jpg`;\n    fs.writeFileSync(path.join(directory, file), Buffer.from(img.jpegBase64, 'base64'));\n    files.push(file);\n  });\n\n  return { directory, files };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Write a `returnsFile` capability's payload into the user's Downloads folder.\n *\n * A file the user asked for always lands on disk — unlike an imaging study\n * (previewed inline, saved only on request), a PDF has no inline form in the\n * conversation at all. A name already taken gets a numeric suffix: a second\n * download must never overwrite the first. `wx` makes testing the name and\n * claiming it one step.\n */\nimport * as fs from 'fs';\nimport * as path from 'path';\n\nimport type { FilePayload } from '../capabilities';\nimport { downloadsDir } from './imaging/save-study';\nimport { safeFileName } from '../../../scrapers/myChart/core/safeFileName';\nimport { DetailedError } from '../../../shared/detailedError';\n\n/**\n * Save the payload under `baseDir` (Downloads) and return the absolute path\n * written. `baseDir` exists so the tests can point this at a temp directory —\n * the product always saves to Downloads.\n */\nexport function saveFilePayload(payload: FilePayload, baseDir: string = downloadsDir()): string {\n  // The scraper already made the name safe; basename is the belt to its braces.\n  const { name, ext } = path.parse(path.basename(payload.fileName));\n  for (let attempt = 1; attempt <= 100; attempt++) {\n    const file = path.join(baseDir, attempt === 1 ? `${name}${ext}` : `${name}-${attempt}${ext}`);\n    try {\n      fs.writeFileSync(file, payload.bytes, { flag: 'wx' });\n      return file;\n    } catch (err) {\n      if ((err as NodeJS.ErrnoException).code !== 'EEXIST') throw err;\n    }\n  }\n  throw new DetailedError(\n    'Could not save the file — 100 copies of its name already exist in that folder.',\n    `Could not save ${payload.fileName} under ${baseDir} — 100 copies already exist.`,\n  );\n}\n\n/**\n * `save_file`: text the model wrote, under a name the model chose. The name is\n * cut to a bare basename, so it cannot reach outside `baseDir`; one with no\n * extension is saved as Markdown.\n */\nexport function saveTextFile(fileName: string, content: string, baseDir: string = downloadsDir()): string {\n  const name = safeFileName(path.basename(fileName.replace(/\\\\/g, '/')), 'openrecord-export.md');\n  return saveFilePayload(\n    {\n      fileName: /\\.[A-Za-z0-9]{1,8}$/.test(name) ? name : `${name}.md`,\n      mimeType: 'text/plain',\n      bytes: new TextEncoder().encode(content),\n    },\n    baseDir,\n  );\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport * as os from 'os';\nimport * as Sentry from '@sentry/node';\nimport { telemetryApp } from '../../../shared/telemetry';\n\n/** The openrecord-2 Sentry project. Public by design: a DSN only lets a client send events. */\nconst SENTRY_DSN = 'https://ef29f66fb6933cd8350543c371a66e6a@o4509283904323584.ingest.us.sentry.io/4512317698080768';\n\n/**\n * `bun test` sets NODE_ENV=test. Suites fail tool calls on purpose, and every\n * run would otherwise file those as real issues; the Sentry suite passes its\n * own DSN instead.\n */\nconst DEFAULT_DSN = process.env.NODE_ENV === 'test' ? '' : SENTRY_DSN;\n\nexport interface ToolErrorContext {\n  tool: string;\n  hostname?: string | undefined;\n  email?: string | undefined;\n  username?: string | undefined;\n}\n\n/**\n * Sentry's envelopes go out through `fetch`, like every other telemetry\n * request, instead of the SDK's own `http` transport.\n */\nconst fetchTransport: NonNullable<Sentry.NodeOptions['transport']> = (options) =>\n  Sentry.createTransport(options, async (request) => {\n    const response = await fetch(options.url, {\n      method: 'POST',\n      body: request.body as BodyInit,\n      ...(options.headers ? { headers: options.headers } : {}),\n    });\n    return {\n      statusCode: response.status,\n      headers: {\n        'x-sentry-rate-limits': response.headers.get('X-Sentry-Rate-Limits'),\n        'retry-after': response.headers.get('Retry-After'),\n      },\n    };\n  });\n\nlet startedWith: string | undefined;\n\nfunction start(dsn: string): void {\n  if (startedWith === dsn) return;\n  const app = telemetryApp();\n  Sentry.initWithoutDefaultIntegrations({\n    dsn,\n    ...(app ? { release: `openrecord-${app.name}@${app.version}` } : {}),\n    // Errors only, and nothing collected on the side. The default integrations\n    // would add breadcrumbs of every console line and outgoing request — that is\n    // scraper logs and MyChart URLs — and runtime patching of loaded modules.\n    // Frame paths are rewritten relative to the home folder, whose name is\n    // usually the macOS username.\n    integrations: [\n      Sentry.linkedErrorsIntegration(),\n      Sentry.dedupeIntegration(),\n      Sentry.rewriteFramesIntegration({ root: os.homedir() }),\n    ],\n    enableRuntimeChannelInjection: false,\n    // Otherwise every event carries the computer's name, which usually has the owner's in it.\n    includeServerName: false,\n    // Every automatic collector off. `user` is set by hand per error; nothing\n    // else of the user's — and no tool input or output, which is chart data —\n    // may ride along.\n    dataCollection: {\n      userInfo: false,\n      cookies: false,\n      httpHeaders: false,\n      httpBodies: [],\n      urlQueryParams: false,\n      graphQL: { document: false, variables: false },\n      genAI: { inputs: false, outputs: false },\n      mcp: { inputs: false, outputs: false },\n      databaseQueryData: false,\n      queues: false,\n    },\n    transport: fetchTransport,\n  });\n  startedWith = dsn;\n}\n\n/** Send one tool call's error to Sentry, with who and what it was about. `dsn` is the test seam. */\nexport function captureToolError(error: unknown, context: ToolErrorContext, dsn = DEFAULT_DSN): void {\n  if (!dsn) return;\n  try {\n    start(dsn);\n    Sentry.withScope((scope) => {\n      scope.setUser({\n        ...(context.email ? { email: context.email } : {}),\n        ...(context.username ? { username: context.username } : {}),\n        // Sentry fills this in from the IP the event arrives from.\n        ip_address: '{{auto}}',\n      });\n      scope.setTag('tool', context.tool);\n      if (context.hostname) scope.setTag('hostname', context.hostname);\n      Sentry.captureException(error);\n    });\n  } catch {\n    // Error reporting must never break a tool call.\n  }\n}\n\n/** Tear the client down, so one test's DSN never outlives it. */\nexport async function resetErrorReporting(): Promise<void> {\n  await Sentry.close();\n  startedWith = undefined;\n}\n","// This is an auto-generated file. Do not edit!\n\n// Path: model/attributes/address.json\n\n/**\n * The destination hostname or IP address for a TCP connection. `address`\n *\n * Attribute Value Type: `string` {@link ADDRESS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - Old namespace-less attribute, to be replaced with server.address for span-first future\n * @example \"example.com\"\n */\nexport const ADDRESS = 'address';\n\n/**\n * Type for {@link ADDRESS} address\n */\nexport type ADDRESS_TYPE = string;\n\n// Path: model/attributes/ai/ai__citations.json\n\n/**\n * References or sources cited by the AI model in its response. `ai.citations`\n *\n * Attribute Value Type: `Array<string>` {@link AI_CITATIONS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"Citation 1\",\"Citation 2\"]\n */\nexport const AI_CITATIONS = 'ai.citations';\n\n/**\n * Type for {@link AI_CITATIONS} ai.citations\n */\nexport type AI_CITATIONS_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__completion_tokens__used.json\n\n/**\n * The number of tokens used to respond to the message. `ai.completion_tokens.used`\n *\n * Attribute Value Type: `number` {@link AI_COMPLETION_TOKENS_USED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_OUTPUT_TOKENS} `gen_ai.usage.output_tokens`, {@link GEN_AI_USAGE_COMPLETION_TOKENS} `gen_ai.usage.completion_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_OUTPUT_TOKENS} (gen_ai.usage.output_tokens) instead\n * @example 10\n */\nexport const AI_COMPLETION_TOKENS_USED = 'ai.completion_tokens.used';\n\n/**\n * Type for {@link AI_COMPLETION_TOKENS_USED} ai.completion_tokens.used\n */\nexport type AI_COMPLETION_TOKENS_USED_TYPE = number;\n\n// Path: model/attributes/ai/ai__documents.json\n\n/**\n * Documents or content chunks used as context for the AI model. `ai.documents`\n *\n * Attribute Value Type: `Array<string>` {@link AI_DOCUMENTS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"document1.txt\",\"document2.pdf\"]\n */\nexport const AI_DOCUMENTS = 'ai.documents';\n\n/**\n * Type for {@link AI_DOCUMENTS} ai.documents\n */\nexport type AI_DOCUMENTS_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__finish_reason.json\n\n/**\n * The reason why the model stopped generating. `ai.finish_reason`\n *\n * Attribute Value Type: `string` {@link AI_FINISH_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_FINISH_REASONS} `gen_ai.response.finish_reasons`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_FINISH_REASONS} (gen_ai.response.finish_reasons) instead\n * @example \"COMPLETE\"\n */\nexport const AI_FINISH_REASON = 'ai.finish_reason';\n\n/**\n * Type for {@link AI_FINISH_REASON} ai.finish_reason\n */\nexport type AI_FINISH_REASON_TYPE = string;\n\n// Path: model/attributes/ai/ai__frequency_penalty.json\n\n/**\n * Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation. `ai.frequency_penalty`\n *\n * Attribute Value Type: `number` {@link AI_FREQUENCY_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_FREQUENCY_PENALTY} `gen_ai.request.frequency_penalty`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_FREQUENCY_PENALTY} (gen_ai.request.frequency_penalty) instead\n * @example 0.5\n */\nexport const AI_FREQUENCY_PENALTY = 'ai.frequency_penalty';\n\n/**\n * Type for {@link AI_FREQUENCY_PENALTY} ai.frequency_penalty\n */\nexport type AI_FREQUENCY_PENALTY_TYPE = number;\n\n// Path: model/attributes/ai/ai__function_call.json\n\n/**\n * For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls `ai.function_call`\n *\n * Attribute Value Type: `string` {@link AI_FUNCTION_CALL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_NAME} `gen_ai.tool.name`, {@link MCP_TOOL_NAME} `mcp.tool.name`\n *\n * @deprecated Use {@link GEN_AI_TOOL_NAME} (gen_ai.tool.name) instead\n * @example \"function_name\"\n */\nexport const AI_FUNCTION_CALL = 'ai.function_call';\n\n/**\n * Type for {@link AI_FUNCTION_CALL} ai.function_call\n */\nexport type AI_FUNCTION_CALL_TYPE = string;\n\n// Path: model/attributes/ai/ai__generation_id.json\n\n/**\n * Unique identifier for the completion. `ai.generation_id`\n *\n * Attribute Value Type: `string` {@link AI_GENERATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_ID} `gen_ai.response.id`, {@link AI_RESPONSE_ID} `ai.response.id`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_ID} (gen_ai.response.id) instead\n * @example \"gen_123abc\"\n */\nexport const AI_GENERATION_ID = 'ai.generation_id';\n\n/**\n * Type for {@link AI_GENERATION_ID} ai.generation_id\n */\nexport type AI_GENERATION_ID_TYPE = string;\n\n// Path: model/attributes/ai/ai__input_messages.json\n\n/**\n * The input messages sent to the model `ai.input_messages`\n *\n * Attribute Value Type: `string` {@link AI_INPUT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_MESSAGES} `gen_ai.request.messages`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const AI_INPUT_MESSAGES = 'ai.input_messages';\n\n/**\n * Type for {@link AI_INPUT_MESSAGES} ai.input_messages\n */\nexport type AI_INPUT_MESSAGES_TYPE = string;\n\n// Path: model/attributes/ai/ai__is_search_required.json\n\n/**\n * Boolean indicating if the model needs to perform a search. `ai.is_search_required`\n *\n * Attribute Value Type: `boolean` {@link AI_IS_SEARCH_REQUIRED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example false\n */\nexport const AI_IS_SEARCH_REQUIRED = 'ai.is_search_required';\n\n/**\n * Type for {@link AI_IS_SEARCH_REQUIRED} ai.is_search_required\n */\nexport type AI_IS_SEARCH_REQUIRED_TYPE = boolean;\n\n// Path: model/attributes/ai/ai__metadata.json\n\n/**\n * Extra metadata passed to an AI pipeline step. `ai.metadata`\n *\n * Attribute Value Type: `string` {@link AI_METADATA_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"{\\\"user_id\\\": 123, \\\"session_id\\\": \\\"abc123\\\"}\"\n */\nexport const AI_METADATA = 'ai.metadata';\n\n/**\n * Type for {@link AI_METADATA} ai.metadata\n */\nexport type AI_METADATA_TYPE = string;\n\n// Path: model/attributes/ai/ai__model__id.json\n\n/**\n * The id of the model used by the Vercel AI SDK. `ai.model.id`\n *\n * Attribute Value Type: `string` {@link AI_MODEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_MODEL} `gen_ai.request.model`, {@link _AI_MODEL_ID} `ai.model_id`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_MODEL} (gen_ai.request.model) instead - This attribute is being deprecated in favor of gen_ai.request.model.\n * @example \"gpt-4o\"\n */\nexport const AI_MODEL_ID = 'ai.model.id';\n\n/**\n * Type for {@link AI_MODEL_ID} ai.model.id\n */\nexport type AI_MODEL_ID_TYPE = string;\n\n// Path: model/attributes/ai/ai__model_id.json\n\n/**\n * The vendor-specific ID of the model used. `ai.model_id`\n *\n * Attribute Value Type: `string` {@link _AI_MODEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_MODEL} `gen_ai.request.model`, {@link AI_MODEL_ID} `ai.model.id`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_MODEL} (gen_ai.request.model) instead\n * @example \"gpt-4\"\n */\nexport const _AI_MODEL_ID = 'ai.model_id';\n\n/**\n * Type for {@link _AI_MODEL_ID} ai.model_id\n */\nexport type _AI_MODEL_ID_TYPE = string;\n\n// Path: model/attributes/ai/ai__model__provider.json\n\n/**\n * The provider of the model. `ai.model.provider`\n *\n * Attribute Value Type: `string` {@link AI_MODEL_PROVIDER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_PROVIDER_NAME} `gen_ai.provider.name`, {@link GEN_AI_SYSTEM} `gen_ai.system`\n *\n * @deprecated Use {@link GEN_AI_PROVIDER_NAME} (gen_ai.provider.name) instead\n * @example \"openai\"\n */\nexport const AI_MODEL_PROVIDER = 'ai.model.provider';\n\n/**\n * Type for {@link AI_MODEL_PROVIDER} ai.model.provider\n */\nexport type AI_MODEL_PROVIDER_TYPE = string;\n\n// Path: model/attributes/ai/ai__pipeline__name.json\n\n/**\n * The name of the AI pipeline. `ai.pipeline.name`\n *\n * Attribute Value Type: `string` {@link AI_PIPELINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_PIPELINE_NAME} `gen_ai.pipeline.name`, {@link LANGCHAIN_CHAIN_NAME} `langchain.chain.name`\n *\n * @deprecated Use {@link GEN_AI_PIPELINE_NAME} (gen_ai.pipeline.name) instead\n * @example \"Autofix Pipeline\"\n */\nexport const AI_PIPELINE_NAME = 'ai.pipeline.name';\n\n/**\n * Type for {@link AI_PIPELINE_NAME} ai.pipeline.name\n */\nexport type AI_PIPELINE_NAME_TYPE = string;\n\n// Path: model/attributes/ai/ai__preamble.json\n\n/**\n * For an AI model call, the preamble parameter. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style. `ai.preamble`\n *\n * Attribute Value Type: `string` {@link AI_PREAMBLE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_SYSTEM_INSTRUCTIONS} `gen_ai.system_instructions`\n *\n * @deprecated Use {@link GEN_AI_SYSTEM_INSTRUCTIONS} (gen_ai.system_instructions) instead\n * @example \"You are now a clown.\"\n */\nexport const AI_PREAMBLE = 'ai.preamble';\n\n/**\n * Type for {@link AI_PREAMBLE} ai.preamble\n */\nexport type AI_PREAMBLE_TYPE = string;\n\n// Path: model/attributes/ai/ai__presence_penalty.json\n\n/**\n * Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies. `ai.presence_penalty`\n *\n * Attribute Value Type: `number` {@link AI_PRESENCE_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_PRESENCE_PENALTY} `gen_ai.request.presence_penalty`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_PRESENCE_PENALTY} (gen_ai.request.presence_penalty) instead\n * @example 0.5\n */\nexport const AI_PRESENCE_PENALTY = 'ai.presence_penalty';\n\n/**\n * Type for {@link AI_PRESENCE_PENALTY} ai.presence_penalty\n */\nexport type AI_PRESENCE_PENALTY_TYPE = number;\n\n// Path: model/attributes/ai/ai__prompt.json\n\n/**\n * The prompt passed to the Vercel AI SDK, as a stringified object. `ai.prompt`\n *\n * Attribute Value Type: `string` {@link AI_PROMPT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_TEXTS} `ai.texts`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link GEN_AI_PROMPT} `gen_ai.prompt`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead - This attribute is being deprecated in favor of gen_ai.input.messages.\n * @example \"{\\\"prompt\\\":\\\"What is the weather in Paris?\\\"}\"\n */\nexport const AI_PROMPT = 'ai.prompt';\n\n/**\n * Type for {@link AI_PROMPT} ai.prompt\n */\nexport type AI_PROMPT_TYPE = string;\n\n// Path: model/attributes/ai/ai__prompt__messages.json\n\n/**\n * The input messages sent to the AI model. `ai.prompt.messages`\n *\n * Attribute Value Type: `string` {@link AI_PROMPT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_TEXTS} `ai.texts`, {@link GEN_AI_PROMPT} `gen_ai.prompt`, {@link AI_PROMPT} `ai.prompt`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const AI_PROMPT_MESSAGES = 'ai.prompt.messages';\n\n/**\n * Type for {@link AI_PROMPT_MESSAGES} ai.prompt.messages\n */\nexport type AI_PROMPT_MESSAGES_TYPE = string;\n\n// Path: model/attributes/ai/ai__prompt_tokens__used.json\n\n/**\n * The number of tokens used to process just the prompt. `ai.prompt_tokens.used`\n *\n * Attribute Value Type: `number` {@link AI_PROMPT_TOKENS_USED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_PROMPT_TOKENS} `gen_ai.usage.prompt_tokens`, {@link GEN_AI_USAGE_INPUT_TOKENS} `gen_ai.usage.input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_INPUT_TOKENS} (gen_ai.usage.input_tokens) instead\n * @example 20\n */\nexport const AI_PROMPT_TOKENS_USED = 'ai.prompt_tokens.used';\n\n/**\n * Type for {@link AI_PROMPT_TOKENS_USED} ai.prompt_tokens.used\n */\nexport type AI_PROMPT_TOKENS_USED_TYPE = number;\n\n// Path: model/attributes/ai/ai__prompt__tools.json\n\n/**\n * The tools made available to the model, as an array of stringified tool definitions. `ai.prompt.tools`\n *\n * Attribute Value Type: `Array<string>` {@link AI_PROMPT_TOOLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_TOOL_DEFINITIONS} (gen_ai.tool.definitions) instead - This attribute is being deprecated in favor of gen_ai.tool.definitions.\n * @example [\"{\\\"type\\\":\\\"function\\\",\\\"name\\\":\\\"get_weather\\\"}\"]\n */\nexport const AI_PROMPT_TOOLS = 'ai.prompt.tools';\n\n/**\n * Type for {@link AI_PROMPT_TOOLS} ai.prompt.tools\n */\nexport type AI_PROMPT_TOOLS_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__raw_prompting.json\n\n/**\n * When enabled, the user’s prompt will be sent to the model without any pre-processing. `ai.raw_prompting`\n *\n * Attribute Value Type: `boolean` {@link AI_RAW_PROMPTING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example true\n */\nexport const AI_RAW_PROMPTING = 'ai.raw_prompting';\n\n/**\n * Type for {@link AI_RAW_PROMPTING} ai.raw_prompting\n */\nexport type AI_RAW_PROMPTING_TYPE = boolean;\n\n// Path: model/attributes/ai/ai__responses.json\n\n/**\n * The response messages sent back by the AI model. `ai.responses`\n *\n * Attribute Value Type: `Array<string>` {@link AI_RESPONSES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example [\"hello\",\"world\"]\n */\nexport const AI_RESPONSES = 'ai.responses';\n\n/**\n * Type for {@link AI_RESPONSES} ai.responses\n */\nexport type AI_RESPONSES_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__response_format.json\n\n/**\n * For an AI model call, the format of the response `ai.response_format`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_FORMAT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"json_object\"\n */\nexport const AI_RESPONSE_FORMAT = 'ai.response_format';\n\n/**\n * Type for {@link AI_RESPONSE_FORMAT} ai.response_format\n */\nexport type AI_RESPONSE_FORMAT_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__id.json\n\n/**\n * The id of the response returned by the model. `ai.response.id`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_ID} `gen_ai.response.id`, {@link AI_GENERATION_ID} `ai.generation_id`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_ID} (gen_ai.response.id) instead - This attribute is being deprecated in favor of gen_ai.response.id.\n * @example \"chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY\"\n */\nexport const AI_RESPONSE_ID = 'ai.response.id';\n\n/**\n * Type for {@link AI_RESPONSE_ID} ai.response.id\n */\nexport type AI_RESPONSE_ID_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__model.json\n\n/**\n * The id of the model that produced the response. `ai.response.model`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_MODEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_MODEL} `gen_ai.response.model`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_MODEL} (gen_ai.response.model) instead - This attribute is being deprecated in favor of gen_ai.response.model.\n * @example \"gpt-4o-2024-08-06\"\n */\nexport const AI_RESPONSE_MODEL = 'ai.response.model';\n\n/**\n * Type for {@link AI_RESPONSE_MODEL} ai.response.model\n */\nexport type AI_RESPONSE_MODEL_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__object.json\n\n/**\n * The type of the object returned by the model. `ai.response.object`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_OBJECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - This attribute is deprecated. The Sentry conventions have no replacement for the raw Vercel AI response object type.\n * @example \"chat.completion\"\n */\nexport const AI_RESPONSE_OBJECT = 'ai.response.object';\n\n/**\n * Type for {@link AI_RESPONSE_OBJECT} ai.response.object\n */\nexport type AI_RESPONSE_OBJECT_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__text.json\n\n/**\n * The text response from the AI model. `ai.response.text`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_OUTPUT_MESSAGES} `gen_ai.output.messages`, {@link AI_RESPONSE_TOOLCALLS} `ai.response.toolCalls`\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example \"The weather in Paris is currently rainy.\"\n */\nexport const AI_RESPONSE_TEXT = 'ai.response.text';\n\n/**\n * Type for {@link AI_RESPONSE_TEXT} ai.response.text\n */\nexport type AI_RESPONSE_TEXT_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__timestamp.json\n\n/**\n * The ISO 8601 timestamp at which the response was produced. `ai.response.timestamp`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - This attribute is deprecated. The span start and end timestamps carry the same information.\n * @example \"2026-02-19T15:32:11.000Z\"\n */\nexport const AI_RESPONSE_TIMESTAMP = 'ai.response.timestamp';\n\n/**\n * Type for {@link AI_RESPONSE_TIMESTAMP} ai.response.timestamp\n */\nexport type AI_RESPONSE_TIMESTAMP_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__toolCalls.json\n\n/**\n * The tool calls in the AI model response. `ai.response.toolCalls`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_TOOLCALLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_OUTPUT_MESSAGES} `gen_ai.output.messages`, {@link AI_RESPONSE_TEXT} `ai.response.text`\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example \"[{\\\"name\\\": \\\"get_weather\\\", \\\"arguments\\\": {\\\"location\\\": \\\"Paris\\\"}}]\"\n */\nexport const AI_RESPONSE_TOOLCALLS = 'ai.response.toolCalls';\n\n/**\n * Type for {@link AI_RESPONSE_TOOLCALLS} ai.response.toolCalls\n */\nexport type AI_RESPONSE_TOOLCALLS_TYPE = string;\n\n// Path: model/attributes/ai/ai__schema.json\n\n/**\n * The stringified JSON schema the model output must conform to. `ai.schema`\n *\n * Attribute Value Type: `string` {@link AI_SCHEMA_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.\n * @example \"{\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"city\\\":{\\\"type\\\":\\\"string\\\"}}}\"\n */\nexport const AI_SCHEMA = 'ai.schema';\n\n/**\n * Type for {@link AI_SCHEMA} ai.schema\n */\nexport type AI_SCHEMA_TYPE = string;\n\n// Path: model/attributes/ai/ai__search_queries.json\n\n/**\n * Queries used to search for relevant context or documents. `ai.search_queries`\n *\n * Attribute Value Type: `Array<string>` {@link AI_SEARCH_QUERIES_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"climate change effects\",\"renewable energy\"]\n */\nexport const AI_SEARCH_QUERIES = 'ai.search_queries';\n\n/**\n * Type for {@link AI_SEARCH_QUERIES} ai.search_queries\n */\nexport type AI_SEARCH_QUERIES_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__search_results.json\n\n/**\n * Results returned from search queries for context. `ai.search_results`\n *\n * Attribute Value Type: `Array<string>` {@link AI_SEARCH_RESULTS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"search_result_1, search_result_2\"]\n */\nexport const AI_SEARCH_RESULTS = 'ai.search_results';\n\n/**\n * Type for {@link AI_SEARCH_RESULTS} ai.search_results\n */\nexport type AI_SEARCH_RESULTS_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__seed.json\n\n/**\n * The seed, ideally models given the same seed and same other parameters will produce the exact same output. `ai.seed`\n *\n * Attribute Value Type: `string` {@link AI_SEED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_SEED} `gen_ai.request.seed`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_SEED} (gen_ai.request.seed) instead\n * @example \"1234567890\"\n */\nexport const AI_SEED = 'ai.seed';\n\n/**\n * Type for {@link AI_SEED} ai.seed\n */\nexport type AI_SEED_TYPE = string;\n\n// Path: model/attributes/ai/ai__streaming.json\n\n/**\n * Whether the request was streamed back. `ai.streaming`\n *\n * Attribute Value Type: `boolean` {@link AI_STREAMING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_STREAMING} `gen_ai.response.streaming`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_STREAMING} (gen_ai.response.streaming) instead\n * @example true\n */\nexport const AI_STREAMING = 'ai.streaming';\n\n/**\n * Type for {@link AI_STREAMING} ai.streaming\n */\nexport type AI_STREAMING_TYPE = boolean;\n\n// Path: model/attributes/ai/ai__tags.json\n\n/**\n * Tags that describe an AI pipeline step. `ai.tags`\n *\n * Attribute Value Type: `string` {@link AI_TAGS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"{\\\"executed_function\\\": \\\"add_integers\\\"}\"\n */\nexport const AI_TAGS = 'ai.tags';\n\n/**\n * Type for {@link AI_TAGS} ai.tags\n */\nexport type AI_TAGS_TYPE = string;\n\n// Path: model/attributes/ai/ai__temperature.json\n\n/**\n * For an AI model call, the temperature parameter. Temperature essentially means how random the output will be. `ai.temperature`\n *\n * Attribute Value Type: `number` {@link AI_TEMPERATURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_TEMPERATURE} `gen_ai.request.temperature`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_TEMPERATURE} (gen_ai.request.temperature) instead\n * @example 0.1\n */\nexport const AI_TEMPERATURE = 'ai.temperature';\n\n/**\n * Type for {@link AI_TEMPERATURE} ai.temperature\n */\nexport type AI_TEMPERATURE_TYPE = number;\n\n// Path: model/attributes/ai/ai__texts.json\n\n/**\n * Raw text inputs provided to the model. `ai.texts`\n *\n * Attribute Value Type: `Array<string>` {@link AI_TEXTS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link GEN_AI_PROMPT} `gen_ai.prompt`, {@link AI_PROMPT} `ai.prompt`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @example [\"Hello, how are you?\",\"What is the capital of France?\"]\n */\nexport const AI_TEXTS = 'ai.texts';\n\n/**\n * Type for {@link AI_TEXTS} ai.texts\n */\nexport type AI_TEXTS_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__toolCall__args.json\n\n/**\n * The arguments of the tool call. `ai.toolCall.args`\n *\n * Attribute Value Type: `string` {@link AI_TOOLCALL_ARGS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_ARGUMENTS} `gen_ai.tool.call.arguments`, {@link GEN_AI_TOOL_INPUT} `gen_ai.tool.input`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_ARGUMENTS} (gen_ai.tool.call.arguments) instead\n * @example \"{\\\"location\\\": \\\"Paris\\\"}\"\n */\nexport const AI_TOOLCALL_ARGS = 'ai.toolCall.args';\n\n/**\n * Type for {@link AI_TOOLCALL_ARGS} ai.toolCall.args\n */\nexport type AI_TOOLCALL_ARGS_TYPE = string;\n\n// Path: model/attributes/ai/ai__toolCall__result.json\n\n/**\n * The result of the tool call. `ai.toolCall.result`\n *\n * Attribute Value Type: `string` {@link AI_TOOLCALL_RESULT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57°F\"\n */\nexport const AI_TOOLCALL_RESULT = 'ai.toolCall.result';\n\n/**\n * Type for {@link AI_TOOLCALL_RESULT} ai.toolCall.result\n */\nexport type AI_TOOLCALL_RESULT_TYPE = string;\n\n// Path: model/attributes/ai/ai__tools.json\n\n/**\n * For an AI model call, the functions that are available `ai.tools`\n *\n * Attribute Value Type: `Array<string>` {@link AI_TOOLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_TOOL_DEFINITIONS} (gen_ai.tool.definitions) instead\n * @example [\"function_1\",\"function_2\"]\n */\nexport const AI_TOOLS = 'ai.tools';\n\n/**\n * Type for {@link AI_TOOLS} ai.tools\n */\nexport type AI_TOOLS_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__tool_calls.json\n\n/**\n * For an AI model call, the tool calls that were made. `ai.tool_calls`\n *\n * Attribute Value Type: `Array<string>` {@link AI_TOOL_CALLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example [\"tool_call_1\",\"tool_call_2\"]\n */\nexport const AI_TOOL_CALLS = 'ai.tool_calls';\n\n/**\n * Type for {@link AI_TOOL_CALLS} ai.tool_calls\n */\nexport type AI_TOOL_CALLS_TYPE = Array<string>;\n\n// Path: model/attributes/ai/ai__top_k.json\n\n/**\n * Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered). `ai.top_k`\n *\n * Attribute Value Type: `number` {@link AI_TOP_K_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_TOP_K} `gen_ai.request.top_k`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_TOP_K} (gen_ai.request.top_k) instead\n * @example 35\n */\nexport const AI_TOP_K = 'ai.top_k';\n\n/**\n * Type for {@link AI_TOP_K} ai.top_k\n */\nexport type AI_TOP_K_TYPE = number;\n\n// Path: model/attributes/ai/ai__top_p.json\n\n/**\n * Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered). `ai.top_p`\n *\n * Attribute Value Type: `number` {@link AI_TOP_P_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_TOP_P} `gen_ai.request.top_p`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_TOP_P} (gen_ai.request.top_p) instead\n * @example 0.7\n */\nexport const AI_TOP_P = 'ai.top_p';\n\n/**\n * Type for {@link AI_TOP_P} ai.top_p\n */\nexport type AI_TOP_P_TYPE = number;\n\n// Path: model/attributes/ai/ai__total_cost.json\n\n/**\n * The total cost for the tokens used. `ai.total_cost`\n *\n * Attribute Value Type: `number` {@link AI_TOTAL_COST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_COST_TOTAL_TOKENS} `gen_ai.cost.total_tokens`\n *\n * @deprecated Use {@link GEN_AI_COST_TOTAL_TOKENS} (gen_ai.cost.total_tokens) instead\n * @example 12.34\n */\nexport const AI_TOTAL_COST = 'ai.total_cost';\n\n/**\n * Type for {@link AI_TOTAL_COST} ai.total_cost\n */\nexport type AI_TOTAL_COST_TYPE = number;\n\n// Path: model/attributes/ai/ai__total_tokens__used.json\n\n/**\n * The total number of tokens used to process the prompt. `ai.total_tokens.used`\n *\n * Attribute Value Type: `number` {@link AI_TOTAL_TOKENS_USED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_TOTAL_TOKENS} `gen_ai.usage.total_tokens`, {@link AI_USAGE_TOKENS} `ai.usage.tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_TOTAL_TOKENS} (gen_ai.usage.total_tokens) instead\n * @example 30\n */\nexport const AI_TOTAL_TOKENS_USED = 'ai.total_tokens.used';\n\n/**\n * Type for {@link AI_TOTAL_TOKENS_USED} ai.total_tokens.used\n */\nexport type AI_TOTAL_TOKENS_USED_TYPE = number;\n\n// Path: model/attributes/ai/ai__usage__tokens.json\n\n/**\n * The total number of tokens used for the request and the response. `ai.usage.tokens`\n *\n * Attribute Value Type: `number` {@link AI_USAGE_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_TOTAL_TOKENS} `gen_ai.usage.total_tokens`, {@link AI_TOTAL_TOKENS_USED} `ai.total_tokens.used`\n *\n * @deprecated Use {@link GEN_AI_USAGE_TOTAL_TOKENS} (gen_ai.usage.total_tokens) instead - This attribute is being deprecated in favor of gen_ai.usage.total_tokens.\n * @example 150\n */\nexport const AI_USAGE_TOKENS = 'ai.usage.tokens';\n\n/**\n * Type for {@link AI_USAGE_TOKENS} ai.usage.tokens\n */\nexport type AI_USAGE_TOKENS_TYPE = number;\n\n// Path: model/attributes/ai/ai__values.json\n\n/**\n * The stringified values produced by a Vercel AI SDK object or array generation. `ai.values`\n *\n * Attribute Value Type: `string` {@link AI_VALUES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - This attribute is deprecated. Use gen_ai.output.messages for model output instead.\n * @example \"[{\\\"city\\\":\\\"Paris\\\"}]\"\n */\nexport const AI_VALUES = 'ai.values';\n\n/**\n * Type for {@link AI_VALUES} ai.values\n */\nexport type AI_VALUES_TYPE = string;\n\n// Path: model/attributes/ai/ai__warnings.json\n\n/**\n * Warning messages generated during model execution. `ai.warnings`\n *\n * Attribute Value Type: `Array<string>` {@link AI_WARNINGS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"Token limit exceeded\"]\n */\nexport const AI_WARNINGS = 'ai.warnings';\n\n/**\n * Type for {@link AI_WARNINGS} ai.warnings\n */\nexport type AI_WARNINGS_TYPE = Array<string>;\n\n// Path: model/attributes/angular/angular__version.json\n\n/**\n * The version of the Angular framework `angular.version`\n *\n * Attribute Value Type: `string` {@link ANGULAR_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"17.1.0\"\n */\nexport const ANGULAR_VERSION = 'angular.version';\n\n/**\n * Type for {@link ANGULAR_VERSION} angular.version\n */\nexport type ANGULAR_VERSION_TYPE = string;\n\n// Path: model/attributes/anthropic/anthropic__tool_result__content.json\n\n/**\n * The content of the tool result. `anthropic.tool_result.content`\n *\n * Attribute Value Type: `string` {@link ANTHROPIC_TOOL_RESULT_CONTENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead - Use gen_ai.tool.call.result for tool results.\n * @example \"rainy, 57°F\"\n */\nexport const ANTHROPIC_TOOL_RESULT_CONTENT = 'anthropic.tool_result.content';\n\n/**\n * Type for {@link ANTHROPIC_TOOL_RESULT_CONTENT} anthropic.tool_result.content\n */\nexport type ANTHROPIC_TOOL_RESULT_CONTENT_TYPE = string;\n\n// Path: model/attributes/app/app__app_build.json\n\n/**\n * Internal build identifier, as it appears on the platform. `app.app_build`\n *\n * Attribute Value Type: `string` {@link APP_APP_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_BUILD} `app.build`\n *\n * @deprecated Use {@link APP_BUILD} (app.build) instead - Deprecated in favor of app.build\n * @example \"1\"\n */\nexport const APP_APP_BUILD = 'app.app_build';\n\n/**\n * Type for {@link APP_APP_BUILD} app.app_build\n */\nexport type APP_APP_BUILD_TYPE = string;\n\n// Path: model/attributes/app/app__app_identifier.json\n\n/**\n * Version-independent application identifier, often a dotted bundle ID. `app.app_identifier`\n *\n * Attribute Value Type: `string` {@link APP_APP_IDENTIFIER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_IDENTIFIER} `app.identifier`\n *\n * @deprecated Use {@link APP_IDENTIFIER} (app.identifier) instead - Deprecated in favor of app.identifier\n * @example \"com.example.myapp\"\n */\nexport const APP_APP_IDENTIFIER = 'app.app_identifier';\n\n/**\n * Type for {@link APP_APP_IDENTIFIER} app.app_identifier\n */\nexport type APP_APP_IDENTIFIER_TYPE = string;\n\n// Path: model/attributes/app/app__app_name.json\n\n/**\n * Human readable application name, as it appears on the platform. `app.app_name`\n *\n * Attribute Value Type: `string` {@link APP_APP_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_NAME} `app.name`\n *\n * @deprecated Use {@link APP_NAME} (app.name) instead - Deprecated in favor of app.name\n * @example \"My App\"\n */\nexport const APP_APP_NAME = 'app.app_name';\n\n/**\n * Type for {@link APP_APP_NAME} app.app_name\n */\nexport type APP_APP_NAME_TYPE = string;\n\n// Path: model/attributes/app/app__app_start_time.json\n\n/**\n * Formatted UTC timestamp when the user started the application. `app.app_start_time`\n *\n * Attribute Value Type: `string` {@link APP_APP_START_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_TIME} `app.start_time`\n *\n * @deprecated Use {@link APP_START_TIME} (app.start_time) instead - Deprecated in favor of app.start_time\n * @example \"2025-01-01T00:00:00.000Z\"\n */\nexport const APP_APP_START_TIME = 'app.app_start_time';\n\n/**\n * Type for {@link APP_APP_START_TIME} app.app_start_time\n */\nexport type APP_APP_START_TIME_TYPE = string;\n\n// Path: model/attributes/app/app__app_version.json\n\n/**\n * Human readable application version, as it appears on the platform. `app.app_version`\n *\n * Attribute Value Type: `string` {@link APP_APP_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VERSION} `app.version`\n *\n * @deprecated Use {@link APP_VERSION} (app.version) instead - Deprecated in favor of app.version\n * @example \"1.0.0\"\n */\nexport const APP_APP_VERSION = 'app.app_version';\n\n/**\n * Type for {@link APP_APP_VERSION} app.app_version\n */\nexport type APP_APP_VERSION_TYPE = string;\n\n// Path: model/attributes/app/app__build.json\n\n/**\n * Internal build identifier, as it appears on the platform. `app.build`\n *\n * Attribute Value Type: `string` {@link APP_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_BUILD} `app.app_build`\n *\n * @example \"1\"\n */\nexport const APP_BUILD = 'app.build';\n\n/**\n * Type for {@link APP_BUILD} app.build\n */\nexport type APP_BUILD_TYPE = string;\n\n// Path: model/attributes/app/app__identifier.json\n\n/**\n * Version-independent application identifier, often a dotted bundle ID. `app.identifier`\n *\n * Attribute Value Type: `string` {@link APP_IDENTIFIER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_IDENTIFIER} `app.app_identifier`\n *\n * @example \"com.example.myapp\"\n */\nexport const APP_IDENTIFIER = 'app.identifier';\n\n/**\n * Type for {@link APP_IDENTIFIER} app.identifier\n */\nexport type APP_IDENTIFIER_TYPE = string;\n\n// Path: model/attributes/app/app__in_foreground.json\n\n/**\n * Whether the application is currently in the foreground. `app.in_foreground`\n *\n * Attribute Value Type: `boolean` {@link APP_IN_FOREGROUND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const APP_IN_FOREGROUND = 'app.in_foreground';\n\n/**\n * Type for {@link APP_IN_FOREGROUND} app.in_foreground\n */\nexport type APP_IN_FOREGROUND_TYPE = boolean;\n\n// Path: model/attributes/app/app__name.json\n\n/**\n * Human readable application name, as it appears on the platform. `app.name`\n *\n * Attribute Value Type: `string` {@link APP_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_NAME} `app.app_name`\n *\n * @example \"My App\"\n */\nexport const APP_NAME = 'app.name';\n\n/**\n * Type for {@link APP_NAME} app.name\n */\nexport type APP_NAME_TYPE = string;\n\n// Path: model/attributes/app_start_cold.json\n\n/**\n * The duration of a cold app start in milliseconds `app_start_cold`\n *\n * Attribute Value Type: `number` {@link APP_START_COLD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_START_COLD_VALUE} `app.vitals.start.cold.value`\n *\n * @deprecated Use {@link APP_VITALS_START_COLD_VALUE} (app.vitals.start.cold.value) instead - Replaced by app.vitals.start.cold.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const APP_START_COLD = 'app_start_cold';\n\n/**\n * Type for {@link APP_START_COLD} app_start_cold\n */\nexport type APP_START_COLD_TYPE = number;\n\n// Path: model/attributes/app/app__start_time.json\n\n/**\n * Formatted UTC timestamp when the user started the application. `app.start_time`\n *\n * Attribute Value Type: `string` {@link APP_START_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_START_TIME} `app.app_start_time`\n *\n * @example \"2025-01-01T00:00:00.000Z\"\n */\nexport const APP_START_TIME = 'app.start_time';\n\n/**\n * Type for {@link APP_START_TIME} app.start_time\n */\nexport type APP_START_TIME_TYPE = string;\n\n// Path: model/attributes/app_start_type.json\n\n/**\n * Mobile app start variant. Either cold or warm. `app_start_type`\n *\n * Attribute Value Type: `string` {@link APP_START_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_START_TYPE} `app.vitals.start.type`\n *\n * @deprecated Use {@link APP_VITALS_START_TYPE} (app.vitals.start.type) instead - Replaced by app.vitals.start.type to align with the app.vitals.* namespace for mobile performance attributes\n * @example \"cold\"\n */\nexport const APP_START_TYPE = 'app_start_type';\n\n/**\n * Type for {@link APP_START_TYPE} app_start_type\n */\nexport type APP_START_TYPE_TYPE = string;\n\n// Path: model/attributes/app_start_warm.json\n\n/**\n * The duration of a warm app start in milliseconds `app_start_warm`\n *\n * Attribute Value Type: `number` {@link APP_START_WARM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_START_WARM_VALUE} `app.vitals.start.warm.value`\n *\n * @deprecated Use {@link APP_VITALS_START_WARM_VALUE} (app.vitals.start.warm.value) instead - Replaced by app.vitals.start.warm.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const APP_START_WARM = 'app_start_warm';\n\n/**\n * Type for {@link APP_START_WARM} app_start_warm\n */\nexport type APP_START_WARM_TYPE = number;\n\n// Path: model/attributes/app/app__version.json\n\n/**\n * Human readable application version, as it appears on the platform. `app.version`\n *\n * Attribute Value Type: `string` {@link APP_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_VERSION} `app.app_version`\n *\n * @example \"1.0.0\"\n */\nexport const APP_VERSION = 'app.version';\n\n/**\n * Type for {@link APP_VERSION} app.version\n */\nexport type APP_VERSION_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__frames__delay__value.json\n\n/**\n * The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/). `app.vitals.frames.delay.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_DELAY_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_DELAY} `frames.delay`\n *\n * @example 5\n */\nexport const APP_VITALS_FRAMES_DELAY_VALUE = 'app.vitals.frames.delay.value';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_DELAY_VALUE} app.vitals.frames.delay.value\n */\nexport type APP_VITALS_FRAMES_DELAY_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__frozen__count.json\n\n/**\n * The number of frozen frames rendered during the lifetime of the span. `app.vitals.frames.frozen.count`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_FROZEN_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_FROZEN} `frames.frozen`, {@link SENTRY_FRAMES_FROZEN} `sentry.frames.frozen`\n *\n * @example 3\n */\nexport const APP_VITALS_FRAMES_FROZEN_COUNT = 'app.vitals.frames.frozen.count';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_FROZEN_COUNT} app.vitals.frames.frozen.count\n */\nexport type APP_VITALS_FRAMES_FROZEN_COUNT_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__frozen__rate.json\n\n/**\n * The fraction of rendered frames that were frozen, calculated as `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay. `app.vitals.frames.frozen.rate`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_FROZEN_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_FROZEN_RATE} `frames_frozen_rate`\n *\n * @example 0.5\n */\nexport const APP_VITALS_FRAMES_FROZEN_RATE = 'app.vitals.frames.frozen.rate';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_FROZEN_RATE} app.vitals.frames.frozen.rate\n */\nexport type APP_VITALS_FRAMES_FROZEN_RATE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__slow__count.json\n\n/**\n * The number of slow frames rendered during the lifetime of the span. `app.vitals.frames.slow.count`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_SLOW_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_SLOW} `frames.slow`, {@link SENTRY_FRAMES_SLOW} `sentry.frames.slow`\n *\n * @example 1\n */\nexport const APP_VITALS_FRAMES_SLOW_COUNT = 'app.vitals.frames.slow.count';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_SLOW_COUNT} app.vitals.frames.slow.count\n */\nexport type APP_VITALS_FRAMES_SLOW_COUNT_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__slow__rate.json\n\n/**\n * The fraction of rendered frames that were slow, calculated as `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay. `app.vitals.frames.slow.rate`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_SLOW_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_SLOW_RATE} `frames_slow_rate`\n *\n * @example 0.25\n */\nexport const APP_VITALS_FRAMES_SLOW_RATE = 'app.vitals.frames.slow.rate';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_SLOW_RATE} app.vitals.frames.slow.rate\n */\nexport type APP_VITALS_FRAMES_SLOW_RATE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__total__count.json\n\n/**\n * The number of total frames rendered during the lifetime of the span. `app.vitals.frames.total.count`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_TOTAL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_TOTAL} `frames.total`, {@link SENTRY_FRAMES_TOTAL} `sentry.frames.total`\n *\n * @example 60\n */\nexport const APP_VITALS_FRAMES_TOTAL_COUNT = 'app.vitals.frames.total.count';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_TOTAL_COUNT} app.vitals.frames.total.count\n */\nexport type APP_VITALS_FRAMES_TOTAL_COUNT_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__stall__duration.json\n\n/**\n * The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay. `app.vitals.stall.duration`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_STALL_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link STALL_TOTAL_TIME} `stall_total_time`\n *\n * @example 4000\n */\nexport const APP_VITALS_STALL_DURATION = 'app.vitals.stall.duration';\n\n/**\n * Type for {@link APP_VITALS_STALL_DURATION} app.vitals.stall.duration\n */\nexport type APP_VITALS_STALL_DURATION_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__stall__percentage.json\n\n/**\n * The fraction of transaction duration during which the app was stalled, between 0.0 and 1.0. For example, 0.8 represents 80%. Only applies to React Native. This is computed by Relay. `app.vitals.stall.percentage`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_STALL_PERCENTAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link STALL_PERCENTAGE} `stall_percentage`\n *\n * @example 0.8\n */\nexport const APP_VITALS_STALL_PERCENTAGE = 'app.vitals.stall.percentage';\n\n/**\n * Type for {@link APP_VITALS_STALL_PERCENTAGE} app.vitals.stall.percentage\n */\nexport type APP_VITALS_STALL_PERCENTAGE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__start__cold__value.json\n\n/**\n * The duration of a cold app start in milliseconds `app.vitals.start.cold.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_START_COLD_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_COLD} `app_start_cold`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_START_COLD_VALUE = 'app.vitals.start.cold.value';\n\n/**\n * Type for {@link APP_VITALS_START_COLD_VALUE} app.vitals.start.cold.value\n */\nexport type APP_VITALS_START_COLD_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__start__prewarmed.json\n\n/**\n * Whether the app start was prewarmed. `app.vitals.start.prewarmed`\n *\n * Attribute Value Type: `boolean` {@link APP_VITALS_START_PREWARMED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const APP_VITALS_START_PREWARMED = 'app.vitals.start.prewarmed';\n\n/**\n * Type for {@link APP_VITALS_START_PREWARMED} app.vitals.start.prewarmed\n */\nexport type APP_VITALS_START_PREWARMED_TYPE = boolean;\n\n// Path: model/attributes/app/app__vitals__start__reason.json\n\n/**\n * The reason that triggered the app start. `app.vitals.start.reason`\n *\n * Attribute Value Type: `string` {@link APP_VITALS_START_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"push\"\n */\nexport const APP_VITALS_START_REASON = 'app.vitals.start.reason';\n\n/**\n * Type for {@link APP_VITALS_START_REASON} app.vitals.start.reason\n */\nexport type APP_VITALS_START_REASON_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__start__screen.json\n\n/**\n * The screen that is rendered when the app start is complete. This is the screen the user first sees and can interact with after launch. The absence of this attribute on the app start span indicates a background app start where no UI was rendered. `app.vitals.start.screen`\n *\n * Attribute Value Type: `string` {@link APP_VITALS_START_SCREEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"MainActivity\"\n */\nexport const APP_VITALS_START_SCREEN = 'app.vitals.start.screen';\n\n/**\n * Type for {@link APP_VITALS_START_SCREEN} app.vitals.start.screen\n */\nexport type APP_VITALS_START_SCREEN_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__start__type.json\n\n/**\n * The type of app start, for example `cold` or `warm` `app.vitals.start.type`\n *\n * Attribute Value Type: `string` {@link APP_VITALS_START_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_TYPE} `app_start_type`\n *\n * @example \"cold\"\n */\nexport const APP_VITALS_START_TYPE = 'app.vitals.start.type';\n\n/**\n * Type for {@link APP_VITALS_START_TYPE} app.vitals.start.type\n */\nexport type APP_VITALS_START_TYPE_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__start__warm__value.json\n\n/**\n * The duration of a warm app start in milliseconds `app.vitals.start.warm.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_START_WARM_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_WARM} `app_start_warm`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_START_WARM_VALUE = 'app.vitals.start.warm.value';\n\n/**\n * Type for {@link APP_VITALS_START_WARM_VALUE} app.vitals.start.warm.value\n */\nexport type APP_VITALS_START_WARM_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__ttfd__value.json\n\n/**\n * The duration of time to full display in milliseconds `app.vitals.ttfd.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_TTFD_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TIME_TO_FULL_DISPLAY} `time_to_full_display`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_TTFD_VALUE = 'app.vitals.ttfd.value';\n\n/**\n * Type for {@link APP_VITALS_TTFD_VALUE} app.vitals.ttfd.value\n */\nexport type APP_VITALS_TTFD_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__ttid__value.json\n\n/**\n * The duration of time to initial display in milliseconds `app.vitals.ttid.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_TTID_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TIME_TO_INITIAL_DISPLAY} `time_to_initial_display`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_TTID_VALUE = 'app.vitals.ttid.value';\n\n/**\n * Type for {@link APP_VITALS_TTID_VALUE} app.vitals.ttid.value\n */\nexport type APP_VITALS_TTID_VALUE_TYPE = number;\n\n// Path: model/attributes/art/art__gc__blocking_count.json\n\n/**\n * Total number of blocking (stop-the-world) garbage collections performed by the Android Runtime `art.gc.blocking_count`\n *\n * Attribute Value Type: `number` {@link ART_GC_BLOCKING_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const ART_GC_BLOCKING_COUNT = 'art.gc.blocking_count';\n\n/**\n * Type for {@link ART_GC_BLOCKING_COUNT} art.gc.blocking_count\n */\nexport type ART_GC_BLOCKING_COUNT_TYPE = number;\n\n// Path: model/attributes/art/art__gc__blocking_time.json\n\n/**\n * Total time spent in blocking (stop-the-world) garbage collections by the Android Runtime, in milliseconds `art.gc.blocking_time`\n *\n * Attribute Value Type: `number` {@link ART_GC_BLOCKING_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 11.873\n */\nexport const ART_GC_BLOCKING_TIME = 'art.gc.blocking_time';\n\n/**\n * Type for {@link ART_GC_BLOCKING_TIME} art.gc.blocking_time\n */\nexport type ART_GC_BLOCKING_TIME_TYPE = number;\n\n// Path: model/attributes/art/art__gc__pre_oome_count.json\n\n/**\n * Total number of garbage collections triggered as a last resort before an OutOfMemoryError by the Android Runtime `art.gc.pre_oome_count`\n *\n * Attribute Value Type: `number` {@link ART_GC_PRE_OOME_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n */\nexport const ART_GC_PRE_OOME_COUNT = 'art.gc.pre_oome_count';\n\n/**\n * Type for {@link ART_GC_PRE_OOME_COUNT} art.gc.pre_oome_count\n */\nexport type ART_GC_PRE_OOME_COUNT_TYPE = number;\n\n// Path: model/attributes/art/art__gc__total_count.json\n\n/**\n * Total number of garbage collections performed by the Android Runtime `art.gc.total_count`\n *\n * Attribute Value Type: `number` {@link ART_GC_TOTAL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const ART_GC_TOTAL_COUNT = 'art.gc.total_count';\n\n/**\n * Type for {@link ART_GC_TOTAL_COUNT} art.gc.total_count\n */\nexport type ART_GC_TOTAL_COUNT_TYPE = number;\n\n// Path: model/attributes/art/art__gc__total_time.json\n\n/**\n * Total time spent in garbage collection by the Android Runtime, in milliseconds `art.gc.total_time`\n *\n * Attribute Value Type: `number` {@link ART_GC_TOTAL_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 11.807\n */\nexport const ART_GC_TOTAL_TIME = 'art.gc.total_time';\n\n/**\n * Type for {@link ART_GC_TOTAL_TIME} art.gc.total_time\n */\nexport type ART_GC_TOTAL_TIME_TYPE = number;\n\n// Path: model/attributes/art/art__gc__waiting_time.json\n\n/**\n * Total time threads spent waiting for garbage collection to complete in the Android Runtime, in milliseconds `art.gc.waiting_time`\n *\n * Attribute Value Type: `number` {@link ART_GC_WAITING_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 8.054\n */\nexport const ART_GC_WAITING_TIME = 'art.gc.waiting_time';\n\n/**\n * Type for {@link ART_GC_WAITING_TIME} art.gc.waiting_time\n */\nexport type ART_GC_WAITING_TIME_TYPE = number;\n\n// Path: model/attributes/art/art__memory__free.json\n\n/**\n * Free memory available to the process as reported by the Android Runtime, in bytes `art.memory.free`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_FREE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3181568\n */\nexport const ART_MEMORY_FREE = 'art.memory.free';\n\n/**\n * Type for {@link ART_MEMORY_FREE} art.memory.free\n */\nexport type ART_MEMORY_FREE_TYPE = number;\n\n// Path: model/attributes/art/art__memory__free_until_gc.json\n\n/**\n * Free memory available before a garbage collection would be triggered by the Android Runtime, in bytes `art.memory.free_until_gc`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_FREE_UNTIL_GC_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3181568\n */\nexport const ART_MEMORY_FREE_UNTIL_GC = 'art.memory.free_until_gc';\n\n/**\n * Type for {@link ART_MEMORY_FREE_UNTIL_GC} art.memory.free_until_gc\n */\nexport type ART_MEMORY_FREE_UNTIL_GC_TYPE = number;\n\n// Path: model/attributes/art/art__memory__free_until_oome.json\n\n/**\n * Free memory available before an OutOfMemoryError would be thrown by the Android Runtime, in bytes `art.memory.free_until_oome`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_FREE_UNTIL_OOME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 196083712\n */\nexport const ART_MEMORY_FREE_UNTIL_OOME = 'art.memory.free_until_oome';\n\n/**\n * Type for {@link ART_MEMORY_FREE_UNTIL_OOME} art.memory.free_until_oome\n */\nexport type ART_MEMORY_FREE_UNTIL_OOME_TYPE = number;\n\n// Path: model/attributes/art/art__memory__max.json\n\n/**\n * Maximum memory the process is allowed to use as reported by the Android Runtime, in bytes `art.memory.max`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_MAX_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 201326592\n */\nexport const ART_MEMORY_MAX = 'art.memory.max';\n\n/**\n * Type for {@link ART_MEMORY_MAX} art.memory.max\n */\nexport type ART_MEMORY_MAX_TYPE = number;\n\n// Path: model/attributes/art/art__memory__total.json\n\n/**\n * Total memory currently allocated to the process by the Android Runtime, in bytes `art.memory.total`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 7774208\n */\nexport const ART_MEMORY_TOTAL = 'art.memory.total';\n\n/**\n * Type for {@link ART_MEMORY_TOTAL} art.memory.total\n */\nexport type ART_MEMORY_TOTAL_TYPE = number;\n\n// Path: model/attributes/aws/aws__cloudwatch__logs__log_group.json\n\n/**\n * The name of the CloudWatch Logs log group `aws.cloudwatch.logs.log_group`\n *\n * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/aws/lambda/my-function\"\n */\nexport const AWS_CLOUDWATCH_LOGS_LOG_GROUP = 'aws.cloudwatch.logs.log_group';\n\n/**\n * Type for {@link AWS_CLOUDWATCH_LOGS_LOG_GROUP} aws.cloudwatch.logs.log_group\n */\nexport type AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE = string;\n\n// Path: model/attributes/aws/aws__cloudwatch__logs__log_stream.json\n\n/**\n * The name of the CloudWatch Logs log stream `aws.cloudwatch.logs.log_stream`\n *\n * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2024/01/01/[$LATEST]abcdef1234567890\"\n */\nexport const AWS_CLOUDWATCH_LOGS_LOG_STREAM = 'aws.cloudwatch.logs.log_stream';\n\n/**\n * Type for {@link AWS_CLOUDWATCH_LOGS_LOG_STREAM} aws.cloudwatch.logs.log_stream\n */\nexport type AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE = string;\n\n// Path: model/attributes/aws/aws__cloudwatch__logs__url.json\n\n/**\n * The URL to the CloudWatch Logs log group `aws.cloudwatch.logs.url`\n *\n * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_URL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group\"\n */\nexport const AWS_CLOUDWATCH_LOGS_URL = 'aws.cloudwatch.logs.url';\n\n/**\n * Type for {@link AWS_CLOUDWATCH_LOGS_URL} aws.cloudwatch.logs.url\n */\nexport type AWS_CLOUDWATCH_LOGS_URL_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__attributes_to_get.json\n\n/**\n * The value of the `AttributesToGet` request parameter. `aws.dynamodb.attributes_to_get`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_DYNAMODB_ATTRIBUTES_TO_GET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"lives\",\"id\"]\n */\nexport const AWS_DYNAMODB_ATTRIBUTES_TO_GET = 'aws.dynamodb.attributes_to_get';\n\n/**\n * Type for {@link AWS_DYNAMODB_ATTRIBUTES_TO_GET} aws.dynamodb.attributes_to_get\n */\nexport type AWS_DYNAMODB_ATTRIBUTES_TO_GET_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__dynamodb__attribute_definitions.json\n\n/**\n * The JSON-serialized value of each item in the `AttributeDefinitions` request field. `aws.dynamodb.attribute_definitions`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"AttributeName\\\": \\\"string\\\", \\\"AttributeType\\\": \\\"string\\\" }\"]\n */\nexport const AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = 'aws.dynamodb.attribute_definitions';\n\n/**\n * Type for {@link AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS} aws.dynamodb.attribute_definitions\n */\nexport type AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__dynamodb__consistent_read.json\n\n/**\n * The value of the `ConsistentRead` request parameter. `aws.dynamodb.consistent_read`\n *\n * Attribute Value Type: `boolean` {@link AWS_DYNAMODB_CONSISTENT_READ_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const AWS_DYNAMODB_CONSISTENT_READ = 'aws.dynamodb.consistent_read';\n\n/**\n * Type for {@link AWS_DYNAMODB_CONSISTENT_READ} aws.dynamodb.consistent_read\n */\nexport type AWS_DYNAMODB_CONSISTENT_READ_TYPE = boolean;\n\n// Path: model/attributes/aws/aws__dynamodb__consumed_capacity.json\n\n/**\n * The JSON-serialized value of each item in the `ConsumedCapacity` response field. `aws.dynamodb.consumed_capacity`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_DYNAMODB_CONSUMED_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"CapacityUnits\\\": number, \\\"GlobalSecondaryIndexes\\\": { \\\"string\\\" : { \\\"CapacityUnits\\\": number, \\\"ReadCapacityUnits\\\": number, \\\"WriteCapacityUnits\\\": number } }, \\\"LocalSecondaryIndexes\\\": { \\\"string\\\" : { \\\"CapacityUnits\\\": number, \\\"ReadCapacityUnits\\\": number, \\\"WriteCapacityUnits\\\": number } }, \\\"ReadCapacityUnits\\\": number, \\\"Table\\\": { \\\"CapacityUnits\\\": number, \\\"ReadCapacityUnits\\\": number, \\\"WriteCapacityUnits\\\": number }, \\\"TableName\\\": \\\"string\\\", \\\"WriteCapacityUnits\\\": number }\"]\n */\nexport const AWS_DYNAMODB_CONSUMED_CAPACITY = 'aws.dynamodb.consumed_capacity';\n\n/**\n * Type for {@link AWS_DYNAMODB_CONSUMED_CAPACITY} aws.dynamodb.consumed_capacity\n */\nexport type AWS_DYNAMODB_CONSUMED_CAPACITY_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__dynamodb__count.json\n\n/**\n * The value of the `Count` response parameter. `aws.dynamodb.count`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const AWS_DYNAMODB_COUNT = 'aws.dynamodb.count';\n\n/**\n * Type for {@link AWS_DYNAMODB_COUNT} aws.dynamodb.count\n */\nexport type AWS_DYNAMODB_COUNT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__exclusive_start_table.json\n\n/**\n * The value of the `ExclusiveStartTableName` request parameter. `aws.dynamodb.exclusive_start_table`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_EXCLUSIVE_START_TABLE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Users\"\n */\nexport const AWS_DYNAMODB_EXCLUSIVE_START_TABLE = 'aws.dynamodb.exclusive_start_table';\n\n/**\n * Type for {@link AWS_DYNAMODB_EXCLUSIVE_START_TABLE} aws.dynamodb.exclusive_start_table\n */\nexport type AWS_DYNAMODB_EXCLUSIVE_START_TABLE_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__global_secondary_indexes.json\n\n/**\n * The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. `aws.dynamodb.global_secondary_indexes`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"IndexName\\\": \\\"string\\\", \\\"KeySchema\\\": [ { \\\"AttributeName\\\": \\\"string\\\", \\\"KeyType\\\": \\\"string\\\" } ], \\\"Projection\\\": { \\\"NonKeyAttributes\\\": [ \\\"string\\\" ], \\\"ProjectionType\\\": \\\"string\\\" }, \\\"ProvisionedThroughput\\\": { \\\"ReadCapacityUnits\\\": number, \\\"WriteCapacityUnits\\\": number } }\"]\n */\nexport const AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = 'aws.dynamodb.global_secondary_indexes';\n\n/**\n * Type for {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES} aws.dynamodb.global_secondary_indexes\n */\nexport type AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__dynamodb__global_secondary_index_updates.json\n\n/**\n * The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. `aws.dynamodb.global_secondary_index_updates`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"Create\\\": { \\\"IndexName\\\": \\\"string\\\", \\\"KeySchema\\\": [ { \\\"AttributeName\\\": \\\"string\\\", \\\"KeyType\\\": \\\"string\\\" } ], \\\"Projection\\\": { \\\"NonKeyAttributes\\\": [ \\\"string\\\" ], \\\"ProjectionType\\\": \\\"string\\\" }, \\\"ProvisionedThroughput\\\": { \\\"ReadCapacityUnits\\\": number, \\\"WriteCapacityUnits\\\": number } }\"]\n */\nexport const AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = 'aws.dynamodb.global_secondary_index_updates';\n\n/**\n * Type for {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES} aws.dynamodb.global_secondary_index_updates\n */\nexport type AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__dynamodb__index_name.json\n\n/**\n * The value of the `IndexName` request parameter. `aws.dynamodb.index_name`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_INDEX_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"name_to_group\"\n */\nexport const AWS_DYNAMODB_INDEX_NAME = 'aws.dynamodb.index_name';\n\n/**\n * Type for {@link AWS_DYNAMODB_INDEX_NAME} aws.dynamodb.index_name\n */\nexport type AWS_DYNAMODB_INDEX_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__item_collection_metrics.json\n\n/**\n * The JSON-serialized value of the `ItemCollectionMetrics` response field. `aws.dynamodb.item_collection_metrics`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_ITEM_COLLECTION_METRICS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"{ \\\"string\\\" : [ { \\\"ItemCollectionKey\\\": { \\\"string\\\" : { \\\"B\\\": blob, \\\"BOOL\\\": boolean, \\\"BS\\\": [ blob ], \\\"L\\\": [ \\\"AttributeValue\\\" ], \\\"M\\\": { \\\"string\\\" : \\\"AttributeValue\\\" }, \\\"N\\\": \\\"string\\\", \\\"NS\\\": [ \\\"string\\\" ], \\\"NULL\\\": boolean, \\\"S\\\": \\\"string\\\", \\\"SS\\\": [ \\\"string\\\" ] } }, \\\"SizeEstimateRangeGB\\\": [ number ] } ] }\"\n */\nexport const AWS_DYNAMODB_ITEM_COLLECTION_METRICS = 'aws.dynamodb.item_collection_metrics';\n\n/**\n * Type for {@link AWS_DYNAMODB_ITEM_COLLECTION_METRICS} aws.dynamodb.item_collection_metrics\n */\nexport type AWS_DYNAMODB_ITEM_COLLECTION_METRICS_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__limit.json\n\n/**\n * The value of the `Limit` request parameter. `aws.dynamodb.limit`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const AWS_DYNAMODB_LIMIT = 'aws.dynamodb.limit';\n\n/**\n * Type for {@link AWS_DYNAMODB_LIMIT} aws.dynamodb.limit\n */\nexport type AWS_DYNAMODB_LIMIT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__local_secondary_indexes.json\n\n/**\n * The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. `aws.dynamodb.local_secondary_indexes`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"IndexArn\\\": \\\"string\\\", \\\"IndexName\\\": \\\"string\\\", \\\"IndexSizeBytes\\\": number, \\\"ItemCount\\\": number, \\\"KeySchema\\\": [ { \\\"AttributeName\\\": \\\"string\\\", \\\"KeyType\\\": \\\"string\\\" } ], \\\"Projection\\\": { \\\"NonKeyAttributes\\\": [ \\\"string\\\" ], \\\"ProjectionType\\\": \\\"string\\\" } }\"]\n */\nexport const AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = 'aws.dynamodb.local_secondary_indexes';\n\n/**\n * Type for {@link AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES} aws.dynamodb.local_secondary_indexes\n */\nexport type AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__dynamodb__projection.json\n\n/**\n * The value of the `ProjectionExpression` request parameter. `aws.dynamodb.projection`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_PROJECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Title, Price, Color\"\n */\nexport const AWS_DYNAMODB_PROJECTION = 'aws.dynamodb.projection';\n\n/**\n * Type for {@link AWS_DYNAMODB_PROJECTION} aws.dynamodb.projection\n */\nexport type AWS_DYNAMODB_PROJECTION_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__provisioned_read_capacity.json\n\n/**\n * The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. `aws.dynamodb.provisioned_read_capacity`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_PROVISIONED_READ_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1\n */\nexport const AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = 'aws.dynamodb.provisioned_read_capacity';\n\n/**\n * Type for {@link AWS_DYNAMODB_PROVISIONED_READ_CAPACITY} aws.dynamodb.provisioned_read_capacity\n */\nexport type AWS_DYNAMODB_PROVISIONED_READ_CAPACITY_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__provisioned_write_capacity.json\n\n/**\n * The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. `aws.dynamodb.provisioned_write_capacity`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 2\n */\nexport const AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = 'aws.dynamodb.provisioned_write_capacity';\n\n/**\n * Type for {@link AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY} aws.dynamodb.provisioned_write_capacity\n */\nexport type AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__scanned_count.json\n\n/**\n * The value of the `ScannedCount` response parameter. `aws.dynamodb.scanned_count`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_SCANNED_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 50\n */\nexport const AWS_DYNAMODB_SCANNED_COUNT = 'aws.dynamodb.scanned_count';\n\n/**\n * Type for {@link AWS_DYNAMODB_SCANNED_COUNT} aws.dynamodb.scanned_count\n */\nexport type AWS_DYNAMODB_SCANNED_COUNT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__scan_forward.json\n\n/**\n * The value of the `ScanIndexForward` request parameter. `aws.dynamodb.scan_forward`\n *\n * Attribute Value Type: `boolean` {@link AWS_DYNAMODB_SCAN_FORWARD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const AWS_DYNAMODB_SCAN_FORWARD = 'aws.dynamodb.scan_forward';\n\n/**\n * Type for {@link AWS_DYNAMODB_SCAN_FORWARD} aws.dynamodb.scan_forward\n */\nexport type AWS_DYNAMODB_SCAN_FORWARD_TYPE = boolean;\n\n// Path: model/attributes/aws/aws__dynamodb__segment.json\n\n/**\n * The value of the `Segment` request parameter. `aws.dynamodb.segment`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_SEGMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const AWS_DYNAMODB_SEGMENT = 'aws.dynamodb.segment';\n\n/**\n * Type for {@link AWS_DYNAMODB_SEGMENT} aws.dynamodb.segment\n */\nexport type AWS_DYNAMODB_SEGMENT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__select.json\n\n/**\n * The value of the `Select` request parameter. `aws.dynamodb.select`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_SELECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ALL_ATTRIBUTES\"\n */\nexport const AWS_DYNAMODB_SELECT = 'aws.dynamodb.select';\n\n/**\n * Type for {@link AWS_DYNAMODB_SELECT} aws.dynamodb.select\n */\nexport type AWS_DYNAMODB_SELECT_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__table_count.json\n\n/**\n * The number of items in the `TableNames` response parameter. `aws.dynamodb.table_count`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_TABLE_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 20\n */\nexport const AWS_DYNAMODB_TABLE_COUNT = 'aws.dynamodb.table_count';\n\n/**\n * Type for {@link AWS_DYNAMODB_TABLE_COUNT} aws.dynamodb.table_count\n */\nexport type AWS_DYNAMODB_TABLE_COUNT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__table_names.json\n\n/**\n * The keys in the `RequestItems` object field. `aws.dynamodb.table_names`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_DYNAMODB_TABLE_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"Users\",\"Cats\"]\n */\nexport const AWS_DYNAMODB_TABLE_NAMES = 'aws.dynamodb.table_names';\n\n/**\n * Type for {@link AWS_DYNAMODB_TABLE_NAMES} aws.dynamodb.table_names\n */\nexport type AWS_DYNAMODB_TABLE_NAMES_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__dynamodb__total_segments.json\n\n/**\n * The value of the `TotalSegments` request parameter. `aws.dynamodb.total_segments`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_TOTAL_SEGMENTS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 100\n */\nexport const AWS_DYNAMODB_TOTAL_SEGMENTS = 'aws.dynamodb.total_segments';\n\n/**\n * Type for {@link AWS_DYNAMODB_TOTAL_SEGMENTS} aws.dynamodb.total_segments\n */\nexport type AWS_DYNAMODB_TOTAL_SEGMENTS_TYPE = number;\n\n// Path: model/attributes/aws/aws__extended_request_id.json\n\n/**\n * The AWS extended request ID as returned in the response headers. `aws.extended_request_id`\n *\n * Attribute Value Type: `string` {@link AWS_EXTENDED_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_REQUEST_EXTENDED_ID} `aws.request.extended_id`\n *\n * @example \"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=\"\n */\nexport const AWS_EXTENDED_REQUEST_ID = 'aws.extended_request_id';\n\n/**\n * Type for {@link AWS_EXTENDED_REQUEST_ID} aws.extended_request_id\n */\nexport type AWS_EXTENDED_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__kinesis__stream_name.json\n\n/**\n * The name of the AWS Kinesis stream the request refers to. `aws.kinesis.stream_name`\n *\n * Attribute Value Type: `string` {@link AWS_KINESIS_STREAM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link _AWS_KINESIS_STREAM_NAME} `aws.kinesis.stream.name`\n *\n * @example \"some-stream-name\"\n */\nexport const AWS_KINESIS_STREAM_NAME = 'aws.kinesis.stream_name';\n\n/**\n * Type for {@link AWS_KINESIS_STREAM_NAME} aws.kinesis.stream_name\n */\nexport type AWS_KINESIS_STREAM_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__kinesis__stream__name.json\n\n/**\n * The name of the AWS Kinesis stream the request refers to. `aws.kinesis.stream.name`\n *\n * Attribute Value Type: `string` {@link _AWS_KINESIS_STREAM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_KINESIS_STREAM_NAME} `aws.kinesis.stream_name`\n *\n * @deprecated Use {@link AWS_KINESIS_STREAM_NAME} (aws.kinesis.stream_name) instead - This attribute is being deprecated in favor of aws.kinesis.stream_name, which is the OTel-aligned replacement.\n * @example \"some-stream-name\"\n */\nexport const _AWS_KINESIS_STREAM_NAME = 'aws.kinesis.stream.name';\n\n/**\n * Type for {@link _AWS_KINESIS_STREAM_NAME} aws.kinesis.stream.name\n */\nexport type _AWS_KINESIS_STREAM_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__aws_request_id.json\n\n/**\n * The AWS request ID as received by the Lambda function runtime `aws.lambda.aws_request_id`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_AWS_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_INVOCATION_ID} `faas.invocation_id`, {@link FAAS_EXECUTION} `faas.execution`\n *\n * @deprecated Use {@link FAAS_INVOCATION_ID} (faas.invocation_id) instead - This attribute is being deprecated in favor of faas.invocation_id\n * @example \"8476a536-e9f4-11e8-9739-2dfe598c3fcd\"\n */\nexport const AWS_LAMBDA_AWS_REQUEST_ID = 'aws.lambda.aws_request_id';\n\n/**\n * Type for {@link AWS_LAMBDA_AWS_REQUEST_ID} aws.lambda.aws_request_id\n */\nexport type AWS_LAMBDA_AWS_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__execution_duration_in_millis.json\n\n/**\n * The execution duration of the Lambda function invocation in milliseconds `aws.lambda.execution_duration_in_millis`\n *\n * Attribute Value Type: `number` {@link AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1234.56\n */\nexport const AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS = 'aws.lambda.execution_duration_in_millis';\n\n/**\n * Type for {@link AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS} aws.lambda.execution_duration_in_millis\n */\nexport type AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE = number;\n\n// Path: model/attributes/aws/aws__lambda__function_name.json\n\n/**\n * The name of the Lambda function `aws.lambda.function_name`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_NAME} `faas.name`\n *\n * @deprecated Use {@link FAAS_NAME} (faas.name) instead - Use the OTel-aligned faas.name attribute instead\n * @example \"my-function\"\n */\nexport const AWS_LAMBDA_FUNCTION_NAME = 'aws.lambda.function_name';\n\n/**\n * Type for {@link AWS_LAMBDA_FUNCTION_NAME} aws.lambda.function_name\n */\nexport type AWS_LAMBDA_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__function_version.json\n\n/**\n * The version of the Lambda function `aws.lambda.function_version`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_FUNCTION_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_VERSION} `faas.version`\n *\n * @deprecated Use {@link FAAS_VERSION} (faas.version) instead - Use the OTel-aligned faas.version attribute instead\n * @example \"$LATEST\"\n */\nexport const AWS_LAMBDA_FUNCTION_VERSION = 'aws.lambda.function_version';\n\n/**\n * Type for {@link AWS_LAMBDA_FUNCTION_VERSION} aws.lambda.function_version\n */\nexport type AWS_LAMBDA_FUNCTION_VERSION_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__initialization_type.json\n\n/**\n * How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE. `aws.lambda.initialization_type`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_INITIALIZATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"native-http\"\n * @example \"on-demand\"\n * @example \"provisioned-concurrency\"\n * @example \"snap-start\"\n */\nexport const AWS_LAMBDA_INITIALIZATION_TYPE = 'aws.lambda.initialization_type';\n\n/**\n * Type for {@link AWS_LAMBDA_INITIALIZATION_TYPE} aws.lambda.initialization_type\n */\nexport type AWS_LAMBDA_INITIALIZATION_TYPE_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__invoked_arn.json\n\n/**\n * The full ARN of the Lambda function that was invoked `aws.lambda.invoked_arn`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_INVOKED_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN} `aws.lambda.invoked_function_arn`\n *\n * @example \"arn:aws:lambda:us-east-1:123456789012:function:my-function\"\n */\nexport const AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn';\n\n/**\n * Type for {@link AWS_LAMBDA_INVOKED_ARN} aws.lambda.invoked_arn\n */\nexport type AWS_LAMBDA_INVOKED_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__invoked_function_arn.json\n\n/**\n * The full ARN of the Lambda function that was invoked `aws.lambda.invoked_function_arn`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_INVOKED_ARN} `aws.lambda.invoked_arn`\n *\n * @deprecated Use {@link AWS_LAMBDA_INVOKED_ARN} (aws.lambda.invoked_arn) instead - This attribute is being deprecated in favor of aws.lambda.invoked_arn\n * @example \"arn:aws:lambda:us-east-1:123456789012:function:my-function\"\n */\nexport const AWS_LAMBDA_INVOKED_FUNCTION_ARN = 'aws.lambda.invoked_function_arn';\n\n/**\n * Type for {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN} aws.lambda.invoked_function_arn\n */\nexport type AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__remaining_time_in_millis.json\n\n/**\n * The remaining time in milliseconds before the Lambda function times out `aws.lambda.remaining_time_in_millis`\n *\n * Attribute Value Type: `number` {@link AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const AWS_LAMBDA_REMAINING_TIME_IN_MILLIS = 'aws.lambda.remaining_time_in_millis';\n\n/**\n * Type for {@link AWS_LAMBDA_REMAINING_TIME_IN_MILLIS} aws.lambda.remaining_time_in_millis\n */\nexport type AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE = number;\n\n// Path: model/attributes/aws/aws__lambda__resource_mapping__id.json\n\n/**\n * The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping. `aws.lambda.resource_mapping.id`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"587ad24b-03b9-4413-8202-bbd56b36e5b7\"\n */\nexport const AWS_LAMBDA_RESOURCE_MAPPING_ID = 'aws.lambda.resource_mapping.id';\n\n/**\n * Type for {@link AWS_LAMBDA_RESOURCE_MAPPING_ID} aws.lambda.resource_mapping.id\n */\nexport type AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__target_function__name.json\n\n/**\n * The name of the AWS Lambda function that an AWS SDK call acts on. `aws.lambda.target_function.name`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_TARGET_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"billing\"\n */\nexport const AWS_LAMBDA_TARGET_FUNCTION_NAME = 'aws.lambda.target_function.name';\n\n/**\n * Type for {@link AWS_LAMBDA_TARGET_FUNCTION_NAME} aws.lambda.target_function.name\n */\nexport type AWS_LAMBDA_TARGET_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__web__endpoint_name.json\n\n/**\n * The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header. `aws.lambda.web.endpoint_name`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"prod\"\n * @example \"canary\"\n */\nexport const AWS_LAMBDA_WEB_ENDPOINT_NAME = 'aws.lambda.web.endpoint_name';\n\n/**\n * Type for {@link AWS_LAMBDA_WEB_ENDPOINT_NAME} aws.lambda.web.endpoint_name\n */\nexport type AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__log__group__names.json\n\n/**\n * The name(s) of the AWS log group(s) an application is writing to. `aws.log.group.names`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_LOG_GROUP_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"/aws/lambda/my-function\",\"opentelemetry-service\"]\n */\nexport const AWS_LOG_GROUP_NAMES = 'aws.log.group.names';\n\n/**\n * Type for {@link AWS_LOG_GROUP_NAMES} aws.log.group.names\n */\nexport type AWS_LOG_GROUP_NAMES_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__log__stream__names.json\n\n/**\n * The name(s) of the AWS log stream(s) an application is writing to. `aws.log.stream.names`\n *\n * Attribute Value Type: `Array<string>` {@link AWS_LOG_STREAM_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"logs/main/10838bed-421f-43ef-870a-f43feacbbb5b\"]\n */\nexport const AWS_LOG_STREAM_NAMES = 'aws.log.stream.names';\n\n/**\n * Type for {@link AWS_LOG_STREAM_NAMES} aws.log.stream.names\n */\nexport type AWS_LOG_STREAM_NAMES_TYPE = Array<string>;\n\n// Path: model/attributes/aws/aws__operation_name.json\n\n/**\n * The name of the API operation invoked on an AWS service. `aws.operation_name`\n *\n * Attribute Value Type: `string` {@link AWS_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link RPC_METHOD} `rpc.method`\n *\n * @deprecated Use {@link RPC_METHOD} (rpc.method) instead - This attribute is being deprecated in favor of rpc.method, which is the framework-agnostic replacement.\n * @example \"PutObject\"\n */\nexport const AWS_OPERATION_NAME = 'aws.operation_name';\n\n/**\n * Type for {@link AWS_OPERATION_NAME} aws.operation_name\n */\nexport type AWS_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/aws_region.json\n\n/**\n * The geographical region the AWS resource is running `aws_region`\n *\n * Attribute Value Type: `string` {@link AWS_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUD_REGION} `cloud.region`, {@link GCP_REGION} `gcp_region`\n *\n * @deprecated Use {@link CLOUD_REGION} (cloud.region) instead\n * @example \"us-east-1\"\n */\nexport const AWS_REGION = 'aws_region';\n\n/**\n * Type for {@link AWS_REGION} aws_region\n */\nexport type AWS_REGION_TYPE = string;\n\n// Path: model/attributes/aws/aws__request__extended_id.json\n\n/**\n * The AWS extended request ID as returned in the response headers. `aws.request.extended_id`\n *\n * Attribute Value Type: `string` {@link AWS_REQUEST_EXTENDED_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_EXTENDED_REQUEST_ID} `aws.extended_request_id`\n *\n * @deprecated Use {@link AWS_EXTENDED_REQUEST_ID} (aws.extended_request_id) instead - This attribute is being deprecated in favor of aws.extended_request_id, which is the OTel-aligned replacement.\n * @example \"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=\"\n */\nexport const AWS_REQUEST_EXTENDED_ID = 'aws.request.extended_id';\n\n/**\n * Type for {@link AWS_REQUEST_EXTENDED_ID} aws.request.extended_id\n */\nexport type AWS_REQUEST_EXTENDED_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__request_id.json\n\n/**\n * The AWS request ID as returned in the response headers. `aws.request_id`\n *\n * Attribute Value Type: `string` {@link AWS_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link _AWS_REQUEST_ID} `aws.request.id`\n *\n * @example \"79b9da39-b7ae-508a-a6bc-864b2829c622\"\n */\nexport const AWS_REQUEST_ID = 'aws.request_id';\n\n/**\n * Type for {@link AWS_REQUEST_ID} aws.request_id\n */\nexport type AWS_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__request__id.json\n\n/**\n * The AWS request ID as returned in the response headers. `aws.request.id`\n *\n * Attribute Value Type: `string` {@link _AWS_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_REQUEST_ID} `aws.request_id`\n *\n * @deprecated Use {@link AWS_REQUEST_ID} (aws.request_id) instead - This attribute is being deprecated in favor of aws.request_id, which is the OTel-aligned replacement.\n * @example \"79b9da39-b7ae-508a-a6bc-864b2829c622\"\n */\nexport const _AWS_REQUEST_ID = 'aws.request.id';\n\n/**\n * Type for {@link _AWS_REQUEST_ID} aws.request.id\n */\nexport type _AWS_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__request__url.json\n\n/**\n * The URL of the AWS API request. `aws.request.url`\n *\n * Attribute Value Type: `string` {@link AWS_REQUEST_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link URL_FULL} `url.full`, {@link HTTP_URL} `http.url`, {@link URL} `url`, {@link MESSAGING_URL} `messaging.url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead - This attribute is being deprecated in favor of url.full, which is the OTel-aligned replacement.\n * @example \"https://sqs.us-east-1.amazonaws.com/123456789/my-queue\"\n */\nexport const AWS_REQUEST_URL = 'aws.request.url';\n\n/**\n * Type for {@link AWS_REQUEST_URL} aws.request.url\n */\nexport type AWS_REQUEST_URL_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__bucket.json\n\n/**\n * The S3 bucket name the request refers to. `aws.s3.bucket`\n *\n * Attribute Value Type: `string` {@link AWS_S3_BUCKET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ot-demo-test\"\n */\nexport const AWS_S3_BUCKET = 'aws.s3.bucket';\n\n/**\n * Type for {@link AWS_S3_BUCKET} aws.s3.bucket\n */\nexport type AWS_S3_BUCKET_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__copy_source.json\n\n/**\n * The source object (in the form bucket/key) for the copy operation. `aws.s3.copy_source`\n *\n * Attribute Value Type: `string` {@link AWS_S3_COPY_SOURCE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"someFile.yml\"\n */\nexport const AWS_S3_COPY_SOURCE = 'aws.s3.copy_source';\n\n/**\n * Type for {@link AWS_S3_COPY_SOURCE} aws.s3.copy_source\n */\nexport type AWS_S3_COPY_SOURCE_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__delete.json\n\n/**\n * The JSON-serialized value of Delete request field, which specifies the objects to be deleted. `aws.s3.delete`\n *\n * Attribute Value Type: `string` {@link AWS_S3_DELETE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"{\\\"Objects\\\":[{\\\"Key\\\":\\\"someFile.yml\\\",\\\"VersionId\\\":\\\"3HL4kqtJlcpXroDTDmJ\\\"}],\\\"Quiet\\\":false}\"\n */\nexport const AWS_S3_DELETE = 'aws.s3.delete';\n\n/**\n * Type for {@link AWS_S3_DELETE} aws.s3.delete\n */\nexport type AWS_S3_DELETE_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__key.json\n\n/**\n * The S3 object key the request refers to. Corresponds to the --key parameter of the S3 API operations. `aws.s3.key`\n *\n * Attribute Value Type: `string` {@link AWS_S3_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"someFile.yml\"\n */\nexport const AWS_S3_KEY = 'aws.s3.key';\n\n/**\n * Type for {@link AWS_S3_KEY} aws.s3.key\n */\nexport type AWS_S3_KEY_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__part_number.json\n\n/**\n * The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. `aws.s3.part_number`\n *\n * Attribute Value Type: `number` {@link AWS_S3_PART_NUMBER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 3456\n */\nexport const AWS_S3_PART_NUMBER = 'aws.s3.part_number';\n\n/**\n * Type for {@link AWS_S3_PART_NUMBER} aws.s3.part_number\n */\nexport type AWS_S3_PART_NUMBER_TYPE = number;\n\n// Path: model/attributes/aws/aws__s3__upload_id.json\n\n/**\n * Upload ID that identifies the multipart upload. `aws.s3.upload_id`\n *\n * Attribute Value Type: `string` {@link AWS_S3_UPLOAD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ\"\n */\nexport const AWS_S3_UPLOAD_ID = 'aws.s3.upload_id';\n\n/**\n * Type for {@link AWS_S3_UPLOAD_ID} aws.s3.upload_id\n */\nexport type AWS_S3_UPLOAD_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__secretsmanager__secret__arn.json\n\n/**\n * The ARN of the Secret stored in Secrets Manager. `aws.secretsmanager.secret.arn`\n *\n * Attribute Value Type: `string` {@link AWS_SECRETSMANAGER_SECRET_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters\"\n */\nexport const AWS_SECRETSMANAGER_SECRET_ARN = 'aws.secretsmanager.secret.arn';\n\n/**\n * Type for {@link AWS_SECRETSMANAGER_SECRET_ARN} aws.secretsmanager.secret.arn\n */\nexport type AWS_SECRETSMANAGER_SECRET_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__secretsmanager__secret__name.json\n\n/**\n * The name of the secret stored in AWS Secrets Manager. `aws.secretsmanager.secret.name`\n *\n * Attribute Value Type: `string` {@link AWS_SECRETSMANAGER_SECRET_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"db-password\"\n * @example \"prod/billing/api-key\"\n */\nexport const AWS_SECRETSMANAGER_SECRET_NAME = 'aws.secretsmanager.secret.name';\n\n/**\n * Type for {@link AWS_SECRETSMANAGER_SECRET_NAME} aws.secretsmanager.secret.name\n */\nexport type AWS_SECRETSMANAGER_SECRET_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__sns__topic__arn.json\n\n/**\n * The ARN of the AWS SNS Topic. An Amazon SNS topic is a logical access point that acts as a communication channel. `aws.sns.topic.arn`\n *\n * Attribute Value Type: `string` {@link AWS_SNS_TOPIC_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE\"\n */\nexport const AWS_SNS_TOPIC_ARN = 'aws.sns.topic.arn';\n\n/**\n * Type for {@link AWS_SNS_TOPIC_ARN} aws.sns.topic.arn\n */\nexport type AWS_SNS_TOPIC_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__sqs__queue__url.json\n\n/**\n * The URL of the AWS SQS Queue. It’s a unique identifier for a queue in Amazon Simple Queue Service (SQS) and is used to access the queue and perform actions on it. `aws.sqs.queue.url`\n *\n * Attribute Value Type: `string` {@link AWS_SQS_QUEUE_URL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue\"\n */\nexport const AWS_SQS_QUEUE_URL = 'aws.sqs.queue.url';\n\n/**\n * Type for {@link AWS_SQS_QUEUE_URL} aws.sqs.queue.url\n */\nexport type AWS_SQS_QUEUE_URL_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__activity__arn.json\n\n/**\n * The ARN of the AWS Step Functions Activity. `aws.step_functions.activity.arn`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_ACTIVITY_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:states:us-east-1:123456789012:activity:get-greeting\"\n */\nexport const AWS_STEP_FUNCTIONS_ACTIVITY_ARN = 'aws.step_functions.activity.arn';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_ACTIVITY_ARN} aws.step_functions.activity.arn\n */\nexport type AWS_STEP_FUNCTIONS_ACTIVITY_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__activity__name.json\n\n/**\n * The name of the AWS Step Functions activity. `aws.step_functions.activity.name`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_ACTIVITY_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"resize-image\"\n */\nexport const AWS_STEP_FUNCTIONS_ACTIVITY_NAME = 'aws.step_functions.activity.name';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_ACTIVITY_NAME} aws.step_functions.activity.name\n */\nexport type AWS_STEP_FUNCTIONS_ACTIVITY_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__execution__arn.json\n\n/**\n * The ARN of the AWS Step Functions Execution. `aws.step_functions.execution.arn`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_EXECUTION_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"arn:aws:states:us-east-1:123456789012:execution:myStateMachine:myExecution\"\n */\nexport const AWS_STEP_FUNCTIONS_EXECUTION_ARN = 'aws.step_functions.execution.arn';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_EXECUTION_ARN} aws.step_functions.execution.arn\n */\nexport type AWS_STEP_FUNCTIONS_EXECUTION_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__state_machine__arn.json\n\n/**\n * The ARN of the AWS Step Functions State Machine. `aws.step_functions.state_machine.arn`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1\"\n */\nexport const AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN = 'aws.step_functions.state_machine.arn';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN} aws.step_functions.state_machine.arn\n */\nexport type AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__state_machine__name.json\n\n/**\n * The name of the AWS Step Functions state machine. `aws.step_functions.state_machine.name`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"orders\"\n */\nexport const AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME = 'aws.step_functions.state_machine.name';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME} aws.step_functions.state_machine.name\n */\nexport type AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME_TYPE = string;\n\n// Path: model/attributes/blocked_main_thread.json\n\n/**\n * Whether the main thread was blocked by the span. `blocked_main_thread`\n *\n * Attribute Value Type: `boolean` {@link BLOCKED_MAIN_THREAD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const BLOCKED_MAIN_THREAD = 'blocked_main_thread';\n\n/**\n * Type for {@link BLOCKED_MAIN_THREAD} blocked_main_thread\n */\nexport type BLOCKED_MAIN_THREAD_TYPE = boolean;\n\n// Path: model/attributes/browser/browser__bfcache__frame.json\n\n/**\n * Which frame in the page's frame tree a back/forward cache not-restored reason originated from: the top document or a child frame. `browser.bfcache.frame`\n *\n * Attribute Value Type: `string` {@link BROWSER_BFCACHE_FRAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"top\"\n * @example \"child\"\n */\nexport const BROWSER_BFCACHE_FRAME = 'browser.bfcache.frame';\n\n/**\n * Type for {@link BROWSER_BFCACHE_FRAME} browser.bfcache.frame\n */\nexport type BROWSER_BFCACHE_FRAME_TYPE = string;\n\n// Path: model/attributes/browser/browser__bfcache__not_restored_reason_count.json\n\n/**\n * The number of reported reasons a page was not restored from the back/forward cache on a back/forward navigation. 0 when the browser reported no reasons (e.g. non-Chromium browsers). `browser.bfcache.not_restored_reason_count`\n *\n * Attribute Value Type: `number` {@link BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT = 'browser.bfcache.not_restored_reason_count';\n\n/**\n * Type for {@link BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT} browser.bfcache.not_restored_reason_count\n */\nexport type BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT_TYPE = number;\n\n// Path: model/attributes/browser/browser__bfcache__outcome.json\n\n/**\n * Whether a back/forward navigation was restored from the browser's back/forward cache (bfcache). 'hit' means the page was restored; 'miss' means it was reloaded. `browser.bfcache.outcome`\n *\n * Attribute Value Type: `string` {@link BROWSER_BFCACHE_OUTCOME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"hit\"\n * @example \"miss\"\n */\nexport const BROWSER_BFCACHE_OUTCOME = 'browser.bfcache.outcome';\n\n/**\n * Type for {@link BROWSER_BFCACHE_OUTCOME} browser.bfcache.outcome\n */\nexport type BROWSER_BFCACHE_OUTCOME_TYPE = string;\n\n// Path: model/attributes/browser/browser__bfcache__reason.json\n\n/**\n * A browser-reported reason a page was not restored from the back/forward cache on a back/forward navigation, taken from the notRestoredReasons API. Reported per reason (a single miss can have several). Currently Chromium-only. `browser.bfcache.reason`\n *\n * Attribute Value Type: `string` {@link BROWSER_BFCACHE_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"unload-listener\"\n * @example \"websocket\"\n * @example \"idbversionchangeevent\"\n * @example \"response-cache-control-no-store\"\n */\nexport const BROWSER_BFCACHE_REASON = 'browser.bfcache.reason';\n\n/**\n * Type for {@link BROWSER_BFCACHE_REASON} browser.bfcache.reason\n */\nexport type BROWSER_BFCACHE_REASON_TYPE = string;\n\n// Path: model/attributes/browser/browser__name.json\n\n/**\n * The name of the browser. `browser.name`\n *\n * Attribute Value Type: `string` {@link BROWSER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_BROWSER_NAME} `sentry.browser.name`\n *\n * @example \"Chrome\"\n */\nexport const BROWSER_NAME = 'browser.name';\n\n/**\n * Type for {@link BROWSER_NAME} browser.name\n */\nexport type BROWSER_NAME_TYPE = string;\n\n// Path: model/attributes/browser/browser__navigation__id.json\n\n/**\n * The identifier of the navigation the measurement belongs to, incremented by the browser for each navigation within a page's lifetime. `browser.navigation.id`\n *\n * Attribute Value Type: `number` {@link BROWSER_NAVIGATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n * @example 3\n * @example 0\n */\nexport const BROWSER_NAVIGATION_ID = 'browser.navigation.id';\n\n/**\n * Type for {@link BROWSER_NAVIGATION_ID} browser.navigation.id\n */\nexport type BROWSER_NAVIGATION_ID_TYPE = number;\n\n// Path: model/attributes/browser/browser__navigation__type.json\n\n/**\n * The type of navigation the browser performed to arrive at the page the metrics were measured on. `browser.navigation.type`\n *\n * Attribute Value Type: `string` {@link BROWSER_NAVIGATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"navigate\"\n * @example \"reload\"\n * @example \"back-forward\"\n * @example \"back-forward-cache\"\n * @example \"prerender\"\n * @example \"restore\"\n * @example \"soft-navigation\"\n */\nexport const BROWSER_NAVIGATION_TYPE = 'browser.navigation.type';\n\n/**\n * Type for {@link BROWSER_NAVIGATION_TYPE} browser.navigation.type\n */\nexport type BROWSER_NAVIGATION_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__paint__type.json\n\n/**\n * The type of paint timing entry reported by the browser. `browser.paint.type`\n *\n * Attribute Value Type: `string` {@link BROWSER_PAINT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"first-paint\"\n * @example \"first-contentful-paint\"\n */\nexport const BROWSER_PAINT_TYPE = 'browser.paint.type';\n\n/**\n * Type for {@link BROWSER_PAINT_TYPE} browser.paint.type\n */\nexport type BROWSER_PAINT_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__performance__navigation__activation_start.json\n\n/**\n * The time between initiating a navigation to a page and the browser activating the page `browser.performance.navigation.activation_start`\n *\n * Attribute Value Type: `number` {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PERFORMANCE_ACTIVATIONSTART} `performance.activationStart`\n *\n * @example 1.983\n */\nexport const BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START = 'browser.performance.navigation.activation_start';\n\n/**\n * Type for {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START} browser.performance.navigation.activation_start\n */\nexport type BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START_TYPE = number;\n\n// Path: model/attributes/browser/browser__performance__time_origin.json\n\n/**\n * The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated `browser.performance.time_origin`\n *\n * Attribute Value Type: `number` {@link BROWSER_PERFORMANCE_TIME_ORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PERFORMANCE_TIMEORIGIN} `performance.timeOrigin`\n *\n * @example 1776185678.886\n */\nexport const BROWSER_PERFORMANCE_TIME_ORIGIN = 'browser.performance.time_origin';\n\n/**\n * Type for {@link BROWSER_PERFORMANCE_TIME_ORIGIN} browser.performance.time_origin\n */\nexport type BROWSER_PERFORMANCE_TIME_ORIGIN_TYPE = number;\n\n// Path: model/attributes/browser/browser__report__type.json\n\n/**\n * A browser report sent via reporting API.. `browser.report.type`\n *\n * Attribute Value Type: `string` {@link BROWSER_REPORT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"network-error\"\n */\nexport const BROWSER_REPORT_TYPE = 'browser.report.type';\n\n/**\n * Type for {@link BROWSER_REPORT_TYPE} browser.report.type\n */\nexport type BROWSER_REPORT_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__script__invoker.json\n\n/**\n * How a script was called in the browser. `browser.script.invoker`\n *\n * Attribute Value Type: `string` {@link BROWSER_SCRIPT_INVOKER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Window.requestAnimationFrame\"\n */\nexport const BROWSER_SCRIPT_INVOKER = 'browser.script.invoker';\n\n/**\n * Type for {@link BROWSER_SCRIPT_INVOKER} browser.script.invoker\n */\nexport type BROWSER_SCRIPT_INVOKER_TYPE = string;\n\n// Path: model/attributes/browser/browser__script__invoker_type.json\n\n/**\n * Browser script entry point type. `browser.script.invoker_type`\n *\n * Attribute Value Type: `string` {@link BROWSER_SCRIPT_INVOKER_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"event-listener\"\n */\nexport const BROWSER_SCRIPT_INVOKER_TYPE = 'browser.script.invoker_type';\n\n/**\n * Type for {@link BROWSER_SCRIPT_INVOKER_TYPE} browser.script.invoker_type\n */\nexport type BROWSER_SCRIPT_INVOKER_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__script__source_char_position.json\n\n/**\n * A number representing the script character position of the script. `browser.script.source_char_position`\n *\n * Attribute Value Type: `number` {@link BROWSER_SCRIPT_SOURCE_CHAR_POSITION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 678\n */\nexport const BROWSER_SCRIPT_SOURCE_CHAR_POSITION = 'browser.script.source_char_position';\n\n/**\n * Type for {@link BROWSER_SCRIPT_SOURCE_CHAR_POSITION} browser.script.source_char_position\n */\nexport type BROWSER_SCRIPT_SOURCE_CHAR_POSITION_TYPE = number;\n\n// Path: model/attributes/browser/browser__version.json\n\n/**\n * The version of the browser. `browser.version`\n *\n * Attribute Value Type: `string` {@link BROWSER_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_BROWSER_VERSION} `sentry.browser.version`\n *\n * @example \"120.0.6099.130\"\n */\nexport const BROWSER_VERSION = 'browser.version';\n\n/**\n * Type for {@link BROWSER_VERSION} browser.version\n */\nexport type BROWSER_VERSION_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__cls__report_event.json\n\n/**\n * The event that caused the SDK to report CLS (pagehide or navigation) `browser.web_vital.cls.report_event`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_CLS_REPORT_EVENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the CLS value is final, so there is no report event to record. No replacement.\n * @example \"navigation\"\n */\nexport const BROWSER_WEB_VITAL_CLS_REPORT_EVENT = 'browser.web_vital.cls.report_event';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_CLS_REPORT_EVENT} browser.web_vital.cls.report_event\n */\nexport type BROWSER_WEB_VITAL_CLS_REPORT_EVENT_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__cls__source__[key].json\n\n/**\n * The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N `browser.web_vital.cls.source.<key>`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link CLS_SOURCE_KEY} `cls.source.<key>`\n *\n * @example \"body > div#app\"\n */\nexport const BROWSER_WEB_VITAL_CLS_SOURCE_KEY = 'browser.web_vital.cls.source.<key>';\n\n/**\n * Base key for {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY}. Use with a dynamic suffix, e.g. `${BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE}.${key}`.\n */\nexport const BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE = 'browser.web_vital.cls.source';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} browser.web_vital.cls.source.<key>\n */\nexport type BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__cls__value.json\n\n/**\n * The value of the recorded Cumulative Layout Shift (CLS) web vital `browser.web_vital.cls.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_CLS_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLS} `cls`\n *\n * @example 0.2361\n */\nexport const BROWSER_WEB_VITAL_CLS_VALUE = 'browser.web_vital.cls.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_CLS_VALUE} browser.web_vital.cls.value\n */\nexport type BROWSER_WEB_VITAL_CLS_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__fcp__value.json\n\n/**\n * The time it takes for the browser to render the first piece of meaningful content on the screen `browser.web_vital.fcp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_FCP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FCP} `fcp`\n *\n * @example 547.6951\n */\nexport const BROWSER_WEB_VITAL_FCP_VALUE = 'browser.web_vital.fcp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_FCP_VALUE} browser.web_vital.fcp.value\n */\nexport type BROWSER_WEB_VITAL_FCP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__fp__value.json\n\n/**\n * The time in milliseconds it takes for the browser to render the first pixel on the screen `browser.web_vital.fp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_FP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FP} `fp`\n *\n * @example 477.1926\n */\nexport const BROWSER_WEB_VITAL_FP_VALUE = 'browser.web_vital.fp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_FP_VALUE} browser.web_vital.fp.value\n */\nexport type BROWSER_WEB_VITAL_FP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__input_delay.json\n\n/**\n * The time between the user interacting with the page and the browser starting to run the event handlers, for the interaction INP was reported on, in milliseconds `browser.web_vital.inp.input_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_INPUT_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 120\n */\nexport const BROWSER_WEB_VITAL_INP_INPUT_DELAY = 'browser.web_vital.inp.input_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_INPUT_DELAY} browser.web_vital.inp.input_delay\n */\nexport type BROWSER_WEB_VITAL_INP_INPUT_DELAY_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__interaction_type.json\n\n/**\n * The kind of user interaction INP was reported on `browser.web_vital.inp.interaction_type`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_INP_INTERACTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"click\"\n * @example \"hover\"\n * @example \"drag\"\n * @example \"press\"\n */\nexport const BROWSER_WEB_VITAL_INP_INTERACTION_TYPE = 'browser.web_vital.inp.interaction_type';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_INTERACTION_TYPE} browser.web_vital.inp.interaction_type\n */\nexport type BROWSER_WEB_VITAL_INP_INTERACTION_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__inp__presentation_delay.json\n\n/**\n * The time between the event handlers finishing and the browser presenting the next frame, for the interaction INP was reported on, in milliseconds `browser.web_vital.inp.presentation_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 100\n */\nexport const BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY = 'browser.web_vital.inp.presentation_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY} browser.web_vital.inp.presentation_delay\n */\nexport type BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__processing_duration.json\n\n/**\n * The time it took the event handlers to run, for the interaction INP was reported on, in milliseconds `browser.web_vital.inp.processing_duration`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_PROCESSING_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 140\n */\nexport const BROWSER_WEB_VITAL_INP_PROCESSING_DURATION = 'browser.web_vital.inp.processing_duration';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_PROCESSING_DURATION} browser.web_vital.inp.processing_duration\n */\nexport type BROWSER_WEB_VITAL_INP_PROCESSING_DURATION_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__target.json\n\n/**\n * The HTML element selector or component name of the element the user interacted with, for the interaction INP was reported on `browser.web_vital.inp.target`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_INP_TARGET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"body > div#app > button.submit\"\n * @example \"SubmitButton\"\n */\nexport const BROWSER_WEB_VITAL_INP_TARGET = 'browser.web_vital.inp.target';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_TARGET} browser.web_vital.inp.target\n */\nexport type BROWSER_WEB_VITAL_INP_TARGET_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__inp__value.json\n\n/**\n * The value of the recorded Interaction to Next Paint (INP) web vital `browser.web_vital.inp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link INP} `inp`\n *\n * @example 200\n */\nexport const BROWSER_WEB_VITAL_INP_VALUE = 'browser.web_vital.inp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_VALUE} browser.web_vital.inp.value\n */\nexport type BROWSER_WEB_VITAL_INP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__element.json\n\n/**\n * The HTML element selector or component name for which LCP was reported `browser.web_vital.lcp.element`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_ELEMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_ELEMENT} `lcp.element`\n *\n * @example \"body > div#app > div#container > div\"\n */\nexport const BROWSER_WEB_VITAL_LCP_ELEMENT = 'browser.web_vital.lcp.element';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_ELEMENT} browser.web_vital.lcp.element\n */\nexport type BROWSER_WEB_VITAL_LCP_ELEMENT_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__element_render_delay.json\n\n/**\n * The time between the LCP resource finishing loading and the LCP element being rendered, in milliseconds `browser.web_vital.lcp.element_render_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 410\n */\nexport const BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY = 'browser.web_vital.lcp.element_render_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY} browser.web_vital.lcp.element_render_delay\n */\nexport type BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__id.json\n\n/**\n * The id of the dom element responsible for the largest contentful paint `browser.web_vital.lcp.id`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_ID} `lcp.id`\n *\n * @example \"#gero\"\n */\nexport const BROWSER_WEB_VITAL_LCP_ID = 'browser.web_vital.lcp.id';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_ID} browser.web_vital.lcp.id\n */\nexport type BROWSER_WEB_VITAL_LCP_ID_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__load_time.json\n\n/**\n * The time it took for the LCP element to be loaded `browser.web_vital.lcp.load_time`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_LOADTIME} `lcp.loadTime`\n *\n * @example 1402\n */\nexport const BROWSER_WEB_VITAL_LCP_LOAD_TIME = 'browser.web_vital.lcp.load_time';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME} browser.web_vital.lcp.load_time\n */\nexport type BROWSER_WEB_VITAL_LCP_LOAD_TIME_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__render_time.json\n\n/**\n * The time it took for the LCP element to be rendered `browser.web_vital.lcp.render_time`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_RENDERTIME} `lcp.renderTime`\n *\n * @example 1685\n */\nexport const BROWSER_WEB_VITAL_LCP_RENDER_TIME = 'browser.web_vital.lcp.render_time';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME} browser.web_vital.lcp.render_time\n */\nexport type BROWSER_WEB_VITAL_LCP_RENDER_TIME_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__report_event.json\n\n/**\n * The event that caused the SDK to report LCP (pagehide or navigation) `browser.web_vital.lcp.report_event`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_REPORT_EVENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the LCP value is final, so there is no report event to record. No replacement.\n * @example \"pagehide\"\n */\nexport const BROWSER_WEB_VITAL_LCP_REPORT_EVENT = 'browser.web_vital.lcp.report_event';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_REPORT_EVENT} browser.web_vital.lcp.report_event\n */\nexport type BROWSER_WEB_VITAL_LCP_REPORT_EVENT_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__resource_load_delay.json\n\n/**\n * The time between the first byte of the document arriving and the browser starting to load the LCP resource, in milliseconds `browser.web_vital.lcp.resource_load_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 320.5\n */\nexport const BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY = 'browser.web_vital.lcp.resource_load_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY} browser.web_vital.lcp.resource_load_delay\n */\nexport type BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__resource_load_duration.json\n\n/**\n * The time it took to load the LCP resource, in milliseconds `browser.web_vital.lcp.resource_load_duration`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 780.2\n */\nexport const BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION = 'browser.web_vital.lcp.resource_load_duration';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION} browser.web_vital.lcp.resource_load_duration\n */\nexport type BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__size.json\n\n/**\n * The size of the largest contentful paint element `browser.web_vital.lcp.size`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_SIZE} `lcp.size`\n *\n * @example 1024\n */\nexport const BROWSER_WEB_VITAL_LCP_SIZE = 'browser.web_vital.lcp.size';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_SIZE} browser.web_vital.lcp.size\n */\nexport type BROWSER_WEB_VITAL_LCP_SIZE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__url.json\n\n/**\n * The url of the dom element responsible for the largest contentful paint `browser.web_vital.lcp.url`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_URL} `lcp.url`\n *\n * @example \"https://example.com/static/img.png\"\n */\nexport const BROWSER_WEB_VITAL_LCP_URL = 'browser.web_vital.lcp.url';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_URL} browser.web_vital.lcp.url\n */\nexport type BROWSER_WEB_VITAL_LCP_URL_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__value.json\n\n/**\n * The value of the recorded Largest Contentful Paint (LCP) web vital `browser.web_vital.lcp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP} `lcp`\n *\n * @example 2500\n */\nexport const BROWSER_WEB_VITAL_LCP_VALUE = 'browser.web_vital.lcp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_VALUE} browser.web_vital.lcp.value\n */\nexport type BROWSER_WEB_VITAL_LCP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__ttfb__request_time.json\n\n/**\n * The time it takes for the server to process the initial request and send the first byte of a response to the user's browser `browser.web_vital.ttfb.request_time`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TTFB_REQUESTTIME} `ttfb.requestTime`\n *\n * @example 1554.5814\n */\nexport const BROWSER_WEB_VITAL_TTFB_REQUEST_TIME = 'browser.web_vital.ttfb.request_time';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME} browser.web_vital.ttfb.request_time\n */\nexport type BROWSER_WEB_VITAL_TTFB_REQUEST_TIME_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__ttfb__value.json\n\n/**\n * The value of the recorded Time To First Byte (TTFB) web vital in Milliseconds `browser.web_vital.ttfb.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_TTFB_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TTFB} `ttfb`\n *\n * @example 194.3322\n */\nexport const BROWSER_WEB_VITAL_TTFB_VALUE = 'browser.web_vital.ttfb.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_TTFB_VALUE} browser.web_vital.ttfb.value\n */\nexport type BROWSER_WEB_VITAL_TTFB_VALUE_TYPE = number;\n\n// Path: model/attributes/cache/cache__hit.json\n\n/**\n * If the cache was hit during this span. `cache.hit`\n *\n * Attribute Value Type: `boolean` {@link CACHE_HIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const CACHE_HIT = 'cache.hit';\n\n/**\n * Type for {@link CACHE_HIT} cache.hit\n */\nexport type CACHE_HIT_TYPE = boolean;\n\n// Path: model/attributes/cache/cache__item_age.json\n\n/**\n * The age of the cache entry in seconds, measured at read time. `cache.item_age`\n *\n * Attribute Value Type: `number` {@link CACHE_ITEM_AGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5\n * @example 3600\n */\nexport const CACHE_ITEM_AGE = 'cache.item_age';\n\n/**\n * Type for {@link CACHE_ITEM_AGE} cache.item_age\n */\nexport type CACHE_ITEM_AGE_TYPE = number;\n\n// Path: model/attributes/cache/cache__item_size.json\n\n/**\n * The size of the requested item in the cache. In bytes. `cache.item_size`\n *\n * Attribute Value Type: `number` {@link CACHE_ITEM_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 58\n */\nexport const CACHE_ITEM_SIZE = 'cache.item_size';\n\n/**\n * Type for {@link CACHE_ITEM_SIZE} cache.item_size\n */\nexport type CACHE_ITEM_SIZE_TYPE = number;\n\n// Path: model/attributes/cache/cache__key.json\n\n/**\n * The key of the cache accessed. `cache.key`\n *\n * Attribute Value Type: `Array<string>` {@link CACHE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"my-cache-key\",\"my-other-cache-key\"]\n */\nexport const CACHE_KEY = 'cache.key';\n\n/**\n * Type for {@link CACHE_KEY} cache.key\n */\nexport type CACHE_KEY_TYPE = Array<string>;\n\n// Path: model/attributes/cache/cache__operation.json\n\n/**\n * The operation being performed on the cache. `cache.operation`\n *\n * Attribute Value Type: `string` {@link CACHE_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"get\"\n * @example \"put\"\n * @example \"remove\"\n */\nexport const CACHE_OPERATION = 'cache.operation';\n\n/**\n * Type for {@link CACHE_OPERATION} cache.operation\n */\nexport type CACHE_OPERATION_TYPE = string;\n\n// Path: model/attributes/cache/cache__tags.json\n\n/**\n * The tags attached to the cache entry. Tags group entries so a cache can invalidate them together. `cache.tags`\n *\n * Attribute Value Type: `Array<string>` {@link CACHE_TAGS_TYPE}\n *\n * Apply Scrubbing: auto - Applications pick tag values freely and often build them from record identifiers such as a user id.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"blog-posts\",\"post-42\"]\n * @example [\"products\"]\n */\nexport const CACHE_TAGS = 'cache.tags';\n\n/**\n * Type for {@link CACHE_TAGS} cache.tags\n */\nexport type CACHE_TAGS_TYPE = Array<string>;\n\n// Path: model/attributes/cache/cache__ttl.json\n\n/**\n * The TTL (maximum lifetime) of the cache entry in seconds `cache.ttl`\n *\n * Attribute Value Type: `number` {@link CACHE_TTL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 120\n */\nexport const CACHE_TTL = 'cache.ttl';\n\n/**\n * Type for {@link CACHE_TTL} cache.ttl\n */\nexport type CACHE_TTL_TYPE = number;\n\n// Path: model/attributes/cache/cache__write.json\n\n/**\n * If the cache operation resulted in a write to the cache. `cache.write`\n *\n * Attribute Value Type: `boolean` {@link CACHE_WRITE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const CACHE_WRITE = 'cache.write';\n\n/**\n * Type for {@link CACHE_WRITE} cache.write\n */\nexport type CACHE_WRITE_TYPE = boolean;\n\n// Path: model/attributes/channel.json\n\n/**\n * The channel name that is being used. `channel`\n *\n * Attribute Value Type: `string` {@link CHANNEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"mail\"\n */\nexport const CHANNEL = 'channel';\n\n/**\n * Type for {@link CHANNEL} channel\n */\nexport type CHANNEL_TYPE = string;\n\n// Path: model/attributes/client/client__address.json\n\n/**\n * Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `client.address`\n *\n * Attribute Value Type: `string` {@link CLIENT_ADDRESS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_CLIENT_IP} `http.client_ip`\n *\n * @example \"example.com\"\n */\nexport const CLIENT_ADDRESS = 'client.address';\n\n/**\n * Type for {@link CLIENT_ADDRESS} client.address\n */\nexport type CLIENT_ADDRESS_TYPE = string;\n\n// Path: model/attributes/client/client__port.json\n\n/**\n * Client port number. `client.port`\n *\n * Attribute Value Type: `number` {@link CLIENT_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 5432\n */\nexport const CLIENT_PORT = 'client.port';\n\n/**\n * Type for {@link CLIENT_PORT} client.port\n */\nexport type CLIENT_PORT_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__duration.json\n\n/**\n * The duration of a Cloudflare D1 operation. `cloudflare.d1.duration`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_D1_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 543\n */\nexport const CLOUDFLARE_D1_DURATION = 'cloudflare.d1.duration';\n\n/**\n * Type for {@link CLOUDFLARE_D1_DURATION} cloudflare.d1.duration\n */\nexport type CLOUDFLARE_D1_DURATION_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__query_type.json\n\n/**\n * The type of query executed in a Cloudflare D1 operation `cloudflare.d1.query_type`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_D1_QUERY_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_OPERATION_NAME} `db.operation.name`, {@link DB_OPERATION} `db.operation`, {@link REDIS_COMMAND} `redis.command`\n *\n * @deprecated Use {@link DB_OPERATION_NAME} (db.operation.name) instead\n * @example \"run\"\n */\nexport const CLOUDFLARE_D1_QUERY_TYPE = 'cloudflare.d1.query_type';\n\n/**\n * Type for {@link CLOUDFLARE_D1_QUERY_TYPE} cloudflare.d1.query_type\n */\nexport type CLOUDFLARE_D1_QUERY_TYPE_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__rows_read.json\n\n/**\n * The number of rows read in a Cloudflare D1 operation. `cloudflare.d1.rows_read`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_D1_ROWS_READ_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12\n */\nexport const CLOUDFLARE_D1_ROWS_READ = 'cloudflare.d1.rows_read';\n\n/**\n * Type for {@link CLOUDFLARE_D1_ROWS_READ} cloudflare.d1.rows_read\n */\nexport type CLOUDFLARE_D1_ROWS_READ_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__rows_written.json\n\n/**\n * The number of rows written in a Cloudflare D1 operation. `cloudflare.d1.rows_written`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_D1_ROWS_WRITTEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12\n */\nexport const CLOUDFLARE_D1_ROWS_WRITTEN = 'cloudflare.d1.rows_written';\n\n/**\n * Type for {@link CLOUDFLARE_D1_ROWS_WRITTEN} cloudflare.d1.rows_written\n */\nexport type CLOUDFLARE_D1_ROWS_WRITTEN_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__durable_object__query__bindings.json\n\n/**\n * The number of bound parameters passed to the SQL exec call. `cloudflare.durable_object.query.bindings`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS = 'cloudflare.durable_object.query.bindings';\n\n/**\n * Type for {@link CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS} cloudflare.durable_object.query.bindings\n */\nexport type CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__durable_object__response__rows_read.json\n\n/**\n * The number of rows read by a Cloudflare Durable Object SQL operation. `cloudflare.durable_object.response.rows_read`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12\n */\nexport const CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ = 'cloudflare.durable_object.response.rows_read';\n\n/**\n * Type for {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ} cloudflare.durable_object.response.rows_read\n */\nexport type CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__durable_object__response__rows_written.json\n\n/**\n * The number of rows written by a Cloudflare Durable Object SQL operation. `cloudflare.durable_object.response.rows_written`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN = 'cloudflare.durable_object.response.rows_written';\n\n/**\n * Type for {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN} cloudflare.durable_object.response.rows_written\n */\nexport type CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__bucket.json\n\n/**\n * The name of the Cloudflare R2 bucket binding `cloudflare.r2.bucket`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_BUCKET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"MY_BUCKET\"\n */\nexport const CLOUDFLARE_R2_BUCKET = 'cloudflare.r2.bucket';\n\n/**\n * Type for {@link CLOUDFLARE_R2_BUCKET} cloudflare.r2.bucket\n */\nexport type CLOUDFLARE_R2_BUCKET_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__operation.json\n\n/**\n * The R2 API operation being performed `cloudflare.r2.operation`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"GetObject\"\n */\nexport const CLOUDFLARE_R2_OPERATION = 'cloudflare.r2.operation';\n\n/**\n * Type for {@link CLOUDFLARE_R2_OPERATION} cloudflare.r2.operation\n */\nexport type CLOUDFLARE_R2_OPERATION_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__delimiter.json\n\n/**\n * The delimiter used to group objects in an R2 list operation `cloudflare.r2.request.delimiter`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_REQUEST_DELIMITER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/\"\n */\nexport const CLOUDFLARE_R2_REQUEST_DELIMITER = 'cloudflare.r2.request.delimiter';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_DELIMITER} cloudflare.r2.request.delimiter\n */\nexport type CLOUDFLARE_R2_REQUEST_DELIMITER_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__key.json\n\n/**\n * The object key used in the R2 operation `cloudflare.r2.request.key`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_REQUEST_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-file.txt\"\n */\nexport const CLOUDFLARE_R2_REQUEST_KEY = 'cloudflare.r2.request.key';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_KEY} cloudflare.r2.request.key\n */\nexport type CLOUDFLARE_R2_REQUEST_KEY_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__part_number.json\n\n/**\n * The part number in a multipart upload operation `cloudflare.r2.request.part_number`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_R2_REQUEST_PART_NUMBER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const CLOUDFLARE_R2_REQUEST_PART_NUMBER = 'cloudflare.r2.request.part_number';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_PART_NUMBER} cloudflare.r2.request.part_number\n */\nexport type CLOUDFLARE_R2_REQUEST_PART_NUMBER_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__prefix.json\n\n/**\n * The prefix used to filter objects in an R2 list operation `cloudflare.r2.request.prefix`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_REQUEST_PREFIX_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"images/\"\n */\nexport const CLOUDFLARE_R2_REQUEST_PREFIX = 'cloudflare.r2.request.prefix';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_PREFIX} cloudflare.r2.request.prefix\n */\nexport type CLOUDFLARE_R2_REQUEST_PREFIX_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__attempt.json\n\n/**\n * The current attempt number for a Cloudflare Workflow step `cloudflare.workflow.attempt`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_WORKFLOW_ATTEMPT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const CLOUDFLARE_WORKFLOW_ATTEMPT = 'cloudflare.workflow.attempt';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_ATTEMPT} cloudflare.workflow.attempt\n */\nexport type CLOUDFLARE_WORKFLOW_ATTEMPT_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__retries__backoff.json\n\n/**\n * The backoff strategy for Cloudflare Workflow step retries `cloudflare.workflow.retries.backoff`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"exponential\"\n */\nexport const CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF = 'cloudflare.workflow.retries.backoff';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF} cloudflare.workflow.retries.backoff\n */\nexport type CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__retries__delay.json\n\n/**\n * The delay between Cloudflare Workflow step retries `cloudflare.workflow.retries.delay`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_WORKFLOW_RETRIES_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"5 seconds\"\n */\nexport const CLOUDFLARE_WORKFLOW_RETRIES_DELAY = 'cloudflare.workflow.retries.delay';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_RETRIES_DELAY} cloudflare.workflow.retries.delay\n */\nexport type CLOUDFLARE_WORKFLOW_RETRIES_DELAY_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__retries__limit.json\n\n/**\n * The maximum number of retries for a Cloudflare Workflow step `cloudflare.workflow.retries.limit`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_WORKFLOW_RETRIES_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3\n */\nexport const CLOUDFLARE_WORKFLOW_RETRIES_LIMIT = 'cloudflare.workflow.retries.limit';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_RETRIES_LIMIT} cloudflare.workflow.retries.limit\n */\nexport type CLOUDFLARE_WORKFLOW_RETRIES_LIMIT_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__timeout.json\n\n/**\n * The timeout duration for a Cloudflare Workflow step `cloudflare.workflow.timeout`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_WORKFLOW_TIMEOUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1 minute\"\n */\nexport const CLOUDFLARE_WORKFLOW_TIMEOUT = 'cloudflare.workflow.timeout';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_TIMEOUT} cloudflare.workflow.timeout\n */\nexport type CLOUDFLARE_WORKFLOW_TIMEOUT_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__account__id.json\n\n/**\n * The cloud account ID the resource is assigned to `cloud.account.id`\n *\n * Attribute Value Type: `string` {@link CLOUD_ACCOUNT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"123456789012\"\n */\nexport const CLOUD_ACCOUNT_ID = 'cloud.account.id';\n\n/**\n * Type for {@link CLOUD_ACCOUNT_ID} cloud.account.id\n */\nexport type CLOUD_ACCOUNT_ID_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__availability_zone.json\n\n/**\n * Cloud regions often have multiple, isolated locations known as zones to increase availability `cloud.availability_zone`\n *\n * Attribute Value Type: `string` {@link CLOUD_AVAILABILITY_ZONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"us-east-1c\"\n */\nexport const CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone';\n\n/**\n * Type for {@link CLOUD_AVAILABILITY_ZONE} cloud.availability_zone\n */\nexport type CLOUD_AVAILABILITY_ZONE_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__platform.json\n\n/**\n * The cloud platform in use `cloud.platform`\n *\n * Attribute Value Type: `string` {@link CLOUD_PLATFORM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"aws_lambda\"\n */\nexport const CLOUD_PLATFORM = 'cloud.platform';\n\n/**\n * Type for {@link CLOUD_PLATFORM} cloud.platform\n */\nexport type CLOUD_PLATFORM_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__provider.json\n\n/**\n * Name of the cloud provider `cloud.provider`\n *\n * Attribute Value Type: `string` {@link CLOUD_PROVIDER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"aws\"\n */\nexport const CLOUD_PROVIDER = 'cloud.provider';\n\n/**\n * Type for {@link CLOUD_PROVIDER} cloud.provider\n */\nexport type CLOUD_PROVIDER_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__region.json\n\n/**\n * The geographical region the resource is running `cloud.region`\n *\n * Attribute Value Type: `string` {@link CLOUD_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_REGION} `aws_region`, {@link GCP_REGION} `gcp_region`\n *\n * @example \"us-east-1\"\n */\nexport const CLOUD_REGION = 'cloud.region';\n\n/**\n * Type for {@link CLOUD_REGION} cloud.region\n */\nexport type CLOUD_REGION_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__resource_id.json\n\n/**\n * Cloud provider-specific native identifier of the monitored cloud resource `cloud.resource_id`\n *\n * Attribute Value Type: `string` {@link CLOUD_RESOURCE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link FAAS_ID} `faas.id`\n *\n * @example \"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function\"\n */\nexport const CLOUD_RESOURCE_ID = 'cloud.resource_id';\n\n/**\n * Type for {@link CLOUD_RESOURCE_ID} cloud.resource_id\n */\nexport type CLOUD_RESOURCE_ID_TYPE = string;\n\n// Path: model/attributes/cls.json\n\n/**\n * The value of the recorded Cumulative Layout Shift (CLS) web vital `cls`\n *\n * Attribute Value Type: `number` {@link CLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_CLS_VALUE} `browser.web_vital.cls.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_CLS_VALUE} (browser.web_vital.cls.value) instead - The CLS web vital is now recorded as a browser.web_vital.cls.value attribute.\n * @example 0.2361\n */\nexport const CLS = 'cls';\n\n/**\n * Type for {@link CLS} cls\n */\nexport type CLS_TYPE = number;\n\n// Path: model/attributes/cls/cls__source__[key].json\n\n/**\n * The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N `cls.source.<key>`\n *\n * Attribute Value Type: `string` {@link CLS_SOURCE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} `browser.web_vital.cls.source.<key>`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} (browser.web_vital.cls.source.<key>) instead - The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.\n * @example \"body > div#app\"\n */\nexport const CLS_SOURCE_KEY = 'cls.source.<key>';\n\n/**\n * Base key for {@link CLS_SOURCE_KEY}. Use with a dynamic suffix, e.g. `${CLS_SOURCE_KEY_BASE}.${key}`.\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE} (browser.web_vital.cls.source) instead - The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.\n */\nexport const CLS_SOURCE_KEY_BASE = 'cls.source';\n\n/**\n * Type for {@link CLS_SOURCE_KEY} cls.source.<key>\n */\nexport type CLS_SOURCE_KEY_TYPE = string;\n\n// Path: model/attributes/code.json\n\n/**\n * Status code of the RPC returned by the RPC server or generated by the client. `code`\n *\n * Attribute Value Type: `string` {@link CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link RPC_GRPC_STATUS_CODE} `rpc.grpc.status_code`, {@link RPC_RESPONSE_STATUS_CODE} `rpc.response.status_code`\n *\n * @deprecated Use {@link RPC_RESPONSE_STATUS_CODE} (rpc.response.status_code) instead\n * @example \"DEADLINE_EXCEEDED\"\n */\nexport const CODE = 'code';\n\n/**\n * Type for {@link CODE} code\n */\nexport type CODE_TYPE = string;\n\n// Path: model/attributes/code/code__filepath.json\n\n/**\n * The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). `code.filepath`\n *\n * Attribute Value Type: `string` {@link CODE_FILEPATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FILE_PATH} `code.file.path`, {@link SVELTEKIT_LOAD_NODE_ID} `sveltekit.load.node_id`\n *\n * @deprecated Use {@link CODE_FILE_PATH} (code.file.path) instead\n * @example \"/app/myapplication/http/handler/server.py\"\n */\nexport const CODE_FILEPATH = 'code.filepath';\n\n/**\n * Type for {@link CODE_FILEPATH} code.filepath\n */\nexport type CODE_FILEPATH_TYPE = string;\n\n// Path: model/attributes/code/code__file__path.json\n\n/**\n * The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). `code.file.path`\n *\n * Attribute Value Type: `string` {@link CODE_FILE_PATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FILEPATH} `code.filepath`, {@link SVELTEKIT_LOAD_NODE_ID} `sveltekit.load.node_id`\n *\n * @example \"/app/myapplication/http/handler/server.py\"\n */\nexport const CODE_FILE_PATH = 'code.file.path';\n\n/**\n * Type for {@link CODE_FILE_PATH} code.file.path\n */\nexport type CODE_FILE_PATH_TYPE = string;\n\n// Path: model/attributes/code/code__function.json\n\n/**\n * The method or function name, or equivalent (usually rightmost part of the code unit's name). `code.function`\n *\n * Attribute Value Type: `string` {@link CODE_FUNCTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FUNCTION_NAME} `code.function.name`, {@link DJANGO_FUNCTION_NAME} `django.function_name`\n *\n * @example \"server_request\"\n */\nexport const CODE_FUNCTION = 'code.function';\n\n/**\n * Type for {@link CODE_FUNCTION} code.function\n */\nexport type CODE_FUNCTION_TYPE = string;\n\n// Path: model/attributes/code/code__function__name.json\n\n/**\n * The method or function fully-qualified name without arguments. `code.function.name`\n *\n * Attribute Value Type: `string` {@link CODE_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FUNCTION} `code.function`, {@link DJANGO_FUNCTION_NAME} `django.function_name`\n *\n * @example \"server_request\"\n */\nexport const CODE_FUNCTION_NAME = 'code.function.name';\n\n/**\n * Type for {@link CODE_FUNCTION_NAME} code.function.name\n */\nexport type CODE_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/code/code__lineno.json\n\n/**\n * The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function `code.lineno`\n *\n * Attribute Value Type: `number` {@link CODE_LINENO_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_LINE_NUMBER} `code.line.number`\n *\n * @deprecated Use {@link CODE_LINE_NUMBER} (code.line.number) instead\n * @example 42\n */\nexport const CODE_LINENO = 'code.lineno';\n\n/**\n * Type for {@link CODE_LINENO} code.lineno\n */\nexport type CODE_LINENO_TYPE = number;\n\n// Path: model/attributes/code/code__line__number.json\n\n/**\n * The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function `code.line.number`\n *\n * Attribute Value Type: `number` {@link CODE_LINE_NUMBER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_LINENO} `code.lineno`\n *\n * @example 42\n */\nexport const CODE_LINE_NUMBER = 'code.line.number';\n\n/**\n * Type for {@link CODE_LINE_NUMBER} code.line.number\n */\nexport type CODE_LINE_NUMBER_TYPE = number;\n\n// Path: model/attributes/code/code__namespace.json\n\n/**\n * The 'namespace' within which code.function is defined. Usually the qualified class or module name, such that code.namespace + some separator + code.function form a unique identifier for the code unit. `code.namespace`\n *\n * Attribute Value Type: `string` {@link CODE_NAMESPACE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"http.handler\"\n */\nexport const CODE_NAMESPACE = 'code.namespace';\n\n/**\n * Type for {@link CODE_NAMESPACE} code.namespace\n */\nexport type CODE_NAMESPACE_TYPE = string;\n\n// Path: model/attributes/connectionType.json\n\n/**\n * Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc). `connectionType`\n *\n * Attribute Value Type: `string` {@link CONNECTIONTYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_TYPE} `network.connection.type`, {@link DEVICE_CONNECTION_TYPE} `device.connection_type`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_TYPE} (network.connection.type) instead - Old namespace-less attribute, to be replaced with network.connection.type for span-first future\n * @example \"wifi\"\n */\nexport const CONNECTIONTYPE = 'connectionType';\n\n/**\n * Type for {@link CONNECTIONTYPE} connectionType\n */\nexport type CONNECTIONTYPE_TYPE = string;\n\n// Path: model/attributes/connection/connection__rtt.json\n\n/**\n * Specifies the estimated effective round-trip time of the current connection, in milliseconds. `connection.rtt`\n *\n * Attribute Value Type: `number` {@link CONNECTION_RTT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_RTT} `network.connection.rtt`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_RTT} (network.connection.rtt) instead - Old attribute name (no official namespace), to be replaced with network.connection.rtt for span-first future\n * @example 100\n */\nexport const CONNECTION_RTT = 'connection.rtt';\n\n/**\n * Type for {@link CONNECTION_RTT} connection.rtt\n */\nexport type CONNECTION_RTT_TYPE = number;\n\n// Path: model/attributes/culture/culture__calendar.json\n\n/**\n * The calendar system used by the culture. `culture.calendar`\n *\n * Attribute Value Type: `string` {@link CULTURE_CALENDAR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"GregorianCalendar\"\n */\nexport const CULTURE_CALENDAR = 'culture.calendar';\n\n/**\n * Type for {@link CULTURE_CALENDAR} culture.calendar\n */\nexport type CULTURE_CALENDAR_TYPE = string;\n\n// Path: model/attributes/culture/culture__display_name.json\n\n/**\n * Human readable name of the culture. `culture.display_name`\n *\n * Attribute Value Type: `string` {@link CULTURE_DISPLAY_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"English (United States)\"\n */\nexport const CULTURE_DISPLAY_NAME = 'culture.display_name';\n\n/**\n * Type for {@link CULTURE_DISPLAY_NAME} culture.display_name\n */\nexport type CULTURE_DISPLAY_NAME_TYPE = string;\n\n// Path: model/attributes/culture/culture__is_24_hour_format.json\n\n/**\n * Whether the culture uses 24-hour time format. `culture.is_24_hour_format`\n *\n * Attribute Value Type: `boolean` {@link CULTURE_IS_24_HOUR_FORMAT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const CULTURE_IS_24_HOUR_FORMAT = 'culture.is_24_hour_format';\n\n/**\n * Type for {@link CULTURE_IS_24_HOUR_FORMAT} culture.is_24_hour_format\n */\nexport type CULTURE_IS_24_HOUR_FORMAT_TYPE = boolean;\n\n// Path: model/attributes/culture/culture__locale.json\n\n/**\n * The locale identifier following RFC 4646. `culture.locale`\n *\n * Attribute Value Type: `string` {@link CULTURE_LOCALE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"en-US\"\n */\nexport const CULTURE_LOCALE = 'culture.locale';\n\n/**\n * Type for {@link CULTURE_LOCALE} culture.locale\n */\nexport type CULTURE_LOCALE_TYPE = string;\n\n// Path: model/attributes/culture/culture__timezone.json\n\n/**\n * The timezone of the culture, as a geographic timezone identifier. `culture.timezone`\n *\n * Attribute Value Type: `string` {@link CULTURE_TIMEZONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Europe/Vienna\"\n */\nexport const CULTURE_TIMEZONE = 'culture.timezone';\n\n/**\n * Type for {@link CULTURE_TIMEZONE} culture.timezone\n */\nexport type CULTURE_TIMEZONE_TYPE = string;\n\n// Path: model/attributes/db/db__collection__name.json\n\n/**\n * The name of a collection (table, container) within the database. `db.collection.name`\n *\n * Attribute Value Type: `string` {@link DB_COLLECTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_MONGODB_COLLECTION} `db.mongodb.collection`\n *\n * @example \"users\"\n * @example \",customers,orders,\"\n */\nexport const DB_COLLECTION_NAME = 'db.collection.name';\n\n/**\n * Type for {@link DB_COLLECTION_NAME} db.collection.name\n */\nexport type DB_COLLECTION_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__connection_string.json\n\n/**\n * The connection string used to connect to the database. `db.connection_string`\n *\n * Attribute Value Type: `string` {@link DB_CONNECTION_STRING_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated  - This attribute is deprecated. The connection is described by server.address and server.port instead, so the value cannot be copied to a single replacement attribute.\n * @example \"redis://localhost:6379\"\n */\nexport const DB_CONNECTION_STRING = 'db.connection_string';\n\n/**\n * Type for {@link DB_CONNECTION_STRING} db.connection_string\n */\nexport type DB_CONNECTION_STRING_TYPE = string;\n\n// Path: model/attributes/db/db__driver__name.json\n\n/**\n * The name of the driver used for the database connection. `db.driver.name`\n *\n * Attribute Value Type: `string` {@link DB_DRIVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"psycopg2\"\n */\nexport const DB_DRIVER_NAME = 'db.driver.name';\n\n/**\n * Type for {@link DB_DRIVER_NAME} db.driver.name\n */\nexport type DB_DRIVER_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__mongodb__collection.json\n\n/**\n * The MongoDB collection being accessed. `db.mongodb.collection`\n *\n * Attribute Value Type: `string` {@link DB_MONGODB_COLLECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_COLLECTION_NAME} `db.collection.name`\n *\n * @deprecated Use {@link DB_COLLECTION_NAME} (db.collection.name) instead - This attribute is being deprecated in favor of db.collection.name, which is the OTel-aligned replacement.\n * @example \"users\"\n */\nexport const DB_MONGODB_COLLECTION = 'db.mongodb.collection';\n\n/**\n * Type for {@link DB_MONGODB_COLLECTION} db.mongodb.collection\n */\nexport type DB_MONGODB_COLLECTION_TYPE = string;\n\n// Path: model/attributes/db/db__name.json\n\n/**\n * The name of the database being accessed. `db.name`\n *\n * Attribute Value Type: `string` {@link DB_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_NAMESPACE} `db.namespace`\n *\n * @deprecated Use {@link DB_NAMESPACE} (db.namespace) instead\n * @example \"customers\"\n */\nexport const DB_NAME = 'db.name';\n\n/**\n * Type for {@link DB_NAME} db.name\n */\nexport type DB_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__namespace.json\n\n/**\n * The name of the database being accessed. `db.namespace`\n *\n * Attribute Value Type: `string` {@link DB_NAMESPACE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_NAME} `db.name`\n *\n * @example \"customers\"\n */\nexport const DB_NAMESPACE = 'db.namespace';\n\n/**\n * Type for {@link DB_NAMESPACE} db.namespace\n */\nexport type DB_NAMESPACE_TYPE = string;\n\n// Path: model/attributes/db/db__operation.json\n\n/**\n * The name of the operation being executed. `db.operation`\n *\n * Attribute Value Type: `string` {@link DB_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_OPERATION_NAME} `db.operation.name`, {@link CLOUDFLARE_D1_QUERY_TYPE} `cloudflare.d1.query_type`, {@link REDIS_COMMAND} `redis.command`\n *\n * @deprecated Use {@link DB_OPERATION_NAME} (db.operation.name) instead\n * @example \"SELECT\"\n */\nexport const DB_OPERATION = 'db.operation';\n\n/**\n * Type for {@link DB_OPERATION} db.operation\n */\nexport type DB_OPERATION_TYPE = string;\n\n// Path: model/attributes/db/db__operation__batch__size.json\n\n/**\n * The number of queries included in a batch operation. Operations are only considered batches when they contain two or more operations, and so db.operation.batch.size SHOULD never be 1. `db.operation.batch.size`\n *\n * Attribute Value Type: `number` {@link DB_OPERATION_BATCH_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 3\n */\nexport const DB_OPERATION_BATCH_SIZE = 'db.operation.batch.size';\n\n/**\n * Type for {@link DB_OPERATION_BATCH_SIZE} db.operation.batch.size\n */\nexport type DB_OPERATION_BATCH_SIZE_TYPE = number;\n\n// Path: model/attributes/db/db__operation__name.json\n\n/**\n * The name of the operation being executed. `db.operation.name`\n *\n * Attribute Value Type: `string` {@link DB_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_OPERATION} `db.operation`, {@link CLOUDFLARE_D1_QUERY_TYPE} `cloudflare.d1.query_type`, {@link REDIS_COMMAND} `redis.command`\n *\n * @example \"SELECT\"\n */\nexport const DB_OPERATION_NAME = 'db.operation.name';\n\n/**\n * Type for {@link DB_OPERATION_NAME} db.operation.name\n */\nexport type DB_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__params.json\n\n/**\n * The query bindings for a database request. `db.params`\n *\n * Attribute Value Type: `string` {@link DB_PARAMS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link DB_QUERY_PARAMETER_KEY} (db.query.parameter.<key>) instead - Instead of adding every binding in the db.params attribute, add them as individual entries with db.query.parameter.<key>.\n * @example \"[{\\\"x\\\": 100}]\"\n */\nexport const DB_PARAMS = 'db.params';\n\n/**\n * Type for {@link DB_PARAMS} db.params\n */\nexport type DB_PARAMS_TYPE = string;\n\n// Path: model/attributes/db/db__query__parameter__[key].json\n\n/**\n * A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value. `db.query.parameter.<key>`\n *\n * Attribute Value Type: `string` {@link DB_QUERY_PARAMETER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"db.query.parameter.foo='123'\"\n */\nexport const DB_QUERY_PARAMETER_KEY = 'db.query.parameter.<key>';\n\n/**\n * Base key for {@link DB_QUERY_PARAMETER_KEY}. Use with a dynamic suffix, e.g. `${DB_QUERY_PARAMETER_KEY_BASE}.${key}`.\n */\nexport const DB_QUERY_PARAMETER_KEY_BASE = 'db.query.parameter';\n\n/**\n * Type for {@link DB_QUERY_PARAMETER_KEY} db.query.parameter.<key>\n */\nexport type DB_QUERY_PARAMETER_KEY_TYPE = string;\n\n// Path: model/attributes/db/db__query__summary.json\n\n/**\n * A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names. `db.query.summary`\n *\n * Attribute Value Type: `string` {@link DB_QUERY_SUMMARY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"SELECT users\"\n * @example \"INSERT products; UPDATE orders\"\n */\nexport const DB_QUERY_SUMMARY = 'db.query.summary';\n\n/**\n * Type for {@link DB_QUERY_SUMMARY} db.query.summary\n */\nexport type DB_QUERY_SUMMARY_TYPE = string;\n\n// Path: model/attributes/db/db__query__text.json\n\n/**\n * The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value. `db.query.text`\n *\n * Attribute Value Type: `string` {@link DB_QUERY_TEXT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_STATEMENT} `db.statement`, {@link QUERY} `query`\n *\n * @example \"SELECT * FROM users WHERE id = $1\"\n */\nexport const DB_QUERY_TEXT = 'db.query.text';\n\n/**\n * Type for {@link DB_QUERY_TEXT} db.query.text\n */\nexport type DB_QUERY_TEXT_TYPE = string;\n\n// Path: model/attributes/db/db__redis__connection.json\n\n/**\n * The redis connection name. `db.redis.connection`\n *\n * Attribute Value Type: `string` {@link DB_REDIS_CONNECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-redis-instance\"\n */\nexport const DB_REDIS_CONNECTION = 'db.redis.connection';\n\n/**\n * Type for {@link DB_REDIS_CONNECTION} db.redis.connection\n */\nexport type DB_REDIS_CONNECTION_TYPE = string;\n\n// Path: model/attributes/db/db__redis__key.json\n\n/**\n * The key the Redis command is operating on. `db.redis.key`\n *\n * Attribute Value Type: `string` {@link DB_REDIS_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REDIS_KEY} `redis.key`\n *\n * @example \"user:2047:city\"\n */\nexport const DB_REDIS_KEY = 'db.redis.key';\n\n/**\n * Type for {@link DB_REDIS_KEY} db.redis.key\n */\nexport type DB_REDIS_KEY_TYPE = string;\n\n// Path: model/attributes/db/db__redis__parameters.json\n\n/**\n * The array of command parameters given to a redis command. `db.redis.parameters`\n *\n * Attribute Value Type: `Array<string>` {@link DB_REDIS_PARAMETERS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"test\",\"*\"]\n */\nexport const DB_REDIS_PARAMETERS = 'db.redis.parameters';\n\n/**\n * Type for {@link DB_REDIS_PARAMETERS} db.redis.parameters\n */\nexport type DB_REDIS_PARAMETERS_TYPE = Array<string>;\n\n// Path: model/attributes/db/db__response__status_code.json\n\n/**\n * Database response status code. The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes. `db.response.status_code`\n *\n * Attribute Value Type: `string` {@link DB_RESPONSE_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ORA-17002\"\n */\nexport const DB_RESPONSE_STATUS_CODE = 'db.response.status_code';\n\n/**\n * Type for {@link DB_RESPONSE_STATUS_CODE} db.response.status_code\n */\nexport type DB_RESPONSE_STATUS_CODE_TYPE = string;\n\n// Path: model/attributes/db/db__sql__bindings.json\n\n/**\n * The array of query bindings. `db.sql.bindings`\n *\n * Attribute Value Type: `Array<string>` {@link DB_SQL_BINDINGS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link DB_QUERY_PARAMETER_KEY} (db.query.parameter.<key>) instead - Instead of adding every binding in the db.sql.bindings attribute, add them as individual entries with db.query.parameter.<key>.\n * @example [\"1\",\"foo\"]\n */\nexport const DB_SQL_BINDINGS = 'db.sql.bindings';\n\n/**\n * Type for {@link DB_SQL_BINDINGS} db.sql.bindings\n */\nexport type DB_SQL_BINDINGS_TYPE = Array<string>;\n\n// Path: model/attributes/db/db__statement.json\n\n/**\n * The database statement being executed. `db.statement`\n *\n * Attribute Value Type: `string` {@link DB_STATEMENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_QUERY_TEXT} `db.query.text`, {@link QUERY} `query`\n *\n * @deprecated Use {@link DB_QUERY_TEXT} (db.query.text) instead - While this attribute never specifically required parameterization, the replacement, db.query.text, does.\n * @example \"SELECT * FROM users WHERE id = $1\"\n */\nexport const DB_STATEMENT = 'db.statement';\n\n/**\n * Type for {@link DB_STATEMENT} db.statement\n */\nexport type DB_STATEMENT_TYPE = string;\n\n// Path: model/attributes/db/db__stored_procedure__name.json\n\n/**\n * The name of a stored procedure being called. `db.stored_procedure.name`\n *\n * Attribute Value Type: `string` {@link DB_STORED_PROCEDURE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"GetUserById\"\n */\nexport const DB_STORED_PROCEDURE_NAME = 'db.stored_procedure.name';\n\n/**\n * Type for {@link DB_STORED_PROCEDURE_NAME} db.stored_procedure.name\n */\nexport type DB_STORED_PROCEDURE_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__system.json\n\n/**\n * An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers. `db.system`\n *\n * Attribute Value Type: `string` {@link DB_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_SYSTEM_NAME} `db.system.name`\n *\n * @deprecated Use {@link DB_SYSTEM_NAME} (db.system.name) instead\n * @example \"postgresql\"\n */\nexport const DB_SYSTEM = 'db.system';\n\n/**\n * Type for {@link DB_SYSTEM} db.system\n */\nexport type DB_SYSTEM_TYPE = string;\n\n// Path: model/attributes/db/db__system__name.json\n\n/**\n * An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers. `db.system.name`\n *\n * Attribute Value Type: `string` {@link DB_SYSTEM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_SYSTEM} `db.system`\n *\n * @example \"postgresql\"\n */\nexport const DB_SYSTEM_NAME = 'db.system.name';\n\n/**\n * Type for {@link DB_SYSTEM_NAME} db.system.name\n */\nexport type DB_SYSTEM_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__user.json\n\n/**\n * The database user. `db.user`\n *\n * Attribute Value Type: `string` {@link DB_USER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"fancy_user\"\n */\nexport const DB_USER = 'db.user';\n\n/**\n * Type for {@link DB_USER} db.user\n */\nexport type DB_USER_TYPE = string;\n\n// Path: model/attributes/deviceMemory.json\n\n/**\n * The estimated total memory capacity of the device, only a rough estimation in gigabytes. `deviceMemory`\n *\n * Attribute Value Type: `string` {@link DEVICEMEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DEVICE_MEMORY_ESTIMATED_CAPACITY} `device.memory.estimated_capacity`\n *\n * @deprecated Use {@link DEVICE_MEMORY_ESTIMATED_CAPACITY} (device.memory.estimated_capacity) instead - Old namespace-less attribute, to be replaced with device.memory.estimated_capacity for span-first future\n * @example \"8 GB\"\n */\nexport const DEVICEMEMORY = 'deviceMemory';\n\n/**\n * Type for {@link DEVICEMEMORY} deviceMemory\n */\nexport type DEVICEMEMORY_TYPE = string;\n\n// Path: model/attributes/device/device__archs.json\n\n/**\n * The CPU architectures of the device. `device.archs`\n *\n * Attribute Value Type: `Array<string>` {@link DEVICE_ARCHS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"arm64-v8a\",\"armeabi-v7a\",\"armeabi\"]\n */\nexport const DEVICE_ARCHS = 'device.archs';\n\n/**\n * Type for {@link DEVICE_ARCHS} device.archs\n */\nexport type DEVICE_ARCHS_TYPE = Array<string>;\n\n// Path: model/attributes/device/device__battery_level.json\n\n/**\n * The battery level of the device as a percentage (0-100). `device.battery_level`\n *\n * Attribute Value Type: `number` {@link DEVICE_BATTERY_LEVEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 100\n */\nexport const DEVICE_BATTERY_LEVEL = 'device.battery_level';\n\n/**\n * Type for {@link DEVICE_BATTERY_LEVEL} device.battery_level\n */\nexport type DEVICE_BATTERY_LEVEL_TYPE = number;\n\n// Path: model/attributes/device/device__battery_temperature.json\n\n/**\n * The battery temperature of the device in Celsius. `device.battery_temperature`\n *\n * Attribute Value Type: `number` {@link DEVICE_BATTERY_TEMPERATURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 25\n */\nexport const DEVICE_BATTERY_TEMPERATURE = 'device.battery_temperature';\n\n/**\n * Type for {@link DEVICE_BATTERY_TEMPERATURE} device.battery_temperature\n */\nexport type DEVICE_BATTERY_TEMPERATURE_TYPE = number;\n\n// Path: model/attributes/device/device__boot_time.json\n\n/**\n * A formatted UTC timestamp when the system was booted. `device.boot_time`\n *\n * Attribute Value Type: `string` {@link DEVICE_BOOT_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2018-02-08T12:52:12Z\"\n */\nexport const DEVICE_BOOT_TIME = 'device.boot_time';\n\n/**\n * Type for {@link DEVICE_BOOT_TIME} device.boot_time\n */\nexport type DEVICE_BOOT_TIME_TYPE = string;\n\n// Path: model/attributes/device/device__brand.json\n\n/**\n * The brand of the device. `device.brand`\n *\n * Attribute Value Type: `string` {@link DEVICE_BRAND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Apple\"\n */\nexport const DEVICE_BRAND = 'device.brand';\n\n/**\n * Type for {@link DEVICE_BRAND} device.brand\n */\nexport type DEVICE_BRAND_TYPE = string;\n\n// Path: model/attributes/device/device__charging.json\n\n/**\n * Whether the device was charging or not. `device.charging`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_CHARGING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const DEVICE_CHARGING = 'device.charging';\n\n/**\n * Type for {@link DEVICE_CHARGING} device.charging\n */\nexport type DEVICE_CHARGING_TYPE = boolean;\n\n// Path: model/attributes/device/device__chipset.json\n\n/**\n * The chipset of the device. `device.chipset`\n *\n * Attribute Value Type: `string` {@link DEVICE_CHIPSET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Qualcomm SM8550\"\n */\nexport const DEVICE_CHIPSET = 'device.chipset';\n\n/**\n * Type for {@link DEVICE_CHIPSET} device.chipset\n */\nexport type DEVICE_CHIPSET_TYPE = string;\n\n// Path: model/attributes/device/device__class.json\n\n/**\n * The classification of the device. For example, `low`, `medium`, or `high`. Typically inferred by Relay - SDKs generally do not need to set this directly. `device.class`\n *\n * Attribute Value Type: `string` {@link DEVICE_CLASS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"medium\"\n */\nexport const DEVICE_CLASS = 'device.class';\n\n/**\n * Type for {@link DEVICE_CLASS} device.class\n */\nexport type DEVICE_CLASS_TYPE = string;\n\n// Path: model/attributes/device/device__connection_type.json\n\n/**\n * The internet connection type currently being used by the device. `device.connection_type`\n *\n * Attribute Value Type: `string` {@link DEVICE_CONNECTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_TYPE} `network.connection.type`, {@link CONNECTIONTYPE} `connectionType`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_TYPE} (network.connection.type) instead - This attribute is being deprecated in favor of network.connection.type\n * @example \"wifi\"\n */\nexport const DEVICE_CONNECTION_TYPE = 'device.connection_type';\n\n/**\n * Type for {@link DEVICE_CONNECTION_TYPE} device.connection_type\n */\nexport type DEVICE_CONNECTION_TYPE_TYPE = string;\n\n// Path: model/attributes/device/device__cpu_description.json\n\n/**\n * A description of the CPU of the device. `device.cpu_description`\n *\n * Attribute Value Type: `string` {@link DEVICE_CPU_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz\"\n */\nexport const DEVICE_CPU_DESCRIPTION = 'device.cpu_description';\n\n/**\n * Type for {@link DEVICE_CPU_DESCRIPTION} device.cpu_description\n */\nexport type DEVICE_CPU_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/device/device__external_free_storage.json\n\n/**\n * External storage free size in bytes. `device.external_free_storage`\n *\n * Attribute Value Type: `number` {@link DEVICE_EXTERNAL_FREE_STORAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 67108864000\n */\nexport const DEVICE_EXTERNAL_FREE_STORAGE = 'device.external_free_storage';\n\n/**\n * Type for {@link DEVICE_EXTERNAL_FREE_STORAGE} device.external_free_storage\n */\nexport type DEVICE_EXTERNAL_FREE_STORAGE_TYPE = number;\n\n// Path: model/attributes/device/device__external_storage_size.json\n\n/**\n * External storage total size in bytes. `device.external_storage_size`\n *\n * Attribute Value Type: `number` {@link DEVICE_EXTERNAL_STORAGE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 134217728000\n */\nexport const DEVICE_EXTERNAL_STORAGE_SIZE = 'device.external_storage_size';\n\n/**\n * Type for {@link DEVICE_EXTERNAL_STORAGE_SIZE} device.external_storage_size\n */\nexport type DEVICE_EXTERNAL_STORAGE_SIZE_TYPE = number;\n\n// Path: model/attributes/device/device__family.json\n\n/**\n * The family of the device. `device.family`\n *\n * Attribute Value Type: `string` {@link DEVICE_FAMILY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"iPhone\"\n */\nexport const DEVICE_FAMILY = 'device.family';\n\n/**\n * Type for {@link DEVICE_FAMILY} device.family\n */\nexport type DEVICE_FAMILY_TYPE = string;\n\n// Path: model/attributes/device/device__free_memory.json\n\n/**\n * Free system memory in bytes. `device.free_memory`\n *\n * Attribute Value Type: `number` {@link DEVICE_FREE_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2147483648\n */\nexport const DEVICE_FREE_MEMORY = 'device.free_memory';\n\n/**\n * Type for {@link DEVICE_FREE_MEMORY} device.free_memory\n */\nexport type DEVICE_FREE_MEMORY_TYPE = number;\n\n// Path: model/attributes/device/device__free_storage.json\n\n/**\n * Free device storage in bytes. `device.free_storage`\n *\n * Attribute Value Type: `number` {@link DEVICE_FREE_STORAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 107374182400\n */\nexport const DEVICE_FREE_STORAGE = 'device.free_storage';\n\n/**\n * Type for {@link DEVICE_FREE_STORAGE} device.free_storage\n */\nexport type DEVICE_FREE_STORAGE_TYPE = number;\n\n// Path: model/attributes/device/device__id.json\n\n/**\n * Unique device identifier. `device.id`\n *\n * Attribute Value Type: `string` {@link DEVICE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n */\nexport const DEVICE_ID = 'device.id';\n\n/**\n * Type for {@link DEVICE_ID} device.id\n */\nexport type DEVICE_ID_TYPE = string;\n\n// Path: model/attributes/device/device__locale.json\n\n/**\n * The locale of the device. `device.locale`\n *\n * Attribute Value Type: `string` {@link DEVICE_LOCALE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"en-US\"\n */\nexport const DEVICE_LOCALE = 'device.locale';\n\n/**\n * Type for {@link DEVICE_LOCALE} device.locale\n */\nexport type DEVICE_LOCALE_TYPE = string;\n\n// Path: model/attributes/device/device__low_memory.json\n\n/**\n * Whether the device was low on memory. `device.low_memory`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_LOW_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const DEVICE_LOW_MEMORY = 'device.low_memory';\n\n/**\n * Type for {@link DEVICE_LOW_MEMORY} device.low_memory\n */\nexport type DEVICE_LOW_MEMORY_TYPE = boolean;\n\n// Path: model/attributes/device/device__low_power_mode.json\n\n/**\n * Whether the device is in Low Power Mode. `device.low_power_mode`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_LOW_POWER_MODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const DEVICE_LOW_POWER_MODE = 'device.low_power_mode';\n\n/**\n * Type for {@link DEVICE_LOW_POWER_MODE} device.low_power_mode\n */\nexport type DEVICE_LOW_POWER_MODE_TYPE = boolean;\n\n// Path: model/attributes/device/device__manufacturer.json\n\n/**\n * The manufacturer of the device. `device.manufacturer`\n *\n * Attribute Value Type: `string` {@link DEVICE_MANUFACTURER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Google\"\n */\nexport const DEVICE_MANUFACTURER = 'device.manufacturer';\n\n/**\n * Type for {@link DEVICE_MANUFACTURER} device.manufacturer\n */\nexport type DEVICE_MANUFACTURER_TYPE = string;\n\n// Path: model/attributes/device/device__memory__estimated_capacity.json\n\n/**\n * The estimated total memory capacity of the device, only a rough estimation in gigabytes. Browsers report estimations in buckets of powers of 2, mostly capped at 8 GB `device.memory.estimated_capacity`\n *\n * Attribute Value Type: `number` {@link DEVICE_MEMORY_ESTIMATED_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DEVICEMEMORY} `deviceMemory`\n *\n * @example 8\n */\nexport const DEVICE_MEMORY_ESTIMATED_CAPACITY = 'device.memory.estimated_capacity';\n\n/**\n * Type for {@link DEVICE_MEMORY_ESTIMATED_CAPACITY} device.memory.estimated_capacity\n */\nexport type DEVICE_MEMORY_ESTIMATED_CAPACITY_TYPE = number;\n\n// Path: model/attributes/device/device__memory_size.json\n\n/**\n * Total system memory available in bytes. `device.memory_size`\n *\n * Attribute Value Type: `number` {@link DEVICE_MEMORY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 17179869184\n */\nexport const DEVICE_MEMORY_SIZE = 'device.memory_size';\n\n/**\n * Type for {@link DEVICE_MEMORY_SIZE} device.memory_size\n */\nexport type DEVICE_MEMORY_SIZE_TYPE = number;\n\n// Path: model/attributes/device/device__model.json\n\n/**\n * The model of the device. `device.model`\n *\n * Attribute Value Type: `string` {@link DEVICE_MODEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"iPhone 15 Pro Max\"\n */\nexport const DEVICE_MODEL = 'device.model';\n\n/**\n * Type for {@link DEVICE_MODEL} device.model\n */\nexport type DEVICE_MODEL_TYPE = string;\n\n// Path: model/attributes/device/device__model_id.json\n\n/**\n * An internal hardware revision to identify the device exactly. `device.model_id`\n *\n * Attribute Value Type: `string` {@link DEVICE_MODEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"N861AP\"\n */\nexport const DEVICE_MODEL_ID = 'device.model_id';\n\n/**\n * Type for {@link DEVICE_MODEL_ID} device.model_id\n */\nexport type DEVICE_MODEL_ID_TYPE = string;\n\n// Path: model/attributes/device/device__name.json\n\n/**\n * The user-assigned name of the mobile device. `device.name`\n *\n * Attribute Value Type: `string` {@link DEVICE_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"localhost\"\n */\nexport const DEVICE_NAME = 'device.name';\n\n/**\n * Type for {@link DEVICE_NAME} device.name\n */\nexport type DEVICE_NAME_TYPE = string;\n\n// Path: model/attributes/device/device__online.json\n\n/**\n * Whether the device was online or not. `device.online`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_ONLINE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const DEVICE_ONLINE = 'device.online';\n\n/**\n * Type for {@link DEVICE_ONLINE} device.online\n */\nexport type DEVICE_ONLINE_TYPE = boolean;\n\n// Path: model/attributes/device/device__orientation.json\n\n/**\n * The orientation of the device, either \"portrait\" or \"landscape\". `device.orientation`\n *\n * Attribute Value Type: `string` {@link DEVICE_ORIENTATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"portrait\"\n */\nexport const DEVICE_ORIENTATION = 'device.orientation';\n\n/**\n * Type for {@link DEVICE_ORIENTATION} device.orientation\n */\nexport type DEVICE_ORIENTATION_TYPE = string;\n\n// Path: model/attributes/device/device__processor_count.json\n\n/**\n * Number of \"logical processors\". `device.processor_count`\n *\n * Attribute Value Type: `number` {@link DEVICE_PROCESSOR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HARDWARECONCURRENCY} `hardwareConcurrency`\n *\n * @example 8\n */\nexport const DEVICE_PROCESSOR_COUNT = 'device.processor_count';\n\n/**\n * Type for {@link DEVICE_PROCESSOR_COUNT} device.processor_count\n */\nexport type DEVICE_PROCESSOR_COUNT_TYPE = number;\n\n// Path: model/attributes/device/device__processor_frequency.json\n\n/**\n * Processor frequency in MHz. `device.processor_frequency`\n *\n * Attribute Value Type: `number` {@link DEVICE_PROCESSOR_FREQUENCY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2400\n */\nexport const DEVICE_PROCESSOR_FREQUENCY = 'device.processor_frequency';\n\n/**\n * Type for {@link DEVICE_PROCESSOR_FREQUENCY} device.processor_frequency\n */\nexport type DEVICE_PROCESSOR_FREQUENCY_TYPE = number;\n\n// Path: model/attributes/device/device__screen_density.json\n\n/**\n * The screen density of the device. `device.screen_density`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_DENSITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2.625\n */\nexport const DEVICE_SCREEN_DENSITY = 'device.screen_density';\n\n/**\n * Type for {@link DEVICE_SCREEN_DENSITY} device.screen_density\n */\nexport type DEVICE_SCREEN_DENSITY_TYPE = number;\n\n// Path: model/attributes/device/device__screen_dpi.json\n\n/**\n * The screen density in dots-per-inch (DPI) of the device. `device.screen_dpi`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_DPI_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 420\n */\nexport const DEVICE_SCREEN_DPI = 'device.screen_dpi';\n\n/**\n * Type for {@link DEVICE_SCREEN_DPI} device.screen_dpi\n */\nexport type DEVICE_SCREEN_DPI_TYPE = number;\n\n// Path: model/attributes/device/device__screen_height_pixels.json\n\n/**\n * The height of the device screen in pixels. `device.screen_height_pixels`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_HEIGHT_PIXELS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2400\n */\nexport const DEVICE_SCREEN_HEIGHT_PIXELS = 'device.screen_height_pixels';\n\n/**\n * Type for {@link DEVICE_SCREEN_HEIGHT_PIXELS} device.screen_height_pixels\n */\nexport type DEVICE_SCREEN_HEIGHT_PIXELS_TYPE = number;\n\n// Path: model/attributes/device/device__screen_width_pixels.json\n\n/**\n * The width of the device screen in pixels. `device.screen_width_pixels`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_WIDTH_PIXELS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1080\n */\nexport const DEVICE_SCREEN_WIDTH_PIXELS = 'device.screen_width_pixels';\n\n/**\n * Type for {@link DEVICE_SCREEN_WIDTH_PIXELS} device.screen_width_pixels\n */\nexport type DEVICE_SCREEN_WIDTH_PIXELS_TYPE = number;\n\n// Path: model/attributes/device/device__simulator.json\n\n/**\n * Whether the device is a simulator or an actual device. `device.simulator`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_SIMULATOR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const DEVICE_SIMULATOR = 'device.simulator';\n\n/**\n * Type for {@link DEVICE_SIMULATOR} device.simulator\n */\nexport type DEVICE_SIMULATOR_TYPE = boolean;\n\n// Path: model/attributes/device/device__storage_size.json\n\n/**\n * Total device storage in bytes. `device.storage_size`\n *\n * Attribute Value Type: `number` {@link DEVICE_STORAGE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 274877906944\n */\nexport const DEVICE_STORAGE_SIZE = 'device.storage_size';\n\n/**\n * Type for {@link DEVICE_STORAGE_SIZE} device.storage_size\n */\nexport type DEVICE_STORAGE_SIZE_TYPE = number;\n\n// Path: model/attributes/device/device__thermal_state.json\n\n/**\n * The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum. `device.thermal_state`\n *\n * Attribute Value Type: `string` {@link DEVICE_THERMAL_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `nominal`\n * - `fair`\n * - `serious`\n * - `critical`\n *\n * @example \"nominal\"\n */\nexport const DEVICE_THERMAL_STATE = 'device.thermal_state';\n\n/**\n * Type for {@link DEVICE_THERMAL_STATE} device.thermal_state\n */\nexport type DEVICE_THERMAL_STATE_TYPE = string;\n\n// Path: model/attributes/device/device__timezone.json\n\n/**\n * The timezone of the device. `device.timezone`\n *\n * Attribute Value Type: `string` {@link DEVICE_TIMEZONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Europe/Vienna\"\n */\nexport const DEVICE_TIMEZONE = 'device.timezone';\n\n/**\n * Type for {@link DEVICE_TIMEZONE} device.timezone\n */\nexport type DEVICE_TIMEZONE_TYPE = string;\n\n// Path: model/attributes/device/device__usable_memory.json\n\n/**\n * Memory usable for the app in bytes. `device.usable_memory`\n *\n * Attribute Value Type: `number` {@link DEVICE_USABLE_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2147483648\n */\nexport const DEVICE_USABLE_MEMORY = 'device.usable_memory';\n\n/**\n * Type for {@link DEVICE_USABLE_MEMORY} device.usable_memory\n */\nexport type DEVICE_USABLE_MEMORY_TYPE = number;\n\n// Path: model/attributes/dist.json\n\n/**\n * The sentry dist. `dist`\n *\n * Attribute Value Type: `string` {@link DIST_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_DIST} `sentry.dist`\n *\n * @deprecated Use {@link SENTRY_DIST} (sentry.dist) instead - This attribute is being deprecated in favor of sentry.dist.\n * @example \"1.0\"\n */\nexport const DIST = 'dist';\n\n/**\n * Type for {@link DIST} dist\n */\nexport type DIST_TYPE = string;\n\n// Path: model/attributes/django/django__function_name.json\n\n/**\n * The fully qualified name of a function used in a Django context. `django.function_name`\n *\n * Attribute Value Type: `string` {@link DJANGO_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CODE_FUNCTION_NAME} `code.function.name`, {@link CODE_FUNCTION} `code.function`\n *\n * @deprecated Use {@link CODE_FUNCTION_NAME} (code.function.name) instead - This attribute is being deprecated in favor of code.function.name, which is the framework-agnostic replacement.\n * @example \"django.contrib.sessions.middleware.SessionMiddleware\"\n */\nexport const DJANGO_FUNCTION_NAME = 'django.function_name';\n\n/**\n * Type for {@link DJANGO_FUNCTION_NAME} django.function_name\n */\nexport type DJANGO_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/django/django__middleware_name.json\n\n/**\n * The name of the Django middleware. `django.middleware_name`\n *\n * Attribute Value Type: `string` {@link DJANGO_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const DJANGO_MIDDLEWARE_NAME = 'django.middleware_name';\n\n/**\n * Type for {@link DJANGO_MIDDLEWARE_NAME} django.middleware_name\n */\nexport type DJANGO_MIDDLEWARE_NAME_TYPE = string;\n\n// Path: model/attributes/effectiveConnectionType.json\n\n/**\n * Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g). `effectiveConnectionType`\n *\n * Attribute Value Type: `string` {@link EFFECTIVECONNECTIONTYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_EFFECTIVE_TYPE} `network.connection.effective_type`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_EFFECTIVE_TYPE} (network.connection.effective_type) instead - Old namespace-less attribute, to be replaced with network.connection.effective_type for span-first future\n * @example \"4g\"\n */\nexport const EFFECTIVECONNECTIONTYPE = 'effectiveConnectionType';\n\n/**\n * Type for {@link EFFECTIVECONNECTIONTYPE} effectiveConnectionType\n */\nexport type EFFECTIVECONNECTIONTYPE_TYPE = string;\n\n// Path: model/attributes/environment.json\n\n/**\n * The sentry environment. `environment`\n *\n * Attribute Value Type: `string` {@link ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_ENVIRONMENT} `sentry.environment`\n *\n * @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead\n * @example \"production\"\n */\nexport const ENVIRONMENT = 'environment';\n\n/**\n * Type for {@link ENVIRONMENT} environment\n */\nexport type ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/error/error__type.json\n\n/**\n * Describes a class of error the operation ended with. `error.type`\n *\n * Attribute Value Type: `string` {@link ERROR_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"timeout\"\n */\nexport const ERROR_TYPE = 'error.type';\n\n/**\n * Type for {@link ERROR_TYPE} error.type\n */\nexport type ERROR_TYPE_TYPE = string;\n\n// Path: model/attributes/event/event__id.json\n\n/**\n * The unique identifier for this event (log record) `event.id`\n *\n * Attribute Value Type: `number` {@link EVENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1234567890\n */\nexport const EVENT_ID = 'event.id';\n\n/**\n * Type for {@link EVENT_ID} event.id\n */\nexport type EVENT_ID_TYPE = number;\n\n// Path: model/attributes/event/event__name.json\n\n/**\n * The name that uniquely identifies this event (log record) `event.name`\n *\n * Attribute Value Type: `string` {@link EVENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Process Payload\"\n */\nexport const EVENT_NAME = 'event.name';\n\n/**\n * Type for {@link EVENT_NAME} event.name\n */\nexport type EVENT_NAME_TYPE = string;\n\n// Path: model/attributes/exception/exception__escaped.json\n\n/**\n * SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. `exception.escaped`\n *\n * Attribute Value Type: `boolean` {@link EXCEPTION_ESCAPED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const EXCEPTION_ESCAPED = 'exception.escaped';\n\n/**\n * Type for {@link EXCEPTION_ESCAPED} exception.escaped\n */\nexport type EXCEPTION_ESCAPED_TYPE = boolean;\n\n// Path: model/attributes/exception/exception__message.json\n\n/**\n * The error message. `exception.message`\n *\n * Attribute Value Type: `string` {@link EXCEPTION_MESSAGE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ENOENT: no such file or directory\"\n */\nexport const EXCEPTION_MESSAGE = 'exception.message';\n\n/**\n * Type for {@link EXCEPTION_MESSAGE} exception.message\n */\nexport type EXCEPTION_MESSAGE_TYPE = string;\n\n// Path: model/attributes/exception/exception__stacktrace.json\n\n/**\n * A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. `exception.stacktrace`\n *\n * Attribute Value Type: `string` {@link EXCEPTION_STACKTRACE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Exception in thread \\\"main\\\" java.lang.RuntimeException: Test exception\\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at com.example.GenerateTrace.main(GenerateTrace.java:5)\"\n */\nexport const EXCEPTION_STACKTRACE = 'exception.stacktrace';\n\n/**\n * Type for {@link EXCEPTION_STACKTRACE} exception.stacktrace\n */\nexport type EXCEPTION_STACKTRACE_TYPE = string;\n\n// Path: model/attributes/exception/exception__type.json\n\n/**\n * The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. `exception.type`\n *\n * Attribute Value Type: `string` {@link EXCEPTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"OSError\"\n */\nexport const EXCEPTION_TYPE = 'exception.type';\n\n/**\n * Type for {@link EXCEPTION_TYPE} exception.type\n */\nexport type EXCEPTION_TYPE_TYPE = string;\n\n// Path: model/attributes/faas/faas__coldstart.json\n\n/**\n * A boolean that is true if the serverless function is executed for the first time (aka cold-start). `faas.coldstart`\n *\n * Attribute Value Type: `boolean` {@link FAAS_COLDSTART_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const FAAS_COLDSTART = 'faas.coldstart';\n\n/**\n * Type for {@link FAAS_COLDSTART} faas.coldstart\n */\nexport type FAAS_COLDSTART_TYPE = boolean;\n\n// Path: model/attributes/faas/faas__cron.json\n\n/**\n * A string containing the schedule period as Cron Expression. `faas.cron`\n *\n * Attribute Value Type: `string` {@link FAAS_CRON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"0/5 * * * ? *\"\n */\nexport const FAAS_CRON = 'faas.cron';\n\n/**\n * Type for {@link FAAS_CRON} faas.cron\n */\nexport type FAAS_CRON_TYPE = string;\n\n// Path: model/attributes/faas/faas__document__collection.json\n\n/**\n * The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. `faas.document.collection`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_COLLECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myBucketName\"\n * @example \"myDbName\"\n */\nexport const FAAS_DOCUMENT_COLLECTION = 'faas.document.collection';\n\n/**\n * Type for {@link FAAS_DOCUMENT_COLLECTION} faas.document.collection\n */\nexport type FAAS_DOCUMENT_COLLECTION_TYPE = string;\n\n// Path: model/attributes/faas/faas__document__name.json\n\n/**\n * The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. `faas.document.name`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myFile.txt\"\n * @example \"myTableName\"\n */\nexport const FAAS_DOCUMENT_NAME = 'faas.document.name';\n\n/**\n * Type for {@link FAAS_DOCUMENT_NAME} faas.document.name\n */\nexport type FAAS_DOCUMENT_NAME_TYPE = string;\n\n// Path: model/attributes/faas/faas__document__operation.json\n\n/**\n * Describes the type of the operation that was performed on the data. `faas.document.operation`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"insert\"\n * @example \"edit\"\n * @example \"delete\"\n */\nexport const FAAS_DOCUMENT_OPERATION = 'faas.document.operation';\n\n/**\n * Type for {@link FAAS_DOCUMENT_OPERATION} faas.document.operation\n */\nexport type FAAS_DOCUMENT_OPERATION_TYPE = string;\n\n// Path: model/attributes/faas/faas__document__time.json\n\n/**\n * A string containing the time when the data was accessed in the ISO 8601 format expressed in UTC. `faas.document.time`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2020-01-23T13:47:06Z\"\n */\nexport const FAAS_DOCUMENT_TIME = 'faas.document.time';\n\n/**\n * Type for {@link FAAS_DOCUMENT_TIME} faas.document.time\n */\nexport type FAAS_DOCUMENT_TIME_TYPE = string;\n\n// Path: model/attributes/faas/faas__duration_in_ms.json\n\n/**\n * The duration a function took to run, in milliseconds. `faas.duration_in_ms`\n *\n * Attribute Value Type: `number` {@link FAAS_DURATION_IN_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 120\n */\nexport const FAAS_DURATION_IN_MS = 'faas.duration_in_ms';\n\n/**\n * Type for {@link FAAS_DURATION_IN_MS} faas.duration_in_ms\n */\nexport type FAAS_DURATION_IN_MS_TYPE = number;\n\n// Path: model/attributes/faas/faas__entry_point.json\n\n/**\n * The code that's run when the cloud provider invokes your function. `faas.entry_point`\n *\n * Attribute Value Type: `string` {@link FAAS_ENTRY_POINT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my_main_function\"\n */\nexport const FAAS_ENTRY_POINT = 'faas.entry_point';\n\n/**\n * Type for {@link FAAS_ENTRY_POINT} faas.entry_point\n */\nexport type FAAS_ENTRY_POINT_TYPE = string;\n\n// Path: model/attributes/faas/faas__execution.json\n\n/**\n * The execution ID of the current function execution. `faas.execution`\n *\n * Attribute Value Type: `string` {@link FAAS_EXECUTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_INVOCATION_ID} `faas.invocation_id`, {@link AWS_LAMBDA_AWS_REQUEST_ID} `aws.lambda.aws_request_id`\n *\n * @deprecated Use {@link FAAS_INVOCATION_ID} (faas.invocation_id) instead - This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.\n * @example \"af9d5aa4-a685-4c5f-a22b-444f80b3cc28\"\n */\nexport const FAAS_EXECUTION = 'faas.execution';\n\n/**\n * Type for {@link FAAS_EXECUTION} faas.execution\n */\nexport type FAAS_EXECUTION_TYPE = string;\n\n// Path: model/attributes/faas/faas__id.json\n\n/**\n * The unique ID of the single function that this runtime instance executes. `faas.id`\n *\n * Attribute Value Type: `string` {@link FAAS_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUD_RESOURCE_ID} `cloud.resource_id`\n *\n * @deprecated Use {@link CLOUD_RESOURCE_ID} (cloud.resource_id) instead - This attribute is being deprecated in favor of cloud.resource_id, which is the OTel-aligned replacement (renamed in OTel semantic conventions v1.19.0).\n * @example \"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function\"\n */\nexport const FAAS_ID = 'faas.id';\n\n/**\n * Type for {@link FAAS_ID} faas.id\n */\nexport type FAAS_ID_TYPE = string;\n\n// Path: model/attributes/faas/faas__identity.json\n\n/**\n * The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services `faas.identity`\n *\n * Attribute Value Type: `string` {@link FAAS_IDENTITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"name@project.iam.gserviceaccount.com (GCP), arn:aws:iam::123456789012:role/role-name (AWS), 00000000-0000-0000-0000-000000000000 (Azure)\"\n */\nexport const FAAS_IDENTITY = 'faas.identity';\n\n/**\n * Type for {@link FAAS_IDENTITY} faas.identity\n */\nexport type FAAS_IDENTITY_TYPE = string;\n\n// Path: model/attributes/faas/faas__instance.json\n\n/**\n * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. `faas.instance`\n *\n * Attribute Value Type: `string` {@link FAAS_INSTANCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de\"\n */\nexport const FAAS_INSTANCE = 'faas.instance';\n\n/**\n * Type for {@link FAAS_INSTANCE} faas.instance\n */\nexport type FAAS_INSTANCE_TYPE = string;\n\n// Path: model/attributes/faas/faas__invocation_id.json\n\n/**\n * The invocation ID of the current function invocation. `faas.invocation_id`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOCATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_AWS_REQUEST_ID} `aws.lambda.aws_request_id`, {@link FAAS_EXECUTION} `faas.execution`\n *\n * @example \"af9d5aa4-a685-4c5f-a22b-444f80b3cc28\"\n */\nexport const FAAS_INVOCATION_ID = 'faas.invocation_id';\n\n/**\n * Type for {@link FAAS_INVOCATION_ID} faas.invocation_id\n */\nexport type FAAS_INVOCATION_ID_TYPE = string;\n\n// Path: model/attributes/faas/faas__invoked_name.json\n\n/**\n * The name of the invoked function. `faas.invoked_name`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOKED_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"my-function\"\n */\nexport const FAAS_INVOKED_NAME = 'faas.invoked_name';\n\n/**\n * Type for {@link FAAS_INVOKED_NAME} faas.invoked_name\n */\nexport type FAAS_INVOKED_NAME_TYPE = string;\n\n// Path: model/attributes/faas/faas__invoked_provider.json\n\n/**\n * The cloud provider of the invoked function. `faas.invoked_provider`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOKED_PROVIDER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"aws\"\n */\nexport const FAAS_INVOKED_PROVIDER = 'faas.invoked_provider';\n\n/**\n * Type for {@link FAAS_INVOKED_PROVIDER} faas.invoked_provider\n */\nexport type FAAS_INVOKED_PROVIDER_TYPE = string;\n\n// Path: model/attributes/faas/faas__invoked_region.json\n\n/**\n * The cloud region of the invoked function. `faas.invoked_region`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOKED_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"eu-central-1\"\n */\nexport const FAAS_INVOKED_REGION = 'faas.invoked_region';\n\n/**\n * Type for {@link FAAS_INVOKED_REGION} faas.invoked_region\n */\nexport type FAAS_INVOKED_REGION_TYPE = string;\n\n// Path: model/attributes/faas/faas__max_memory.json\n\n/**\n * The amount of memory available to the serverless function, in bytes. `faas.max_memory`\n *\n * Attribute Value Type: `number` {@link FAAS_MAX_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 134217728\n * @example 1073741824\n */\nexport const FAAS_MAX_MEMORY = 'faas.max_memory';\n\n/**\n * Type for {@link FAAS_MAX_MEMORY} faas.max_memory\n */\nexport type FAAS_MAX_MEMORY_TYPE = number;\n\n// Path: model/attributes/faas/faas__name.json\n\n/**\n * The name of the serverless function `faas.name`\n *\n * Attribute Value Type: `string` {@link FAAS_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_FUNCTION_NAME} `aws.lambda.function_name`\n *\n * @example \"my_function\"\n */\nexport const FAAS_NAME = 'faas.name';\n\n/**\n * Type for {@link FAAS_NAME} faas.name\n */\nexport type FAAS_NAME_TYPE = string;\n\n// Path: model/attributes/faas/faas__time.json\n\n/**\n * A string containing the function invocation time in the ISO 8601 format expressed in UTC. `faas.time`\n *\n * Attribute Value Type: `string` {@link FAAS_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2020-01-23T13:47:06Z\"\n */\nexport const FAAS_TIME = 'faas.time';\n\n/**\n * Type for {@link FAAS_TIME} faas.time\n */\nexport type FAAS_TIME_TYPE = string;\n\n// Path: model/attributes/faas/faas__trigger.json\n\n/**\n * Type of the trigger which caused this function invocation. `faas.trigger`\n *\n * Attribute Value Type: `string` {@link FAAS_TRIGGER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"timer\"\n */\nexport const FAAS_TRIGGER = 'faas.trigger';\n\n/**\n * Type for {@link FAAS_TRIGGER} faas.trigger\n */\nexport type FAAS_TRIGGER_TYPE = string;\n\n// Path: model/attributes/faas/faas__version.json\n\n/**\n * The version of the function that was invoked `faas.version`\n *\n * Attribute Value Type: `string` {@link FAAS_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_FUNCTION_VERSION} `aws.lambda.function_version`\n *\n * @example \"$LATEST\"\n */\nexport const FAAS_VERSION = 'faas.version';\n\n/**\n * Type for {@link FAAS_VERSION} faas.version\n */\nexport type FAAS_VERSION_TYPE = string;\n\n// Path: model/attributes/fcp.json\n\n/**\n * The time it takes for the browser to render the first piece of meaningful content on the screen `fcp`\n *\n * Attribute Value Type: `number` {@link FCP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_FCP_VALUE} `browser.web_vital.fcp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_FCP_VALUE} (browser.web_vital.fcp.value) instead - This attribute is being deprecated in favor of browser.web_vital.fcp.value\n * @example 547.6951\n */\nexport const FCP = 'fcp';\n\n/**\n * Type for {@link FCP} fcp\n */\nexport type FCP_TYPE = number;\n\n// Path: model/attributes/file/file__path.json\n\n/**\n * Path to the file. `file.path`\n *\n * Attribute Value Type: `string` {@link FILE_PATH_TYPE}\n *\n * Apply Scrubbing: auto - File paths can contain end-user paths (e.g. from stack traces) that may be sensitive.\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"/home/user/example.txt\"\n */\nexport const FILE_PATH = 'file.path';\n\n/**\n * Type for {@link FILE_PATH} file.path\n */\nexport type FILE_PATH_TYPE = string;\n\n// Path: model/attributes/file/file__size.json\n\n/**\n * File size in bytes. `file.size`\n *\n * Attribute Value Type: `number` {@link FILE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1024\n */\nexport const FILE_SIZE = 'file.size';\n\n/**\n * Type for {@link FILE_SIZE} file.size\n */\nexport type FILE_SIZE_TYPE = number;\n\n// Path: model/attributes/flag/flag__evaluation__[key].json\n\n/**\n * An instance of a feature flag evaluation. The value of this attribute is the boolean representing the evaluation result. The <key> suffix is the name of the feature flag. `flag.evaluation.<key>`\n *\n * Attribute Value Type: `boolean` {@link FLAG_EVALUATION_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"flag.evaluation.is_new_ui=true\"\n */\nexport const FLAG_EVALUATION_KEY = 'flag.evaluation.<key>';\n\n/**\n * Base key for {@link FLAG_EVALUATION_KEY}. Use with a dynamic suffix, e.g. `${FLAG_EVALUATION_KEY_BASE}.${key}`.\n */\nexport const FLAG_EVALUATION_KEY_BASE = 'flag.evaluation';\n\n/**\n * Type for {@link FLAG_EVALUATION_KEY} flag.evaluation.<key>\n */\nexport type FLAG_EVALUATION_KEY_TYPE = boolean;\n\n// Path: model/attributes/fp.json\n\n/**\n * The time it takes for the browser to render the first pixel on the screen `fp`\n *\n * Attribute Value Type: `number` {@link FP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_FP_VALUE} `browser.web_vital.fp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_FP_VALUE} (browser.web_vital.fp.value) instead - This attribute is being deprecated in favor of browser.web_vital.fp.value\n * @example 477.1926\n */\nexport const FP = 'fp';\n\n/**\n * Type for {@link FP} fp\n */\nexport type FP_TYPE = number;\n\n// Path: model/attributes/frames/frames__delay.json\n\n/**\n * The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/). `frames.delay`\n *\n * Attribute Value Type: `number` {@link FRAMES_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_DELAY_VALUE} `app.vitals.frames.delay.value`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_DELAY_VALUE} (app.vitals.frames.delay.value) instead - Replaced by app.vitals.frames.delay.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 5\n */\nexport const FRAMES_DELAY = 'frames.delay';\n\n/**\n * Type for {@link FRAMES_DELAY} frames.delay\n */\nexport type FRAMES_DELAY_TYPE = number;\n\n// Path: model/attributes/frames/frames__frozen.json\n\n/**\n * The number of frozen frames rendered during the lifetime of the span. `frames.frozen`\n *\n * Attribute Value Type: `number` {@link FRAMES_FROZEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_FROZEN_COUNT} `app.vitals.frames.frozen.count`, {@link SENTRY_FRAMES_FROZEN} `sentry.frames.frozen`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_FROZEN_COUNT} (app.vitals.frames.frozen.count) instead - Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 3\n */\nexport const FRAMES_FROZEN = 'frames.frozen';\n\n/**\n * Type for {@link FRAMES_FROZEN} frames.frozen\n */\nexport type FRAMES_FROZEN_TYPE = number;\n\n// Path: model/attributes/frames_frozen_rate.json\n\n/**\n * The rate of frozen frames, or `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay. `frames_frozen_rate`\n *\n * Attribute Value Type: `number` {@link FRAMES_FROZEN_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_FROZEN_RATE} `app.vitals.frames.frozen.rate`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_FROZEN_RATE} (app.vitals.frames.frozen.rate) instead - Replaced by app.vitals.frames.frozen.rate to align with the app.vitals.* namespace for mobile performance attributes\n */\nexport const FRAMES_FROZEN_RATE = 'frames_frozen_rate';\n\n/**\n * Type for {@link FRAMES_FROZEN_RATE} frames_frozen_rate\n */\nexport type FRAMES_FROZEN_RATE_TYPE = number;\n\n// Path: model/attributes/frames/frames__slow.json\n\n/**\n * The number of slow frames rendered during the lifetime of the span. `frames.slow`\n *\n * Attribute Value Type: `number` {@link FRAMES_SLOW_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_SLOW_COUNT} `app.vitals.frames.slow.count`, {@link SENTRY_FRAMES_SLOW} `sentry.frames.slow`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_SLOW_COUNT} (app.vitals.frames.slow.count) instead - Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1\n */\nexport const FRAMES_SLOW = 'frames.slow';\n\n/**\n * Type for {@link FRAMES_SLOW} frames.slow\n */\nexport type FRAMES_SLOW_TYPE = number;\n\n// Path: model/attributes/frames_slow_rate.json\n\n/**\n * The rate of slow frames, or `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay. `frames_slow_rate`\n *\n * Attribute Value Type: `number` {@link FRAMES_SLOW_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_SLOW_RATE} `app.vitals.frames.slow.rate`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_SLOW_RATE} (app.vitals.frames.slow.rate) instead - Replaced by app.vitals.frames.slow.rate to align with the app.vitals.* namespace for mobile performance attributes\n */\nexport const FRAMES_SLOW_RATE = 'frames_slow_rate';\n\n/**\n * Type for {@link FRAMES_SLOW_RATE} frames_slow_rate\n */\nexport type FRAMES_SLOW_RATE_TYPE = number;\n\n// Path: model/attributes/frames/frames__total.json\n\n/**\n * The number of total frames rendered during the lifetime of the span. `frames.total`\n *\n * Attribute Value Type: `number` {@link FRAMES_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_TOTAL_COUNT} `app.vitals.frames.total.count`, {@link SENTRY_FRAMES_TOTAL} `sentry.frames.total`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_TOTAL_COUNT} (app.vitals.frames.total.count) instead - Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 60\n */\nexport const FRAMES_TOTAL = 'frames.total';\n\n/**\n * Type for {@link FRAMES_TOTAL} frames.total\n */\nexport type FRAMES_TOTAL_TYPE = number;\n\n// Path: model/attributes/fs_error.json\n\n/**\n * The error message of a file system error. `fs_error`\n *\n * Attribute Value Type: `string` {@link FS_ERROR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link ERROR_TYPE} (error.type) instead - This attribute is not part of the OpenTelemetry specification and error.type fits much better. The value changes from the full error message to the syscall error code, so the old value cannot be copied over.\n * @example \"ENOENT: no such file or directory\"\n */\nexport const FS_ERROR = 'fs_error';\n\n/**\n * Type for {@link FS_ERROR} fs_error\n */\nexport type FS_ERROR_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__event_id.json\n\n/**\n * The event ID from the legacy GCP Cloud Function context (1st gen) `gcp.function.context.event_id`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1234567890\"\n */\nexport const GCP_FUNCTION_CONTEXT_EVENT_ID = 'gcp.function.context.event_id';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_ID} gcp.function.context.event_id\n */\nexport type GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__event_type.json\n\n/**\n * The type of the GCP Cloud Function event `gcp.function.context.event_type`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"google.pubsub.topic.publish\"\n */\nexport const GCP_FUNCTION_CONTEXT_EVENT_TYPE = 'gcp.function.context.event_type';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE} gcp.function.context.event_type\n */\nexport type GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__id.json\n\n/**\n * The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions) `gcp.function.context.id`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1234567890\"\n */\nexport const GCP_FUNCTION_CONTEXT_ID = 'gcp.function.context.id';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_ID} gcp.function.context.id\n */\nexport type GCP_FUNCTION_CONTEXT_ID_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__resource.json\n\n/**\n * The resource that triggered the GCP Cloud Function event `gcp.function.context.resource`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_RESOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"projects/my-project/topics/my-topic\"\n */\nexport const GCP_FUNCTION_CONTEXT_RESOURCE = 'gcp.function.context.resource';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_RESOURCE} gcp.function.context.resource\n */\nexport type GCP_FUNCTION_CONTEXT_RESOURCE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__source.json\n\n/**\n * The source of the GCP Cloud Function event `gcp.function.context.source`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"//pubsub.googleapis.com/projects/my-project/topics/my-topic\"\n */\nexport const GCP_FUNCTION_CONTEXT_SOURCE = 'gcp.function.context.source';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_SOURCE} gcp.function.context.source\n */\nexport type GCP_FUNCTION_CONTEXT_SOURCE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__specversion.json\n\n/**\n * The CloudEvents specification version of the GCP Cloud Function event `gcp.function.context.specversion`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1.0\"\n */\nexport const GCP_FUNCTION_CONTEXT_SPECVERSION = 'gcp.function.context.specversion';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_SPECVERSION} gcp.function.context.specversion\n */\nexport type GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__time.json\n\n/**\n * The timestamp of the GCP Cloud Function event `gcp.function.context.time`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2024-01-01T00:00:00.000Z\"\n */\nexport const GCP_FUNCTION_CONTEXT_TIME = 'gcp.function.context.time';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_TIME} gcp.function.context.time\n */\nexport type GCP_FUNCTION_CONTEXT_TIME_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__timestamp.json\n\n/**\n * The legacy timestamp of the GCP Cloud Function event `gcp.function.context.timestamp`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2024-01-01T00:00:00.000Z\"\n */\nexport const GCP_FUNCTION_CONTEXT_TIMESTAMP = 'gcp.function.context.timestamp';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_TIMESTAMP} gcp.function.context.timestamp\n */\nexport type GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__type.json\n\n/**\n * The type of the GCP Cloud Function event context `gcp.function.context.type`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"cloud_functions.context\"\n */\nexport const GCP_FUNCTION_CONTEXT_TYPE = 'gcp.function.context.type';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_TYPE} gcp.function.context.type\n */\nexport type GCP_FUNCTION_CONTEXT_TYPE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__project__id.json\n\n/**\n * The ID of the project in GCP that this resource is associated with `gcp.project.id`\n *\n * Attribute Value Type: `string` {@link GCP_PROJECT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-project-123\"\n */\nexport const GCP_PROJECT_ID = 'gcp.project.id';\n\n/**\n * Type for {@link GCP_PROJECT_ID} gcp.project.id\n */\nexport type GCP_PROJECT_ID_TYPE = string;\n\n// Path: model/attributes/gcp_region.json\n\n/**\n * The geographical region the GCP resource is running `gcp_region`\n *\n * Attribute Value Type: `string` {@link GCP_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUD_REGION} `cloud.region`, {@link AWS_REGION} `aws_region`\n *\n * @deprecated Use {@link CLOUD_REGION} (cloud.region) instead\n * @example \"us-east-1\"\n */\nexport const GCP_REGION = 'gcp_region';\n\n/**\n * Type for {@link GCP_REGION} gcp_region\n */\nexport type GCP_REGION_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__agent__name.json\n\n/**\n * The name of the agent being used. `gen_ai.agent.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_AGENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ResearchAssistant\"\n */\nexport const GEN_AI_AGENT_NAME = 'gen_ai.agent.name';\n\n/**\n * Type for {@link GEN_AI_AGENT_NAME} gen_ai.agent.name\n */\nexport type GEN_AI_AGENT_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__context__utilization.json\n\n/**\n * The fraction of the model context window utilized by this generation. `gen_ai.context.utilization`\n *\n * Attribute Value Type: `number` {@link GEN_AI_CONTEXT_UTILIZATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.75\n */\nexport const GEN_AI_CONTEXT_UTILIZATION = 'gen_ai.context.utilization';\n\n/**\n * Type for {@link GEN_AI_CONTEXT_UTILIZATION} gen_ai.context.utilization\n */\nexport type GEN_AI_CONTEXT_UTILIZATION_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__context__window_size.json\n\n/**\n * The maximum context window size supported by the model for this generation. `gen_ai.context.window_size`\n *\n * Attribute Value Type: `number` {@link GEN_AI_CONTEXT_WINDOW_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 128000\n */\nexport const GEN_AI_CONTEXT_WINDOW_SIZE = 'gen_ai.context.window_size';\n\n/**\n * Type for {@link GEN_AI_CONTEXT_WINDOW_SIZE} gen_ai.context.window_size\n */\nexport type GEN_AI_CONTEXT_WINDOW_SIZE_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__conversation__id.json\n\n/**\n * The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. `gen_ai.conversation.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_CONVERSATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"conv_5j66UpCpwteGg4YSxUnt7lPY\"\n */\nexport const GEN_AI_CONVERSATION_ID = 'gen_ai.conversation.id';\n\n/**\n * Type for {@link GEN_AI_CONVERSATION_ID} gen_ai.conversation.id\n */\nexport type GEN_AI_CONVERSATION_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__cache_creation__input_tokens.json\n\n/**\n * The cost of input tokens written to cache in USD. `gen_ai.cost.cache_creation.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS = 'gen_ai.cost.cache_creation.input_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS} gen_ai.cost.cache_creation.input_tokens\n */\nexport type GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__cache_read__input_tokens.json\n\n/**\n * The cost of cached input tokens in USD. `gen_ai.cost.cache_read.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_CACHE_READ_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_CACHE_READ_INPUT_TOKENS = 'gen_ai.cost.cache_read.input_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_CACHE_READ_INPUT_TOKENS} gen_ai.cost.cache_read.input_tokens\n */\nexport type GEN_AI_COST_CACHE_READ_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__input_tokens.json\n\n/**\n * The total cost of all input tokens in USD (includes cached and cache creation tokens). `gen_ai.cost.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 123.45\n */\nexport const GEN_AI_COST_INPUT_TOKENS = 'gen_ai.cost.input_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_INPUT_TOKENS} gen_ai.cost.input_tokens\n */\nexport type GEN_AI_COST_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__output_tokens.json\n\n/**\n * The total cost of all output tokens in USD (includes reasoning tokens). `gen_ai.cost.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 123.45\n */\nexport const GEN_AI_COST_OUTPUT_TOKENS = 'gen_ai.cost.output_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_OUTPUT_TOKENS} gen_ai.cost.output_tokens\n */\nexport type GEN_AI_COST_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__reasoning__output_tokens.json\n\n/**\n * The cost of reasoning output tokens in USD. `gen_ai.cost.reasoning.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_REASONING_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_REASONING_OUTPUT_TOKENS = 'gen_ai.cost.reasoning.output_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_REASONING_OUTPUT_TOKENS} gen_ai.cost.reasoning.output_tokens\n */\nexport type GEN_AI_COST_REASONING_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__total_tokens.json\n\n/**\n * The total cost for the tokens used. `gen_ai.cost.total_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_TOTAL_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_TOTAL_COST} `ai.total_cost`\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_TOTAL_TOKENS = 'gen_ai.cost.total_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_TOTAL_TOKENS} gen_ai.cost.total_tokens\n */\nexport type GEN_AI_COST_TOTAL_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__embeddings__input.json\n\n/**\n * The input to the embeddings model. `gen_ai.embeddings.input`\n *\n * Attribute Value Type: `string` {@link GEN_AI_EMBEDDINGS_INPUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"What's the weather in Paris?\"\n */\nexport const GEN_AI_EMBEDDINGS_INPUT = 'gen_ai.embeddings.input';\n\n/**\n * Type for {@link GEN_AI_EMBEDDINGS_INPUT} gen_ai.embeddings.input\n */\nexport type GEN_AI_EMBEDDINGS_INPUT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__function_id.json\n\n/**\n * Framework-specific tracing label for the execution of a function or other unit of execution in a generative AI system. `gen_ai.function_id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_FUNCTION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-awesome-function\"\n */\nexport const GEN_AI_FUNCTION_ID = 'gen_ai.function_id';\n\n/**\n * Type for {@link GEN_AI_FUNCTION_ID} gen_ai.function_id\n */\nexport type GEN_AI_FUNCTION_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__input__messages.json\n\n/**\n * The messages passed to the model. It has to be a stringified version of an array of objects in the format `{role: \"...\", parts: [...]}`. The `role` must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. Each part is an object with a `type`, such as `{type: \"text\", content: \"...\"}`. Other part types include `\"reasoning\"`, `\"tool_call\"`, and `\"tool_call_response\"`. The legacy format `{role, content}` is also accepted. The first example shows this shape. Some operations use a different shape. See the additional context. `gen_ai.input.messages`\n *\n * Attribute Value Type: `string` {@link GEN_AI_INPUT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TEXTS} `ai.texts`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link GEN_AI_PROMPT} `gen_ai.prompt`, {@link AI_PROMPT} `ai.prompt`\n *\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"parts\\\": [{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"Weather in Paris?\\\"}]}, {\\\"role\\\": \\\"assistant\\\", \\\"parts\\\": [{\\\"type\\\": \\\"tool_call\\\", \\\"id\\\": \\\"call_VSPygqKTWdrhaFErNvMV18Yl\\\", \\\"name\\\": \\\"get_weather\\\", \\\"arguments\\\": {\\\"location\\\": \\\"Paris\\\"}}]}, {\\\"role\\\": \\\"tool\\\", \\\"parts\\\": [{\\\"type\\\": \\\"tool_call_response\\\", \\\"id\\\": \\\"call_VSPygqKTWdrhaFErNvMV18Yl\\\", \\\"response\\\": \\\"rainy, 57°F\\\"}]}]\"\n * @example \"[{\\\"state\\\": \\\"I cannot log in, and I also want a refund for last month.\\\", \\\"questions\\\": {\\\"authIssue\\\": {\\\"type\\\": \\\"noul\\\", \\\"instructions\\\": \\\"Is there a login problem?\\\"}, \\\"department\\\": {\\\"type\\\": \\\"choice\\\", \\\"instructions\\\": \\\"Which team should handle this?\\\", \\\"criteria\\\": {\\\"billing\\\": \\\"Charges and refunds\\\", \\\"technical\\\": \\\"Bugs and outages\\\"}}}}]\"\n * @example \"[{\\\"state\\\": \\\"Invoice INV-2291 from Northwind Supply, issued 2026-09-02, net 30. 4 pallets at $250.00 each, shipping $80.00. Contact: Dana Ruiz, Priya Shah.\\\", \\\"fields\\\": {\\\"invoice_number\\\": {\\\"type\\\": \\\"text\\\"}, \\\"due_date\\\": {\\\"type\\\": \\\"date\\\", \\\"instructions\\\": \\\"Issue date plus the net payment days\\\"}, \\\"total\\\": {\\\"type\\\": \\\"number\\\", \\\"decimals\\\": 2, \\\"unit\\\": \\\"USD\\\", \\\"instructions\\\": \\\"Amount due including shipping\\\"}, \\\"contacts\\\": {\\\"type\\\": \\\"list\\\", \\\"items\\\": \\\"text\\\"}, \\\"po_number\\\": {\\\"type\\\": \\\"text\\\", \\\"instructions\\\": \\\"Purchase order number\\\"}, \\\"days_to_pay\\\": {\\\"type\\\": \\\"estimate\\\", \\\"min\\\": 0, \\\"max\\\": 120, \\\"step\\\": 1, \\\"instructions\\\": \\\"Days after issue until this invoice is paid\\\"}}}]\"\n */\nexport const GEN_AI_INPUT_MESSAGES = 'gen_ai.input.messages';\n\n/**\n * Type for {@link GEN_AI_INPUT_MESSAGES} gen_ai.input.messages\n */\nexport type GEN_AI_INPUT_MESSAGES_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__query__text.json\n\n/**\n * The search query used to retrieve memories. Only applicable to 'search_memory'. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information. `gen_ai.memory.query.text`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_QUERY_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"user dietary preferences\"\n * @example \"past flight bookings\"\n */\nexport const GEN_AI_MEMORY_QUERY_TEXT = 'gen_ai.memory.query.text';\n\n/**\n * Type for {@link GEN_AI_MEMORY_QUERY_TEXT} gen_ai.memory.query.text\n */\nexport type GEN_AI_MEMORY_QUERY_TEXT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__records.json\n\n/**\n * The memory records stored or retrieved in a memory operation. Stringified JSON array; each element follows the OTel MemoryRecord schema: {content (required), id, metadata, score}. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information including user/PII data. `gen_ai.memory.records`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_RECORDS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"[{\\\"content\\\": \\\"User prefers dark mode\\\", \\\"id\\\": \\\"mem_123\\\", \\\"score\\\": 0.95}, {\\\"content\\\": {\\\"preference\\\": \\\"vegetarian meals\\\", \\\"confidence\\\": 0.9}, \\\"metadata\\\": {\\\"source\\\": \\\"profile\\\"}}]\"\n */\nexport const GEN_AI_MEMORY_RECORDS = 'gen_ai.memory.records';\n\n/**\n * Type for {@link GEN_AI_MEMORY_RECORDS} gen_ai.memory.records\n */\nexport type GEN_AI_MEMORY_RECORDS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__record__count.json\n\n/**\n * The number of memory records relevant to the operation. For 'search_memory' this is the number returned; for 'create_memory', 'update_memory', 'upsert_memory' and 'delete_memory' it is the number the operation attempted to create, modify, create-or-update, or delete respectively. `gen_ai.memory.record.count`\n *\n * Attribute Value Type: `number` {@link GEN_AI_MEMORY_RECORD_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 3\n */\nexport const GEN_AI_MEMORY_RECORD_COUNT = 'gen_ai.memory.record.count';\n\n/**\n * Type for {@link GEN_AI_MEMORY_RECORD_COUNT} gen_ai.memory.record.count\n */\nexport type GEN_AI_MEMORY_RECORD_COUNT_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__record__id.json\n\n/**\n * The unique identifier of the memory record. Set when the operation applies to a specific memory record. For 'delete_memory', its absence may indicate the operation intends to delete all memory records in the store. `gen_ai.memory.record.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_RECORD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"mem_5j66UpCpwteGg4YSxUnt7lPY\"\n */\nexport const GEN_AI_MEMORY_RECORD_ID = 'gen_ai.memory.record.id';\n\n/**\n * Type for {@link GEN_AI_MEMORY_RECORD_ID} gen_ai.memory.record.id\n */\nexport type GEN_AI_MEMORY_RECORD_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__store__id.json\n\n/**\n * The unique identifier of the memory store the operation targets. What this maps to is implementation-specific (e.g. a collection, namespace, or vector index) and SHOULD be documented per integration. `gen_ai.memory.store.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_STORE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ms_abc123\"\n * @example \"user-preferences-store\"\n * @example \"seer-knowledge\"\n */\nexport const GEN_AI_MEMORY_STORE_ID = 'gen_ai.memory.store.id';\n\n/**\n * Type for {@link GEN_AI_MEMORY_STORE_ID} gen_ai.memory.store.id\n */\nexport type GEN_AI_MEMORY_STORE_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__operation__name.json\n\n/**\n * The name of the operation being performed. `gen_ai.operation.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Well-defined Values:\n * - `chat`\n * - `create_agent`\n * - `create_memory`\n * - `create_memory_store`\n * - `decide`\n * - `delete_memory`\n * - `delete_memory_store`\n * - `embeddings`\n * - `evaluate`\n * - `execute_tool`\n * - `extract`\n * - `generate_content`\n * - `invoke_agent`\n * - `search_memory`\n * - `text_completion`\n * - `update_memory`\n * - `upsert_memory`\n *\n * @example \"chat\"\n */\nexport const GEN_AI_OPERATION_NAME = 'gen_ai.operation.name';\n\n/**\n * Type for {@link GEN_AI_OPERATION_NAME} gen_ai.operation.name\n */\nexport type GEN_AI_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__operation__type.json\n\n/**\n * The type of AI operation. Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI `gen_ai.operation.type`\n *\n * Attribute Value Type: `string` {@link GEN_AI_OPERATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `agent` - invoke_agent and create_agent spans\n * - `ai_client` - any LLM call\n * - `tool` - execute_tool spans\n * - `handoff` - handoff spans\n * - `memory` - gen_ai.memory.client spans\n * - `other` - input and output processors, skill loading, guardrails etc.\n *\n * @example \"tool\"\n */\nexport const GEN_AI_OPERATION_TYPE = 'gen_ai.operation.type';\n\n/**\n * Type for {@link GEN_AI_OPERATION_TYPE} gen_ai.operation.type\n */\nexport type GEN_AI_OPERATION_TYPE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__output__messages.json\n\n/**\n * The model's response messages. It has to be a stringified version of an array of message objects, which can include text responses and tool calls. The first example shows this shape. Some operations use a different shape. See the additional context. `gen_ai.output.messages`\n *\n * Attribute Value Type: `string` {@link GEN_AI_OUTPUT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_RESPONSE_TOOLCALLS} `ai.response.toolCalls`, {@link AI_RESPONSE_TEXT} `ai.response.text`\n *\n * @example \"[{\\\"role\\\": \\\"assistant\\\", \\\"parts\\\": [{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"The weather in Paris is currently rainy with a temperature of 57°F.\\\"}]}]\"\n * @example \"[{\\\"answers\\\": {\\\"authIssue\\\": {\\\"type\\\": \\\"noul\\\", \\\"noul\\\": 0.98}, \\\"department\\\": {\\\"type\\\": \\\"choice\\\", \\\"choice\\\": \\\"billing\\\", \\\"confidence\\\": 0.28, \\\"probabilities\\\": {\\\"billing\\\": 0.64, \\\"technical\\\": 0.36}}}}]\"\n * @example \"[{\\\"answers\\\": {\\\"invoice_number\\\": {\\\"type\\\": \\\"text\\\", \\\"p_null\\\": 3.8e-10, \\\"span\\\": [8, 16], \\\"guess\\\": \\\"INV-2291\\\", \\\"confidence\\\": 1, \\\"value\\\": \\\"INV-2291\\\"}, \\\"due_date\\\": {\\\"type\\\": \\\"date\\\", \\\"p_null\\\": 1.9e-08, \\\"guess\\\": \\\"2026-10-02\\\", \\\"confidence\\\": 0.9999, \\\"value\\\": \\\"2026-10-02\\\"}, \\\"total\\\": {\\\"type\\\": \\\"number\\\", \\\"p_null\\\": 2.3e-08, \\\"guess\\\": 1080, \\\"confidence\\\": 0.9999, \\\"value\\\": 1080}, \\\"contacts\\\": {\\\"type\\\": \\\"list\\\", \\\"value\\\": [\\\"Dana Ruiz\\\", \\\"Priya Shah\\\"], \\\"spans\\\": [[120, 129], [131, 141]], \\\"confidence\\\": 0.9999}, \\\"po_number\\\": {\\\"type\\\": \\\"text\\\", \\\"p_null\\\": 1, \\\"span\\\": [8, 16], \\\"guess\\\": \\\"INV-2291\\\", \\\"confidence\\\": 0.9995, \\\"value\\\": null}, \\\"days_to_pay\\\": {\\\"type\\\": \\\"estimate\\\", \\\"value\\\": 30, \\\"mean\\\": 29.535, \\\"median\\\": 30, \\\"p10\\\": 21, \\\"p90\\\": 38, \\\"p_below\\\": 5.9e-06, \\\"p_above\\\": 1.2e-05}}, \\\"truncated\\\": false}]\"\n */\nexport const GEN_AI_OUTPUT_MESSAGES = 'gen_ai.output.messages';\n\n/**\n * Type for {@link GEN_AI_OUTPUT_MESSAGES} gen_ai.output.messages\n */\nexport type GEN_AI_OUTPUT_MESSAGES_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__pipeline__name.json\n\n/**\n * Name of the AI pipeline or chain being executed. `gen_ai.pipeline.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PIPELINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_PIPELINE_NAME} `ai.pipeline.name`, {@link LANGCHAIN_CHAIN_NAME} `langchain.chain.name`\n *\n * @example \"Autofix Pipeline\"\n */\nexport const GEN_AI_PIPELINE_NAME = 'gen_ai.pipeline.name';\n\n/**\n * Type for {@link GEN_AI_PIPELINE_NAME} gen_ai.pipeline.name\n */\nexport type GEN_AI_PIPELINE_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__prompt.json\n\n/**\n * The input messages sent to the model `gen_ai.prompt`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROMPT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_TEXTS} `ai.texts`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link AI_PROMPT} `ai.prompt`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead - Deprecated from OTEL, use gen_ai.input.messages with the new format instead.\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const GEN_AI_PROMPT = 'gen_ai.prompt';\n\n/**\n * Type for {@link GEN_AI_PROMPT} gen_ai.prompt\n */\nexport type GEN_AI_PROMPT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__prompt__name.json\n\n/**\n * The name of the prompt that uniquely identifies it. `gen_ai.prompt.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROMPT_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Prompt names may reveal user behavior patterns or sensitive operations\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MCP_PROMPT_NAME} `mcp.prompt.name`\n *\n * @example \"summarize_text\"\n */\nexport const GEN_AI_PROMPT_NAME = 'gen_ai.prompt.name';\n\n/**\n * Type for {@link GEN_AI_PROMPT_NAME} gen_ai.prompt.name\n */\nexport type GEN_AI_PROMPT_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__prompt__variable__[key].json\n\n/**\n * Variables supplied to the prompt template. The <key> is the variable name, and the value is the variable value serialized as a string. `gen_ai.prompt.variable.<key>`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROMPT_VARIABLE_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Prompt variables contain user input and may include sensitive information\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"gen_ai.prompt.variable.language='French'\"\n * @example \"gen_ai.prompt.variable.topic='weather'\"\n */\nexport const GEN_AI_PROMPT_VARIABLE_KEY = 'gen_ai.prompt.variable.<key>';\n\n/**\n * Base key for {@link GEN_AI_PROMPT_VARIABLE_KEY}. Use with a dynamic suffix, e.g. `${GEN_AI_PROMPT_VARIABLE_KEY_BASE}.${key}`.\n */\nexport const GEN_AI_PROMPT_VARIABLE_KEY_BASE = 'gen_ai.prompt.variable';\n\n/**\n * Type for {@link GEN_AI_PROMPT_VARIABLE_KEY} gen_ai.prompt.variable.<key>\n */\nexport type GEN_AI_PROMPT_VARIABLE_KEY_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__provider__name.json\n\n/**\n * The Generative AI provider as identified by the client or server instrumentation. `gen_ai.provider.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROVIDER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_MODEL_PROVIDER} `ai.model.provider`, {@link GEN_AI_SYSTEM} `gen_ai.system`\n *\n * @example \"openai\"\n */\nexport const GEN_AI_PROVIDER_NAME = 'gen_ai.provider.name';\n\n/**\n * Type for {@link GEN_AI_PROVIDER_NAME} gen_ai.provider.name\n */\nexport type GEN_AI_PROVIDER_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__available_tools.json\n\n/**\n * The available tools for the model. It has to be a stringified version of an array of objects. `gen_ai.request.available_tools`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_AVAILABLE_TOOLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_DEFINITIONS} `gen_ai.tool.definitions`\n *\n * @deprecated Use {@link GEN_AI_TOOL_DEFINITIONS} (gen_ai.tool.definitions) instead\n * @example \"[{\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": \\\"Get the weather for a given location\\\"}, {\\\"name\\\": \\\"get_news\\\", \\\"description\\\": \\\"Get the news for a given topic\\\"}]\"\n */\nexport const GEN_AI_REQUEST_AVAILABLE_TOOLS = 'gen_ai.request.available_tools';\n\n/**\n * Type for {@link GEN_AI_REQUEST_AVAILABLE_TOOLS} gen_ai.request.available_tools\n */\nexport type GEN_AI_REQUEST_AVAILABLE_TOOLS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__frequency_penalty.json\n\n/**\n * Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation. `gen_ai.request.frequency_penalty`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_FREQUENCY_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_FREQUENCY_PENALTY} `ai.frequency_penalty`\n *\n * @example 0.5\n */\nexport const GEN_AI_REQUEST_FREQUENCY_PENALTY = 'gen_ai.request.frequency_penalty';\n\n/**\n * Type for {@link GEN_AI_REQUEST_FREQUENCY_PENALTY} gen_ai.request.frequency_penalty\n */\nexport type GEN_AI_REQUEST_FREQUENCY_PENALTY_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__max_tokens.json\n\n/**\n * The maximum number of tokens to generate in the response. `gen_ai.request.max_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_MAX_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 2048\n */\nexport const GEN_AI_REQUEST_MAX_TOKENS = 'gen_ai.request.max_tokens';\n\n/**\n * Type for {@link GEN_AI_REQUEST_MAX_TOKENS} gen_ai.request.max_tokens\n */\nexport type GEN_AI_REQUEST_MAX_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__messages.json\n\n/**\n * The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. For messages of the role `\"tool\"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: \"text\", text:\"...\"}`. `gen_ai.request.messages`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_INPUT_MESSAGES} `ai.input_messages`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @example \"[{\\\"role\\\": \\\"system\\\", \\\"content\\\": \\\"Generate a random number.\\\"}, {\\\"role\\\": \\\"user\\\", \\\"content\\\": [{\\\"text\\\": \\\"Generate a random number between 0 and 10.\\\", \\\"type\\\": \\\"text\\\"}]}, {\\\"role\\\": \\\"tool\\\", \\\"content\\\": {\\\"toolCallId\\\": \\\"1\\\", \\\"toolName\\\": \\\"Weather\\\", \\\"output\\\": \\\"rainy\\\"}}]\"\n */\nexport const GEN_AI_REQUEST_MESSAGES = 'gen_ai.request.messages';\n\n/**\n * Type for {@link GEN_AI_REQUEST_MESSAGES} gen_ai.request.messages\n */\nexport type GEN_AI_REQUEST_MESSAGES_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__model.json\n\n/**\n * The model identifier being used for the request. `gen_ai.request.model`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_MODEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link _AI_MODEL_ID} `ai.model_id`, {@link AI_MODEL_ID} `ai.model.id`\n *\n * @example \"gpt-4-turbo-preview\"\n */\nexport const GEN_AI_REQUEST_MODEL = 'gen_ai.request.model';\n\n/**\n * Type for {@link GEN_AI_REQUEST_MODEL} gen_ai.request.model\n */\nexport type GEN_AI_REQUEST_MODEL_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__presence_penalty.json\n\n/**\n * Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies. `gen_ai.request.presence_penalty`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_PRESENCE_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PRESENCE_PENALTY} `ai.presence_penalty`\n *\n * @example 0.5\n */\nexport const GEN_AI_REQUEST_PRESENCE_PENALTY = 'gen_ai.request.presence_penalty';\n\n/**\n * Type for {@link GEN_AI_REQUEST_PRESENCE_PENALTY} gen_ai.request.presence_penalty\n */\nexport type GEN_AI_REQUEST_PRESENCE_PENALTY_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__reasoning__level.json\n\n/**\n * The reasoning or thinking effort level requested for a GenAI model. `gen_ai.request.reasoning.level`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_REASONING_LEVEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"high\"\n */\nexport const GEN_AI_REQUEST_REASONING_LEVEL = 'gen_ai.request.reasoning.level';\n\n/**\n * Type for {@link GEN_AI_REQUEST_REASONING_LEVEL} gen_ai.request.reasoning.level\n */\nexport type GEN_AI_REQUEST_REASONING_LEVEL_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__schema.json\n\n/**\n * The stringified JSON schema the model output must conform to. `gen_ai.request.schema`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_SCHEMA_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.\n * @example \"{\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"city\\\":{\\\"type\\\":\\\"string\\\"}}}\"\n */\nexport const GEN_AI_REQUEST_SCHEMA = 'gen_ai.request.schema';\n\n/**\n * Type for {@link GEN_AI_REQUEST_SCHEMA} gen_ai.request.schema\n */\nexport type GEN_AI_REQUEST_SCHEMA_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__seed.json\n\n/**\n * The seed, ideally models given the same seed and same other parameters will produce the exact same output. `gen_ai.request.seed`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_SEED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_SEED} `ai.seed`\n *\n * @example \"1234567890\"\n */\nexport const GEN_AI_REQUEST_SEED = 'gen_ai.request.seed';\n\n/**\n * Type for {@link GEN_AI_REQUEST_SEED} gen_ai.request.seed\n */\nexport type GEN_AI_REQUEST_SEED_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__stop_sequences.json\n\n/**\n * List of sequences that the model will use to stop generating further tokens. `gen_ai.request.stop_sequences`\n *\n * Attribute Value Type: `Array<string>` {@link GEN_AI_REQUEST_STOP_SEQUENCES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"forest\",\"lived\"]\n */\nexport const GEN_AI_REQUEST_STOP_SEQUENCES = 'gen_ai.request.stop_sequences';\n\n/**\n * Type for {@link GEN_AI_REQUEST_STOP_SEQUENCES} gen_ai.request.stop_sequences\n */\nexport type GEN_AI_REQUEST_STOP_SEQUENCES_TYPE = Array<string>;\n\n// Path: model/attributes/gen_ai/gen_ai__request__temperature.json\n\n/**\n * For an AI model call, the temperature parameter. Temperature essentially means how random the output will be. `gen_ai.request.temperature`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_TEMPERATURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TEMPERATURE} `ai.temperature`\n *\n * @example 0.1\n */\nexport const GEN_AI_REQUEST_TEMPERATURE = 'gen_ai.request.temperature';\n\n/**\n * Type for {@link GEN_AI_REQUEST_TEMPERATURE} gen_ai.request.temperature\n */\nexport type GEN_AI_REQUEST_TEMPERATURE_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__top_k.json\n\n/**\n * Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered). `gen_ai.request.top_k`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_TOP_K_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TOP_K} `ai.top_k`\n *\n * @example 35\n */\nexport const GEN_AI_REQUEST_TOP_K = 'gen_ai.request.top_k';\n\n/**\n * Type for {@link GEN_AI_REQUEST_TOP_K} gen_ai.request.top_k\n */\nexport type GEN_AI_REQUEST_TOP_K_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__top_p.json\n\n/**\n * Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered). `gen_ai.request.top_p`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_TOP_P_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TOP_P} `ai.top_p`\n *\n * @example 0.7\n */\nexport const GEN_AI_REQUEST_TOP_P = 'gen_ai.request.top_p';\n\n/**\n * Type for {@link GEN_AI_REQUEST_TOP_P} gen_ai.request.top_p\n */\nexport type GEN_AI_REQUEST_TOP_P_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__finish_reason.json\n\n/**\n * The reason why the model stopped generating (singular form). `gen_ai.response.finish_reason`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_FINISH_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_FINISH_REASONS} `gen_ai.response.finish_reasons`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_FINISH_REASONS} (gen_ai.response.finish_reasons) instead\n * @example \"COMPLETE\"\n */\nexport const GEN_AI_RESPONSE_FINISH_REASON = 'gen_ai.response.finish_reason';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_FINISH_REASON} gen_ai.response.finish_reason\n */\nexport type GEN_AI_RESPONSE_FINISH_REASON_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__finish_reasons.json\n\n/**\n * The reason why the model stopped generating. `gen_ai.response.finish_reasons`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_FINISH_REASONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_FINISH_REASON} `ai.finish_reason`, {@link GEN_AI_RESPONSE_FINISH_REASON} `gen_ai.response.finish_reason`\n *\n * @example \"COMPLETE\"\n */\nexport const GEN_AI_RESPONSE_FINISH_REASONS = 'gen_ai.response.finish_reasons';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_FINISH_REASONS} gen_ai.response.finish_reasons\n */\nexport type GEN_AI_RESPONSE_FINISH_REASONS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__id.json\n\n/**\n * Unique identifier for the completion. `gen_ai.response.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_GENERATION_ID} `ai.generation_id`, {@link AI_RESPONSE_ID} `ai.response.id`\n *\n * @example \"gen_123abc\"\n */\nexport const GEN_AI_RESPONSE_ID = 'gen_ai.response.id';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_ID} gen_ai.response.id\n */\nexport type GEN_AI_RESPONSE_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__model.json\n\n/**\n * The vendor-specific ID of the model used. `gen_ai.response.model`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_MODEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_RESPONSE_MODEL} `ai.response.model`\n *\n * @example \"gpt-4\"\n */\nexport const GEN_AI_RESPONSE_MODEL = 'gen_ai.response.model';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_MODEL} gen_ai.response.model\n */\nexport type GEN_AI_RESPONSE_MODEL_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__object.json\n\n/**\n * The type of the object returned by the model. `gen_ai.response.object`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_OBJECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - This attribute is deprecated. The Sentry conventions have no replacement for the raw response object type.\n * @example \"chat.completion\"\n */\nexport const GEN_AI_RESPONSE_OBJECT = 'gen_ai.response.object';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_OBJECT} gen_ai.response.object\n */\nexport type GEN_AI_RESPONSE_OBJECT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__streaming.json\n\n/**\n * Whether or not the AI model call's response was streamed back asynchronously `gen_ai.response.streaming`\n *\n * Attribute Value Type: `boolean` {@link GEN_AI_RESPONSE_STREAMING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_STREAMING} `ai.streaming`\n *\n * @example true\n */\nexport const GEN_AI_RESPONSE_STREAMING = 'gen_ai.response.streaming';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_STREAMING} gen_ai.response.streaming\n */\nexport type GEN_AI_RESPONSE_STREAMING_TYPE = boolean;\n\n// Path: model/attributes/gen_ai/gen_ai__response__text.json\n\n/**\n * The model's response text messages. It has to be a stringified version of an array of response text messages. `gen_ai.response.text`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example \"[\\\"The weather in Paris is rainy and overcast, with temperatures around 57°F\\\", \\\"The weather in London is sunny and warm, with temperatures around 65°F\\\"]\"\n */\nexport const GEN_AI_RESPONSE_TEXT = 'gen_ai.response.text';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TEXT} gen_ai.response.text\n */\nexport type GEN_AI_RESPONSE_TEXT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__time_to_first_chunk.json\n\n/**\n * Time in seconds when the first response content chunk arrived in streaming responses. `gen_ai.response.time_to_first_chunk`\n *\n * Attribute Value Type: `number` {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN} `gen_ai.response.time_to_first_token`\n *\n * @example 0.6853435\n */\nexport const GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK = 'gen_ai.response.time_to_first_chunk';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK} gen_ai.response.time_to_first_chunk\n */\nexport type GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__time_to_first_token.json\n\n/**\n * Time in seconds when the first response content chunk arrived in streaming responses. `gen_ai.response.time_to_first_token`\n *\n * Attribute Value Type: `number` {@link GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK} `gen_ai.response.time_to_first_chunk`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK} (gen_ai.response.time_to_first_chunk) instead\n * @example 0.6853435\n */\nexport const GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN = 'gen_ai.response.time_to_first_token';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN} gen_ai.response.time_to_first_token\n */\nexport type GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__tokens_per_second.json\n\n/**\n * The total output tokens per seconds throughput `gen_ai.response.tokens_per_second`\n *\n * Attribute Value Type: `number` {@link GEN_AI_RESPONSE_TOKENS_PER_SECOND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12345.67\n */\nexport const GEN_AI_RESPONSE_TOKENS_PER_SECOND = 'gen_ai.response.tokens_per_second';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TOKENS_PER_SECOND} gen_ai.response.tokens_per_second\n */\nexport type GEN_AI_RESPONSE_TOKENS_PER_SECOND_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__tool_calls.json\n\n/**\n * The tool calls in the model's response. It has to be a stringified version of an array of objects. `gen_ai.response.tool_calls`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_TOOL_CALLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example \"[{\\\"name\\\": \\\"get_weather\\\", \\\"arguments\\\": {\\\"location\\\": \\\"Paris\\\"}}]\"\n */\nexport const GEN_AI_RESPONSE_TOOL_CALLS = 'gen_ai.response.tool_calls';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TOOL_CALLS} gen_ai.response.tool_calls\n */\nexport type GEN_AI_RESPONSE_TOOL_CALLS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__system.json\n\n/**\n * The provider of the model. `gen_ai.system`\n *\n * Attribute Value Type: `string` {@link GEN_AI_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_MODEL_PROVIDER} `ai.model.provider`, {@link GEN_AI_PROVIDER_NAME} `gen_ai.provider.name`\n *\n * @deprecated Use {@link GEN_AI_PROVIDER_NAME} (gen_ai.provider.name) instead\n * @example \"openai\"\n */\nexport const GEN_AI_SYSTEM = 'gen_ai.system';\n\n/**\n * Type for {@link GEN_AI_SYSTEM} gen_ai.system\n */\nexport type GEN_AI_SYSTEM_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__system_instructions.json\n\n/**\n * The system instructions passed to the model. It has to be a stringified version of an array of objects in the format `{type: \"text\", content: \"...\"}`. `gen_ai.system_instructions`\n *\n * Attribute Value Type: `string` {@link GEN_AI_SYSTEM_INSTRUCTIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PREAMBLE} `ai.preamble`\n *\n * @example \"[{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"You are a helpful assistant.\\\"}, {\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"Be concise and clear.\\\"}]\"\n */\nexport const GEN_AI_SYSTEM_INSTRUCTIONS = 'gen_ai.system_instructions';\n\n/**\n * Type for {@link GEN_AI_SYSTEM_INSTRUCTIONS} gen_ai.system_instructions\n */\nexport type GEN_AI_SYSTEM_INSTRUCTIONS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__system__message.json\n\n/**\n * The system instructions passed to the model. `gen_ai.system.message`\n *\n * Attribute Value Type: `string` {@link GEN_AI_SYSTEM_MESSAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_SYSTEM_INSTRUCTIONS} (gen_ai.system_instructions) instead\n * @example \"You are a helpful assistant\"\n */\nexport const GEN_AI_SYSTEM_MESSAGE = 'gen_ai.system.message';\n\n/**\n * Type for {@link GEN_AI_SYSTEM_MESSAGE} gen_ai.system.message\n */\nexport type GEN_AI_SYSTEM_MESSAGE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__call__arguments.json\n\n/**\n * The arguments of the tool call. It has to be a stringified version of the arguments to the tool. `gen_ai.tool.call.arguments`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_CALL_ARGUMENTS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_INPUT} `gen_ai.tool.input`, {@link AI_TOOLCALL_ARGS} `ai.toolCall.args`\n *\n * @example \"{\\\"location\\\": \\\"Paris\\\"}\"\n */\nexport const GEN_AI_TOOL_CALL_ARGUMENTS = 'gen_ai.tool.call.arguments';\n\n/**\n * Type for {@link GEN_AI_TOOL_CALL_ARGUMENTS} gen_ai.tool.call.arguments\n */\nexport type GEN_AI_TOOL_CALL_ARGUMENTS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__call__result.json\n\n/**\n * The result of the tool call. It has to be a stringified version of the result of the tool. `gen_ai.tool.call.result`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_CALL_RESULT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @example \"rainy, 57°F\"\n */\nexport const GEN_AI_TOOL_CALL_RESULT = 'gen_ai.tool.call.result';\n\n/**\n * Type for {@link GEN_AI_TOOL_CALL_RESULT} gen_ai.tool.call.result\n */\nexport type GEN_AI_TOOL_CALL_RESULT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__call__result__size.json\n\n/**\n * The UTF-8 byte length of the serialized tool call result, measured before truncation. `gen_ai.tool.call.result.size`\n *\n * Attribute Value Type: `number` {@link GEN_AI_TOOL_CALL_RESULT_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n * @example 1024\n */\nexport const GEN_AI_TOOL_CALL_RESULT_SIZE = 'gen_ai.tool.call.result.size';\n\n/**\n * Type for {@link GEN_AI_TOOL_CALL_RESULT_SIZE} gen_ai.tool.call.result.size\n */\nexport type GEN_AI_TOOL_CALL_RESULT_SIZE_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__definitions.json\n\n/**\n * The list of source system tool definitions available to the GenAI agent or model. `gen_ai.tool.definitions`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_DEFINITIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_AVAILABLE_TOOLS} `gen_ai.request.available_tools`\n *\n * @example \"[{\\\"type\\\": \\\"function\\\", \\\"name\\\": \\\"get_current_weather\\\", \\\"description\\\": \\\"Get the current weather in a given location\\\", \\\"parameters\\\": {\\\"type\\\": \\\"object\\\", \\\"properties\\\": {\\\"location\\\": {\\\"type\\\": \\\"string\\\", \\\"description\\\": \\\"The city and state, e.g. San Francisco, CA\\\"}, \\\"unit\\\": {\\\"type\\\": \\\"string\\\", \\\"enum\\\": [\\\"celsius\\\", \\\"fahrenheit\\\"]}}, \\\"required\\\": [\\\"location\\\", \\\"unit\\\"]}}]\"\n */\nexport const GEN_AI_TOOL_DEFINITIONS = 'gen_ai.tool.definitions';\n\n/**\n * Type for {@link GEN_AI_TOOL_DEFINITIONS} gen_ai.tool.definitions\n */\nexport type GEN_AI_TOOL_DEFINITIONS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__description.json\n\n/**\n * The description of the tool being used. `gen_ai.tool.description`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Searches the web for current information about a topic\"\n */\nexport const GEN_AI_TOOL_DESCRIPTION = 'gen_ai.tool.description';\n\n/**\n * Type for {@link GEN_AI_TOOL_DESCRIPTION} gen_ai.tool.description\n */\nexport type GEN_AI_TOOL_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__input.json\n\n/**\n * The input of the tool being used. It has to be a stringified version of the input to the tool. `gen_ai.tool.input`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_INPUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_ARGUMENTS} `gen_ai.tool.call.arguments`, {@link AI_TOOLCALL_ARGS} `ai.toolCall.args`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_ARGUMENTS} (gen_ai.tool.call.arguments) instead\n * @example \"{\\\"location\\\": \\\"Paris\\\"}\"\n */\nexport const GEN_AI_TOOL_INPUT = 'gen_ai.tool.input';\n\n/**\n * Type for {@link GEN_AI_TOOL_INPUT} gen_ai.tool.input\n */\nexport type GEN_AI_TOOL_INPUT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__message.json\n\n/**\n * The response from a tool or function call passed to the model. `gen_ai.tool.message`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_MESSAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57°F\"\n */\nexport const GEN_AI_TOOL_MESSAGE = 'gen_ai.tool.message';\n\n/**\n * Type for {@link GEN_AI_TOOL_MESSAGE} gen_ai.tool.message\n */\nexport type GEN_AI_TOOL_MESSAGE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__name.json\n\n/**\n * Name of the tool utilized by the agent. `gen_ai.tool.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_FUNCTION_CALL} `ai.function_call`, {@link MCP_TOOL_NAME} `mcp.tool.name`\n *\n * @example \"Flights\"\n */\nexport const GEN_AI_TOOL_NAME = 'gen_ai.tool.name';\n\n/**\n * Type for {@link GEN_AI_TOOL_NAME} gen_ai.tool.name\n */\nexport type GEN_AI_TOOL_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__output.json\n\n/**\n * The output of the tool being used. It has to be a stringified version of the output of the tool. `gen_ai.tool.output`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_OUTPUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57°F\"\n */\nexport const GEN_AI_TOOL_OUTPUT = 'gen_ai.tool.output';\n\n/**\n * Type for {@link GEN_AI_TOOL_OUTPUT} gen_ai.tool.output\n */\nexport type GEN_AI_TOOL_OUTPUT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__type.json\n\n/**\n * The type of tool being used. `gen_ai.tool.type`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated  - The gen_ai.tool.type attribute is deprecated and should no longer be set.\n * @example \"function\"\n */\nexport const GEN_AI_TOOL_TYPE = 'gen_ai.tool.type';\n\n/**\n * Type for {@link GEN_AI_TOOL_TYPE} gen_ai.tool.type\n */\nexport type GEN_AI_TOOL_TYPE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__cache_creation__input_tokens.json\n\n/**\n * The number of tokens written to the cache when processing the AI input (prompt). `gen_ai.usage.cache_creation.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE} `gen_ai.usage.input_tokens.cache_write`, {@link _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} `gen_ai.usage.cache_creation_input_tokens`\n *\n * @example 100\n */\nexport const GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS = 'gen_ai.usage.cache_creation.input_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} gen_ai.usage.cache_creation.input_tokens\n */\nexport type GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__cache_creation_input_tokens.json\n\n/**\n * The number of tokens written to the cache when processing the AI input (prompt). `gen_ai.usage.cache_creation_input_tokens`\n *\n * Attribute Value Type: `number` {@link _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} `gen_ai.usage.cache_creation.input_tokens`, {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE} `gen_ai.usage.input_tokens.cache_write`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} (gen_ai.usage.cache_creation.input_tokens) instead - This attribute is being deprecated in favor of gen_ai.usage.cache_creation.input_tokens.\n * @example 100\n */\nexport const _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS = 'gen_ai.usage.cache_creation_input_tokens';\n\n/**\n * Type for {@link _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} gen_ai.usage.cache_creation_input_tokens\n */\nexport type _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__cache_read__input_tokens.json\n\n/**\n * The number of cached tokens used to process the AI input (prompt). `gen_ai.usage.cache_read.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED} `gen_ai.usage.input_tokens.cached`, {@link _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} `gen_ai.usage.cache_read_input_tokens`\n *\n * @example 50\n */\nexport const GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS = 'gen_ai.usage.cache_read.input_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} gen_ai.usage.cache_read.input_tokens\n */\nexport type GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__cache_read_input_tokens.json\n\n/**\n * The number of cached tokens used to process the AI input (prompt). `gen_ai.usage.cache_read_input_tokens`\n *\n * Attribute Value Type: `number` {@link _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} `gen_ai.usage.cache_read.input_tokens`, {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED} `gen_ai.usage.input_tokens.cached`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} (gen_ai.usage.cache_read.input_tokens) instead - This attribute is being deprecated in favor of gen_ai.usage.cache_read.input_tokens.\n * @example 50\n */\nexport const _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS = 'gen_ai.usage.cache_read_input_tokens';\n\n/**\n * Type for {@link _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} gen_ai.usage.cache_read_input_tokens\n */\nexport type _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__completion_tokens.json\n\n/**\n * The number of tokens used in the GenAI response (completion). `gen_ai.usage.completion_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_COMPLETION_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_COMPLETION_TOKENS_USED} `ai.completion_tokens.used`, {@link GEN_AI_USAGE_OUTPUT_TOKENS} `gen_ai.usage.output_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_OUTPUT_TOKENS} (gen_ai.usage.output_tokens) instead\n * @example 10\n */\nexport const GEN_AI_USAGE_COMPLETION_TOKENS = 'gen_ai.usage.completion_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_COMPLETION_TOKENS} gen_ai.usage.completion_tokens\n */\nexport type GEN_AI_USAGE_COMPLETION_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__input_tokens.json\n\n/**\n * The number of tokens used to process the AI input (prompt) including cached input tokens. `gen_ai.usage.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PROMPT_TOKENS_USED} `ai.prompt_tokens.used`, {@link GEN_AI_USAGE_PROMPT_TOKENS} `gen_ai.usage.prompt_tokens`\n *\n * @example 10\n */\nexport const GEN_AI_USAGE_INPUT_TOKENS = 'gen_ai.usage.input_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_INPUT_TOKENS} gen_ai.usage.input_tokens\n */\nexport type GEN_AI_USAGE_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__input_tokens__cached.json\n\n/**\n * The number of cached tokens used to process the AI input (prompt). `gen_ai.usage.input_tokens.cached`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} `gen_ai.usage.cache_read.input_tokens`, {@link _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} `gen_ai.usage.cache_read_input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} (gen_ai.usage.cache_read.input_tokens) instead\n * @example 50\n */\nexport const GEN_AI_USAGE_INPUT_TOKENS_CACHED = 'gen_ai.usage.input_tokens.cached';\n\n/**\n * Type for {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED} gen_ai.usage.input_tokens.cached\n */\nexport type GEN_AI_USAGE_INPUT_TOKENS_CACHED_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__input_tokens__cache_write.json\n\n/**\n * The number of tokens written to the cache when processing the AI input (prompt). `gen_ai.usage.input_tokens.cache_write`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} `gen_ai.usage.cache_creation.input_tokens`, {@link _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} `gen_ai.usage.cache_creation_input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} (gen_ai.usage.cache_creation.input_tokens) instead\n * @example 100\n */\nexport const GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE = 'gen_ai.usage.input_tokens.cache_write';\n\n/**\n * Type for {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE} gen_ai.usage.input_tokens.cache_write\n */\nexport type GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__output_tokens.json\n\n/**\n * The number of tokens used for creating the AI output (including reasoning tokens). `gen_ai.usage.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_COMPLETION_TOKENS_USED} `ai.completion_tokens.used`, {@link GEN_AI_USAGE_COMPLETION_TOKENS} `gen_ai.usage.completion_tokens`\n *\n * @example 10\n */\nexport const GEN_AI_USAGE_OUTPUT_TOKENS = 'gen_ai.usage.output_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_OUTPUT_TOKENS} gen_ai.usage.output_tokens\n */\nexport type GEN_AI_USAGE_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__output_tokens__reasoning.json\n\n/**\n * The number of tokens used for reasoning to create the AI output. `gen_ai.usage.output_tokens.reasoning`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_OUTPUT_TOKENS_REASONING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS} `gen_ai.usage.reasoning.output_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS} (gen_ai.usage.reasoning.output_tokens) instead\n * @example 75\n */\nexport const GEN_AI_USAGE_OUTPUT_TOKENS_REASONING = 'gen_ai.usage.output_tokens.reasoning';\n\n/**\n * Type for {@link GEN_AI_USAGE_OUTPUT_TOKENS_REASONING} gen_ai.usage.output_tokens.reasoning\n */\nexport type GEN_AI_USAGE_OUTPUT_TOKENS_REASONING_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__prompt_tokens.json\n\n/**\n * The number of tokens used in the GenAI input (prompt). `gen_ai.usage.prompt_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_PROMPT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PROMPT_TOKENS_USED} `ai.prompt_tokens.used`, {@link GEN_AI_USAGE_INPUT_TOKENS} `gen_ai.usage.input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_INPUT_TOKENS} (gen_ai.usage.input_tokens) instead\n * @example 20\n */\nexport const GEN_AI_USAGE_PROMPT_TOKENS = 'gen_ai.usage.prompt_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_PROMPT_TOKENS} gen_ai.usage.prompt_tokens\n */\nexport type GEN_AI_USAGE_PROMPT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__reasoning__output_tokens.json\n\n/**\n * The number of tokens used for reasoning to create the AI output. `gen_ai.usage.reasoning.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_OUTPUT_TOKENS_REASONING} `gen_ai.usage.output_tokens.reasoning`\n *\n * @example 75\n */\nexport const GEN_AI_USAGE_REASONING_OUTPUT_TOKENS = 'gen_ai.usage.reasoning.output_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS} gen_ai.usage.reasoning.output_tokens\n */\nexport type GEN_AI_USAGE_REASONING_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__total_tokens.json\n\n/**\n * The total number of tokens used to process the prompt. (input tokens plus output todkens) `gen_ai.usage.total_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_TOTAL_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_TOTAL_TOKENS_USED} `ai.total_tokens.used`, {@link AI_USAGE_TOKENS} `ai.usage.tokens`\n *\n * @example 20\n */\nexport const GEN_AI_USAGE_TOTAL_TOKENS = 'gen_ai.usage.total_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_TOTAL_TOKENS} gen_ai.usage.total_tokens\n */\nexport type GEN_AI_USAGE_TOTAL_TOKENS_TYPE = number;\n\n// Path: model/attributes/graphql/graphql__document.json\n\n/**\n * The GraphQL document being executed. `graphql.document`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_DOCUMENT_TYPE}\n *\n * Apply Scrubbing: auto - The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible.\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GRAPHQL_SOURCE} `graphql.source`\n *\n * @example \"query findBookById { bookById(id: ?) { name } }\"\n */\nexport const GRAPHQL_DOCUMENT = 'graphql.document';\n\n/**\n * Type for {@link GRAPHQL_DOCUMENT} graphql.document\n */\nexport type GRAPHQL_DOCUMENT_TYPE = string;\n\n// Path: model/attributes/graphql/graphql__operation__name.json\n\n/**\n * The name of the operation being executed. `graphql.operation.name`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"findBookById\"\n */\nexport const GRAPHQL_OPERATION_NAME = 'graphql.operation.name';\n\n/**\n * Type for {@link GRAPHQL_OPERATION_NAME} graphql.operation.name\n */\nexport type GRAPHQL_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/graphql/graphql__operation__type.json\n\n/**\n * The type of the operation being executed. `graphql.operation.type`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_OPERATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"query\"\n */\nexport const GRAPHQL_OPERATION_TYPE = 'graphql.operation.type';\n\n/**\n * Type for {@link GRAPHQL_OPERATION_TYPE} graphql.operation.type\n */\nexport type GRAPHQL_OPERATION_TYPE_TYPE = string;\n\n// Path: model/attributes/graphql/graphql__processing__type.json\n\n/**\n * The type of processing represented by this span. `graphql.processing.type`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_PROCESSING_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"parse\"\n * @example \"validate\"\n * @example \"execute\"\n * @example \"resolve\"\n */\nexport const GRAPHQL_PROCESSING_TYPE = 'graphql.processing.type';\n\n/**\n * Type for {@link GRAPHQL_PROCESSING_TYPE} graphql.processing.type\n */\nexport type GRAPHQL_PROCESSING_TYPE_TYPE = string;\n\n// Path: model/attributes/graphql/graphql__source.json\n\n/**\n * The GraphQL document being executed. `graphql.source`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_SOURCE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GRAPHQL_DOCUMENT} `graphql.document`\n *\n * @deprecated Use {@link GRAPHQL_DOCUMENT} (graphql.document) instead - This attribute is being deprecated in favor of graphql.document, which is the OpenTelemetry name for the same value.\n * @example \"query findBookById { bookById(id: ?) { name } }\"\n */\nexport const GRAPHQL_SOURCE = 'graphql.source';\n\n/**\n * Type for {@link GRAPHQL_SOURCE} graphql.source\n */\nexport type GRAPHQL_SOURCE_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__bad_request__field_violations.json\n\n/**\n * The individual field violations from a google.rpc.BadRequest error detail. Each entry is a JSON-encoded object with field, description, reason, and (optional) localized_message keys, mirroring google.rpc.BadRequest.FieldViolation. `grpc.error.bad_request.field_violations`\n *\n * Attribute Value Type: `Array<string>` {@link GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"{\\\"field\\\":\\\"email\\\",\\\"description\\\":\\\"must be a valid email address\\\",\\\"reason\\\":\\\"FIELD_INVALID\\\",\\\"localized_message\\\":{\\\"locale\\\":\\\"en-US\\\",\\\"message\\\":\\\"Must be a valid email address\\\"}}\"]\n */\nexport const GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS = 'grpc.error.bad_request.field_violations';\n\n/**\n * Type for {@link GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS} grpc.error.bad_request.field_violations\n */\nexport type GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS_TYPE = Array<string>;\n\n// Path: model/attributes/grpc/grpc__error__debug_info__detail.json\n\n/**\n * Additional debugging information, such as a server-side stack trace, from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.debug_info.detail`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_DEBUG_INFO_DETAIL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"at com.example.Service.method(Service.java:42)\"\n */\nexport const GRPC_ERROR_DEBUG_INFO_DETAIL = 'grpc.error.debug_info.detail';\n\n/**\n * Type for {@link GRPC_ERROR_DEBUG_INFO_DETAIL} grpc.error.debug_info.detail\n */\nexport type GRPC_ERROR_DEBUG_INFO_DETAIL_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__debug_info__stack_entries.json\n\n/**\n * The server-side stack trace entries from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.debug_info.stack_entries`\n *\n * Attribute Value Type: `Array<string>` {@link GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"com.example.Service.method(Service.java:42)\",\"com.example.Server.handle(Server.java:100)\"]\n */\nexport const GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES = 'grpc.error.debug_info.stack_entries';\n\n/**\n * Type for {@link GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES} grpc.error.debug_info.stack_entries\n */\nexport type GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES_TYPE = Array<string>;\n\n// Path: model/attributes/grpc/grpc__error__error_info__domain.json\n\n/**\n * The logical grouping to which the gRPC error reason belongs, from the google.rpc.ErrorInfo error detail. `grpc.error.error_info.domain`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_ERROR_INFO_DOMAIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"example.sentry.io\"\n */\nexport const GRPC_ERROR_ERROR_INFO_DOMAIN = 'grpc.error.error_info.domain';\n\n/**\n * Type for {@link GRPC_ERROR_ERROR_INFO_DOMAIN} grpc.error.error_info.domain\n */\nexport type GRPC_ERROR_ERROR_INFO_DOMAIN_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__error_info__metadata__[key].json\n\n/**\n * Additional structured metadata attached to a google.rpc.ErrorInfo error detail, with <key> being the metadata key name. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.error_info.metadata.<key>`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_ERROR_INFO_METADATA_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"grpc.error.error_info.metadata.user_id='123'\"\n */\nexport const GRPC_ERROR_ERROR_INFO_METADATA_KEY = 'grpc.error.error_info.metadata.<key>';\n\n/**\n * Base key for {@link GRPC_ERROR_ERROR_INFO_METADATA_KEY}. Use with a dynamic suffix, e.g. `${GRPC_ERROR_ERROR_INFO_METADATA_KEY_BASE}.${key}`.\n */\nexport const GRPC_ERROR_ERROR_INFO_METADATA_KEY_BASE = 'grpc.error.error_info.metadata';\n\n/**\n * Type for {@link GRPC_ERROR_ERROR_INFO_METADATA_KEY} grpc.error.error_info.metadata.<key>\n */\nexport type GRPC_ERROR_ERROR_INFO_METADATA_KEY_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__error_info__reason.json\n\n/**\n * The reason for the gRPC error, as defined by the service that generated it, from the google.rpc.ErrorInfo error detail. `grpc.error.error_info.reason`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_ERROR_INFO_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"FIELD_INVALID\"\n */\nexport const GRPC_ERROR_ERROR_INFO_REASON = 'grpc.error.error_info.reason';\n\n/**\n * Type for {@link GRPC_ERROR_ERROR_INFO_REASON} grpc.error.error_info.reason\n */\nexport type GRPC_ERROR_ERROR_INFO_REASON_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__precondition_failure__violations.json\n\n/**\n * The individual precondition violations from a google.rpc.PreconditionFailure error detail. Each entry is a JSON-encoded object with type, subject, and description keys. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users. `grpc.error.precondition_failure.violations`\n *\n * Attribute Value Type: `Array<string>` {@link GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"{\\\"type\\\":\\\"TOS\\\",\\\"subject\\\":\\\"example.com/user/123\\\",\\\"description\\\":\\\"User must accept the terms of service\\\"}\"]\n */\nexport const GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS = 'grpc.error.precondition_failure.violations';\n\n/**\n * Type for {@link GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS} grpc.error.precondition_failure.violations\n */\nexport type GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS_TYPE = Array<string>;\n\n// Path: model/attributes/grpc/grpc__error__quota_failure__violations.json\n\n/**\n * The individual quota violations from a google.rpc.QuotaFailure error detail. Each entry is a JSON-encoded object with subject, description, api_service, quota_metric, quota_id, quota_dimensions, quota_value, and (optional) future_quota_value keys, mirroring google.rpc.QuotaFailure.Violation. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users. `grpc.error.quota_failure.violations`\n *\n * Attribute Value Type: `Array<string>` {@link GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"{\\\"subject\\\":\\\"clientip:127.0.0.1\\\",\\\"description\\\":\\\"Limit checks failed.\\\",\\\"api_service\\\":\\\"example.googleapis.com\\\",\\\"quota_metric\\\":\\\"example.googleapis.com/read_requests\\\",\\\"quota_id\\\":\\\"ReadRequestsPerMinutePerProject\\\",\\\"quota_dimensions\\\":{\\\"region\\\":\\\"us-central1\\\"},\\\"quota_value\\\":1000}\"]\n */\nexport const GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS = 'grpc.error.quota_failure.violations';\n\n/**\n * Type for {@link GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS} grpc.error.quota_failure.violations\n */\nexport type GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS_TYPE = Array<string>;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__description.json\n\n/**\n * A description of the error that occurred while accessing the resource, from a google.rpc.ResourceInfo error detail. `grpc.error.resource_info.description`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Instance is not ready for the request.\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_DESCRIPTION = 'grpc.error.resource_info.description';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_DESCRIPTION} grpc.error.resource_info.description\n */\nexport type GRPC_ERROR_RESOURCE_INFO_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__owner.json\n\n/**\n * The owner of the resource being accessed (e.g. project or account owning it), from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.resource_info.owner`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_OWNER_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user@example.com\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_OWNER = 'grpc.error.resource_info.owner';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_OWNER} grpc.error.resource_info.owner\n */\nexport type GRPC_ERROR_RESOURCE_INFO_OWNER_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__resource_name.json\n\n/**\n * The name of the resource being accessed, from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.resource_info.resource_name`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"projects/example/instances/example-instance\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME = 'grpc.error.resource_info.resource_name';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME} grpc.error.resource_info.resource_name\n */\nexport type GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__resource_type.json\n\n/**\n * The type of resource being accessed, from a google.rpc.ResourceInfo error detail. `grpc.error.resource_info.resource_type`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"database\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE = 'grpc.error.resource_info.resource_type';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE} grpc.error.resource_info.resource_type\n */\nexport type GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__retry_info__retry_delay_ms.json\n\n/**\n * How long the client should wait before retrying the gRPC call, in milliseconds, from the google.rpc.RetryInfo error detail. `grpc.error.retry_info.retry_delay_ms`\n *\n * Attribute Value Type: `number` {@link GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS = 'grpc.error.retry_info.retry_delay_ms';\n\n/**\n * Type for {@link GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS} grpc.error.retry_info.retry_delay_ms\n */\nexport type GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS_TYPE = number;\n\n// Path: model/attributes/hapi/hapi__ext__type.json\n\n/**\n * The request lifecycle extension point where the Hapi extension function runs. `hapi.ext.type`\n *\n * Attribute Value Type: `string` {@link HAPI_EXT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVER_EXT_TYPE} `server.ext.type`\n *\n * @example \"onRequest\"\n * @example \"onPreResponse\"\n */\nexport const HAPI_EXT_TYPE = 'hapi.ext.type';\n\n/**\n * Type for {@link HAPI_EXT_TYPE} hapi.ext.type\n */\nexport type HAPI_EXT_TYPE_TYPE = string;\n\n// Path: model/attributes/hapi/hapi__plugin__name.json\n\n/**\n * The name of the Hapi plugin that registered the route. `hapi.plugin.name`\n *\n * Attribute Value Type: `string` {@link HAPI_PLUGIN_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"hapi-swagger\"\n */\nexport const HAPI_PLUGIN_NAME = 'hapi.plugin.name';\n\n/**\n * Type for {@link HAPI_PLUGIN_NAME} hapi.plugin.name\n */\nexport type HAPI_PLUGIN_NAME_TYPE = string;\n\n// Path: model/attributes/hapi/hapi__type.json\n\n/**\n * The type of the Hapi layer that the span describes: `router`, `plugin`, or `server.ext`. `hapi.type`\n *\n * Attribute Value Type: `string` {@link HAPI_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"router\"\n * @example \"plugin\"\n * @example \"server.ext\"\n */\nexport const HAPI_TYPE = 'hapi.type';\n\n/**\n * Type for {@link HAPI_TYPE} hapi.type\n */\nexport type HAPI_TYPE_TYPE = string;\n\n// Path: model/attributes/hardwareConcurrency.json\n\n/**\n * The number of logical CPU cores available. `hardwareConcurrency`\n *\n * Attribute Value Type: `string` {@link HARDWARECONCURRENCY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DEVICE_PROCESSOR_COUNT} `device.processor_count`\n *\n * @deprecated Use {@link DEVICE_PROCESSOR_COUNT} (device.processor_count) instead - Old namespace-less attribute, to be replaced with device.processor_count for span-first future\n * @example \"14\"\n */\nexport const HARDWARECONCURRENCY = 'hardwareConcurrency';\n\n/**\n * Type for {@link HARDWARECONCURRENCY} hardwareConcurrency\n */\nexport type HARDWARECONCURRENCY_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__dyno__name.json\n\n/**\n * Name of the Heroku dyno serving the request or emitting telemetry `heroku.dyno.name`\n *\n * Attribute Value Type: `string` {@link HEROKU_DYNO_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"web.1\"\n * @example \"web-12a34bcd56-7efgh\"\n */\nexport const HEROKU_DYNO_NAME = 'heroku.dyno.name';\n\n/**\n * Type for {@link HEROKU_DYNO_NAME} heroku.dyno.name\n */\nexport type HEROKU_DYNO_NAME_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__error__code.json\n\n/**\n * Heroku error code reported by a router or platform log `heroku.error.code`\n *\n * Attribute Value Type: `string` {@link HEROKU_ERROR_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"H12\"\n * @example \"R14\"\n * @example \"L10\"\n */\nexport const HEROKU_ERROR_CODE = 'heroku.error.code';\n\n/**\n * Type for {@link HEROKU_ERROR_CODE} heroku.error.code\n */\nexport type HEROKU_ERROR_CODE_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__error__description.json\n\n/**\n * Description of the Heroku error reported by a router or platform log `heroku.error.description`\n *\n * Attribute Value Type: `string` {@link HEROKU_ERROR_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Request timeout\"\n * @example \"Memory quota exceeded\"\n */\nexport const HEROKU_ERROR_DESCRIPTION = 'heroku.error.description';\n\n/**\n * Type for {@link HEROKU_ERROR_DESCRIPTION} heroku.error.description\n */\nexport type HEROKU_ERROR_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__logplex__drain_token.json\n\n/**\n * Identifier of the Heroku log drain that delivered the log, from the Logplex-Drain-Token header `heroku.logplex.drain_token`\n *\n * Attribute Value Type: `string` {@link HEROKU_LOGPLEX_DRAIN_TOKEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"d.73ea7440-270a-435a-a0ea-adf50b4e5f5a\"\n */\nexport const HEROKU_LOGPLEX_DRAIN_TOKEN = 'heroku.logplex.drain_token';\n\n/**\n * Type for {@link HEROKU_LOGPLEX_DRAIN_TOKEN} heroku.logplex.drain_token\n */\nexport type HEROKU_LOGPLEX_DRAIN_TOKEN_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__router__connect.json\n\n/**\n * Time in milliseconds the Heroku router spent establishing a connection to the dyno `heroku.router.connect`\n *\n * Attribute Value Type: `number` {@link HEROKU_ROUTER_CONNECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n * @example 0.5\n * @example 6\n */\nexport const HEROKU_ROUTER_CONNECT = 'heroku.router.connect';\n\n/**\n * Type for {@link HEROKU_ROUTER_CONNECT} heroku.router.connect\n */\nexport type HEROKU_ROUTER_CONNECT_TYPE = number;\n\n// Path: model/attributes/heroku/heroku__router__request_id.json\n\n/**\n * Request identifier reported by the Heroku router `heroku.router.request_id`\n *\n * Attribute Value Type: `string` {@link HEROKU_ROUTER_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"6903a168-b79b-ec27-03c8-b8f64d8d8792\"\n */\nexport const HEROKU_ROUTER_REQUEST_ID = 'heroku.router.request_id';\n\n/**\n * Type for {@link HEROKU_ROUTER_REQUEST_ID} heroku.router.request_id\n */\nexport type HEROKU_ROUTER_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__router__service.json\n\n/**\n * Time in milliseconds spent proxying data between the backend dyno and the client, as reported by the Heroku router `heroku.router.service`\n *\n * Attribute Value Type: `number` {@link HEROKU_ROUTER_SERVICE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n * @example 12.5\n * @example 30001\n */\nexport const HEROKU_ROUTER_SERVICE = 'heroku.router.service';\n\n/**\n * Type for {@link HEROKU_ROUTER_SERVICE} heroku.router.service\n */\nexport type HEROKU_ROUTER_SERVICE_TYPE = number;\n\n// Path: model/attributes/http/http__client_ip.json\n\n/**\n * Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `http.client_ip`\n *\n * Attribute Value Type: `string` {@link HTTP_CLIENT_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CLIENT_ADDRESS} `client.address`\n *\n * @deprecated Use {@link CLIENT_ADDRESS} (client.address) instead\n * @example \"example.com\"\n */\nexport const HTTP_CLIENT_IP = 'http.client_ip';\n\n/**\n * Type for {@link HTTP_CLIENT_IP} http.client_ip\n */\nexport type HTTP_CLIENT_IP_TYPE = string;\n\n// Path: model/attributes/http/http__decoded_response_content_length.json\n\n/**\n * The decoded body size of the response (in bytes). `http.decoded_response_content_length`\n *\n * Attribute Value Type: `number` {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_BODY_DECODED_SIZE} `http.response.body.decoded_size`, {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED} `http.response_content_length_uncompressed`\n *\n * @deprecated Use {@link HTTP_RESPONSE_BODY_DECODED_SIZE} (http.response.body.decoded_size) instead\n * @example 456\n */\nexport const HTTP_DECODED_RESPONSE_CONTENT_LENGTH = 'http.decoded_response_content_length';\n\n/**\n * Type for {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH} http.decoded_response_content_length\n */\nexport type HTTP_DECODED_RESPONSE_CONTENT_LENGTH_TYPE = number;\n\n// Path: model/attributes/http/http__flavor.json\n\n/**\n * The actual version of the protocol used for network communication. `http.flavor`\n *\n * Attribute Value Type: `string` {@link HTTP_FLAVOR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_VERSION} `network.protocol.version`, {@link NET_PROTOCOL_VERSION} `net.protocol.version`, {@link MESSAGING_PROTOCOL_VERSION} `messaging.protocol_version`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_VERSION} (network.protocol.version) instead\n * @example \"1.1\"\n */\nexport const HTTP_FLAVOR = 'http.flavor';\n\n/**\n * Type for {@link HTTP_FLAVOR} http.flavor\n */\nexport type HTTP_FLAVOR_TYPE = string;\n\n// Path: model/attributes/http/http__fragment.json\n\n/**\n * The fragments present in the URI. Note that this contains the leading # character, while the `url.fragment` attribute does not. `http.fragment`\n *\n * Attribute Value Type: `string` {@link HTTP_FRAGMENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"#details\"\n */\nexport const HTTP_FRAGMENT = 'http.fragment';\n\n/**\n * Type for {@link HTTP_FRAGMENT} http.fragment\n */\nexport type HTTP_FRAGMENT_TYPE = string;\n\n// Path: model/attributes/http/http__host.json\n\n/**\n * The domain name. `http.host`\n *\n * Attribute Value Type: `string` {@link HTTP_HOST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link CLIENT_ADDRESS} `client.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - Deprecated, use one of `server.address` or `client.address`, depending on the usage\n * @example \"example.com\"\n */\nexport const HTTP_HOST = 'http.host';\n\n/**\n * Type for {@link HTTP_HOST} http.host\n */\nexport type HTTP_HOST_TYPE = string;\n\n// Path: model/attributes/http/http__method.json\n\n/**\n * The HTTP method used. `http.method`\n *\n * Attribute Value Type: `string` {@link HTTP_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_METHOD} `http.request.method`, {@link _HTTP_REQUEST_METHOD} `http.request_method`, {@link METHOD} `method`\n *\n * @deprecated Use {@link HTTP_REQUEST_METHOD} (http.request.method) instead\n * @example \"GET\"\n */\nexport const HTTP_METHOD = 'http.method';\n\n/**\n * Type for {@link HTTP_METHOD} http.method\n */\nexport type HTTP_METHOD_TYPE = string;\n\n// Path: model/attributes/http/http__query.json\n\n/**\n * The query string present in the URL. Note that this contains the leading ? character, while the `url.query` attribute does not. `http.query`\n *\n * Attribute Value Type: `string` {@link HTTP_QUERY_TYPE}\n *\n * Apply Scrubbing: auto - Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"?foo=bar&bar=baz\"\n */\nexport const HTTP_QUERY = 'http.query';\n\n/**\n * Type for {@link HTTP_QUERY} http.query\n */\nexport type HTTP_QUERY_TYPE = string;\n\n// Path: model/attributes/http/http__request__body__data.json\n\n/**\n * HTTP request body data. Can be given as string or structural data of any format. `http.request.body.data`\n *\n * Attribute Value Type: `string` {@link HTTP_REQUEST_BODY_DATA_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const HTTP_REQUEST_BODY_DATA = 'http.request.body.data';\n\n/**\n * Type for {@link HTTP_REQUEST_BODY_DATA} http.request.body.data\n */\nexport type HTTP_REQUEST_BODY_DATA_TYPE = string;\n\n// Path: model/attributes/http/http__request__body__decoded_size.json\n\n/**\n * The decoded body size of the request (in bytes). `http.request.body.decoded_size`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_BODY_DECODED_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED} `http.request_content_length_uncompressed`\n *\n * @example 456\n */\nexport const HTTP_REQUEST_BODY_DECODED_SIZE = 'http.request.body.decoded_size';\n\n/**\n * Type for {@link HTTP_REQUEST_BODY_DECODED_SIZE} http.request.body.decoded_size\n */\nexport type HTTP_REQUEST_BODY_DECODED_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__request__body__size.json\n\n/**\n * The encoded body size of the request (in bytes). `http.request.body.size`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_BODY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_CONTENT_LENGTH} `http.request_content_length`\n *\n * @example 123\n */\nexport const HTTP_REQUEST_BODY_SIZE = 'http.request.body.size';\n\n/**\n * Type for {@link HTTP_REQUEST_BODY_SIZE} http.request.body.size\n */\nexport type HTTP_REQUEST_BODY_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__request__connection_end.json\n\n/**\n * The UNIX timestamp representing the time immediately after the browser finishes establishing the connection to the server to retrieve the resource. The timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as TLS handshake and SOCKS authentication. `http.request.connection_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONNECTION_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.15\n */\nexport const HTTP_REQUEST_CONNECTION_END = 'http.request.connection_end';\n\n/**\n * Type for {@link HTTP_REQUEST_CONNECTION_END} http.request.connection_end\n */\nexport type HTTP_REQUEST_CONNECTION_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__connect_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the user agent starts establishing the connection to the server to retrieve the resource. `http.request.connect_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONNECT_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.111\n */\nexport const HTTP_REQUEST_CONNECT_START = 'http.request.connect_start';\n\n/**\n * Type for {@link HTTP_REQUEST_CONNECT_START} http.request.connect_start\n */\nexport type HTTP_REQUEST_CONNECT_START_TYPE = number;\n\n// Path: model/attributes/http/http__request_content_length.json\n\n/**\n * The encoded body size of the request (in bytes). `http.request_content_length`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_BODY_SIZE} `http.request.body.size`\n *\n * @deprecated Use {@link HTTP_REQUEST_BODY_SIZE} (http.request.body.size) instead\n * @example 123\n */\nexport const HTTP_REQUEST_CONTENT_LENGTH = 'http.request_content_length';\n\n/**\n * Type for {@link HTTP_REQUEST_CONTENT_LENGTH} http.request_content_length\n */\nexport type HTTP_REQUEST_CONTENT_LENGTH_TYPE = number;\n\n// Path: model/attributes/http/http__request_content_length_uncompressed.json\n\n/**\n * The decoded body size of the request (in bytes). `http.request_content_length_uncompressed`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_BODY_DECODED_SIZE} `http.request.body.decoded_size`\n *\n * @deprecated Use {@link HTTP_REQUEST_BODY_DECODED_SIZE} (http.request.body.decoded_size) instead\n * @example 456\n */\nexport const HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = 'http.request_content_length_uncompressed';\n\n/**\n * Type for {@link HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED} http.request_content_length_uncompressed\n */\nexport type HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED_TYPE = number;\n\n// Path: model/attributes/http/http__request__domain_lookup_end.json\n\n/**\n * The UNIX timestamp representing the time immediately after the browser finishes the domain-name lookup for the resource. `http.request.domain_lookup_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_DOMAIN_LOOKUP_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.201\n */\nexport const HTTP_REQUEST_DOMAIN_LOOKUP_END = 'http.request.domain_lookup_end';\n\n/**\n * Type for {@link HTTP_REQUEST_DOMAIN_LOOKUP_END} http.request.domain_lookup_end\n */\nexport type HTTP_REQUEST_DOMAIN_LOOKUP_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__domain_lookup_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the browser starts the domain name lookup for the resource. `http.request.domain_lookup_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_DOMAIN_LOOKUP_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.322\n */\nexport const HTTP_REQUEST_DOMAIN_LOOKUP_START = 'http.request.domain_lookup_start';\n\n/**\n * Type for {@link HTTP_REQUEST_DOMAIN_LOOKUP_START} http.request.domain_lookup_start\n */\nexport type HTTP_REQUEST_DOMAIN_LOOKUP_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__duration.json\n\n/**\n * The duration of a HTTP request, in milliseconds. `http.request.duration`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const HTTP_REQUEST_DURATION = 'http.request.duration';\n\n/**\n * Type for {@link HTTP_REQUEST_DURATION} http.request.duration\n */\nexport type HTTP_REQUEST_DURATION_TYPE = number;\n\n// Path: model/attributes/http/http__request__fetch_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the browser starts to fetch the resource. `http.request.fetch_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_FETCH_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.389\n */\nexport const HTTP_REQUEST_FETCH_START = 'http.request.fetch_start';\n\n/**\n * Type for {@link HTTP_REQUEST_FETCH_START} http.request.fetch_start\n */\nexport type HTTP_REQUEST_FETCH_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__header__[key].json\n\n/**\n * HTTP request headers, <key> being the lower-cased, but otherwise unchanged HTTP Header name, the value being the header values. `http.request.header.<key>`\n *\n * Attribute Value Type: `Array<string>` {@link HTTP_REQUEST_HEADER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"http.request.header.custom-header=['foo', 'bar']\"\n * @example \"http.request.header.content-length=['123']\"\n */\nexport const HTTP_REQUEST_HEADER_KEY = 'http.request.header.<key>';\n\n/**\n * Base key for {@link HTTP_REQUEST_HEADER_KEY}. Use with a dynamic suffix, e.g. `${HTTP_REQUEST_HEADER_KEY_BASE}.${key}`.\n */\nexport const HTTP_REQUEST_HEADER_KEY_BASE = 'http.request.header';\n\n/**\n * Type for {@link HTTP_REQUEST_HEADER_KEY} http.request.header.<key>\n */\nexport type HTTP_REQUEST_HEADER_KEY_TYPE = Array<string>;\n\n// Path: model/attributes/http/http__request__method.json\n\n/**\n * The HTTP method used. `http.request.method`\n *\n * Attribute Value Type: `string` {@link HTTP_REQUEST_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link METHOD} `method`, {@link HTTP_METHOD} `http.method`, {@link _HTTP_REQUEST_METHOD} `http.request_method`\n *\n * @example \"GET\"\n */\nexport const HTTP_REQUEST_METHOD = 'http.request.method';\n\n/**\n * Type for {@link HTTP_REQUEST_METHOD} http.request.method\n */\nexport type HTTP_REQUEST_METHOD_TYPE = string;\n\n// Path: model/attributes/http/http__request_method.json\n\n/**\n * The HTTP method used. `http.request_method`\n *\n * Attribute Value Type: `string` {@link _HTTP_REQUEST_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link METHOD} `method`, {@link HTTP_METHOD} `http.method`, {@link HTTP_REQUEST_METHOD} `http.request.method`\n *\n * @deprecated Use {@link HTTP_REQUEST_METHOD} (http.request.method) instead\n * @example \"GET\"\n */\nexport const _HTTP_REQUEST_METHOD = 'http.request_method';\n\n/**\n * Type for {@link _HTTP_REQUEST_METHOD} http.request_method\n */\nexport type _HTTP_REQUEST_METHOD_TYPE = string;\n\n// Path: model/attributes/http/http__request__redirect_end.json\n\n/**\n * The UNIX timestamp representing the timestamp immediately after receiving the last byte of the response of the last redirect `http.request.redirect_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_REDIRECT_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829558.502\n */\nexport const HTTP_REQUEST_REDIRECT_END = 'http.request.redirect_end';\n\n/**\n * Type for {@link HTTP_REQUEST_REDIRECT_END} http.request.redirect_end\n */\nexport type HTTP_REQUEST_REDIRECT_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__redirect_start.json\n\n/**\n * The UNIX timestamp representing the start time of the fetch which that initiates the redirect. `http.request.redirect_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_REDIRECT_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.495\n */\nexport const HTTP_REQUEST_REDIRECT_START = 'http.request.redirect_start';\n\n/**\n * Type for {@link HTTP_REQUEST_REDIRECT_START} http.request.redirect_start\n */\nexport type HTTP_REQUEST_REDIRECT_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__request_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request. `http.request.request_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_REQUEST_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.51\n */\nexport const HTTP_REQUEST_REQUEST_START = 'http.request.request_start';\n\n/**\n * Type for {@link HTTP_REQUEST_REQUEST_START} http.request.request_start\n */\nexport type HTTP_REQUEST_REQUEST_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__resend_count.json\n\n/**\n * The ordinal number of request resending attempt (for any reason, including redirects). `http.request.resend_count`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_RESEND_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const HTTP_REQUEST_RESEND_COUNT = 'http.request.resend_count';\n\n/**\n * Type for {@link HTTP_REQUEST_RESEND_COUNT} http.request.resend_count\n */\nexport type HTTP_REQUEST_RESEND_COUNT_TYPE = number;\n\n// Path: model/attributes/http/http__request__response_end.json\n\n/**\n * The UNIX timestamp representing the time immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first. `http.request.response_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_RESPONSE_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.89\n */\nexport const HTTP_REQUEST_RESPONSE_END = 'http.request.response_end';\n\n/**\n * Type for {@link HTTP_REQUEST_RESPONSE_END} http.request.response_end\n */\nexport type HTTP_REQUEST_RESPONSE_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__response_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request. `http.request.response_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_RESPONSE_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.7\n */\nexport const HTTP_REQUEST_RESPONSE_START = 'http.request.response_start';\n\n/**\n * Type for {@link HTTP_REQUEST_RESPONSE_START} http.request.response_start\n */\nexport type HTTP_REQUEST_RESPONSE_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__same_origin.json\n\n/**\n * Indicates that a URL has the same origin as the current page's origin in the browser. `http.request.same_origin`\n *\n * Attribute Value Type: `boolean` {@link HTTP_REQUEST_SAME_ORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link URL_SAME_ORIGIN} `url.same_origin`\n *\n * @example true\n */\nexport const HTTP_REQUEST_SAME_ORIGIN = 'http.request.same_origin';\n\n/**\n * Type for {@link HTTP_REQUEST_SAME_ORIGIN} http.request.same_origin\n */\nexport type HTTP_REQUEST_SAME_ORIGIN_TYPE = boolean;\n\n// Path: model/attributes/http/http__request__secure_connection_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, the property returns zero. `http.request.secure_connection_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_SECURE_CONNECTION_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.73\n */\nexport const HTTP_REQUEST_SECURE_CONNECTION_START = 'http.request.secure_connection_start';\n\n/**\n * Type for {@link HTTP_REQUEST_SECURE_CONNECTION_START} http.request.secure_connection_start\n */\nexport type HTTP_REQUEST_SECURE_CONNECTION_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__time_to_first_byte.json\n\n/**\n * The time in seconds from the browser's timeorigin to when the first byte of the request's response was received. See https://web.dev/articles/ttfb#measure-resource-requests `http.request.time_to_first_byte`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_TIME_TO_FIRST_BYTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1.032\n */\nexport const HTTP_REQUEST_TIME_TO_FIRST_BYTE = 'http.request.time_to_first_byte';\n\n/**\n * Type for {@link HTTP_REQUEST_TIME_TO_FIRST_BYTE} http.request.time_to_first_byte\n */\nexport type HTTP_REQUEST_TIME_TO_FIRST_BYTE_TYPE = number;\n\n// Path: model/attributes/http/http__request__worker_start.json\n\n/**\n * The UNIX timestamp representing the timestamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. `http.request.worker_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_WORKER_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829553.68\n */\nexport const HTTP_REQUEST_WORKER_START = 'http.request.worker_start';\n\n/**\n * Type for {@link HTTP_REQUEST_WORKER_START} http.request.worker_start\n */\nexport type HTTP_REQUEST_WORKER_START_TYPE = number;\n\n// Path: model/attributes/http/http__response__body__decoded_size.json\n\n/**\n * The decoded body size of the response (in bytes). `http.response.body.decoded_size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_BODY_DECODED_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH} `http.decoded_response_content_length`, {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED} `http.response_content_length_uncompressed`\n *\n * @example 456\n */\nexport const HTTP_RESPONSE_BODY_DECODED_SIZE = 'http.response.body.decoded_size';\n\n/**\n * Type for {@link HTTP_RESPONSE_BODY_DECODED_SIZE} http.response.body.decoded_size\n */\nexport type HTTP_RESPONSE_BODY_DECODED_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__response__body__size.json\n\n/**\n * The encoded body size of the response (in bytes). `http.response.body.size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_BODY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_CONTENT_LENGTH} `http.response_content_length`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`\n *\n * @example 123\n */\nexport const HTTP_RESPONSE_BODY_SIZE = 'http.response.body.size';\n\n/**\n * Type for {@link HTTP_RESPONSE_BODY_SIZE} http.response.body.size\n */\nexport type HTTP_RESPONSE_BODY_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__response_content_length.json\n\n/**\n * The encoded body size of the response (in bytes). `http.response_content_length`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_BODY_SIZE} `http.response.body.size`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`\n *\n * @deprecated Use {@link HTTP_RESPONSE_BODY_SIZE} (http.response.body.size) instead\n * @example 123\n */\nexport const HTTP_RESPONSE_CONTENT_LENGTH = 'http.response_content_length';\n\n/**\n * Type for {@link HTTP_RESPONSE_CONTENT_LENGTH} http.response_content_length\n */\nexport type HTTP_RESPONSE_CONTENT_LENGTH_TYPE = number;\n\n// Path: model/attributes/http/http__response_content_length_uncompressed.json\n\n/**\n * The decoded body size of the response (in bytes). `http.response_content_length_uncompressed`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_BODY_DECODED_SIZE} `http.response.body.decoded_size`, {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH} `http.decoded_response_content_length`\n *\n * @deprecated Use {@link HTTP_RESPONSE_BODY_DECODED_SIZE} (http.response.body.decoded_size) instead\n * @example 456\n */\nexport const HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = 'http.response_content_length_uncompressed';\n\n/**\n * Type for {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED} http.response_content_length_uncompressed\n */\nexport type HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_TYPE = number;\n\n// Path: model/attributes/http/http__response__header__content-length.json\n\n/**\n * The size of the message body sent to the recipient (in bytes) `http.response.header.content-length`\n *\n * Attribute Value Type: `string` {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_CONTENT_LENGTH} `http.response_content_length`, {@link HTTP_RESPONSE_BODY_SIZE} `http.response.body.size`\n *\n * @example \"http.response.header.custom-header=['foo', 'bar']\"\n */\nexport const HTTP_RESPONSE_HEADER_CONTENT_LENGTH = 'http.response.header.content-length';\n\n/**\n * Type for {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} http.response.header.content-length\n */\nexport type HTTP_RESPONSE_HEADER_CONTENT_LENGTH_TYPE = string;\n\n// Path: model/attributes/http/http__response__header__[key].json\n\n/**\n * HTTP response headers, <key> being the lower-cased, but otherwise unchanged HTTP Header name, the value being the header values. `http.response.header.<key>`\n *\n * Attribute Value Type: `Array<string>` {@link HTTP_RESPONSE_HEADER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"http.response.header.custom-header=['foo', 'bar']\"\n * @example \"http.response.header.content-length=['123']\"\n */\nexport const HTTP_RESPONSE_HEADER_KEY = 'http.response.header.<key>';\n\n/**\n * Base key for {@link HTTP_RESPONSE_HEADER_KEY}. Use with a dynamic suffix, e.g. `${HTTP_RESPONSE_HEADER_KEY_BASE}.${key}`.\n */\nexport const HTTP_RESPONSE_HEADER_KEY_BASE = 'http.response.header';\n\n/**\n * Type for {@link HTTP_RESPONSE_HEADER_KEY} http.response.header.<key>\n */\nexport type HTTP_RESPONSE_HEADER_KEY_TYPE = Array<string>;\n\n// Path: model/attributes/http/http__response__size.json\n\n/**\n * The transfer size of the response (in bytes). `http.response.size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_TRANSFER_SIZE} `http.response_transfer_size`\n *\n * @example 456\n */\nexport const HTTP_RESPONSE_SIZE = 'http.response.size';\n\n/**\n * Type for {@link HTTP_RESPONSE_SIZE} http.response.size\n */\nexport type HTTP_RESPONSE_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__response__status_code.json\n\n/**\n * The status code of the HTTP response. `http.response.status_code`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_STATUS_CODE} `http.status_code`\n *\n * @example 404\n */\nexport const HTTP_RESPONSE_STATUS_CODE = 'http.response.status_code';\n\n/**\n * Type for {@link HTTP_RESPONSE_STATUS_CODE} http.response.status_code\n */\nexport type HTTP_RESPONSE_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/http/http__response__status_text.json\n\n/**\n * The reason phrase of the HTTP response. `http.response.status_text`\n *\n * Attribute Value Type: `string` {@link HTTP_RESPONSE_STATUS_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_STATUS_TEXT} `http.status_text`\n *\n * @example \"NOT FOUND\"\n */\nexport const HTTP_RESPONSE_STATUS_TEXT = 'http.response.status_text';\n\n/**\n * Type for {@link HTTP_RESPONSE_STATUS_TEXT} http.response.status_text\n */\nexport type HTTP_RESPONSE_STATUS_TEXT_TYPE = string;\n\n// Path: model/attributes/http/http__response_transfer_size.json\n\n/**\n * The transfer size of the response (in bytes). `http.response_transfer_size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_TRANSFER_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_SIZE} `http.response.size`\n *\n * @deprecated Use {@link HTTP_RESPONSE_SIZE} (http.response.size) instead\n * @example 456\n */\nexport const HTTP_RESPONSE_TRANSFER_SIZE = 'http.response_transfer_size';\n\n/**\n * Type for {@link HTTP_RESPONSE_TRANSFER_SIZE} http.response_transfer_size\n */\nexport type HTTP_RESPONSE_TRANSFER_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__route.json\n\n/**\n * The matched route, that is, the path template in the format used by the respective server framework. `http.route`\n *\n * Attribute Value Type: `string` {@link HTTP_ROUTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link ROUTE} `route`\n *\n * @example \"/users/:id\"\n * @example \"my-controller/my-action/{id}\"\n * @example \"/posts\"\n */\nexport const HTTP_ROUTE = 'http.route';\n\n/**\n * Type for {@link HTTP_ROUTE} http.route\n */\nexport type HTTP_ROUTE_TYPE = string;\n\n// Path: model/attributes/http/http__scheme.json\n\n/**\n * The URI scheme component identifying the used protocol. `http.scheme`\n *\n * Attribute Value Type: `string` {@link HTTP_SCHEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link URL_SCHEME} `url.scheme`\n *\n * @deprecated Use {@link URL_SCHEME} (url.scheme) instead\n * @example \"https\"\n */\nexport const HTTP_SCHEME = 'http.scheme';\n\n/**\n * Type for {@link HTTP_SCHEME} http.scheme\n */\nexport type HTTP_SCHEME_TYPE = string;\n\n// Path: model/attributes/http/http__server_name.json\n\n/**\n * The server domain name `http.server_name`\n *\n * Attribute Value Type: `string` {@link HTTP_SERVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead\n * @example \"example.com\"\n */\nexport const HTTP_SERVER_NAME = 'http.server_name';\n\n/**\n * Type for {@link HTTP_SERVER_NAME} http.server_name\n */\nexport type HTTP_SERVER_NAME_TYPE = string;\n\n// Path: model/attributes/http/http__server__request__time_in_queue.json\n\n/**\n * The time in milliseconds the request spent in the server queue before processing began. Measured from the X-Request-Start header set by reverse proxies (e.g., Nginx, HAProxy, Heroku) to when the application started handling the request. `http.server.request.time_in_queue`\n *\n * Attribute Value Type: `number` {@link HTTP_SERVER_REQUEST_TIME_IN_QUEUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 50\n */\nexport const HTTP_SERVER_REQUEST_TIME_IN_QUEUE = 'http.server.request.time_in_queue';\n\n/**\n * Type for {@link HTTP_SERVER_REQUEST_TIME_IN_QUEUE} http.server.request.time_in_queue\n */\nexport type HTTP_SERVER_REQUEST_TIME_IN_QUEUE_TYPE = number;\n\n// Path: model/attributes/http/http__status_code.json\n\n/**\n * The status code of the HTTP response. `http.status_code`\n *\n * Attribute Value Type: `number` {@link HTTP_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_STATUS_CODE} `http.response.status_code`\n *\n * @deprecated Use {@link HTTP_RESPONSE_STATUS_CODE} (http.response.status_code) instead\n * @example 404\n */\nexport const HTTP_STATUS_CODE = 'http.status_code';\n\n/**\n * Type for {@link HTTP_STATUS_CODE} http.status_code\n */\nexport type HTTP_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/http/http__status_text.json\n\n/**\n * The reason phrase of the HTTP response `http.status_text`\n *\n * Attribute Value Type: `string` {@link HTTP_STATUS_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_STATUS_TEXT} `http.response.status_text`\n *\n * @deprecated Use {@link HTTP_RESPONSE_STATUS_TEXT} (http.response.status_text) instead\n * @example \"NOT FOUND\"\n */\nexport const HTTP_STATUS_TEXT = 'http.status_text';\n\n/**\n * Type for {@link HTTP_STATUS_TEXT} http.status_text\n */\nexport type HTTP_STATUS_TEXT_TYPE = string;\n\n// Path: model/attributes/http/http__target.json\n\n/**\n * The pathname and query string of the URL. `http.target`\n *\n * Attribute Value Type: `string` {@link HTTP_TARGET_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated  - This attribute is being deprecated in favor of url.path, url.query and url.fragment. The value holds all three parts at once, so it has no single replacement.\n * @example \"/test?foo=bar#buzz\"\n */\nexport const HTTP_TARGET = 'http.target';\n\n/**\n * Type for {@link HTTP_TARGET} http.target\n */\nexport type HTTP_TARGET_TYPE = string;\n\n// Path: model/attributes/http/http__url.json\n\n/**\n * The URL of the resource that was fetched. `http.url`\n *\n * Attribute Value Type: `string` {@link HTTP_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link URL_FULL} `url.full`, {@link URL} `url`, {@link AWS_REQUEST_URL} `aws.request.url`, {@link MESSAGING_URL} `messaging.url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead\n * @example \"https://example.com/test?foo=bar#buzz\"\n */\nexport const HTTP_URL = 'http.url';\n\n/**\n * Type for {@link HTTP_URL} http.url\n */\nexport type HTTP_URL_TYPE = string;\n\n// Path: model/attributes/http/http__user_agent.json\n\n/**\n * Value of the HTTP User-Agent header sent by the client. `http.user_agent`\n *\n * Attribute Value Type: `string` {@link HTTP_USER_AGENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link USER_AGENT_ORIGINAL} `user_agent.original`\n *\n * @deprecated Use {@link USER_AGENT_ORIGINAL} (user_agent.original) instead\n * @example \"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1\"\n */\nexport const HTTP_USER_AGENT = 'http.user_agent';\n\n/**\n * Type for {@link HTTP_USER_AGENT} http.user_agent\n */\nexport type HTTP_USER_AGENT_TYPE = string;\n\n// Path: model/attributes/id.json\n\n/**\n * A unique identifier for the span. `id`\n *\n * Attribute Value Type: `string` {@link ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"f47ac10b58cc4372a5670e02b2c3d479\"\n */\nexport const ID = 'id';\n\n/**\n * Type for {@link ID} id\n */\nexport type ID_TYPE = string;\n\n// Path: model/attributes/inp.json\n\n/**\n * The value of the recorded Interaction to Next Paint (INP) web vital `inp`\n *\n * Attribute Value Type: `number` {@link INP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_INP_VALUE} `browser.web_vital.inp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_INP_VALUE} (browser.web_vital.inp.value) instead - The INP web vital is now recorded as a browser.web_vital.inp.value attribute.\n * @example 200\n */\nexport const INP = 'inp';\n\n/**\n * Type for {@link INP} inp\n */\nexport type INP_TYPE = number;\n\n// Path: model/attributes/integrity/integrity__blocked_url.json\n\n/**\n * The URL of the resource blocked by the integrity policy. `integrity.blocked_url`\n *\n * Attribute Value Type: `string` {@link INTEGRITY_BLOCKED_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://example.com/app.js\"\n */\nexport const INTEGRITY_BLOCKED_URL = 'integrity.blocked_url';\n\n/**\n * Type for {@link INTEGRITY_BLOCKED_URL} integrity.blocked_url\n */\nexport type INTEGRITY_BLOCKED_URL_TYPE = string;\n\n// Path: model/attributes/integrity/integrity__destination.json\n\n/**\n * The destination type of the resource affected by the integrity policy. `integrity.destination`\n *\n * Attribute Value Type: `string` {@link INTEGRITY_DESTINATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"script\"\n */\nexport const INTEGRITY_DESTINATION = 'integrity.destination';\n\n/**\n * Type for {@link INTEGRITY_DESTINATION} integrity.destination\n */\nexport type INTEGRITY_DESTINATION_TYPE = string;\n\n// Path: model/attributes/integrity/integrity__document_url.json\n\n/**\n * The URL of the document where the integrity violation occurred. `integrity.document_url`\n *\n * Attribute Value Type: `string` {@link INTEGRITY_DOCUMENT_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://example.com/index.html\"\n */\nexport const INTEGRITY_DOCUMENT_URL = 'integrity.document_url';\n\n/**\n * Type for {@link INTEGRITY_DOCUMENT_URL} integrity.document_url\n */\nexport type INTEGRITY_DOCUMENT_URL_TYPE = string;\n\n// Path: model/attributes/integrity/integrity__report_only.json\n\n/**\n * Whether the integrity violation was generated by a report-only policy. `integrity.report_only`\n *\n * Attribute Value Type: `boolean` {@link INTEGRITY_REPORT_ONLY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const INTEGRITY_REPORT_ONLY = 'integrity.report_only';\n\n/**\n * Type for {@link INTEGRITY_REPORT_ONLY} integrity.report_only\n */\nexport type INTEGRITY_REPORT_ONLY_TYPE = boolean;\n\n// Path: model/attributes/jsonrpc/jsonrpc__protocol__version.json\n\n/**\n * The version of the JSON-RPC protocol used. `jsonrpc.protocol.version`\n *\n * Attribute Value Type: `string` {@link JSONRPC_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2.0\"\n */\nexport const JSONRPC_PROTOCOL_VERSION = 'jsonrpc.protocol.version';\n\n/**\n * Type for {@link JSONRPC_PROTOCOL_VERSION} jsonrpc.protocol.version\n */\nexport type JSONRPC_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/jsonrpc/jsonrpc__request__id.json\n\n/**\n * The JSON-RPC request identifier, used to correlate a request with its response. `jsonrpc.request.id`\n *\n * Attribute Value Type: `string` {@link JSONRPC_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MCP_REQUEST_ID} `mcp.request.id`\n *\n * @example \"1\"\n */\nexport const JSONRPC_REQUEST_ID = 'jsonrpc.request.id';\n\n/**\n * Type for {@link JSONRPC_REQUEST_ID} jsonrpc.request.id\n */\nexport type JSONRPC_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__gc__action.json\n\n/**\n * Name of the garbage collector action. `jvm.gc.action`\n *\n * Attribute Value Type: `string` {@link JVM_GC_ACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"end of minor GC\"\n */\nexport const JVM_GC_ACTION = 'jvm.gc.action';\n\n/**\n * Type for {@link JVM_GC_ACTION} jvm.gc.action\n */\nexport type JVM_GC_ACTION_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__gc__name.json\n\n/**\n * Name of the garbage collector. `jvm.gc.name`\n *\n * Attribute Value Type: `string` {@link JVM_GC_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"G1 Young Generation\"\n */\nexport const JVM_GC_NAME = 'jvm.gc.name';\n\n/**\n * Type for {@link JVM_GC_NAME} jvm.gc.name\n */\nexport type JVM_GC_NAME_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__memory__pool__name.json\n\n/**\n * Name of the memory pool. `jvm.memory.pool.name`\n *\n * Attribute Value Type: `string` {@link JVM_MEMORY_POOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"G1 Old Gen\"\n */\nexport const JVM_MEMORY_POOL_NAME = 'jvm.memory.pool.name';\n\n/**\n * Type for {@link JVM_MEMORY_POOL_NAME} jvm.memory.pool.name\n */\nexport type JVM_MEMORY_POOL_NAME_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__memory__type.json\n\n/**\n * Name of the memory pool. `jvm.memory.type`\n *\n * Attribute Value Type: `string` {@link JVM_MEMORY_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"G1 Old Gen\"\n */\nexport const JVM_MEMORY_TYPE = 'jvm.memory.type';\n\n/**\n * Type for {@link JVM_MEMORY_TYPE} jvm.memory.type\n */\nexport type JVM_MEMORY_TYPE_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__thread__daemon.json\n\n/**\n * Whether the thread is daemon or not. `jvm.thread.daemon`\n *\n * Attribute Value Type: `boolean` {@link JVM_THREAD_DAEMON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const JVM_THREAD_DAEMON = 'jvm.thread.daemon';\n\n/**\n * Type for {@link JVM_THREAD_DAEMON} jvm.thread.daemon\n */\nexport type JVM_THREAD_DAEMON_TYPE = boolean;\n\n// Path: model/attributes/jvm/jvm__thread__state.json\n\n/**\n * State of the thread. `jvm.thread.state`\n *\n * Attribute Value Type: `string` {@link JVM_THREAD_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"blocked\"\n */\nexport const JVM_THREAD_STATE = 'jvm.thread.state';\n\n/**\n * Type for {@link JVM_THREAD_STATE} jvm.thread.state\n */\nexport type JVM_THREAD_STATE_TYPE = string;\n\n// Path: model/attributes/koa/koa__name.json\n\n/**\n * The name of the Koa middleware or matched route that handled the request. `koa.name`\n *\n * Attribute Value Type: `string` {@link KOA_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.\n * @example \"/users/:id\"\n */\nexport const KOA_NAME = 'koa.name';\n\n/**\n * Type for {@link KOA_NAME} koa.name\n */\nexport type KOA_NAME_TYPE = string;\n\n// Path: model/attributes/koa/koa__type.json\n\n/**\n * The type of the Koa layer that handled the request. `koa.type`\n *\n * Attribute Value Type: `string` {@link KOA_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"router\"\n */\nexport const KOA_TYPE = 'koa.type';\n\n/**\n * Type for {@link KOA_TYPE} koa.type\n */\nexport type KOA_TYPE_TYPE = string;\n\n// Path: model/attributes/langchain/langchain__chain__name.json\n\n/**\n * The name of the LangChain chain being executed. `langchain.chain.name`\n *\n * Attribute Value Type: `string` {@link LANGCHAIN_CHAIN_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_PIPELINE_NAME} `gen_ai.pipeline.name`, {@link AI_PIPELINE_NAME} `ai.pipeline.name`\n *\n * @deprecated Use {@link GEN_AI_PIPELINE_NAME} (gen_ai.pipeline.name) instead - This attribute is being deprecated in favor of gen_ai.pipeline.name, which is the SDK-agnostic replacement for the name of the AI pipeline or chain being executed.\n * @example \"format_prompt\"\n * @example \"RunnableSequence\"\n */\nexport const LANGCHAIN_CHAIN_NAME = 'langchain.chain.name';\n\n/**\n * Type for {@link LANGCHAIN_CHAIN_NAME} langchain.chain.name\n */\nexport type LANGCHAIN_CHAIN_NAME_TYPE = string;\n\n// Path: model/attributes/lcp.json\n\n/**\n * The value of the recorded Largest Contentful Paint (LCP) web vital `lcp`\n *\n * Attribute Value Type: `number` {@link LCP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_VALUE} `browser.web_vital.lcp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_VALUE} (browser.web_vital.lcp.value) instead - The LCP web vital is now recorded as a browser.web_vital.lcp.value attribute.\n * @example 2500\n */\nexport const LCP = 'lcp';\n\n/**\n * Type for {@link LCP} lcp\n */\nexport type LCP_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__element.json\n\n/**\n * The dom element responsible for the largest contentful paint. `lcp.element`\n *\n * Attribute Value Type: `string` {@link LCP_ELEMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_ELEMENT} `browser.web_vital.lcp.element`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_ELEMENT} (browser.web_vital.lcp.element) instead - The LCP element is now recorded as a browser.web_vital.lcp.element attribute.\n * @example \"img\"\n */\nexport const LCP_ELEMENT = 'lcp.element';\n\n/**\n * Type for {@link LCP_ELEMENT} lcp.element\n */\nexport type LCP_ELEMENT_TYPE = string;\n\n// Path: model/attributes/lcp/lcp__id.json\n\n/**\n * The id of the dom element responsible for the largest contentful paint. `lcp.id`\n *\n * Attribute Value Type: `string` {@link LCP_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_ID} `browser.web_vital.lcp.id`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_ID} (browser.web_vital.lcp.id) instead - The LCP id is now recorded as a browser.web_vital.lcp.id attribute.\n * @example \"#hero\"\n */\nexport const LCP_ID = 'lcp.id';\n\n/**\n * Type for {@link LCP_ID} lcp.id\n */\nexport type LCP_ID_TYPE = string;\n\n// Path: model/attributes/lcp/lcp__loadTime.json\n\n/**\n * The time it took for the LCP element to be loaded `lcp.loadTime`\n *\n * Attribute Value Type: `number` {@link LCP_LOADTIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME} `browser.web_vital.lcp.load_time`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME} (browser.web_vital.lcp.load_time) instead - The LCP load time is now recorded as a browser.web_vital.lcp.load_time attribute.\n * @example 1402\n */\nexport const LCP_LOADTIME = 'lcp.loadTime';\n\n/**\n * Type for {@link LCP_LOADTIME} lcp.loadTime\n */\nexport type LCP_LOADTIME_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__renderTime.json\n\n/**\n * The time it took for the LCP element to be rendered `lcp.renderTime`\n *\n * Attribute Value Type: `number` {@link LCP_RENDERTIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME} `browser.web_vital.lcp.render_time`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME} (browser.web_vital.lcp.render_time) instead - The LCP render time is now recorded as a browser.web_vital.lcp.render_time attribute.\n * @example 1685\n */\nexport const LCP_RENDERTIME = 'lcp.renderTime';\n\n/**\n * Type for {@link LCP_RENDERTIME} lcp.renderTime\n */\nexport type LCP_RENDERTIME_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__size.json\n\n/**\n * The size of the largest contentful paint element. `lcp.size`\n *\n * Attribute Value Type: `number` {@link LCP_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_SIZE} `browser.web_vital.lcp.size`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_SIZE} (browser.web_vital.lcp.size) instead - The LCP size is now recorded as a browser.web_vital.lcp.size attribute.\n * @example 1234\n */\nexport const LCP_SIZE = 'lcp.size';\n\n/**\n * Type for {@link LCP_SIZE} lcp.size\n */\nexport type LCP_SIZE_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__url.json\n\n/**\n * The url of the dom element responsible for the largest contentful paint. `lcp.url`\n *\n * Attribute Value Type: `string` {@link LCP_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_URL} `browser.web_vital.lcp.url`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_URL} (browser.web_vital.lcp.url) instead - The LCP url is now recorded as a browser.web_vital.lcp.url attribute.\n * @example \"https://example.com\"\n */\nexport const LCP_URL = 'lcp.url';\n\n/**\n * Type for {@link LCP_URL} lcp.url\n */\nexport type LCP_URL_TYPE = string;\n\n// Path: model/attributes/litestar/litestar__middleware_name.json\n\n/**\n * The name of the Litestar middleware. `litestar.middleware_name`\n *\n * Attribute Value Type: `string` {@link LITESTAR_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const LITESTAR_MIDDLEWARE_NAME = 'litestar.middleware_name';\n\n/**\n * Type for {@link LITESTAR_MIDDLEWARE_NAME} litestar.middleware_name\n */\nexport type LITESTAR_MIDDLEWARE_NAME_TYPE = string;\n\n// Path: model/attributes/logger/logger__name.json\n\n/**\n * The name of the logger that generated this event. `logger.name`\n *\n * Attribute Value Type: `string` {@link LOGGER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"myLogger\"\n */\nexport const LOGGER_NAME = 'logger.name';\n\n/**\n * Type for {@link LOGGER_NAME} logger.name\n */\nexport type LOGGER_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__auth__client__name.json\n\n/**\n * Registered OAuth client application name associated with the authenticated MCP request. Taken from OAuth client registration metadata (client_name) made available by the authentication layer. This is distinct from the MCP implementation name in mcp.client.name; omit it when the OAuth client name is unavailable. `mcp.auth.client.name`\n *\n * Attribute Value Type: `string` {@link MCP_AUTH_CLIENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Example Desktop\"\n * @example \"Example CLI\"\n */\nexport const MCP_AUTH_CLIENT_NAME = 'mcp.auth.client.name';\n\n/**\n * Type for {@link MCP_AUTH_CLIENT_NAME} mcp.auth.client.name\n */\nexport type MCP_AUTH_CLIENT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__cancelled__reason.json\n\n/**\n * Reason for the cancellation of an MCP operation. `mcp.cancelled.reason`\n *\n * Attribute Value Type: `string` {@link MCP_CANCELLED_REASON_TYPE}\n *\n * Apply Scrubbing: manual - Cancellation reasons may contain user-specific or sensitive information\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"User cancelled the request\"\n */\nexport const MCP_CANCELLED_REASON = 'mcp.cancelled.reason';\n\n/**\n * Type for {@link MCP_CANCELLED_REASON} mcp.cancelled.reason\n */\nexport type MCP_CANCELLED_REASON_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__cancelled__request_id.json\n\n/**\n * Request ID of the cancelled MCP operation. `mcp.cancelled.request_id`\n *\n * Attribute Value Type: `string` {@link MCP_CANCELLED_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"123\"\n */\nexport const MCP_CANCELLED_REQUEST_ID = 'mcp.cancelled.request_id';\n\n/**\n * Type for {@link MCP_CANCELLED_REQUEST_ID} mcp.cancelled.request_id\n */\nexport type MCP_CANCELLED_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__client__name.json\n\n/**\n * Name of the MCP client implementation, as declared in clientInfo. This is distinct from the registered OAuth application name in mcp.auth.client.name. `mcp.client.name`\n *\n * Attribute Value Type: `string` {@link MCP_CLIENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"example-mcp-client\"\n */\nexport const MCP_CLIENT_NAME = 'mcp.client.name';\n\n/**\n * Type for {@link MCP_CLIENT_NAME} mcp.client.name\n */\nexport type MCP_CLIENT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__client__title.json\n\n/**\n * Display title of the MCP client implementation, as declared in clientInfo. `mcp.client.title`\n *\n * Attribute Value Type: `string` {@link MCP_CLIENT_TITLE_TYPE}\n *\n * Apply Scrubbing: manual - Client titles may reveal user-specific application configurations or custom setups\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Example MCP Client\"\n */\nexport const MCP_CLIENT_TITLE = 'mcp.client.title';\n\n/**\n * Type for {@link MCP_CLIENT_TITLE} mcp.client.title\n */\nexport type MCP_CLIENT_TITLE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__client__version.json\n\n/**\n * Version of the MCP client implementation, as declared in clientInfo. `mcp.client.version`\n *\n * Attribute Value Type: `string` {@link MCP_CLIENT_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1.0.0\"\n */\nexport const MCP_CLIENT_VERSION = 'mcp.client.version';\n\n/**\n * Type for {@link MCP_CLIENT_VERSION} mcp.client.version\n */\nexport type MCP_CLIENT_VERSION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__lifecycle__phase.json\n\n/**\n * Lifecycle phase indicator for MCP operations. `mcp.lifecycle.phase`\n *\n * Attribute Value Type: `string` {@link MCP_LIFECYCLE_PHASE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"initialization_complete\"\n */\nexport const MCP_LIFECYCLE_PHASE = 'mcp.lifecycle.phase';\n\n/**\n * Type for {@link MCP_LIFECYCLE_PHASE} mcp.lifecycle.phase\n */\nexport type MCP_LIFECYCLE_PHASE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__data_type.json\n\n/**\n * Data type of the logged message content. `mcp.logging.data_type`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_DATA_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"string\"\n */\nexport const MCP_LOGGING_DATA_TYPE = 'mcp.logging.data_type';\n\n/**\n * Type for {@link MCP_LOGGING_DATA_TYPE} mcp.logging.data_type\n */\nexport type MCP_LOGGING_DATA_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__level.json\n\n/**\n * Log level for MCP logging operations. `mcp.logging.level`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_LEVEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"info\"\n */\nexport const MCP_LOGGING_LEVEL = 'mcp.logging.level';\n\n/**\n * Type for {@link MCP_LOGGING_LEVEL} mcp.logging.level\n */\nexport type MCP_LOGGING_LEVEL_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__logger.json\n\n/**\n * Logger name for MCP logging operations. `mcp.logging.logger`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_LOGGER_TYPE}\n *\n * Apply Scrubbing: manual - Logger names may be user-defined and could contain sensitive information\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"mcp_server\"\n */\nexport const MCP_LOGGING_LOGGER = 'mcp.logging.logger';\n\n/**\n * Type for {@link MCP_LOGGING_LOGGER} mcp.logging.logger\n */\nexport type MCP_LOGGING_LOGGER_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__message.json\n\n/**\n * Log message content from MCP logging operations. `mcp.logging.message`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_MESSAGE_TYPE}\n *\n * Apply Scrubbing: auto - Log messages can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Tool execution completed successfully\"\n */\nexport const MCP_LOGGING_MESSAGE = 'mcp.logging.message';\n\n/**\n * Type for {@link MCP_LOGGING_MESSAGE} mcp.logging.message\n */\nexport type MCP_LOGGING_MESSAGE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__method__name.json\n\n/**\n * The name of the MCP request or notification method being called. `mcp.method.name`\n *\n * Attribute Value Type: `string` {@link MCP_METHOD_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"tools/call\"\n */\nexport const MCP_METHOD_NAME = 'mcp.method.name';\n\n/**\n * Type for {@link MCP_METHOD_NAME} mcp.method.name\n */\nexport type MCP_METHOD_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__progress__current.json\n\n/**\n * Current progress value of an MCP operation. `mcp.progress.current`\n *\n * Attribute Value Type: `number` {@link MCP_PROGRESS_CURRENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.2\n * @example 50\n */\nexport const MCP_PROGRESS_CURRENT = 'mcp.progress.current';\n\n/**\n * Type for {@link MCP_PROGRESS_CURRENT} mcp.progress.current\n */\nexport type MCP_PROGRESS_CURRENT_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__progress__message.json\n\n/**\n * Progress message describing the current state of an MCP operation. `mcp.progress.message`\n *\n * Attribute Value Type: `string` {@link MCP_PROGRESS_MESSAGE_TYPE}\n *\n * Apply Scrubbing: manual - Progress messages may contain user-specific or sensitive information\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Processing 50 of 100 items\"\n */\nexport const MCP_PROGRESS_MESSAGE = 'mcp.progress.message';\n\n/**\n * Type for {@link MCP_PROGRESS_MESSAGE} mcp.progress.message\n */\nexport type MCP_PROGRESS_MESSAGE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__progress__percentage.json\n\n/**\n * Calculated progress percentage of an MCP operation. Computed from current/total * 100. `mcp.progress.percentage`\n *\n * Attribute Value Type: `number` {@link MCP_PROGRESS_PERCENTAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 50\n */\nexport const MCP_PROGRESS_PERCENTAGE = 'mcp.progress.percentage';\n\n/**\n * Type for {@link MCP_PROGRESS_PERCENTAGE} mcp.progress.percentage\n */\nexport type MCP_PROGRESS_PERCENTAGE_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__progress__token.json\n\n/**\n * Token for tracking progress of an MCP operation. `mcp.progress.token`\n *\n * Attribute Value Type: `string` {@link MCP_PROGRESS_TOKEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"progress-token-123\"\n */\nexport const MCP_PROGRESS_TOKEN = 'mcp.progress.token';\n\n/**\n * Type for {@link MCP_PROGRESS_TOKEN} mcp.progress.token\n */\nexport type MCP_PROGRESS_TOKEN_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__progress__total.json\n\n/**\n * Total progress target value of an MCP operation. `mcp.progress.total`\n *\n * Attribute Value Type: `number` {@link MCP_PROGRESS_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n * @example 100\n */\nexport const MCP_PROGRESS_TOTAL = 'mcp.progress.total';\n\n/**\n * Type for {@link MCP_PROGRESS_TOTAL} mcp.progress.total\n */\nexport type MCP_PROGRESS_TOTAL_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__prompt__name.json\n\n/**\n * Name of the MCP prompt template being used. `mcp.prompt.name`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Prompt names may reveal user behavior patterns or sensitive operations\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_PROMPT_NAME} `gen_ai.prompt.name`\n *\n * @deprecated Use {@link GEN_AI_PROMPT_NAME} (gen_ai.prompt.name) instead - OTel uses gen_ai.prompt.name for MCP prompt names\n * @example \"summarize\"\n */\nexport const MCP_PROMPT_NAME = 'mcp.prompt.name';\n\n/**\n * Type for {@link MCP_PROMPT_NAME} mcp.prompt.name\n */\nexport type MCP_PROMPT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__description.json\n\n/**\n * Description of the prompt result. `mcp.prompt.result.description`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"A summary of the requested information\"\n */\nexport const MCP_PROMPT_RESULT_DESCRIPTION = 'mcp.prompt.result.description';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_DESCRIPTION} mcp.prompt.result.description\n */\nexport type MCP_PROMPT_RESULT_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__[key]__content.json\n\n/**\n * Legacy text content of an indexed message in a multi-message MCP prompt result. `mcp.prompt.result.<key>.content`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_KEY_CONTENT_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Summarize the document.\"\n */\nexport const MCP_PROMPT_RESULT_KEY_CONTENT = 'mcp.prompt.result.<key>.content';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_KEY_CONTENT} mcp.prompt.result.<key>.content\n */\nexport type MCP_PROMPT_RESULT_KEY_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__[key]__role.json\n\n/**\n * Legacy role of an indexed message in a multi-message MCP prompt result. `mcp.prompt.result.<key>.role`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_KEY_ROLE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user\"\n * @example \"assistant\"\n */\nexport const MCP_PROMPT_RESULT_KEY_ROLE = 'mcp.prompt.result.<key>.role';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_KEY_ROLE} mcp.prompt.result.<key>.role\n */\nexport type MCP_PROMPT_RESULT_KEY_ROLE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__message_content.json\n\n/**\n * Content of the message in the prompt result. Used for single message results only. `mcp.prompt.result.message_content`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_MESSAGE_CONTENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Please provide a summary of the document\"\n */\nexport const MCP_PROMPT_RESULT_MESSAGE_CONTENT = 'mcp.prompt.result.message_content';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_MESSAGE_CONTENT} mcp.prompt.result.message_content\n */\nexport type MCP_PROMPT_RESULT_MESSAGE_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__message_count.json\n\n/**\n * Number of messages in the prompt result. `mcp.prompt.result.message_count`\n *\n * Attribute Value Type: `number` {@link MCP_PROMPT_RESULT_MESSAGE_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3\n */\nexport const MCP_PROMPT_RESULT_MESSAGE_COUNT = 'mcp.prompt.result.message_count';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_MESSAGE_COUNT} mcp.prompt.result.message_count\n */\nexport type MCP_PROMPT_RESULT_MESSAGE_COUNT_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__prompt__result__message_role.json\n\n/**\n * Role of the message in the prompt result. Used for single message results only. `mcp.prompt.result.message_role`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_MESSAGE_ROLE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user\"\n */\nexport const MCP_PROMPT_RESULT_MESSAGE_ROLE = 'mcp.prompt.result.message_role';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_MESSAGE_ROLE} mcp.prompt.result.message_role\n */\nexport type MCP_PROMPT_RESULT_MESSAGE_ROLE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__protocol__ready.json\n\n/**\n * Readiness indicator for the legacy MCP initialization handshake. A non-zero value indicates that notifications/initialized has completed initialization. Omit for protocol versions without this handshake. `mcp.protocol.ready`\n *\n * Attribute Value Type: `number` {@link MCP_PROTOCOL_READY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const MCP_PROTOCOL_READY = 'mcp.protocol.ready';\n\n/**\n * Type for {@link MCP_PROTOCOL_READY} mcp.protocol.ready\n */\nexport type MCP_PROTOCOL_READY_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__protocol__version.json\n\n/**\n * Version of the Model Context Protocol used for the operation. `mcp.protocol.version`\n *\n * Attribute Value Type: `string` {@link MCP_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2024-11-05\"\n */\nexport const MCP_PROTOCOL_VERSION = 'mcp.protocol.version';\n\n/**\n * Type for {@link MCP_PROTOCOL_VERSION} mcp.protocol.version\n */\nexport type MCP_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__argument__[key].json\n\n/**\n * MCP request argument with dynamic key suffix. The <key> is replaced with the actual argument name. The value is a JSON-stringified representation of the argument value. `mcp.request.argument.<key>`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ARGUMENT_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Arguments contain user input\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"mcp.request.argument.query='weather in Paris'\"\n */\nexport const MCP_REQUEST_ARGUMENT_KEY = 'mcp.request.argument.<key>';\n\n/**\n * Base key for {@link MCP_REQUEST_ARGUMENT_KEY}. Use with a dynamic suffix, e.g. `${MCP_REQUEST_ARGUMENT_KEY_BASE}.${key}`.\n */\nexport const MCP_REQUEST_ARGUMENT_KEY_BASE = 'mcp.request.argument';\n\n/**\n * Type for {@link MCP_REQUEST_ARGUMENT_KEY} mcp.request.argument.<key>\n */\nexport type MCP_REQUEST_ARGUMENT_KEY_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__argument__name.json\n\n/**\n * Name argument from prompts/get MCP request. `mcp.request.argument.name`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ARGUMENT_NAME_TYPE}\n *\n * Apply Scrubbing: auto - Prompt names can contain user input\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"summarize\"\n */\nexport const MCP_REQUEST_ARGUMENT_NAME = 'mcp.request.argument.name';\n\n/**\n * Type for {@link MCP_REQUEST_ARGUMENT_NAME} mcp.request.argument.name\n */\nexport type MCP_REQUEST_ARGUMENT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__argument__uri.json\n\n/**\n * URI argument from resources/read MCP request. `mcp.request.argument.uri`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ARGUMENT_URI_TYPE}\n *\n * Apply Scrubbing: auto - URIs can contain user file paths\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"file:///path/to/resource\"\n */\nexport const MCP_REQUEST_ARGUMENT_URI = 'mcp.request.argument.uri';\n\n/**\n * Type for {@link MCP_REQUEST_ARGUMENT_URI} mcp.request.argument.uri\n */\nexport type MCP_REQUEST_ARGUMENT_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__id.json\n\n/**\n * JSON-RPC request identifier for the MCP request, used to correlate the request with its response. `mcp.request.id`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link JSONRPC_REQUEST_ID} `jsonrpc.request.id`\n *\n * @deprecated Use {@link JSONRPC_REQUEST_ID} (jsonrpc.request.id) instead - OTel models MCP as JSON-RPC, uses jsonrpc.request.id\n * @example \"1\"\n */\nexport const MCP_REQUEST_ID = 'mcp.request.id';\n\n/**\n * Type for {@link MCP_REQUEST_ID} mcp.request.id\n */\nexport type MCP_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__resource__protocol.json\n\n/**\n * URI scheme of the MCP resource being accessed, extracted from its URI. This is distinct from the network protocol used to communicate with the MCP server. `mcp.resource.protocol`\n *\n * Attribute Value Type: `string` {@link MCP_RESOURCE_PROTOCOL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"file\"\n * @example \"postgres\"\n */\nexport const MCP_RESOURCE_PROTOCOL = 'mcp.resource.protocol';\n\n/**\n * Type for {@link MCP_RESOURCE_PROTOCOL} mcp.resource.protocol\n */\nexport type MCP_RESOURCE_PROTOCOL_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__resource__uri.json\n\n/**\n * The resource URI being accessed in an MCP operation. `mcp.resource.uri`\n *\n * Attribute Value Type: `string` {@link MCP_RESOURCE_URI_TYPE}\n *\n * Apply Scrubbing: auto - URIs can contain sensitive file paths\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"file:///path/to/file.txt\"\n */\nexport const MCP_RESOURCE_URI = 'mcp.resource.uri';\n\n/**\n * Type for {@link MCP_RESOURCE_URI} mcp.resource.uri\n */\nexport type MCP_RESOURCE_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__server__name.json\n\n/**\n * Name of the MCP server implementation, as declared in serverInfo. `mcp.server.name`\n *\n * Attribute Value Type: `string` {@link MCP_SERVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"example-mcp-server\"\n */\nexport const MCP_SERVER_NAME = 'mcp.server.name';\n\n/**\n * Type for {@link MCP_SERVER_NAME} mcp.server.name\n */\nexport type MCP_SERVER_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__server__title.json\n\n/**\n * Display title of the MCP server implementation, as declared in serverInfo. `mcp.server.title`\n *\n * Attribute Value Type: `string` {@link MCP_SERVER_TITLE_TYPE}\n *\n * Apply Scrubbing: manual - Server titles may reveal user-specific application configurations or custom setups\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Example MCP Server\"\n */\nexport const MCP_SERVER_TITLE = 'mcp.server.title';\n\n/**\n * Type for {@link MCP_SERVER_TITLE} mcp.server.title\n */\nexport type MCP_SERVER_TITLE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__server__version.json\n\n/**\n * Version of the MCP server implementation, as declared in serverInfo. `mcp.server.version`\n *\n * Attribute Value Type: `string` {@link MCP_SERVER_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"0.1.0\"\n */\nexport const MCP_SERVER_VERSION = 'mcp.server.version';\n\n/**\n * Type for {@link MCP_SERVER_VERSION} mcp.server.version\n */\nexport type MCP_SERVER_VERSION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__session__id.json\n\n/**\n * Identifier for an MCP protocol session, when the operation belongs to a session. `mcp.session.id`\n *\n * Attribute Value Type: `string` {@link MCP_SESSION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"550e8400-e29b-41d4-a716-446655440000\"\n */\nexport const MCP_SESSION_ID = 'mcp.session.id';\n\n/**\n * Type for {@link MCP_SESSION_ID} mcp.session.id\n */\nexport type MCP_SESSION_ID_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__name.json\n\n/**\n * Name of the MCP tool being called. `mcp.tool.name`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_NAME} `gen_ai.tool.name`, {@link AI_FUNCTION_CALL} `ai.function_call`\n *\n * @deprecated Use {@link GEN_AI_TOOL_NAME} (gen_ai.tool.name) instead - OTel uses gen_ai.tool.name for MCP tool names\n * @example \"calculator\"\n */\nexport const MCP_TOOL_NAME = 'mcp.tool.name';\n\n/**\n * Type for {@link MCP_TOOL_NAME} mcp.tool.name\n */\nexport type MCP_TOOL_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__content.json\n\n/**\n * The content of the tool result. `mcp.tool.result.content`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_CONTENT_TYPE}\n *\n * Apply Scrubbing: manual - Tool results can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead - OTel uses gen_ai.tool.call.result for MCP tool results\n * @example \"{\\\"output\\\": \\\"rainy\\\", \\\"toolCallId\\\": \\\"1\\\"}\"\n */\nexport const MCP_TOOL_RESULT_CONTENT = 'mcp.tool.result.content';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_CONTENT} mcp.tool.result.content\n */\nexport type MCP_TOOL_RESULT_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__content_count.json\n\n/**\n * Number of content items in the tool result. `mcp.tool.result.content_count`\n *\n * Attribute Value Type: `number` {@link MCP_TOOL_RESULT_CONTENT_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - A count can be calculated from the value of the gen_ai.tool.call.result attribute.\n * @example 1\n */\nexport const MCP_TOOL_RESULT_CONTENT_COUNT = 'mcp.tool.result.content_count';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_CONTENT_COUNT} mcp.tool.result.content_count\n */\nexport type MCP_TOOL_RESULT_CONTENT_COUNT_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__tool__result__content_type.json\n\n/**\n * Legacy content type of the content item in a single-item MCP tool result. `mcp.tool.result.content_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_CONTENT_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text\"\n * @example \"image\"\n */\nexport const MCP_TOOL_RESULT_CONTENT_TYPE = 'mcp.tool.result.content_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_CONTENT_TYPE} mcp.tool.result.content_type\n */\nexport type MCP_TOOL_RESULT_CONTENT_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__data_size.json\n\n/**\n * Legacy length of the data string in UTF-16 code units of the content item in a single-item MCP tool result. `mcp.tool.result.data_size`\n *\n * Attribute Value Type: `number` {@link MCP_TOOL_RESULT_DATA_SIZE_TYPE}\n *\n * Apply Scrubbing: manual - The length contains no result content.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example 4\n * @example 1024\n */\nexport const MCP_TOOL_RESULT_DATA_SIZE = 'mcp.tool.result.data_size';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_DATA_SIZE} mcp.tool.result.data_size\n */\nexport type MCP_TOOL_RESULT_DATA_SIZE_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__tool__result__is_error.json\n\n/**\n * Whether a tool execution resulted in an error. `mcp.tool.result.is_error`\n *\n * Attribute Value Type: `boolean` {@link MCP_TOOL_RESULT_IS_ERROR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link ERROR_TYPE} (error.type) instead - OTel uses error.type set to 'tool_error' when isError is true. Cannot be automatically backfilled due to type mismatch (boolean vs string).\n * @example false\n */\nexport const MCP_TOOL_RESULT_IS_ERROR = 'mcp.tool.result.is_error';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_IS_ERROR} mcp.tool.result.is_error\n */\nexport type MCP_TOOL_RESULT_IS_ERROR_TYPE = boolean;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__content.json\n\n/**\n * Legacy text content of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.content`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_CONTENT_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"The operation completed.\"\n */\nexport const MCP_TOOL_RESULT_KEY_CONTENT = 'mcp.tool.result.<key>.content';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_CONTENT} mcp.tool.result.<key>.content\n */\nexport type MCP_TOOL_RESULT_KEY_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__content_type.json\n\n/**\n * Legacy content type of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.content_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_CONTENT_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text\"\n * @example \"image\"\n */\nexport const MCP_TOOL_RESULT_KEY_CONTENT_TYPE = 'mcp.tool.result.<key>.content_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_CONTENT_TYPE} mcp.tool.result.<key>.content_type\n */\nexport type MCP_TOOL_RESULT_KEY_CONTENT_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__data_size.json\n\n/**\n * Legacy length of the data string in UTF-16 code units of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.data_size`\n *\n * Attribute Value Type: `number` {@link MCP_TOOL_RESULT_KEY_DATA_SIZE_TYPE}\n *\n * Apply Scrubbing: manual - The length contains no result content.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example 4\n * @example 1024\n */\nexport const MCP_TOOL_RESULT_KEY_DATA_SIZE = 'mcp.tool.result.<key>.data_size';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_DATA_SIZE} mcp.tool.result.<key>.data_size\n */\nexport type MCP_TOOL_RESULT_KEY_DATA_SIZE_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__mime_type.json\n\n/**\n * Legacy MIME type of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"image/png\"\n * @example \"audio/wav\"\n */\nexport const MCP_TOOL_RESULT_KEY_MIME_TYPE = 'mcp.tool.result.<key>.mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_MIME_TYPE} mcp.tool.result.<key>.mime_type\n */\nexport type MCP_TOOL_RESULT_KEY_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__name.json\n\n/**\n * Legacy resource link name of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.name`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_NAME_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"report.txt\"\n */\nexport const MCP_TOOL_RESULT_KEY_NAME = 'mcp.tool.result.<key>.name';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_NAME} mcp.tool.result.<key>.name\n */\nexport type MCP_TOOL_RESULT_KEY_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__resource_mime_type.json\n\n/**\n * Legacy embedded resource MIME type of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.resource_mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text/plain\"\n */\nexport const MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE = 'mcp.tool.result.<key>.resource_mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE} mcp.tool.result.<key>.resource_mime_type\n */\nexport type MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__resource_uri.json\n\n/**\n * Legacy embedded resource URI of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.resource_uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_RESOURCE_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_KEY_RESOURCE_URI = 'mcp.tool.result.<key>.resource_uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_RESOURCE_URI} mcp.tool.result.<key>.resource_uri\n */\nexport type MCP_TOOL_RESULT_KEY_RESOURCE_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__uri.json\n\n/**\n * Legacy resource link URI of an indexed content item in a multi-item MCP tool result. `mcp.tool.result.<key>.uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_KEY_URI = 'mcp.tool.result.<key>.uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_URI} mcp.tool.result.<key>.uri\n */\nexport type MCP_TOOL_RESULT_KEY_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__mime_type.json\n\n/**\n * Legacy MIME type of the content item in a single-item MCP tool result. `mcp.tool.result.mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"image/png\"\n * @example \"audio/wav\"\n */\nexport const MCP_TOOL_RESULT_MIME_TYPE = 'mcp.tool.result.mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_MIME_TYPE} mcp.tool.result.mime_type\n */\nexport type MCP_TOOL_RESULT_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__name.json\n\n/**\n * Legacy resource link name of the content item in a single-item MCP tool result. `mcp.tool.result.name`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_NAME_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"report.txt\"\n */\nexport const MCP_TOOL_RESULT_NAME = 'mcp.tool.result.name';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_NAME} mcp.tool.result.name\n */\nexport type MCP_TOOL_RESULT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__resource_mime_type.json\n\n/**\n * Legacy embedded resource MIME type of the content item in a single-item MCP tool result. `mcp.tool.result.resource_mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_RESOURCE_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text/plain\"\n */\nexport const MCP_TOOL_RESULT_RESOURCE_MIME_TYPE = 'mcp.tool.result.resource_mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_RESOURCE_MIME_TYPE} mcp.tool.result.resource_mime_type\n */\nexport type MCP_TOOL_RESULT_RESOURCE_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__resource_uri.json\n\n/**\n * Legacy embedded resource URI of the content item in a single-item MCP tool result. `mcp.tool.result.resource_uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_RESOURCE_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_RESOURCE_URI = 'mcp.tool.result.resource_uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_RESOURCE_URI} mcp.tool.result.resource_uri\n */\nexport type MCP_TOOL_RESULT_RESOURCE_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__uri.json\n\n/**\n * Legacy resource link URI of the content item in a single-item MCP tool result. `mcp.tool.result.uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_URI = 'mcp.tool.result.uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_URI} mcp.tool.result.uri\n */\nexport type MCP_TOOL_RESULT_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__transport.json\n\n/**\n * MCP transport implementation name, such as the transport class name. This identifies the implementation, not the network transport or application protocol. `mcp.transport`\n *\n * Attribute Value Type: `string` {@link MCP_TRANSPORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"StdioServerTransport\"\n * @example \"CustomHTTPTransport\"\n */\nexport const MCP_TRANSPORT = 'mcp.transport';\n\n/**\n * Type for {@link MCP_TRANSPORT} mcp.transport\n */\nexport type MCP_TRANSPORT_TYPE = string;\n\n// Path: model/attributes/mdc/mdc__[key].json\n\n/**\n * Attributes from the Mapped Diagnostic Context (MDC) present at the moment the log record was created. The MDC is supported by all the most popular logging solutions in the Java ecosystem, and it's usually implemented as a thread-local map that stores context for e.g. a specific request. `mdc.<key>`\n *\n * Attribute Value Type: `string` {@link MDC_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"mdc.some_key='some_value'\"\n */\nexport const MDC_KEY = 'mdc.<key>';\n\n/**\n * Base key for {@link MDC_KEY}. Use with a dynamic suffix, e.g. `${MDC_KEY_BASE}.${key}`.\n */\nexport const MDC_KEY_BASE = 'mdc';\n\n/**\n * Type for {@link MDC_KEY} mdc.<key>\n */\nexport type MDC_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__batch__message_count.json\n\n/**\n * The number of messages sent, received, or processed in the scope of the batching operation. `messaging.batch.message_count`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BATCH_MESSAGE_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const MESSAGING_BATCH_MESSAGE_COUNT = 'messaging.batch.message_count';\n\n/**\n * Type for {@link MESSAGING_BATCH_MESSAGE_COUNT} messaging.batch.message_count\n */\nexport type MESSAGING_BATCH_MESSAGE_COUNT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__flow__name.json\n\n/**\n * The name of the root job of the BullMQ flow that FlowProducer.add() adds. `messaging.bullmq.flow.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_FLOW_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"build-report\"\n */\nexport const MESSAGING_BULLMQ_FLOW_NAME = 'messaging.bullmq.flow.name';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_FLOW_NAME} messaging.bullmq.flow.name\n */\nexport type MESSAGING_BULLMQ_FLOW_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__attempt_finished_timestamp.json\n\n/**\n * The time in milliseconds since the Unix epoch when the current attempt of the BullMQ job finished. `messaging.bullmq.job.attempt_finished_timestamp`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1791184722406\n */\nexport const MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP = 'messaging.bullmq.job.attempt_finished_timestamp';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP} messaging.bullmq.job.attempt_finished_timestamp\n */\nexport type MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__bulk__names.json\n\n/**\n * The names of the BullMQ jobs or flows that one bulk operation adds, for example Queue.addBulk(). `messaging.bullmq.job.bulk.names`\n *\n * Attribute Value Type: `Array<string>` {@link MESSAGING_BULLMQ_JOB_BULK_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"send-welcome-email\",\"generate-report\"]\n */\nexport const MESSAGING_BULLMQ_JOB_BULK_NAMES = 'messaging.bullmq.job.bulk.names';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_BULK_NAMES} messaging.bullmq.job.bulk.names\n */\nexport type MESSAGING_BULLMQ_JOB_BULK_NAMES_TYPE = Array<string>;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__deduplication__key.json\n\n/**\n * The deduplication ID that Queue.removeDeduplicationKey() removes. `messaging.bullmq.job.deduplication.key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user-42-sync\"\n */\nexport const MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY = 'messaging.bullmq.job.deduplication.key';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY} messaging.bullmq.job.deduplication.key\n */\nexport type MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__ids.json\n\n/**\n * The IDs of the BullMQ jobs that Queue.clean() removed. `messaging.bullmq.job.ids`\n *\n * Attribute Value Type: `Array<string>` {@link MESSAGING_BULLMQ_JOB_IDS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"1\",\"2\",\"3\"]\n */\nexport const MESSAGING_BULLMQ_JOB_IDS = 'messaging.bullmq.job.ids';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_IDS} messaging.bullmq.job.ids\n */\nexport type MESSAGING_BULLMQ_JOB_IDS_TYPE = Array<string>;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__key.json\n\n/**\n * The key that a BullMQ remove operation for a debounce or repeatable key gets, for example Queue.removeDebounceKey(). `messaging.bullmq.job.key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user-42-sync\"\n */\nexport const MESSAGING_BULLMQ_JOB_KEY = 'messaging.bullmq.job.key';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_KEY} messaging.bullmq.job.key\n */\nexport type MESSAGING_BULLMQ_JOB_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__name.json\n\n/**\n * The name of the BullMQ job, which the user passes to Queue.add() to identify the kind of work. `messaging.bullmq.job.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"send-welcome-email\"\n * @example \"generate-report\"\n */\nexport const MESSAGING_BULLMQ_JOB_NAME = 'messaging.bullmq.job.name';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_NAME} messaging.bullmq.job.name\n */\nexport type MESSAGING_BULLMQ_JOB_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__processed_timestamp.json\n\n/**\n * The time in milliseconds since the Unix epoch when the Worker started to process the BullMQ job. `messaging.bullmq.job.processed_timestamp`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1791184722281\n */\nexport const MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP = 'messaging.bullmq.job.processed_timestamp';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP} messaging.bullmq.job.processed_timestamp\n */\nexport type MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__scheduler__id.json\n\n/**\n * The ID of the BullMQ job scheduler that adds the job. `messaging.bullmq.job.scheduler.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_SCHEDULER_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"daily-report\"\n */\nexport const MESSAGING_BULLMQ_JOB_SCHEDULER_ID = 'messaging.bullmq.job.scheduler.id';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_SCHEDULER_ID} messaging.bullmq.job.scheduler.id\n */\nexport type MESSAGING_BULLMQ_JOB_SCHEDULER_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__state.json\n\n/**\n * The state of the BullMQ job that a job metric counts. `messaging.bullmq.job.state`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"completed\"\n * @example \"failed\"\n * @example \"delayed\"\n */\nexport const MESSAGING_BULLMQ_JOB_STATE = 'messaging.bullmq.job.state';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_STATE} messaging.bullmq.job.state\n */\nexport type MESSAGING_BULLMQ_JOB_STATE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__type.json\n\n/**\n * The job state from which Queue.clean() removes BullMQ jobs. `messaging.bullmq.job.type`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"completed\"\n * @example \"failed\"\n */\nexport const MESSAGING_BULLMQ_JOB_TYPE = 'messaging.bullmq.job.type';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_TYPE} messaging.bullmq.job.type\n */\nexport type MESSAGING_BULLMQ_JOB_TYPE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__clean__count.json\n\n/**\n * The number of BullMQ jobs that Queue.clean() removed. `messaging.bullmq.queue.clean.count`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 25\n */\nexport const MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT = 'messaging.bullmq.queue.clean.count';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT} messaging.bullmq.queue.clean.count\n */\nexport type MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__clean__limit.json\n\n/**\n * The maximum number of BullMQ jobs that Queue.clean() removes. `messaging.bullmq.queue.clean.limit`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1000\n */\nexport const MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT = 'messaging.bullmq.queue.clean.limit';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT} messaging.bullmq.queue.clean.limit\n */\nexport type MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__drain__delay.json\n\n/**\n * Whether Queue.drain() also removes the delayed BullMQ jobs. `messaging.bullmq.queue.drain.delay`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY = 'messaging.bullmq.queue.drain.delay';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY} messaging.bullmq.queue.drain.delay\n */\nexport type MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__event__max_length.json\n\n/**\n * The maximum number of events that Queue.trimEvents() keeps in the BullMQ event stream. `messaging.bullmq.queue.event.max_length`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 10000\n */\nexport const MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH = 'messaging.bullmq.queue.event.max_length';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH} messaging.bullmq.queue.event.max_length\n */\nexport type MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__grace.json\n\n/**\n * The grace period in milliseconds that Queue.clean() uses. Only BullMQ jobs that are older are removed. `messaging.bullmq.queue.grace`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_GRACE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 60000\n */\nexport const MESSAGING_BULLMQ_QUEUE_GRACE = 'messaging.bullmq.queue.grace';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_GRACE} messaging.bullmq.queue.grace\n */\nexport type MESSAGING_BULLMQ_QUEUE_GRACE_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__jobs__state.json\n\n/**\n * The BullMQ job state that the queue job count metric counts. `messaging.bullmq.queue.jobs.state`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_QUEUE_JOBS_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"waiting\"\n * @example \"active\"\n * @example \"completed\"\n */\nexport const MESSAGING_BULLMQ_QUEUE_JOBS_STATE = 'messaging.bullmq.queue.jobs.state';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_JOBS_STATE} messaging.bullmq.queue.jobs.state\n */\nexport type MESSAGING_BULLMQ_QUEUE_JOBS_STATE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__rate_limit.json\n\n/**\n * The time in milliseconds for which Queue.rateLimit() rate-limits the BullMQ queue. `messaging.bullmq.queue.rate_limit`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_RATE_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const MESSAGING_BULLMQ_QUEUE_RATE_LIMIT = 'messaging.bullmq.queue.rate_limit';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_RATE_LIMIT} messaging.bullmq.queue.rate_limit\n */\nexport type MESSAGING_BULLMQ_QUEUE_RATE_LIMIT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__do_not_wait_active.json\n\n/**\n * Whether Worker.pause() returns without waiting for the active BullMQ jobs to finish. `messaging.bullmq.worker.do_not_wait_active`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE = 'messaging.bullmq.worker.do_not_wait_active';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE} messaging.bullmq.worker.do_not_wait_active\n */\nexport type MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__force_close.json\n\n/**\n * Whether Worker.close() closes the Worker without waiting for the active BullMQ jobs to finish. `messaging.bullmq.worker.force_close`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_BULLMQ_WORKER_FORCE_CLOSE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const MESSAGING_BULLMQ_WORKER_FORCE_CLOSE = 'messaging.bullmq.worker.force_close';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_FORCE_CLOSE} messaging.bullmq.worker.force_close\n */\nexport type MESSAGING_BULLMQ_WORKER_FORCE_CLOSE_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__jobs_to_extend_locks.json\n\n/**\n * The IDs of the BullMQ jobs whose locks the Worker extends. `messaging.bullmq.worker.jobs_to_extend_locks`\n *\n * Attribute Value Type: `Array<string>` {@link MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"1\",\"2\"]\n */\nexport const MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS = 'messaging.bullmq.worker.jobs_to_extend_locks';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS} messaging.bullmq.worker.jobs_to_extend_locks\n */\nexport type MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS_TYPE = Array<string>;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__name.json\n\n/**\n * The name that the user gives to the BullMQ Worker in its options. `messaging.bullmq.worker.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_WORKER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"email-worker\"\n */\nexport const MESSAGING_BULLMQ_WORKER_NAME = 'messaging.bullmq.worker.name';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_NAME} messaging.bullmq.worker.name\n */\nexport type MESSAGING_BULLMQ_WORKER_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__rate_limit.json\n\n/**\n * The time in milliseconds for which Worker.rateLimit() rate-limits the BullMQ Worker. `messaging.bullmq.worker.rate_limit`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_WORKER_RATE_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const MESSAGING_BULLMQ_WORKER_RATE_LIMIT = 'messaging.bullmq.worker.rate_limit';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_RATE_LIMIT} messaging.bullmq.worker.rate_limit\n */\nexport type MESSAGING_BULLMQ_WORKER_RATE_LIMIT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__stalled_jobs.json\n\n/**\n * The IDs of the stalled BullMQ jobs that the Worker moved back to the wait state. `messaging.bullmq.worker.stalled_jobs`\n *\n * Attribute Value Type: `Array<string>` {@link MESSAGING_BULLMQ_WORKER_STALLED_JOBS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"1\",\"2\"]\n */\nexport const MESSAGING_BULLMQ_WORKER_STALLED_JOBS = 'messaging.bullmq.worker.stalled_jobs';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_STALLED_JOBS} messaging.bullmq.worker.stalled_jobs\n */\nexport type MESSAGING_BULLMQ_WORKER_STALLED_JOBS_TYPE = Array<string>;\n\n// Path: model/attributes/messaging/messaging__client__id.json\n\n/**\n * A unique identifier for the client that consumes or produces a message. `messaging.client.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_CLIENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"client-5\"\n * @example \"myhost@8742@s8083jm\"\n */\nexport const MESSAGING_CLIENT_ID = 'messaging.client.id';\n\n/**\n * Type for {@link MESSAGING_CLIENT_ID} messaging.client.id\n */\nexport type MESSAGING_CLIENT_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__conversation_id.json\n\n/**\n * The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\". `messaging.conversation_id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_CONVERSATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_MESSAGE_CONVERSATION_ID} `messaging.message.conversation_id`\n *\n * @deprecated Use {@link MESSAGING_MESSAGE_CONVERSATION_ID} (messaging.message.conversation_id) instead - This attribute is being deprecated in favor of messaging.message.conversation_id.\n * @example \"MyConversationId\"\n */\nexport const MESSAGING_CONVERSATION_ID = 'messaging.conversation_id';\n\n/**\n * Type for {@link MESSAGING_CONVERSATION_ID} messaging.conversation_id\n */\nexport type MESSAGING_CONVERSATION_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__destination.json\n\n/**\n * The message destination name. `messaging.destination`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_DESTINATION_NAME} `messaging.destination.name`\n *\n * @deprecated Use {@link MESSAGING_DESTINATION_NAME} (messaging.destination.name) instead - This attribute is being deprecated in favor of messaging.destination.name, which is the OTel-aligned replacement.\n * @example \"BestTopic\"\n */\nexport const MESSAGING_DESTINATION = 'messaging.destination';\n\n/**\n * Type for {@link MESSAGING_DESTINATION} messaging.destination\n */\nexport type MESSAGING_DESTINATION_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__destination__connection.json\n\n/**\n * The message destination connection. `messaging.destination.connection`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_CONNECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"BestTopic\"\n */\nexport const MESSAGING_DESTINATION_CONNECTION = 'messaging.destination.connection';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_CONNECTION} messaging.destination.connection\n */\nexport type MESSAGING_DESTINATION_CONNECTION_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__destination_kind.json\n\n/**\n * The kind of message destination. `messaging.destination_kind`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - Deprecated from OTEL, which now models the destination kind via messaging.operation.type and messaging.destination.name.\n * @example \"topic\"\n */\nexport const MESSAGING_DESTINATION_KIND = 'messaging.destination_kind';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_KIND} messaging.destination_kind\n */\nexport type MESSAGING_DESTINATION_KIND_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__destination__name.json\n\n/**\n * The message destination name. `messaging.destination.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_DESTINATION} `messaging.destination`\n *\n * @example \"BestTopic\"\n */\nexport const MESSAGING_DESTINATION_NAME = 'messaging.destination.name';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_NAME} messaging.destination.name\n */\nexport type MESSAGING_DESTINATION_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__destination__partition__id.json\n\n/**\n * The identifier of the partition messages are sent to or received from, unique within the messaging.destination.name. `messaging.destination.partition.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_PARTITION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"1\"\n */\nexport const MESSAGING_DESTINATION_PARTITION_ID = 'messaging.destination.partition.id';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_PARTITION_ID} messaging.destination.partition.id\n */\nexport type MESSAGING_DESTINATION_PARTITION_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__kafka__message__key.json\n\n/**\n * Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from messaging.message.id in that they're not unique. If the key is null, the attribute MUST NOT be set. `messaging.kafka.message.key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_KAFKA_MESSAGE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myKey\"\n */\nexport const MESSAGING_KAFKA_MESSAGE_KEY = 'messaging.kafka.message.key';\n\n/**\n * Type for {@link MESSAGING_KAFKA_MESSAGE_KEY} messaging.kafka.message.key\n */\nexport type MESSAGING_KAFKA_MESSAGE_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__kafka__message__tombstone.json\n\n/**\n * A boolean that is true if the message is a tombstone. `messaging.kafka.message.tombstone`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_KAFKA_MESSAGE_TOMBSTONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const MESSAGING_KAFKA_MESSAGE_TOMBSTONE = 'messaging.kafka.message.tombstone';\n\n/**\n * Type for {@link MESSAGING_KAFKA_MESSAGE_TOMBSTONE} messaging.kafka.message.tombstone\n */\nexport type MESSAGING_KAFKA_MESSAGE_TOMBSTONE_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__kafka__offset.json\n\n/**\n * The offset of a record in the corresponding Kafka partition. `messaging.kafka.offset`\n *\n * Attribute Value Type: `number` {@link MESSAGING_KAFKA_OFFSET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 42\n */\nexport const MESSAGING_KAFKA_OFFSET = 'messaging.kafka.offset';\n\n/**\n * Type for {@link MESSAGING_KAFKA_OFFSET} messaging.kafka.offset\n */\nexport type MESSAGING_KAFKA_OFFSET_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__message__body__size.json\n\n/**\n * The size of the message body in bytes. `messaging.message.body.size`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_BODY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 839\n */\nexport const MESSAGING_MESSAGE_BODY_SIZE = 'messaging.message.body.size';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_BODY_SIZE} messaging.message.body.size\n */\nexport type MESSAGING_MESSAGE_BODY_SIZE_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__message__conversation_id.json\n\n/**\n * The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\". `messaging.message.conversation_id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_MESSAGE_CONVERSATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_CONVERSATION_ID} `messaging.conversation_id`\n *\n * @example \"MyConversationId\"\n */\nexport const MESSAGING_MESSAGE_CONVERSATION_ID = 'messaging.message.conversation_id';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_CONVERSATION_ID} messaging.message.conversation_id\n */\nexport type MESSAGING_MESSAGE_CONVERSATION_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__message__envelope__size.json\n\n/**\n * The size of the message body and metadata in bytes. `messaging.message.envelope.size`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_ENVELOPE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1045\n */\nexport const MESSAGING_MESSAGE_ENVELOPE_SIZE = 'messaging.message.envelope.size';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_ENVELOPE_SIZE} messaging.message.envelope.size\n */\nexport type MESSAGING_MESSAGE_ENVELOPE_SIZE_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__message__id.json\n\n/**\n * A value used by the messaging system as an identifier for the message, represented as a string. `messaging.message.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_MESSAGE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link _MESSAGING_MESSAGE_ID} `messaging.message_id`\n *\n * @example \"f47ac10b58cc4372a5670e02b2c3d479\"\n */\nexport const MESSAGING_MESSAGE_ID = 'messaging.message.id';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_ID} messaging.message.id\n */\nexport type MESSAGING_MESSAGE_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__message_id.json\n\n/**\n * A value used by the messaging system as an identifier for the message, represented as a string. `messaging.message_id`\n *\n * Attribute Value Type: `string` {@link _MESSAGING_MESSAGE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_MESSAGE_ID} `messaging.message.id`\n *\n * @deprecated Use {@link MESSAGING_MESSAGE_ID} (messaging.message.id) instead - This attribute is being deprecated in favor of messaging.message.id.\n * @example \"452a7c7c7c7048c2f887f0e7\"\n */\nexport const _MESSAGING_MESSAGE_ID = 'messaging.message_id';\n\n/**\n * Type for {@link _MESSAGING_MESSAGE_ID} messaging.message_id\n */\nexport type _MESSAGING_MESSAGE_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__message__receive__latency.json\n\n/**\n * The latency between when the message was published and received. `messaging.message.receive.latency`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_RECEIVE_LATENCY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732847252\n */\nexport const MESSAGING_MESSAGE_RECEIVE_LATENCY = 'messaging.message.receive.latency';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_RECEIVE_LATENCY} messaging.message.receive.latency\n */\nexport type MESSAGING_MESSAGE_RECEIVE_LATENCY_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__message__retry__count.json\n\n/**\n * The amount of attempts to send the message. `messaging.message.retry.count`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_RETRY_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const MESSAGING_MESSAGE_RETRY_COUNT = 'messaging.message.retry.count';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_RETRY_COUNT} messaging.message.retry.count\n */\nexport type MESSAGING_MESSAGE_RETRY_COUNT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__operation.json\n\n/**\n * The name of the messaging operation being performed. `messaging.operation`\n *\n * Attribute Value Type: `string` {@link MESSAGING_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_OPERATION_NAME} `messaging.operation.name`\n *\n * @deprecated Use {@link MESSAGING_OPERATION_NAME} (messaging.operation.name) instead - This attribute is being deprecated in favor of messaging.operation.name.\n * @example \"publish\"\n */\nexport const MESSAGING_OPERATION = 'messaging.operation';\n\n/**\n * Type for {@link MESSAGING_OPERATION} messaging.operation\n */\nexport type MESSAGING_OPERATION_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__operation__name.json\n\n/**\n * The name of the messaging operation being performed `messaging.operation.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_OPERATION} `messaging.operation`\n *\n * @example \"send\"\n */\nexport const MESSAGING_OPERATION_NAME = 'messaging.operation.name';\n\n/**\n * Type for {@link MESSAGING_OPERATION_NAME} messaging.operation.name\n */\nexport type MESSAGING_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__operation__type.json\n\n/**\n * A string identifying the type of the messaging operation `messaging.operation.type`\n *\n * Attribute Value Type: `string` {@link MESSAGING_OPERATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"create\"\n */\nexport const MESSAGING_OPERATION_TYPE = 'messaging.operation.type';\n\n/**\n * Type for {@link MESSAGING_OPERATION_TYPE} messaging.operation.type\n */\nexport type MESSAGING_OPERATION_TYPE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__protocol.json\n\n/**\n * OSI application layer or non-OSI equivalent. `messaging.protocol`\n *\n * Attribute Value Type: `string` {@link MESSAGING_PROTOCOL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_NAME} `network.protocol.name`, {@link NET_PROTOCOL_NAME} `net.protocol.name`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_NAME} (network.protocol.name) instead - This attribute is being deprecated in favor of network.protocol.name.\n * @example \"AMQP\"\n */\nexport const MESSAGING_PROTOCOL = 'messaging.protocol';\n\n/**\n * Type for {@link MESSAGING_PROTOCOL} messaging.protocol\n */\nexport type MESSAGING_PROTOCOL_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__protocol_version.json\n\n/**\n * The actual version of the protocol used for network communication. `messaging.protocol_version`\n *\n * Attribute Value Type: `string` {@link MESSAGING_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_VERSION} `network.protocol.version`, {@link HTTP_FLAVOR} `http.flavor`, {@link NET_PROTOCOL_VERSION} `net.protocol.version`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_VERSION} (network.protocol.version) instead - This attribute is being deprecated in favor of network.protocol.version.\n * @example \"0.9.1\"\n */\nexport const MESSAGING_PROTOCOL_VERSION = 'messaging.protocol_version';\n\n/**\n * Type for {@link MESSAGING_PROTOCOL_VERSION} messaging.protocol_version\n */\nexport type MESSAGING_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__rabbitmq__destination__routing_key.json\n\n/**\n * RabbitMQ message routing key. `messaging.rabbitmq.destination.routing_key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_RABBITMQ_ROUTING_KEY} `messaging.rabbitmq.routing_key`\n *\n * @example \"myKey\"\n */\nexport const MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY = 'messaging.rabbitmq.destination.routing_key';\n\n/**\n * Type for {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY} messaging.rabbitmq.destination.routing_key\n */\nexport type MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__rabbitmq__routing_key.json\n\n/**\n * RabbitMQ message routing key. `messaging.rabbitmq.routing_key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_RABBITMQ_ROUTING_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY} `messaging.rabbitmq.destination.routing_key`\n *\n * @deprecated Use {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY} (messaging.rabbitmq.destination.routing_key) instead - This attribute is being deprecated in favor of messaging.rabbitmq.destination.routing_key.\n * @example \"myKey\"\n */\nexport const MESSAGING_RABBITMQ_ROUTING_KEY = 'messaging.rabbitmq.routing_key';\n\n/**\n * Type for {@link MESSAGING_RABBITMQ_ROUTING_KEY} messaging.rabbitmq.routing_key\n */\nexport type MESSAGING_RABBITMQ_ROUTING_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__system.json\n\n/**\n * The messaging system as identified by the client instrumentation. `messaging.system`\n *\n * Attribute Value Type: `string` {@link MESSAGING_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"activemq\"\n */\nexport const MESSAGING_SYSTEM = 'messaging.system';\n\n/**\n * Type for {@link MESSAGING_SYSTEM} messaging.system\n */\nexport type MESSAGING_SYSTEM_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__url.json\n\n/**\n * The connection string of the messaging broker. `messaging.url`\n *\n * Attribute Value Type: `string` {@link MESSAGING_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link URL_FULL} `url.full`, {@link HTTP_URL} `http.url`, {@link URL} `url`, {@link AWS_REQUEST_URL} `aws.request.url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead - This attribute is being deprecated in favor of url.full.\n * @example \"amqp://guest:guest@localhost:5672\"\n */\nexport const MESSAGING_URL = 'messaging.url';\n\n/**\n * Type for {@link MESSAGING_URL} messaging.url\n */\nexport type MESSAGING_URL_TYPE = string;\n\n// Path: model/attributes/method.json\n\n/**\n * The HTTP method used. `method`\n *\n * Attribute Value Type: `string` {@link METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_METHOD} `http.request.method`, {@link _HTTP_REQUEST_METHOD} `http.request_method`, {@link HTTP_METHOD} `http.method`\n *\n * @deprecated Use {@link HTTP_REQUEST_METHOD} (http.request.method) instead\n * @example \"GET\"\n */\nexport const METHOD = 'method';\n\n/**\n * Type for {@link METHOD} method\n */\nexport type METHOD_TYPE = string;\n\n// Path: model/attributes/middleware/middleware__name.json\n\n/**\n * The name of the middleware. `middleware.name`\n *\n * Attribute Value Type: `string` {@link MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DJANGO_MIDDLEWARE_NAME} `django.middleware_name`, {@link STARLITE_MIDDLEWARE_NAME} `starlite.middleware_name`, {@link LITESTAR_MIDDLEWARE_NAME} `litestar.middleware_name`, {@link STARLETTE_MIDDLEWARE_NAME} `starlette.middleware_name`\n *\n * @example \"AuthenticationMiddleware\"\n */\nexport const MIDDLEWARE_NAME = 'middleware.name';\n\n/**\n * Type for {@link MIDDLEWARE_NAME} middleware.name\n */\nexport type MIDDLEWARE_NAME_TYPE = string;\n\n// Path: model/attributes/navigation/navigation__origin.json\n\n/**\n * The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise. `navigation.origin`\n *\n * Attribute Value Type: `string` {@link NAVIGATION_ORIGIN_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link ROUTER_NAVIGATION_ORIGIN} `router.navigation.origin`, {@link SENTRY_SVELTEKIT_NAVIGATION_FROM} `sentry.sveltekit.navigation.from`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_ORIGIN} (router.navigation.origin) instead - Moved to the router.* namespace to separate client-side router navigations from browser navigations.\n * @example \"/users/:id\"\n */\nexport const NAVIGATION_ORIGIN = 'navigation.origin';\n\n/**\n * Type for {@link NAVIGATION_ORIGIN} navigation.origin\n */\nexport type NAVIGATION_ORIGIN_TYPE = string;\n\n// Path: model/attributes/navigation/navigation__route__id.json\n\n/**\n * The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id). `navigation.route.id`\n *\n * Attribute Value Type: `string` {@link NAVIGATION_ROUTE_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link ROUTER_NAVIGATION_ROUTE_ID} `router.navigation.route.id`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_ROUTE_ID} (router.navigation.route.id) instead - Moved to the router.* namespace to separate client-side router navigations from browser navigations.\n * @example \"AboutView\"\n */\nexport const NAVIGATION_ROUTE_ID = 'navigation.route.id';\n\n/**\n * Type for {@link NAVIGATION_ROUTE_ID} navigation.route.id\n */\nexport type NAVIGATION_ROUTE_ID_TYPE = string;\n\n// Path: model/attributes/navigation/navigation__type.json\n\n/**\n * The type of navigation done by a client-side router. `navigation.type`\n *\n * Attribute Value Type: `string` {@link NAVIGATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link ROUTER_NAVIGATION_TYPE} `router.navigation.type`, {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE} `sentry.sveltekit.navigation.type`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_TYPE} (router.navigation.type) instead - Moved to the router.* namespace to separate client-side router navigations from browser navigations.\n * @example \"router.push\"\n */\nexport const NAVIGATION_TYPE = 'navigation.type';\n\n/**\n * Type for {@link NAVIGATION_TYPE} navigation.type\n */\nexport type NAVIGATION_TYPE_TYPE = string;\n\n// Path: model/attributes/nel/nel__elapsed_time.json\n\n/**\n * The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent. `nel.elapsed_time`\n *\n * Attribute Value Type: `number` {@link NEL_ELAPSED_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 100\n */\nexport const NEL_ELAPSED_TIME = 'nel.elapsed_time';\n\n/**\n * Type for {@link NEL_ELAPSED_TIME} nel.elapsed_time\n */\nexport type NEL_ELAPSED_TIME_TYPE = number;\n\n// Path: model/attributes/nel/nel__phase.json\n\n/**\n * If request failed, the phase of its network error. If request succeeded, \"application\". `nel.phase`\n *\n * Attribute Value Type: `string` {@link NEL_PHASE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"application\"\n */\nexport const NEL_PHASE = 'nel.phase';\n\n/**\n * Type for {@link NEL_PHASE} nel.phase\n */\nexport type NEL_PHASE_TYPE = string;\n\n// Path: model/attributes/nel/nel__referrer.json\n\n/**\n * request's referrer, as determined by the referrer policy associated with its client. `nel.referrer`\n *\n * Attribute Value Type: `string` {@link NEL_REFERRER_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://example.com/foo?bar=baz\"\n */\nexport const NEL_REFERRER = 'nel.referrer';\n\n/**\n * Type for {@link NEL_REFERRER} nel.referrer\n */\nexport type NEL_REFERRER_TYPE = string;\n\n// Path: model/attributes/nel/nel__sampling_fraction.json\n\n/**\n * The sampling fraction used to determine if the request should be sampled. `nel.sampling_fraction`\n *\n * Attribute Value Type: `number` {@link NEL_SAMPLING_FRACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NEL_SAMPLING_FUNCTION} `nel.sampling_function`\n *\n * @example 0.5\n */\nexport const NEL_SAMPLING_FRACTION = 'nel.sampling_fraction';\n\n/**\n * Type for {@link NEL_SAMPLING_FRACTION} nel.sampling_fraction\n */\nexport type NEL_SAMPLING_FRACTION_TYPE = number;\n\n// Path: model/attributes/nel/nel__sampling_function.json\n\n/**\n * The sampling function used to determine if the request should be sampled. `nel.sampling_function`\n *\n * Attribute Value Type: `number` {@link NEL_SAMPLING_FUNCTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NEL_SAMPLING_FRACTION} `nel.sampling_fraction`\n *\n * @deprecated Use {@link NEL_SAMPLING_FRACTION} (nel.sampling_fraction) instead - The correct name of this attribute is nel.sampling_fraction\n * @example 0.5\n */\nexport const NEL_SAMPLING_FUNCTION = 'nel.sampling_function';\n\n/**\n * Type for {@link NEL_SAMPLING_FUNCTION} nel.sampling_function\n */\nexport type NEL_SAMPLING_FUNCTION_TYPE = number;\n\n// Path: model/attributes/nel/nel__type.json\n\n/**\n * If request failed, the type of its network error. If request succeeded, \"ok\". `nel.type`\n *\n * Attribute Value Type: `string` {@link NEL_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"dns.unreachable\"\n */\nexport const NEL_TYPE = 'nel.type';\n\n/**\n * Type for {@link NEL_TYPE} nel.type\n */\nexport type NEL_TYPE_TYPE = string;\n\n// Path: model/attributes/network/network__connection__effective_type.json\n\n/**\n * Specifies the effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g). `network.connection.effective_type`\n *\n * Attribute Value Type: `string` {@link NETWORK_CONNECTION_EFFECTIVE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link EFFECTIVECONNECTIONTYPE} `effectiveConnectionType`\n *\n * @example \"4g\"\n */\nexport const NETWORK_CONNECTION_EFFECTIVE_TYPE = 'network.connection.effective_type';\n\n/**\n * Type for {@link NETWORK_CONNECTION_EFFECTIVE_TYPE} network.connection.effective_type\n */\nexport type NETWORK_CONNECTION_EFFECTIVE_TYPE_TYPE = string;\n\n// Path: model/attributes/network/network__connection__rtt.json\n\n/**\n * Specifies the estimated effective round-trip time of the current connection, in milliseconds. `network.connection.rtt`\n *\n * Attribute Value Type: `number` {@link NETWORK_CONNECTION_RTT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CONNECTION_RTT} `connection.rtt`\n *\n * @example 100\n */\nexport const NETWORK_CONNECTION_RTT = 'network.connection.rtt';\n\n/**\n * Type for {@link NETWORK_CONNECTION_RTT} network.connection.rtt\n */\nexport type NETWORK_CONNECTION_RTT_TYPE = number;\n\n// Path: model/attributes/network/network__connection__type.json\n\n/**\n * Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc). `network.connection.type`\n *\n * Attribute Value Type: `string` {@link NETWORK_CONNECTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DEVICE_CONNECTION_TYPE} `device.connection_type`, {@link CONNECTIONTYPE} `connectionType`\n *\n * @example \"wifi\"\n */\nexport const NETWORK_CONNECTION_TYPE = 'network.connection.type';\n\n/**\n * Type for {@link NETWORK_CONNECTION_TYPE} network.connection.type\n */\nexport type NETWORK_CONNECTION_TYPE_TYPE = string;\n\n// Path: model/attributes/network/network__local__address.json\n\n/**\n * Local address of the network connection - IP address or Unix domain socket name. `network.local.address`\n *\n * Attribute Value Type: `string` {@link NETWORK_LOCAL_ADDRESS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_HOST_IP} `net.host.ip`, {@link NET_SOCK_HOST_ADDR} `net.sock.host.addr`\n *\n * @example \"10.1.2.80\"\n * @example \"/var/run/my.sock\"\n */\nexport const NETWORK_LOCAL_ADDRESS = 'network.local.address';\n\n/**\n * Type for {@link NETWORK_LOCAL_ADDRESS} network.local.address\n */\nexport type NETWORK_LOCAL_ADDRESS_TYPE = string;\n\n// Path: model/attributes/network/network__local__port.json\n\n/**\n * Local port number of the network connection. `network.local.port`\n *\n * Attribute Value Type: `number` {@link NETWORK_LOCAL_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_SOCK_HOST_PORT} `net.sock.host.port`\n *\n * @example 65400\n */\nexport const NETWORK_LOCAL_PORT = 'network.local.port';\n\n/**\n * Type for {@link NETWORK_LOCAL_PORT} network.local.port\n */\nexport type NETWORK_LOCAL_PORT_TYPE = number;\n\n// Path: model/attributes/network/network__peer__address.json\n\n/**\n * Peer address of the network connection - IP address or Unix domain socket name. `network.peer.address`\n *\n * Attribute Value Type: `string` {@link NETWORK_PEER_ADDRESS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_PEER_IP} `net.peer.ip`, {@link NET_SOCK_PEER_ADDR} `net.sock.peer.addr`\n *\n * @example \"10.1.2.80\"\n */\nexport const NETWORK_PEER_ADDRESS = 'network.peer.address';\n\n/**\n * Type for {@link NETWORK_PEER_ADDRESS} network.peer.address\n */\nexport type NETWORK_PEER_ADDRESS_TYPE = string;\n\n// Path: model/attributes/network/network__peer__port.json\n\n/**\n * Peer port number of the network connection. `network.peer.port`\n *\n * Attribute Value Type: `number` {@link NETWORK_PEER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_SOCK_PEER_PORT} `net.sock.peer.port`\n *\n * @example 65400\n */\nexport const NETWORK_PEER_PORT = 'network.peer.port';\n\n/**\n * Type for {@link NETWORK_PEER_PORT} network.peer.port\n */\nexport type NETWORK_PEER_PORT_TYPE = number;\n\n// Path: model/attributes/network/network__protocol__name.json\n\n/**\n * OSI application layer or non-OSI equivalent. `network.protocol.name`\n *\n * Attribute Value Type: `string` {@link NETWORK_PROTOCOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_PROTOCOL_NAME} `net.protocol.name`, {@link MESSAGING_PROTOCOL} `messaging.protocol`\n *\n * @example \"http\"\n */\nexport const NETWORK_PROTOCOL_NAME = 'network.protocol.name';\n\n/**\n * Type for {@link NETWORK_PROTOCOL_NAME} network.protocol.name\n */\nexport type NETWORK_PROTOCOL_NAME_TYPE = string;\n\n// Path: model/attributes/network/network__protocol__version.json\n\n/**\n * The actual version of the protocol used for network communication. `network.protocol.version`\n *\n * Attribute Value Type: `string` {@link NETWORK_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_FLAVOR} `http.flavor`, {@link NET_PROTOCOL_VERSION} `net.protocol.version`, {@link MESSAGING_PROTOCOL_VERSION} `messaging.protocol_version`\n *\n * @example \"1.1\"\n */\nexport const NETWORK_PROTOCOL_VERSION = 'network.protocol.version';\n\n/**\n * Type for {@link NETWORK_PROTOCOL_VERSION} network.protocol.version\n */\nexport type NETWORK_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/network/network__transport.json\n\n/**\n * OSI transport layer or inter-process communication method. `network.transport`\n *\n * Attribute Value Type: `string` {@link NETWORK_TRANSPORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_TRANSPORT} `net.transport`\n *\n * @example \"tcp\"\n */\nexport const NETWORK_TRANSPORT = 'network.transport';\n\n/**\n * Type for {@link NETWORK_TRANSPORT} network.transport\n */\nexport type NETWORK_TRANSPORT_TYPE = string;\n\n// Path: model/attributes/network/network__type.json\n\n/**\n * OSI network layer or non-OSI equivalent. `network.type`\n *\n * Attribute Value Type: `string` {@link NETWORK_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ipv4\"\n */\nexport const NETWORK_TYPE = 'network.type';\n\n/**\n * Type for {@link NETWORK_TYPE} network.type\n */\nexport type NETWORK_TYPE_TYPE = string;\n\n// Path: model/attributes/net/net__host__ip.json\n\n/**\n * Local address of the network connection - IP address or Unix domain socket name. `net.host.ip`\n *\n * Attribute Value Type: `string` {@link NET_HOST_IP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_LOCAL_ADDRESS} `network.local.address`, {@link NET_SOCK_HOST_ADDR} `net.sock.host.addr`\n *\n * @deprecated Use {@link NETWORK_LOCAL_ADDRESS} (network.local.address) instead\n * @example \"192.168.0.1\"\n */\nexport const NET_HOST_IP = 'net.host.ip';\n\n/**\n * Type for {@link NET_HOST_IP} net.host.ip\n */\nexport type NET_HOST_IP_TYPE = string;\n\n// Path: model/attributes/net/net__host__name.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `net.host.name`\n *\n * Attribute Value Type: `string` {@link NET_HOST_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead\n * @example \"example.com\"\n */\nexport const NET_HOST_NAME = 'net.host.name';\n\n/**\n * Type for {@link NET_HOST_NAME} net.host.name\n */\nexport type NET_HOST_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__host__port.json\n\n/**\n * Server port number. `net.host.port`\n *\n * Attribute Value Type: `number` {@link NET_HOST_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SERVER_PORT} `server.port`, {@link PORT} `port`\n *\n * @deprecated Use {@link SERVER_PORT} (server.port) instead\n * @example 1337\n */\nexport const NET_HOST_PORT = 'net.host.port';\n\n/**\n * Type for {@link NET_HOST_PORT} net.host.port\n */\nexport type NET_HOST_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__peer__ip.json\n\n/**\n * Peer address of the network connection - IP address or Unix domain socket name. `net.peer.ip`\n *\n * Attribute Value Type: `string` {@link NET_PEER_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PEER_ADDRESS} `network.peer.address`, {@link NET_SOCK_PEER_ADDR} `net.sock.peer.addr`\n *\n * @deprecated Use {@link NETWORK_PEER_ADDRESS} (network.peer.address) instead\n * @example \"192.168.0.1\"\n */\nexport const NET_PEER_IP = 'net.peer.ip';\n\n/**\n * Type for {@link NET_PEER_IP} net.peer.ip\n */\nexport type NET_PEER_IP_TYPE = string;\n\n// Path: model/attributes/net/net__peer__name.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `net.peer.name`\n *\n * Attribute Value Type: `string` {@link NET_PEER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - Deprecated, use server.address on client spans and client.address on server spans.\n * @example \"example.com\"\n */\nexport const NET_PEER_NAME = 'net.peer.name';\n\n/**\n * Type for {@link NET_PEER_NAME} net.peer.name\n */\nexport type NET_PEER_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__peer__port.json\n\n/**\n * Peer port number. `net.peer.port`\n *\n * Attribute Value Type: `number` {@link NET_PEER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link SERVER_PORT} (server.port) instead - Deprecated, use server.port on client spans and client.port on server spans.\n * @example 1337\n */\nexport const NET_PEER_PORT = 'net.peer.port';\n\n/**\n * Type for {@link NET_PEER_PORT} net.peer.port\n */\nexport type NET_PEER_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__protocol__name.json\n\n/**\n * OSI application layer or non-OSI equivalent. `net.protocol.name`\n *\n * Attribute Value Type: `string` {@link NET_PROTOCOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_NAME} `network.protocol.name`, {@link MESSAGING_PROTOCOL} `messaging.protocol`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_NAME} (network.protocol.name) instead\n * @example \"http\"\n */\nexport const NET_PROTOCOL_NAME = 'net.protocol.name';\n\n/**\n * Type for {@link NET_PROTOCOL_NAME} net.protocol.name\n */\nexport type NET_PROTOCOL_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__protocol__version.json\n\n/**\n * The actual version of the protocol used for network communication. `net.protocol.version`\n *\n * Attribute Value Type: `string` {@link NET_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_VERSION} `network.protocol.version`, {@link HTTP_FLAVOR} `http.flavor`, {@link MESSAGING_PROTOCOL_VERSION} `messaging.protocol_version`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_VERSION} (network.protocol.version) instead\n * @example \"1.1\"\n */\nexport const NET_PROTOCOL_VERSION = 'net.protocol.version';\n\n/**\n * Type for {@link NET_PROTOCOL_VERSION} net.protocol.version\n */\nexport type NET_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/net/net__sock__family.json\n\n/**\n * OSI transport and network layer `net.sock.family`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_FAMILY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link NETWORK_TRANSPORT} (network.transport) instead - Deprecated, use network.transport and network.type.\n * @example \"inet\"\n */\nexport const NET_SOCK_FAMILY = 'net.sock.family';\n\n/**\n * Type for {@link NET_SOCK_FAMILY} net.sock.family\n */\nexport type NET_SOCK_FAMILY_TYPE = string;\n\n// Path: model/attributes/net/net__sock__host__addr.json\n\n/**\n * Local address of the network connection mapping to Unix domain socket name. `net.sock.host.addr`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_HOST_ADDR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_LOCAL_ADDRESS} `network.local.address`, {@link NET_HOST_IP} `net.host.ip`\n *\n * @deprecated Use {@link NETWORK_LOCAL_ADDRESS} (network.local.address) instead\n * @example \"/var/my.sock\"\n */\nexport const NET_SOCK_HOST_ADDR = 'net.sock.host.addr';\n\n/**\n * Type for {@link NET_SOCK_HOST_ADDR} net.sock.host.addr\n */\nexport type NET_SOCK_HOST_ADDR_TYPE = string;\n\n// Path: model/attributes/net/net__sock__host__port.json\n\n/**\n * Local port number of the network connection. `net.sock.host.port`\n *\n * Attribute Value Type: `number` {@link NET_SOCK_HOST_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_LOCAL_PORT} `network.local.port`\n *\n * @deprecated Use {@link NETWORK_LOCAL_PORT} (network.local.port) instead\n * @example 8080\n */\nexport const NET_SOCK_HOST_PORT = 'net.sock.host.port';\n\n/**\n * Type for {@link NET_SOCK_HOST_PORT} net.sock.host.port\n */\nexport type NET_SOCK_HOST_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__sock__peer__addr.json\n\n/**\n * Peer address of the network connection - IP address `net.sock.peer.addr`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_PEER_ADDR_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PEER_ADDRESS} `network.peer.address`, {@link NET_PEER_IP} `net.peer.ip`\n *\n * @deprecated Use {@link NETWORK_PEER_ADDRESS} (network.peer.address) instead\n * @example \"192.168.0.1\"\n */\nexport const NET_SOCK_PEER_ADDR = 'net.sock.peer.addr';\n\n/**\n * Type for {@link NET_SOCK_PEER_ADDR} net.sock.peer.addr\n */\nexport type NET_SOCK_PEER_ADDR_TYPE = string;\n\n// Path: model/attributes/net/net__sock__peer__name.json\n\n/**\n * Peer address of the network connection - Unix domain socket name `net.sock.peer.name`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_PEER_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated  - Deprecated from OTEL, no replacement at this time\n * @example \"/var/my.sock\"\n */\nexport const NET_SOCK_PEER_NAME = 'net.sock.peer.name';\n\n/**\n * Type for {@link NET_SOCK_PEER_NAME} net.sock.peer.name\n */\nexport type NET_SOCK_PEER_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__sock__peer__port.json\n\n/**\n * Peer port number of the network connection. `net.sock.peer.port`\n *\n * Attribute Value Type: `number` {@link NET_SOCK_PEER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PEER_PORT} `network.peer.port`\n *\n * @deprecated Use {@link NETWORK_PEER_PORT} (network.peer.port) instead\n * @example 8080\n */\nexport const NET_SOCK_PEER_PORT = 'net.sock.peer.port';\n\n/**\n * Type for {@link NET_SOCK_PEER_PORT} net.sock.peer.port\n */\nexport type NET_SOCK_PEER_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__transport.json\n\n/**\n * OSI transport layer or inter-process communication method. `net.transport`\n *\n * Attribute Value Type: `string` {@link NET_TRANSPORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_TRANSPORT} `network.transport`\n *\n * @deprecated Use {@link NETWORK_TRANSPORT} (network.transport) instead - This attribute is being deprecated in favor of network.transport. The values change from ip_tcp and ip_udp to tcp and udp, so the old value cannot be copied over.\n * @example \"tcp\"\n */\nexport const NET_TRANSPORT = 'net.transport';\n\n/**\n * Type for {@link NET_TRANSPORT} net.transport\n */\nexport type NET_TRANSPORT_TYPE = string;\n\n// Path: model/attributes/os/os__build.json\n\n/**\n * The build ID of the operating system. `os.build`\n *\n * Attribute Value Type: `string` {@link OS_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link OS_BUILD_ID} `os.build_id`\n *\n * @deprecated Use {@link OS_BUILD_ID} (os.build_id) instead\n * @example \"1234567890\"\n */\nexport const OS_BUILD = 'os.build';\n\n/**\n * Type for {@link OS_BUILD} os.build\n */\nexport type OS_BUILD_TYPE = string;\n\n// Path: model/attributes/os/os__build_id.json\n\n/**\n * The build ID of the operating system. `os.build_id`\n *\n * Attribute Value Type: `string` {@link OS_BUILD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link OS_BUILD} `os.build`\n *\n * @example \"1234567890\"\n */\nexport const OS_BUILD_ID = 'os.build_id';\n\n/**\n * Type for {@link OS_BUILD_ID} os.build_id\n */\nexport type OS_BUILD_ID_TYPE = string;\n\n// Path: model/attributes/os/os__description.json\n\n/**\n * Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands. `os.description`\n *\n * Attribute Value Type: `string` {@link OS_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Ubuntu 18.04.1 LTS\"\n */\nexport const OS_DESCRIPTION = 'os.description';\n\n/**\n * Type for {@link OS_DESCRIPTION} os.description\n */\nexport type OS_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/os/os__kernel_version.json\n\n/**\n * An independent kernel version string. Typically the entire output of the `uname` syscall. `os.kernel_version`\n *\n * Attribute Value Type: `string` {@link OS_KERNEL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"20.2.0\"\n */\nexport const OS_KERNEL_VERSION = 'os.kernel_version';\n\n/**\n * Type for {@link OS_KERNEL_VERSION} os.kernel_version\n */\nexport type OS_KERNEL_VERSION_TYPE = string;\n\n// Path: model/attributes/os/os__name.json\n\n/**\n * Human readable operating system name. `os.name`\n *\n * Attribute Value Type: `string` {@link OS_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Ubuntu\"\n */\nexport const OS_NAME = 'os.name';\n\n/**\n * Type for {@link OS_NAME} os.name\n */\nexport type OS_NAME_TYPE = string;\n\n// Path: model/attributes/os/os__raw_description.json\n\n/**\n * An unprocessed description string obtained by the operating system. For some well-known runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are not explicitly given. `os.raw_description`\n *\n * Attribute Value Type: `string` {@link OS_RAW_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Ubuntu 22.04.4 LTS (Jammy Jellyfish)\"\n */\nexport const OS_RAW_DESCRIPTION = 'os.raw_description';\n\n/**\n * Type for {@link OS_RAW_DESCRIPTION} os.raw_description\n */\nexport type OS_RAW_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/os/os__rooted.json\n\n/**\n * Whether the operating system has been jailbroken or rooted. `os.rooted`\n *\n * Attribute Value Type: `boolean` {@link OS_ROOTED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const OS_ROOTED = 'os.rooted';\n\n/**\n * Type for {@link OS_ROOTED} os.rooted\n */\nexport type OS_ROOTED_TYPE = boolean;\n\n// Path: model/attributes/os/os__theme.json\n\n/**\n * Whether the OS runs in dark mode or light mode. `os.theme`\n *\n * Attribute Value Type: `string` {@link OS_THEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"dark\"\n */\nexport const OS_THEME = 'os.theme';\n\n/**\n * Type for {@link OS_THEME} os.theme\n */\nexport type OS_THEME_TYPE = string;\n\n// Path: model/attributes/os/os__type.json\n\n/**\n * The operating system type. `os.type`\n *\n * Attribute Value Type: `string` {@link OS_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"linux\"\n */\nexport const OS_TYPE = 'os.type';\n\n/**\n * Type for {@link OS_TYPE} os.type\n */\nexport type OS_TYPE_TYPE = string;\n\n// Path: model/attributes/os/os__version.json\n\n/**\n * The version of the operating system. `os.version`\n *\n * Attribute Value Type: `string` {@link OS_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"18.04.2\"\n */\nexport const OS_VERSION = 'os.version';\n\n/**\n * Type for {@link OS_VERSION} os.version\n */\nexport type OS_VERSION_TYPE = string;\n\n// Path: model/attributes/otel/otel__kind.json\n\n/**\n * The span kind (https://opentelemetry.io/docs/concepts/signals/traces/#span-kind). Deprecated, use `sentry.kind` instead. `otel.kind`\n *\n * Attribute Value Type: `string` {@link OTEL_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_KIND} `sentry.kind`\n *\n * @deprecated Use {@link SENTRY_KIND} (sentry.kind) instead - Deprecated in favor of sentry.kind\n * @example \"SERVER\"\n */\nexport const OTEL_KIND = 'otel.kind';\n\n/**\n * Type for {@link OTEL_KIND} otel.kind\n */\nexport type OTEL_KIND_TYPE = string;\n\n// Path: model/attributes/otel/otel__scope__name.json\n\n/**\n * The name of the instrumentation scope - (InstrumentationScope.Name in OTLP). `otel.scope.name`\n *\n * Attribute Value Type: `string` {@link OTEL_SCOPE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"io.opentelemetry.contrib.mongodb\"\n */\nexport const OTEL_SCOPE_NAME = 'otel.scope.name';\n\n/**\n * Type for {@link OTEL_SCOPE_NAME} otel.scope.name\n */\nexport type OTEL_SCOPE_NAME_TYPE = string;\n\n// Path: model/attributes/otel/otel__scope__version.json\n\n/**\n * The version of the instrumentation scope - (InstrumentationScope.Version in OTLP). `otel.scope.version`\n *\n * Attribute Value Type: `string` {@link OTEL_SCOPE_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2.4.5\"\n */\nexport const OTEL_SCOPE_VERSION = 'otel.scope.version';\n\n/**\n * Type for {@link OTEL_SCOPE_VERSION} otel.scope.version\n */\nexport type OTEL_SCOPE_VERSION_TYPE = string;\n\n// Path: model/attributes/otel/otel__status_code.json\n\n/**\n * Name of the code, either “OK” or “ERROR”. MUST NOT be set if the status code is UNSET. `otel.status_code`\n *\n * Attribute Value Type: `string` {@link OTEL_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"OK\"\n */\nexport const OTEL_STATUS_CODE = 'otel.status_code';\n\n/**\n * Type for {@link OTEL_STATUS_CODE} otel.status_code\n */\nexport type OTEL_STATUS_CODE_TYPE = string;\n\n// Path: model/attributes/otel/otel__status_description.json\n\n/**\n * Description of the Status if it has a value, otherwise not set. `otel.status_description`\n *\n * Attribute Value Type: `string` {@link OTEL_STATUS_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"resource not found\"\n */\nexport const OTEL_STATUS_DESCRIPTION = 'otel.status_description';\n\n/**\n * Type for {@link OTEL_STATUS_DESCRIPTION} otel.status_description\n */\nexport type OTEL_STATUS_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/page/page__server_rendering__type.json\n\n/**\n * Set on a pageload span. Describes how the server rendered the content of the page: to reuse it for other requests, only for this request, or a mix of both. `page.server_rendering.type`\n *\n * Attribute Value Type: `string` {@link PAGE_SERVER_RENDERING_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `static` - The server rendered the whole page to reuse it for other requests, for example a page from the build, a Next.js ISR page, or a Nuxt `swr` route.\n * - `partially_static` - The server reuses a static part of the page, and renders the other parts for this request in the same response (Next.js Partial Prerendering).\n * - `dynamic` - The server rendered the whole page only for this request. Set only when the SDK knows that the server reused no part of the page. If the SDK cannot tell `dynamic` from `partially_static`, it leaves the attribute unset.\n *\n * @example \"static\"\n * @example \"partially_static\"\n * @example \"dynamic\"\n */\nexport const PAGE_SERVER_RENDERING_TYPE = 'page.server_rendering.type';\n\n/**\n * Type for {@link PAGE_SERVER_RENDERING_TYPE} page.server_rendering.type\n */\nexport type PAGE_SERVER_RENDERING_TYPE_TYPE = string;\n\n// Path: model/attributes/params/params__[key].json\n\n/**\n * Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router. `params.<key>`\n *\n * Attribute Value Type: `string` {@link PARAMS_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link URL_PATH_PARAMETER_KEY} `url.path.parameter.<key>`, {@link URL_PATH_PARAMS_KEY} `url.path.params.<key>`\n *\n * @example \"params.id='123'\"\n */\nexport const PARAMS_KEY = 'params.<key>';\n\n/**\n * Base key for {@link PARAMS_KEY}. Use with a dynamic suffix, e.g. `${PARAMS_KEY_BASE}.${key}`.\n */\nexport const PARAMS_KEY_BASE = 'params';\n\n/**\n * Type for {@link PARAMS_KEY} params.<key>\n */\nexport type PARAMS_KEY_TYPE = string;\n\n// Path: model/attributes/performance/performance__activationStart.json\n\n/**\n * The time between initiating a navigation to a page and the browser activating the page `performance.activationStart`\n *\n * Attribute Value Type: `number` {@link PERFORMANCE_ACTIVATIONSTART_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START} `browser.performance.navigation.activation_start`\n *\n * @deprecated Use {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START} (browser.performance.navigation.activation_start) instead - The activationStart is now recorded as the browser.performance.navigation.activation_start attribute.\n * @example 1.983\n */\nexport const PERFORMANCE_ACTIVATIONSTART = 'performance.activationStart';\n\n/**\n * Type for {@link PERFORMANCE_ACTIVATIONSTART} performance.activationStart\n */\nexport type PERFORMANCE_ACTIVATIONSTART_TYPE = number;\n\n// Path: model/attributes/performance/performance__timeOrigin.json\n\n/**\n * The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated `performance.timeOrigin`\n *\n * Attribute Value Type: `number` {@link PERFORMANCE_TIMEORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_PERFORMANCE_TIME_ORIGIN} `browser.performance.time_origin`\n *\n * @deprecated Use {@link BROWSER_PERFORMANCE_TIME_ORIGIN} (browser.performance.time_origin) instead - The timeOrigin is now recorded as the browser.performance.time_origin attribute.\n * @example 1776185678.886\n */\nexport const PERFORMANCE_TIMEORIGIN = 'performance.timeOrigin';\n\n/**\n * Type for {@link PERFORMANCE_TIMEORIGIN} performance.timeOrigin\n */\nexport type PERFORMANCE_TIMEORIGIN_TYPE = number;\n\n// Path: model/attributes/port.json\n\n/**\n * The destination port for a TCP connection. `port`\n *\n * Attribute Value Type: `number` {@link PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVER_PORT} `server.port`, {@link NET_HOST_PORT} `net.host.port`\n *\n * @deprecated Use {@link SERVER_PORT} (server.port) instead - Old namespace-less attribute, to be replaced with server.port for span-first future\n * @example 1337\n */\nexport const PORT = 'port';\n\n/**\n * Type for {@link PORT} port\n */\nexport type PORT_TYPE = number;\n\n// Path: model/attributes/previous_route.json\n\n/**\n * Also used by mobile SDKs to indicate the previous route in the application. `previous_route`\n *\n * Attribute Value Type: `string` {@link PREVIOUS_ROUTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"HomeScreen\"\n */\nexport const PREVIOUS_ROUTE = 'previous_route';\n\n/**\n * Type for {@link PREVIOUS_ROUTE} previous_route\n */\nexport type PREVIOUS_ROUTE_TYPE = string;\n\n// Path: model/attributes/process/process__command_args.json\n\n/**\n * All the command arguments (including the command/executable itself) as received by the process. `process.command_args`\n *\n * Attribute Value Type: `Array<string>` {@link PROCESS_COMMAND_ARGS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"cmd/otecol\",\"--config=config.yaml\"]\n */\nexport const PROCESS_COMMAND_ARGS = 'process.command_args';\n\n/**\n * Type for {@link PROCESS_COMMAND_ARGS} process.command_args\n */\nexport type PROCESS_COMMAND_ARGS_TYPE = Array<string>;\n\n// Path: model/attributes/process/process__executable__name.json\n\n/**\n * The name of the executable that started the process. `process.executable.name`\n *\n * Attribute Value Type: `string` {@link PROCESS_EXECUTABLE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"getsentry\"\n */\nexport const PROCESS_EXECUTABLE_NAME = 'process.executable.name';\n\n/**\n * Type for {@link PROCESS_EXECUTABLE_NAME} process.executable.name\n */\nexport type PROCESS_EXECUTABLE_NAME_TYPE = string;\n\n// Path: model/attributes/process/process__pid.json\n\n/**\n * The process ID of the running process. `process.pid`\n *\n * Attribute Value Type: `number` {@link PROCESS_PID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SUBPROCESS_PID} `subprocess.pid`\n *\n * @example 12345\n */\nexport const PROCESS_PID = 'process.pid';\n\n/**\n * Type for {@link PROCESS_PID} process.pid\n */\nexport type PROCESS_PID_TYPE = number;\n\n// Path: model/attributes/process/process__runtime__description.json\n\n/**\n * An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. Equivalent to `raw_description` in the Sentry runtime context. `process.runtime.description`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RUNTIME_RAW_DESCRIPTION} `runtime.raw_description`\n *\n * @example \"Eclipse OpenJ9 VM openj9-0.21.0\"\n */\nexport const PROCESS_RUNTIME_DESCRIPTION = 'process.runtime.description';\n\n/**\n * Type for {@link PROCESS_RUNTIME_DESCRIPTION} process.runtime.description\n */\nexport type PROCESS_RUNTIME_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__engine__name.json\n\n/**\n * The name of the runtime engine. `process.runtime.engine.name`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_ENGINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"v8\"\n */\nexport const PROCESS_RUNTIME_ENGINE_NAME = 'process.runtime.engine.name';\n\n/**\n * Type for {@link PROCESS_RUNTIME_ENGINE_NAME} process.runtime.engine.name\n */\nexport type PROCESS_RUNTIME_ENGINE_NAME_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__engine__version.json\n\n/**\n * The version of the runtime engine. `process.runtime.engine.version`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_ENGINE_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"12.9.202.13-rusty\"\n */\nexport const PROCESS_RUNTIME_ENGINE_VERSION = 'process.runtime.engine.version';\n\n/**\n * Type for {@link PROCESS_RUNTIME_ENGINE_VERSION} process.runtime.engine.version\n */\nexport type PROCESS_RUNTIME_ENGINE_VERSION_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__name.json\n\n/**\n * The name of the runtime. Equivalent to `name` in the Sentry runtime context. `process.runtime.name`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RUNTIME_NAME} `runtime.name`\n *\n * @example \"node\"\n */\nexport const PROCESS_RUNTIME_NAME = 'process.runtime.name';\n\n/**\n * Type for {@link PROCESS_RUNTIME_NAME} process.runtime.name\n */\nexport type PROCESS_RUNTIME_NAME_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__version.json\n\n/**\n * The version of the runtime of this process, as returned by the runtime without modification. Equivalent to `version` in the Sentry runtime context. `process.runtime.version`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RUNTIME_VERSION} `runtime.version`\n *\n * @example \"18.04.2\"\n */\nexport const PROCESS_RUNTIME_VERSION = 'process.runtime.version';\n\n/**\n * Type for {@link PROCESS_RUNTIME_VERSION} process.runtime.version\n */\nexport type PROCESS_RUNTIME_VERSION_TYPE = string;\n\n// Path: model/attributes/profile_id.json\n\n/**\n * The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling. `profile_id`\n *\n * Attribute Value Type: `string` {@link PROFILE_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_PROFILE_ID} `sentry.profile_id`\n *\n * @deprecated Use {@link SENTRY_PROFILE_ID} (sentry.profile_id) instead\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const PROFILE_ID = 'profile_id';\n\n/**\n * Type for {@link PROFILE_ID} profile_id\n */\nexport type PROFILE_ID_TYPE = string;\n\n// Path: model/attributes/query.json\n\n/**\n * The database query being executed. `query`\n *\n * Attribute Value Type: `string` {@link QUERY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_QUERY_TEXT} `db.query.text`, {@link DB_STATEMENT} `db.statement`\n *\n * @deprecated Use {@link DB_QUERY_TEXT} (db.query.text) instead - While this attribute never specifically required parameterization, the replacement, db.query.text, does.\n * @example \"SELECT * FROM users WHERE id = $1\"\n */\nexport const QUERY = 'query';\n\n/**\n * Type for {@link QUERY} query\n */\nexport type QUERY_TYPE = string;\n\n// Path: model/attributes/query/query__[key].json\n\n/**\n * An item in a query string. Usually added by client-side routing frameworks like vue-router. `query.<key>`\n *\n * Attribute Value Type: `string` {@link QUERY_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @deprecated Use {@link URL_QUERY} (url.query) instead - Instead of sending items individually in query.<key>, they should be sent all together with url.query.\n * @example \"query.id='123'\"\n */\nexport const QUERY_KEY = 'query.<key>';\n\n/**\n * Base key for {@link QUERY_KEY}. Use with a dynamic suffix, e.g. `${QUERY_KEY_BASE}.${key}`.\n *\n * @deprecated Use {@link URL_QUERY} (url.query) instead - Instead of sending items individually in query.<key>, they should be sent all together with url.query.\n */\nexport const QUERY_KEY_BASE = 'query';\n\n/**\n * Type for {@link QUERY_KEY} query.<key>\n */\nexport type QUERY_KEY_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__architecture.json\n\n/**\n * The React Native architecture the app is running on. `new` for the New Architecture, where native modules are resolved as TurboModules through `TurboModuleRegistry`, `legacy` for the Old Architecture bridge. `react_native.architecture`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_ARCHITECTURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_ARCH} `turbo_module.arch`\n *\n * @example \"new\"\n * @example \"legacy\"\n */\nexport const REACT_NATIVE_ARCHITECTURE = 'react_native.architecture';\n\n/**\n * Type for {@link REACT_NATIVE_ARCHITECTURE} react_native.architecture\n */\nexport type REACT_NATIVE_ARCHITECTURE_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__call__count.json\n\n/**\n * The number of native module calls observed during the lifetime of the span. `react_native.module.call.count`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_CALL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOTAL_CALL_COUNT} `turbo_module.total_call_count`, {@link TURBO_MODULES_TOTAL_CALL_COUNT} `turbo_modules.total_call_count`\n *\n * @example 42\n */\nexport const REACT_NATIVE_MODULE_CALL_COUNT = 'react_native.module.call.count';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_CALL_COUNT} react_native.module.call.count\n */\nexport type REACT_NATIVE_MODULE_CALL_COUNT_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__call__distinct_count.json\n\n/**\n * The number of distinct native module and method pairs called during the lifetime of the span. Useful as a cardinality signal when the per-method breakdown has been truncated. `react_native.module.call.distinct_count`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_UNIQUE_METHODS} `turbo_module.unique_methods`, {@link TURBO_MODULES_UNIQUE_METHODS} `turbo_modules.unique_methods`\n *\n * @example 7\n */\nexport const REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT = 'react_native.module.call.distinct_count';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} react_native.module.call.distinct_count\n */\nexport type REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__duration__max.json\n\n/**\n * The duration of the slowest single native module call observed during the lifetime of the span, in milliseconds. `react_native.module.duration.max`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_DURATION_MAX_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 512.5\n */\nexport const REACT_NATIVE_MODULE_DURATION_MAX = 'react_native.module.duration.max';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_DURATION_MAX} react_native.module.duration.max\n */\nexport type REACT_NATIVE_MODULE_DURATION_MAX_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__duration__total.json\n\n/**\n * The combined wall-clock duration of all native module calls observed during the lifetime of the span, in milliseconds. Calls overlap, so this can exceed the span duration. `react_native.module.duration.total`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_DURATION_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOTAL_DURATION_MS} `turbo_module.total_duration_ms`, {@link TURBO_MODULES_TOTAL_DURATION_MS} `turbo_modules.total_duration_ms`\n *\n * @example 128.45\n */\nexport const REACT_NATIVE_MODULE_DURATION_TOTAL = 'react_native.module.duration.total';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_DURATION_TOTAL} react_native.module.duration.total\n */\nexport type REACT_NATIVE_MODULE_DURATION_TOTAL_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__error__count.json\n\n/**\n * The number of native module calls that failed during the lifetime of the span. A call counts as failed when it threw, rejected, or — on the Old Architecture bridge only — invoked its failure callback. `react_native.module.error.count`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_ERROR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOTAL_ERROR_COUNT} `turbo_module.total_error_count`, {@link TURBO_MODULES_TOTAL_ERROR_COUNT} `turbo_modules.total_error_count`\n *\n * @example 2\n */\nexport const REACT_NATIVE_MODULE_ERROR_COUNT = 'react_native.module.error.count';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_ERROR_COUNT} react_native.module.error.count\n */\nexport type REACT_NATIVE_MODULE_ERROR_COUNT_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__kind.json\n\n/**\n * Whether the native module call completed synchronously or reported completion later through a Promise or a callback. One of `sync` or `async`. `react_native.module.kind`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sync\"\n * @example \"async\"\n */\nexport const REACT_NATIVE_MODULE_KIND = 'react_native.module.kind';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_KIND} react_native.module.kind\n */\nexport type REACT_NATIVE_MODULE_KIND_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__method.json\n\n/**\n * The name of the native module method that was called. `react_native.module.method`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_METHOD_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_METHOD} `turbo_module.method`\n *\n * @example \"getUniqueId\"\n */\nexport const REACT_NATIVE_MODULE_METHOD = 'react_native.module.method';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_METHOD} react_native.module.method\n */\nexport type REACT_NATIVE_MODULE_METHOD_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__name.json\n\n/**\n * The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. `react_native.module.name`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_NAME} `turbo_module.name`\n *\n * @example \"RNDeviceInfo\"\n */\nexport const REACT_NATIVE_MODULE_NAME = 'react_native.module.name';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_NAME} react_native.module.name\n */\nexport type REACT_NATIVE_MODULE_NAME_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__top__duration.json\n\n/**\n * The total duration attributed to `react_native.module.top.name`, in milliseconds. `react_native.module.top.duration`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_TOP_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOP_MODULE_DURATION_MS} `turbo_module.top_module_duration_ms`\n *\n * @example 87.25\n */\nexport const REACT_NATIVE_MODULE_TOP_DURATION = 'react_native.module.top.duration';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_TOP_DURATION} react_native.module.top.duration\n */\nexport type REACT_NATIVE_MODULE_TOP_DURATION_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__top__name.json\n\n/**\n * The native module and method that accounted for the most total duration during the lifetime of the span, formatted as `<module>.<method>`. `react_native.module.top.name`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_TOP_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOP_MODULE} `turbo_module.top_module`\n *\n * @example \"RNDeviceInfo.getUniqueId\"\n */\nexport const REACT_NATIVE_MODULE_TOP_NAME = 'react_native.module.top.name';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_TOP_NAME} react_native.module.top.name\n */\nexport type REACT_NATIVE_MODULE_TOP_NAME_TYPE = string;\n\n// Path: model/attributes/react/react__version.json\n\n/**\n * The version of the React framework `react.version`\n *\n * Attribute Value Type: `string` {@link REACT_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"18.2.0\"\n */\nexport const REACT_VERSION = 'react.version';\n\n/**\n * Type for {@link REACT_VERSION} react.version\n */\nexport type REACT_VERSION_TYPE = string;\n\n// Path: model/attributes/redis/redis__command.json\n\n/**\n * The name of the Redis operation being executed. `redis.command`\n *\n * Attribute Value Type: `string` {@link REDIS_COMMAND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUDFLARE_D1_QUERY_TYPE} `cloudflare.d1.query_type`, {@link DB_OPERATION_NAME} `db.operation.name`, {@link DB_OPERATION} `db.operation`\n *\n * @deprecated Use {@link DB_OPERATION_NAME} (db.operation.name) instead\n * @example \"SELECT\"\n */\nexport const REDIS_COMMAND = 'redis.command';\n\n/**\n * Type for {@link REDIS_COMMAND} redis.command\n */\nexport type REDIS_COMMAND_TYPE = string;\n\n// Path: model/attributes/redis/redis__key.json\n\n/**\n * The key the Redis command is operating on. `redis.key`\n *\n * Attribute Value Type: `string` {@link REDIS_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_REDIS_KEY} `db.redis.key`\n *\n * @deprecated Use {@link DB_REDIS_KEY} (db.redis.key) instead - This attribute is being deprecated in favor of db.redis.key, which is the preferred replacement.\n * @example \"user:2047:city\"\n */\nexport const REDIS_KEY = 'redis.key';\n\n/**\n * Type for {@link REDIS_KEY} redis.key\n */\nexport type REDIS_KEY_TYPE = string;\n\n// Path: model/attributes/release.json\n\n/**\n * The sentry release. `release`\n *\n * Attribute Value Type: `string` {@link RELEASE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_RELEASE} `sentry.release`\n *\n * @deprecated Use {@link SENTRY_RELEASE} (sentry.release) instead\n * @example \"production\"\n */\nexport const RELEASE = 'release';\n\n/**\n * Type for {@link RELEASE} release\n */\nexport type RELEASE_TYPE = string;\n\n// Path: model/attributes/remix/remix__action_form_data__[key].json\n\n/**\n * Remix form data, <key> being the form data key, the value being the form data value. `remix.action_form_data.<key>`\n *\n * Attribute Value Type: `string` {@link REMIX_ACTION_FORM_DATA_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"http.response.header.text='test'\"\n */\nexport const REMIX_ACTION_FORM_DATA_KEY = 'remix.action_form_data.<key>';\n\n/**\n * Base key for {@link REMIX_ACTION_FORM_DATA_KEY}. Use with a dynamic suffix, e.g. `${REMIX_ACTION_FORM_DATA_KEY_BASE}.${key}`.\n */\nexport const REMIX_ACTION_FORM_DATA_KEY_BASE = 'remix.action_form_data';\n\n/**\n * Type for {@link REMIX_ACTION_FORM_DATA_KEY} remix.action_form_data.<key>\n */\nexport type REMIX_ACTION_FORM_DATA_KEY_TYPE = string;\n\n// Path: model/attributes/replayId.json\n\n/**\n * The id of the sentry replay. `replayId`\n *\n * Attribute Value Type: `string` {@link REPLAYID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_REPLAY_ID} `sentry.replay_id`\n *\n * @deprecated Use {@link SENTRY_REPLAY_ID} (sentry.replay_id) instead\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const REPLAYID = 'replayId';\n\n/**\n * Type for {@link REPLAYID} replayId\n */\nexport type REPLAYID_TYPE = string;\n\n// Path: model/attributes/replay_id.json\n\n/**\n * The id of the sentry replay. `replay_id`\n *\n * Attribute Value Type: `string` {@link REPLAY_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_REPLAY_ID} `sentry.replay_id`\n *\n * @deprecated Use {@link SENTRY_REPLAY_ID} (sentry.replay_id) instead\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const REPLAY_ID = 'replay_id';\n\n/**\n * Type for {@link REPLAY_ID} replay_id\n */\nexport type REPLAY_ID_TYPE = string;\n\n// Path: model/attributes/resource/resource__deployment__environment.json\n\n/**\n * The software deployment environment name. `resource.deployment.environment`\n *\n * Attribute Value Type: `string` {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead\n * @example \"production\"\n */\nexport const RESOURCE_DEPLOYMENT_ENVIRONMENT = 'resource.deployment.environment';\n\n/**\n * Type for {@link RESOURCE_DEPLOYMENT_ENVIRONMENT} resource.deployment.environment\n */\nexport type RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/resource/resource__deployment__environment__name.json\n\n/**\n * The software deployment environment name. `resource.deployment.environment.name`\n *\n * Attribute Value Type: `string` {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead\n * @example \"production\"\n */\nexport const RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME = 'resource.deployment.environment.name';\n\n/**\n * Type for {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME} resource.deployment.environment.name\n */\nexport type RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE = string;\n\n// Path: model/attributes/resource/resource__render_blocking_status.json\n\n/**\n * The render blocking status of the resource. `resource.render_blocking_status`\n *\n * Attribute Value Type: `string` {@link RESOURCE_RENDER_BLOCKING_STATUS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"non-blocking\"\n */\nexport const RESOURCE_RENDER_BLOCKING_STATUS = 'resource.render_blocking_status';\n\n/**\n * Type for {@link RESOURCE_RENDER_BLOCKING_STATUS} resource.render_blocking_status\n */\nexport type RESOURCE_RENDER_BLOCKING_STATUS_TYPE = string;\n\n// Path: model/attributes/route.json\n\n/**\n * The matched route, that is, the path template in the format used by the respective server framework. Also used by mobile SDKs to indicate the current route in the application. `route`\n *\n * Attribute Value Type: `string` {@link ROUTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_ROUTE} `http.route`\n *\n * @deprecated Use {@link HTTP_ROUTE} (http.route) instead\n * @example \"App\\\\Controller::indexAction\"\n */\nexport const ROUTE = 'route';\n\n/**\n * Type for {@link ROUTE} route\n */\nexport type ROUTE_TYPE = string;\n\n// Path: model/attributes/router/router__navigation__origin.json\n\n/**\n * The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise. `router.navigation.origin`\n *\n * Attribute Value Type: `string` {@link ROUTER_NAVIGATION_ORIGIN_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_ORIGIN} `navigation.origin`, {@link SENTRY_SVELTEKIT_NAVIGATION_FROM} `sentry.sveltekit.navigation.from`\n *\n * @example \"/users/:id\"\n */\nexport const ROUTER_NAVIGATION_ORIGIN = 'router.navigation.origin';\n\n/**\n * Type for {@link ROUTER_NAVIGATION_ORIGIN} router.navigation.origin\n */\nexport type ROUTER_NAVIGATION_ORIGIN_TYPE = string;\n\n// Path: model/attributes/router/router__navigation__route__id.json\n\n/**\n * The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id). `router.navigation.route.id`\n *\n * Attribute Value Type: `string` {@link ROUTER_NAVIGATION_ROUTE_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_ROUTE_ID} `navigation.route.id`\n *\n * @example \"AboutView\"\n */\nexport const ROUTER_NAVIGATION_ROUTE_ID = 'router.navigation.route.id';\n\n/**\n * Type for {@link ROUTER_NAVIGATION_ROUTE_ID} router.navigation.route.id\n */\nexport type ROUTER_NAVIGATION_ROUTE_ID_TYPE = string;\n\n// Path: model/attributes/router/router__navigation__type.json\n\n/**\n * The type of navigation done by a client-side router. `router.navigation.type`\n *\n * Attribute Value Type: `string` {@link ROUTER_NAVIGATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_TYPE} `navigation.type`, {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE} `sentry.sveltekit.navigation.type`\n *\n * @example \"router.push\"\n */\nexport const ROUTER_NAVIGATION_TYPE = 'router.navigation.type';\n\n/**\n * Type for {@link ROUTER_NAVIGATION_TYPE} router.navigation.type\n */\nexport type ROUTER_NAVIGATION_TYPE_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__grpc__status_code.json\n\n/**\n * The numeric status code of the gRPC request. `rpc.grpc.status_code`\n *\n * Attribute Value Type: `number` {@link RPC_GRPC_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE} `code`, {@link RPC_RESPONSE_STATUS_CODE} `rpc.response.status_code`\n *\n * @deprecated Use {@link RPC_RESPONSE_STATUS_CODE} (rpc.response.status_code) instead - Cannot be automatically backfilled due to type mismatch (integer vs string); rpc.grpc.status_code is a numeric gRPC status code while rpc.response.status_code is the string status name.\n * @example 2\n */\nexport const RPC_GRPC_STATUS_CODE = 'rpc.grpc.status_code';\n\n/**\n * Type for {@link RPC_GRPC_STATUS_CODE} rpc.grpc.status_code\n */\nexport type RPC_GRPC_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/rpc/rpc__method.json\n\n/**\n * The fully-qualified logical name of the method from the RPC interface perspective. `rpc.method`\n *\n * Attribute Value Type: `string` {@link RPC_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_OPERATION_NAME} `aws.operation_name`\n *\n * @example \"com.example.ExampleService/exampleMethod\"\n * @example \"GetObject\"\n */\nexport const RPC_METHOD = 'rpc.method';\n\n/**\n * Type for {@link RPC_METHOD} rpc.method\n */\nexport type RPC_METHOD_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__response__status_code.json\n\n/**\n * Status code of the RPC returned by the RPC server or generated by the client. `rpc.response.status_code`\n *\n * Attribute Value Type: `string` {@link RPC_RESPONSE_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE} `code`, {@link RPC_GRPC_STATUS_CODE} `rpc.grpc.status_code`\n *\n * @example \"DEADLINE_EXCEEDED\"\n */\nexport const RPC_RESPONSE_STATUS_CODE = 'rpc.response.status_code';\n\n/**\n * Type for {@link RPC_RESPONSE_STATUS_CODE} rpc.response.status_code\n */\nexport type RPC_RESPONSE_STATUS_CODE_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__service.json\n\n/**\n * The full (logical) name of the service being called, including its package name, if applicable. `rpc.service`\n *\n * Attribute Value Type: `string` {@link RPC_SERVICE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myService.BestService\"\n * @example \"S3\"\n * @example \"APIGateway\"\n */\nexport const RPC_SERVICE = 'rpc.service';\n\n/**\n * Type for {@link RPC_SERVICE} rpc.service\n */\nexport type RPC_SERVICE_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__system.json\n\n/**\n * A string identifying the remoting system. `rpc.system`\n *\n * Attribute Value Type: `string` {@link RPC_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RPC_SYSTEM_NAME} `rpc.system.name`\n *\n * @deprecated Use {@link RPC_SYSTEM_NAME} (rpc.system.name) instead - This attribute is being deprecated in favor of rpc.system.name, which is the OTel-aligned replacement.\n * @example \"aws-api\"\n */\nexport const RPC_SYSTEM = 'rpc.system';\n\n/**\n * Type for {@link RPC_SYSTEM} rpc.system\n */\nexport type RPC_SYSTEM_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__system__name.json\n\n/**\n * A string identifying the remoting system. `rpc.system.name`\n *\n * Attribute Value Type: `string` {@link RPC_SYSTEM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RPC_SYSTEM} `rpc.system`\n *\n * @example \"aws-api\"\n */\nexport const RPC_SYSTEM_NAME = 'rpc.system.name';\n\n/**\n * Type for {@link RPC_SYSTEM_NAME} rpc.system.name\n */\nexport type RPC_SYSTEM_NAME_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__build.json\n\n/**\n * The application build string, when it is separate from the version. `runtime.build`\n *\n * Attribute Value Type: `string` {@link RUNTIME_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute.\n * @example \"stable\"\n */\nexport const RUNTIME_BUILD = 'runtime.build';\n\n/**\n * Type for {@link RUNTIME_BUILD} runtime.build\n */\nexport type RUNTIME_BUILD_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__name.json\n\n/**\n * The name of the runtime. For example node, CPython, or rustc. `runtime.name`\n *\n * Attribute Value Type: `string` {@link RUNTIME_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_RUNTIME_NAME} `process.runtime.name`\n *\n * @deprecated Use {@link PROCESS_RUNTIME_NAME} (process.runtime.name) instead - Prefer OTel-aligned process.runtime.name\n * @example \"node\"\n */\nexport const RUNTIME_NAME = 'runtime.name';\n\n/**\n * Type for {@link RUNTIME_NAME} runtime.name\n */\nexport type RUNTIME_NAME_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__raw_description.json\n\n/**\n * Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes. `runtime.raw_description`\n *\n * Attribute Value Type: `string` {@link RUNTIME_RAW_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_RUNTIME_DESCRIPTION} `process.runtime.description`\n *\n * @deprecated Use {@link PROCESS_RUNTIME_DESCRIPTION} (process.runtime.description) instead - Prefer OTel-aligned process.runtime.description\n * @example \"Eclipse OpenJ9 VM openj9-0.21.0\"\n */\nexport const RUNTIME_RAW_DESCRIPTION = 'runtime.raw_description';\n\n/**\n * Type for {@link RUNTIME_RAW_DESCRIPTION} runtime.raw_description\n */\nexport type RUNTIME_RAW_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__version.json\n\n/**\n * The version of the runtime. `runtime.version`\n *\n * Attribute Value Type: `string` {@link RUNTIME_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_RUNTIME_VERSION} `process.runtime.version`\n *\n * @deprecated Use {@link PROCESS_RUNTIME_VERSION} (process.runtime.version) instead - Prefer OTel-aligned process.runtime.version\n * @example \"18.04.2\"\n */\nexport const RUNTIME_VERSION = 'runtime.version';\n\n/**\n * Type for {@link RUNTIME_VERSION} runtime.version\n */\nexport type RUNTIME_VERSION_TYPE = string;\n\n// Path: model/attributes/score/score__[key].json\n\n/**\n * The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`. `score.<key>`\n *\n * Attribute Value Type: `number` {@link SCORE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"score.cls=0.1723\"\n */\nexport const SCORE_KEY = 'score.<key>';\n\n/**\n * Base key for {@link SCORE_KEY}. Use with a dynamic suffix, e.g. `${SCORE_KEY_BASE}.${key}`.\n */\nexport const SCORE_KEY_BASE = 'score';\n\n/**\n * Type for {@link SCORE_KEY} score.<key>\n */\nexport type SCORE_KEY_TYPE = number;\n\n// Path: model/attributes/score/score__ratio__[key].json\n\n/**\n * The score for a web vital, normalized to a number between 0 and 1. `score.ratio.<key>`\n *\n * Attribute Value Type: `number` {@link SCORE_RATIO_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"score.ratio.inp=0.7748\"\n */\nexport const SCORE_RATIO_KEY = 'score.ratio.<key>';\n\n/**\n * Base key for {@link SCORE_RATIO_KEY}. Use with a dynamic suffix, e.g. `${SCORE_RATIO_KEY_BASE}.${key}`.\n */\nexport const SCORE_RATIO_KEY_BASE = 'score.ratio';\n\n/**\n * Type for {@link SCORE_RATIO_KEY} score.ratio.<key>\n */\nexport type SCORE_RATIO_KEY_TYPE = number;\n\n// Path: model/attributes/score/score__total.json\n\n/**\n * The total performance score of a span. This is the sum of individual weighted web vital scores (see `score.<key>`). `score.total`\n *\n * Attribute Value Type: `number` {@link SCORE_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const SCORE_TOTAL = 'score.total';\n\n/**\n * Type for {@link SCORE_TOTAL} score.total\n */\nexport type SCORE_TOTAL_TYPE = number;\n\n// Path: model/attributes/score/score__weight__[key].json\n\n/**\n * The relative weight of a web vital in a span's performance score. `score.weight.<key>`\n *\n * Attribute Value Type: `number` {@link SCORE_WEIGHT_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"score.weight.fcp=0.25\"\n */\nexport const SCORE_WEIGHT_KEY = 'score.weight.<key>';\n\n/**\n * Base key for {@link SCORE_WEIGHT_KEY}. Use with a dynamic suffix, e.g. `${SCORE_WEIGHT_KEY_BASE}.${key}`.\n */\nexport const SCORE_WEIGHT_KEY_BASE = 'score.weight';\n\n/**\n * Type for {@link SCORE_WEIGHT_KEY} score.weight.<key>\n */\nexport type SCORE_WEIGHT_KEY_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__action.json\n\n/**\n * Used as a generic attribute representing the action depending on the type of span. For instance, this is the database query operation for DB spans, and the request method for HTTP spans. `sentry.action`\n *\n * Attribute Value Type: `string` {@link SENTRY_ACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"SELECT\"\n */\nexport const SENTRY_ACTION = 'sentry.action';\n\n/**\n * Type for {@link SENTRY_ACTION} sentry.action\n */\nexport type SENTRY_ACTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__browser__name.json\n\n/**\n * The name of the browser. `sentry.browser.name`\n *\n * Attribute Value Type: `string` {@link SENTRY_BROWSER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_NAME} `browser.name`\n *\n * @deprecated Use {@link BROWSER_NAME} (browser.name) instead\n * @example \"Chrome\"\n */\nexport const SENTRY_BROWSER_NAME = 'sentry.browser.name';\n\n/**\n * Type for {@link SENTRY_BROWSER_NAME} sentry.browser.name\n */\nexport type SENTRY_BROWSER_NAME_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__browser__version.json\n\n/**\n * The version of the browser. `sentry.browser.version`\n *\n * Attribute Value Type: `string` {@link SENTRY_BROWSER_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_VERSION} `browser.version`\n *\n * @deprecated Use {@link BROWSER_VERSION} (browser.version) instead\n * @example \"120.0.6099.130\"\n */\nexport const SENTRY_BROWSER_VERSION = 'sentry.browser.version';\n\n/**\n * Type for {@link SENTRY_BROWSER_VERSION} sentry.browser.version\n */\nexport type SENTRY_BROWSER_VERSION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__cancellation_reason.json\n\n/**\n * The reason why a span ended early. `sentry.cancellation_reason`\n *\n * Attribute Value Type: `string` {@link SENTRY_CANCELLATION_REASON_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"document.hidden\"\n */\nexport const SENTRY_CANCELLATION_REASON = 'sentry.cancellation_reason';\n\n/**\n * Type for {@link SENTRY_CANCELLATION_REASON} sentry.cancellation_reason\n */\nexport type SENTRY_CANCELLATION_REASON_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__category.json\n\n/**\n * The high-level category of a span, derived from the span operation or span attributes. This categorizes spans by their general purpose (e.g., database, HTTP, UI). `sentry.category`\n *\n * Attribute Value Type: `string` {@link SENTRY_CATEGORY_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `ai`\n * - `ai.pipeline`\n * - `app`\n * - `browser`\n * - `cache`\n * - `console`\n * - `db`\n * - `event`\n * - `file`\n * - `function.aws`\n * - `function.azure`\n * - `function.gcp`\n * - `function.nextjs`\n * - `function.remix`\n * - `graphql`\n * - `grpc`\n * - `http`\n * - `measure`\n * - `middleware`\n * - `navigation`\n * - `object`\n * - `pageload`\n * - `queue`\n * - `resource`\n * - `rpc`\n * - `serialize`\n * - `subprocess`\n * - `template`\n * - `topic`\n * - `ui`\n * - `ui.angular`\n * - `ui.ember`\n * - `ui.react`\n * - `ui.svelte`\n * - `ui.vue`\n * - `view`\n * - `websocket`\n *\n * @example \"db\"\n */\nexport const SENTRY_CATEGORY = 'sentry.category';\n\n/**\n * Type for {@link SENTRY_CATEGORY} sentry.category\n */\nexport type SENTRY_CATEGORY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__client_sample_rate.json\n\n/**\n * Rate at which a span was sampled in the SDK. `sentry.client_sample_rate`\n *\n * Attribute Value Type: `number` {@link SENTRY_CLIENT_SAMPLE_RATE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.5\n */\nexport const SENTRY_CLIENT_SAMPLE_RATE = 'sentry.client_sample_rate';\n\n/**\n * Type for {@link SENTRY_CLIENT_SAMPLE_RATE} sentry.client_sample_rate\n */\nexport type SENTRY_CLIENT_SAMPLE_RATE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__description.json\n\n/**\n * The human-readable description of a span. `sentry.description`\n *\n * Attribute Value Type: `string` {@link SENTRY_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"index view query\"\n */\nexport const SENTRY_DESCRIPTION = 'sentry.description';\n\n/**\n * Type for {@link SENTRY_DESCRIPTION} sentry.description\n */\nexport type SENTRY_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dist.json\n\n/**\n * The sentry dist. `sentry.dist`\n *\n * Attribute Value Type: `string` {@link SENTRY_DIST_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DIST} `dist`\n *\n * @example \"1.0\"\n */\nexport const SENTRY_DIST = 'sentry.dist';\n\n/**\n * Type for {@link SENTRY_DIST} sentry.dist\n */\nexport type SENTRY_DIST_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__domain.json\n\n/**\n * Used as a generic attribute representing the domain depending on the type of span. For instance, this is the collection/table name for database spans, and the server address for HTTP spans. `sentry.domain`\n *\n * Attribute Value Type: `string` {@link SENTRY_DOMAIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"example.com\"\n */\nexport const SENTRY_DOMAIN = 'sentry.domain';\n\n/**\n * Type for {@link SENTRY_DOMAIN} sentry.domain\n */\nexport type SENTRY_DOMAIN_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__environment.json\n\n/**\n * The environment from the dynamic sampling context. `sentry.dsc.environment`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"prod\"\n */\nexport const SENTRY_DSC_ENVIRONMENT = 'sentry.dsc.environment';\n\n/**\n * Type for {@link SENTRY_DSC_ENVIRONMENT} sentry.dsc.environment\n */\nexport type SENTRY_DSC_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__project_id.json\n\n/**\n * The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion. `sentry.dsc.project_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_PROJECT_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"12345\"\n */\nexport const SENTRY_DSC_PROJECT_ID = 'sentry.dsc.project_id';\n\n/**\n * Type for {@link SENTRY_DSC_PROJECT_ID} sentry.dsc.project_id\n */\nexport type SENTRY_DSC_PROJECT_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__public_key.json\n\n/**\n * The public key from the dynamic sampling context. `sentry.dsc.public_key`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_PUBLIC_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"c51734c603c4430eb57cb0a5728a479d\"\n */\nexport const SENTRY_DSC_PUBLIC_KEY = 'sentry.dsc.public_key';\n\n/**\n * Type for {@link SENTRY_DSC_PUBLIC_KEY} sentry.dsc.public_key\n */\nexport type SENTRY_DSC_PUBLIC_KEY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__release.json\n\n/**\n * The release identifier from the dynamic sampling context. `sentry.dsc.release`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_RELEASE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"frontend@e8211be71b214afab5b85de4b4c54be3714952bb\"\n */\nexport const SENTRY_DSC_RELEASE = 'sentry.dsc.release';\n\n/**\n * Type for {@link SENTRY_DSC_RELEASE} sentry.dsc.release\n */\nexport type SENTRY_DSC_RELEASE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__sampled.json\n\n/**\n * Whether the event was sampled according to the dynamic sampling context. `sentry.dsc.sampled`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_DSC_SAMPLED_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example true\n */\nexport const SENTRY_DSC_SAMPLED = 'sentry.dsc.sampled';\n\n/**\n * Type for {@link SENTRY_DSC_SAMPLED} sentry.dsc.sampled\n */\nexport type SENTRY_DSC_SAMPLED_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__dsc__sample_rate.json\n\n/**\n * The sample rate from the dynamic sampling context. `sentry.dsc.sample_rate`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_SAMPLE_RATE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"1.0\"\n */\nexport const SENTRY_DSC_SAMPLE_RATE = 'sentry.dsc.sample_rate';\n\n/**\n * Type for {@link SENTRY_DSC_SAMPLE_RATE} sentry.dsc.sample_rate\n */\nexport type SENTRY_DSC_SAMPLE_RATE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__trace_id.json\n\n/**\n * The trace ID from the dynamic sampling context. `sentry.dsc.trace_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_TRACE_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"047372980460430cbc78d9779df33a46\"\n */\nexport const SENTRY_DSC_TRACE_ID = 'sentry.dsc.trace_id';\n\n/**\n * Type for {@link SENTRY_DSC_TRACE_ID} sentry.dsc.trace_id\n */\nexport type SENTRY_DSC_TRACE_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__transaction.json\n\n/**\n * The transaction name from the dynamic sampling context. `sentry.dsc.transaction`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_TRANSACTION_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"/issues/errors-outages/\"\n */\nexport const SENTRY_DSC_TRANSACTION = 'sentry.dsc.transaction';\n\n/**\n * Type for {@link SENTRY_DSC_TRANSACTION} sentry.dsc.transaction\n */\nexport type SENTRY_DSC_TRANSACTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__environment.json\n\n/**\n * The sentry environment. `sentry.environment`\n *\n * Attribute Value Type: `string` {@link SENTRY_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link ENVIRONMENT} `environment`\n *\n * @example \"production\"\n */\nexport const SENTRY_ENVIRONMENT = 'sentry.environment';\n\n/**\n * Type for {@link SENTRY_ENVIRONMENT} sentry.environment\n */\nexport type SENTRY_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__event__serialized_breadcrumbs.json\n\n/**\n * JSON-serialized `breadcrumbs` property from a Sentry event. `sentry.event.serialized_breadcrumbs`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_BREADCRUMBS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_BREADCRUMBS = 'sentry.event.serialized_breadcrumbs';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_BREADCRUMBS} sentry.event.serialized_breadcrumbs\n */\nexport type SENTRY_EVENT_SERIALIZED_BREADCRUMBS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__event__serialized_contexts.json\n\n/**\n * JSON-serialized `contexts` property from a Sentry event. `sentry.event.serialized_contexts`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_CONTEXTS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_CONTEXTS = 'sentry.event.serialized_contexts';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_CONTEXTS} sentry.event.serialized_contexts\n */\nexport type SENTRY_EVENT_SERIALIZED_CONTEXTS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__event__serialized_extra.json\n\n/**\n * JSON-serialized `extra` property from a Sentry event. `sentry.event.serialized_extra`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_EXTRA_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_EXTRA = 'sentry.event.serialized_extra';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_EXTRA} sentry.event.serialized_extra\n */\nexport type SENTRY_EVENT_SERIALIZED_EXTRA_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__event__serialized_meta.json\n\n/**\n * JSON-serialized `_meta` for the `sentry.event.serialized_*` properties from a Sentry event. `sentry.event.serialized_meta`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_META_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_META = 'sentry.event.serialized_meta';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_META} sentry.event.serialized_meta\n */\nexport type SENTRY_EVENT_SERIALIZED_META_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__exclusive_time.json\n\n/**\n * The exclusive time duration of the span in milliseconds. `sentry.exclusive_time`\n *\n * Attribute Value Type: `number` {@link SENTRY_EXCLUSIVE_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1234\n */\nexport const SENTRY_EXCLUSIVE_TIME = 'sentry.exclusive_time';\n\n/**\n * Type for {@link SENTRY_EXCLUSIVE_TIME} sentry.exclusive_time\n */\nexport type SENTRY_EXCLUSIVE_TIME_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__frames__frozen.json\n\n/**\n * The number of frozen frames rendered during the lifetime of the span. `sentry.frames.frozen`\n *\n * Attribute Value Type: `number` {@link SENTRY_FRAMES_FROZEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_FROZEN_COUNT} `app.vitals.frames.frozen.count`, {@link FRAMES_FROZEN} `frames.frozen`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_FROZEN_COUNT} (app.vitals.frames.frozen.count) instead - Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 3\n */\nexport const SENTRY_FRAMES_FROZEN = 'sentry.frames.frozen';\n\n/**\n * Type for {@link SENTRY_FRAMES_FROZEN} sentry.frames.frozen\n */\nexport type SENTRY_FRAMES_FROZEN_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__frames__slow.json\n\n/**\n * The number of slow frames rendered during the lifetime of the span. `sentry.frames.slow`\n *\n * Attribute Value Type: `number` {@link SENTRY_FRAMES_SLOW_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_SLOW_COUNT} `app.vitals.frames.slow.count`, {@link FRAMES_SLOW} `frames.slow`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_SLOW_COUNT} (app.vitals.frames.slow.count) instead - Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1\n */\nexport const SENTRY_FRAMES_SLOW = 'sentry.frames.slow';\n\n/**\n * Type for {@link SENTRY_FRAMES_SLOW} sentry.frames.slow\n */\nexport type SENTRY_FRAMES_SLOW_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__frames__total.json\n\n/**\n * The number of total frames rendered during the lifetime of the span. `sentry.frames.total`\n *\n * Attribute Value Type: `number` {@link SENTRY_FRAMES_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_TOTAL_COUNT} `app.vitals.frames.total.count`, {@link FRAMES_TOTAL} `frames.total`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_TOTAL_COUNT} (app.vitals.frames.total.count) instead - Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 60\n */\nexport const SENTRY_FRAMES_TOTAL = 'sentry.frames.total';\n\n/**\n * Type for {@link SENTRY_FRAMES_TOTAL} sentry.frames.total\n */\nexport type SENTRY_FRAMES_TOTAL_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__graphql__operation.json\n\n/**\n * Indicates the type of graphql operation, emitted by the Javascript SDK. `sentry.graphql.operation`\n *\n * Attribute Value Type: `string` {@link SENTRY_GRAPHQL_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"getUserById\"\n */\nexport const SENTRY_GRAPHQL_OPERATION = 'sentry.graphql.operation';\n\n/**\n * Type for {@link SENTRY_GRAPHQL_OPERATION} sentry.graphql.operation\n */\nexport type SENTRY_GRAPHQL_OPERATION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__group.json\n\n/**\n * Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end. `sentry.group`\n *\n * Attribute Value Type: `string` {@link SENTRY_GROUP_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const SENTRY_GROUP = 'sentry.group';\n\n/**\n * Type for {@link SENTRY_GROUP} sentry.group\n */\nexport type SENTRY_GROUP_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__http__prefetch.json\n\n/**\n * If an http request was a prefetch request. `sentry.http.prefetch`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_HTTP_PREFETCH_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_HTTP_PREFETCH = 'sentry.http.prefetch';\n\n/**\n * Type for {@link SENTRY_HTTP_PREFETCH} sentry.http.prefetch\n */\nexport type SENTRY_HTTP_PREFETCH_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__idle_span_finish_reason.json\n\n/**\n * The reason why an idle span ended early. `sentry.idle_span_finish_reason`\n *\n * Attribute Value Type: `string` {@link SENTRY_IDLE_SPAN_FINISH_REASON_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"idleTimeout\"\n */\nexport const SENTRY_IDLE_SPAN_FINISH_REASON = 'sentry.idle_span_finish_reason';\n\n/**\n * Type for {@link SENTRY_IDLE_SPAN_FINISH_REASON} sentry.idle_span_finish_reason\n */\nexport type SENTRY_IDLE_SPAN_FINISH_REASON_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__is_localhost.json\n\n/**\n * Indicates whether a telemetry item was sent on a host, device or browser on a localhost URL or IP address. `sentry.is_localhost`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_IS_LOCALHOST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example true\n * @example false\n */\nexport const SENTRY_IS_LOCALHOST = 'sentry.is_localhost';\n\n/**\n * Type for {@link SENTRY_IS_LOCALHOST} sentry.is_localhost\n */\nexport type SENTRY_IS_LOCALHOST_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__is_remote.json\n\n/**\n * Indicates whether a span's parent is remote. `sentry.is_remote`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_IS_REMOTE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_IS_REMOTE = 'sentry.is_remote';\n\n/**\n * Type for {@link SENTRY_IS_REMOTE} sentry.is_remote\n */\nexport type SENTRY_IS_REMOTE_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__kind.json\n\n/**\n * Used to clarify the relationship between parents and children, or to distinguish between spans, e.g. a `server` and `client` span with the same name. `sentry.kind`\n *\n * Attribute Value Type: `string` {@link SENTRY_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link OTEL_KIND} `otel.kind`\n *\n * @example \"client\"\n * @example \"server\"\n * @example \"producer\"\n * @example \"consumer\"\n * @example \"internal\"\n */\nexport const SENTRY_KIND = 'sentry.kind';\n\n/**\n * Type for {@link SENTRY_KIND} sentry.kind\n */\nexport type SENTRY_KIND_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__link__type.json\n\n/**\n * Set on a span link. Describes the relationship between the span and the linked span. `sentry.link.type`\n *\n * Attribute Value Type: `string` {@link SENTRY_LINK_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `previous_trace` - The linked span is the root span of the trace before this trace, for example the pageload span before a navigation span.\n * - `cache_origin` - The linked span wrote the cached value that this span reads.\n * - `message_origin` - The linked span published the queue message that this span processes.\n * - `server_request` - The linked span handled the server request that rendered the document of this pageload span. Set when the trace context arrived too late for the pageload span to continue that trace.\n *\n * @example \"previous_trace\"\n * @example \"cache_origin\"\n * @example \"message_origin\"\n * @example \"server_request\"\n */\nexport const SENTRY_LINK_TYPE = 'sentry.link.type';\n\n/**\n * Type for {@link SENTRY_LINK_TYPE} sentry.link.type\n */\nexport type SENTRY_LINK_TYPE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__main_thread.json\n\n/**\n * Whether the span or event occurred on the main thread. Computed by Relay and should not be set by SDKs. `sentry.main_thread`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_MAIN_THREAD_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_MAIN_THREAD = 'sentry.main_thread';\n\n/**\n * Type for {@link SENTRY_MAIN_THREAD} sentry.main_thread\n */\nexport type SENTRY_MAIN_THREAD_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__message__parameter__[key].json\n\n/**\n * A parameter used in the message template. <key> can either be the number that represent the parameter's position in the template string (sentry.message.parameter.0, sentry.message.parameter.1, etc) or the parameter's name (sentry.message.parameter.item_id, sentry.message.parameter.user_id, etc) `sentry.message.parameter.<key>`\n *\n * Attribute Value Type: `string` {@link SENTRY_MESSAGE_PARAMETER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sentry.message.parameter.0='123'\"\n */\nexport const SENTRY_MESSAGE_PARAMETER_KEY = 'sentry.message.parameter.<key>';\n\n/**\n * Type for {@link SENTRY_MESSAGE_PARAMETER_KEY} sentry.message.parameter.<key>\n */\nexport type SENTRY_MESSAGE_PARAMETER_KEY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__message__template.json\n\n/**\n * The parameterized template string. `sentry.message.template`\n *\n * Attribute Value Type: `string` {@link SENTRY_MESSAGE_TEMPLATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Hello, {name}!\"\n */\nexport const SENTRY_MESSAGE_TEMPLATE = 'sentry.message.template';\n\n/**\n * Type for {@link SENTRY_MESSAGE_TEMPLATE} sentry.message.template\n */\nexport type SENTRY_MESSAGE_TEMPLATE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__metric__source.json\n\n/**\n * The provenance of a metric.  For example, this can be set to indicate if a metric was generated by Relay from a span. `sentry.metric.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_METRIC_SOURCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"span\"\n */\nexport const SENTRY_METRIC_SOURCE = 'sentry.metric.source';\n\n/**\n * Type for {@link SENTRY_METRIC_SOURCE} sentry.metric.source\n */\nexport type SENTRY_METRIC_SOURCE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__mobile.json\n\n/**\n * Whether the application is using a mobile SDK. Computed by Relay and should not be set by SDKs. `sentry.mobile`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_MOBILE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_MOBILE = 'sentry.mobile';\n\n/**\n * Type for {@link SENTRY_MOBILE} sentry.mobile\n */\nexport type SENTRY_MOBILE_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__module__[key].json\n\n/**\n * A module that was loaded in the process. The key is the name of the module. `sentry.module.<key>`\n *\n * Attribute Value Type: `string` {@link SENTRY_MODULE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"sentry.module.brianium/paratest='v7.7.0'\"\n */\nexport const SENTRY_MODULE_KEY = 'sentry.module.<key>';\n\n/**\n * Base key for {@link SENTRY_MODULE_KEY}. Use with a dynamic suffix, e.g. `${SENTRY_MODULE_KEY_BASE}.${key}`.\n */\nexport const SENTRY_MODULE_KEY_BASE = 'sentry.module';\n\n/**\n * Type for {@link SENTRY_MODULE_KEY} sentry.module.<key>\n */\nexport type SENTRY_MODULE_KEY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__nextjs__ssr__function__route.json\n\n/**\n * A parameterized route for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions when the file location of the function is known. `sentry.nextjs.ssr.function.route`\n *\n * Attribute Value Type: `string` {@link SENTRY_NEXTJS_SSR_FUNCTION_ROUTE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/posts/[id]/layout\"\n */\nexport const SENTRY_NEXTJS_SSR_FUNCTION_ROUTE = 'sentry.nextjs.ssr.function.route';\n\n/**\n * Type for {@link SENTRY_NEXTJS_SSR_FUNCTION_ROUTE} sentry.nextjs.ssr.function.route\n */\nexport type SENTRY_NEXTJS_SSR_FUNCTION_ROUTE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__nextjs__ssr__function__type.json\n\n/**\n * A descriptor for a for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions. `sentry.nextjs.ssr.function.type`\n *\n * Attribute Value Type: `string` {@link SENTRY_NEXTJS_SSR_FUNCTION_TYPE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"generateMetadata\"\n */\nexport const SENTRY_NEXTJS_SSR_FUNCTION_TYPE = 'sentry.nextjs.ssr.function.type';\n\n/**\n * Type for {@link SENTRY_NEXTJS_SSR_FUNCTION_TYPE} sentry.nextjs.ssr.function.type\n */\nexport type SENTRY_NEXTJS_SSR_FUNCTION_TYPE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__normalized_db_query.json\n\n/**\n * The normalized version of `db.query.text`. `sentry.normalized_db_query`\n *\n * Attribute Value Type: `string` {@link SENTRY_NORMALIZED_DB_QUERY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"SELECT .. FROM sentry_project WHERE (project_id = %s)\"\n */\nexport const SENTRY_NORMALIZED_DB_QUERY = 'sentry.normalized_db_query';\n\n/**\n * Type for {@link SENTRY_NORMALIZED_DB_QUERY} sentry.normalized_db_query\n */\nexport type SENTRY_NORMALIZED_DB_QUERY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__normalized_db_query__hash.json\n\n/**\n * The hash of `sentry.normalized_db_query`. `sentry.normalized_db_query.hash`\n *\n * Attribute Value Type: `string` {@link SENTRY_NORMALIZED_DB_QUERY_HASH_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const SENTRY_NORMALIZED_DB_QUERY_HASH = 'sentry.normalized_db_query.hash';\n\n/**\n * Type for {@link SENTRY_NORMALIZED_DB_QUERY_HASH} sentry.normalized_db_query.hash\n */\nexport type SENTRY_NORMALIZED_DB_QUERY_HASH_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__normalized_description.json\n\n/**\n * Used as a generic attribute representing the normalized `sentry.description`. This refers to the legacy use case of `sentry.description` where it holds relevant data depending on the type of span (e.g. database query, resource url, http request description, etc). `sentry.normalized_description`\n *\n * Attribute Value Type: `string` {@link SENTRY_NORMALIZED_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"SELECT .. FROM sentry_project WHERE (project_id = %s)\"\n */\nexport const SENTRY_NORMALIZED_DESCRIPTION = 'sentry.normalized_description';\n\n/**\n * Type for {@link SENTRY_NORMALIZED_DESCRIPTION} sentry.normalized_description\n */\nexport type SENTRY_NORMALIZED_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__observed_timestamp_nanos.json\n\n/**\n * The timestamp at which an envelope was received by Relay, in nanoseconds. `sentry.observed_timestamp_nanos`\n *\n * Attribute Value Type: `string` {@link SENTRY_OBSERVED_TIMESTAMP_NANOS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1544712660300000000\"\n */\nexport const SENTRY_OBSERVED_TIMESTAMP_NANOS = 'sentry.observed_timestamp_nanos';\n\n/**\n * Type for {@link SENTRY_OBSERVED_TIMESTAMP_NANOS} sentry.observed_timestamp_nanos\n */\nexport type SENTRY_OBSERVED_TIMESTAMP_NANOS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__op.json\n\n/**\n * The operation of a span. `sentry.op`\n *\n * Attribute Value Type: `string` {@link SENTRY_OP_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"http.client\"\n */\nexport const SENTRY_OP = 'sentry.op';\n\n/**\n * Type for {@link SENTRY_OP} sentry.op\n */\nexport type SENTRY_OP_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__origin.json\n\n/**\n * The origin of the instrumentation (e.g. span, log, etc.) `sentry.origin`\n *\n * Attribute Value Type: `string` {@link SENTRY_ORIGIN_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"auto.http.otel.fastify\"\n */\nexport const SENTRY_ORIGIN = 'sentry.origin';\n\n/**\n * Type for {@link SENTRY_ORIGIN} sentry.origin\n */\nexport type SENTRY_ORIGIN_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__pageload__span_id.json\n\n/**\n * The id of the pageload span, set by web vital spans and metrics `sentry.pageload.span_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_PAGELOAD_SPAN_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"bf2c8d3df84524de\"\n */\nexport const SENTRY_PAGELOAD_SPAN_ID = 'sentry.pageload.span_id';\n\n/**\n * Type for {@link SENTRY_PAGELOAD_SPAN_ID} sentry.pageload.span_id\n */\nexport type SENTRY_PAGELOAD_SPAN_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__platform.json\n\n/**\n * The sdk platform that generated the event. `sentry.platform`\n *\n * Attribute Value Type: `string` {@link SENTRY_PLATFORM_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"php\"\n */\nexport const SENTRY_PLATFORM = 'sentry.platform';\n\n/**\n * Type for {@link SENTRY_PLATFORM} sentry.platform\n */\nexport type SENTRY_PLATFORM_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__profiler_id.json\n\n/**\n * The id of the currently running profiler (continuous profiling) `sentry.profiler_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_PROFILER_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"18779b64dd35d1a538e7ce2dd2d3fad3\"\n */\nexport const SENTRY_PROFILER_ID = 'sentry.profiler_id';\n\n/**\n * Type for {@link SENTRY_PROFILER_ID} sentry.profiler_id\n */\nexport type SENTRY_PROFILER_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__profile_id.json\n\n/**\n * The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling. `sentry.profile_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_PROFILE_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROFILE_ID} `profile_id`\n *\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const SENTRY_PROFILE_ID = 'sentry.profile_id';\n\n/**\n * Type for {@link SENTRY_PROFILE_ID} sentry.profile_id\n */\nexport type SENTRY_PROFILE_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__relay__ingress.json\n\n/**\n * How an item (span, log, &c.) entered Relay. `sentry.relay.ingress`\n *\n * Attribute Value Type: `string` {@link SENTRY_RELAY_INGRESS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"OTEL\"\n */\nexport const SENTRY_RELAY_INGRESS = 'sentry.relay.ingress';\n\n/**\n * Type for {@link SENTRY_RELAY_INGRESS} sentry.relay.ingress\n */\nexport type SENTRY_RELAY_INGRESS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__relay__pipeline.json\n\n/**\n * An internal descriptor of which processing pipeline an item went through in Relay. `sentry.relay.pipeline`\n *\n * Attribute Value Type: `string` {@link SENTRY_RELAY_PIPELINE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"span v2\"\n */\nexport const SENTRY_RELAY_PIPELINE = 'sentry.relay.pipeline';\n\n/**\n * Type for {@link SENTRY_RELAY_PIPELINE} sentry.relay.pipeline\n */\nexport type SENTRY_RELAY_PIPELINE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__release.json\n\n/**\n * The sentry release. `sentry.release`\n *\n * Attribute Value Type: `string` {@link SENTRY_RELEASE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVICE_VERSION} `service.version`, {@link RELEASE} `release`\n *\n * @example \"7.0.0\"\n */\nexport const SENTRY_RELEASE = 'sentry.release';\n\n/**\n * Type for {@link SENTRY_RELEASE} sentry.release\n */\nexport type SENTRY_RELEASE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__replay_id.json\n\n/**\n * The id of the sentry replay. `sentry.replay_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_REPLAY_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REPLAY_ID} `replay_id`, {@link REPLAYID} `replayId`\n *\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const SENTRY_REPLAY_ID = 'sentry.replay_id';\n\n/**\n * Type for {@link SENTRY_REPLAY_ID} sentry.replay_id\n */\nexport type SENTRY_REPLAY_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__replay_is_buffering.json\n\n/**\n * A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate). `sentry.replay_is_buffering`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_REPLAY_IS_BUFFERING_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_REPLAY_IS_BUFFERING = 'sentry.replay_is_buffering';\n\n/**\n * Type for {@link SENTRY_REPLAY_IS_BUFFERING} sentry.replay_is_buffering\n */\nexport type SENTRY_REPLAY_IS_BUFFERING_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__report_event.json\n\n/**\n * (Deprecated) The event that caused the SDK to report CLS or LCP (pagehide or navigation) `sentry.report_event`\n *\n * Attribute Value Type: `string` {@link SENTRY_REPORT_EVENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - The report event moved to browser.web_vital.lcp.report_event and browser.web_vital.cls.report_event, which are themselves deprecated without a replacement. No backfill required.\n * @example \"pagehide\"\n */\nexport const SENTRY_REPORT_EVENT = 'sentry.report_event';\n\n/**\n * Type for {@link SENTRY_REPORT_EVENT} sentry.report_event\n */\nexport type SENTRY_REPORT_EVENT_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sdk__integrations.json\n\n/**\n * A list of names identifying enabled integrations. The list shouldhave all enabled integrations, including default integrations. Defaultintegrations are included because different SDK releases may contain differentdefault integrations. `sentry.sdk.integrations`\n *\n * Attribute Value Type: `Array<string>` {@link SENTRY_SDK_INTEGRATIONS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"InboundFilters\",\"FunctionToString\",\"BrowserApiErrors\",\"Breadcrumbs\"]\n */\nexport const SENTRY_SDK_INTEGRATIONS = 'sentry.sdk.integrations';\n\n/**\n * Type for {@link SENTRY_SDK_INTEGRATIONS} sentry.sdk.integrations\n */\nexport type SENTRY_SDK_INTEGRATIONS_TYPE = Array<string>;\n\n// Path: model/attributes/sentry/sentry__sdk__name.json\n\n/**\n * The sentry sdk name. `sentry.sdk.name`\n *\n * Attribute Value Type: `string` {@link SENTRY_SDK_NAME_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"@sentry/react\"\n */\nexport const SENTRY_SDK_NAME = 'sentry.sdk.name';\n\n/**\n * Type for {@link SENTRY_SDK_NAME} sentry.sdk.name\n */\nexport type SENTRY_SDK_NAME_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sdk__version.json\n\n/**\n * The sentry sdk version. `sentry.sdk.version`\n *\n * Attribute Value Type: `string` {@link SENTRY_SDK_VERSION_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"7.0.0\"\n */\nexport const SENTRY_SDK_VERSION = 'sentry.sdk.version';\n\n/**\n * Type for {@link SENTRY_SDK_VERSION} sentry.sdk.version\n */\nexport type SENTRY_SDK_VERSION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__segment__id.json\n\n/**\n * The segment ID of a span `sentry.segment.id`\n *\n * Attribute Value Type: `string` {@link SENTRY_SEGMENT_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link _SENTRY_SEGMENT_ID} `sentry.segment_id`\n *\n * @example \"051581bf3cb55c13\"\n */\nexport const SENTRY_SEGMENT_ID = 'sentry.segment.id';\n\n/**\n * Type for {@link SENTRY_SEGMENT_ID} sentry.segment.id\n */\nexport type SENTRY_SEGMENT_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__segment_id.json\n\n/**\n * The segment ID of a span `sentry.segment_id`\n *\n * Attribute Value Type: `string` {@link _SENTRY_SEGMENT_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SEGMENT_ID} `sentry.segment.id`\n *\n * @deprecated Use {@link SENTRY_SEGMENT_ID} (sentry.segment.id) instead\n * @example \"051581bf3cb55c13\"\n */\nexport const _SENTRY_SEGMENT_ID = 'sentry.segment_id';\n\n/**\n * Type for {@link _SENTRY_SEGMENT_ID} sentry.segment_id\n */\nexport type _SENTRY_SEGMENT_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__segment__name.json\n\n/**\n * The segment name of a span `sentry.segment.name`\n *\n * Attribute Value Type: `string` {@link SENTRY_SEGMENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_TRANSACTION} `sentry.transaction`, {@link TRANSACTION} `transaction`\n *\n * @example \"GET /user\"\n */\nexport const SENTRY_SEGMENT_NAME = 'sentry.segment.name';\n\n/**\n * Type for {@link SENTRY_SEGMENT_NAME} sentry.segment.name\n */\nexport type SENTRY_SEGMENT_NAME_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__segment__name__source.json\n\n/**\n * The source of the segment span name. Should only be set on segment spans. `sentry.segment.name.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_SEGMENT_NAME_SOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * Well-defined Values:\n * - `custom` - Describes a name set by the user, not derived from the URL or a route pattern\n * - `url` - Describes the full URL, potentially containing identifiers\n * - `route` - Describes a parametrized route\n * - `component`\n * - `view`\n * - `task`\n *\n * @example \"route\"\n * @example \"component\"\n * @example \"view\"\n * @example \"task\"\n * @example \"custom\"\n * @example \"url\"\n */\nexport const SENTRY_SEGMENT_NAME_SOURCE = 'sentry.segment.name.source';\n\n/**\n * Type for {@link SENTRY_SEGMENT_NAME_SOURCE} sentry.segment.name.source\n */\nexport type SENTRY_SEGMENT_NAME_SOURCE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__server_sample_rate.json\n\n/**\n * Rate at which a span was sampled in Relay. `sentry.server_sample_rate`\n *\n * Attribute Value Type: `number` {@link SENTRY_SERVER_SAMPLE_RATE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.5\n */\nexport const SENTRY_SERVER_SAMPLE_RATE = 'sentry.server_sample_rate';\n\n/**\n * Type for {@link SENTRY_SERVER_SAMPLE_RATE} sentry.server_sample_rate\n */\nexport type SENTRY_SERVER_SAMPLE_RATE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__source.json\n\n/**\n * The source of a span, also referred to as transaction source. `sentry.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_SOURCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `custom`\n * - `url` - Describes the full URL, potentially containing identifiers\n * - `route` - Describes a parametrized route\n * - `component`\n * - `view`\n * - `task`\n *\n * @deprecated  - This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.\n * @example \"route\"\n */\nexport const SENTRY_SOURCE = 'sentry.source';\n\n/**\n * Type for {@link SENTRY_SOURCE} sentry.source\n */\nexport type SENTRY_SOURCE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__span__source.json\n\n/**\n * The source of a span, also referred to as transaction source. `sentry.span.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_SPAN_SOURCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `custom`\n * - `url` - Describes the full URL, potentially containing identifiers\n * - `route` - Describes a parametrized route\n * - `component`\n * - `view`\n * - `task`\n *\n * @deprecated  - This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.\n * @example \"route\"\n */\nexport const SENTRY_SPAN_SOURCE = 'sentry.span.source';\n\n/**\n * Type for {@link SENTRY_SPAN_SOURCE} sentry.span.source\n */\nexport type SENTRY_SPAN_SOURCE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__status.json\n\n/**\n * The span's status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated. `sentry.status`\n *\n * Attribute Value Type: `string` {@link SENTRY_STATUS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"ok\"\n */\nexport const SENTRY_STATUS = 'sentry.status';\n\n/**\n * Type for {@link SENTRY_STATUS} sentry.status\n */\nexport type SENTRY_STATUS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__status_code.json\n\n/**\n * The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients. `sentry.status_code`\n *\n * Attribute Value Type: `number` {@link SENTRY_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 200\n */\nexport const SENTRY_STATUS_CODE = 'sentry.status_code';\n\n/**\n * Type for {@link SENTRY_STATUS_CODE} sentry.status_code\n */\nexport type SENTRY_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__status__message.json\n\n/**\n * The from OTLP extracted status message. `sentry.status.message`\n *\n * Attribute Value Type: `string` {@link SENTRY_STATUS_MESSAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"foobar\"\n */\nexport const SENTRY_STATUS_MESSAGE = 'sentry.status.message';\n\n/**\n * Type for {@link SENTRY_STATUS_MESSAGE} sentry.status.message\n */\nexport type SENTRY_STATUS_MESSAGE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sveltekit__navigation__from.json\n\n/**\n * the navigation origin (sveltekit router) `sentry.sveltekit.navigation.from`\n *\n * Attribute Value Type: `string` {@link SENTRY_SVELTEKIT_NAVIGATION_FROM_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_ORIGIN} `navigation.origin`, {@link ROUTER_NAVIGATION_ORIGIN} `router.navigation.origin`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_ORIGIN} (router.navigation.origin) instead - Use the more generic attribute instead\n * @example \"/home\"\n */\nexport const SENTRY_SVELTEKIT_NAVIGATION_FROM = 'sentry.sveltekit.navigation.from';\n\n/**\n * Type for {@link SENTRY_SVELTEKIT_NAVIGATION_FROM} sentry.sveltekit.navigation.from\n */\nexport type SENTRY_SVELTEKIT_NAVIGATION_FROM_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sveltekit__navigation__to.json\n\n/**\n * the navigation destination `sentry.sveltekit.navigation.to`\n *\n * Attribute Value Type: `string` {@link SENTRY_SVELTEKIT_NAVIGATION_TO_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated  - the navigation destination is already covered by url.* attributes\n * @example \"/users/:id\"\n */\nexport const SENTRY_SVELTEKIT_NAVIGATION_TO = 'sentry.sveltekit.navigation.to';\n\n/**\n * Type for {@link SENTRY_SVELTEKIT_NAVIGATION_TO} sentry.sveltekit.navigation.to\n */\nexport type SENTRY_SVELTEKIT_NAVIGATION_TO_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sveltekit__navigation__type.json\n\n/**\n * The type of navigation event emitted from the sveltekit client router `sentry.sveltekit.navigation.type`\n *\n * Attribute Value Type: `string` {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_TYPE} `navigation.type`, {@link ROUTER_NAVIGATION_TYPE} `router.navigation.type`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_TYPE} (router.navigation.type) instead - Use the more generic attribute instead\n * @example \"link\"\n */\nexport const SENTRY_SVELTEKIT_NAVIGATION_TYPE = 'sentry.sveltekit.navigation.type';\n\n/**\n * Type for {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE} sentry.sveltekit.navigation.type\n */\nexport type SENTRY_SVELTEKIT_NAVIGATION_TYPE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__thread__id.json\n\n/**\n * Current \"managed\" thread ID. `sentry.thread.id`\n *\n * Attribute Value Type: `number` {@link SENTRY_THREAD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link THREAD_ID} (thread.id) instead - This attribute is being deprecated in favor of the OTel-standard thread.id\n * @example 56\n */\nexport const SENTRY_THREAD_ID = 'sentry.thread.id';\n\n/**\n * Type for {@link SENTRY_THREAD_ID} sentry.thread.id\n */\nexport type SENTRY_THREAD_ID_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__timestamp__sequence.json\n\n/**\n * A sequencing counter for deterministic ordering of logs or metrics when timestamps share the same integer millisecond. Starts at 0 on SDK initialization, increments by 1 for each captured item, and resets to 0 when the integer millisecond of the current item differs from the previous one. `sentry.timestamp.sequence`\n *\n * Attribute Value Type: `number` {@link SENTRY_TIMESTAMP_SEQUENCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n */\nexport const SENTRY_TIMESTAMP_SEQUENCE = 'sentry.timestamp.sequence';\n\n/**\n * Type for {@link SENTRY_TIMESTAMP_SEQUENCE} sentry.timestamp.sequence\n */\nexport type SENTRY_TIMESTAMP_SEQUENCE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__trace_lifecycle.json\n\n/**\n * Indicates the chosen trace lifecycle mode of the SDK (stream or static) `sentry.trace_lifecycle`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRACE_LIFECYCLE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"stream\"\n */\nexport const SENTRY_TRACE_LIFECYCLE = 'sentry.trace_lifecycle';\n\n/**\n * Type for {@link SENTRY_TRACE_LIFECYCLE} sentry.trace_lifecycle\n */\nexport type SENTRY_TRACE_LIFECYCLE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__trace__parent_span_id.json\n\n/**\n * The span id of the span that was active when the log was collected. This should not be set if there was no active span. `sentry.trace.parent_span_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRACE_PARENT_SPAN_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"b0e6f15b45c36b12\"\n */\nexport const SENTRY_TRACE_PARENT_SPAN_ID = 'sentry.trace.parent_span_id';\n\n/**\n * Type for {@link SENTRY_TRACE_PARENT_SPAN_ID} sentry.trace.parent_span_id\n */\nexport type SENTRY_TRACE_PARENT_SPAN_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__trace__status.json\n\n/**\n * The segment's status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated. `sentry.trace.status`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRACE_STATUS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"ok\"\n */\nexport const SENTRY_TRACE_STATUS = 'sentry.trace.status';\n\n/**\n * Type for {@link SENTRY_TRACE_STATUS} sentry.trace.status\n */\nexport type SENTRY_TRACE_STATUS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__transaction.json\n\n/**\n * The sentry transaction (segment name). `sentry.transaction`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRANSACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SEGMENT_NAME} `sentry.segment.name`, {@link TRANSACTION} `transaction`\n *\n * @deprecated Use {@link SENTRY_SEGMENT_NAME} (sentry.segment.name) instead - This attribute is being deprecated in favor of sentry.segment.name\n * @example \"GET /\"\n */\nexport const SENTRY_TRANSACTION = 'sentry.transaction';\n\n/**\n * Type for {@link SENTRY_TRANSACTION} sentry.transaction\n */\nexport type SENTRY_TRANSACTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__email.json\n\n/**\n * User email address. `sentry.user.email`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_EMAIL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_EMAIL} `user.email`\n *\n * @deprecated Use {@link USER_EMAIL} (user.email) instead\n */\nexport const SENTRY_USER_EMAIL = 'sentry.user.email';\n\n/**\n * Type for {@link SENTRY_USER_EMAIL} sentry.user.email\n */\nexport type SENTRY_USER_EMAIL_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__city.json\n\n/**\n * Human readable city name. `sentry.user.geo.city`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_CITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_CITY} `user.geo.city`\n *\n * @deprecated Use {@link USER_GEO_CITY} (user.geo.city) instead\n */\nexport const SENTRY_USER_GEO_CITY = 'sentry.user.geo.city';\n\n/**\n * Type for {@link SENTRY_USER_GEO_CITY} sentry.user.geo.city\n */\nexport type SENTRY_USER_GEO_CITY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__country_code.json\n\n/**\n * Two-letter country code (ISO 3166-1 alpha-2). `sentry.user.geo.country_code`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_COUNTRY_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_COUNTRY_CODE} `user.geo.country_code`\n *\n * @deprecated Use {@link USER_GEO_COUNTRY_CODE} (user.geo.country_code) instead\n */\nexport const SENTRY_USER_GEO_COUNTRY_CODE = 'sentry.user.geo.country_code';\n\n/**\n * Type for {@link SENTRY_USER_GEO_COUNTRY_CODE} sentry.user.geo.country_code\n */\nexport type SENTRY_USER_GEO_COUNTRY_CODE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__region.json\n\n/**\n * Human readable region name or code. `sentry.user.geo.region`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_REGION} `user.geo.region`\n *\n * @deprecated Use {@link USER_GEO_REGION} (user.geo.region) instead\n */\nexport const SENTRY_USER_GEO_REGION = 'sentry.user.geo.region';\n\n/**\n * Type for {@link SENTRY_USER_GEO_REGION} sentry.user.geo.region\n */\nexport type SENTRY_USER_GEO_REGION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__subdivision.json\n\n/**\n * Human readable subdivision name. `sentry.user.geo.subdivision`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_SUBDIVISION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_SUBDIVISION} `user.geo.subdivision`\n *\n * @deprecated Use {@link USER_GEO_SUBDIVISION} (user.geo.subdivision) instead\n */\nexport const SENTRY_USER_GEO_SUBDIVISION = 'sentry.user.geo.subdivision';\n\n/**\n * Type for {@link SENTRY_USER_GEO_SUBDIVISION} sentry.user.geo.subdivision\n */\nexport type SENTRY_USER_GEO_SUBDIVISION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__subregion.json\n\n/**\n * UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions. `sentry.user.geo.subregion`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_SUBREGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `5` - South America\n * - `11` - Western Africa\n * - `13` - Central America\n * - `14` - Eastern Africa\n * - `15` - Northern Africa\n * - `17` - Middle Africa\n * - `18` - Southern Africa\n * - `21` - Northern America\n * - `29` - Caribbean\n * - `30` - Eastern Asia\n * - `34` - Southern Asia\n * - `35` - South-Eastern Asia\n * - `39` - Southern Europe\n * - `53` - Australia and New Zealand\n * - `54` - Melanesia\n * - `57` - Micronesia\n * - `61` - Polynesia\n * - `143` - Central Asia\n * - `145` - Western Asia\n * - `151` - Eastern Europe\n * - `154` - Northern Europe\n * - `155` - Western Europe\n *\n * Aliases: {@link USER_GEO_SUBREGION} `user.geo.subregion`\n *\n * @deprecated Use {@link USER_GEO_SUBREGION} (user.geo.subregion) instead\n * @example \"155\"\n * @example \"21\"\n */\nexport const SENTRY_USER_GEO_SUBREGION = 'sentry.user.geo.subregion';\n\n/**\n * Type for {@link SENTRY_USER_GEO_SUBREGION} sentry.user.geo.subregion\n */\nexport type SENTRY_USER_GEO_SUBREGION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__id.json\n\n/**\n * Unique identifier of the user. `sentry.user.id`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_ID} `user.id`\n *\n * @deprecated Use {@link USER_ID} (user.id) instead\n */\nexport const SENTRY_USER_ID = 'sentry.user.id';\n\n/**\n * Type for {@link SENTRY_USER_ID} sentry.user.id\n */\nexport type SENTRY_USER_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__ip.json\n\n/**\n * The IP address of the user. `sentry.user.ip`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_IP_ADDRESS} `user.ip_address`\n *\n * @deprecated Use {@link USER_IP_ADDRESS} (user.ip_address) instead\n */\nexport const SENTRY_USER_IP = 'sentry.user.ip';\n\n/**\n * Type for {@link SENTRY_USER_IP} sentry.user.ip\n */\nexport type SENTRY_USER_IP_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__username.json\n\n/**\n * Short name or login/username of the user. `sentry.user.username`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_USERNAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_NAME} `user.name`\n *\n * @deprecated Use {@link USER_NAME} (user.name) instead\n */\nexport const SENTRY_USER_USERNAME = 'sentry.user.username';\n\n/**\n * Type for {@link SENTRY_USER_USERNAME} sentry.user.username\n */\nexport type SENTRY_USER_USERNAME_TYPE = string;\n\n// Path: model/attributes/server/server__address.json\n\n/**\n * Preferably the server domain name if available without reverse DNS lookup, or an IP address or Unix domain socket name. For compatibility, it may contain what the hostname command returns on UNIX systems, the fully qualified hostname, or another name specified by the user. `server.address`\n *\n * Attribute Value Type: `string` {@link SERVER_ADDRESS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link ADDRESS} `address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @example \"example.com\"\n */\nexport const SERVER_ADDRESS = 'server.address';\n\n/**\n * Type for {@link SERVER_ADDRESS} server.address\n */\nexport type SERVER_ADDRESS_TYPE = string;\n\n// Path: model/attributes/server/server__ext__type.json\n\n/**\n * The request lifecycle extension point where the Hapi extension function runs. `server.ext.type`\n *\n * Attribute Value Type: `string` {@link SERVER_EXT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HAPI_EXT_TYPE} `hapi.ext.type`\n *\n * @deprecated Use {@link HAPI_EXT_TYPE} (hapi.ext.type) instead - Name from the OpenTelemetry Hapi instrumentation. The `server` namespace describes the network endpoint of the server, so the attribute moves to the `hapi` namespace.\n * @example \"onRequest\"\n * @example \"onPreResponse\"\n */\nexport const SERVER_EXT_TYPE = 'server.ext.type';\n\n/**\n * Type for {@link SERVER_EXT_TYPE} server.ext.type\n */\nexport type SERVER_EXT_TYPE_TYPE = string;\n\n// Path: model/attributes/server_name.json\n\n/**\n * The name of the device. On servers and desktops, this is typically the hostname. `server_name`\n *\n * Attribute Value Type: `string` {@link SERVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - This attribute is being deprecated in favor of server.address.\n * @example \"example.com\"\n */\nexport const SERVER_NAME = 'server_name';\n\n/**\n * Type for {@link SERVER_NAME} server_name\n */\nexport type SERVER_NAME_TYPE = string;\n\n// Path: model/attributes/server/server__port.json\n\n/**\n * Server port number. `server.port`\n *\n * Attribute Value Type: `number` {@link SERVER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_HOST_PORT} `net.host.port`, {@link PORT} `port`\n *\n * @example 1337\n */\nexport const SERVER_PORT = 'server.port';\n\n/**\n * Type for {@link SERVER_PORT} server.port\n */\nexport type SERVER_PORT_TYPE = number;\n\n// Path: model/attributes/service/service__name.json\n\n/**\n * Logical name of the service. `service.name`\n *\n * Attribute Value Type: `string` {@link SERVICE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"omegastar\"\n */\nexport const SERVICE_NAME = 'service.name';\n\n/**\n * Type for {@link SERVICE_NAME} service.name\n */\nexport type SERVICE_NAME_TYPE = string;\n\n// Path: model/attributes/service/service__version.json\n\n/**\n * The version string of the service API or implementation. The format is not defined by these conventions. `service.version`\n *\n * Attribute Value Type: `string` {@link SERVICE_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_RELEASE} `sentry.release`\n *\n * @example \"5.0.0\"\n */\nexport const SERVICE_VERSION = 'service.version';\n\n/**\n * Type for {@link SERVICE_VERSION} service.version\n */\nexport type SERVICE_VERSION_TYPE = string;\n\n// Path: model/attributes/session/session__id.json\n\n/**\n * A unique id identifying the active session at the time of setting this attribute `session.id`\n *\n * Attribute Value Type: `string` {@link SESSION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"00112233-4455-6677-8899-aabbccddeeff\"\n */\nexport const SESSION_ID = 'session.id';\n\n/**\n * Type for {@link SESSION_ID} session.id\n */\nexport type SESSION_ID_TYPE = string;\n\n// Path: model/attributes/stall_percentage.json\n\n/**\n * The fraction of time the app was stalled. Only applies to React Native. This is computed by Relay. `stall_percentage`\n *\n * Attribute Value Type: `number` {@link STALL_PERCENTAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_STALL_PERCENTAGE} `app.vitals.stall.percentage`\n *\n * @deprecated Use {@link APP_VITALS_STALL_PERCENTAGE} (app.vitals.stall.percentage) instead - Replaced by app.vitals.stall.percentage to align with the app.vitals.* namespace for mobile performance attributes\n */\nexport const STALL_PERCENTAGE = 'stall_percentage';\n\n/**\n * Type for {@link STALL_PERCENTAGE} stall_percentage\n */\nexport type STALL_PERCENTAGE_TYPE = number;\n\n// Path: model/attributes/stall_total_time.json\n\n/**\n * The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay. `stall_total_time`\n *\n * Attribute Value Type: `number` {@link STALL_TOTAL_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_STALL_DURATION} `app.vitals.stall.duration`\n *\n * @deprecated Use {@link APP_VITALS_STALL_DURATION} (app.vitals.stall.duration) instead - Replaced by app.vitals.stall.duration to align with the app.vitals.* namespace for mobile performance attributes\n */\nexport const STALL_TOTAL_TIME = 'stall_total_time';\n\n/**\n * Type for {@link STALL_TOTAL_TIME} stall_total_time\n */\nexport type STALL_TOTAL_TIME_TYPE = number;\n\n// Path: model/attributes/starlette/starlette__middleware_name.json\n\n/**\n * The name of the Starlette middleware. `starlette.middleware_name`\n *\n * Attribute Value Type: `string` {@link STARLETTE_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const STARLETTE_MIDDLEWARE_NAME = 'starlette.middleware_name';\n\n/**\n * Type for {@link STARLETTE_MIDDLEWARE_NAME} starlette.middleware_name\n */\nexport type STARLETTE_MIDDLEWARE_NAME_TYPE = string;\n\n// Path: model/attributes/starlite/starlite__middleware_name.json\n\n/**\n * The name of the Starlite middleware. `starlite.middleware_name`\n *\n * Attribute Value Type: `string` {@link STARLITE_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const STARLITE_MIDDLEWARE_NAME = 'starlite.middleware_name';\n\n/**\n * Type for {@link STARLITE_MIDDLEWARE_NAME} starlite.middleware_name\n */\nexport type STARLITE_MIDDLEWARE_NAME_TYPE = string;\n\n// Path: model/attributes/state/state__type.json\n\n/**\n * The type of state management library `state.type`\n *\n * Attribute Value Type: `string` {@link STATE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"redux\"\n */\nexport const STATE_TYPE = 'state.type';\n\n/**\n * Type for {@link STATE_TYPE} state.type\n */\nexport type STATE_TYPE_TYPE = string;\n\n// Path: model/attributes/subprocess/subprocess__pid.json\n\n/**\n * The process ID of a subprocess. `subprocess.pid`\n *\n * Attribute Value Type: `number` {@link SUBPROCESS_PID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_PID} `process.pid`\n *\n * @deprecated Use {@link PROCESS_PID} (process.pid) instead - This attribute is being deprecated in favor of process.pid, which is the OTel-aligned replacement.\n * @example 12345\n */\nexport const SUBPROCESS_PID = 'subprocess.pid';\n\n/**\n * Type for {@link SUBPROCESS_PID} subprocess.pid\n */\nexport type SUBPROCESS_PID_TYPE = number;\n\n// Path: model/attributes/sveltekit/sveltekit__load__environment.json\n\n/**\n * The runtime environment in which the SvelteKit load function was executed. Known values are `'server'` and `'client'`. `sveltekit.load.environment`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_LOAD_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"server\"\n * @example \"client\"\n */\nexport const SVELTEKIT_LOAD_ENVIRONMENT = 'sveltekit.load.environment';\n\n/**\n * Type for {@link SVELTEKIT_LOAD_ENVIRONMENT} sveltekit.load.environment\n */\nexport type SVELTEKIT_LOAD_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/sveltekit/sveltekit__load__node_id.json\n\n/**\n * The path to the SvelteKit load function. `sveltekit.load.node_id`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_LOAD_NODE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CODE_FILE_PATH} `code.file.path`, {@link CODE_FILEPATH} `code.filepath`\n *\n * @example \"src/routes/users/:id/+page.server.ts\"\n */\nexport const SVELTEKIT_LOAD_NODE_ID = 'sveltekit.load.node_id';\n\n/**\n * Type for {@link SVELTEKIT_LOAD_NODE_ID} sveltekit.load.node_id\n */\nexport type SVELTEKIT_LOAD_NODE_ID_TYPE = string;\n\n// Path: model/attributes/sveltekit/sveltekit__load__node_type.json\n\n/**\n * The kind of SvelteKit load function that was executed, distinguishing page from layout and universal from server load functions. `sveltekit.load.node_type`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_LOAD_NODE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"+page.server\"\n * @example \"+layout\"\n * @example \"+layout.server\"\n */\nexport const SVELTEKIT_LOAD_NODE_TYPE = 'sveltekit.load.node_type';\n\n/**\n * Type for {@link SVELTEKIT_LOAD_NODE_TYPE} sveltekit.load.node_type\n */\nexport type SVELTEKIT_LOAD_NODE_TYPE_TYPE = string;\n\n// Path: model/attributes/sveltekit/sveltekit__tracing__original_name.json\n\n/**\n * The original span name as emitted by SvelteKit. `sveltekit.tracing.original_name`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_TRACING_ORIGINAL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sveltekit.handle.root\"\n */\nexport const SVELTEKIT_TRACING_ORIGINAL_NAME = 'sveltekit.tracing.original_name';\n\n/**\n * Type for {@link SVELTEKIT_TRACING_ORIGINAL_NAME} sveltekit.tracing.original_name\n */\nexport type SVELTEKIT_TRACING_ORIGINAL_NAME_TYPE = string;\n\n// Path: model/attributes/thread/thread__id.json\n\n/**\n * Current “managed” thread ID. `thread.id`\n *\n * Attribute Value Type: `number` {@link THREAD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 56\n */\nexport const THREAD_ID = 'thread.id';\n\n/**\n * Type for {@link THREAD_ID} thread.id\n */\nexport type THREAD_ID_TYPE = number;\n\n// Path: model/attributes/thread/thread__name.json\n\n/**\n * Current thread name. `thread.name`\n *\n * Attribute Value Type: `string` {@link THREAD_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"main\"\n */\nexport const THREAD_NAME = 'thread.name';\n\n/**\n * Type for {@link THREAD_NAME} thread.name\n */\nexport type THREAD_NAME_TYPE = string;\n\n// Path: model/attributes/timber/timber__tag.json\n\n/**\n * The log tag provided by the timber logging framework. `timber.tag`\n *\n * Attribute Value Type: `string` {@link TIMBER_TAG_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"MyTag\"\n */\nexport const TIMBER_TAG = 'timber.tag';\n\n/**\n * Type for {@link TIMBER_TAG} timber.tag\n */\nexport type TIMBER_TAG_TYPE = string;\n\n// Path: model/attributes/time_to_full_display.json\n\n/**\n * The duration of time to full display in milliseconds `time_to_full_display`\n *\n * Attribute Value Type: `number` {@link TIME_TO_FULL_DISPLAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_TTFD_VALUE} `app.vitals.ttfd.value`\n *\n * @deprecated Use {@link APP_VITALS_TTFD_VALUE} (app.vitals.ttfd.value) instead - Replaced by app.vitals.ttfd.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const TIME_TO_FULL_DISPLAY = 'time_to_full_display';\n\n/**\n * Type for {@link TIME_TO_FULL_DISPLAY} time_to_full_display\n */\nexport type TIME_TO_FULL_DISPLAY_TYPE = number;\n\n// Path: model/attributes/time_to_initial_display.json\n\n/**\n * The duration of time to initial display in milliseconds `time_to_initial_display`\n *\n * Attribute Value Type: `number` {@link TIME_TO_INITIAL_DISPLAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_TTID_VALUE} `app.vitals.ttid.value`\n *\n * @deprecated Use {@link APP_VITALS_TTID_VALUE} (app.vitals.ttid.value) instead - Replaced by app.vitals.ttid.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const TIME_TO_INITIAL_DISPLAY = 'time_to_initial_display';\n\n/**\n * Type for {@link TIME_TO_INITIAL_DISPLAY} time_to_initial_display\n */\nexport type TIME_TO_INITIAL_DISPLAY_TYPE = number;\n\n// Path: model/attributes/tls/tls__protocol__name.json\n\n/**\n * Normalized lowercase protocol name parsed from the negotiated SSL/TLS protocol version `tls.protocol.name`\n *\n * Attribute Value Type: `string` {@link TLS_PROTOCOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"tls\"\n * @example \"ssl\"\n */\nexport const TLS_PROTOCOL_NAME = 'tls.protocol.name';\n\n/**\n * Type for {@link TLS_PROTOCOL_NAME} tls.protocol.name\n */\nexport type TLS_PROTOCOL_NAME_TYPE = string;\n\n// Path: model/attributes/tls/tls__protocol__version.json\n\n/**\n * Numeric part of the version parsed from the negotiated SSL/TLS protocol version `tls.protocol.version`\n *\n * Attribute Value Type: `string` {@link TLS_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"1.2\"\n * @example \"1.3\"\n * @example \"3\"\n */\nexport const TLS_PROTOCOL_VERSION = 'tls.protocol.version';\n\n/**\n * Type for {@link TLS_PROTOCOL_VERSION} tls.protocol.version\n */\nexport type TLS_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/transaction.json\n\n/**\n * The sentry transaction (segment name). `transaction`\n *\n * Attribute Value Type: `string` {@link TRANSACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SEGMENT_NAME} `sentry.segment.name`, {@link SENTRY_TRANSACTION} `sentry.transaction`\n *\n * @deprecated Use {@link SENTRY_SEGMENT_NAME} (sentry.segment.name) instead\n * @example \"GET /\"\n */\nexport const TRANSACTION = 'transaction';\n\n/**\n * Type for {@link TRANSACTION} transaction\n */\nexport type TRANSACTION_TYPE = string;\n\n// Path: model/attributes/trpc/trpc__procedure_path.json\n\n/**\n * The path of the tRPC procedure being called `trpc.procedure_path`\n *\n * Attribute Value Type: `string` {@link TRPC_PROCEDURE_PATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user.getById\"\n */\nexport const TRPC_PROCEDURE_PATH = 'trpc.procedure_path';\n\n/**\n * Type for {@link TRPC_PROCEDURE_PATH} trpc.procedure_path\n */\nexport type TRPC_PROCEDURE_PATH_TYPE = string;\n\n// Path: model/attributes/trpc/trpc__procedure_type.json\n\n/**\n * The type of the tRPC procedure `trpc.procedure_type`\n *\n * Attribute Value Type: `string` {@link TRPC_PROCEDURE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"query\"\n */\nexport const TRPC_PROCEDURE_TYPE = 'trpc.procedure_type';\n\n/**\n * Type for {@link TRPC_PROCEDURE_TYPE} trpc.procedure_type\n */\nexport type TRPC_PROCEDURE_TYPE_TYPE = string;\n\n// Path: model/attributes/ttfb.json\n\n/**\n * The value of the recorded Time To First Byte (TTFB) web vital in milliseconds `ttfb`\n *\n * Attribute Value Type: `number` {@link TTFB_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_TTFB_VALUE} `browser.web_vital.ttfb.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_TTFB_VALUE} (browser.web_vital.ttfb.value) instead - This attribute is being deprecated in favor of browser.web_vital.ttfb.value\n * @example 194\n */\nexport const TTFB = 'ttfb';\n\n/**\n * Type for {@link TTFB} ttfb\n */\nexport type TTFB_TYPE = number;\n\n// Path: model/attributes/ttfb/ttfb__requestTime.json\n\n/**\n * The time it takes for the server to process the initial request and send the first byte of a response to the user's browser `ttfb.requestTime`\n *\n * Attribute Value Type: `number` {@link TTFB_REQUESTTIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME} `browser.web_vital.ttfb.request_time`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME} (browser.web_vital.ttfb.request_time) instead - This attribute is being deprecated in favor of browser.web_vital.ttfb.request_time\n * @example 1554.5814\n */\nexport const TTFB_REQUESTTIME = 'ttfb.requestTime';\n\n/**\n * Type for {@link TTFB_REQUESTTIME} ttfb.requestTime\n */\nexport type TTFB_REQUESTTIME_TYPE = number;\n\n// Path: model/attributes/turbo_modules/turbo_modules__total_call_count.json\n\n/**\n * The number of native module calls in the flushed call aggregate. Only applies to React Native. `turbo_modules.total_call_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_TOTAL_CALL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_COUNT} `react_native.module.call.count`, {@link TURBO_MODULE_TOTAL_CALL_COUNT} `turbo_module.total_call_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_COUNT} (react_native.module.call.count) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 42\n */\nexport const TURBO_MODULES_TOTAL_CALL_COUNT = 'turbo_modules.total_call_count';\n\n/**\n * Type for {@link TURBO_MODULES_TOTAL_CALL_COUNT} turbo_modules.total_call_count\n */\nexport type TURBO_MODULES_TOTAL_CALL_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_modules/turbo_modules__total_duration_ms.json\n\n/**\n * The combined duration of all native module calls in the flushed call aggregate, in milliseconds. Only applies to React Native. `turbo_modules.total_duration_ms`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_TOTAL_DURATION_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_DURATION_TOTAL} `react_native.module.duration.total`, {@link TURBO_MODULE_TOTAL_DURATION_MS} `turbo_module.total_duration_ms`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_DURATION_TOTAL} (react_native.module.duration.total) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 128.45\n */\nexport const TURBO_MODULES_TOTAL_DURATION_MS = 'turbo_modules.total_duration_ms';\n\n/**\n * Type for {@link TURBO_MODULES_TOTAL_DURATION_MS} turbo_modules.total_duration_ms\n */\nexport type TURBO_MODULES_TOTAL_DURATION_MS_TYPE = number;\n\n// Path: model/attributes/turbo_modules/turbo_modules__total_error_count.json\n\n/**\n * The number of failed native module calls in the flushed call aggregate. Only applies to React Native. `turbo_modules.total_error_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_TOTAL_ERROR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_ERROR_COUNT} `react_native.module.error.count`, {@link TURBO_MODULE_TOTAL_ERROR_COUNT} `turbo_module.total_error_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_ERROR_COUNT} (react_native.module.error.count) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 2\n */\nexport const TURBO_MODULES_TOTAL_ERROR_COUNT = 'turbo_modules.total_error_count';\n\n/**\n * Type for {@link TURBO_MODULES_TOTAL_ERROR_COUNT} turbo_modules.total_error_count\n */\nexport type TURBO_MODULES_TOTAL_ERROR_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_modules/turbo_modules__unique_methods.json\n\n/**\n * The number of distinct native module and method pairs in the flushed call aggregate. Only applies to React Native. `turbo_modules.unique_methods`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_UNIQUE_METHODS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} `react_native.module.call.distinct_count`, {@link TURBO_MODULE_UNIQUE_METHODS} `turbo_module.unique_methods`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} (react_native.module.call.distinct_count) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 7\n */\nexport const TURBO_MODULES_UNIQUE_METHODS = 'turbo_modules.unique_methods';\n\n/**\n * Type for {@link TURBO_MODULES_UNIQUE_METHODS} turbo_modules.unique_methods\n */\nexport type TURBO_MODULES_UNIQUE_METHODS_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__arch.json\n\n/**\n * The React Native architecture the call was observed on. `new` for a TurboModule resolved through `TurboModuleRegistry`, `legacy` for a module reached over the Old Architecture bridge. Only applies to React Native. `turbo_module.arch`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_ARCH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_ARCHITECTURE} `react_native.architecture`\n *\n * @deprecated Use {@link REACT_NATIVE_ARCHITECTURE} (react_native.architecture) instead - Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\n * @example \"new\"\n * @example \"legacy\"\n */\nexport const TURBO_MODULE_ARCH = 'turbo_module.arch';\n\n/**\n * Type for {@link TURBO_MODULE_ARCH} turbo_module.arch\n */\nexport type TURBO_MODULE_ARCH_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__method.json\n\n/**\n * The name of the native module method that was called. Only applies to React Native. `turbo_module.method`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_METHOD_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_METHOD} `react_native.module.method`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_METHOD} (react_native.module.method) instead - Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\n * @example \"getUniqueId\"\n */\nexport const TURBO_MODULE_METHOD = 'turbo_module.method';\n\n/**\n * Type for {@link TURBO_MODULE_METHOD} turbo_module.method\n */\nexport type TURBO_MODULE_METHOD_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__name.json\n\n/**\n * The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. Only applies to React Native. `turbo_module.name`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_NAME} `react_native.module.name`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_NAME} (react_native.module.name) instead - Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\n * @example \"RNDeviceInfo\"\n */\nexport const TURBO_MODULE_NAME = 'turbo_module.name';\n\n/**\n * Type for {@link TURBO_MODULE_NAME} turbo_module.name\n */\nexport type TURBO_MODULE_NAME_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__top_module.json\n\n/**\n * The native module and method that accounted for the most total duration during the lifetime of the span. Only applies to React Native. `turbo_module.top_module`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_TOP_MODULE_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_TOP_NAME} `react_native.module.top.name`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_TOP_NAME} (react_native.module.top.name) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example \"RNDeviceInfo.getUniqueId\"\n */\nexport const TURBO_MODULE_TOP_MODULE = 'turbo_module.top_module';\n\n/**\n * Type for {@link TURBO_MODULE_TOP_MODULE} turbo_module.top_module\n */\nexport type TURBO_MODULE_TOP_MODULE_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__top_module_duration_ms.json\n\n/**\n * The total duration attributed to the top native module method, in milliseconds. Only applies to React Native. `turbo_module.top_module_duration_ms`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOP_MODULE_DURATION_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_TOP_DURATION} `react_native.module.top.duration`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_TOP_DURATION} (react_native.module.top.duration) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 87.25\n */\nexport const TURBO_MODULE_TOP_MODULE_DURATION_MS = 'turbo_module.top_module_duration_ms';\n\n/**\n * Type for {@link TURBO_MODULE_TOP_MODULE_DURATION_MS} turbo_module.top_module_duration_ms\n */\nexport type TURBO_MODULE_TOP_MODULE_DURATION_MS_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__total_call_count.json\n\n/**\n * The number of native module calls observed during the lifetime of the span. Only applies to React Native. `turbo_module.total_call_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOTAL_CALL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_COUNT} `react_native.module.call.count`, {@link TURBO_MODULES_TOTAL_CALL_COUNT} `turbo_modules.total_call_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_COUNT} (react_native.module.call.count) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 42\n */\nexport const TURBO_MODULE_TOTAL_CALL_COUNT = 'turbo_module.total_call_count';\n\n/**\n * Type for {@link TURBO_MODULE_TOTAL_CALL_COUNT} turbo_module.total_call_count\n */\nexport type TURBO_MODULE_TOTAL_CALL_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__total_duration_ms.json\n\n/**\n * The combined duration of all native module calls observed during the lifetime of the span, in milliseconds. Only applies to React Native. `turbo_module.total_duration_ms`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOTAL_DURATION_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_DURATION_TOTAL} `react_native.module.duration.total`, {@link TURBO_MODULES_TOTAL_DURATION_MS} `turbo_modules.total_duration_ms`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_DURATION_TOTAL} (react_native.module.duration.total) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 128.45\n */\nexport const TURBO_MODULE_TOTAL_DURATION_MS = 'turbo_module.total_duration_ms';\n\n/**\n * Type for {@link TURBO_MODULE_TOTAL_DURATION_MS} turbo_module.total_duration_ms\n */\nexport type TURBO_MODULE_TOTAL_DURATION_MS_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__total_error_count.json\n\n/**\n * The number of native module calls that failed during the lifetime of the span. Only applies to React Native. `turbo_module.total_error_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOTAL_ERROR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_ERROR_COUNT} `react_native.module.error.count`, {@link TURBO_MODULES_TOTAL_ERROR_COUNT} `turbo_modules.total_error_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_ERROR_COUNT} (react_native.module.error.count) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 2\n */\nexport const TURBO_MODULE_TOTAL_ERROR_COUNT = 'turbo_module.total_error_count';\n\n/**\n * Type for {@link TURBO_MODULE_TOTAL_ERROR_COUNT} turbo_module.total_error_count\n */\nexport type TURBO_MODULE_TOTAL_ERROR_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__unique_methods.json\n\n/**\n * The number of distinct native module and method pairs called during the lifetime of the span. Only applies to React Native. `turbo_module.unique_methods`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_UNIQUE_METHODS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} `react_native.module.call.distinct_count`, {@link TURBO_MODULES_UNIQUE_METHODS} `turbo_modules.unique_methods`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} (react_native.module.call.distinct_count) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 7\n */\nexport const TURBO_MODULE_UNIQUE_METHODS = 'turbo_module.unique_methods';\n\n/**\n * Type for {@link TURBO_MODULE_UNIQUE_METHODS} turbo_module.unique_methods\n */\nexport type TURBO_MODULE_UNIQUE_METHODS_TYPE = number;\n\n// Path: model/attributes/type.json\n\n/**\n * More granular type of the operation happening. `type`\n *\n * Attribute Value Type: `string` {@link TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"fetch\"\n */\nexport const TYPE = 'type';\n\n/**\n * Type for {@link TYPE} type\n */\nexport type TYPE_TYPE = string;\n\n// Path: model/attributes/ui/ui__component_name.json\n\n/**\n * The name of the associated component. `ui.component_name`\n *\n * Attribute Value Type: `string` {@link UI_COMPONENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"HomeButton\"\n */\nexport const UI_COMPONENT_NAME = 'ui.component_name';\n\n/**\n * Type for {@link UI_COMPONENT_NAME} ui.component_name\n */\nexport type UI_COMPONENT_NAME_TYPE = string;\n\n// Path: model/attributes/ui/ui__contributes_to_ttfd.json\n\n/**\n * Whether the span execution contributed to the TTFD (time to fully drawn) metric. `ui.contributes_to_ttfd`\n *\n * Attribute Value Type: `boolean` {@link UI_CONTRIBUTES_TO_TTFD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const UI_CONTRIBUTES_TO_TTFD = 'ui.contributes_to_ttfd';\n\n/**\n * Type for {@link UI_CONTRIBUTES_TO_TTFD} ui.contributes_to_ttfd\n */\nexport type UI_CONTRIBUTES_TO_TTFD_TYPE = boolean;\n\n// Path: model/attributes/ui/ui__contributes_to_ttid.json\n\n/**\n * Whether the span execution contributed to the TTID (time to initial display) metric. `ui.contributes_to_ttid`\n *\n * Attribute Value Type: `boolean` {@link UI_CONTRIBUTES_TO_TTID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const UI_CONTRIBUTES_TO_TTID = 'ui.contributes_to_ttid';\n\n/**\n * Type for {@link UI_CONTRIBUTES_TO_TTID} ui.contributes_to_ttid\n */\nexport type UI_CONTRIBUTES_TO_TTID_TYPE = boolean;\n\n// Path: model/attributes/ui/ui__element__height.json\n\n/**\n * The height of the UI element (for Html in pixels) `ui.element.height`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_HEIGHT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 256\n */\nexport const UI_ELEMENT_HEIGHT = 'ui.element.height';\n\n/**\n * Type for {@link UI_ELEMENT_HEIGHT} ui.element.height\n */\nexport type UI_ELEMENT_HEIGHT_TYPE = number;\n\n// Path: model/attributes/ui/ui__element__id.json\n\n/**\n * The id of the UI element `ui.element.id`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"btn-login\"\n */\nexport const UI_ELEMENT_ID = 'ui.element.id';\n\n/**\n * Type for {@link UI_ELEMENT_ID} ui.element.id\n */\nexport type UI_ELEMENT_ID_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__identifier.json\n\n/**\n * The identifier used to measure the UI element timing `ui.element.identifier`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_IDENTIFIER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"heroImage\"\n */\nexport const UI_ELEMENT_IDENTIFIER = 'ui.element.identifier';\n\n/**\n * Type for {@link UI_ELEMENT_IDENTIFIER} ui.element.identifier\n */\nexport type UI_ELEMENT_IDENTIFIER_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__load_time.json\n\n/**\n * The loading time of a UI element (from time origin to finished loading) `ui.element.load_time`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_LOAD_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 998.2234\n */\nexport const UI_ELEMENT_LOAD_TIME = 'ui.element.load_time';\n\n/**\n * Type for {@link UI_ELEMENT_LOAD_TIME} ui.element.load_time\n */\nexport type UI_ELEMENT_LOAD_TIME_TYPE = number;\n\n// Path: model/attributes/ui/ui__element__paint_type.json\n\n/**\n * The type of element paint. Can either be 'image-paint' or 'text-paint' `ui.element.paint_type`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_PAINT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"image-paint\"\n */\nexport const UI_ELEMENT_PAINT_TYPE = 'ui.element.paint_type';\n\n/**\n * Type for {@link UI_ELEMENT_PAINT_TYPE} ui.element.paint_type\n */\nexport type UI_ELEMENT_PAINT_TYPE_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__render_time.json\n\n/**\n * The rendering time of the UI element (from time origin to finished rendering) `ui.element.render_time`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_RENDER_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1023.1124\n */\nexport const UI_ELEMENT_RENDER_TIME = 'ui.element.render_time';\n\n/**\n * Type for {@link UI_ELEMENT_RENDER_TIME} ui.element.render_time\n */\nexport type UI_ELEMENT_RENDER_TIME_TYPE = number;\n\n// Path: model/attributes/ui/ui__element__type.json\n\n/**\n * type of the UI element `ui.element.type`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"img\"\n */\nexport const UI_ELEMENT_TYPE = 'ui.element.type';\n\n/**\n * Type for {@link UI_ELEMENT_TYPE} ui.element.type\n */\nexport type UI_ELEMENT_TYPE_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__url.json\n\n/**\n * The URL of the UI element (e.g. an img src) `ui.element.url`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://assets.myapp.com/hero.png\"\n */\nexport const UI_ELEMENT_URL = 'ui.element.url';\n\n/**\n * Type for {@link UI_ELEMENT_URL} ui.element.url\n */\nexport type UI_ELEMENT_URL_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__width.json\n\n/**\n * The width of the UI element (for HTML in pixels) `ui.element.width`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_WIDTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 512\n */\nexport const UI_ELEMENT_WIDTH = 'ui.element.width';\n\n/**\n * Type for {@link UI_ELEMENT_WIDTH} ui.element.width\n */\nexport type UI_ELEMENT_WIDTH_TYPE = number;\n\n// Path: model/attributes/url.json\n\n/**\n * The URL of the resource that was fetched. `url`\n *\n * Attribute Value Type: `string` {@link URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link URL_FULL} `url.full`, {@link HTTP_URL} `http.url`, {@link AWS_REQUEST_URL} `aws.request.url`, {@link MESSAGING_URL} `messaging.url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead\n * @example \"https://example.com/test?foo=bar#buzz\"\n */\nexport const URL = 'url';\n\n/**\n * Type for {@link URL} url\n */\nexport type URL_TYPE = string;\n\n// Path: model/attributes/url/url__domain.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `url.domain`\n *\n * Attribute Value Type: `string` {@link URL_DOMAIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"example.com\"\n */\nexport const URL_DOMAIN = 'url.domain';\n\n/**\n * Type for {@link URL_DOMAIN} url.domain\n */\nexport type URL_DOMAIN_TYPE = string;\n\n// Path: model/attributes/url/url__fragment.json\n\n/**\n * The fragments present in the URI. Note that this does not contain the leading # character, while the `http.fragment` attribute does. `url.fragment`\n *\n * Attribute Value Type: `string` {@link URL_FRAGMENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"details\"\n */\nexport const URL_FRAGMENT = 'url.fragment';\n\n/**\n * Type for {@link URL_FRAGMENT} url.fragment\n */\nexport type URL_FRAGMENT_TYPE = string;\n\n// Path: model/attributes/url/url__full.json\n\n/**\n * The URL of the resource that was fetched. `url.full`\n *\n * Attribute Value Type: `string` {@link URL_FULL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_URL} `http.url`, {@link URL} `url`, {@link AWS_REQUEST_URL} `aws.request.url`, {@link MESSAGING_URL} `messaging.url`\n *\n * @example \"https://example.com/test?foo=bar#buzz\"\n */\nexport const URL_FULL = 'url.full';\n\n/**\n * Type for {@link URL_FULL} url.full\n */\nexport type URL_FULL_TYPE = string;\n\n// Path: model/attributes/url/url__path.json\n\n/**\n * The URI path component. `url.path`\n *\n * Attribute Value Type: `string` {@link URL_PATH_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"/foo\"\n */\nexport const URL_PATH = 'url.path';\n\n/**\n * Type for {@link URL_PATH} url.path\n */\nexport type URL_PATH_TYPE = string;\n\n// Path: model/attributes/url/url__path__parameter__[key].json\n\n/**\n * Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router. `url.path.parameter.<key>`\n *\n * Attribute Value Type: `string` {@link URL_PATH_PARAMETER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link PARAMS_KEY} `params.<key>`, {@link URL_PATH_PARAMS_KEY} `url.path.params.<key>`\n *\n * @example \"url.path.parameter.id='123'\"\n */\nexport const URL_PATH_PARAMETER_KEY = 'url.path.parameter.<key>';\n\n/**\n * Base key for {@link URL_PATH_PARAMETER_KEY}. Use with a dynamic suffix, e.g. `${URL_PATH_PARAMETER_KEY_BASE}.${key}`.\n */\nexport const URL_PATH_PARAMETER_KEY_BASE = 'url.path.parameter';\n\n/**\n * Type for {@link URL_PATH_PARAMETER_KEY} url.path.parameter.<key>\n */\nexport type URL_PATH_PARAMETER_KEY_TYPE = string;\n\n// Path: model/attributes/url/url__path__params__[key].json\n\n/**\n * Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router. `url.path.params.<key>`\n *\n * Attribute Value Type: `string` {@link URL_PATH_PARAMS_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link URL_PATH_PARAMETER_KEY} `url.path.parameter.<key>`, {@link PARAMS_KEY} `params.<key>`\n *\n * @deprecated Use {@link URL_PATH_PARAMETER_KEY} (url.path.parameter.<key>) instead - This attribute is being deprecated in favor of url.path.parameter.<key>.\n * @example \"url.path.params.id='123'\"\n */\nexport const URL_PATH_PARAMS_KEY = 'url.path.params.<key>';\n\n/**\n * Base key for {@link URL_PATH_PARAMS_KEY}. Use with a dynamic suffix, e.g. `${URL_PATH_PARAMS_KEY_BASE}.${key}`.\n *\n * @deprecated Use {@link URL_PATH_PARAMETER_KEY_BASE} (url.path.parameter) instead - This attribute is being deprecated in favor of url.path.parameter.<key>.\n */\nexport const URL_PATH_PARAMS_KEY_BASE = 'url.path.params';\n\n/**\n * Type for {@link URL_PATH_PARAMS_KEY} url.path.params.<key>\n */\nexport type URL_PATH_PARAMS_KEY_TYPE = string;\n\n// Path: model/attributes/url/url__port.json\n\n/**\n * Server port number. `url.port`\n *\n * Attribute Value Type: `number` {@link URL_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1337\n */\nexport const URL_PORT = 'url.port';\n\n/**\n * Type for {@link URL_PORT} url.port\n */\nexport type URL_PORT_TYPE = number;\n\n// Path: model/attributes/url/url__query.json\n\n/**\n * The query string present in the URL. Note that this does not contain the leading ? character, while the `http.query` attribute does. `url.query`\n *\n * Attribute Value Type: `string` {@link URL_QUERY_TYPE}\n *\n * Apply Scrubbing: auto - Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"foo=bar&bar=baz\"\n */\nexport const URL_QUERY = 'url.query';\n\n/**\n * Type for {@link URL_QUERY} url.query\n */\nexport type URL_QUERY_TYPE = string;\n\n// Path: model/attributes/url/url__same_origin.json\n\n/**\n * Indicates that a URL has the same origin as the current page's origin in the browser. `url.same_origin`\n *\n * Attribute Value Type: `boolean` {@link URL_SAME_ORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_SAME_ORIGIN} `http.request.same_origin`\n *\n * @deprecated Use {@link HTTP_REQUEST_SAME_ORIGIN} (http.request.same_origin) instead - This attribute is being deprecated in favor of http.request.same_origin.\n * @example true\n */\nexport const URL_SAME_ORIGIN = 'url.same_origin';\n\n/**\n * Type for {@link URL_SAME_ORIGIN} url.same_origin\n */\nexport type URL_SAME_ORIGIN_TYPE = boolean;\n\n// Path: model/attributes/url/url__scheme.json\n\n/**\n * The URI scheme component identifying the used protocol. `url.scheme`\n *\n * Attribute Value Type: `string` {@link URL_SCHEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_SCHEME} `http.scheme`\n *\n * @example \"https\"\n */\nexport const URL_SCHEME = 'url.scheme';\n\n/**\n * Type for {@link URL_SCHEME} url.scheme\n */\nexport type URL_SCHEME_TYPE = string;\n\n// Path: model/attributes/url/url__template.json\n\n/**\n * The low-cardinality template of an absolute URL path reference. `url.template`\n *\n * Attribute Value Type: `string` {@link URL_TEMPLATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"/users/{id}\"\n * @example \"/users/:id\"\n * @example \"/about\"\n */\nexport const URL_TEMPLATE = 'url.template';\n\n/**\n * Type for {@link URL_TEMPLATE} url.template\n */\nexport type URL_TEMPLATE_TYPE = string;\n\n// Path: model/attributes/user_agent/user_agent__original.json\n\n/**\n * Value of the HTTP User-Agent header sent by the client. `user_agent.original`\n *\n * Attribute Value Type: `string` {@link USER_AGENT_ORIGINAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_USER_AGENT} `http.user_agent`\n *\n * @example \"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1\"\n */\nexport const USER_AGENT_ORIGINAL = 'user_agent.original';\n\n/**\n * Type for {@link USER_AGENT_ORIGINAL} user_agent.original\n */\nexport type USER_AGENT_ORIGINAL_TYPE = string;\n\n// Path: model/attributes/user/user__email.json\n\n/**\n * User email address. `user.email`\n *\n * Attribute Value Type: `string` {@link USER_EMAIL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_EMAIL} `sentry.user.email`\n *\n * @example \"test@example.com\"\n */\nexport const USER_EMAIL = 'user.email';\n\n/**\n * Type for {@link USER_EMAIL} user.email\n */\nexport type USER_EMAIL_TYPE = string;\n\n// Path: model/attributes/user/user__full_name.json\n\n/**\n * User's full name. `user.full_name`\n *\n * Attribute Value Type: `string` {@link USER_FULL_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"John Smith\"\n */\nexport const USER_FULL_NAME = 'user.full_name';\n\n/**\n * Type for {@link USER_FULL_NAME} user.full_name\n */\nexport type USER_FULL_NAME_TYPE = string;\n\n// Path: model/attributes/user/user__geo__city.json\n\n/**\n * Human readable city name. `user.geo.city`\n *\n * Attribute Value Type: `string` {@link USER_GEO_CITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_CITY} `sentry.user.geo.city`\n *\n * @example \"Toronto\"\n */\nexport const USER_GEO_CITY = 'user.geo.city';\n\n/**\n * Type for {@link USER_GEO_CITY} user.geo.city\n */\nexport type USER_GEO_CITY_TYPE = string;\n\n// Path: model/attributes/user/user__geo__country_code.json\n\n/**\n * Two-letter country code (ISO 3166-1 alpha-2). `user.geo.country_code`\n *\n * Attribute Value Type: `string` {@link USER_GEO_COUNTRY_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_COUNTRY_CODE} `sentry.user.geo.country_code`\n *\n * @example \"CA\"\n */\nexport const USER_GEO_COUNTRY_CODE = 'user.geo.country_code';\n\n/**\n * Type for {@link USER_GEO_COUNTRY_CODE} user.geo.country_code\n */\nexport type USER_GEO_COUNTRY_CODE_TYPE = string;\n\n// Path: model/attributes/user/user__geo__region.json\n\n/**\n * Human readable region name or code. `user.geo.region`\n *\n * Attribute Value Type: `string` {@link USER_GEO_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_REGION} `sentry.user.geo.region`\n *\n * @example \"Canada\"\n */\nexport const USER_GEO_REGION = 'user.geo.region';\n\n/**\n * Type for {@link USER_GEO_REGION} user.geo.region\n */\nexport type USER_GEO_REGION_TYPE = string;\n\n// Path: model/attributes/user/user__geo__subdivision.json\n\n/**\n * Human readable subdivision name. `user.geo.subdivision`\n *\n * Attribute Value Type: `string` {@link USER_GEO_SUBDIVISION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_SUBDIVISION} `sentry.user.geo.subdivision`\n *\n * @example \"Ontario\"\n */\nexport const USER_GEO_SUBDIVISION = 'user.geo.subdivision';\n\n/**\n * Type for {@link USER_GEO_SUBDIVISION} user.geo.subdivision\n */\nexport type USER_GEO_SUBDIVISION_TYPE = string;\n\n// Path: model/attributes/user/user__geo__subregion.json\n\n/**\n * UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions. `user.geo.subregion`\n *\n * Attribute Value Type: `string` {@link USER_GEO_SUBREGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `5` - South America\n * - `11` - Western Africa\n * - `13` - Central America\n * - `14` - Eastern Africa\n * - `15` - Northern Africa\n * - `17` - Middle Africa\n * - `18` - Southern Africa\n * - `21` - Northern America\n * - `29` - Caribbean\n * - `30` - Eastern Asia\n * - `34` - Southern Asia\n * - `35` - South-Eastern Asia\n * - `39` - Southern Europe\n * - `53` - Australia and New Zealand\n * - `54` - Melanesia\n * - `57` - Micronesia\n * - `61` - Polynesia\n * - `143` - Central Asia\n * - `145` - Western Asia\n * - `151` - Eastern Europe\n * - `154` - Northern Europe\n * - `155` - Western Europe\n *\n * Aliases: {@link SENTRY_USER_GEO_SUBREGION} `sentry.user.geo.subregion`\n *\n * @example \"155\"\n * @example \"21\"\n */\nexport const USER_GEO_SUBREGION = 'user.geo.subregion';\n\n/**\n * Type for {@link USER_GEO_SUBREGION} user.geo.subregion\n */\nexport type USER_GEO_SUBREGION_TYPE = string;\n\n// Path: model/attributes/user/user__hash.json\n\n/**\n * Unique user hash to correlate information for a user in anonymized form. `user.hash`\n *\n * Attribute Value Type: `string` {@link USER_HASH_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"8ae4c2993e0f4f3b8b2d1b1f3b5e8f4d\"\n */\nexport const USER_HASH = 'user.hash';\n\n/**\n * Type for {@link USER_HASH} user.hash\n */\nexport type USER_HASH_TYPE = string;\n\n// Path: model/attributes/user/user__id.json\n\n/**\n * Unique identifier of the user. `user.id`\n *\n * Attribute Value Type: `string` {@link USER_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_ID} `sentry.user.id`\n *\n * @example \"S-1-5-21-202424912787-2692429404-2351956786-1000\"\n */\nexport const USER_ID = 'user.id';\n\n/**\n * Type for {@link USER_ID} user.id\n */\nexport type USER_ID_TYPE = string;\n\n// Path: model/attributes/user/user__ip_address.json\n\n/**\n * The IP address of the user. `user.ip_address`\n *\n * Attribute Value Type: `string` {@link USER_IP_ADDRESS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_IP} `sentry.user.ip`\n *\n * @example \"192.168.1.1\"\n */\nexport const USER_IP_ADDRESS = 'user.ip_address';\n\n/**\n * Type for {@link USER_IP_ADDRESS} user.ip_address\n */\nexport type USER_IP_ADDRESS_TYPE = string;\n\n// Path: model/attributes/user/user__name.json\n\n/**\n * Short name or login/username of the user. `user.name`\n *\n * Attribute Value Type: `string` {@link USER_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_USERNAME} `sentry.user.username`\n *\n * @example \"j.smith\"\n */\nexport const USER_NAME = 'user.name';\n\n/**\n * Type for {@link USER_NAME} user.name\n */\nexport type USER_NAME_TYPE = string;\n\n// Path: model/attributes/user/user__roles.json\n\n/**\n * Array of user roles at the time of the event. `user.roles`\n *\n * Attribute Value Type: `Array<string>` {@link USER_ROLES_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"admin\",\"editor\"]\n */\nexport const USER_ROLES = 'user.roles';\n\n/**\n * Type for {@link USER_ROLES} user.roles\n */\nexport type USER_ROLES_TYPE = Array<string>;\n\n// Path: model/attributes/vercel/vercel__ai__settings__context__[key].json\n\n/**\n * A runtime context property of a Vercel AI SDK call that the app included in telemetry through `telemetry.includeRuntimeContext`, with <key> being the top-level context property name. `vercel.ai.settings.context.<key>`\n *\n * Attribute Value Type: `string` {@link VERCEL_AI_SETTINGS_CONTEXT_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Runtime context is user-defined and can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"vercel.ai.settings.context.tenantId='acme'\"\n */\nexport const VERCEL_AI_SETTINGS_CONTEXT_KEY = 'vercel.ai.settings.context.<key>';\n\n/**\n * Base key for {@link VERCEL_AI_SETTINGS_CONTEXT_KEY}. Use with a dynamic suffix, e.g. `${VERCEL_AI_SETTINGS_CONTEXT_KEY_BASE}.${key}`.\n */\nexport const VERCEL_AI_SETTINGS_CONTEXT_KEY_BASE = 'vercel.ai.settings.context';\n\n/**\n * Type for {@link VERCEL_AI_SETTINGS_CONTEXT_KEY} vercel.ai.settings.context.<key>\n */\nexport type VERCEL_AI_SETTINGS_CONTEXT_KEY_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ai__telemetry__metadata__[key].json\n\n/**\n * Metadata passed to a Vercel AI SDK call through `experimental_telemetry.metadata`, with <key> being the metadata key name. `vercel.ai.telemetry.metadata.<key>`\n *\n * Attribute Value Type: `string` {@link VERCEL_AI_TELEMETRY_METADATA_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Metadata is user-defined and can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"vercel.ai.telemetry.metadata.tenantId='acme'\"\n */\nexport const VERCEL_AI_TELEMETRY_METADATA_KEY = 'vercel.ai.telemetry.metadata.<key>';\n\n/**\n * Base key for {@link VERCEL_AI_TELEMETRY_METADATA_KEY}. Use with a dynamic suffix, e.g. `${VERCEL_AI_TELEMETRY_METADATA_KEY_BASE}.${key}`.\n */\nexport const VERCEL_AI_TELEMETRY_METADATA_KEY_BASE = 'vercel.ai.telemetry.metadata';\n\n/**\n * Type for {@link VERCEL_AI_TELEMETRY_METADATA_KEY} vercel.ai.telemetry.metadata.<key>\n */\nexport type VERCEL_AI_TELEMETRY_METADATA_KEY_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ai__tool_call__context__[key].json\n\n/**\n * A tool context property of a Vercel AI SDK tool call that the app included in telemetry through `telemetry.includeToolsContext`, with <key> being the top-level context property name. `vercel.ai.tool_call.context.<key>`\n *\n * Attribute Value Type: `string` {@link VERCEL_AI_TOOL_CALL_CONTEXT_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Tool context is user-defined and can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"vercel.ai.tool_call.context.units='metric'\"\n */\nexport const VERCEL_AI_TOOL_CALL_CONTEXT_KEY = 'vercel.ai.tool_call.context.<key>';\n\n/**\n * Base key for {@link VERCEL_AI_TOOL_CALL_CONTEXT_KEY}. Use with a dynamic suffix, e.g. `${VERCEL_AI_TOOL_CALL_CONTEXT_KEY_BASE}.${key}`.\n */\nexport const VERCEL_AI_TOOL_CALL_CONTEXT_KEY_BASE = 'vercel.ai.tool_call.context';\n\n/**\n * Type for {@link VERCEL_AI_TOOL_CALL_CONTEXT_KEY} vercel.ai.tool_call.context.<key>\n */\nexport type VERCEL_AI_TOOL_CALL_CONTEXT_KEY_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__branch.json\n\n/**\n * Git branch name for Vercel project `vercel.branch`\n *\n * Attribute Value Type: `string` {@link VERCEL_BRANCH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"main\"\n */\nexport const VERCEL_BRANCH = 'vercel.branch';\n\n/**\n * Type for {@link VERCEL_BRANCH} vercel.branch\n */\nexport type VERCEL_BRANCH_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__build_id.json\n\n/**\n * Identifier for the Vercel build (only present on build logs) `vercel.build_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_BUILD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"bld_cotnkcr76\"\n */\nexport const VERCEL_BUILD_ID = 'vercel.build_id';\n\n/**\n * Type for {@link VERCEL_BUILD_ID} vercel.build_id\n */\nexport type VERCEL_BUILD_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__deployment_id.json\n\n/**\n * Identifier for the Vercel deployment `vercel.deployment_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_DEPLOYMENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"dpl_233NRGRjVZX1caZrXWtz5g1TAksD\"\n */\nexport const VERCEL_DEPLOYMENT_ID = 'vercel.deployment_id';\n\n/**\n * Type for {@link VERCEL_DEPLOYMENT_ID} vercel.deployment_id\n */\nexport type VERCEL_DEPLOYMENT_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__destination.json\n\n/**\n * Origin of the external content in Vercel (only on external logs) `vercel.destination`\n *\n * Attribute Value Type: `string` {@link VERCEL_DESTINATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://vitals.vercel-insights.com/v1\"\n */\nexport const VERCEL_DESTINATION = 'vercel.destination';\n\n/**\n * Type for {@link VERCEL_DESTINATION} vercel.destination\n */\nexport type VERCEL_DESTINATION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__edge_type.json\n\n/**\n * Type of edge runtime in Vercel `vercel.edge_type`\n *\n * Attribute Value Type: `string` {@link VERCEL_EDGE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"edge-function\"\n */\nexport const VERCEL_EDGE_TYPE = 'vercel.edge_type';\n\n/**\n * Type for {@link VERCEL_EDGE_TYPE} vercel.edge_type\n */\nexport type VERCEL_EDGE_TYPE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__entrypoint.json\n\n/**\n * Entrypoint for the request in Vercel `vercel.entrypoint`\n *\n * Attribute Value Type: `string` {@link VERCEL_ENTRYPOINT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"api/index.js\"\n */\nexport const VERCEL_ENTRYPOINT = 'vercel.entrypoint';\n\n/**\n * Type for {@link VERCEL_ENTRYPOINT} vercel.entrypoint\n */\nexport type VERCEL_ENTRYPOINT_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__execution_region.json\n\n/**\n * Region where the request is executed `vercel.execution_region`\n *\n * Attribute Value Type: `string` {@link VERCEL_EXECUTION_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1\"\n */\nexport const VERCEL_EXECUTION_REGION = 'vercel.execution_region';\n\n/**\n * Type for {@link VERCEL_EXECUTION_REGION} vercel.execution_region\n */\nexport type VERCEL_EXECUTION_REGION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__id.json\n\n/**\n * Unique identifier for the log entry in Vercel `vercel.id`\n *\n * Attribute Value Type: `string` {@link VERCEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1573817187330377061717300000\"\n */\nexport const VERCEL_ID = 'vercel.id';\n\n/**\n * Type for {@link VERCEL_ID} vercel.id\n */\nexport type VERCEL_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ja3_digest.json\n\n/**\n * JA3 fingerprint digest of Vercel request `vercel.ja3_digest`\n *\n * Attribute Value Type: `string` {@link VERCEL_JA3_DIGEST_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0\"\n */\nexport const VERCEL_JA3_DIGEST = 'vercel.ja3_digest';\n\n/**\n * Type for {@link VERCEL_JA3_DIGEST} vercel.ja3_digest\n */\nexport type VERCEL_JA3_DIGEST_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ja4_digest.json\n\n/**\n * JA4 fingerprint digest `vercel.ja4_digest`\n *\n * Attribute Value Type: `string` {@link VERCEL_JA4_DIGEST_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"t13d1516h2_8daaf6152771_02713d6af862\"\n */\nexport const VERCEL_JA4_DIGEST = 'vercel.ja4_digest';\n\n/**\n * Type for {@link VERCEL_JA4_DIGEST} vercel.ja4_digest\n */\nexport type VERCEL_JA4_DIGEST_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__log_type.json\n\n/**\n * Vercel log output type `vercel.log_type`\n *\n * Attribute Value Type: `string` {@link VERCEL_LOG_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"stdout\"\n */\nexport const VERCEL_LOG_TYPE = 'vercel.log_type';\n\n/**\n * Type for {@link VERCEL_LOG_TYPE} vercel.log_type\n */\nexport type VERCEL_LOG_TYPE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__path.json\n\n/**\n * Function or dynamic path of the request in Vercel. `vercel.path`\n *\n * Attribute Value Type: `string` {@link VERCEL_PATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/dynamic/[route].json\"\n */\nexport const VERCEL_PATH = 'vercel.path';\n\n/**\n * Type for {@link VERCEL_PATH} vercel.path\n */\nexport type VERCEL_PATH_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__project_id.json\n\n/**\n * Identifier for the Vercel project `vercel.project_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROJECT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"gdufoJxB6b9b1fEqr1jUtFkyavUU\"\n */\nexport const VERCEL_PROJECT_ID = 'vercel.project_id';\n\n/**\n * Type for {@link VERCEL_PROJECT_ID} vercel.project_id\n */\nexport type VERCEL_PROJECT_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__project_name.json\n\n/**\n * Name of the Vercel project `vercel.project_name`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROJECT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-app\"\n */\nexport const VERCEL_PROJECT_NAME = 'vercel.project_name';\n\n/**\n * Type for {@link VERCEL_PROJECT_NAME} vercel.project_name\n */\nexport type VERCEL_PROJECT_NAME_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__cache_id.json\n\n/**\n * Original request ID when request is served from cache `vercel.proxy.cache_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_CACHE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"pdx1::v8g4b-1744143786684-93dafbc0f70d\"\n */\nexport const VERCEL_PROXY_CACHE_ID = 'vercel.proxy.cache_id';\n\n/**\n * Type for {@link VERCEL_PROXY_CACHE_ID} vercel.proxy.cache_id\n */\nexport type VERCEL_PROXY_CACHE_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__client_ip.json\n\n/**\n * Client IP address `vercel.proxy.client_ip`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_CLIENT_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"120.75.16.101\"\n */\nexport const VERCEL_PROXY_CLIENT_IP = 'vercel.proxy.client_ip';\n\n/**\n * Type for {@link VERCEL_PROXY_CLIENT_IP} vercel.proxy.client_ip\n */\nexport type VERCEL_PROXY_CLIENT_IP_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__host.json\n\n/**\n * Hostname of the request `vercel.proxy.host`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_HOST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"test.vercel.app\"\n */\nexport const VERCEL_PROXY_HOST = 'vercel.proxy.host';\n\n/**\n * Type for {@link VERCEL_PROXY_HOST} vercel.proxy.host\n */\nexport type VERCEL_PROXY_HOST_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__lambda_region.json\n\n/**\n * Region where lambda function executed `vercel.proxy.lambda_region`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_LAMBDA_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1\"\n */\nexport const VERCEL_PROXY_LAMBDA_REGION = 'vercel.proxy.lambda_region';\n\n/**\n * Type for {@link VERCEL_PROXY_LAMBDA_REGION} vercel.proxy.lambda_region\n */\nexport type VERCEL_PROXY_LAMBDA_REGION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__method.json\n\n/**\n * HTTP method of the request `vercel.proxy.method`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"GET\"\n */\nexport const VERCEL_PROXY_METHOD = 'vercel.proxy.method';\n\n/**\n * Type for {@link VERCEL_PROXY_METHOD} vercel.proxy.method\n */\nexport type VERCEL_PROXY_METHOD_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__path.json\n\n/**\n * Request path with query parameters `vercel.proxy.path`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_PATH_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/dynamic/some-value.json?route=some-value\"\n */\nexport const VERCEL_PROXY_PATH = 'vercel.proxy.path';\n\n/**\n * Type for {@link VERCEL_PROXY_PATH} vercel.proxy.path\n */\nexport type VERCEL_PROXY_PATH_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__path_type.json\n\n/**\n * How the request was served based on its path and project configuration `vercel.proxy.path_type`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_PATH_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"func\"\n */\nexport const VERCEL_PROXY_PATH_TYPE = 'vercel.proxy.path_type';\n\n/**\n * Type for {@link VERCEL_PROXY_PATH_TYPE} vercel.proxy.path_type\n */\nexport type VERCEL_PROXY_PATH_TYPE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__path_type_variant.json\n\n/**\n * Variant of the path type `vercel.proxy.path_type_variant`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_PATH_TYPE_VARIANT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"api\"\n */\nexport const VERCEL_PROXY_PATH_TYPE_VARIANT = 'vercel.proxy.path_type_variant';\n\n/**\n * Type for {@link VERCEL_PROXY_PATH_TYPE_VARIANT} vercel.proxy.path_type_variant\n */\nexport type VERCEL_PROXY_PATH_TYPE_VARIANT_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__referer.json\n\n/**\n * Referer of the request `vercel.proxy.referer`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_REFERER_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"*.vercel.app\"\n */\nexport const VERCEL_PROXY_REFERER = 'vercel.proxy.referer';\n\n/**\n * Type for {@link VERCEL_PROXY_REFERER} vercel.proxy.referer\n */\nexport type VERCEL_PROXY_REFERER_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__region.json\n\n/**\n * Region where the request is processed `vercel.proxy.region`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1\"\n */\nexport const VERCEL_PROXY_REGION = 'vercel.proxy.region';\n\n/**\n * Type for {@link VERCEL_PROXY_REGION} vercel.proxy.region\n */\nexport type VERCEL_PROXY_REGION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__response_byte_size.json\n\n/**\n * Size of the response in bytes `vercel.proxy.response_byte_size`\n *\n * Attribute Value Type: `number` {@link VERCEL_PROXY_RESPONSE_BYTE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1024\n */\nexport const VERCEL_PROXY_RESPONSE_BYTE_SIZE = 'vercel.proxy.response_byte_size';\n\n/**\n * Type for {@link VERCEL_PROXY_RESPONSE_BYTE_SIZE} vercel.proxy.response_byte_size\n */\nexport type VERCEL_PROXY_RESPONSE_BYTE_SIZE_TYPE = number;\n\n// Path: model/attributes/vercel/vercel__proxy__scheme.json\n\n/**\n * Protocol of the request `vercel.proxy.scheme`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_SCHEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https\"\n */\nexport const VERCEL_PROXY_SCHEME = 'vercel.proxy.scheme';\n\n/**\n * Type for {@link VERCEL_PROXY_SCHEME} vercel.proxy.scheme\n */\nexport type VERCEL_PROXY_SCHEME_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__status_code.json\n\n/**\n * HTTP status code of the proxy request `vercel.proxy.status_code`\n *\n * Attribute Value Type: `number` {@link VERCEL_PROXY_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 200\n */\nexport const VERCEL_PROXY_STATUS_CODE = 'vercel.proxy.status_code';\n\n/**\n * Type for {@link VERCEL_PROXY_STATUS_CODE} vercel.proxy.status_code\n */\nexport type VERCEL_PROXY_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/vercel/vercel__proxy__timestamp.json\n\n/**\n * Unix timestamp when the proxy request was made `vercel.proxy.timestamp`\n *\n * Attribute Value Type: `number` {@link VERCEL_PROXY_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1573817250172\n */\nexport const VERCEL_PROXY_TIMESTAMP = 'vercel.proxy.timestamp';\n\n/**\n * Type for {@link VERCEL_PROXY_TIMESTAMP} vercel.proxy.timestamp\n */\nexport type VERCEL_PROXY_TIMESTAMP_TYPE = number;\n\n// Path: model/attributes/vercel/vercel__proxy__user_agent.json\n\n/**\n * User agent strings of the request `vercel.proxy.user_agent`\n *\n * Attribute Value Type: `Array<string>` {@link VERCEL_PROXY_USER_AGENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"Mozilla/5.0...\"]\n */\nexport const VERCEL_PROXY_USER_AGENT = 'vercel.proxy.user_agent';\n\n/**\n * Type for {@link VERCEL_PROXY_USER_AGENT} vercel.proxy.user_agent\n */\nexport type VERCEL_PROXY_USER_AGENT_TYPE = Array<string>;\n\n// Path: model/attributes/vercel/vercel__proxy__vercel_cache.json\n\n/**\n * Cache status sent to the browser `vercel.proxy.vercel_cache`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_VERCEL_CACHE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"REVALIDATED\"\n */\nexport const VERCEL_PROXY_VERCEL_CACHE = 'vercel.proxy.vercel_cache';\n\n/**\n * Type for {@link VERCEL_PROXY_VERCEL_CACHE} vercel.proxy.vercel_cache\n */\nexport type VERCEL_PROXY_VERCEL_CACHE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__vercel_id.json\n\n/**\n * Vercel-specific identifier `vercel.proxy.vercel_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_VERCEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1::abc123\"\n */\nexport const VERCEL_PROXY_VERCEL_ID = 'vercel.proxy.vercel_id';\n\n/**\n * Type for {@link VERCEL_PROXY_VERCEL_ID} vercel.proxy.vercel_id\n */\nexport type VERCEL_PROXY_VERCEL_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__waf_action.json\n\n/**\n * Action taken by firewall rules `vercel.proxy.waf_action`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_WAF_ACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"deny\"\n */\nexport const VERCEL_PROXY_WAF_ACTION = 'vercel.proxy.waf_action';\n\n/**\n * Type for {@link VERCEL_PROXY_WAF_ACTION} vercel.proxy.waf_action\n */\nexport type VERCEL_PROXY_WAF_ACTION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__waf_rule_id.json\n\n/**\n * ID of the firewall rule that matched `vercel.proxy.waf_rule_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_WAF_RULE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"rule_gAHz8jtSB1Gy\"\n */\nexport const VERCEL_PROXY_WAF_RULE_ID = 'vercel.proxy.waf_rule_id';\n\n/**\n * Type for {@link VERCEL_PROXY_WAF_RULE_ID} vercel.proxy.waf_rule_id\n */\nexport type VERCEL_PROXY_WAF_RULE_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__request_id.json\n\n/**\n * Identifier of the Vercel request `vercel.request_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"643af4e3-975a-4cc7-9e7a-1eda11539d90\"\n */\nexport const VERCEL_REQUEST_ID = 'vercel.request_id';\n\n/**\n * Type for {@link VERCEL_REQUEST_ID} vercel.request_id\n */\nexport type VERCEL_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__source.json\n\n/**\n * Origin of the Vercel log (build, edge, lambda, static, external, or firewall) `vercel.source`\n *\n * Attribute Value Type: `string` {@link VERCEL_SOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"build\"\n */\nexport const VERCEL_SOURCE = 'vercel.source';\n\n/**\n * Type for {@link VERCEL_SOURCE} vercel.source\n */\nexport type VERCEL_SOURCE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__status_code.json\n\n/**\n * HTTP status code of the request (-1 means no response returned and the lambda crashed) `vercel.status_code`\n *\n * Attribute Value Type: `number` {@link VERCEL_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 200\n */\nexport const VERCEL_STATUS_CODE = 'vercel.status_code';\n\n/**\n * Type for {@link VERCEL_STATUS_CODE} vercel.status_code\n */\nexport type VERCEL_STATUS_CODE_TYPE = number;\n\nexport type AttributeType =\n  | 'string'\n  | 'boolean'\n  | 'integer'\n  | 'double'\n  | 'string[]'\n  | 'boolean[]'\n  | 'integer[]'\n  | 'double[]'\n  | 'any';\n\nexport type ApplyScrubbing = 'auto' | 'manual' | 'never';\n\nexport type AttributeVisibility = 'public' | 'internal';\n\nexport interface ApplyScrubbingInfo {\n  /** How PII scrubbing should be applied to the attribute value */\n  key: ApplyScrubbing;\n  /** Reason why this scrubbing mode applies */\n  reason?: string;\n}\n\nexport type DeprecationStatus = 'backfill' | 'normalize' | 'transform';\n\nexport interface DeprecationInfo {\n  /** What this attribute was replaced with */\n  replacement?: string;\n  /** Reason for deprecation */\n  reason?: string;\n  /** How the attribute should be handled in the ingestion pipeline */\n  status?: DeprecationStatus;\n  /** Attribute transformation id to apply when status is transform */\n  transformation?: string;\n}\n\nexport interface ChangelogEntry {\n  /** The sentry-conventions release version */\n  version: string;\n  /** GitHub PR numbers */\n  prs?: number[];\n  /** Optional description of what changed */\n  description?: string;\n}\n\nexport type SearchAliasType = 'byte' | 'currency' | 'millisecond' | 'percentage' | 'second';\n\nexport interface SearchAlias {\n  /** The public name exposed in Sentry search */\n  name: string;\n  /** The type exposed by Sentry search. Defaults to the attribute's primary type if omitted */\n  type?: SearchAliasType;\n  /** Deprecated aliases still accepted in search queries */\n  deprecatedAliases?: string[];\n}\n\nexport interface AttributeMetadata {\n  /** A description of the attribute */\n  brief: string;\n  /** The type of the attribute value */\n  type: AttributeType;\n  /**\n   * Every key this attribute's value may be readable under, preferred key first.\n   *\n   * All members of a family read the same set of keys. Mutually aliased attributes each head their\n   * own chain, so those chains agree on membership but differ in which key they prefer. Only\n   * `backfill` and `normalize` deprecations join their replacement's chain,\n   * because only for those is the value rewritten onto the replacement. An attribute with any other\n   * deprecation therefore has a chain of just its own names, and the first key is not guaranteed to\n   * be non-deprecated — check `deprecation` if that matters.\n   */\n  keys: readonly string[];\n  /** How PII scrubbing should be applied to the attribute value */\n  applyScrubbing: ApplyScrubbingInfo;\n  /** Whether the attribute is defined in OpenTelemetry Semantic Conventions */\n  isInOtel: boolean;\n  /** Whether the attribute is public or internal to Sentry */\n  visibility: AttributeVisibility;\n  /** If an attribute has a dynamic suffix */\n  hasDynamicSuffix?: boolean;\n  /** An example value of the attribute */\n  example?: AttributeValue;\n  /** Example values of the attribute */\n  examples?: AttributeValue[];\n  /** If an attribute was deprecated, and what it was replaced with */\n  deprecation?: DeprecationInfo;\n  /** If there are attributes that alias to this attribute */\n  aliases?: AttributeName[];\n  /** Changelog entries tracking how this attribute has changed across versions */\n  changelog?: ChangelogEntry[];\n  /** A list of freeform notes providing additional context about how this attribute behaves, common pitfalls, or query-time nuances */\n  additionalContext?: string[];\n  /** How this attribute is exposed in Sentry search */\n  searchAlias?: SearchAlias;\n}\n\nexport const ATTRIBUTE_TYPE: Record<string, AttributeType> = {\n  address: 'string',\n  'ai.citations': 'string[]',\n  'ai.completion_tokens.used': 'integer',\n  'ai.documents': 'string[]',\n  'ai.finish_reason': 'string',\n  'ai.frequency_penalty': 'double',\n  'ai.function_call': 'string',\n  'ai.generation_id': 'string',\n  'ai.input_messages': 'string',\n  'ai.is_search_required': 'boolean',\n  'ai.metadata': 'string',\n  'ai.model.id': 'string',\n  'ai.model_id': 'string',\n  'ai.model.provider': 'string',\n  'ai.pipeline.name': 'string',\n  'ai.preamble': 'string',\n  'ai.presence_penalty': 'double',\n  'ai.prompt': 'string',\n  'ai.prompt.messages': 'string',\n  'ai.prompt_tokens.used': 'integer',\n  'ai.prompt.tools': 'string[]',\n  'ai.raw_prompting': 'boolean',\n  'ai.responses': 'string[]',\n  'ai.response_format': 'string',\n  'ai.response.id': 'string',\n  'ai.response.model': 'string',\n  'ai.response.object': 'string',\n  'ai.response.text': 'string',\n  'ai.response.timestamp': 'string',\n  'ai.response.toolCalls': 'string',\n  'ai.schema': 'string',\n  'ai.search_queries': 'string[]',\n  'ai.search_results': 'string[]',\n  'ai.seed': 'string',\n  'ai.streaming': 'boolean',\n  'ai.tags': 'string',\n  'ai.temperature': 'double',\n  'ai.texts': 'string[]',\n  'ai.toolCall.args': 'string',\n  'ai.toolCall.result': 'string',\n  'ai.tools': 'string[]',\n  'ai.tool_calls': 'string[]',\n  'ai.top_k': 'integer',\n  'ai.top_p': 'double',\n  'ai.total_cost': 'double',\n  'ai.total_tokens.used': 'integer',\n  'ai.usage.tokens': 'integer',\n  'ai.values': 'string',\n  'ai.warnings': 'string[]',\n  'angular.version': 'string',\n  'anthropic.tool_result.content': 'string',\n  'app.app_build': 'string',\n  'app.app_identifier': 'string',\n  'app.app_name': 'string',\n  'app.app_start_time': 'string',\n  'app.app_version': 'string',\n  'app.build': 'string',\n  'app.identifier': 'string',\n  'app.in_foreground': 'boolean',\n  'app.name': 'string',\n  app_start_cold: 'double',\n  'app.start_time': 'string',\n  app_start_type: 'string',\n  app_start_warm: 'double',\n  'app.version': 'string',\n  'app.vitals.frames.delay.value': 'integer',\n  'app.vitals.frames.frozen.count': 'integer',\n  'app.vitals.frames.frozen.rate': 'double',\n  'app.vitals.frames.slow.count': 'integer',\n  'app.vitals.frames.slow.rate': 'double',\n  'app.vitals.frames.total.count': 'integer',\n  'app.vitals.stall.duration': 'double',\n  'app.vitals.stall.percentage': 'double',\n  'app.vitals.start.cold.value': 'double',\n  'app.vitals.start.prewarmed': 'boolean',\n  'app.vitals.start.reason': 'string',\n  'app.vitals.start.screen': 'string',\n  'app.vitals.start.type': 'string',\n  'app.vitals.start.warm.value': 'double',\n  'app.vitals.ttfd.value': 'double',\n  'app.vitals.ttid.value': 'double',\n  'art.gc.blocking_count': 'integer',\n  'art.gc.blocking_time': 'double',\n  'art.gc.pre_oome_count': 'integer',\n  'art.gc.total_count': 'integer',\n  'art.gc.total_time': 'double',\n  'art.gc.waiting_time': 'double',\n  'art.memory.free': 'integer',\n  'art.memory.free_until_gc': 'integer',\n  'art.memory.free_until_oome': 'integer',\n  'art.memory.max': 'integer',\n  'art.memory.total': 'integer',\n  'aws.cloudwatch.logs.log_group': 'string',\n  'aws.cloudwatch.logs.log_stream': 'string',\n  'aws.cloudwatch.logs.url': 'string',\n  'aws.dynamodb.attributes_to_get': 'string[]',\n  'aws.dynamodb.attribute_definitions': 'string[]',\n  'aws.dynamodb.consistent_read': 'boolean',\n  'aws.dynamodb.consumed_capacity': 'string[]',\n  'aws.dynamodb.count': 'integer',\n  'aws.dynamodb.exclusive_start_table': 'string',\n  'aws.dynamodb.global_secondary_indexes': 'string[]',\n  'aws.dynamodb.global_secondary_index_updates': 'string[]',\n  'aws.dynamodb.index_name': 'string',\n  'aws.dynamodb.item_collection_metrics': 'string',\n  'aws.dynamodb.limit': 'integer',\n  'aws.dynamodb.local_secondary_indexes': 'string[]',\n  'aws.dynamodb.projection': 'string',\n  'aws.dynamodb.provisioned_read_capacity': 'double',\n  'aws.dynamodb.provisioned_write_capacity': 'double',\n  'aws.dynamodb.scanned_count': 'integer',\n  'aws.dynamodb.scan_forward': 'boolean',\n  'aws.dynamodb.segment': 'integer',\n  'aws.dynamodb.select': 'string',\n  'aws.dynamodb.table_count': 'integer',\n  'aws.dynamodb.table_names': 'string[]',\n  'aws.dynamodb.total_segments': 'integer',\n  'aws.extended_request_id': 'string',\n  'aws.kinesis.stream_name': 'string',\n  'aws.kinesis.stream.name': 'string',\n  'aws.lambda.aws_request_id': 'string',\n  'aws.lambda.execution_duration_in_millis': 'double',\n  'aws.lambda.function_name': 'string',\n  'aws.lambda.function_version': 'string',\n  'aws.lambda.initialization_type': 'string',\n  'aws.lambda.invoked_arn': 'string',\n  'aws.lambda.invoked_function_arn': 'string',\n  'aws.lambda.remaining_time_in_millis': 'double',\n  'aws.lambda.resource_mapping.id': 'string',\n  'aws.lambda.target_function.name': 'string',\n  'aws.lambda.web.endpoint_name': 'string',\n  'aws.log.group.names': 'string[]',\n  'aws.log.stream.names': 'string[]',\n  'aws.operation_name': 'string',\n  aws_region: 'string',\n  'aws.request.extended_id': 'string',\n  'aws.request_id': 'string',\n  'aws.request.id': 'string',\n  'aws.request.url': 'string',\n  'aws.s3.bucket': 'string',\n  'aws.s3.copy_source': 'string',\n  'aws.s3.delete': 'string',\n  'aws.s3.key': 'string',\n  'aws.s3.part_number': 'integer',\n  'aws.s3.upload_id': 'string',\n  'aws.secretsmanager.secret.arn': 'string',\n  'aws.secretsmanager.secret.name': 'string',\n  'aws.sns.topic.arn': 'string',\n  'aws.sqs.queue.url': 'string',\n  'aws.step_functions.activity.arn': 'string',\n  'aws.step_functions.activity.name': 'string',\n  'aws.step_functions.execution.arn': 'string',\n  'aws.step_functions.state_machine.arn': 'string',\n  'aws.step_functions.state_machine.name': 'string',\n  blocked_main_thread: 'boolean',\n  'browser.bfcache.frame': 'string',\n  'browser.bfcache.not_restored_reason_count': 'integer',\n  'browser.bfcache.outcome': 'string',\n  'browser.bfcache.reason': 'string',\n  'browser.name': 'string',\n  'browser.navigation.id': 'integer',\n  'browser.navigation.type': 'string',\n  'browser.paint.type': 'string',\n  'browser.performance.navigation.activation_start': 'double',\n  'browser.performance.time_origin': 'double',\n  'browser.report.type': 'string',\n  'browser.script.invoker': 'string',\n  'browser.script.invoker_type': 'string',\n  'browser.script.source_char_position': 'integer',\n  'browser.version': 'string',\n  'browser.web_vital.cls.report_event': 'string',\n  'browser.web_vital.cls.source.<key>': 'string',\n  'browser.web_vital.cls.value': 'double',\n  'browser.web_vital.fcp.value': 'double',\n  'browser.web_vital.fp.value': 'double',\n  'browser.web_vital.inp.input_delay': 'double',\n  'browser.web_vital.inp.interaction_type': 'string',\n  'browser.web_vital.inp.presentation_delay': 'double',\n  'browser.web_vital.inp.processing_duration': 'double',\n  'browser.web_vital.inp.target': 'string',\n  'browser.web_vital.inp.value': 'double',\n  'browser.web_vital.lcp.element': 'string',\n  'browser.web_vital.lcp.element_render_delay': 'double',\n  'browser.web_vital.lcp.id': 'string',\n  'browser.web_vital.lcp.load_time': 'integer',\n  'browser.web_vital.lcp.render_time': 'integer',\n  'browser.web_vital.lcp.report_event': 'string',\n  'browser.web_vital.lcp.resource_load_delay': 'double',\n  'browser.web_vital.lcp.resource_load_duration': 'double',\n  'browser.web_vital.lcp.size': 'integer',\n  'browser.web_vital.lcp.url': 'string',\n  'browser.web_vital.lcp.value': 'double',\n  'browser.web_vital.ttfb.request_time': 'double',\n  'browser.web_vital.ttfb.value': 'double',\n  'cache.hit': 'boolean',\n  'cache.item_age': 'integer',\n  'cache.item_size': 'integer',\n  'cache.key': 'string[]',\n  'cache.operation': 'string',\n  'cache.tags': 'string[]',\n  'cache.ttl': 'integer',\n  'cache.write': 'boolean',\n  channel: 'string',\n  'client.address': 'string',\n  'client.port': 'integer',\n  'cloudflare.d1.duration': 'integer',\n  'cloudflare.d1.query_type': 'string',\n  'cloudflare.d1.rows_read': 'integer',\n  'cloudflare.d1.rows_written': 'integer',\n  'cloudflare.durable_object.query.bindings': 'integer',\n  'cloudflare.durable_object.response.rows_read': 'integer',\n  'cloudflare.durable_object.response.rows_written': 'integer',\n  'cloudflare.r2.bucket': 'string',\n  'cloudflare.r2.operation': 'string',\n  'cloudflare.r2.request.delimiter': 'string',\n  'cloudflare.r2.request.key': 'string',\n  'cloudflare.r2.request.part_number': 'integer',\n  'cloudflare.r2.request.prefix': 'string',\n  'cloudflare.workflow.attempt': 'integer',\n  'cloudflare.workflow.retries.backoff': 'string',\n  'cloudflare.workflow.retries.delay': 'string',\n  'cloudflare.workflow.retries.limit': 'integer',\n  'cloudflare.workflow.timeout': 'string',\n  'cloud.account.id': 'string',\n  'cloud.availability_zone': 'string',\n  'cloud.platform': 'string',\n  'cloud.provider': 'string',\n  'cloud.region': 'string',\n  'cloud.resource_id': 'string',\n  cls: 'double',\n  'cls.source.<key>': 'string',\n  code: 'string',\n  'code.filepath': 'string',\n  'code.file.path': 'string',\n  'code.function': 'string',\n  'code.function.name': 'string',\n  'code.lineno': 'integer',\n  'code.line.number': 'integer',\n  'code.namespace': 'string',\n  connectionType: 'string',\n  'connection.rtt': 'integer',\n  'culture.calendar': 'string',\n  'culture.display_name': 'string',\n  'culture.is_24_hour_format': 'boolean',\n  'culture.locale': 'string',\n  'culture.timezone': 'string',\n  'db.collection.name': 'string',\n  'db.connection_string': 'string',\n  'db.driver.name': 'string',\n  'db.mongodb.collection': 'string',\n  'db.name': 'string',\n  'db.namespace': 'string',\n  'db.operation': 'string',\n  'db.operation.batch.size': 'integer',\n  'db.operation.name': 'string',\n  'db.params': 'string',\n  'db.query.parameter.<key>': 'string',\n  'db.query.summary': 'string',\n  'db.query.text': 'string',\n  'db.redis.connection': 'string',\n  'db.redis.key': 'string',\n  'db.redis.parameters': 'string[]',\n  'db.response.status_code': 'string',\n  'db.sql.bindings': 'string[]',\n  'db.statement': 'string',\n  'db.stored_procedure.name': 'string',\n  'db.system': 'string',\n  'db.system.name': 'string',\n  'db.user': 'string',\n  deviceMemory: 'string',\n  'device.archs': 'string[]',\n  'device.battery_level': 'double',\n  'device.battery_temperature': 'double',\n  'device.boot_time': 'string',\n  'device.brand': 'string',\n  'device.charging': 'boolean',\n  'device.chipset': 'string',\n  'device.class': 'string',\n  'device.connection_type': 'string',\n  'device.cpu_description': 'string',\n  'device.external_free_storage': 'integer',\n  'device.external_storage_size': 'integer',\n  'device.family': 'string',\n  'device.free_memory': 'integer',\n  'device.free_storage': 'integer',\n  'device.id': 'string',\n  'device.locale': 'string',\n  'device.low_memory': 'boolean',\n  'device.low_power_mode': 'boolean',\n  'device.manufacturer': 'string',\n  'device.memory.estimated_capacity': 'integer',\n  'device.memory_size': 'integer',\n  'device.model': 'string',\n  'device.model_id': 'string',\n  'device.name': 'string',\n  'device.online': 'boolean',\n  'device.orientation': 'string',\n  'device.processor_count': 'integer',\n  'device.processor_frequency': 'double',\n  'device.screen_density': 'double',\n  'device.screen_dpi': 'integer',\n  'device.screen_height_pixels': 'integer',\n  'device.screen_width_pixels': 'integer',\n  'device.simulator': 'boolean',\n  'device.storage_size': 'integer',\n  'device.thermal_state': 'string',\n  'device.timezone': 'string',\n  'device.usable_memory': 'integer',\n  dist: 'string',\n  'django.function_name': 'string',\n  'django.middleware_name': 'string',\n  effectiveConnectionType: 'string',\n  environment: 'string',\n  'error.type': 'string',\n  'event.id': 'integer',\n  'event.name': 'string',\n  'exception.escaped': 'boolean',\n  'exception.message': 'string',\n  'exception.stacktrace': 'string',\n  'exception.type': 'string',\n  'faas.coldstart': 'boolean',\n  'faas.cron': 'string',\n  'faas.document.collection': 'string',\n  'faas.document.name': 'string',\n  'faas.document.operation': 'string',\n  'faas.document.time': 'string',\n  'faas.duration_in_ms': 'integer',\n  'faas.entry_point': 'string',\n  'faas.execution': 'string',\n  'faas.id': 'string',\n  'faas.identity': 'string',\n  'faas.instance': 'string',\n  'faas.invocation_id': 'string',\n  'faas.invoked_name': 'string',\n  'faas.invoked_provider': 'string',\n  'faas.invoked_region': 'string',\n  'faas.max_memory': 'integer',\n  'faas.name': 'string',\n  'faas.time': 'string',\n  'faas.trigger': 'string',\n  'faas.version': 'string',\n  fcp: 'double',\n  'file.path': 'string',\n  'file.size': 'integer',\n  'flag.evaluation.<key>': 'boolean',\n  fp: 'double',\n  'frames.delay': 'integer',\n  'frames.frozen': 'integer',\n  frames_frozen_rate: 'double',\n  'frames.slow': 'integer',\n  frames_slow_rate: 'double',\n  'frames.total': 'integer',\n  fs_error: 'string',\n  'gcp.function.context.event_id': 'string',\n  'gcp.function.context.event_type': 'string',\n  'gcp.function.context.id': 'string',\n  'gcp.function.context.resource': 'string',\n  'gcp.function.context.source': 'string',\n  'gcp.function.context.specversion': 'string',\n  'gcp.function.context.time': 'string',\n  'gcp.function.context.timestamp': 'string',\n  'gcp.function.context.type': 'string',\n  'gcp.project.id': 'string',\n  gcp_region: 'string',\n  'gen_ai.agent.name': 'string',\n  'gen_ai.context.utilization': 'double',\n  'gen_ai.context.window_size': 'integer',\n  'gen_ai.conversation.id': 'string',\n  'gen_ai.cost.cache_creation.input_tokens': 'double',\n  'gen_ai.cost.cache_read.input_tokens': 'double',\n  'gen_ai.cost.input_tokens': 'double',\n  'gen_ai.cost.output_tokens': 'double',\n  'gen_ai.cost.reasoning.output_tokens': 'double',\n  'gen_ai.cost.total_tokens': 'double',\n  'gen_ai.embeddings.input': 'string',\n  'gen_ai.function_id': 'string',\n  'gen_ai.input.messages': 'string',\n  'gen_ai.memory.query.text': 'string',\n  'gen_ai.memory.records': 'string',\n  'gen_ai.memory.record.count': 'integer',\n  'gen_ai.memory.record.id': 'string',\n  'gen_ai.memory.store.id': 'string',\n  'gen_ai.operation.name': 'string',\n  'gen_ai.operation.type': 'string',\n  'gen_ai.output.messages': 'string',\n  'gen_ai.pipeline.name': 'string',\n  'gen_ai.prompt': 'string',\n  'gen_ai.prompt.name': 'string',\n  'gen_ai.prompt.variable.<key>': 'string',\n  'gen_ai.provider.name': 'string',\n  'gen_ai.request.available_tools': 'string',\n  'gen_ai.request.frequency_penalty': 'double',\n  'gen_ai.request.max_tokens': 'integer',\n  'gen_ai.request.messages': 'string',\n  'gen_ai.request.model': 'string',\n  'gen_ai.request.presence_penalty': 'double',\n  'gen_ai.request.reasoning.level': 'string',\n  'gen_ai.request.schema': 'string',\n  'gen_ai.request.seed': 'string',\n  'gen_ai.request.stop_sequences': 'string[]',\n  'gen_ai.request.temperature': 'double',\n  'gen_ai.request.top_k': 'integer',\n  'gen_ai.request.top_p': 'double',\n  'gen_ai.response.finish_reason': 'string',\n  'gen_ai.response.finish_reasons': 'string',\n  'gen_ai.response.id': 'string',\n  'gen_ai.response.model': 'string',\n  'gen_ai.response.object': 'string',\n  'gen_ai.response.streaming': 'boolean',\n  'gen_ai.response.text': 'string',\n  'gen_ai.response.time_to_first_chunk': 'double',\n  'gen_ai.response.time_to_first_token': 'double',\n  'gen_ai.response.tokens_per_second': 'double',\n  'gen_ai.response.tool_calls': 'string',\n  'gen_ai.system': 'string',\n  'gen_ai.system_instructions': 'string',\n  'gen_ai.system.message': 'string',\n  'gen_ai.tool.call.arguments': 'string',\n  'gen_ai.tool.call.result': 'string',\n  'gen_ai.tool.call.result.size': 'integer',\n  'gen_ai.tool.definitions': 'string',\n  'gen_ai.tool.description': 'string',\n  'gen_ai.tool.input': 'string',\n  'gen_ai.tool.message': 'string',\n  'gen_ai.tool.name': 'string',\n  'gen_ai.tool.output': 'string',\n  'gen_ai.tool.type': 'string',\n  'gen_ai.usage.cache_creation.input_tokens': 'integer',\n  'gen_ai.usage.cache_creation_input_tokens': 'integer',\n  'gen_ai.usage.cache_read.input_tokens': 'integer',\n  'gen_ai.usage.cache_read_input_tokens': 'integer',\n  'gen_ai.usage.completion_tokens': 'integer',\n  'gen_ai.usage.input_tokens': 'integer',\n  'gen_ai.usage.input_tokens.cached': 'integer',\n  'gen_ai.usage.input_tokens.cache_write': 'integer',\n  'gen_ai.usage.output_tokens': 'integer',\n  'gen_ai.usage.output_tokens.reasoning': 'integer',\n  'gen_ai.usage.prompt_tokens': 'integer',\n  'gen_ai.usage.reasoning.output_tokens': 'integer',\n  'gen_ai.usage.total_tokens': 'integer',\n  'graphql.document': 'string',\n  'graphql.operation.name': 'string',\n  'graphql.operation.type': 'string',\n  'graphql.processing.type': 'string',\n  'graphql.source': 'string',\n  'grpc.error.bad_request.field_violations': 'string[]',\n  'grpc.error.debug_info.detail': 'string',\n  'grpc.error.debug_info.stack_entries': 'string[]',\n  'grpc.error.error_info.domain': 'string',\n  'grpc.error.error_info.metadata.<key>': 'string',\n  'grpc.error.error_info.reason': 'string',\n  'grpc.error.precondition_failure.violations': 'string[]',\n  'grpc.error.quota_failure.violations': 'string[]',\n  'grpc.error.resource_info.description': 'string',\n  'grpc.error.resource_info.owner': 'string',\n  'grpc.error.resource_info.resource_name': 'string',\n  'grpc.error.resource_info.resource_type': 'string',\n  'grpc.error.retry_info.retry_delay_ms': 'integer',\n  'hapi.ext.type': 'string',\n  'hapi.plugin.name': 'string',\n  'hapi.type': 'string',\n  hardwareConcurrency: 'string',\n  'heroku.dyno.name': 'string',\n  'heroku.error.code': 'string',\n  'heroku.error.description': 'string',\n  'heroku.logplex.drain_token': 'string',\n  'heroku.router.connect': 'double',\n  'heroku.router.request_id': 'string',\n  'heroku.router.service': 'double',\n  'http.client_ip': 'string',\n  'http.decoded_response_content_length': 'integer',\n  'http.flavor': 'string',\n  'http.fragment': 'string',\n  'http.host': 'string',\n  'http.method': 'string',\n  'http.query': 'string',\n  'http.request.body.data': 'string',\n  'http.request.body.decoded_size': 'integer',\n  'http.request.body.size': 'integer',\n  'http.request.connection_end': 'double',\n  'http.request.connect_start': 'double',\n  'http.request_content_length': 'integer',\n  'http.request_content_length_uncompressed': 'integer',\n  'http.request.domain_lookup_end': 'double',\n  'http.request.domain_lookup_start': 'double',\n  'http.request.duration': 'integer',\n  'http.request.fetch_start': 'double',\n  'http.request.header.<key>': 'string[]',\n  'http.request.method': 'string',\n  'http.request_method': 'string',\n  'http.request.redirect_end': 'double',\n  'http.request.redirect_start': 'double',\n  'http.request.request_start': 'double',\n  'http.request.resend_count': 'integer',\n  'http.request.response_end': 'double',\n  'http.request.response_start': 'double',\n  'http.request.same_origin': 'boolean',\n  'http.request.secure_connection_start': 'double',\n  'http.request.time_to_first_byte': 'double',\n  'http.request.worker_start': 'double',\n  'http.response.body.decoded_size': 'integer',\n  'http.response.body.size': 'integer',\n  'http.response_content_length': 'integer',\n  'http.response_content_length_uncompressed': 'integer',\n  'http.response.header.content-length': 'string',\n  'http.response.header.<key>': 'string[]',\n  'http.response.size': 'integer',\n  'http.response.status_code': 'integer',\n  'http.response.status_text': 'string',\n  'http.response_transfer_size': 'integer',\n  'http.route': 'string',\n  'http.scheme': 'string',\n  'http.server_name': 'string',\n  'http.server.request.time_in_queue': 'double',\n  'http.status_code': 'integer',\n  'http.status_text': 'string',\n  'http.target': 'string',\n  'http.url': 'string',\n  'http.user_agent': 'string',\n  id: 'string',\n  inp: 'double',\n  'integrity.blocked_url': 'string',\n  'integrity.destination': 'string',\n  'integrity.document_url': 'string',\n  'integrity.report_only': 'boolean',\n  'jsonrpc.protocol.version': 'string',\n  'jsonrpc.request.id': 'string',\n  'jvm.gc.action': 'string',\n  'jvm.gc.name': 'string',\n  'jvm.memory.pool.name': 'string',\n  'jvm.memory.type': 'string',\n  'jvm.thread.daemon': 'boolean',\n  'jvm.thread.state': 'string',\n  'koa.name': 'string',\n  'koa.type': 'string',\n  'langchain.chain.name': 'string',\n  lcp: 'double',\n  'lcp.element': 'string',\n  'lcp.id': 'string',\n  'lcp.loadTime': 'integer',\n  'lcp.renderTime': 'integer',\n  'lcp.size': 'integer',\n  'lcp.url': 'string',\n  'litestar.middleware_name': 'string',\n  'logger.name': 'string',\n  'mcp.auth.client.name': 'string',\n  'mcp.cancelled.reason': 'string',\n  'mcp.cancelled.request_id': 'string',\n  'mcp.client.name': 'string',\n  'mcp.client.title': 'string',\n  'mcp.client.version': 'string',\n  'mcp.lifecycle.phase': 'string',\n  'mcp.logging.data_type': 'string',\n  'mcp.logging.level': 'string',\n  'mcp.logging.logger': 'string',\n  'mcp.logging.message': 'string',\n  'mcp.method.name': 'string',\n  'mcp.progress.current': 'double',\n  'mcp.progress.message': 'string',\n  'mcp.progress.percentage': 'double',\n  'mcp.progress.token': 'string',\n  'mcp.progress.total': 'double',\n  'mcp.prompt.name': 'string',\n  'mcp.prompt.result.description': 'string',\n  'mcp.prompt.result.<key>.content': 'string',\n  'mcp.prompt.result.<key>.role': 'string',\n  'mcp.prompt.result.message_content': 'string',\n  'mcp.prompt.result.message_count': 'integer',\n  'mcp.prompt.result.message_role': 'string',\n  'mcp.protocol.ready': 'integer',\n  'mcp.protocol.version': 'string',\n  'mcp.request.argument.<key>': 'string',\n  'mcp.request.argument.name': 'string',\n  'mcp.request.argument.uri': 'string',\n  'mcp.request.id': 'string',\n  'mcp.resource.protocol': 'string',\n  'mcp.resource.uri': 'string',\n  'mcp.server.name': 'string',\n  'mcp.server.title': 'string',\n  'mcp.server.version': 'string',\n  'mcp.session.id': 'string',\n  'mcp.tool.name': 'string',\n  'mcp.tool.result.content': 'string',\n  'mcp.tool.result.content_count': 'integer',\n  'mcp.tool.result.content_type': 'string',\n  'mcp.tool.result.data_size': 'integer',\n  'mcp.tool.result.is_error': 'boolean',\n  'mcp.tool.result.<key>.content': 'string',\n  'mcp.tool.result.<key>.content_type': 'string',\n  'mcp.tool.result.<key>.data_size': 'integer',\n  'mcp.tool.result.<key>.mime_type': 'string',\n  'mcp.tool.result.<key>.name': 'string',\n  'mcp.tool.result.<key>.resource_mime_type': 'string',\n  'mcp.tool.result.<key>.resource_uri': 'string',\n  'mcp.tool.result.<key>.uri': 'string',\n  'mcp.tool.result.mime_type': 'string',\n  'mcp.tool.result.name': 'string',\n  'mcp.tool.result.resource_mime_type': 'string',\n  'mcp.tool.result.resource_uri': 'string',\n  'mcp.tool.result.uri': 'string',\n  'mcp.transport': 'string',\n  'mdc.<key>': 'string',\n  'messaging.batch.message_count': 'integer',\n  'messaging.bullmq.flow.name': 'string',\n  'messaging.bullmq.job.attempt_finished_timestamp': 'integer',\n  'messaging.bullmq.job.bulk.names': 'string[]',\n  'messaging.bullmq.job.deduplication.key': 'string',\n  'messaging.bullmq.job.ids': 'string[]',\n  'messaging.bullmq.job.key': 'string',\n  'messaging.bullmq.job.name': 'string',\n  'messaging.bullmq.job.processed_timestamp': 'integer',\n  'messaging.bullmq.job.scheduler.id': 'string',\n  'messaging.bullmq.job.state': 'string',\n  'messaging.bullmq.job.type': 'string',\n  'messaging.bullmq.queue.clean.count': 'integer',\n  'messaging.bullmq.queue.clean.limit': 'integer',\n  'messaging.bullmq.queue.drain.delay': 'boolean',\n  'messaging.bullmq.queue.event.max_length': 'integer',\n  'messaging.bullmq.queue.grace': 'integer',\n  'messaging.bullmq.queue.jobs.state': 'string',\n  'messaging.bullmq.queue.rate_limit': 'integer',\n  'messaging.bullmq.worker.do_not_wait_active': 'boolean',\n  'messaging.bullmq.worker.force_close': 'boolean',\n  'messaging.bullmq.worker.jobs_to_extend_locks': 'string[]',\n  'messaging.bullmq.worker.name': 'string',\n  'messaging.bullmq.worker.rate_limit': 'integer',\n  'messaging.bullmq.worker.stalled_jobs': 'string[]',\n  'messaging.client.id': 'string',\n  'messaging.conversation_id': 'string',\n  'messaging.destination': 'string',\n  'messaging.destination.connection': 'string',\n  'messaging.destination_kind': 'string',\n  'messaging.destination.name': 'string',\n  'messaging.destination.partition.id': 'string',\n  'messaging.kafka.message.key': 'string',\n  'messaging.kafka.message.tombstone': 'boolean',\n  'messaging.kafka.offset': 'integer',\n  'messaging.message.body.size': 'integer',\n  'messaging.message.conversation_id': 'string',\n  'messaging.message.envelope.size': 'integer',\n  'messaging.message.id': 'string',\n  'messaging.message_id': 'string',\n  'messaging.message.receive.latency': 'integer',\n  'messaging.message.retry.count': 'integer',\n  'messaging.operation': 'string',\n  'messaging.operation.name': 'string',\n  'messaging.operation.type': 'string',\n  'messaging.protocol': 'string',\n  'messaging.protocol_version': 'string',\n  'messaging.rabbitmq.destination.routing_key': 'string',\n  'messaging.rabbitmq.routing_key': 'string',\n  'messaging.system': 'string',\n  'messaging.url': 'string',\n  method: 'string',\n  'middleware.name': 'string',\n  'navigation.origin': 'string',\n  'navigation.route.id': 'string',\n  'navigation.type': 'string',\n  'nel.elapsed_time': 'integer',\n  'nel.phase': 'string',\n  'nel.referrer': 'string',\n  'nel.sampling_fraction': 'double',\n  'nel.sampling_function': 'double',\n  'nel.type': 'string',\n  'network.connection.effective_type': 'string',\n  'network.connection.rtt': 'integer',\n  'network.connection.type': 'string',\n  'network.local.address': 'string',\n  'network.local.port': 'integer',\n  'network.peer.address': 'string',\n  'network.peer.port': 'integer',\n  'network.protocol.name': 'string',\n  'network.protocol.version': 'string',\n  'network.transport': 'string',\n  'network.type': 'string',\n  'net.host.ip': 'string',\n  'net.host.name': 'string',\n  'net.host.port': 'integer',\n  'net.peer.ip': 'string',\n  'net.peer.name': 'string',\n  'net.peer.port': 'integer',\n  'net.protocol.name': 'string',\n  'net.protocol.version': 'string',\n  'net.sock.family': 'string',\n  'net.sock.host.addr': 'string',\n  'net.sock.host.port': 'integer',\n  'net.sock.peer.addr': 'string',\n  'net.sock.peer.name': 'string',\n  'net.sock.peer.port': 'integer',\n  'net.transport': 'string',\n  'os.build': 'string',\n  'os.build_id': 'string',\n  'os.description': 'string',\n  'os.kernel_version': 'string',\n  'os.name': 'string',\n  'os.raw_description': 'string',\n  'os.rooted': 'boolean',\n  'os.theme': 'string',\n  'os.type': 'string',\n  'os.version': 'string',\n  'otel.kind': 'string',\n  'otel.scope.name': 'string',\n  'otel.scope.version': 'string',\n  'otel.status_code': 'string',\n  'otel.status_description': 'string',\n  'page.server_rendering.type': 'string',\n  'params.<key>': 'string',\n  'performance.activationStart': 'double',\n  'performance.timeOrigin': 'double',\n  port: 'integer',\n  previous_route: 'string',\n  'process.command_args': 'string[]',\n  'process.executable.name': 'string',\n  'process.pid': 'integer',\n  'process.runtime.description': 'string',\n  'process.runtime.engine.name': 'string',\n  'process.runtime.engine.version': 'string',\n  'process.runtime.name': 'string',\n  'process.runtime.version': 'string',\n  profile_id: 'string',\n  query: 'string',\n  'query.<key>': 'string',\n  'react_native.architecture': 'string',\n  'react_native.module.call.count': 'integer',\n  'react_native.module.call.distinct_count': 'integer',\n  'react_native.module.duration.max': 'double',\n  'react_native.module.duration.total': 'double',\n  'react_native.module.error.count': 'integer',\n  'react_native.module.kind': 'string',\n  'react_native.module.method': 'string',\n  'react_native.module.name': 'string',\n  'react_native.module.top.duration': 'double',\n  'react_native.module.top.name': 'string',\n  'react.version': 'string',\n  'redis.command': 'string',\n  'redis.key': 'string',\n  release: 'string',\n  'remix.action_form_data.<key>': 'string',\n  replayId: 'string',\n  replay_id: 'string',\n  'resource.deployment.environment': 'string',\n  'resource.deployment.environment.name': 'string',\n  'resource.render_blocking_status': 'string',\n  route: 'string',\n  'router.navigation.origin': 'string',\n  'router.navigation.route.id': 'string',\n  'router.navigation.type': 'string',\n  'rpc.grpc.status_code': 'integer',\n  'rpc.method': 'string',\n  'rpc.response.status_code': 'string',\n  'rpc.service': 'string',\n  'rpc.system': 'string',\n  'rpc.system.name': 'string',\n  'runtime.build': 'string',\n  'runtime.name': 'string',\n  'runtime.raw_description': 'string',\n  'runtime.version': 'string',\n  'score.<key>': 'double',\n  'score.ratio.<key>': 'double',\n  'score.total': 'double',\n  'score.weight.<key>': 'double',\n  'sentry.action': 'string',\n  'sentry.browser.name': 'string',\n  'sentry.browser.version': 'string',\n  'sentry.cancellation_reason': 'string',\n  'sentry.category': 'string',\n  'sentry.client_sample_rate': 'double',\n  'sentry.description': 'string',\n  'sentry.dist': 'string',\n  'sentry.domain': 'string',\n  'sentry.dsc.environment': 'string',\n  'sentry.dsc.project_id': 'string',\n  'sentry.dsc.public_key': 'string',\n  'sentry.dsc.release': 'string',\n  'sentry.dsc.sampled': 'boolean',\n  'sentry.dsc.sample_rate': 'string',\n  'sentry.dsc.trace_id': 'string',\n  'sentry.dsc.transaction': 'string',\n  'sentry.environment': 'string',\n  'sentry.event.serialized_breadcrumbs': 'string',\n  'sentry.event.serialized_contexts': 'string',\n  'sentry.event.serialized_extra': 'string',\n  'sentry.event.serialized_meta': 'string',\n  'sentry.exclusive_time': 'double',\n  'sentry.frames.frozen': 'integer',\n  'sentry.frames.slow': 'integer',\n  'sentry.frames.total': 'integer',\n  'sentry.graphql.operation': 'string',\n  'sentry.group': 'string',\n  'sentry.http.prefetch': 'boolean',\n  'sentry.idle_span_finish_reason': 'string',\n  'sentry.is_localhost': 'boolean',\n  'sentry.is_remote': 'boolean',\n  'sentry.kind': 'string',\n  'sentry.link.type': 'string',\n  'sentry.main_thread': 'boolean',\n  'sentry.message.parameter.<key>': 'string',\n  'sentry.message.template': 'string',\n  'sentry.metric.source': 'string',\n  'sentry.mobile': 'boolean',\n  'sentry.module.<key>': 'string',\n  'sentry.nextjs.ssr.function.route': 'string',\n  'sentry.nextjs.ssr.function.type': 'string',\n  'sentry.normalized_db_query': 'string',\n  'sentry.normalized_db_query.hash': 'string',\n  'sentry.normalized_description': 'string',\n  'sentry.observed_timestamp_nanos': 'string',\n  'sentry.op': 'string',\n  'sentry.origin': 'string',\n  'sentry.pageload.span_id': 'string',\n  'sentry.platform': 'string',\n  'sentry.profiler_id': 'string',\n  'sentry.profile_id': 'string',\n  'sentry.relay.ingress': 'string',\n  'sentry.relay.pipeline': 'string',\n  'sentry.release': 'string',\n  'sentry.replay_id': 'string',\n  'sentry.replay_is_buffering': 'boolean',\n  'sentry.report_event': 'string',\n  'sentry.sdk.integrations': 'string[]',\n  'sentry.sdk.name': 'string',\n  'sentry.sdk.version': 'string',\n  'sentry.segment.id': 'string',\n  'sentry.segment_id': 'string',\n  'sentry.segment.name': 'string',\n  'sentry.segment.name.source': 'string',\n  'sentry.server_sample_rate': 'double',\n  'sentry.source': 'string',\n  'sentry.span.source': 'string',\n  'sentry.status': 'string',\n  'sentry.status_code': 'integer',\n  'sentry.status.message': 'string',\n  'sentry.sveltekit.navigation.from': 'string',\n  'sentry.sveltekit.navigation.to': 'string',\n  'sentry.sveltekit.navigation.type': 'string',\n  'sentry.thread.id': 'integer',\n  'sentry.timestamp.sequence': 'integer',\n  'sentry.trace_lifecycle': 'string',\n  'sentry.trace.parent_span_id': 'string',\n  'sentry.trace.status': 'string',\n  'sentry.transaction': 'string',\n  'sentry.user.email': 'string',\n  'sentry.user.geo.city': 'string',\n  'sentry.user.geo.country_code': 'string',\n  'sentry.user.geo.region': 'string',\n  'sentry.user.geo.subdivision': 'string',\n  'sentry.user.geo.subregion': 'string',\n  'sentry.user.id': 'string',\n  'sentry.user.ip': 'string',\n  'sentry.user.username': 'string',\n  'server.address': 'string',\n  'server.ext.type': 'string',\n  server_name: 'string',\n  'server.port': 'integer',\n  'service.name': 'string',\n  'service.version': 'string',\n  'session.id': 'string',\n  stall_percentage: 'double',\n  stall_total_time: 'double',\n  'starlette.middleware_name': 'string',\n  'starlite.middleware_name': 'string',\n  'state.type': 'string',\n  'subprocess.pid': 'integer',\n  'sveltekit.load.environment': 'string',\n  'sveltekit.load.node_id': 'string',\n  'sveltekit.load.node_type': 'string',\n  'sveltekit.tracing.original_name': 'string',\n  'thread.id': 'integer',\n  'thread.name': 'string',\n  'timber.tag': 'string',\n  time_to_full_display: 'double',\n  time_to_initial_display: 'double',\n  'tls.protocol.name': 'string',\n  'tls.protocol.version': 'string',\n  transaction: 'string',\n  'trpc.procedure_path': 'string',\n  'trpc.procedure_type': 'string',\n  ttfb: 'double',\n  'ttfb.requestTime': 'double',\n  'turbo_modules.total_call_count': 'integer',\n  'turbo_modules.total_duration_ms': 'double',\n  'turbo_modules.total_error_count': 'integer',\n  'turbo_modules.unique_methods': 'integer',\n  'turbo_module.arch': 'string',\n  'turbo_module.method': 'string',\n  'turbo_module.name': 'string',\n  'turbo_module.top_module': 'string',\n  'turbo_module.top_module_duration_ms': 'double',\n  'turbo_module.total_call_count': 'integer',\n  'turbo_module.total_duration_ms': 'double',\n  'turbo_module.total_error_count': 'integer',\n  'turbo_module.unique_methods': 'integer',\n  type: 'string',\n  'ui.component_name': 'string',\n  'ui.contributes_to_ttfd': 'boolean',\n  'ui.contributes_to_ttid': 'boolean',\n  'ui.element.height': 'integer',\n  'ui.element.id': 'string',\n  'ui.element.identifier': 'string',\n  'ui.element.load_time': 'double',\n  'ui.element.paint_type': 'string',\n  'ui.element.render_time': 'double',\n  'ui.element.type': 'string',\n  'ui.element.url': 'string',\n  'ui.element.width': 'integer',\n  url: 'string',\n  'url.domain': 'string',\n  'url.fragment': 'string',\n  'url.full': 'string',\n  'url.path': 'string',\n  'url.path.parameter.<key>': 'string',\n  'url.path.params.<key>': 'string',\n  'url.port': 'integer',\n  'url.query': 'string',\n  'url.same_origin': 'boolean',\n  'url.scheme': 'string',\n  'url.template': 'string',\n  'user_agent.original': 'string',\n  'user.email': 'string',\n  'user.full_name': 'string',\n  'user.geo.city': 'string',\n  'user.geo.country_code': 'string',\n  'user.geo.region': 'string',\n  'user.geo.subdivision': 'string',\n  'user.geo.subregion': 'string',\n  'user.hash': 'string',\n  'user.id': 'string',\n  'user.ip_address': 'string',\n  'user.name': 'string',\n  'user.roles': 'string[]',\n  'vercel.ai.settings.context.<key>': 'string',\n  'vercel.ai.telemetry.metadata.<key>': 'string',\n  'vercel.ai.tool_call.context.<key>': 'string',\n  'vercel.branch': 'string',\n  'vercel.build_id': 'string',\n  'vercel.deployment_id': 'string',\n  'vercel.destination': 'string',\n  'vercel.edge_type': 'string',\n  'vercel.entrypoint': 'string',\n  'vercel.execution_region': 'string',\n  'vercel.id': 'string',\n  'vercel.ja3_digest': 'string',\n  'vercel.ja4_digest': 'string',\n  'vercel.log_type': 'string',\n  'vercel.path': 'string',\n  'vercel.project_id': 'string',\n  'vercel.project_name': 'string',\n  'vercel.proxy.cache_id': 'string',\n  'vercel.proxy.client_ip': 'string',\n  'vercel.proxy.host': 'string',\n  'vercel.proxy.lambda_region': 'string',\n  'vercel.proxy.method': 'string',\n  'vercel.proxy.path': 'string',\n  'vercel.proxy.path_type': 'string',\n  'vercel.proxy.path_type_variant': 'string',\n  'vercel.proxy.referer': 'string',\n  'vercel.proxy.region': 'string',\n  'vercel.proxy.response_byte_size': 'integer',\n  'vercel.proxy.scheme': 'string',\n  'vercel.proxy.status_code': 'integer',\n  'vercel.proxy.timestamp': 'integer',\n  'vercel.proxy.user_agent': 'string[]',\n  'vercel.proxy.vercel_cache': 'string',\n  'vercel.proxy.vercel_id': 'string',\n  'vercel.proxy.waf_action': 'string',\n  'vercel.proxy.waf_rule_id': 'string',\n  'vercel.request_id': 'string',\n  'vercel.source': 'string',\n  'vercel.status_code': 'integer',\n};\n\nexport type AttributeName =\n  | typeof ADDRESS\n  | typeof AI_CITATIONS\n  | typeof AI_COMPLETION_TOKENS_USED\n  | typeof AI_DOCUMENTS\n  | typeof AI_FINISH_REASON\n  | typeof AI_FREQUENCY_PENALTY\n  | typeof AI_FUNCTION_CALL\n  | typeof AI_GENERATION_ID\n  | typeof AI_INPUT_MESSAGES\n  | typeof AI_IS_SEARCH_REQUIRED\n  | typeof AI_METADATA\n  | typeof AI_MODEL_ID\n  | typeof _AI_MODEL_ID\n  | typeof AI_MODEL_PROVIDER\n  | typeof AI_PIPELINE_NAME\n  | typeof AI_PREAMBLE\n  | typeof AI_PRESENCE_PENALTY\n  | typeof AI_PROMPT\n  | typeof AI_PROMPT_MESSAGES\n  | typeof AI_PROMPT_TOKENS_USED\n  | typeof AI_PROMPT_TOOLS\n  | typeof AI_RAW_PROMPTING\n  | typeof AI_RESPONSES\n  | typeof AI_RESPONSE_FORMAT\n  | typeof AI_RESPONSE_ID\n  | typeof AI_RESPONSE_MODEL\n  | typeof AI_RESPONSE_OBJECT\n  | typeof AI_RESPONSE_TEXT\n  | typeof AI_RESPONSE_TIMESTAMP\n  | typeof AI_RESPONSE_TOOLCALLS\n  | typeof AI_SCHEMA\n  | typeof AI_SEARCH_QUERIES\n  | typeof AI_SEARCH_RESULTS\n  | typeof AI_SEED\n  | typeof AI_STREAMING\n  | typeof AI_TAGS\n  | typeof AI_TEMPERATURE\n  | typeof AI_TEXTS\n  | typeof AI_TOOLCALL_ARGS\n  | typeof AI_TOOLCALL_RESULT\n  | typeof AI_TOOLS\n  | typeof AI_TOOL_CALLS\n  | typeof AI_TOP_K\n  | typeof AI_TOP_P\n  | typeof AI_TOTAL_COST\n  | typeof AI_TOTAL_TOKENS_USED\n  | typeof AI_USAGE_TOKENS\n  | typeof AI_VALUES\n  | typeof AI_WARNINGS\n  | typeof ANGULAR_VERSION\n  | typeof ANTHROPIC_TOOL_RESULT_CONTENT\n  | typeof APP_APP_BUILD\n  | typeof APP_APP_IDENTIFIER\n  | typeof APP_APP_NAME\n  | typeof APP_APP_START_TIME\n  | typeof APP_APP_VERSION\n  | typeof APP_BUILD\n  | typeof APP_IDENTIFIER\n  | typeof APP_IN_FOREGROUND\n  | typeof APP_NAME\n  | typeof APP_START_COLD\n  | typeof APP_START_TIME\n  | typeof APP_START_TYPE\n  | typeof APP_START_WARM\n  | typeof APP_VERSION\n  | typeof APP_VITALS_FRAMES_DELAY_VALUE\n  | typeof APP_VITALS_FRAMES_FROZEN_COUNT\n  | typeof APP_VITALS_FRAMES_FROZEN_RATE\n  | typeof APP_VITALS_FRAMES_SLOW_COUNT\n  | typeof APP_VITALS_FRAMES_SLOW_RATE\n  | typeof APP_VITALS_FRAMES_TOTAL_COUNT\n  | typeof APP_VITALS_STALL_DURATION\n  | typeof APP_VITALS_STALL_PERCENTAGE\n  | typeof APP_VITALS_START_COLD_VALUE\n  | typeof APP_VITALS_START_PREWARMED\n  | typeof APP_VITALS_START_REASON\n  | typeof APP_VITALS_START_SCREEN\n  | typeof APP_VITALS_START_TYPE\n  | typeof APP_VITALS_START_WARM_VALUE\n  | typeof APP_VITALS_TTFD_VALUE\n  | typeof APP_VITALS_TTID_VALUE\n  | typeof ART_GC_BLOCKING_COUNT\n  | typeof ART_GC_BLOCKING_TIME\n  | typeof ART_GC_PRE_OOME_COUNT\n  | typeof ART_GC_TOTAL_COUNT\n  | typeof ART_GC_TOTAL_TIME\n  | typeof ART_GC_WAITING_TIME\n  | typeof ART_MEMORY_FREE\n  | typeof ART_MEMORY_FREE_UNTIL_GC\n  | typeof ART_MEMORY_FREE_UNTIL_OOME\n  | typeof ART_MEMORY_MAX\n  | typeof ART_MEMORY_TOTAL\n  | typeof AWS_CLOUDWATCH_LOGS_LOG_GROUP\n  | typeof AWS_CLOUDWATCH_LOGS_LOG_STREAM\n  | typeof AWS_CLOUDWATCH_LOGS_URL\n  | typeof AWS_DYNAMODB_ATTRIBUTES_TO_GET\n  | typeof AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS\n  | typeof AWS_DYNAMODB_CONSISTENT_READ\n  | typeof AWS_DYNAMODB_CONSUMED_CAPACITY\n  | typeof AWS_DYNAMODB_COUNT\n  | typeof AWS_DYNAMODB_EXCLUSIVE_START_TABLE\n  | typeof AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES\n  | typeof AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES\n  | typeof AWS_DYNAMODB_INDEX_NAME\n  | typeof AWS_DYNAMODB_ITEM_COLLECTION_METRICS\n  | typeof AWS_DYNAMODB_LIMIT\n  | typeof AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES\n  | typeof AWS_DYNAMODB_PROJECTION\n  | typeof AWS_DYNAMODB_PROVISIONED_READ_CAPACITY\n  | typeof AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY\n  | typeof AWS_DYNAMODB_SCANNED_COUNT\n  | typeof AWS_DYNAMODB_SCAN_FORWARD\n  | typeof AWS_DYNAMODB_SEGMENT\n  | typeof AWS_DYNAMODB_SELECT\n  | typeof AWS_DYNAMODB_TABLE_COUNT\n  | typeof AWS_DYNAMODB_TABLE_NAMES\n  | typeof AWS_DYNAMODB_TOTAL_SEGMENTS\n  | typeof AWS_EXTENDED_REQUEST_ID\n  | typeof AWS_KINESIS_STREAM_NAME\n  | typeof _AWS_KINESIS_STREAM_NAME\n  | typeof AWS_LAMBDA_AWS_REQUEST_ID\n  | typeof AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS\n  | typeof AWS_LAMBDA_FUNCTION_NAME\n  | typeof AWS_LAMBDA_FUNCTION_VERSION\n  | typeof AWS_LAMBDA_INITIALIZATION_TYPE\n  | typeof AWS_LAMBDA_INVOKED_ARN\n  | typeof AWS_LAMBDA_INVOKED_FUNCTION_ARN\n  | typeof AWS_LAMBDA_REMAINING_TIME_IN_MILLIS\n  | typeof AWS_LAMBDA_RESOURCE_MAPPING_ID\n  | typeof AWS_LAMBDA_TARGET_FUNCTION_NAME\n  | typeof AWS_LAMBDA_WEB_ENDPOINT_NAME\n  | typeof AWS_LOG_GROUP_NAMES\n  | typeof AWS_LOG_STREAM_NAMES\n  | typeof AWS_OPERATION_NAME\n  | typeof AWS_REGION\n  | typeof AWS_REQUEST_EXTENDED_ID\n  | typeof AWS_REQUEST_ID\n  | typeof _AWS_REQUEST_ID\n  | typeof AWS_REQUEST_URL\n  | typeof AWS_S3_BUCKET\n  | typeof AWS_S3_COPY_SOURCE\n  | typeof AWS_S3_DELETE\n  | typeof AWS_S3_KEY\n  | typeof AWS_S3_PART_NUMBER\n  | typeof AWS_S3_UPLOAD_ID\n  | typeof AWS_SECRETSMANAGER_SECRET_ARN\n  | typeof AWS_SECRETSMANAGER_SECRET_NAME\n  | typeof AWS_SNS_TOPIC_ARN\n  | typeof AWS_SQS_QUEUE_URL\n  | typeof AWS_STEP_FUNCTIONS_ACTIVITY_ARN\n  | typeof AWS_STEP_FUNCTIONS_ACTIVITY_NAME\n  | typeof AWS_STEP_FUNCTIONS_EXECUTION_ARN\n  | typeof AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN\n  | typeof AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME\n  | typeof BLOCKED_MAIN_THREAD\n  | typeof BROWSER_BFCACHE_FRAME\n  | typeof BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT\n  | typeof BROWSER_BFCACHE_OUTCOME\n  | typeof BROWSER_BFCACHE_REASON\n  | typeof BROWSER_NAME\n  | typeof BROWSER_NAVIGATION_ID\n  | typeof BROWSER_NAVIGATION_TYPE\n  | typeof BROWSER_PAINT_TYPE\n  | typeof BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START\n  | typeof BROWSER_PERFORMANCE_TIME_ORIGIN\n  | typeof BROWSER_REPORT_TYPE\n  | typeof BROWSER_SCRIPT_INVOKER\n  | typeof BROWSER_SCRIPT_INVOKER_TYPE\n  | typeof BROWSER_SCRIPT_SOURCE_CHAR_POSITION\n  | typeof BROWSER_VERSION\n  | typeof BROWSER_WEB_VITAL_CLS_REPORT_EVENT\n  | typeof BROWSER_WEB_VITAL_CLS_SOURCE_KEY\n  | typeof BROWSER_WEB_VITAL_CLS_VALUE\n  | typeof BROWSER_WEB_VITAL_FCP_VALUE\n  | typeof BROWSER_WEB_VITAL_FP_VALUE\n  | typeof BROWSER_WEB_VITAL_INP_INPUT_DELAY\n  | typeof BROWSER_WEB_VITAL_INP_INTERACTION_TYPE\n  | typeof BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY\n  | typeof BROWSER_WEB_VITAL_INP_PROCESSING_DURATION\n  | typeof BROWSER_WEB_VITAL_INP_TARGET\n  | typeof BROWSER_WEB_VITAL_INP_VALUE\n  | typeof BROWSER_WEB_VITAL_LCP_ELEMENT\n  | typeof BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY\n  | typeof BROWSER_WEB_VITAL_LCP_ID\n  | typeof BROWSER_WEB_VITAL_LCP_LOAD_TIME\n  | typeof BROWSER_WEB_VITAL_LCP_RENDER_TIME\n  | typeof BROWSER_WEB_VITAL_LCP_REPORT_EVENT\n  | typeof BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY\n  | typeof BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION\n  | typeof BROWSER_WEB_VITAL_LCP_SIZE\n  | typeof BROWSER_WEB_VITAL_LCP_URL\n  | typeof BROWSER_WEB_VITAL_LCP_VALUE\n  | typeof BROWSER_WEB_VITAL_TTFB_REQUEST_TIME\n  | typeof BROWSER_WEB_VITAL_TTFB_VALUE\n  | typeof CACHE_HIT\n  | typeof CACHE_ITEM_AGE\n  | typeof CACHE_ITEM_SIZE\n  | typeof CACHE_KEY\n  | typeof CACHE_OPERATION\n  | typeof CACHE_TAGS\n  | typeof CACHE_TTL\n  | typeof CACHE_WRITE\n  | typeof CHANNEL\n  | typeof CLIENT_ADDRESS\n  | typeof CLIENT_PORT\n  | typeof CLOUDFLARE_D1_DURATION\n  | typeof CLOUDFLARE_D1_QUERY_TYPE\n  | typeof CLOUDFLARE_D1_ROWS_READ\n  | typeof CLOUDFLARE_D1_ROWS_WRITTEN\n  | typeof CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS\n  | typeof CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ\n  | typeof CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN\n  | typeof CLOUDFLARE_R2_BUCKET\n  | typeof CLOUDFLARE_R2_OPERATION\n  | typeof CLOUDFLARE_R2_REQUEST_DELIMITER\n  | typeof CLOUDFLARE_R2_REQUEST_KEY\n  | typeof CLOUDFLARE_R2_REQUEST_PART_NUMBER\n  | typeof CLOUDFLARE_R2_REQUEST_PREFIX\n  | typeof CLOUDFLARE_WORKFLOW_ATTEMPT\n  | typeof CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF\n  | typeof CLOUDFLARE_WORKFLOW_RETRIES_DELAY\n  | typeof CLOUDFLARE_WORKFLOW_RETRIES_LIMIT\n  | typeof CLOUDFLARE_WORKFLOW_TIMEOUT\n  | typeof CLOUD_ACCOUNT_ID\n  | typeof CLOUD_AVAILABILITY_ZONE\n  | typeof CLOUD_PLATFORM\n  | typeof CLOUD_PROVIDER\n  | typeof CLOUD_REGION\n  | typeof CLOUD_RESOURCE_ID\n  | typeof CLS\n  | typeof CLS_SOURCE_KEY\n  | typeof CODE\n  | typeof CODE_FILEPATH\n  | typeof CODE_FILE_PATH\n  | typeof CODE_FUNCTION\n  | typeof CODE_FUNCTION_NAME\n  | typeof CODE_LINENO\n  | typeof CODE_LINE_NUMBER\n  | typeof CODE_NAMESPACE\n  | typeof CONNECTIONTYPE\n  | typeof CONNECTION_RTT\n  | typeof CULTURE_CALENDAR\n  | typeof CULTURE_DISPLAY_NAME\n  | typeof CULTURE_IS_24_HOUR_FORMAT\n  | typeof CULTURE_LOCALE\n  | typeof CULTURE_TIMEZONE\n  | typeof DB_COLLECTION_NAME\n  | typeof DB_CONNECTION_STRING\n  | typeof DB_DRIVER_NAME\n  | typeof DB_MONGODB_COLLECTION\n  | typeof DB_NAME\n  | typeof DB_NAMESPACE\n  | typeof DB_OPERATION\n  | typeof DB_OPERATION_BATCH_SIZE\n  | typeof DB_OPERATION_NAME\n  | typeof DB_PARAMS\n  | typeof DB_QUERY_PARAMETER_KEY\n  | typeof DB_QUERY_SUMMARY\n  | typeof DB_QUERY_TEXT\n  | typeof DB_REDIS_CONNECTION\n  | typeof DB_REDIS_KEY\n  | typeof DB_REDIS_PARAMETERS\n  | typeof DB_RESPONSE_STATUS_CODE\n  | typeof DB_SQL_BINDINGS\n  | typeof DB_STATEMENT\n  | typeof DB_STORED_PROCEDURE_NAME\n  | typeof DB_SYSTEM\n  | typeof DB_SYSTEM_NAME\n  | typeof DB_USER\n  | typeof DEVICEMEMORY\n  | typeof DEVICE_ARCHS\n  | typeof DEVICE_BATTERY_LEVEL\n  | typeof DEVICE_BATTERY_TEMPERATURE\n  | typeof DEVICE_BOOT_TIME\n  | typeof DEVICE_BRAND\n  | typeof DEVICE_CHARGING\n  | typeof DEVICE_CHIPSET\n  | typeof DEVICE_CLASS\n  | typeof DEVICE_CONNECTION_TYPE\n  | typeof DEVICE_CPU_DESCRIPTION\n  | typeof DEVICE_EXTERNAL_FREE_STORAGE\n  | typeof DEVICE_EXTERNAL_STORAGE_SIZE\n  | typeof DEVICE_FAMILY\n  | typeof DEVICE_FREE_MEMORY\n  | typeof DEVICE_FREE_STORAGE\n  | typeof DEVICE_ID\n  | typeof DEVICE_LOCALE\n  | typeof DEVICE_LOW_MEMORY\n  | typeof DEVICE_LOW_POWER_MODE\n  | typeof DEVICE_MANUFACTURER\n  | typeof DEVICE_MEMORY_ESTIMATED_CAPACITY\n  | typeof DEVICE_MEMORY_SIZE\n  | typeof DEVICE_MODEL\n  | typeof DEVICE_MODEL_ID\n  | typeof DEVICE_NAME\n  | typeof DEVICE_ONLINE\n  | typeof DEVICE_ORIENTATION\n  | typeof DEVICE_PROCESSOR_COUNT\n  | typeof DEVICE_PROCESSOR_FREQUENCY\n  | typeof DEVICE_SCREEN_DENSITY\n  | typeof DEVICE_SCREEN_DPI\n  | typeof DEVICE_SCREEN_HEIGHT_PIXELS\n  | typeof DEVICE_SCREEN_WIDTH_PIXELS\n  | typeof DEVICE_SIMULATOR\n  | typeof DEVICE_STORAGE_SIZE\n  | typeof DEVICE_THERMAL_STATE\n  | typeof DEVICE_TIMEZONE\n  | typeof DEVICE_USABLE_MEMORY\n  | typeof DIST\n  | typeof DJANGO_FUNCTION_NAME\n  | typeof DJANGO_MIDDLEWARE_NAME\n  | typeof EFFECTIVECONNECTIONTYPE\n  | typeof ENVIRONMENT\n  | typeof ERROR_TYPE\n  | typeof EVENT_ID\n  | typeof EVENT_NAME\n  | typeof EXCEPTION_ESCAPED\n  | typeof EXCEPTION_MESSAGE\n  | typeof EXCEPTION_STACKTRACE\n  | typeof EXCEPTION_TYPE\n  | typeof FAAS_COLDSTART\n  | typeof FAAS_CRON\n  | typeof FAAS_DOCUMENT_COLLECTION\n  | typeof FAAS_DOCUMENT_NAME\n  | typeof FAAS_DOCUMENT_OPERATION\n  | typeof FAAS_DOCUMENT_TIME\n  | typeof FAAS_DURATION_IN_MS\n  | typeof FAAS_ENTRY_POINT\n  | typeof FAAS_EXECUTION\n  | typeof FAAS_ID\n  | typeof FAAS_IDENTITY\n  | typeof FAAS_INSTANCE\n  | typeof FAAS_INVOCATION_ID\n  | typeof FAAS_INVOKED_NAME\n  | typeof FAAS_INVOKED_PROVIDER\n  | typeof FAAS_INVOKED_REGION\n  | typeof FAAS_MAX_MEMORY\n  | typeof FAAS_NAME\n  | typeof FAAS_TIME\n  | typeof FAAS_TRIGGER\n  | typeof FAAS_VERSION\n  | typeof FCP\n  | typeof FILE_PATH\n  | typeof FILE_SIZE\n  | typeof FLAG_EVALUATION_KEY\n  | typeof FP\n  | typeof FRAMES_DELAY\n  | typeof FRAMES_FROZEN\n  | typeof FRAMES_FROZEN_RATE\n  | typeof FRAMES_SLOW\n  | typeof FRAMES_SLOW_RATE\n  | typeof FRAMES_TOTAL\n  | typeof FS_ERROR\n  | typeof GCP_FUNCTION_CONTEXT_EVENT_ID\n  | typeof GCP_FUNCTION_CONTEXT_EVENT_TYPE\n  | typeof GCP_FUNCTION_CONTEXT_ID\n  | typeof GCP_FUNCTION_CONTEXT_RESOURCE\n  | typeof GCP_FUNCTION_CONTEXT_SOURCE\n  | typeof GCP_FUNCTION_CONTEXT_SPECVERSION\n  | typeof GCP_FUNCTION_CONTEXT_TIME\n  | typeof GCP_FUNCTION_CONTEXT_TIMESTAMP\n  | typeof GCP_FUNCTION_CONTEXT_TYPE\n  | typeof GCP_PROJECT_ID\n  | typeof GCP_REGION\n  | typeof GEN_AI_AGENT_NAME\n  | typeof GEN_AI_CONTEXT_UTILIZATION\n  | typeof GEN_AI_CONTEXT_WINDOW_SIZE\n  | typeof GEN_AI_CONVERSATION_ID\n  | typeof GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS\n  | typeof GEN_AI_COST_CACHE_READ_INPUT_TOKENS\n  | typeof GEN_AI_COST_INPUT_TOKENS\n  | typeof GEN_AI_COST_OUTPUT_TOKENS\n  | typeof GEN_AI_COST_REASONING_OUTPUT_TOKENS\n  | typeof GEN_AI_COST_TOTAL_TOKENS\n  | typeof GEN_AI_EMBEDDINGS_INPUT\n  | typeof GEN_AI_FUNCTION_ID\n  | typeof GEN_AI_INPUT_MESSAGES\n  | typeof GEN_AI_MEMORY_QUERY_TEXT\n  | typeof GEN_AI_MEMORY_RECORDS\n  | typeof GEN_AI_MEMORY_RECORD_COUNT\n  | typeof GEN_AI_MEMORY_RECORD_ID\n  | typeof GEN_AI_MEMORY_STORE_ID\n  | typeof GEN_AI_OPERATION_NAME\n  | typeof GEN_AI_OPERATION_TYPE\n  | typeof GEN_AI_OUTPUT_MESSAGES\n  | typeof GEN_AI_PIPELINE_NAME\n  | typeof GEN_AI_PROMPT\n  | typeof GEN_AI_PROMPT_NAME\n  | typeof GEN_AI_PROMPT_VARIABLE_KEY\n  | typeof GEN_AI_PROVIDER_NAME\n  | typeof GEN_AI_REQUEST_AVAILABLE_TOOLS\n  | typeof GEN_AI_REQUEST_FREQUENCY_PENALTY\n  | typeof GEN_AI_REQUEST_MAX_TOKENS\n  | typeof GEN_AI_REQUEST_MESSAGES\n  | typeof GEN_AI_REQUEST_MODEL\n  | typeof GEN_AI_REQUEST_PRESENCE_PENALTY\n  | typeof GEN_AI_REQUEST_REASONING_LEVEL\n  | typeof GEN_AI_REQUEST_SCHEMA\n  | typeof GEN_AI_REQUEST_SEED\n  | typeof GEN_AI_REQUEST_STOP_SEQUENCES\n  | typeof GEN_AI_REQUEST_TEMPERATURE\n  | typeof GEN_AI_REQUEST_TOP_K\n  | typeof GEN_AI_REQUEST_TOP_P\n  | typeof GEN_AI_RESPONSE_FINISH_REASON\n  | typeof GEN_AI_RESPONSE_FINISH_REASONS\n  | typeof GEN_AI_RESPONSE_ID\n  | typeof GEN_AI_RESPONSE_MODEL\n  | typeof GEN_AI_RESPONSE_OBJECT\n  | typeof GEN_AI_RESPONSE_STREAMING\n  | typeof GEN_AI_RESPONSE_TEXT\n  | typeof GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK\n  | typeof GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN\n  | typeof GEN_AI_RESPONSE_TOKENS_PER_SECOND\n  | typeof GEN_AI_RESPONSE_TOOL_CALLS\n  | typeof GEN_AI_SYSTEM\n  | typeof GEN_AI_SYSTEM_INSTRUCTIONS\n  | typeof GEN_AI_SYSTEM_MESSAGE\n  | typeof GEN_AI_TOOL_CALL_ARGUMENTS\n  | typeof GEN_AI_TOOL_CALL_RESULT\n  | typeof GEN_AI_TOOL_CALL_RESULT_SIZE\n  | typeof GEN_AI_TOOL_DEFINITIONS\n  | typeof GEN_AI_TOOL_DESCRIPTION\n  | typeof GEN_AI_TOOL_INPUT\n  | typeof GEN_AI_TOOL_MESSAGE\n  | typeof GEN_AI_TOOL_NAME\n  | typeof GEN_AI_TOOL_OUTPUT\n  | typeof GEN_AI_TOOL_TYPE\n  | typeof GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS\n  | typeof _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS\n  | typeof GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS\n  | typeof _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS\n  | typeof GEN_AI_USAGE_COMPLETION_TOKENS\n  | typeof GEN_AI_USAGE_INPUT_TOKENS\n  | typeof GEN_AI_USAGE_INPUT_TOKENS_CACHED\n  | typeof GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE\n  | typeof GEN_AI_USAGE_OUTPUT_TOKENS\n  | typeof GEN_AI_USAGE_OUTPUT_TOKENS_REASONING\n  | typeof GEN_AI_USAGE_PROMPT_TOKENS\n  | typeof GEN_AI_USAGE_REASONING_OUTPUT_TOKENS\n  | typeof GEN_AI_USAGE_TOTAL_TOKENS\n  | typeof GRAPHQL_DOCUMENT\n  | typeof GRAPHQL_OPERATION_NAME\n  | typeof GRAPHQL_OPERATION_TYPE\n  | typeof GRAPHQL_PROCESSING_TYPE\n  | typeof GRAPHQL_SOURCE\n  | typeof GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS\n  | typeof GRPC_ERROR_DEBUG_INFO_DETAIL\n  | typeof GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES\n  | typeof GRPC_ERROR_ERROR_INFO_DOMAIN\n  | typeof GRPC_ERROR_ERROR_INFO_METADATA_KEY\n  | typeof GRPC_ERROR_ERROR_INFO_REASON\n  | typeof GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS\n  | typeof GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS\n  | typeof GRPC_ERROR_RESOURCE_INFO_DESCRIPTION\n  | typeof GRPC_ERROR_RESOURCE_INFO_OWNER\n  | typeof GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME\n  | typeof GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE\n  | typeof GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS\n  | typeof HAPI_EXT_TYPE\n  | typeof HAPI_PLUGIN_NAME\n  | typeof HAPI_TYPE\n  | typeof HARDWARECONCURRENCY\n  | typeof HEROKU_DYNO_NAME\n  | typeof HEROKU_ERROR_CODE\n  | typeof HEROKU_ERROR_DESCRIPTION\n  | typeof HEROKU_LOGPLEX_DRAIN_TOKEN\n  | typeof HEROKU_ROUTER_CONNECT\n  | typeof HEROKU_ROUTER_REQUEST_ID\n  | typeof HEROKU_ROUTER_SERVICE\n  | typeof HTTP_CLIENT_IP\n  | typeof HTTP_DECODED_RESPONSE_CONTENT_LENGTH\n  | typeof HTTP_FLAVOR\n  | typeof HTTP_FRAGMENT\n  | typeof HTTP_HOST\n  | typeof HTTP_METHOD\n  | typeof HTTP_QUERY\n  | typeof HTTP_REQUEST_BODY_DATA\n  | typeof HTTP_REQUEST_BODY_DECODED_SIZE\n  | typeof HTTP_REQUEST_BODY_SIZE\n  | typeof HTTP_REQUEST_CONNECTION_END\n  | typeof HTTP_REQUEST_CONNECT_START\n  | typeof HTTP_REQUEST_CONTENT_LENGTH\n  | typeof HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED\n  | typeof HTTP_REQUEST_DOMAIN_LOOKUP_END\n  | typeof HTTP_REQUEST_DOMAIN_LOOKUP_START\n  | typeof HTTP_REQUEST_DURATION\n  | typeof HTTP_REQUEST_FETCH_START\n  | typeof HTTP_REQUEST_HEADER_KEY\n  | typeof HTTP_REQUEST_METHOD\n  | typeof _HTTP_REQUEST_METHOD\n  | typeof HTTP_REQUEST_REDIRECT_END\n  | typeof HTTP_REQUEST_REDIRECT_START\n  | typeof HTTP_REQUEST_REQUEST_START\n  | typeof HTTP_REQUEST_RESEND_COUNT\n  | typeof HTTP_REQUEST_RESPONSE_END\n  | typeof HTTP_REQUEST_RESPONSE_START\n  | typeof HTTP_REQUEST_SAME_ORIGIN\n  | typeof HTTP_REQUEST_SECURE_CONNECTION_START\n  | typeof HTTP_REQUEST_TIME_TO_FIRST_BYTE\n  | typeof HTTP_REQUEST_WORKER_START\n  | typeof HTTP_RESPONSE_BODY_DECODED_SIZE\n  | typeof HTTP_RESPONSE_BODY_SIZE\n  | typeof HTTP_RESPONSE_CONTENT_LENGTH\n  | typeof HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED\n  | typeof HTTP_RESPONSE_HEADER_CONTENT_LENGTH\n  | typeof HTTP_RESPONSE_HEADER_KEY\n  | typeof HTTP_RESPONSE_SIZE\n  | typeof HTTP_RESPONSE_STATUS_CODE\n  | typeof HTTP_RESPONSE_STATUS_TEXT\n  | typeof HTTP_RESPONSE_TRANSFER_SIZE\n  | typeof HTTP_ROUTE\n  | typeof HTTP_SCHEME\n  | typeof HTTP_SERVER_NAME\n  | typeof HTTP_SERVER_REQUEST_TIME_IN_QUEUE\n  | typeof HTTP_STATUS_CODE\n  | typeof HTTP_STATUS_TEXT\n  | typeof HTTP_TARGET\n  | typeof HTTP_URL\n  | typeof HTTP_USER_AGENT\n  | typeof ID\n  | typeof INP\n  | typeof INTEGRITY_BLOCKED_URL\n  | typeof INTEGRITY_DESTINATION\n  | typeof INTEGRITY_DOCUMENT_URL\n  | typeof INTEGRITY_REPORT_ONLY\n  | typeof JSONRPC_PROTOCOL_VERSION\n  | typeof JSONRPC_REQUEST_ID\n  | typeof JVM_GC_ACTION\n  | typeof JVM_GC_NAME\n  | typeof JVM_MEMORY_POOL_NAME\n  | typeof JVM_MEMORY_TYPE\n  | typeof JVM_THREAD_DAEMON\n  | typeof JVM_THREAD_STATE\n  | typeof KOA_NAME\n  | typeof KOA_TYPE\n  | typeof LANGCHAIN_CHAIN_NAME\n  | typeof LCP\n  | typeof LCP_ELEMENT\n  | typeof LCP_ID\n  | typeof LCP_LOADTIME\n  | typeof LCP_RENDERTIME\n  | typeof LCP_SIZE\n  | typeof LCP_URL\n  | typeof LITESTAR_MIDDLEWARE_NAME\n  | typeof LOGGER_NAME\n  | typeof MCP_AUTH_CLIENT_NAME\n  | typeof MCP_CANCELLED_REASON\n  | typeof MCP_CANCELLED_REQUEST_ID\n  | typeof MCP_CLIENT_NAME\n  | typeof MCP_CLIENT_TITLE\n  | typeof MCP_CLIENT_VERSION\n  | typeof MCP_LIFECYCLE_PHASE\n  | typeof MCP_LOGGING_DATA_TYPE\n  | typeof MCP_LOGGING_LEVEL\n  | typeof MCP_LOGGING_LOGGER\n  | typeof MCP_LOGGING_MESSAGE\n  | typeof MCP_METHOD_NAME\n  | typeof MCP_PROGRESS_CURRENT\n  | typeof MCP_PROGRESS_MESSAGE\n  | typeof MCP_PROGRESS_PERCENTAGE\n  | typeof MCP_PROGRESS_TOKEN\n  | typeof MCP_PROGRESS_TOTAL\n  | typeof MCP_PROMPT_NAME\n  | typeof MCP_PROMPT_RESULT_DESCRIPTION\n  | typeof MCP_PROMPT_RESULT_KEY_CONTENT\n  | typeof MCP_PROMPT_RESULT_KEY_ROLE\n  | typeof MCP_PROMPT_RESULT_MESSAGE_CONTENT\n  | typeof MCP_PROMPT_RESULT_MESSAGE_COUNT\n  | typeof MCP_PROMPT_RESULT_MESSAGE_ROLE\n  | typeof MCP_PROTOCOL_READY\n  | typeof MCP_PROTOCOL_VERSION\n  | typeof MCP_REQUEST_ARGUMENT_KEY\n  | typeof MCP_REQUEST_ARGUMENT_NAME\n  | typeof MCP_REQUEST_ARGUMENT_URI\n  | typeof MCP_REQUEST_ID\n  | typeof MCP_RESOURCE_PROTOCOL\n  | typeof MCP_RESOURCE_URI\n  | typeof MCP_SERVER_NAME\n  | typeof MCP_SERVER_TITLE\n  | typeof MCP_SERVER_VERSION\n  | typeof MCP_SESSION_ID\n  | typeof MCP_TOOL_NAME\n  | typeof MCP_TOOL_RESULT_CONTENT\n  | typeof MCP_TOOL_RESULT_CONTENT_COUNT\n  | typeof MCP_TOOL_RESULT_CONTENT_TYPE\n  | typeof MCP_TOOL_RESULT_DATA_SIZE\n  | typeof MCP_TOOL_RESULT_IS_ERROR\n  | typeof MCP_TOOL_RESULT_KEY_CONTENT\n  | typeof MCP_TOOL_RESULT_KEY_CONTENT_TYPE\n  | typeof MCP_TOOL_RESULT_KEY_DATA_SIZE\n  | typeof MCP_TOOL_RESULT_KEY_MIME_TYPE\n  | typeof MCP_TOOL_RESULT_KEY_NAME\n  | typeof MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE\n  | typeof MCP_TOOL_RESULT_KEY_RESOURCE_URI\n  | typeof MCP_TOOL_RESULT_KEY_URI\n  | typeof MCP_TOOL_RESULT_MIME_TYPE\n  | typeof MCP_TOOL_RESULT_NAME\n  | typeof MCP_TOOL_RESULT_RESOURCE_MIME_TYPE\n  | typeof MCP_TOOL_RESULT_RESOURCE_URI\n  | typeof MCP_TOOL_RESULT_URI\n  | typeof MCP_TRANSPORT\n  | typeof MDC_KEY\n  | typeof MESSAGING_BATCH_MESSAGE_COUNT\n  | typeof MESSAGING_BULLMQ_FLOW_NAME\n  | typeof MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP\n  | typeof MESSAGING_BULLMQ_JOB_BULK_NAMES\n  | typeof MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY\n  | typeof MESSAGING_BULLMQ_JOB_IDS\n  | typeof MESSAGING_BULLMQ_JOB_KEY\n  | typeof MESSAGING_BULLMQ_JOB_NAME\n  | typeof MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP\n  | typeof MESSAGING_BULLMQ_JOB_SCHEDULER_ID\n  | typeof MESSAGING_BULLMQ_JOB_STATE\n  | typeof MESSAGING_BULLMQ_JOB_TYPE\n  | typeof MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT\n  | typeof MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT\n  | typeof MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY\n  | typeof MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH\n  | typeof MESSAGING_BULLMQ_QUEUE_GRACE\n  | typeof MESSAGING_BULLMQ_QUEUE_JOBS_STATE\n  | typeof MESSAGING_BULLMQ_QUEUE_RATE_LIMIT\n  | typeof MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE\n  | typeof MESSAGING_BULLMQ_WORKER_FORCE_CLOSE\n  | typeof MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS\n  | typeof MESSAGING_BULLMQ_WORKER_NAME\n  | typeof MESSAGING_BULLMQ_WORKER_RATE_LIMIT\n  | typeof MESSAGING_BULLMQ_WORKER_STALLED_JOBS\n  | typeof MESSAGING_CLIENT_ID\n  | typeof MESSAGING_CONVERSATION_ID\n  | typeof MESSAGING_DESTINATION\n  | typeof MESSAGING_DESTINATION_CONNECTION\n  | typeof MESSAGING_DESTINATION_KIND\n  | typeof MESSAGING_DESTINATION_NAME\n  | typeof MESSAGING_DESTINATION_PARTITION_ID\n  | typeof MESSAGING_KAFKA_MESSAGE_KEY\n  | typeof MESSAGING_KAFKA_MESSAGE_TOMBSTONE\n  | typeof MESSAGING_KAFKA_OFFSET\n  | typeof MESSAGING_MESSAGE_BODY_SIZE\n  | typeof MESSAGING_MESSAGE_CONVERSATION_ID\n  | typeof MESSAGING_MESSAGE_ENVELOPE_SIZE\n  | typeof MESSAGING_MESSAGE_ID\n  | typeof _MESSAGING_MESSAGE_ID\n  | typeof MESSAGING_MESSAGE_RECEIVE_LATENCY\n  | typeof MESSAGING_MESSAGE_RETRY_COUNT\n  | typeof MESSAGING_OPERATION\n  | typeof MESSAGING_OPERATION_NAME\n  | typeof MESSAGING_OPERATION_TYPE\n  | typeof MESSAGING_PROTOCOL\n  | typeof MESSAGING_PROTOCOL_VERSION\n  | typeof MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY\n  | typeof MESSAGING_RABBITMQ_ROUTING_KEY\n  | typeof MESSAGING_SYSTEM\n  | typeof MESSAGING_URL\n  | typeof METHOD\n  | typeof MIDDLEWARE_NAME\n  | typeof NAVIGATION_ORIGIN\n  | typeof NAVIGATION_ROUTE_ID\n  | typeof NAVIGATION_TYPE\n  | typeof NEL_ELAPSED_TIME\n  | typeof NEL_PHASE\n  | typeof NEL_REFERRER\n  | typeof NEL_SAMPLING_FRACTION\n  | typeof NEL_SAMPLING_FUNCTION\n  | typeof NEL_TYPE\n  | typeof NETWORK_CONNECTION_EFFECTIVE_TYPE\n  | typeof NETWORK_CONNECTION_RTT\n  | typeof NETWORK_CONNECTION_TYPE\n  | typeof NETWORK_LOCAL_ADDRESS\n  | typeof NETWORK_LOCAL_PORT\n  | typeof NETWORK_PEER_ADDRESS\n  | typeof NETWORK_PEER_PORT\n  | typeof NETWORK_PROTOCOL_NAME\n  | typeof NETWORK_PROTOCOL_VERSION\n  | typeof NETWORK_TRANSPORT\n  | typeof NETWORK_TYPE\n  | typeof NET_HOST_IP\n  | typeof NET_HOST_NAME\n  | typeof NET_HOST_PORT\n  | typeof NET_PEER_IP\n  | typeof NET_PEER_NAME\n  | typeof NET_PEER_PORT\n  | typeof NET_PROTOCOL_NAME\n  | typeof NET_PROTOCOL_VERSION\n  | typeof NET_SOCK_FAMILY\n  | typeof NET_SOCK_HOST_ADDR\n  | typeof NET_SOCK_HOST_PORT\n  | typeof NET_SOCK_PEER_ADDR\n  | typeof NET_SOCK_PEER_NAME\n  | typeof NET_SOCK_PEER_PORT\n  | typeof NET_TRANSPORT\n  | typeof OS_BUILD\n  | typeof OS_BUILD_ID\n  | typeof OS_DESCRIPTION\n  | typeof OS_KERNEL_VERSION\n  | typeof OS_NAME\n  | typeof OS_RAW_DESCRIPTION\n  | typeof OS_ROOTED\n  | typeof OS_THEME\n  | typeof OS_TYPE\n  | typeof OS_VERSION\n  | typeof OTEL_KIND\n  | typeof OTEL_SCOPE_NAME\n  | typeof OTEL_SCOPE_VERSION\n  | typeof OTEL_STATUS_CODE\n  | typeof OTEL_STATUS_DESCRIPTION\n  | typeof PAGE_SERVER_RENDERING_TYPE\n  | typeof PARAMS_KEY\n  | typeof PERFORMANCE_ACTIVATIONSTART\n  | typeof PERFORMANCE_TIMEORIGIN\n  | typeof PORT\n  | typeof PREVIOUS_ROUTE\n  | typeof PROCESS_COMMAND_ARGS\n  | typeof PROCESS_EXECUTABLE_NAME\n  | typeof PROCESS_PID\n  | typeof PROCESS_RUNTIME_DESCRIPTION\n  | typeof PROCESS_RUNTIME_ENGINE_NAME\n  | typeof PROCESS_RUNTIME_ENGINE_VERSION\n  | typeof PROCESS_RUNTIME_NAME\n  | typeof PROCESS_RUNTIME_VERSION\n  | typeof PROFILE_ID\n  | typeof QUERY\n  | typeof QUERY_KEY\n  | typeof REACT_NATIVE_ARCHITECTURE\n  | typeof REACT_NATIVE_MODULE_CALL_COUNT\n  | typeof REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT\n  | typeof REACT_NATIVE_MODULE_DURATION_MAX\n  | typeof REACT_NATIVE_MODULE_DURATION_TOTAL\n  | typeof REACT_NATIVE_MODULE_ERROR_COUNT\n  | typeof REACT_NATIVE_MODULE_KIND\n  | typeof REACT_NATIVE_MODULE_METHOD\n  | typeof REACT_NATIVE_MODULE_NAME\n  | typeof REACT_NATIVE_MODULE_TOP_DURATION\n  | typeof REACT_NATIVE_MODULE_TOP_NAME\n  | typeof REACT_VERSION\n  | typeof REDIS_COMMAND\n  | typeof REDIS_KEY\n  | typeof RELEASE\n  | typeof REMIX_ACTION_FORM_DATA_KEY\n  | typeof REPLAYID\n  | typeof REPLAY_ID\n  | typeof RESOURCE_DEPLOYMENT_ENVIRONMENT\n  | typeof RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME\n  | typeof RESOURCE_RENDER_BLOCKING_STATUS\n  | typeof ROUTE\n  | typeof ROUTER_NAVIGATION_ORIGIN\n  | typeof ROUTER_NAVIGATION_ROUTE_ID\n  | typeof ROUTER_NAVIGATION_TYPE\n  | typeof RPC_GRPC_STATUS_CODE\n  | typeof RPC_METHOD\n  | typeof RPC_RESPONSE_STATUS_CODE\n  | typeof RPC_SERVICE\n  | typeof RPC_SYSTEM\n  | typeof RPC_SYSTEM_NAME\n  | typeof RUNTIME_BUILD\n  | typeof RUNTIME_NAME\n  | typeof RUNTIME_RAW_DESCRIPTION\n  | typeof RUNTIME_VERSION\n  | typeof SCORE_KEY\n  | typeof SCORE_RATIO_KEY\n  | typeof SCORE_TOTAL\n  | typeof SCORE_WEIGHT_KEY\n  | typeof SENTRY_ACTION\n  | typeof SENTRY_BROWSER_NAME\n  | typeof SENTRY_BROWSER_VERSION\n  | typeof SENTRY_CANCELLATION_REASON\n  | typeof SENTRY_CATEGORY\n  | typeof SENTRY_CLIENT_SAMPLE_RATE\n  | typeof SENTRY_DESCRIPTION\n  | typeof SENTRY_DIST\n  | typeof SENTRY_DOMAIN\n  | typeof SENTRY_DSC_ENVIRONMENT\n  | typeof SENTRY_DSC_PROJECT_ID\n  | typeof SENTRY_DSC_PUBLIC_KEY\n  | typeof SENTRY_DSC_RELEASE\n  | typeof SENTRY_DSC_SAMPLED\n  | typeof SENTRY_DSC_SAMPLE_RATE\n  | typeof SENTRY_DSC_TRACE_ID\n  | typeof SENTRY_DSC_TRANSACTION\n  | typeof SENTRY_ENVIRONMENT\n  | typeof SENTRY_EVENT_SERIALIZED_BREADCRUMBS\n  | typeof SENTRY_EVENT_SERIALIZED_CONTEXTS\n  | typeof SENTRY_EVENT_SERIALIZED_EXTRA\n  | typeof SENTRY_EVENT_SERIALIZED_META\n  | typeof SENTRY_EXCLUSIVE_TIME\n  | typeof SENTRY_FRAMES_FROZEN\n  | typeof SENTRY_FRAMES_SLOW\n  | typeof SENTRY_FRAMES_TOTAL\n  | typeof SENTRY_GRAPHQL_OPERATION\n  | typeof SENTRY_GROUP\n  | typeof SENTRY_HTTP_PREFETCH\n  | typeof SENTRY_IDLE_SPAN_FINISH_REASON\n  | typeof SENTRY_IS_LOCALHOST\n  | typeof SENTRY_IS_REMOTE\n  | typeof SENTRY_KIND\n  | typeof SENTRY_LINK_TYPE\n  | typeof SENTRY_MAIN_THREAD\n  | typeof SENTRY_MESSAGE_PARAMETER_KEY\n  | typeof SENTRY_MESSAGE_TEMPLATE\n  | typeof SENTRY_METRIC_SOURCE\n  | typeof SENTRY_MOBILE\n  | typeof SENTRY_MODULE_KEY\n  | typeof SENTRY_NEXTJS_SSR_FUNCTION_ROUTE\n  | typeof SENTRY_NEXTJS_SSR_FUNCTION_TYPE\n  | typeof SENTRY_NORMALIZED_DB_QUERY\n  | typeof SENTRY_NORMALIZED_DB_QUERY_HASH\n  | typeof SENTRY_NORMALIZED_DESCRIPTION\n  | typeof SENTRY_OBSERVED_TIMESTAMP_NANOS\n  | typeof SENTRY_OP\n  | typeof SENTRY_ORIGIN\n  | typeof SENTRY_PAGELOAD_SPAN_ID\n  | typeof SENTRY_PLATFORM\n  | typeof SENTRY_PROFILER_ID\n  | typeof SENTRY_PROFILE_ID\n  | typeof SENTRY_RELAY_INGRESS\n  | typeof SENTRY_RELAY_PIPELINE\n  | typeof SENTRY_RELEASE\n  | typeof SENTRY_REPLAY_ID\n  | typeof SENTRY_REPLAY_IS_BUFFERING\n  | typeof SENTRY_REPORT_EVENT\n  | typeof SENTRY_SDK_INTEGRATIONS\n  | typeof SENTRY_SDK_NAME\n  | typeof SENTRY_SDK_VERSION\n  | typeof SENTRY_SEGMENT_ID\n  | typeof _SENTRY_SEGMENT_ID\n  | typeof SENTRY_SEGMENT_NAME\n  | typeof SENTRY_SEGMENT_NAME_SOURCE\n  | typeof SENTRY_SERVER_SAMPLE_RATE\n  | typeof SENTRY_SOURCE\n  | typeof SENTRY_SPAN_SOURCE\n  | typeof SENTRY_STATUS\n  | typeof SENTRY_STATUS_CODE\n  | typeof SENTRY_STATUS_MESSAGE\n  | typeof SENTRY_SVELTEKIT_NAVIGATION_FROM\n  | typeof SENTRY_SVELTEKIT_NAVIGATION_TO\n  | typeof SENTRY_SVELTEKIT_NAVIGATION_TYPE\n  | typeof SENTRY_THREAD_ID\n  | typeof SENTRY_TIMESTAMP_SEQUENCE\n  | typeof SENTRY_TRACE_LIFECYCLE\n  | typeof SENTRY_TRACE_PARENT_SPAN_ID\n  | typeof SENTRY_TRACE_STATUS\n  | typeof SENTRY_TRANSACTION\n  | typeof SENTRY_USER_EMAIL\n  | typeof SENTRY_USER_GEO_CITY\n  | typeof SENTRY_USER_GEO_COUNTRY_CODE\n  | typeof SENTRY_USER_GEO_REGION\n  | typeof SENTRY_USER_GEO_SUBDIVISION\n  | typeof SENTRY_USER_GEO_SUBREGION\n  | typeof SENTRY_USER_ID\n  | typeof SENTRY_USER_IP\n  | typeof SENTRY_USER_USERNAME\n  | typeof SERVER_ADDRESS\n  | typeof SERVER_EXT_TYPE\n  | typeof SERVER_NAME\n  | typeof SERVER_PORT\n  | typeof SERVICE_NAME\n  | typeof SERVICE_VERSION\n  | typeof SESSION_ID\n  | typeof STALL_PERCENTAGE\n  | typeof STALL_TOTAL_TIME\n  | typeof STARLETTE_MIDDLEWARE_NAME\n  | typeof STARLITE_MIDDLEWARE_NAME\n  | typeof STATE_TYPE\n  | typeof SUBPROCESS_PID\n  | typeof SVELTEKIT_LOAD_ENVIRONMENT\n  | typeof SVELTEKIT_LOAD_NODE_ID\n  | typeof SVELTEKIT_LOAD_NODE_TYPE\n  | typeof SVELTEKIT_TRACING_ORIGINAL_NAME\n  | typeof THREAD_ID\n  | typeof THREAD_NAME\n  | typeof TIMBER_TAG\n  | typeof TIME_TO_FULL_DISPLAY\n  | typeof TIME_TO_INITIAL_DISPLAY\n  | typeof TLS_PROTOCOL_NAME\n  | typeof TLS_PROTOCOL_VERSION\n  | typeof TRANSACTION\n  | typeof TRPC_PROCEDURE_PATH\n  | typeof TRPC_PROCEDURE_TYPE\n  | typeof TTFB\n  | typeof TTFB_REQUESTTIME\n  | typeof TURBO_MODULES_TOTAL_CALL_COUNT\n  | typeof TURBO_MODULES_TOTAL_DURATION_MS\n  | typeof TURBO_MODULES_TOTAL_ERROR_COUNT\n  | typeof TURBO_MODULES_UNIQUE_METHODS\n  | typeof TURBO_MODULE_ARCH\n  | typeof TURBO_MODULE_METHOD\n  | typeof TURBO_MODULE_NAME\n  | typeof TURBO_MODULE_TOP_MODULE\n  | typeof TURBO_MODULE_TOP_MODULE_DURATION_MS\n  | typeof TURBO_MODULE_TOTAL_CALL_COUNT\n  | typeof TURBO_MODULE_TOTAL_DURATION_MS\n  | typeof TURBO_MODULE_TOTAL_ERROR_COUNT\n  | typeof TURBO_MODULE_UNIQUE_METHODS\n  | typeof TYPE\n  | typeof UI_COMPONENT_NAME\n  | typeof UI_CONTRIBUTES_TO_TTFD\n  | typeof UI_CONTRIBUTES_TO_TTID\n  | typeof UI_ELEMENT_HEIGHT\n  | typeof UI_ELEMENT_ID\n  | typeof UI_ELEMENT_IDENTIFIER\n  | typeof UI_ELEMENT_LOAD_TIME\n  | typeof UI_ELEMENT_PAINT_TYPE\n  | typeof UI_ELEMENT_RENDER_TIME\n  | typeof UI_ELEMENT_TYPE\n  | typeof UI_ELEMENT_URL\n  | typeof UI_ELEMENT_WIDTH\n  | typeof URL\n  | typeof URL_DOMAIN\n  | typeof URL_FRAGMENT\n  | typeof URL_FULL\n  | typeof URL_PATH\n  | typeof URL_PATH_PARAMETER_KEY\n  | typeof URL_PATH_PARAMS_KEY\n  | typeof URL_PORT\n  | typeof URL_QUERY\n  | typeof URL_SAME_ORIGIN\n  | typeof URL_SCHEME\n  | typeof URL_TEMPLATE\n  | typeof USER_AGENT_ORIGINAL\n  | typeof USER_EMAIL\n  | typeof USER_FULL_NAME\n  | typeof USER_GEO_CITY\n  | typeof USER_GEO_COUNTRY_CODE\n  | typeof USER_GEO_REGION\n  | typeof USER_GEO_SUBDIVISION\n  | typeof USER_GEO_SUBREGION\n  | typeof USER_HASH\n  | typeof USER_ID\n  | typeof USER_IP_ADDRESS\n  | typeof USER_NAME\n  | typeof USER_ROLES\n  | typeof VERCEL_AI_SETTINGS_CONTEXT_KEY\n  | typeof VERCEL_AI_TELEMETRY_METADATA_KEY\n  | typeof VERCEL_AI_TOOL_CALL_CONTEXT_KEY\n  | typeof VERCEL_BRANCH\n  | typeof VERCEL_BUILD_ID\n  | typeof VERCEL_DEPLOYMENT_ID\n  | typeof VERCEL_DESTINATION\n  | typeof VERCEL_EDGE_TYPE\n  | typeof VERCEL_ENTRYPOINT\n  | typeof VERCEL_EXECUTION_REGION\n  | typeof VERCEL_ID\n  | typeof VERCEL_JA3_DIGEST\n  | typeof VERCEL_JA4_DIGEST\n  | typeof VERCEL_LOG_TYPE\n  | typeof VERCEL_PATH\n  | typeof VERCEL_PROJECT_ID\n  | typeof VERCEL_PROJECT_NAME\n  | typeof VERCEL_PROXY_CACHE_ID\n  | typeof VERCEL_PROXY_CLIENT_IP\n  | typeof VERCEL_PROXY_HOST\n  | typeof VERCEL_PROXY_LAMBDA_REGION\n  | typeof VERCEL_PROXY_METHOD\n  | typeof VERCEL_PROXY_PATH\n  | typeof VERCEL_PROXY_PATH_TYPE\n  | typeof VERCEL_PROXY_PATH_TYPE_VARIANT\n  | typeof VERCEL_PROXY_REFERER\n  | typeof VERCEL_PROXY_REGION\n  | typeof VERCEL_PROXY_RESPONSE_BYTE_SIZE\n  | typeof VERCEL_PROXY_SCHEME\n  | typeof VERCEL_PROXY_STATUS_CODE\n  | typeof VERCEL_PROXY_TIMESTAMP\n  | typeof VERCEL_PROXY_USER_AGENT\n  | typeof VERCEL_PROXY_VERCEL_CACHE\n  | typeof VERCEL_PROXY_VERCEL_ID\n  | typeof VERCEL_PROXY_WAF_ACTION\n  | typeof VERCEL_PROXY_WAF_RULE_ID\n  | typeof VERCEL_REQUEST_ID\n  | typeof VERCEL_SOURCE\n  | typeof VERCEL_STATUS_CODE;\n\nexport const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {\n  address: {\n    brief: 'The destination hostname or IP address for a TCP connection.',\n    type: 'string',\n    keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'example.com',\n    examples: ['example.com'],\n    deprecation: {\n      replacement: 'server.address',\n      reason: 'Old namespace-less attribute, to be replaced with server.address for span-first future',\n      status: 'backfill',\n    },\n    aliases: ['server.address', 'http.server_name', 'net.host.name', 'http.host', 'server_name', 'net.peer.name'],\n    changelog: [\n      { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n      { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n      { version: '0.19.0', prs: [534], description: 'Added address attribute' },\n    ],\n  },\n  'ai.citations': {\n    brief: 'References or sources cited by the AI model in its response.',\n    type: 'string[]',\n    keys: ['ai.citations'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['Citation 1', 'Citation 2'],\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.completion_tokens.used': {\n    brief: 'The number of tokens used to respond to the message.',\n    type: 'integer',\n    keys: ['gen_ai.usage.output_tokens', 'ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 10,\n    deprecation: {\n      replacement: 'gen_ai.usage.output_tokens',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.output_tokens', 'gen_ai.usage.completion_tokens'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [57, 61] }, { version: '0.0.0' }],\n  },\n  'ai.documents': {\n    brief: 'Documents or content chunks used as context for the AI model.',\n    type: 'string[]',\n    keys: ['ai.documents'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['document1.txt', 'document2.pdf'],\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.finish_reason': {\n    brief: 'The reason why the model stopped generating.',\n    type: 'string',\n    keys: ['gen_ai.response.finish_reasons', 'ai.finish_reason', 'gen_ai.response.finish_reason'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'COMPLETE',\n    deprecation: {\n      replacement: 'gen_ai.response.finish_reasons',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.response.finish_reasons'],\n    changelog: [{ version: '0.1.0', prs: [55, 57, 61, 108, 127] }],\n  },\n  'ai.frequency_penalty': {\n    brief:\n      'Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.',\n    type: 'double',\n    keys: ['gen_ai.request.frequency_penalty', 'ai.frequency_penalty'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.5,\n    deprecation: {\n      replacement: 'gen_ai.request.frequency_penalty',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.frequency_penalty'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [55, 57, 61, 108] },\n    ],\n  },\n  'ai.function_call': {\n    brief:\n      'For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls',\n    type: 'string',\n    keys: ['gen_ai.tool.name', 'ai.function_call', 'mcp.tool.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'function_name',\n    deprecation: {\n      replacement: 'gen_ai.tool.name',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.tool.name', 'mcp.tool.name'],\n    changelog: [{ version: '0.1.0', prs: [55, 57, 61, 108] }],\n  },\n  'ai.generation_id': {\n    brief: 'Unique identifier for the completion.',\n    type: 'string',\n    keys: ['gen_ai.response.id', 'ai.generation_id', 'ai.response.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'gen_123abc',\n    deprecation: {\n      replacement: 'gen_ai.response.id',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.response.id', 'ai.response.id'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.response.id as an alias' },\n      { version: '0.1.0', prs: [55, 57, 61, 108, 127] },\n    ],\n  },\n  'ai.input_messages': {\n    brief: 'The input messages sent to the model',\n    type: 'string',\n    keys: [\n      'gen_ai.input.messages',\n      'ai.input_messages',\n      'ai.prompt',\n      'ai.prompt.messages',\n      'ai.texts',\n      'gen_ai.prompt',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n    deprecation: {\n      replacement: 'gen_ai.input.messages',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.messages'],\n    changelog: [{ version: '0.1.0', prs: [65, 119] }, { version: '0.0.0' }],\n  },\n  'ai.is_search_required': {\n    brief: 'Boolean indicating if the model needs to perform a search.',\n    type: 'boolean',\n    keys: ['ai.is_search_required'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: false,\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.metadata': {\n    brief: 'Extra metadata passed to an AI pipeline step.',\n    type: 'string',\n    keys: ['ai.metadata'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"user_id\": 123, \"session_id\": \"abc123\"}',\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55, 127] },\n    ],\n  },\n  'ai.model.id': {\n    brief: 'The id of the model used by the Vercel AI SDK.',\n    type: 'string',\n    keys: ['gen_ai.request.model', 'ai.model.id', 'ai.model_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'gpt-4o',\n    examples: ['gpt-4o'],\n    deprecation: {\n      replacement: 'gen_ai.request.model',\n      reason: 'This attribute is being deprecated in favor of gen_ai.request.model.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.model', 'ai.model_id'],\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.model.id attribute' }],\n  },\n  'ai.model_id': {\n    brief: 'The vendor-specific ID of the model used.',\n    type: 'string',\n    keys: ['gen_ai.request.model', 'ai.model.id', 'ai.model_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'gpt-4',\n    deprecation: {\n      replacement: 'gen_ai.request.model',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.model', 'ai.model.id'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.model.id as an alias' },\n      { version: '0.1.0', prs: [57, 61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'ai.model.provider': {\n    brief: 'The provider of the model.',\n    type: 'string',\n    keys: ['gen_ai.provider.name', 'ai.model.provider', 'gen_ai.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'openai',\n    deprecation: {\n      replacement: 'gen_ai.provider.name',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.provider.name', 'gen_ai.system'],\n    changelog: [\n      { version: '0.4.0', prs: [253] },\n      { version: '0.1.0', prs: [57, 61, 108, 127] },\n    ],\n  },\n  'ai.pipeline.name': {\n    brief: 'The name of the AI pipeline.',\n    type: 'string',\n    keys: ['gen_ai.pipeline.name', 'ai.pipeline.name', 'langchain.chain.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Autofix Pipeline',\n    deprecation: {\n      replacement: 'gen_ai.pipeline.name',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.pipeline.name', 'langchain.chain.name'],\n    changelog: [\n      { version: '0.22.0', prs: [599], description: 'Added langchain.chain.name as an alias' },\n      { version: '0.1.0', prs: [53, 76, 108, 127] },\n    ],\n  },\n  'ai.preamble': {\n    brief:\n      \"For an AI model call, the preamble parameter. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style.\",\n    type: 'string',\n    keys: ['gen_ai.system_instructions', 'ai.preamble', 'gen_ai.system.message'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'You are now a clown.',\n    deprecation: {\n      replacement: 'gen_ai.system_instructions',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.system_instructions'],\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.presence_penalty': {\n    brief:\n      'Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.',\n    type: 'double',\n    keys: ['gen_ai.request.presence_penalty', 'ai.presence_penalty'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.5,\n    deprecation: {\n      replacement: 'gen_ai.request.presence_penalty',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.presence_penalty'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [55, 57, 61, 108] },\n    ],\n  },\n  'ai.prompt': {\n    brief: 'The prompt passed to the Vercel AI SDK, as a stringified object.',\n    type: 'string',\n    keys: [\n      'gen_ai.input.messages',\n      'ai.input_messages',\n      'ai.prompt',\n      'ai.prompt.messages',\n      'ai.texts',\n      'gen_ai.prompt',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"prompt\":\"What is the weather in Paris?\"}',\n    examples: ['{\"prompt\":\"What is the weather in Paris?\"}'],\n    deprecation: {\n      replacement: 'gen_ai.input.messages',\n      reason: 'This attribute is being deprecated in favor of gen_ai.input.messages.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.input.messages', 'ai.texts', 'ai.prompt.messages', 'gen_ai.prompt'],\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.prompt attribute' }],\n  },\n  'ai.prompt.messages': {\n    brief: 'The input messages sent to the AI model.',\n    type: 'string',\n    keys: [\n      'gen_ai.input.messages',\n      'ai.input_messages',\n      'ai.prompt',\n      'ai.prompt.messages',\n      'ai.texts',\n      'gen_ai.prompt',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n    deprecation: {\n      replacement: 'gen_ai.input.messages',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.input.messages', 'ai.texts', 'gen_ai.prompt', 'ai.prompt'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n      { version: '0.19.0', prs: [498], description: 'Added ai.prompt.messages attribute' },\n    ],\n  },\n  'ai.prompt_tokens.used': {\n    brief: 'The number of tokens used to process just the prompt.',\n    type: 'integer',\n    keys: ['gen_ai.usage.input_tokens', 'ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 20,\n    deprecation: {\n      replacement: 'gen_ai.usage.input_tokens',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.prompt_tokens', 'gen_ai.usage.input_tokens'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [57, 61] }, { version: '0.0.0' }],\n  },\n  'ai.prompt.tools': {\n    brief: 'The tools made available to the model, as an array of stringified tool definitions.',\n    type: 'string[]',\n    keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['{\"type\":\"function\",\"name\":\"get_weather\"}'],\n    examples: [['{\"type\":\"function\",\"name\":\"get_weather\"}']],\n    deprecation: {\n      replacement: 'gen_ai.tool.definitions',\n      reason: 'This attribute is being deprecated in favor of gen_ai.tool.definitions.',\n      status: 'backfill',\n    },\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.prompt.tools attribute' }],\n  },\n  'ai.raw_prompting': {\n    brief: 'When enabled, the user’s prompt will be sent to the model without any pre-processing.',\n    type: 'boolean',\n    keys: ['ai.raw_prompting'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.responses': {\n    brief: 'The response messages sent back by the AI model.',\n    type: 'string[]',\n    keys: ['gen_ai.output.messages', 'ai.response.text', 'ai.response.toolCalls', 'ai.responses', 'ai.tool_calls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['hello', 'world'],\n    deprecation: {\n      replacement: 'gen_ai.output.messages',\n      status: 'backfill',\n    },\n    changelog: [{ version: '0.1.0', prs: [65, 127] }, { version: '0.0.0' }],\n  },\n  'ai.response_format': {\n    brief: 'For an AI model call, the format of the response',\n    type: 'string',\n    keys: ['ai.response_format'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'json_object',\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55, 127] },\n    ],\n  },\n  'ai.response.id': {\n    brief: 'The id of the response returned by the model.',\n    type: 'string',\n    keys: ['gen_ai.response.id', 'ai.generation_id', 'ai.response.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY',\n    examples: ['chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY'],\n    deprecation: {\n      replacement: 'gen_ai.response.id',\n      reason: 'This attribute is being deprecated in favor of gen_ai.response.id.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.response.id', 'ai.generation_id'],\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.id attribute' }],\n  },\n  'ai.response.model': {\n    brief: 'The id of the model that produced the response.',\n    type: 'string',\n    keys: ['gen_ai.response.model', 'ai.response.model'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'gpt-4o-2024-08-06',\n    examples: ['gpt-4o-2024-08-06'],\n    deprecation: {\n      replacement: 'gen_ai.response.model',\n      reason: 'This attribute is being deprecated in favor of gen_ai.response.model.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.response.model'],\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.model attribute' }],\n  },\n  'ai.response.object': {\n    brief: 'The type of the object returned by the model.',\n    type: 'string',\n    keys: ['ai.response.object'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'chat.completion',\n    examples: ['chat.completion'],\n    deprecation: {\n      reason:\n        'This attribute is deprecated. The Sentry conventions have no replacement for the raw Vercel AI response object type.',\n    },\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.object attribute' }],\n  },\n  'ai.response.text': {\n    brief: 'The text response from the AI model.',\n    type: 'string',\n    keys: ['gen_ai.output.messages', 'ai.response.text', 'ai.response.toolCalls', 'ai.responses', 'ai.tool_calls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'The weather in Paris is currently rainy.',\n    deprecation: {\n      replacement: 'gen_ai.output.messages',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.output.messages', 'ai.response.toolCalls'],\n    changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.response.text attribute' }],\n  },\n  'ai.response.timestamp': {\n    brief: 'The ISO 8601 timestamp at which the response was produced.',\n    type: 'string',\n    keys: ['ai.response.timestamp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '2026-02-19T15:32:11.000Z',\n    examples: ['2026-02-19T15:32:11.000Z'],\n    deprecation: {\n      reason: 'This attribute is deprecated. The span start and end timestamps carry the same information.',\n    },\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.timestamp attribute' }],\n  },\n  'ai.response.toolCalls': {\n    brief: 'The tool calls in the AI model response.',\n    type: 'string',\n    keys: ['gen_ai.output.messages', 'ai.response.text', 'ai.response.toolCalls', 'ai.responses', 'ai.tool_calls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '[{\"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]',\n    deprecation: {\n      replacement: 'gen_ai.output.messages',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.output.messages', 'ai.response.text'],\n    changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.response.toolCalls attribute' }],\n  },\n  'ai.schema': {\n    brief: 'The stringified JSON schema the model output must conform to.',\n    type: 'string',\n    keys: ['ai.schema'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}',\n    examples: ['{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}'],\n    deprecation: {\n      reason:\n        'This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.',\n    },\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.schema attribute' }],\n  },\n  'ai.search_queries': {\n    brief: 'Queries used to search for relevant context or documents.',\n    type: 'string[]',\n    keys: ['ai.search_queries'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['climate change effects', 'renewable energy'],\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.search_results': {\n    brief: 'Results returned from search queries for context.',\n    type: 'string[]',\n    keys: ['ai.search_results'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['search_result_1, search_result_2'],\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.seed': {\n    brief: 'The seed, ideally models given the same seed and same other parameters will produce the exact same output.',\n    type: 'string',\n    keys: ['gen_ai.request.seed', 'ai.seed'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1234567890',\n    deprecation: {\n      replacement: 'gen_ai.request.seed',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.seed'],\n    changelog: [{ version: '0.1.0', prs: [55, 57, 61, 108, 127] }],\n  },\n  'ai.streaming': {\n    brief: 'Whether the request was streamed back.',\n    type: 'boolean',\n    keys: ['gen_ai.response.streaming', 'ai.streaming'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    deprecation: {\n      replacement: 'gen_ai.response.streaming',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.response.streaming'],\n    changelog: [{ version: '0.1.0', prs: [76, 108] }, { version: '0.0.0' }],\n  },\n  'ai.tags': {\n    brief: 'Tags that describe an AI pipeline step.',\n    type: 'string',\n    keys: ['ai.tags'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"executed_function\": \"add_integers\"}',\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55, 127] },\n    ],\n  },\n  'ai.temperature': {\n    brief:\n      'For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.',\n    type: 'double',\n    keys: ['gen_ai.request.temperature', 'ai.temperature'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.1,\n    deprecation: {\n      replacement: 'gen_ai.request.temperature',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.temperature'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [55, 57, 61, 108] },\n    ],\n  },\n  'ai.texts': {\n    brief: 'Raw text inputs provided to the model.',\n    type: 'string[]',\n    keys: [\n      'gen_ai.input.messages',\n      'ai.input_messages',\n      'ai.prompt',\n      'ai.prompt.messages',\n      'ai.texts',\n      'gen_ai.prompt',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['Hello, how are you?', 'What is the capital of France?'],\n    deprecation: {\n      replacement: 'gen_ai.input.messages',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.input.messages', 'ai.prompt.messages', 'gen_ai.prompt', 'ai.prompt'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'ai.toolCall.args': {\n    brief: 'The arguments of the tool call.',\n    type: 'string',\n    keys: ['gen_ai.tool.call.arguments', 'ai.toolCall.args', 'gen_ai.tool.input'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"location\": \"Paris\"}',\n    deprecation: {\n      replacement: 'gen_ai.tool.call.arguments',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.tool.call.arguments', 'gen_ai.tool.input'],\n    changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.toolCall.args attribute' }],\n  },\n  'ai.toolCall.result': {\n    brief: 'The result of the tool call.',\n    type: 'string',\n    keys: [\n      'gen_ai.tool.call.result',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n      'gen_ai.tool.message',\n      'gen_ai.tool.output',\n      'mcp.tool.result.content',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'rainy, 57°F',\n    deprecation: {\n      replacement: 'gen_ai.tool.call.result',\n      status: 'backfill',\n    },\n    aliases: [\n      'gen_ai.tool.call.result',\n      'gen_ai.tool.output',\n      'gen_ai.tool.message',\n      'mcp.tool.result.content',\n      'anthropic.tool_result.content',\n    ],\n    changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.toolCall.result attribute' }],\n  },\n  'ai.tools': {\n    brief: 'For an AI model call, the functions that are available',\n    type: 'string[]',\n    keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['function_1', 'function_2'],\n    deprecation: {\n      replacement: 'gen_ai.tool.definitions',\n      status: 'backfill',\n    },\n    changelog: [{ version: '0.1.0', prs: [55, 65, 127] }],\n  },\n  'ai.tool_calls': {\n    brief: 'For an AI model call, the tool calls that were made.',\n    type: 'string[]',\n    keys: ['gen_ai.output.messages', 'ai.response.text', 'ai.response.toolCalls', 'ai.responses', 'ai.tool_calls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['tool_call_1', 'tool_call_2'],\n    deprecation: {\n      replacement: 'gen_ai.output.messages',\n      status: 'backfill',\n    },\n    changelog: [{ version: '0.1.0', prs: [55, 65] }],\n  },\n  'ai.top_k': {\n    brief:\n      'Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).',\n    type: 'integer',\n    keys: ['gen_ai.request.top_k', 'ai.top_k'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 35,\n    deprecation: {\n      replacement: 'gen_ai.request.top_k',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.top_k'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [55, 57, 61, 108] },\n    ],\n  },\n  'ai.top_p': {\n    brief:\n      'Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).',\n    type: 'double',\n    keys: ['gen_ai.request.top_p', 'ai.top_p'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.7,\n    deprecation: {\n      replacement: 'gen_ai.request.top_p',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.request.top_p'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [55, 57, 61, 108] },\n    ],\n  },\n  'ai.total_cost': {\n    brief: 'The total cost for the tokens used.',\n    type: 'double',\n    keys: ['gen_ai.cost.total_tokens', 'ai.total_cost'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12.34,\n    deprecation: {\n      replacement: 'gen_ai.cost.total_tokens',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.cost.total_tokens'],\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [53] },\n    ],\n    searchAlias: {\n      name: 'ai.total_cost',\n      type: 'currency',\n    },\n  },\n  'ai.total_tokens.used': {\n    brief: 'The total number of tokens used to process the prompt.',\n    type: 'integer',\n    keys: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used', 'ai.usage.tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 30,\n    deprecation: {\n      replacement: 'gen_ai.usage.total_tokens',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.total_tokens', 'ai.usage.tokens'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.usage.tokens as an alias' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [57, 61, 108] },\n      { version: '0.0.0' },\n    ],\n  },\n  'ai.usage.tokens': {\n    brief: 'The total number of tokens used for the request and the response.',\n    type: 'integer',\n    keys: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used', 'ai.usage.tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 150,\n    examples: [150],\n    deprecation: {\n      replacement: 'gen_ai.usage.total_tokens',\n      reason: 'This attribute is being deprecated in favor of gen_ai.usage.total_tokens.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used'],\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.usage.tokens attribute' }],\n  },\n  'ai.values': {\n    brief: 'The stringified values produced by a Vercel AI SDK object or array generation.',\n    type: 'string',\n    keys: ['ai.values'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '[{\"city\":\"Paris\"}]',\n    examples: ['[{\"city\":\"Paris\"}]'],\n    deprecation: {\n      reason: 'This attribute is deprecated. Use gen_ai.output.messages for model output instead.',\n    },\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.values attribute' }],\n  },\n  'ai.warnings': {\n    brief: 'Warning messages generated during model execution.',\n    type: 'string[]',\n    keys: ['ai.warnings'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['Token limit exceeded'],\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.1.0', prs: [55] },\n    ],\n  },\n  'angular.version': {\n    brief: 'The version of the Angular framework',\n    type: 'string',\n    keys: ['angular.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '17.1.0',\n    changelog: [{ version: '0.7.0', prs: [367], description: 'Added angular.version attribute' }],\n  },\n  'anthropic.tool_result.content': {\n    brief: 'The content of the tool result.',\n    type: 'string',\n    keys: [\n      'gen_ai.tool.call.result',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n      'gen_ai.tool.message',\n      'gen_ai.tool.output',\n      'mcp.tool.result.content',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'rainy, 57°F',\n    examples: ['rainy, 57°F'],\n    deprecation: {\n      replacement: 'gen_ai.tool.call.result',\n      reason: 'Use gen_ai.tool.call.result for tool results.',\n      status: 'backfill',\n    },\n    aliases: [\n      'gen_ai.tool.call.result',\n      'gen_ai.tool.output',\n      'gen_ai.tool.message',\n      'mcp.tool.result.content',\n      'ai.toolCall.result',\n    ],\n    changelog: [\n      {\n        version: '0.26.0',\n        prs: [660],\n        description: 'Added anthropic.tool_result.content attribute, deprecated in favor of gen_ai.tool.call.result',\n      },\n    ],\n  },\n  'app.app_build': {\n    brief: 'Internal build identifier, as it appears on the platform.',\n    type: 'string',\n    keys: ['app.build', 'app.app_build'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1',\n    deprecation: {\n      replacement: 'app.build',\n      reason: 'Deprecated in favor of app.build',\n      status: 'backfill',\n    },\n    aliases: ['app.build'],\n    changelog: [\n      { version: '0.5.0', prs: [296], description: 'Added and deprecated app.app_build in favor of app.build' },\n    ],\n  },\n  'app.app_identifier': {\n    brief: 'Version-independent application identifier, often a dotted bundle ID.',\n    type: 'string',\n    keys: ['app.identifier', 'app.app_identifier'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'com.example.myapp',\n    deprecation: {\n      replacement: 'app.identifier',\n      reason: 'Deprecated in favor of app.identifier',\n      status: 'backfill',\n    },\n    aliases: ['app.identifier'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [296],\n        description: 'Added and deprecated app.app_identifier in favor of app.identifier',\n      },\n    ],\n  },\n  'app.app_name': {\n    brief: 'Human readable application name, as it appears on the platform.',\n    type: 'string',\n    keys: ['app.name', 'app.app_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'My App',\n    deprecation: {\n      replacement: 'app.name',\n      reason: 'Deprecated in favor of app.name',\n      status: 'backfill',\n    },\n    aliases: ['app.name'],\n    changelog: [\n      { version: '0.5.0', prs: [296], description: 'Added and deprecated app.app_name in favor of app.name' },\n    ],\n  },\n  'app.app_start_time': {\n    brief: 'Formatted UTC timestamp when the user started the application.',\n    type: 'string',\n    keys: ['app.start_time', 'app.app_start_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '2025-01-01T00:00:00.000Z',\n    deprecation: {\n      replacement: 'app.start_time',\n      reason: 'Deprecated in favor of app.start_time',\n      status: 'backfill',\n    },\n    aliases: ['app.start_time'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [296],\n        description: 'Added and deprecated app.app_start_time in favor of app.start_time',\n      },\n    ],\n  },\n  'app.app_version': {\n    brief: 'Human readable application version, as it appears on the platform.',\n    type: 'string',\n    keys: ['app.version', 'app.app_version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1.0.0',\n    deprecation: {\n      replacement: 'app.version',\n      reason: 'Deprecated in favor of app.version',\n      status: 'backfill',\n    },\n    aliases: ['app.version'],\n    changelog: [\n      { version: '0.5.0', prs: [296], description: 'Added and deprecated app.app_version in favor of app.version' },\n    ],\n  },\n  'app.build': {\n    brief: 'Internal build identifier, as it appears on the platform.',\n    type: 'string',\n    keys: ['app.build', 'app.app_build'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1',\n    aliases: ['app.app_build'],\n    changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.build attribute' }],\n  },\n  'app.identifier': {\n    brief: 'Version-independent application identifier, often a dotted bundle ID.',\n    type: 'string',\n    keys: ['app.identifier', 'app.app_identifier'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'com.example.myapp',\n    aliases: ['app.app_identifier'],\n    changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.identifier attribute' }],\n  },\n  'app.in_foreground': {\n    brief: 'Whether the application is currently in the foreground.',\n    type: 'boolean',\n    keys: ['app.in_foreground'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.in_foreground attribute' }],\n  },\n  'app.name': {\n    brief: 'Human readable application name, as it appears on the platform.',\n    type: 'string',\n    keys: ['app.name', 'app.app_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'My App',\n    aliases: ['app.app_name'],\n    changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.name attribute' }],\n  },\n  app_start_cold: {\n    brief: 'The duration of a cold app start in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.start.cold.value', 'app_start_cold'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    deprecation: {\n      replacement: 'app.vitals.start.cold.value',\n      reason:\n        'Replaced by app.vitals.start.cold.value to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.start.cold.value'],\n    changelog: [\n      { version: '0.5.0', prs: [323], description: 'Added and deprecated in favor of app.vitals.start.cold.value' },\n    ],\n  },\n  'app.start_time': {\n    brief: 'Formatted UTC timestamp when the user started the application.',\n    type: 'string',\n    keys: ['app.start_time', 'app.app_start_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '2025-01-01T00:00:00.000Z',\n    aliases: ['app.app_start_time'],\n    changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.start_time attribute' }],\n  },\n  app_start_type: {\n    brief: 'Mobile app start variant. Either cold or warm.',\n    type: 'string',\n    keys: ['app.vitals.start.type', 'app_start_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'cold',\n    deprecation: {\n      replacement: 'app.vitals.start.type',\n      reason:\n        'Replaced by app.vitals.start.type to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.start.type'],\n    changelog: [\n      { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.start.type' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  app_start_warm: {\n    brief: 'The duration of a warm app start in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.start.warm.value', 'app_start_warm'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    deprecation: {\n      replacement: 'app.vitals.start.warm.value',\n      reason:\n        'Replaced by app.vitals.start.warm.value to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.start.warm.value'],\n    changelog: [\n      { version: '0.5.0', prs: [323], description: 'Added and deprecated in favor of app.vitals.start.warm.value' },\n    ],\n  },\n  'app.version': {\n    brief: 'Human readable application version, as it appears on the platform.',\n    type: 'string',\n    keys: ['app.version', 'app.app_version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1.0.0',\n    aliases: ['app.app_version'],\n    changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.version attribute' }],\n  },\n  'app.vitals.frames.delay.value': {\n    brief:\n      'The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).',\n    type: 'integer',\n    keys: ['app.vitals.frames.delay.value', 'frames.delay', 'mobile.frames_delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5,\n    aliases: ['frames.delay'],\n    changelog: [\n      { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.delay.value to replace frames.delay' },\n    ],\n  },\n  'app.vitals.frames.frozen.count': {\n    brief: 'The number of frozen frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.frozen.count', 'frames.frozen', 'mobile.frozen_frames', 'sentry.frames.frozen'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 3,\n    aliases: ['frames.frozen', 'sentry.frames.frozen'],\n    changelog: [\n      { version: '0.19.0', prs: [500], description: 'Added sentry.frames.frozen as an alias' },\n      { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.frozen.count to replace frames.frozen' },\n    ],\n  },\n  'app.vitals.frames.frozen.rate': {\n    brief:\n      'The fraction of rendered frames that were frozen, calculated as `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.frames.frozen.rate', 'frames_frozen_rate'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.5,\n    aliases: ['frames_frozen_rate'],\n    changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.frames.frozen.rate attribute' }],\n  },\n  'app.vitals.frames.slow.count': {\n    brief: 'The number of slow frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.slow.count', 'frames.slow', 'mobile.slow_frames', 'sentry.frames.slow'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    aliases: ['frames.slow', 'sentry.frames.slow'],\n    changelog: [\n      { version: '0.19.0', prs: [500], description: 'Added sentry.frames.slow as an alias' },\n      { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.slow.count to replace frames.slow' },\n    ],\n  },\n  'app.vitals.frames.slow.rate': {\n    brief:\n      'The fraction of rendered frames that were slow, calculated as `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.frames.slow.rate', 'frames_slow_rate'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.25,\n    aliases: ['frames_slow_rate'],\n    changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.frames.slow.rate attribute' }],\n  },\n  'app.vitals.frames.total.count': {\n    brief: 'The number of total frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.total.count', 'frames.total', 'mobile.total_frames', 'sentry.frames.total'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 60,\n    aliases: ['frames.total', 'sentry.frames.total'],\n    changelog: [\n      { version: '0.19.0', prs: [500], description: 'Added sentry.frames.total as an alias' },\n      { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.total.count to replace frames.total' },\n    ],\n  },\n  'app.vitals.stall.duration': {\n    brief:\n      'The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.stall.duration', 'stall_total_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 4000,\n    aliases: ['stall_total_time'],\n    changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.stall.duration attribute' }],\n  },\n  'app.vitals.stall.percentage': {\n    brief:\n      'The fraction of transaction duration during which the app was stalled, between 0.0 and 1.0. For example, 0.8 represents 80%. Only applies to React Native. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.stall.percentage', 'stall_percentage'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.8,\n    aliases: ['stall_percentage'],\n    changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.stall.percentage attribute' }],\n  },\n  'app.vitals.start.cold.value': {\n    brief: 'The duration of a cold app start in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.start.cold.value', 'app_start_cold'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    aliases: ['app_start_cold'],\n    changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.start.cold.value attribute' }],\n  },\n  'app.vitals.start.prewarmed': {\n    brief: 'Whether the app start was prewarmed.',\n    type: 'boolean',\n    keys: ['app.vitals.start.prewarmed'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.11.0', prs: [379], description: 'Added app.vitals.start.prewarmed attribute' }],\n  },\n  'app.vitals.start.reason': {\n    brief: 'The reason that triggered the app start.',\n    type: 'string',\n    keys: ['app.vitals.start.reason'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'push',\n    changelog: [{ version: '0.7.0', prs: [353], description: 'Added app.vitals.start.reason attribute' }],\n  },\n  'app.vitals.start.screen': {\n    brief:\n      'The screen that is rendered when the app start is complete. This is the screen the user first sees and can interact with after launch. The absence of this attribute on the app start span indicates a background app start where no UI was rendered.',\n    type: 'string',\n    keys: ['app.vitals.start.screen'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'MainActivity',\n    changelog: [{ version: '0.7.0', prs: [353], description: 'Added app.vitals.start.screen attribute' }],\n  },\n  'app.vitals.start.type': {\n    brief: 'The type of app start, for example `cold` or `warm`',\n    type: 'string',\n    keys: ['app.vitals.start.type', 'app_start_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'cold',\n    aliases: ['app_start_type'],\n    changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.start.type attribute' }],\n  },\n  'app.vitals.start.warm.value': {\n    brief: 'The duration of a warm app start in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.start.warm.value', 'app_start_warm'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    aliases: ['app_start_warm'],\n    changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.start.warm.value attribute' }],\n  },\n  'app.vitals.ttfd.value': {\n    brief: 'The duration of time to full display in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.ttfd.value', 'time_to_full_display'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    aliases: ['time_to_full_display'],\n    changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.ttfd.value attribute' }],\n  },\n  'app.vitals.ttid.value': {\n    brief: 'The duration of time to initial display in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.ttid.value', 'time_to_initial_display'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    aliases: ['time_to_initial_display'],\n    changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.ttid.value attribute' }],\n  },\n  'art.gc.blocking_count': {\n    brief: 'Total number of blocking (stop-the-world) garbage collections performed by the Android Runtime',\n    type: 'integer',\n    keys: ['art.gc.blocking_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.blocking_count attribute' }],\n  },\n  'art.gc.blocking_time': {\n    brief: 'Total time spent in blocking (stop-the-world) garbage collections by the Android Runtime, in milliseconds',\n    type: 'double',\n    keys: ['art.gc.blocking_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 11.873,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.blocking_time attribute' }],\n  },\n  'art.gc.pre_oome_count': {\n    brief:\n      'Total number of garbage collections triggered as a last resort before an OutOfMemoryError by the Android Runtime',\n    type: 'integer',\n    keys: ['art.gc.pre_oome_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.pre_oome_count attribute' }],\n  },\n  'art.gc.total_count': {\n    brief: 'Total number of garbage collections performed by the Android Runtime',\n    type: 'integer',\n    keys: ['art.gc.total_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.total_count attribute' }],\n  },\n  'art.gc.total_time': {\n    brief: 'Total time spent in garbage collection by the Android Runtime, in milliseconds',\n    type: 'double',\n    keys: ['art.gc.total_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 11.807,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.total_time attribute' }],\n  },\n  'art.gc.waiting_time': {\n    brief:\n      'Total time threads spent waiting for garbage collection to complete in the Android Runtime, in milliseconds',\n    type: 'double',\n    keys: ['art.gc.waiting_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 8.054,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.waiting_time attribute' }],\n  },\n  'art.memory.free': {\n    brief: 'Free memory available to the process as reported by the Android Runtime, in bytes',\n    type: 'integer',\n    keys: ['art.memory.free'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 3181568,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.free attribute' }],\n  },\n  'art.memory.free_until_gc': {\n    brief: 'Free memory available before a garbage collection would be triggered by the Android Runtime, in bytes',\n    type: 'integer',\n    keys: ['art.memory.free_until_gc'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 3181568,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.free_until_gc attribute' }],\n  },\n  'art.memory.free_until_oome': {\n    brief: 'Free memory available before an OutOfMemoryError would be thrown by the Android Runtime, in bytes',\n    type: 'integer',\n    keys: ['art.memory.free_until_oome'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 196083712,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.free_until_oome attribute' }],\n  },\n  'art.memory.max': {\n    brief: 'Maximum memory the process is allowed to use as reported by the Android Runtime, in bytes',\n    type: 'integer',\n    keys: ['art.memory.max'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 201326592,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.max attribute' }],\n  },\n  'art.memory.total': {\n    brief: 'Total memory currently allocated to the process by the Android Runtime, in bytes',\n    type: 'integer',\n    keys: ['art.memory.total'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 7774208,\n    changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.total attribute' }],\n  },\n  'aws.cloudwatch.logs.log_group': {\n    brief: 'The name of the CloudWatch Logs log group',\n    type: 'string',\n    keys: ['aws.cloudwatch.logs.log_group'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/aws/lambda/my-function',\n    changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.cloudwatch.logs.log_group attribute' }],\n  },\n  'aws.cloudwatch.logs.log_stream': {\n    brief: 'The name of the CloudWatch Logs log stream',\n    type: 'string',\n    keys: ['aws.cloudwatch.logs.log_stream'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '2024/01/01/[$LATEST]abcdef1234567890',\n    changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.cloudwatch.logs.log_stream attribute' }],\n  },\n  'aws.cloudwatch.logs.url': {\n    brief: 'The URL to the CloudWatch Logs log group',\n    type: 'string',\n    keys: ['aws.cloudwatch.logs.url'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group',\n    changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.cloudwatch.logs.url attribute' }],\n  },\n  'aws.dynamodb.attributes_to_get': {\n    brief: 'The value of the `AttributesToGet` request parameter.',\n    type: 'string[]',\n    keys: ['aws.dynamodb.attributes_to_get'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['lives', 'id'],\n    examples: [['lives', 'id']],\n    changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.dynamodb.attributes_to_get attribute' }],\n  },\n  'aws.dynamodb.attribute_definitions': {\n    brief: 'The JSON-serialized value of each item in the `AttributeDefinitions` request field.',\n    type: 'string[]',\n    keys: ['aws.dynamodb.attribute_definitions'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['{ \"AttributeName\": \"string\", \"AttributeType\": \"string\" }'],\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.attribute_definitions attribute' }],\n  },\n  'aws.dynamodb.consistent_read': {\n    brief: 'The value of the `ConsistentRead` request parameter.',\n    type: 'boolean',\n    keys: ['aws.dynamodb.consistent_read'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.consistent_read attribute' }],\n  },\n  'aws.dynamodb.consumed_capacity': {\n    brief: 'The JSON-serialized value of each item in the `ConsumedCapacity` response field.',\n    type: 'string[]',\n    keys: ['aws.dynamodb.consumed_capacity'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: [\n      '{ \"CapacityUnits\": number, \"GlobalSecondaryIndexes\": { \"string\" : { \"CapacityUnits\": number, \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }, \"LocalSecondaryIndexes\": { \"string\" : { \"CapacityUnits\": number, \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }, \"ReadCapacityUnits\": number, \"Table\": { \"CapacityUnits\": number, \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number }, \"TableName\": \"string\", \"WriteCapacityUnits\": number }',\n    ],\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.consumed_capacity attribute' }],\n  },\n  'aws.dynamodb.count': {\n    brief: 'The value of the `Count` response parameter.',\n    type: 'integer',\n    keys: ['aws.dynamodb.count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 10,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.count attribute' }],\n  },\n  'aws.dynamodb.exclusive_start_table': {\n    brief: 'The value of the `ExclusiveStartTableName` request parameter.',\n    type: 'string',\n    keys: ['aws.dynamodb.exclusive_start_table'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Users',\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.exclusive_start_table attribute' }],\n  },\n  'aws.dynamodb.global_secondary_indexes': {\n    brief: 'The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field.',\n    type: 'string[]',\n    keys: ['aws.dynamodb.global_secondary_indexes'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: [\n      '{ \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }',\n    ],\n    changelog: [\n      { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.global_secondary_indexes attribute' },\n    ],\n  },\n  'aws.dynamodb.global_secondary_index_updates': {\n    brief: 'The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.',\n    type: 'string[]',\n    keys: ['aws.dynamodb.global_secondary_index_updates'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: [\n      '{ \"Create\": { \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }',\n    ],\n    changelog: [\n      { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.global_secondary_index_updates attribute' },\n    ],\n  },\n  'aws.dynamodb.index_name': {\n    brief: 'The value of the `IndexName` request parameter.',\n    type: 'string',\n    keys: ['aws.dynamodb.index_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'name_to_group',\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.index_name attribute' }],\n  },\n  'aws.dynamodb.item_collection_metrics': {\n    brief: 'The JSON-serialized value of the `ItemCollectionMetrics` response field.',\n    type: 'string',\n    keys: ['aws.dynamodb.item_collection_metrics'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      '{ \"string\" : [ { \"ItemCollectionKey\": { \"string\" : { \"B\": blob, \"BOOL\": boolean, \"BS\": [ blob ], \"L\": [ \"AttributeValue\" ], \"M\": { \"string\" : \"AttributeValue\" }, \"N\": \"string\", \"NS\": [ \"string\" ], \"NULL\": boolean, \"S\": \"string\", \"SS\": [ \"string\" ] } }, \"SizeEstimateRangeGB\": [ number ] } ] }',\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.item_collection_metrics attribute' }],\n  },\n  'aws.dynamodb.limit': {\n    brief: 'The value of the `Limit` request parameter.',\n    type: 'integer',\n    keys: ['aws.dynamodb.limit'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 10,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.limit attribute' }],\n  },\n  'aws.dynamodb.local_secondary_indexes': {\n    brief: 'The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.',\n    type: 'string[]',\n    keys: ['aws.dynamodb.local_secondary_indexes'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: [\n      '{ \"IndexArn\": \"string\", \"IndexName\": \"string\", \"IndexSizeBytes\": number, \"ItemCount\": number, \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" } }',\n    ],\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.local_secondary_indexes attribute' }],\n  },\n  'aws.dynamodb.projection': {\n    brief: 'The value of the `ProjectionExpression` request parameter.',\n    type: 'string',\n    keys: ['aws.dynamodb.projection'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Title, Price, Color',\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.projection attribute' }],\n  },\n  'aws.dynamodb.provisioned_read_capacity': {\n    brief: 'The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.',\n    type: 'double',\n    keys: ['aws.dynamodb.provisioned_read_capacity'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 1,\n    changelog: [\n      { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.provisioned_read_capacity attribute' },\n    ],\n  },\n  'aws.dynamodb.provisioned_write_capacity': {\n    brief: 'The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.',\n    type: 'double',\n    keys: ['aws.dynamodb.provisioned_write_capacity'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 2,\n    changelog: [\n      { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.provisioned_write_capacity attribute' },\n    ],\n  },\n  'aws.dynamodb.scanned_count': {\n    brief: 'The value of the `ScannedCount` response parameter.',\n    type: 'integer',\n    keys: ['aws.dynamodb.scanned_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 50,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.scanned_count attribute' }],\n  },\n  'aws.dynamodb.scan_forward': {\n    brief: 'The value of the `ScanIndexForward` request parameter.',\n    type: 'boolean',\n    keys: ['aws.dynamodb.scan_forward'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.scan_forward attribute' }],\n  },\n  'aws.dynamodb.segment': {\n    brief: 'The value of the `Segment` request parameter.',\n    type: 'integer',\n    keys: ['aws.dynamodb.segment'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 10,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.segment attribute' }],\n  },\n  'aws.dynamodb.select': {\n    brief: 'The value of the `Select` request parameter.',\n    type: 'string',\n    keys: ['aws.dynamodb.select'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'ALL_ATTRIBUTES',\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.select attribute' }],\n  },\n  'aws.dynamodb.table_count': {\n    brief: 'The number of items in the `TableNames` response parameter.',\n    type: 'integer',\n    keys: ['aws.dynamodb.table_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 20,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.table_count attribute' }],\n  },\n  'aws.dynamodb.table_names': {\n    brief: 'The keys in the `RequestItems` object field.',\n    type: 'string[]',\n    keys: ['aws.dynamodb.table_names'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['Users', 'Cats'],\n    changelog: [\n      { version: '0.29.0', prs: [717], description: 'Added additional context on sorting the names' },\n      { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.table_names attribute' },\n    ],\n    additionalContext: [\n      'List each table name once, sorted alphabetically, so the same call gets the same value and span description (`DynamoDB.BatchGetItem Cat, Users`), whatever the order of the tables in the request.',\n    ],\n  },\n  'aws.dynamodb.total_segments': {\n    brief: 'The value of the `TotalSegments` request parameter.',\n    type: 'integer',\n    keys: ['aws.dynamodb.total_segments'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 100,\n    changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.total_segments attribute' }],\n  },\n  'aws.extended_request_id': {\n    brief: 'The AWS extended request ID as returned in the response headers.',\n    type: 'string',\n    keys: ['aws.extended_request_id', 'aws.request.extended_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=',\n    aliases: ['aws.request.extended_id'],\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.extended_request_id attribute' }],\n  },\n  'aws.kinesis.stream_name': {\n    brief: 'The name of the AWS Kinesis stream the request refers to.',\n    type: 'string',\n    keys: ['aws.kinesis.stream_name', 'aws.kinesis.stream.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'some-stream-name',\n    aliases: ['aws.kinesis.stream.name'],\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.kinesis.stream_name attribute' }],\n  },\n  'aws.kinesis.stream.name': {\n    brief: 'The name of the AWS Kinesis stream the request refers to.',\n    type: 'string',\n    keys: ['aws.kinesis.stream_name', 'aws.kinesis.stream.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'some-stream-name',\n    deprecation: {\n      replacement: 'aws.kinesis.stream_name',\n      reason:\n        'This attribute is being deprecated in favor of aws.kinesis.stream_name, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['aws.kinesis.stream_name'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [480],\n        description: 'Added aws.kinesis.stream.name attribute, deprecated in favor of aws.kinesis.stream_name',\n      },\n    ],\n  },\n  'aws.lambda.aws_request_id': {\n    brief: 'The AWS request ID as received by the Lambda function runtime',\n    type: 'string',\n    keys: ['faas.invocation_id', 'aws.lambda.aws_request_id', 'faas.execution'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '8476a536-e9f4-11e8-9739-2dfe598c3fcd',\n    deprecation: {\n      replacement: 'faas.invocation_id',\n      reason: 'This attribute is being deprecated in favor of faas.invocation_id',\n      status: 'backfill',\n    },\n    aliases: ['faas.invocation_id', 'faas.execution'],\n    changelog: [\n      { version: '0.16.0', prs: [473], description: 'Added faas.execution as an alias' },\n      {\n        version: '0.11.1',\n        prs: [414, 424],\n        description: 'Deprecated aws.lambda.aws_request_id in favor of faas.invocation_id',\n      },\n      { version: '0.7.0', prs: [369], description: 'Added aws.lambda.aws_request_id attribute' },\n    ],\n  },\n  'aws.lambda.execution_duration_in_millis': {\n    brief: 'The execution duration of the Lambda function invocation in milliseconds',\n    type: 'double',\n    keys: ['aws.lambda.execution_duration_in_millis'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    changelog: [\n      { version: '0.7.0', prs: [369], description: 'Added aws.lambda.execution_duration_in_millis attribute' },\n    ],\n  },\n  'aws.lambda.function_name': {\n    brief: 'The name of the Lambda function',\n    type: 'string',\n    keys: ['faas.name', 'aws.lambda.function_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'my-function',\n    deprecation: {\n      replacement: 'faas.name',\n      reason: 'Use the OTel-aligned faas.name attribute instead',\n      status: 'backfill',\n    },\n    aliases: ['faas.name'],\n    changelog: [\n      { version: '0.11.1', prs: [414], description: 'Deprecated aws.lambda.function_name in favor of faas.name' },\n      { version: '0.7.0', prs: [369], description: 'Added aws.lambda.function_name attribute' },\n    ],\n  },\n  'aws.lambda.function_version': {\n    brief: 'The version of the Lambda function',\n    type: 'string',\n    keys: ['faas.version', 'aws.lambda.function_version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '$LATEST',\n    deprecation: {\n      replacement: 'faas.version',\n      reason: 'Use the OTel-aligned faas.version attribute instead',\n      status: 'backfill',\n    },\n    aliases: ['faas.version'],\n    changelog: [\n      {\n        version: '0.11.1',\n        prs: [414, 424],\n        description: 'Deprecated aws.lambda.function_version in favor of faas.version',\n      },\n      { version: '0.7.0', prs: [369], description: 'Added aws.lambda.function_version attribute' },\n    ],\n  },\n  'aws.lambda.initialization_type': {\n    brief: 'How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE.',\n    type: 'string',\n    keys: ['aws.lambda.initialization_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'native-http',\n    examples: ['native-http', 'on-demand', 'provisioned-concurrency', 'snap-start'],\n    changelog: [{ version: '0.30.0', prs: [715], description: 'Added aws.lambda.initialization_type attribute' }],\n  },\n  'aws.lambda.invoked_arn': {\n    brief: 'The full ARN of the Lambda function that was invoked',\n    type: 'string',\n    keys: ['aws.lambda.invoked_arn', 'aws.lambda.invoked_function_arn'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'arn:aws:lambda:us-east-1:123456789012:function:my-function',\n    aliases: ['aws.lambda.invoked_function_arn'],\n    changelog: [{ version: '0.11.1', prs: [414] }],\n  },\n  'aws.lambda.invoked_function_arn': {\n    brief: 'The full ARN of the Lambda function that was invoked',\n    type: 'string',\n    keys: ['aws.lambda.invoked_arn', 'aws.lambda.invoked_function_arn'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'arn:aws:lambda:us-east-1:123456789012:function:my-function',\n    deprecation: {\n      replacement: 'aws.lambda.invoked_arn',\n      reason: 'This attribute is being deprecated in favor of aws.lambda.invoked_arn',\n      status: 'backfill',\n    },\n    aliases: ['aws.lambda.invoked_arn'],\n    changelog: [\n      {\n        version: '0.11.1',\n        prs: [414],\n        description: 'Deprecated aws.lambda.invoked_function_arn in favor of aws.lambda.invoked_arn',\n      },\n      { version: '0.7.0', prs: [369], description: 'Added aws.lambda.invoked_function_arn attribute' },\n    ],\n  },\n  'aws.lambda.remaining_time_in_millis': {\n    brief: 'The remaining time in milliseconds before the Lambda function times out',\n    type: 'double',\n    keys: ['aws.lambda.remaining_time_in_millis'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5000,\n    changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.lambda.remaining_time_in_millis attribute' }],\n  },\n  'aws.lambda.resource_mapping.id': {\n    brief:\n      \"The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.\",\n    type: 'string',\n    keys: ['aws.lambda.resource_mapping.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '587ad24b-03b9-4413-8202-bbd56b36e5b7',\n    examples: ['587ad24b-03b9-4413-8202-bbd56b36e5b7'],\n    changelog: [{ version: '0.28.0', prs: [710], description: 'Added aws.lambda.resource_mapping.id attribute' }],\n  },\n  'aws.lambda.target_function.name': {\n    brief: 'The name of the AWS Lambda function that an AWS SDK call acts on.',\n    type: 'string',\n    keys: ['aws.lambda.target_function.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'billing',\n    examples: ['billing'],\n    changelog: [{ version: '0.29.0', prs: [716], description: 'Added aws.lambda.target_function.name attribute' }],\n    additionalContext: [\n      'Set on Lambda API calls that take a `FunctionName`, such as `GetFunction` or `UpdateFunctionCode`, without a version or alias qualifier (`billing`, not `billing:prod`). Different from `faas.name` which is the function the code runs in.',\n    ],\n  },\n  'aws.lambda.web.endpoint_name': {\n    brief:\n      'The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header.',\n    type: 'string',\n    keys: ['aws.lambda.web.endpoint_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'prod',\n    examples: ['prod', 'canary'],\n    changelog: [{ version: '0.30.0', prs: [715], description: 'Added aws.lambda.web.endpoint_name attribute' }],\n  },\n  'aws.log.group.names': {\n    brief: 'The name(s) of the AWS log group(s) an application is writing to.',\n    type: 'string[]',\n    keys: ['aws.log.group.names'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['/aws/lambda/my-function', 'opentelemetry-service'],\n    changelog: [{ version: '0.11.1', prs: [414] }],\n  },\n  'aws.log.stream.names': {\n    brief: 'The name(s) of the AWS log stream(s) an application is writing to.',\n    type: 'string[]',\n    keys: ['aws.log.stream.names'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['logs/main/10838bed-421f-43ef-870a-f43feacbbb5b'],\n    changelog: [{ version: '0.11.1', prs: [414] }],\n  },\n  'aws.operation_name': {\n    brief: 'The name of the API operation invoked on an AWS service.',\n    type: 'string',\n    keys: ['rpc.method', 'aws.operation_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'PutObject',\n    examples: ['PutObject'],\n    deprecation: {\n      replacement: 'rpc.method',\n      reason: 'This attribute is being deprecated in favor of rpc.method, which is the framework-agnostic replacement.',\n      status: 'backfill',\n    },\n    aliases: ['rpc.method'],\n    changelog: [{ version: '0.19.0', prs: [536], description: 'Added aws.operation_name attribute' }],\n  },\n  aws_region: {\n    brief: 'The geographical region the AWS resource is running',\n    type: 'string',\n    keys: ['cloud.region', 'aws_region', 'gcp_region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'us-east-1',\n    examples: ['us-east-1'],\n    deprecation: {\n      replacement: 'cloud.region',\n      status: 'backfill',\n    },\n    aliases: ['cloud.region', 'gcp_region'],\n    changelog: [{ version: '0.19.0', prs: [537], description: 'Added aws_region attribute' }],\n  },\n  'aws.request.extended_id': {\n    brief: 'The AWS extended request ID as returned in the response headers.',\n    type: 'string',\n    keys: ['aws.extended_request_id', 'aws.request.extended_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=',\n    deprecation: {\n      replacement: 'aws.extended_request_id',\n      reason:\n        'This attribute is being deprecated in favor of aws.extended_request_id, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['aws.extended_request_id'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [480],\n        description: 'Added aws.request.extended_id attribute, deprecated in favor of aws.extended_request_id',\n      },\n    ],\n  },\n  'aws.request_id': {\n    brief: 'The AWS request ID as returned in the response headers.',\n    type: 'string',\n    keys: ['aws.request_id', 'aws.request.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '79b9da39-b7ae-508a-a6bc-864b2829c622',\n    aliases: ['aws.request.id'],\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.request_id attribute' }],\n  },\n  'aws.request.id': {\n    brief: 'The AWS request ID as returned in the response headers.',\n    type: 'string',\n    keys: ['aws.request_id', 'aws.request.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '79b9da39-b7ae-508a-a6bc-864b2829c622',\n    deprecation: {\n      replacement: 'aws.request_id',\n      reason: 'This attribute is being deprecated in favor of aws.request_id, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['aws.request_id'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [480],\n        description: 'Added aws.request.id attribute, deprecated in favor of aws.request_id',\n      },\n    ],\n  },\n  'aws.request.url': {\n    brief: 'The URL of the AWS API request.',\n    type: 'string',\n    keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://sqs.us-east-1.amazonaws.com/123456789/my-queue',\n    deprecation: {\n      replacement: 'url.full',\n      reason: 'This attribute is being deprecated in favor of url.full, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['url.full', 'http.url', 'url', 'messaging.url'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n      {\n        version: '0.19.0',\n        prs: [488],\n        description: 'Added aws.request.url attribute, deprecated in favor of url.full',\n      },\n    ],\n  },\n  'aws.s3.bucket': {\n    brief: 'The S3 bucket name the request refers to.',\n    type: 'string',\n    keys: ['aws.s3.bucket'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'ot-demo-test',\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.s3.bucket attribute' }],\n  },\n  'aws.s3.copy_source': {\n    brief: 'The source object (in the form bucket/key) for the copy operation.',\n    type: 'string',\n    keys: ['aws.s3.copy_source'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'someFile.yml',\n    examples: ['someFile.yml'],\n    changelog: [\n      { version: '0.28.0', prs: [713], description: 'Changed apply_scrubbing from manual to auto' },\n      { version: '0.27.0', prs: [672], description: 'Added aws.s3.copy_source attribute' },\n    ],\n    additionalContext: [\n      'Applicable to the copy-object and upload-part-copy operations, corresponding to the CopySource parameter.',\n    ],\n  },\n  'aws.s3.delete': {\n    brief: 'The JSON-serialized value of Delete request field, which specifies the objects to be deleted.',\n    type: 'string',\n    keys: ['aws.s3.delete'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '{\"Objects\":[{\"Key\":\"someFile.yml\",\"VersionId\":\"3HL4kqtJlcpXroDTDmJ\"}],\"Quiet\":false}',\n    examples: ['{\"Objects\":[{\"Key\":\"someFile.yml\",\"VersionId\":\"3HL4kqtJlcpXroDTDmJ\"}],\"Quiet\":false}'],\n    changelog: [\n      { version: '0.29.0', prs: [711], description: 'Changed the value to a JSON-serialized field, with an example' },\n      { version: '0.28.0', prs: [713], description: 'Changed apply_scrubbing from manual to auto' },\n      { version: '0.27.0', prs: [672], description: 'Added aws.s3.delete attribute' },\n    ],\n    additionalContext: ['Applicable only to the delete-objects operation, corresponding to its Delete parameter.'],\n  },\n  'aws.s3.key': {\n    brief: 'The S3 object key the request refers to. Corresponds to the --key parameter of the S3 API operations.',\n    type: 'string',\n    keys: ['aws.s3.key'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'someFile.yml',\n    examples: ['someFile.yml'],\n    changelog: [\n      { version: '0.28.0', prs: [713], description: 'Changed apply_scrubbing from manual to auto' },\n      { version: '0.27.0', prs: [672], description: 'Added aws.s3.key attribute' },\n    ],\n  },\n  'aws.s3.part_number': {\n    brief:\n      'The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000.',\n    type: 'integer',\n    keys: ['aws.s3.part_number'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 3456,\n    examples: [3456],\n    changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.s3.part_number attribute' }],\n    additionalContext: ['Applicable only to the upload-part and upload-part-copy operations.'],\n  },\n  'aws.s3.upload_id': {\n    brief: 'Upload ID that identifies the multipart upload.',\n    type: 'string',\n    keys: ['aws.s3.upload_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ',\n    examples: ['dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ'],\n    changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.s3.upload_id attribute' }],\n  },\n  'aws.secretsmanager.secret.arn': {\n    brief: 'The ARN of the Secret stored in Secrets Manager.',\n    type: 'string',\n    keys: ['aws.secretsmanager.secret.arn'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters',\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.secretsmanager.secret.arn attribute' }],\n  },\n  'aws.secretsmanager.secret.name': {\n    brief: 'The name of the secret stored in AWS Secrets Manager.',\n    type: 'string',\n    keys: ['aws.secretsmanager.secret.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'db-password',\n    examples: ['db-password', 'prod/billing/api-key'],\n    changelog: [{ version: '0.29.0', prs: [716], description: 'Added aws.secretsmanager.secret.name attribute' }],\n    additionalContext: [\n      \"Without the hyphen and six random characters that Secrets Manager appends to the name in the secret's ARN (`db-password`, not `db-password-AbCdEf`).\",\n    ],\n  },\n  'aws.sns.topic.arn': {\n    brief:\n      'The ARN of the AWS SNS Topic. An Amazon SNS topic is a logical access point that acts as a communication channel.',\n    type: 'string',\n    keys: ['aws.sns.topic.arn'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE',\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.sns.topic.arn attribute' }],\n  },\n  'aws.sqs.queue.url': {\n    brief:\n      'The URL of the AWS SQS Queue. It’s a unique identifier for a queue in Amazon Simple Queue Service (SQS) and is used to access the queue and perform actions on it.',\n    type: 'string',\n    keys: ['aws.sqs.queue.url'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue',\n    examples: ['https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue'],\n    changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.sqs.queue.url attribute' }],\n  },\n  'aws.step_functions.activity.arn': {\n    brief: 'The ARN of the AWS Step Functions Activity.',\n    type: 'string',\n    keys: ['aws.step_functions.activity.arn'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'arn:aws:states:us-east-1:123456789012:activity:get-greeting',\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.step_functions.activity.arn attribute' }],\n  },\n  'aws.step_functions.activity.name': {\n    brief: 'The name of the AWS Step Functions activity.',\n    type: 'string',\n    keys: ['aws.step_functions.activity.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'resize-image',\n    examples: ['resize-image'],\n    changelog: [{ version: '0.29.0', prs: [716], description: 'Added aws.step_functions.activity.name attribute' }],\n    additionalContext: [\n      'The last part of the activity ARN (`arn:aws:states:us-east-1:123456789012:activity:resize-image`).',\n    ],\n  },\n  'aws.step_functions.execution.arn': {\n    brief: 'The ARN of the AWS Step Functions Execution.',\n    type: 'string',\n    keys: ['aws.step_functions.execution.arn'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'arn:aws:states:us-east-1:123456789012:execution:myStateMachine:myExecution',\n    examples: ['arn:aws:states:us-east-1:123456789012:execution:myStateMachine:myExecution'],\n    changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.step_functions.execution.arn attribute' }],\n  },\n  'aws.step_functions.state_machine.arn': {\n    brief: 'The ARN of the AWS Step Functions State Machine.',\n    type: 'string',\n    keys: ['aws.step_functions.state_machine.arn'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1',\n    changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.step_functions.state_machine.arn attribute' }],\n  },\n  'aws.step_functions.state_machine.name': {\n    brief: 'The name of the AWS Step Functions state machine.',\n    type: 'string',\n    keys: ['aws.step_functions.state_machine.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'orders',\n    examples: ['orders'],\n    changelog: [\n      { version: '0.29.0', prs: [716], description: 'Added aws.step_functions.state_machine.name attribute' },\n    ],\n    additionalContext: ['Contains no version or alias qualifier (`orders`, not `orders:1` or `orders:prod`).'],\n  },\n  blocked_main_thread: {\n    brief: 'Whether the main thread was blocked by the span.',\n    type: 'boolean',\n    keys: ['blocked_main_thread'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'browser.bfcache.frame': {\n    brief:\n      \"Which frame in the page's frame tree a back/forward cache not-restored reason originated from: the top document or a child frame.\",\n    type: 'string',\n    keys: ['browser.bfcache.frame'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'top',\n    examples: ['top', 'child'],\n    changelog: [{ version: '0.19.0', prs: [513], description: 'Added browser.bfcache.frame attribute' }],\n  },\n  'browser.bfcache.not_restored_reason_count': {\n    brief:\n      'The number of reported reasons a page was not restored from the back/forward cache on a back/forward navigation. 0 when the browser reported no reasons (e.g. non-Chromium browsers).',\n    type: 'integer',\n    keys: ['browser.bfcache.not_restored_reason_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2,\n    examples: [2],\n    changelog: [\n      { version: '0.19.0', prs: [513], description: 'Added browser.bfcache.not_restored_reason_count attribute' },\n    ],\n  },\n  'browser.bfcache.outcome': {\n    brief:\n      \"Whether a back/forward navigation was restored from the browser's back/forward cache (bfcache). 'hit' means the page was restored; 'miss' means it was reloaded.\",\n    type: 'string',\n    keys: ['browser.bfcache.outcome'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'hit',\n    examples: ['hit', 'miss'],\n    changelog: [{ version: '0.19.0', prs: [513], description: 'Added browser.bfcache.outcome attribute' }],\n  },\n  'browser.bfcache.reason': {\n    brief:\n      'A browser-reported reason a page was not restored from the back/forward cache on a back/forward navigation, taken from the notRestoredReasons API. Reported per reason (a single miss can have several). Currently Chromium-only.',\n    type: 'string',\n    keys: ['browser.bfcache.reason'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'unload-listener',\n    examples: ['unload-listener', 'websocket', 'idbversionchangeevent', 'response-cache-control-no-store'],\n    changelog: [{ version: '0.19.0', prs: [513], description: 'Added browser.bfcache.reason attribute' }],\n  },\n  'browser.name': {\n    brief: 'The name of the browser.',\n    type: 'string',\n    keys: ['browser.name', 'sentry.browser.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Chrome',\n    aliases: ['sentry.browser.name'],\n    changelog: [{ version: '0.1.0', prs: [127, 139] }, { version: '0.0.0' }],\n  },\n  'browser.navigation.id': {\n    brief:\n      \"The identifier of the navigation the measurement belongs to, incremented by the browser for each navigation within a page's lifetime.\",\n    type: 'integer',\n    keys: ['browser.navigation.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    examples: [1, 3, 0],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [640],\n        description: 'Document 0 as the fallback value when the browser does not support `navigationId`',\n      },\n      { version: '0.22.0', prs: [634], description: 'Added browser.navigation.id attribute' },\n    ],\n    additionalContext: [\n      'Sourced from `PerformanceEntry.navigationId`, defined by the Soft Navigations spec. Despite its origin it is not soft-navigation specific: the field is set on the `PerformanceNavigationTiming` entry of a hard navigation too.',\n      'The value starts at 1 for the initial page load and increments for each subsequent navigation. It is only unique within a single page lifetime, not globally.',\n      'A value of 0 is a fallback rather than a real navigation id: web-vitals reports 0 when the browser does not expose `PerformanceEntry.navigationId`, so 0 means the id is unknown.',\n      'Pairs with `browser.navigation.type`: the type says how the browser arrived at the page, the id says which navigation of that page a measurement belongs to.',\n      \"Not to be confused with the Navigation API's `NavigationHistoryEntry.id`, which is an opaque string identifying a history entry rather than a counter, and is not interchangeable with this value.\",\n      \"Also distinct from the `router.navigation.*` attributes, which describe the client-side router's own view of a navigation. Those come from the framework, this one comes from the browser, and both can be set on the same span.\",\n    ],\n  },\n  'browser.navigation.type': {\n    brief: 'The type of navigation the browser performed to arrive at the page the metrics were measured on.',\n    type: 'string',\n    keys: ['browser.navigation.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'navigate',\n    examples: ['navigate', 'reload', 'back-forward', 'back-forward-cache', 'prerender', 'restore', 'soft-navigation'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [640],\n        description:\n          'Use the web-vitals navigation types as-is: `bfcache` is now `back-forward-cache`, and `back-forward` and `restore` are no longer reported as `navigate`',\n      },\n      { version: '0.22.0', prs: [600], description: 'Added browser.navigation.type attribute' },\n    ],\n    additionalContext: [\n      'Carries the `navigationType` value reported by the web-vitals library verbatim. web-vitals hyphenates the Navigation Timing `PerformanceNavigationTiming.type` value (`back_forward` becomes `back-forward`) and adds states that API does not cover: `back-forward-cache` for a restore from the back/forward cache, `prerender`, `restore` for a discarded tab being reloaded, and `soft-navigation`.',\n      '`back-forward-cache` is only set when the page was actually restored from the back/forward cache. A back/forward navigation that missed the cache is a full document load and reports `back-forward`. Use the `browser.bfcache.*` attributes to diagnose misses.',\n      '`prerender` pages finish painting before activation, so their paint timings are offset by `browser.performance.navigation.activation_start`. Keep them separate when aggregating web vitals.',\n      \"Not to be confused with `router.navigation.type`, which holds the client-side router's own vocabulary (`link`, `goto`, `router.push`). The two are independent and can both be set on the same span.\",\n    ],\n  },\n  'browser.paint.type': {\n    brief: 'The type of paint timing entry reported by the browser.',\n    type: 'string',\n    keys: ['browser.paint.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'first-paint',\n    examples: ['first-paint', 'first-contentful-paint'],\n    changelog: [{ version: '0.22.0', prs: [606], description: 'Added browser.paint.type attribute' }],\n  },\n  'browser.performance.navigation.activation_start': {\n    brief: 'The time between initiating a navigation to a page and the browser activating the page',\n    type: 'double',\n    keys: ['browser.performance.navigation.activation_start', 'performance.activationStart'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1.983,\n    aliases: ['performance.activationStart'],\n    changelog: [\n      { version: '0.5.0', prs: [321], description: 'Added browser.performance.navigation.activation_start attribute' },\n    ],\n  },\n  'browser.performance.time_origin': {\n    brief: \"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated\",\n    type: 'double',\n    keys: ['browser.performance.time_origin', 'performance.timeOrigin'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1776185678.886,\n    aliases: ['performance.timeOrigin'],\n    changelog: [\n      { version: '0.5.0', prs: [321], description: 'Added browser.performance.time_origin attribute attribute' },\n    ],\n  },\n  'browser.report.type': {\n    brief: 'A browser report sent via reporting API..',\n    type: 'string',\n    keys: ['browser.report.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'network-error',\n    changelog: [{ version: '0.1.0', prs: [68, 127] }],\n  },\n  'browser.script.invoker': {\n    brief: 'How a script was called in the browser.',\n    type: 'string',\n    keys: ['browser.script.invoker'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Window.requestAnimationFrame',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'browser.script.invoker_type': {\n    brief: 'Browser script entry point type.',\n    type: 'string',\n    keys: ['browser.script.invoker_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'event-listener',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'browser.script.source_char_position': {\n    brief: 'A number representing the script character position of the script.',\n    type: 'integer',\n    keys: ['browser.script.source_char_position'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 678,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'browser.version': {\n    brief: 'The version of the browser.',\n    type: 'string',\n    keys: ['browser.version', 'sentry.browser.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '120.0.6099.130',\n    aliases: ['sentry.browser.version'],\n    changelog: [{ version: '0.1.0', prs: [59, 127, 139] }],\n  },\n  'browser.web_vital.cls.report_event': {\n    brief: 'The event that caused the SDK to report CLS (pagehide or navigation)',\n    type: 'string',\n    keys: ['browser.web_vital.cls.report_event'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'navigation',\n    deprecation: {\n      reason:\n        'The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the CLS value is final, so there is no report event to record. No replacement.',\n    },\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [642],\n        description: 'Deprecated browser.web_vital.cls.report_event, which has no replacement',\n      },\n      { version: '0.5.0', prs: [319], description: 'Added browser.web_vital.cls.report_event attribute' },\n    ],\n  },\n  'browser.web_vital.cls.source.<key>': {\n    brief: 'The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N',\n    type: 'string',\n    keys: ['browser.web_vital.cls.source.<key>', 'cls.source.<key>'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: 'body > div#app',\n    aliases: ['cls.source.<key>'],\n    changelog: [{ version: '0.5.0', prs: [234] }],\n  },\n  'browser.web_vital.cls.value': {\n    brief: 'The value of the recorded Cumulative Layout Shift (CLS) web vital',\n    type: 'double',\n    keys: ['browser.web_vital.cls.value', 'cls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.2361,\n    aliases: ['cls'],\n    changelog: [{ version: '0.5.0', prs: [229], description: 'Added browser.web_vital.cls.value attribute' }],\n  },\n  'browser.web_vital.fcp.value': {\n    brief: 'The time it takes for the browser to render the first piece of meaningful content on the screen',\n    type: 'double',\n    keys: ['browser.web_vital.fcp.value', 'fcp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 547.6951,\n    aliases: ['fcp'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'browser.web_vital.fp.value': {\n    brief: 'The time in milliseconds it takes for the browser to render the first pixel on the screen',\n    type: 'double',\n    keys: ['browser.web_vital.fp.value', 'fp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 477.1926,\n    aliases: ['fp'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'browser.web_vital.inp.input_delay': {\n    brief:\n      'The time between the user interacting with the page and the browser starting to run the event handlers, for the interaction INP was reported on, in milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.inp.input_delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 120,\n    examples: [120],\n    changelog: [{ version: '0.28.0', prs: [712], description: 'Added browser.web_vital.inp.input_delay attribute' }],\n    additionalContext: [\n      'One of the three INP subparts, which add up to `browser.web_vital.inp.value`: input delay, processing duration and presentation delay. Named after `inputDelay` in the web-vitals attribution build.',\n      \"Measured from the interaction's `PerformanceEventTiming` entry as `processingStart` minus `startTime`.\",\n      'Omitted when INP is reported without an interaction to attribute it to, like `browser.web_vital.inp.target`.',\n    ],\n  },\n  'browser.web_vital.inp.interaction_type': {\n    brief: 'The kind of user interaction INP was reported on',\n    type: 'string',\n    keys: ['browser.web_vital.inp.interaction_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'click',\n    examples: ['click', 'hover', 'drag', 'press'],\n    changelog: [\n      { version: '0.24.0', prs: [641], description: 'Added browser.web_vital.inp.interaction_type attribute' },\n    ],\n    additionalContext: [\n      \"One of `click`, `hover`, `drag` or `press`, derived from the DOM event name of the Event Timing entry: pointer, mouse and touch events map to `click`, `mouseover` and similar to `hover`, drag and drop events to `drag`, and keyboard and `input` events to `press`. The same value forms the suffix of the span's `ui.interaction.*` op.\",\n      'Not to be confused with the `interactionType` of the web-vitals attribution build, which only distinguishes `pointer` and `keyboard`.',\n      'Omitted when INP is reported without an interaction to attribute it to, see `browser.web_vital.inp.target`. The op of such a span still falls into `ui.interaction.click` so that it stays within the interaction span family, which makes this attribute, not the op, the way to tell a real click from a value with no interaction.',\n    ],\n  },\n  'browser.web_vital.inp.presentation_delay': {\n    brief:\n      'The time between the event handlers finishing and the browser presenting the next frame, for the interaction INP was reported on, in milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.inp.presentation_delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 100,\n    examples: [100],\n    changelog: [\n      { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.inp.presentation_delay attribute' },\n    ],\n    additionalContext: [\n      'One of the three INP subparts, which add up to `browser.web_vital.inp.value`. Named after `presentationDelay` in the web-vitals attribution build.',\n      \"Measured from the interaction's `PerformanceEventTiming` entry as `startTime` plus `duration` minus `processingEnd`.\",\n      'Omitted when INP is reported without an interaction to attribute it to, like `browser.web_vital.inp.target`.',\n    ],\n  },\n  'browser.web_vital.inp.processing_duration': {\n    brief: 'The time it took the event handlers to run, for the interaction INP was reported on, in milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.inp.processing_duration'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 140,\n    examples: [140],\n    changelog: [\n      { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.inp.processing_duration attribute' },\n    ],\n    additionalContext: [\n      'One of the three INP subparts, which add up to `browser.web_vital.inp.value`. Named after `processingDuration` in the web-vitals attribution build.',\n      \"Measured from the interaction's `PerformanceEventTiming` entry as `processingEnd` minus `processingStart`.\",\n      'Omitted when INP is reported without an interaction to attribute it to, like `browser.web_vital.inp.target`.',\n    ],\n  },\n  'browser.web_vital.inp.target': {\n    brief:\n      'The HTML element selector or component name of the element the user interacted with, for the interaction INP was reported on',\n    type: 'string',\n    keys: ['browser.web_vital.inp.target'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'body > div#app > button.submit',\n    examples: ['body > div#app > button.submit', 'SubmitButton'],\n    changelog: [{ version: '0.24.0', prs: [641], description: 'Added browser.web_vital.inp.target attribute' }],\n    additionalContext: [\n      'Named after `PerformanceEventTiming.target`, the way `browser.web_vital.lcp.element` is named after `LargestContentfulPaint.element`. The value uses the same format as that attribute.',\n      'Omitted when INP is reported without an interaction to attribute it to. web-vitals reports such a value for a soft navigation whose interactions all stayed below the Event Timing duration threshold, so there is no element to name. The span is still named and still carries `browser.web_vital.inp.value`.',\n    ],\n  },\n  'browser.web_vital.inp.value': {\n    brief: 'The value of the recorded Interaction to Next Paint (INP) web vital',\n    type: 'double',\n    keys: ['browser.web_vital.inp.value', 'inp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 200,\n    aliases: ['inp'],\n    changelog: [{ version: '0.5.0', prs: [229], description: 'Added browser.web_vital.inp.value attribute' }],\n  },\n  'browser.web_vital.lcp.element': {\n    brief: 'The HTML element selector or component name for which LCP was reported',\n    type: 'string',\n    keys: ['browser.web_vital.lcp.element', 'lcp.element'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'body > div#app > div#container > div',\n    aliases: ['lcp.element'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'browser.web_vital.lcp.element_render_delay': {\n    brief: 'The time between the LCP resource finishing loading and the LCP element being rendered, in milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.lcp.element_render_delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 410,\n    examples: [410],\n    changelog: [\n      { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.lcp.element_render_delay attribute' },\n    ],\n    additionalContext: [\n      'One of the four LCP subparts, which add up to `browser.web_vital.lcp.value`. Named after `elementRenderDelay` in the web-vitals attribution build.',\n      \"Measured as the LCP value minus the LCP resource's `responseEnd`. When the LCP element is text, it covers all time after TTFB.\",\n      'For a prerendered page, timestamps are measured from `activationStart`.',\n    ],\n  },\n  'browser.web_vital.lcp.id': {\n    brief: 'The id of the dom element responsible for the largest contentful paint',\n    type: 'string',\n    keys: ['browser.web_vital.lcp.id', 'lcp.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '#gero',\n    aliases: ['lcp.id'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'browser.web_vital.lcp.load_time': {\n    brief: 'The time it took for the LCP element to be loaded',\n    type: 'integer',\n    keys: ['browser.web_vital.lcp.load_time', 'lcp.loadTime'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1402,\n    aliases: ['lcp.loadTime'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'browser.web_vital.lcp.render_time': {\n    brief: 'The time it took for the LCP element to be rendered',\n    type: 'integer',\n    keys: ['browser.web_vital.lcp.render_time', 'lcp.renderTime'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1685,\n    aliases: ['lcp.renderTime'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'browser.web_vital.lcp.report_event': {\n    brief: 'The event that caused the SDK to report LCP (pagehide or navigation)',\n    type: 'string',\n    keys: ['browser.web_vital.lcp.report_event'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'pagehide',\n    deprecation: {\n      reason:\n        'The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the LCP value is final, so there is no report event to record. No replacement.',\n    },\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [642],\n        description: 'Deprecated browser.web_vital.lcp.report_event, which has no replacement',\n      },\n      { version: '0.5.0', prs: [319], description: 'Added browser.web_vital.lcp.report_event attribute' },\n    ],\n  },\n  'browser.web_vital.lcp.resource_load_delay': {\n    brief:\n      'The time between the first byte of the document arriving and the browser starting to load the LCP resource, in milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.lcp.resource_load_delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 320.5,\n    examples: [320.5],\n    changelog: [\n      { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.lcp.resource_load_delay attribute' },\n    ],\n    additionalContext: [\n      'One of the four LCP subparts, which add up to `browser.web_vital.lcp.value`: TTFB (`browser.web_vital.ttfb.value`), resource load delay, resource load duration and element render delay. Named after `resourceLoadDelay` in the web-vitals attribution build.',\n      \"Measured as the LCP resource's `requestStart` (or `startTime` when `requestStart` is not exposed) minus TTFB. It is 0 when the LCP element is text, since no resource is loaded.\",\n      'For a prerendered page, timestamps are measured from `activationStart`.',\n    ],\n  },\n  'browser.web_vital.lcp.resource_load_duration': {\n    brief: 'The time it took to load the LCP resource, in milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.lcp.resource_load_duration'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 780.2,\n    examples: [780.2],\n    changelog: [\n      { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.lcp.resource_load_duration attribute' },\n    ],\n    additionalContext: [\n      'One of the four LCP subparts, which add up to `browser.web_vital.lcp.value`. Named after `resourceLoadDuration` in the web-vitals attribution build.',\n      \"Measured as the LCP resource's `responseEnd` minus its `requestStart` (or `startTime` when `requestStart` is not exposed). It is 0 when the LCP element is text, since no resource is loaded.\",\n      'For a prerendered page, timestamps are measured from `activationStart`.',\n    ],\n  },\n  'browser.web_vital.lcp.size': {\n    brief: 'The size of the largest contentful paint element',\n    type: 'integer',\n    keys: ['browser.web_vital.lcp.size', 'lcp.size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1024,\n    aliases: ['lcp.size'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'browser.web_vital.lcp.url': {\n    brief: 'The url of the dom element responsible for the largest contentful paint',\n    type: 'string',\n    keys: ['browser.web_vital.lcp.url', 'lcp.url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://example.com/static/img.png',\n    aliases: ['lcp.url'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'browser.web_vital.lcp.value': {\n    brief: 'The value of the recorded Largest Contentful Paint (LCP) web vital',\n    type: 'double',\n    keys: ['browser.web_vital.lcp.value', 'lcp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2500,\n    aliases: ['lcp'],\n    changelog: [{ version: '0.5.0', prs: [229], description: 'Added browser.web_vital.lcp.value attribute' }],\n  },\n  'browser.web_vital.ttfb.request_time': {\n    brief:\n      \"The time it takes for the server to process the initial request and send the first byte of a response to the user's browser\",\n    type: 'double',\n    keys: ['browser.web_vital.ttfb.request_time', 'ttfb.requestTime'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1554.5814,\n    aliases: ['ttfb.requestTime'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'browser.web_vital.ttfb.value': {\n    brief: 'The value of the recorded Time To First Byte (TTFB) web vital in Milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.ttfb.value', 'ttfb'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 194.3322,\n    aliases: ['ttfb'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'cache.hit': {\n    brief: 'If the cache was hit during this span.',\n    type: 'boolean',\n    keys: ['cache.hit'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'cache.item_age': {\n    brief: 'The age of the cache entry in seconds, measured at read time.',\n    type: 'integer',\n    keys: ['cache.item_age'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5,\n    examples: [5, 3600],\n    changelog: [{ version: '0.23.0', prs: [637], description: 'Added cache.item_age attribute' }],\n    additionalContext: [\n      'Set on reads that return an entry. Absent on a miss, or when the cache does not report a write time.',\n      \"Clamped to 0. On a shared cache, the writer's clock and the reader's clock can drift far enough to make the age negative.\",\n      'Can exceed `cache.ttl`. A cache that discards an expired entry on read still reports the age of that entry, with `cache.hit: false`.',\n    ],\n    searchAlias: {\n      name: 'cache.item_age',\n      type: 'second',\n    },\n  },\n  'cache.item_size': {\n    brief: 'The size of the requested item in the cache. In bytes.',\n    type: 'integer',\n    keys: ['cache.item_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 58,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'cache.item_size',\n      type: 'byte',\n    },\n  },\n  'cache.key': {\n    brief: 'The key of the cache accessed.',\n    type: 'string[]',\n    keys: ['cache.key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['my-cache-key', 'my-other-cache-key'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'cache.operation': {\n    brief: 'The operation being performed on the cache.',\n    type: 'string',\n    keys: ['cache.operation'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'get',\n    examples: ['get', 'put', 'remove'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'cache.tags': {\n    brief: 'The tags attached to the cache entry. Tags group entries so a cache can invalidate them together.',\n    type: 'string[]',\n    keys: ['cache.tags'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Applications pick tag values freely and often build them from record identifiers such as a user id.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['blog-posts', 'post-42'],\n    examples: [['blog-posts', 'post-42'], ['products']],\n    changelog: [{ version: '0.23.0', prs: [637], description: 'Added cache.tags attribute' }],\n    additionalContext: [\n      'Cache library examples that support tags: Next.js `cacheTag()`, Symfony `ItemInterface::tag()`, Laravel `Cache::tags()`.',\n      'HTTP caches take tags from a response header. Cloudflare reads `Cache-Tag`, Fastly reads `Surrogate-Key`.',\n      'Record only the tags the application declared. Leave out implicit tags that the framework adds itself, for example one tag per route.',\n      'The tags describe the entry, not the operation. Take them from the entry the cache returned or stored.',\n    ],\n  },\n  'cache.ttl': {\n    brief: 'The TTL (maximum lifetime) of the cache entry in seconds',\n    type: 'integer',\n    keys: ['cache.ttl'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 120,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n    additionalContext: [\n      'Counted from the write. On a read, the value is the full TTL, not the time that remains.',\n      'A value of 0 means the entry expires immediately, as with HTTP `max-age=0`. Round a fractional TTL up, so 0.3 seconds becomes 1, not 0.',\n      'Omit the attribute when the entry never expires, the TTL is unknown, or each read restarts the TTL.',\n    ],\n  },\n  'cache.write': {\n    brief: 'If the cache operation resulted in a write to the cache.',\n    type: 'boolean',\n    keys: ['cache.write'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.5.0' }],\n  },\n  channel: {\n    brief: 'The channel name that is being used.',\n    type: 'string',\n    keys: ['channel'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'mail',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'client.address': {\n    brief:\n      'Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['client.address', 'http.client_ip'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    aliases: ['http.client_ip'],\n    changelog: [{ version: '0.1.0', prs: [106, 127] }, { version: '0.0.0' }],\n  },\n  'client.port': {\n    brief: 'Client port number.',\n    type: 'integer',\n    keys: ['client.port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 5432,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'cloudflare.d1.duration': {\n    brief: 'The duration of a Cloudflare D1 operation.',\n    type: 'integer',\n    keys: ['cloudflare.d1.duration'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 543,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'cloudflare.d1.query_type': {\n    brief: 'The type of query executed in a Cloudflare D1 operation',\n    type: 'string',\n    keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'run',\n    deprecation: {\n      replacement: 'db.operation.name',\n      status: 'backfill',\n    },\n    aliases: ['db.operation.name', 'db.operation', 'redis.command'],\n    changelog: [\n      { version: '0.19.0', prs: [531], description: 'Added redis.command as an alias' },\n      { version: '0.11.0', prs: [392], description: 'Added cloudflare.d1.query_type attribute' },\n    ],\n  },\n  'cloudflare.d1.rows_read': {\n    brief: 'The number of rows read in a Cloudflare D1 operation.',\n    type: 'integer',\n    keys: ['cloudflare.d1.rows_read'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'cloudflare.d1.rows_written': {\n    brief: 'The number of rows written in a Cloudflare D1 operation.',\n    type: 'integer',\n    keys: ['cloudflare.d1.rows_written'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'cloudflare.durable_object.query.bindings': {\n    brief: 'The number of bound parameters passed to the SQL exec call.',\n    type: 'integer',\n    keys: ['cloudflare.durable_object.query.bindings'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2,\n    changelog: [\n      { version: '0.13.0', prs: [435], description: 'Added cloudflare.durable_object.query.bindings attribute' },\n    ],\n  },\n  'cloudflare.durable_object.response.rows_read': {\n    brief: 'The number of rows read by a Cloudflare Durable Object SQL operation.',\n    type: 'integer',\n    keys: ['cloudflare.durable_object.response.rows_read'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12,\n    changelog: [\n      { version: '0.13.0', prs: [435], description: 'Added cloudflare.durable_object.response.rows_read attribute' },\n    ],\n  },\n  'cloudflare.durable_object.response.rows_written': {\n    brief: 'The number of rows written by a Cloudflare Durable Object SQL operation.',\n    type: 'integer',\n    keys: ['cloudflare.durable_object.response.rows_written'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    changelog: [\n      { version: '0.13.0', prs: [435], description: 'Added cloudflare.durable_object.response.rows_written attribute' },\n    ],\n  },\n  'cloudflare.r2.bucket': {\n    brief: 'The name of the Cloudflare R2 bucket binding',\n    type: 'string',\n    keys: ['cloudflare.r2.bucket'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'MY_BUCKET',\n    changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.bucket attribute' }],\n  },\n  'cloudflare.r2.operation': {\n    brief: 'The R2 API operation being performed',\n    type: 'string',\n    keys: ['cloudflare.r2.operation'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GetObject',\n    changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.operation attribute' }],\n  },\n  'cloudflare.r2.request.delimiter': {\n    brief: 'The delimiter used to group objects in an R2 list operation',\n    type: 'string',\n    keys: ['cloudflare.r2.request.delimiter'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/',\n    changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.delimiter attribute' }],\n  },\n  'cloudflare.r2.request.key': {\n    brief: 'The object key used in the R2 operation',\n    type: 'string',\n    keys: ['cloudflare.r2.request.key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'my-file.txt',\n    changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.key attribute' }],\n  },\n  'cloudflare.r2.request.part_number': {\n    brief: 'The part number in a multipart upload operation',\n    type: 'integer',\n    keys: ['cloudflare.r2.request.part_number'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.part_number attribute' }],\n  },\n  'cloudflare.r2.request.prefix': {\n    brief: 'The prefix used to filter objects in an R2 list operation',\n    type: 'string',\n    keys: ['cloudflare.r2.request.prefix'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'images/',\n    changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.prefix attribute' }],\n  },\n  'cloudflare.workflow.attempt': {\n    brief: 'The current attempt number for a Cloudflare Workflow step',\n    type: 'integer',\n    keys: ['cloudflare.workflow.attempt'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.attempt attribute' }],\n  },\n  'cloudflare.workflow.retries.backoff': {\n    brief: 'The backoff strategy for Cloudflare Workflow step retries',\n    type: 'string',\n    keys: ['cloudflare.workflow.retries.backoff'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'exponential',\n    changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.retries.backoff attribute' }],\n  },\n  'cloudflare.workflow.retries.delay': {\n    brief: 'The delay between Cloudflare Workflow step retries',\n    type: 'string',\n    keys: ['cloudflare.workflow.retries.delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '5 seconds',\n    changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.retries.delay attribute' }],\n  },\n  'cloudflare.workflow.retries.limit': {\n    brief: 'The maximum number of retries for a Cloudflare Workflow step',\n    type: 'integer',\n    keys: ['cloudflare.workflow.retries.limit'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 3,\n    changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.retries.limit attribute' }],\n  },\n  'cloudflare.workflow.timeout': {\n    brief: 'The timeout duration for a Cloudflare Workflow step',\n    type: 'string',\n    keys: ['cloudflare.workflow.timeout'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1 minute',\n    changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.timeout attribute' }],\n  },\n  'cloud.account.id': {\n    brief: 'The cloud account ID the resource is assigned to',\n    type: 'string',\n    keys: ['cloud.account.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '123456789012',\n    changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.account.id attribute' }],\n  },\n  'cloud.availability_zone': {\n    brief: 'Cloud regions often have multiple, isolated locations known as zones to increase availability',\n    type: 'string',\n    keys: ['cloud.availability_zone'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'us-east-1c',\n    changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.availability_zone attribute' }],\n  },\n  'cloud.platform': {\n    brief: 'The cloud platform in use',\n    type: 'string',\n    keys: ['cloud.platform'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'aws_lambda',\n    changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.platform attribute' }],\n  },\n  'cloud.provider': {\n    brief: 'Name of the cloud provider',\n    type: 'string',\n    keys: ['cloud.provider'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'aws',\n    changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.provider attribute' }],\n  },\n  'cloud.region': {\n    brief: 'The geographical region the resource is running',\n    type: 'string',\n    keys: ['cloud.region', 'aws_region', 'gcp_region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'us-east-1',\n    aliases: ['aws_region', 'gcp_region'],\n    changelog: [\n      { version: '0.19.0', prs: [535, 537], description: 'Added aws_region and gcp_region as aliases' },\n      { version: '0.7.0', prs: [364], description: 'Added cloud.region attribute' },\n    ],\n  },\n  'cloud.resource_id': {\n    brief: 'Cloud provider-specific native identifier of the monitored cloud resource',\n    type: 'string',\n    keys: ['cloud.resource_id', 'faas.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function',\n    aliases: ['faas.id'],\n    changelog: [\n      { version: '0.16.0', prs: [475], description: 'Added faas.id as an alias' },\n      { version: '0.11.1', prs: [414] },\n    ],\n    additionalContext: [\n      'This can be an identifier for a resource in AWS, GCP, or Azure. There may be some overlap in values found here with other attributes. For instance, an AWS lambda ARN may be found here as well as in `aws.lambda.invoked_arn`. OTEL recommends setting them alongside each other.',\n    ],\n  },\n  cls: {\n    brief: 'The value of the recorded Cumulative Layout Shift (CLS) web vital',\n    type: 'double',\n    keys: ['browser.web_vital.cls.value', 'cls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.2361,\n    deprecation: {\n      replacement: 'browser.web_vital.cls.value',\n      reason: 'The CLS web vital is now recorded as a browser.web_vital.cls.value attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.cls.value'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [229],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  'cls.source.<key>': {\n    brief: 'The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N',\n    type: 'string',\n    keys: ['browser.web_vital.cls.source.<key>', 'cls.source.<key>'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: 'body > div#app',\n    deprecation: {\n      replacement: 'browser.web_vital.cls.source.<key>',\n      reason: 'The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.cls.source.<key>'],\n    changelog: [{ version: '0.5.0', prs: [234] }],\n  },\n  code: {\n    brief: 'Status code of the RPC returned by the RPC server or generated by the client.',\n    type: 'string',\n    keys: ['rpc.response.status_code', 'code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'DEADLINE_EXCEEDED',\n    examples: ['DEADLINE_EXCEEDED'],\n    deprecation: {\n      replacement: 'rpc.response.status_code',\n      status: 'backfill',\n    },\n    aliases: ['rpc.grpc.status_code', 'rpc.response.status_code'],\n    changelog: [{ version: '0.19.0', prs: [533], description: 'Added code attribute' }],\n  },\n  'code.filepath': {\n    brief:\n      'The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).',\n    type: 'string',\n    keys: ['code.file.path', 'sveltekit.load.node_id', 'code.filepath'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/app/myapplication/http/handler/server.py',\n    deprecation: {\n      replacement: 'code.file.path',\n      status: 'backfill',\n    },\n    aliases: ['code.file.path', 'sveltekit.load.node_id'],\n    changelog: [\n      { version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_id as an alias' },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n  },\n  'code.file.path': {\n    brief:\n      'The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).',\n    type: 'string',\n    keys: ['code.file.path', 'sveltekit.load.node_id', 'code.filepath'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/app/myapplication/http/handler/server.py',\n    aliases: ['code.filepath', 'sveltekit.load.node_id'],\n    changelog: [\n      { version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_id as an alias' },\n      { version: '0.0.0' },\n    ],\n  },\n  'code.function': {\n    brief: \"The method or function name, or equivalent (usually rightmost part of the code unit's name).\",\n    type: 'string',\n    keys: ['code.function', 'code.function.name', 'django.function_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'server_request',\n    aliases: ['code.function.name', 'django.function_name'],\n    changelog: [\n      { version: '0.19.0', prs: [538], description: 'Added django.function_name as an alias' },\n      { version: '0.1.0', prs: [61, 74] },\n      { version: '0.0.0' },\n    ],\n  },\n  'code.function.name': {\n    brief: 'The method or function fully-qualified name without arguments.',\n    type: 'string',\n    keys: ['code.function.name', 'code.function', 'django.function_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'server_request',\n    aliases: ['code.function', 'django.function_name'],\n    changelog: [\n      { version: '0.19.0', prs: [538], description: 'Added django.function_name as an alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'code.lineno': {\n    brief:\n      'The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function',\n    type: 'integer',\n    keys: ['code.line.number', 'code.lineno'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 42,\n    deprecation: {\n      replacement: 'code.line.number',\n      status: 'backfill',\n    },\n    aliases: ['code.line.number'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61, 108] }, { version: '0.0.0' }],\n  },\n  'code.line.number': {\n    brief:\n      'The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function',\n    type: 'integer',\n    keys: ['code.line.number', 'code.lineno'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 42,\n    aliases: ['code.lineno'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'code.namespace': {\n    brief:\n      \"The 'namespace' within which code.function is defined. Usually the qualified class or module name, such that code.namespace + some separator + code.function form a unique identifier for the code unit.\",\n    type: 'string',\n    keys: ['code.namespace'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'http.handler',\n    changelog: [{ version: '0.1.0', prs: [61, 74] }, { version: '0.0.0' }],\n  },\n  connectionType: {\n    brief: 'Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).',\n    type: 'string',\n    keys: ['network.connection.type', 'connectionType', 'device.connection_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'wifi',\n    deprecation: {\n      replacement: 'network.connection.type',\n      reason: 'Old namespace-less attribute, to be replaced with network.connection.type for span-first future',\n      status: 'backfill',\n    },\n    aliases: ['network.connection.type', 'device.connection_type'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [279],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  'connection.rtt': {\n    brief: 'Specifies the estimated effective round-trip time of the current connection, in milliseconds.',\n    type: 'integer',\n    keys: ['network.connection.rtt', 'connection.rtt'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 100,\n    deprecation: {\n      replacement: 'network.connection.rtt',\n      reason:\n        'Old attribute name (no official namespace), to be replaced with network.connection.rtt for span-first future',\n      status: 'backfill',\n    },\n    aliases: ['network.connection.rtt'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [279],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  'culture.calendar': {\n    brief: 'The calendar system used by the culture.',\n    type: 'string',\n    keys: ['culture.calendar'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GregorianCalendar',\n    changelog: [{ version: '0.4.0', prs: [243] }],\n  },\n  'culture.display_name': {\n    brief: 'Human readable name of the culture.',\n    type: 'string',\n    keys: ['culture.display_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'English (United States)',\n    changelog: [{ version: '0.4.0', prs: [243] }],\n  },\n  'culture.is_24_hour_format': {\n    brief: 'Whether the culture uses 24-hour time format.',\n    type: 'boolean',\n    keys: ['culture.is_24_hour_format'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.4.0', prs: [243] }],\n  },\n  'culture.locale': {\n    brief: 'The locale identifier following RFC 4646.',\n    type: 'string',\n    keys: ['culture.locale'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'en-US',\n    changelog: [{ version: '0.4.0', prs: [243] }],\n  },\n  'culture.timezone': {\n    brief: 'The timezone of the culture, as a geographic timezone identifier.',\n    type: 'string',\n    keys: ['culture.timezone'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Europe/Vienna',\n    changelog: [{ version: '0.4.0', prs: [243] }],\n  },\n  'db.collection.name': {\n    brief: 'The name of a collection (table, container) within the database.',\n    type: 'string',\n    keys: ['db.collection.name', 'db.mongodb.collection'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'users',\n    examples: ['users', ',customers,orders,'],\n    aliases: ['db.mongodb.collection'],\n    changelog: [\n      { version: '0.29.0', prs: [711], description: 'Add comma-wrapped format for calls on more than one collection' },\n      { version: '0.19.0', prs: [483], description: 'Added db.mongodb.collection as an alias' },\n      { version: '0.1.0', prs: [106, 127] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'For a call on more than one collection: the unique names, sorted and wrapped in commas (`,customers,orders,`), so each name matches `,<name>,`.',\n    ],\n  },\n  'db.connection_string': {\n    brief: 'The connection string used to connect to the database.',\n    type: 'string',\n    keys: ['db.connection_string'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'redis://localhost:6379',\n    examples: ['redis://localhost:6379'],\n    deprecation: {\n      reason:\n        'This attribute is deprecated. The connection is described by server.address and server.port instead, so the value cannot be copied to a single replacement attribute.',\n    },\n    changelog: [{ version: '0.21.0', prs: [581], description: 'Added db.connection_string attribute' }],\n  },\n  'db.driver.name': {\n    brief: 'The name of the driver used for the database connection.',\n    type: 'string',\n    keys: ['db.driver.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'psycopg2',\n    changelog: [{ version: '0.5.0', prs: [297], description: 'Added db.driver.name attribute' }],\n  },\n  'db.mongodb.collection': {\n    brief: 'The MongoDB collection being accessed.',\n    type: 'string',\n    keys: ['db.collection.name', 'db.mongodb.collection'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'users',\n    deprecation: {\n      replacement: 'db.collection.name',\n      reason:\n        'This attribute is being deprecated in favor of db.collection.name, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['db.collection.name'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [483],\n        description: 'Added db.mongodb.collection attribute, deprecated in favor of db.collection.name',\n      },\n    ],\n  },\n  'db.name': {\n    brief: 'The name of the database being accessed.',\n    type: 'string',\n    keys: ['db.namespace', 'db.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'customers',\n    deprecation: {\n      replacement: 'db.namespace',\n      status: 'backfill',\n    },\n    aliases: ['db.namespace'],\n    changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n  },\n  'db.namespace': {\n    brief: 'The name of the database being accessed.',\n    type: 'string',\n    keys: ['db.namespace', 'db.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'customers',\n    aliases: ['db.name'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'db.operation': {\n    brief: 'The name of the operation being executed.',\n    type: 'string',\n    keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'SELECT',\n    deprecation: {\n      replacement: 'db.operation.name',\n      status: 'normalize',\n    },\n    aliases: ['db.operation.name', 'cloudflare.d1.query_type', 'redis.command'],\n    changelog: [\n      { version: '0.19.0', prs: [531], description: 'Added redis.command as an alias' },\n      { version: '0.4.0', prs: [199] },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'db.operation.batch.size': {\n    brief:\n      'The number of queries included in a batch operation. Operations are only considered batches when they contain two or more operations, and so db.operation.batch.size SHOULD never be 1.',\n    type: 'integer',\n    keys: ['db.operation.batch.size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 3,\n    changelog: [{ version: '0.11.0', prs: [407], description: 'Added db.operation.batch.size attribute' }],\n  },\n  'db.operation.name': {\n    brief: 'The name of the operation being executed.',\n    type: 'string',\n    keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'SELECT',\n    aliases: ['db.operation', 'cloudflare.d1.query_type', 'redis.command'],\n    changelog: [\n      { version: '0.19.0', prs: [531], description: 'Added redis.command as an alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'db.params': {\n    brief: 'The query bindings for a database request.',\n    type: 'string',\n    keys: ['db.params'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '[{\"x\": 100}]',\n    examples: ['[{\"x\": 100}]'],\n    deprecation: {\n      replacement: 'db.query.parameter.<key>',\n      reason:\n        'Instead of adding every binding in the db.params attribute, add them as individual entries with db.query.parameter.<key>.',\n    },\n    changelog: [{ version: '0.19.0', prs: [529], description: 'Added db.params attribute' }],\n  },\n  'db.query.parameter.<key>': {\n    brief:\n      'A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value.',\n    type: 'string',\n    keys: ['db.query.parameter.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"db.query.parameter.foo='123'\",\n    changelog: [{ version: '0.1.0', prs: [103, 127] }],\n  },\n  'db.query.summary': {\n    brief:\n      'A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.',\n    type: 'string',\n    keys: ['db.query.summary'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'SELECT users',\n    examples: ['SELECT users', 'INSERT products; UPDATE orders'],\n    changelog: [\n      { version: '0.19.0', prs: [505], description: 'Added multiple examples' },\n      { version: '0.4.0', prs: [208] },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'db.query.text': {\n    brief:\n      'The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.',\n    type: 'string',\n    keys: ['db.query.text', 'db.statement', 'query'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'SELECT * FROM users WHERE id = $1',\n    aliases: ['db.statement', 'query'],\n    changelog: [\n      { version: '0.19.0', prs: [530], description: 'Added query as an alias' },\n      { version: '0.4.0', prs: [208] },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'db.redis.connection': {\n    brief: 'The redis connection name.',\n    type: 'string',\n    keys: ['db.redis.connection'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'my-redis-instance',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'db.redis.key': {\n    brief: 'The key the Redis command is operating on.',\n    type: 'string',\n    keys: ['db.redis.key', 'redis.key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user:2047:city',\n    aliases: ['redis.key'],\n    changelog: [\n      { version: '0.19.0', prs: [484], description: 'Added redis.key as an alias' },\n      { version: '0.6.0', prs: [326], description: 'Added db.redis.key attribute' },\n    ],\n  },\n  'db.redis.parameters': {\n    brief: 'The array of command parameters given to a redis command.',\n    type: 'string[]',\n    keys: ['db.redis.parameters'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['test', '*'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'db.response.status_code': {\n    brief:\n      'Database response status code. The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.',\n    type: 'string',\n    keys: ['db.response.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'ORA-17002',\n    changelog: [{ version: '0.16.0', prs: [462], description: 'Added db.response.status_code attribute' }],\n  },\n  'db.sql.bindings': {\n    brief: 'The array of query bindings.',\n    type: 'string[]',\n    keys: ['db.sql.bindings'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['1', 'foo'],\n    deprecation: {\n      replacement: 'db.query.parameter.<key>',\n      reason:\n        'Instead of adding every binding in the db.sql.bindings attribute, add them as individual entries with db.query.parameter.<key>.',\n    },\n    changelog: [{ version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n  },\n  'db.statement': {\n    brief: 'The database statement being executed.',\n    type: 'string',\n    keys: ['db.query.text', 'db.statement', 'query'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'SELECT * FROM users WHERE id = $1',\n    deprecation: {\n      replacement: 'db.query.text',\n      reason:\n        'While this attribute never specifically required parameterization, the replacement, db.query.text, does.',\n      status: 'normalize',\n    },\n    aliases: ['db.query.text', 'query'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [501],\n        description: 'Improved example, added deprecation reason, and added query as an alias',\n      },\n      { version: '0.4.0', prs: [199] },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'db.stored_procedure.name': {\n    brief: 'The name of a stored procedure being called.',\n    type: 'string',\n    keys: ['db.stored_procedure.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'GetUserById',\n    changelog: [{ version: '0.11.0', prs: [398] }],\n  },\n  'db.system': {\n    brief:\n      'An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.',\n    type: 'string',\n    keys: ['db.system.name', 'db.system', 'span.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'postgresql',\n    deprecation: {\n      replacement: 'db.system.name',\n      status: 'backfill',\n    },\n    aliases: ['db.system.name'],\n    changelog: [{ version: '0.4.0', prs: [199, 224] }, { version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'db.system',\n      deprecatedAliases: ['span.system'],\n    },\n  },\n  'db.system.name': {\n    brief:\n      'An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.',\n    type: 'string',\n    keys: ['db.system.name', 'db.system', 'span.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'postgresql',\n    aliases: ['db.system'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'db.user': {\n    brief: 'The database user.',\n    type: 'string',\n    keys: ['db.user'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'fancy_user',\n    changelog: [{ version: '0.0.0' }],\n  },\n  deviceMemory: {\n    brief: 'The estimated total memory capacity of the device, only a rough estimation in gigabytes.',\n    type: 'string',\n    keys: ['device.memory.estimated_capacity', 'deviceMemory'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '8 GB',\n    deprecation: {\n      replacement: 'device.memory.estimated_capacity',\n      reason:\n        'Old namespace-less attribute, to be replaced with device.memory.estimated_capacity for span-first future',\n      status: 'backfill',\n    },\n    aliases: ['device.memory.estimated_capacity'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [281],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  'device.archs': {\n    brief: 'The CPU architectures of the device.',\n    type: 'string[]',\n    keys: ['device.archs'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['arm64-v8a', 'armeabi-v7a', 'armeabi'],\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.archs attribute' }],\n  },\n  'device.battery_level': {\n    brief: 'The battery level of the device as a percentage (0-100).',\n    type: 'double',\n    keys: ['device.battery_level'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 100,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.battery_level attribute' }],\n  },\n  'device.battery_temperature': {\n    brief: 'The battery temperature of the device in Celsius.',\n    type: 'double',\n    keys: ['device.battery_temperature'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 25,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.battery_temperature attribute' }],\n  },\n  'device.boot_time': {\n    brief: 'A formatted UTC timestamp when the system was booted.',\n    type: 'string',\n    keys: ['device.boot_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '2018-02-08T12:52:12Z',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.boot_time attribute' }],\n  },\n  'device.brand': {\n    brief: 'The brand of the device.',\n    type: 'string',\n    keys: ['device.brand'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Apple',\n    changelog: [{ version: '0.1.0', prs: [116, 127] }],\n  },\n  'device.charging': {\n    brief: 'Whether the device was charging or not.',\n    type: 'boolean',\n    keys: ['device.charging'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: false,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.charging attribute' }],\n  },\n  'device.chipset': {\n    brief: 'The chipset of the device.',\n    type: 'string',\n    keys: ['device.chipset'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Qualcomm SM8550',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.chipset attribute' }],\n  },\n  'device.class': {\n    brief:\n      'The classification of the device. For example, `low`, `medium`, or `high`. Typically inferred by Relay - SDKs generally do not need to set this directly.',\n    type: 'string',\n    keys: ['device.class'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'medium',\n    changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.class attribute' }],\n  },\n  'device.connection_type': {\n    brief: 'The internet connection type currently being used by the device.',\n    type: 'string',\n    keys: ['network.connection.type', 'connectionType', 'device.connection_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'wifi',\n    deprecation: {\n      replacement: 'network.connection.type',\n      reason: 'This attribute is being deprecated in favor of network.connection.type',\n      status: 'backfill',\n    },\n    aliases: ['network.connection.type', 'connectionType'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [303],\n        description: 'Added and deprecated device.connection_type in favor of network.connection.type',\n      },\n    ],\n  },\n  'device.cpu_description': {\n    brief: 'A description of the CPU of the device.',\n    type: 'string',\n    keys: ['device.cpu_description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.cpu_description attribute' }],\n  },\n  'device.external_free_storage': {\n    brief: 'External storage free size in bytes.',\n    type: 'integer',\n    keys: ['device.external_free_storage'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 67108864000,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.external_free_storage attribute' }],\n  },\n  'device.external_storage_size': {\n    brief: 'External storage total size in bytes.',\n    type: 'integer',\n    keys: ['device.external_storage_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 134217728000,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.external_storage_size attribute' }],\n  },\n  'device.family': {\n    brief: 'The family of the device.',\n    type: 'string',\n    keys: ['device.family'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'iPhone',\n    changelog: [{ version: '0.1.0', prs: [116, 127] }],\n  },\n  'device.free_memory': {\n    brief: 'Free system memory in bytes.',\n    type: 'integer',\n    keys: ['device.free_memory'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2147483648,\n    changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.free_memory attribute' }],\n  },\n  'device.free_storage': {\n    brief: 'Free device storage in bytes.',\n    type: 'integer',\n    keys: ['device.free_storage'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 107374182400,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.free_storage attribute' }],\n  },\n  'device.id': {\n    brief: 'Unique device identifier.',\n    type: 'string',\n    keys: ['device.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.id attribute' }],\n  },\n  'device.locale': {\n    brief: 'The locale of the device.',\n    type: 'string',\n    keys: ['device.locale'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'en-US',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.locale attribute' }],\n  },\n  'device.low_memory': {\n    brief: 'Whether the device was low on memory.',\n    type: 'boolean',\n    keys: ['device.low_memory'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: false,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.low_memory attribute' }],\n  },\n  'device.low_power_mode': {\n    brief: 'Whether the device is in Low Power Mode.',\n    type: 'boolean',\n    keys: ['device.low_power_mode'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.6.0', prs: [314], description: 'Added device.low_power_mode attribute' }],\n  },\n  'device.manufacturer': {\n    brief: 'The manufacturer of the device.',\n    type: 'string',\n    keys: ['device.manufacturer'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Google',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.manufacturer attribute' }],\n  },\n  'device.memory.estimated_capacity': {\n    brief:\n      'The estimated total memory capacity of the device, only a rough estimation in gigabytes. Browsers report estimations in buckets of powers of 2, mostly capped at 8 GB',\n    type: 'integer',\n    keys: ['device.memory.estimated_capacity', 'deviceMemory'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 8,\n    aliases: ['deviceMemory'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [281],\n        description: 'Added attribute device.memory.estimated_capacity to be used instead of deviceMemory',\n      },\n    ],\n  },\n  'device.memory_size': {\n    brief: 'Total system memory available in bytes.',\n    type: 'integer',\n    keys: ['device.memory_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 17179869184,\n    changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.memory_size attribute' }],\n  },\n  'device.model': {\n    brief: 'The model of the device.',\n    type: 'string',\n    keys: ['device.model'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'iPhone 15 Pro Max',\n    changelog: [{ version: '0.1.0', prs: [116, 127] }],\n  },\n  'device.model_id': {\n    brief: 'An internal hardware revision to identify the device exactly.',\n    type: 'string',\n    keys: ['device.model_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'N861AP',\n    changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.model_id attribute' }],\n  },\n  'device.name': {\n    brief: 'The user-assigned name of the mobile device.',\n    type: 'string',\n    keys: ['device.name'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'localhost',\n    changelog: [\n      { version: '0.24.0', prs: [647], description: 'Limit brief to mobile attributes and remove server_name alias' },\n      { version: '0.21.0', prs: [602], description: 'Added server_name as an alias' },\n      { version: '0.5.0', prs: [303], description: 'Added device.name attribute' },\n    ],\n  },\n  'device.online': {\n    brief: 'Whether the device was online or not.',\n    type: 'boolean',\n    keys: ['device.online'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.online attribute' }],\n  },\n  'device.orientation': {\n    brief: 'The orientation of the device, either \"portrait\" or \"landscape\".',\n    type: 'string',\n    keys: ['device.orientation'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'portrait',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.orientation attribute' }],\n  },\n  'device.processor_count': {\n    brief: 'Number of \"logical processors\".',\n    type: 'integer',\n    keys: ['device.processor_count', 'hardwareConcurrency'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 8,\n    aliases: ['hardwareConcurrency'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [300],\n        description: 'Added and deprecated attribute device.processor_count in favor of device.cpu.logical_core_count',\n      },\n    ],\n  },\n  'device.processor_frequency': {\n    brief: 'Processor frequency in MHz.',\n    type: 'double',\n    keys: ['device.processor_frequency'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2400,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.processor_frequency attribute' }],\n  },\n  'device.screen_density': {\n    brief: 'The screen density of the device.',\n    type: 'double',\n    keys: ['device.screen_density'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2.625,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_density attribute' }],\n  },\n  'device.screen_dpi': {\n    brief: 'The screen density in dots-per-inch (DPI) of the device.',\n    type: 'integer',\n    keys: ['device.screen_dpi'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 420,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_dpi attribute' }],\n  },\n  'device.screen_height_pixels': {\n    brief: 'The height of the device screen in pixels.',\n    type: 'integer',\n    keys: ['device.screen_height_pixels'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2400,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_height_pixels attribute' }],\n  },\n  'device.screen_width_pixels': {\n    brief: 'The width of the device screen in pixels.',\n    type: 'integer',\n    keys: ['device.screen_width_pixels'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1080,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_width_pixels attribute' }],\n  },\n  'device.simulator': {\n    brief: 'Whether the device is a simulator or an actual device.',\n    type: 'boolean',\n    keys: ['device.simulator'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: false,\n    changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.simulator attribute' }],\n  },\n  'device.storage_size': {\n    brief: 'Total device storage in bytes.',\n    type: 'integer',\n    keys: ['device.storage_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 274877906944,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.storage_size attribute' }],\n  },\n  'device.thermal_state': {\n    brief: \"The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum.\",\n    type: 'string',\n    keys: ['device.thermal_state'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'nominal',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.thermal_state attribute' }],\n  },\n  'device.timezone': {\n    brief: 'The timezone of the device.',\n    type: 'string',\n    keys: ['device.timezone'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Europe/Vienna',\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.timezone attribute' }],\n  },\n  'device.usable_memory': {\n    brief: 'Memory usable for the app in bytes.',\n    type: 'integer',\n    keys: ['device.usable_memory'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2147483648,\n    changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.usable_memory attribute' }],\n  },\n  dist: {\n    brief: 'The sentry dist.',\n    type: 'string',\n    keys: ['sentry.dist', 'dist'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1.0',\n    deprecation: {\n      replacement: 'sentry.dist',\n      reason: 'This attribute is being deprecated in favor of sentry.dist.',\n      status: 'backfill',\n    },\n    aliases: ['sentry.dist'],\n    changelog: [{ version: '0.16.0', prs: [489], description: 'Added dist attribute' }],\n  },\n  'django.function_name': {\n    brief: 'The fully qualified name of a function used in a Django context.',\n    type: 'string',\n    keys: ['code.function.name', 'code.function', 'django.function_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'django.contrib.sessions.middleware.SessionMiddleware',\n    examples: ['django.contrib.sessions.middleware.SessionMiddleware'],\n    deprecation: {\n      replacement: 'code.function.name',\n      reason:\n        'This attribute is being deprecated in favor of code.function.name, which is the framework-agnostic replacement.',\n      status: 'backfill',\n    },\n    aliases: ['code.function.name', 'code.function'],\n    changelog: [{ version: '0.19.0', prs: [538], description: 'Added django.function_name attribute' }],\n  },\n  'django.middleware_name': {\n    brief: 'The name of the Django middleware.',\n    type: 'string',\n    keys: [\n      'middleware.name',\n      'django.middleware_name',\n      'litestar.middleware_name',\n      'starlette.middleware_name',\n      'starlite.middleware_name',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AuthenticationMiddleware',\n    examples: ['AuthenticationMiddleware'],\n    deprecation: {\n      replacement: 'middleware.name',\n      reason:\n        'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n      status: 'backfill',\n    },\n    aliases: ['middleware.name'],\n    changelog: [{ version: '0.19.0', prs: [520], description: 'Added django.middleware_name attribute' }],\n  },\n  effectiveConnectionType: {\n    brief: 'Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).',\n    type: 'string',\n    keys: ['network.connection.effective_type', 'effectiveConnectionType'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '4g',\n    deprecation: {\n      replacement: 'network.connection.effective_type',\n      reason:\n        'Old namespace-less attribute, to be replaced with network.connection.effective_type for span-first future',\n      status: 'backfill',\n    },\n    aliases: ['network.connection.effective_type'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [279],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  environment: {\n    brief: 'The sentry environment.',\n    type: 'string',\n    keys: [\n      'sentry.environment',\n      'environment',\n      'resource.deployment.environment',\n      'resource.deployment.environment.name',\n    ],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'production',\n    deprecation: {\n      replacement: 'sentry.environment',\n      status: 'normalize',\n    },\n    aliases: ['sentry.environment'],\n    changelog: [\n      { version: '0.19.0', prs: [427], description: 'Configured normalization' },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'error.type': {\n    brief: 'Describes a class of error the operation ended with.',\n    type: 'string',\n    keys: ['error.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'timeout',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'event.id': {\n    brief: 'The unique identifier for this event (log record)',\n    type: 'integer',\n    keys: ['event.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234567890,\n    changelog: [{ version: '0.1.0', prs: [101] }],\n  },\n  'event.name': {\n    brief: 'The name that uniquely identifies this event (log record)',\n    type: 'string',\n    keys: ['event.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Process Payload',\n    changelog: [{ version: '0.1.0', prs: [101, 127] }],\n  },\n  'exception.escaped': {\n    brief:\n      'SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span.',\n    type: 'boolean',\n    keys: ['exception.escaped'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'exception.message': {\n    brief: 'The error message.',\n    type: 'string',\n    keys: ['exception.message'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'ENOENT: no such file or directory',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'exception.stacktrace': {\n    brief:\n      'A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.',\n    type: 'string',\n    keys: ['exception.stacktrace'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      'Exception in thread \"main\" java.lang.RuntimeException: Test exception\\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at com.example.GenerateTrace.main(GenerateTrace.java:5)',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'exception.type': {\n    brief:\n      'The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.',\n    type: 'string',\n    keys: ['exception.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'OSError',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'faas.coldstart': {\n    brief: 'A boolean that is true if the serverless function is executed for the first time (aka cold-start).',\n    type: 'boolean',\n    keys: ['faas.coldstart'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'faas.cron': {\n    brief: 'A string containing the schedule period as Cron Expression.',\n    type: 'string',\n    keys: ['faas.cron'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '0/5 * * * ? *',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'faas.document.collection': {\n    brief:\n      'The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name.',\n    type: 'string',\n    keys: ['faas.document.collection'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'myBucketName',\n    examples: ['myBucketName', 'myDbName'],\n    changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.collection attribute' }],\n  },\n  'faas.document.name': {\n    brief:\n      'The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name.',\n    type: 'string',\n    keys: ['faas.document.name'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'myFile.txt',\n    examples: ['myFile.txt', 'myTableName'],\n    changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.name attribute' }],\n  },\n  'faas.document.operation': {\n    brief: 'Describes the type of the operation that was performed on the data.',\n    type: 'string',\n    keys: ['faas.document.operation'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'insert',\n    examples: ['insert', 'edit', 'delete'],\n    changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.operation attribute' }],\n    additionalContext: [\n      'Has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.',\n      '`delete`: When an object is deleted.',\n      '`edit`: When an object is modified.',\n      '`insert`: When a new object is created.',\n    ],\n  },\n  'faas.document.time': {\n    brief: 'A string containing the time when the data was accessed in the ISO 8601 format expressed in UTC.',\n    type: 'string',\n    keys: ['faas.document.time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '2020-01-23T13:47:06Z',\n    examples: ['2020-01-23T13:47:06Z'],\n    changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.time attribute' }],\n  },\n  'faas.duration_in_ms': {\n    brief: 'The duration a function took to run, in milliseconds.',\n    type: 'integer',\n    keys: ['faas.duration_in_ms'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 120,\n    changelog: [{ version: '0.11.0', prs: [403] }],\n  },\n  'faas.entry_point': {\n    brief: \"The code that's run when the cloud provider invokes your function.\",\n    type: 'string',\n    keys: ['faas.entry_point'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'my_main_function',\n    changelog: [{ version: '0.11.0', prs: [403, 415] }],\n  },\n  'faas.execution': {\n    brief: 'The execution ID of the current function execution.',\n    type: 'string',\n    keys: ['faas.invocation_id', 'aws.lambda.aws_request_id', 'faas.execution'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28',\n    deprecation: {\n      replacement: 'faas.invocation_id',\n      reason:\n        'This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['faas.invocation_id', 'aws.lambda.aws_request_id'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [473],\n        description: 'Added faas.execution attribute, deprecated in favor of faas.invocation_id',\n      },\n    ],\n  },\n  'faas.id': {\n    brief: 'The unique ID of the single function that this runtime instance executes.',\n    type: 'string',\n    keys: ['cloud.resource_id', 'faas.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function',\n    deprecation: {\n      replacement: 'cloud.resource_id',\n      reason:\n        'This attribute is being deprecated in favor of cloud.resource_id, which is the OTel-aligned replacement (renamed in OTel semantic conventions v1.19.0).',\n      status: 'backfill',\n    },\n    aliases: ['cloud.resource_id'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [475],\n        description: 'Added faas.id attribute, deprecated in favor of cloud.resource_id',\n      },\n    ],\n  },\n  'faas.identity': {\n    brief:\n      'The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services',\n    type: 'string',\n    keys: ['faas.identity'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example:\n      'name@project.iam.gserviceaccount.com (GCP), arn:aws:iam::123456789012:role/role-name (AWS), 00000000-0000-0000-0000-000000000000 (Azure)',\n    changelog: [{ version: '0.11.0', prs: [403] }],\n  },\n  'faas.instance': {\n    brief:\n      'The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version.',\n    type: 'string',\n    keys: ['faas.instance'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de',\n    examples: ['2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de'],\n    changelog: [{ version: '0.31.0', prs: [748], description: 'Added faas.instance attribute' }],\n    additionalContext: ['For AWS Lambda, use the (full) log stream name.'],\n  },\n  'faas.invocation_id': {\n    brief: 'The invocation ID of the current function invocation.',\n    type: 'string',\n    keys: ['faas.invocation_id', 'aws.lambda.aws_request_id', 'faas.execution'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28',\n    aliases: ['aws.lambda.aws_request_id', 'faas.execution'],\n    changelog: [\n      { version: '0.16.0', prs: [473], description: 'Added faas.execution as an alias' },\n      { version: '0.11.1', prs: [414, 424] },\n    ],\n  },\n  'faas.invoked_name': {\n    brief: 'The name of the invoked function.',\n    type: 'string',\n    keys: ['faas.invoked_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'my-function',\n    changelog: [{ version: '0.16.0', prs: [481], description: 'Added faas.invoked_name attribute' }],\n  },\n  'faas.invoked_provider': {\n    brief: 'The cloud provider of the invoked function.',\n    type: 'string',\n    keys: ['faas.invoked_provider'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'aws',\n    changelog: [{ version: '0.16.0', prs: [481], description: 'Added faas.invoked_provider attribute' }],\n  },\n  'faas.invoked_region': {\n    brief: 'The cloud region of the invoked function.',\n    type: 'string',\n    keys: ['faas.invoked_region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'eu-central-1',\n    changelog: [{ version: '0.16.0', prs: [481], description: 'Added faas.invoked_region attribute' }],\n  },\n  'faas.max_memory': {\n    brief: 'The amount of memory available to the serverless function, in bytes.',\n    type: 'integer',\n    keys: ['faas.max_memory'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 134217728,\n    examples: [134217728, 1073741824],\n    changelog: [{ version: '0.30.0', prs: [715], description: 'Added faas.max_memory attribute' }],\n    additionalContext: [\n      'On AWS Lambda, multiply AWS_LAMBDA_FUNCTION_MEMORY_SIZE by 1,048,576 to convert the configured memory from MiB to bytes.',\n    ],\n  },\n  'faas.name': {\n    brief: 'The name of the serverless function',\n    type: 'string',\n    keys: ['faas.name', 'aws.lambda.function_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'my_function',\n    aliases: ['aws.lambda.function_name'],\n    changelog: [{ version: '0.11.0', prs: [403, 415] }],\n  },\n  'faas.time': {\n    brief: 'A string containing the function invocation time in the ISO 8601 format expressed in UTC.',\n    type: 'string',\n    keys: ['faas.time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '2020-01-23T13:47:06Z',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'faas.trigger': {\n    brief: 'Type of the trigger which caused this function invocation.',\n    type: 'string',\n    keys: ['faas.trigger'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'timer',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'faas.version': {\n    brief: 'The version of the function that was invoked',\n    type: 'string',\n    keys: ['faas.version', 'aws.lambda.function_version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '$LATEST',\n    aliases: ['aws.lambda.function_version'],\n    changelog: [{ version: '0.11.1', prs: [414, 424] }],\n  },\n  fcp: {\n    brief: 'The time it takes for the browser to render the first piece of meaningful content on the screen',\n    type: 'double',\n    keys: ['browser.web_vital.fcp.value', 'fcp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 547.6951,\n    deprecation: {\n      replacement: 'browser.web_vital.fcp.value',\n      reason: 'This attribute is being deprecated in favor of browser.web_vital.fcp.value',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.fcp.value'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'file.path': {\n    brief: 'Path to the file.',\n    type: 'string',\n    keys: ['file.path'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'File paths can contain end-user paths (e.g. from stack traces) that may be sensitive.',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/home/user/example.txt',\n    changelog: [{ version: '0.17.0', prs: [458], description: 'Added file.path attribute' }],\n  },\n  'file.size': {\n    brief: 'File size in bytes.',\n    type: 'integer',\n    keys: ['file.size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 1024,\n    changelog: [{ version: '0.17.0', prs: [458], description: 'Added file.size attribute' }],\n  },\n  'flag.evaluation.<key>': {\n    brief:\n      'An instance of a feature flag evaluation. The value of this attribute is the boolean representing the evaluation result. The <key> suffix is the name of the feature flag.',\n    type: 'boolean',\n    keys: ['flag.evaluation.<key>'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: 'flag.evaluation.is_new_ui=true',\n    changelog: [{ version: '0.1.0', prs: [103] }],\n  },\n  fp: {\n    brief: 'The time it takes for the browser to render the first pixel on the screen',\n    type: 'double',\n    keys: ['browser.web_vital.fp.value', 'fp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 477.1926,\n    deprecation: {\n      replacement: 'browser.web_vital.fp.value',\n      reason: 'This attribute is being deprecated in favor of browser.web_vital.fp.value',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.fp.value'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'frames.delay': {\n    brief:\n      'The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).',\n    type: 'integer',\n    keys: ['app.vitals.frames.delay.value', 'frames.delay', 'mobile.frames_delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5,\n    deprecation: {\n      replacement: 'app.vitals.frames.delay.value',\n      reason:\n        'Replaced by app.vitals.frames.delay.value to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.delay.value'],\n    changelog: [\n      { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.delay.value' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n    searchAlias: {\n      name: 'mobile.frames_delay',\n      type: 'second',\n    },\n  },\n  'frames.frozen': {\n    brief: 'The number of frozen frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.frozen.count', 'frames.frozen', 'mobile.frozen_frames', 'sentry.frames.frozen'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 3,\n    deprecation: {\n      replacement: 'app.vitals.frames.frozen.count',\n      reason:\n        'Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.frozen.count', 'sentry.frames.frozen'],\n    changelog: [\n      { version: '0.19.0', prs: [500], description: 'Added sentry.frames.frozen as an alias' },\n      { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.frozen.count' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n    searchAlias: {\n      name: 'mobile.frozen_frames',\n    },\n  },\n  frames_frozen_rate: {\n    brief:\n      'The rate of frozen frames, or `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.frames.frozen.rate', 'frames_frozen_rate'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'app.vitals.frames.frozen.rate',\n      reason:\n        'Replaced by app.vitals.frames.frozen.rate to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.frozen.rate'],\n    changelog: [\n      { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.frames.frozen.rate' },\n      { version: '0.7.0', prs: [362], description: 'Added frames_frozen_rate attribute' },\n    ],\n  },\n  'frames.slow': {\n    brief: 'The number of slow frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.slow.count', 'frames.slow', 'mobile.slow_frames', 'sentry.frames.slow'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    deprecation: {\n      replacement: 'app.vitals.frames.slow.count',\n      reason:\n        'Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.slow.count', 'sentry.frames.slow'],\n    changelog: [\n      { version: '0.19.0', prs: [500], description: 'Added sentry.frames.slow as an alias' },\n      { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.slow.count' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n    searchAlias: {\n      name: 'mobile.slow_frames',\n    },\n  },\n  frames_slow_rate: {\n    brief:\n      'The rate of slow frames, or `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.frames.slow.rate', 'frames_slow_rate'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'app.vitals.frames.slow.rate',\n      reason:\n        'Replaced by app.vitals.frames.slow.rate to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.slow.rate'],\n    changelog: [\n      { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.frames.slow.rate' },\n      { version: '0.7.0', prs: [362], description: 'Added frames_slow_rate attribute' },\n    ],\n  },\n  'frames.total': {\n    brief: 'The number of total frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.total.count', 'frames.total', 'mobile.total_frames', 'sentry.frames.total'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 60,\n    deprecation: {\n      replacement: 'app.vitals.frames.total.count',\n      reason:\n        'Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.total.count', 'sentry.frames.total'],\n    changelog: [\n      { version: '0.19.0', prs: [500], description: 'Added sentry.frames.total as an alias' },\n      { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.total.count' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n    searchAlias: {\n      name: 'mobile.total_frames',\n    },\n  },\n  fs_error: {\n    brief: 'The error message of a file system error.',\n    type: 'string',\n    keys: ['fs_error'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'ENOENT: no such file or directory',\n    deprecation: {\n      replacement: 'error.type',\n      reason:\n        'This attribute is not part of the OpenTelemetry specification and error.type fits much better. The value changes from the full error message to the syscall error code, so the old value cannot be copied over.',\n    },\n    changelog: [\n      {\n        version: '0.23.0',\n        prs: [638],\n        description: 'Remove unnecessary transformation and change deprecation status to null.',\n      },\n      { version: '0.22.0', prs: [589], description: 'Transform fs_error into error.type' },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'gcp.function.context.event_id': {\n    brief: 'The event ID from the legacy GCP Cloud Function context (1st gen)',\n    type: 'string',\n    keys: ['gcp.function.context.event_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1234567890',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.event_id attribute' }],\n  },\n  'gcp.function.context.event_type': {\n    brief: 'The type of the GCP Cloud Function event',\n    type: 'string',\n    keys: ['gcp.function.context.event_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'google.pubsub.topic.publish',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.event_type attribute' }],\n  },\n  'gcp.function.context.id': {\n    brief: 'The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)',\n    type: 'string',\n    keys: ['gcp.function.context.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1234567890',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.id attribute' }],\n  },\n  'gcp.function.context.resource': {\n    brief: 'The resource that triggered the GCP Cloud Function event',\n    type: 'string',\n    keys: ['gcp.function.context.resource'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'projects/my-project/topics/my-topic',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.resource attribute' }],\n  },\n  'gcp.function.context.source': {\n    brief: 'The source of the GCP Cloud Function event',\n    type: 'string',\n    keys: ['gcp.function.context.source'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '//pubsub.googleapis.com/projects/my-project/topics/my-topic',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.source attribute' }],\n  },\n  'gcp.function.context.specversion': {\n    brief: 'The CloudEvents specification version of the GCP Cloud Function event',\n    type: 'string',\n    keys: ['gcp.function.context.specversion'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1.0',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.specversion attribute' }],\n  },\n  'gcp.function.context.time': {\n    brief: 'The timestamp of the GCP Cloud Function event',\n    type: 'string',\n    keys: ['gcp.function.context.time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '2024-01-01T00:00:00.000Z',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.time attribute' }],\n  },\n  'gcp.function.context.timestamp': {\n    brief: 'The legacy timestamp of the GCP Cloud Function event',\n    type: 'string',\n    keys: ['gcp.function.context.timestamp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '2024-01-01T00:00:00.000Z',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.timestamp attribute' }],\n  },\n  'gcp.function.context.type': {\n    brief: 'The type of the GCP Cloud Function event context',\n    type: 'string',\n    keys: ['gcp.function.context.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'cloud_functions.context',\n    changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.type attribute' }],\n  },\n  'gcp.project.id': {\n    brief: 'The ID of the project in GCP that this resource is associated with',\n    type: 'string',\n    keys: ['gcp.project.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'my-project-123',\n    changelog: [{ version: '0.11.0', prs: [403] }],\n  },\n  gcp_region: {\n    brief: 'The geographical region the GCP resource is running',\n    type: 'string',\n    keys: ['cloud.region', 'aws_region', 'gcp_region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'us-east-1',\n    examples: ['us-east-1'],\n    deprecation: {\n      replacement: 'cloud.region',\n      status: 'backfill',\n    },\n    aliases: ['cloud.region', 'aws_region'],\n    changelog: [{ version: '0.19.0', prs: [535], description: 'Added gcp_region attribute' }],\n  },\n  'gen_ai.agent.name': {\n    brief: 'The name of the agent being used.',\n    type: 'string',\n    keys: ['gen_ai.agent.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'ResearchAssistant',\n    changelog: [{ version: '0.1.0', prs: [62, 127] }],\n  },\n  'gen_ai.context.utilization': {\n    brief: 'The fraction of the model context window utilized by this generation.',\n    type: 'double',\n    keys: ['gen_ai.context.utilization'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.75,\n    changelog: [{ version: '0.5.0', prs: [315], description: 'Added gen_ai.context.utilization attribute' }],\n  },\n  'gen_ai.context.window_size': {\n    brief: 'The maximum context window size supported by the model for this generation.',\n    type: 'integer',\n    keys: ['gen_ai.context.window_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 128000,\n    changelog: [{ version: '0.5.0', prs: [315], description: 'Added gen_ai.context.window_size attribute' }],\n  },\n  'gen_ai.conversation.id': {\n    brief:\n      'The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.',\n    type: 'string',\n    keys: ['gen_ai.conversation.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'conv_5j66UpCpwteGg4YSxUnt7lPY',\n    changelog: [{ version: '0.4.0', prs: [250] }],\n  },\n  'gen_ai.cost.cache_creation.input_tokens': {\n    brief: 'The cost of input tokens written to cache in USD.',\n    type: 'double',\n    keys: ['gen_ai.cost.cache_creation.input_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12.34,\n    changelog: [{ version: '0.16.0', description: 'Added gen_ai.cost.cache_creation.input_tokens attribute' }],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      \"Despite the name 'cost.cache_creation.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_creation.input_tokens.\",\n      'This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens — it is already included.',\n    ],\n  },\n  'gen_ai.cost.cache_read.input_tokens': {\n    brief: 'The cost of cached input tokens in USD.',\n    type: 'double',\n    keys: ['gen_ai.cost.cache_read.input_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12.34,\n    changelog: [{ version: '0.16.0', description: 'Added gen_ai.cost.cache_read.input_tokens attribute' }],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      \"Despite the name 'cost.cache_read.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_read.input_tokens.\",\n      'This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens — it is already included.',\n    ],\n  },\n  'gen_ai.cost.input_tokens': {\n    brief: 'The total cost of all input tokens in USD (includes cached and cache creation tokens).',\n    type: 'double',\n    keys: ['gen_ai.cost.input_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 123.45,\n    changelog: [\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [112] },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      \"Despite the name 'cost.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.input_tokens.\",\n      'This is the total cost of all input tokens, including cached and cache creation tokens at their respective rates. For the cached portion, see gen_ai.cost.cache_read.input_tokens. For the cache creation portion, see gen_ai.cost.cache_creation.input_tokens.',\n    ],\n  },\n  'gen_ai.cost.output_tokens': {\n    brief: 'The total cost of all output tokens in USD (includes reasoning tokens).',\n    type: 'double',\n    keys: ['gen_ai.cost.output_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 123.45,\n    changelog: [\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [112] },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      \"Despite the name 'cost.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.output_tokens.\",\n      'This is the total cost of all output tokens, including reasoning tokens at their respective rate. For the reasoning portion, see gen_ai.cost.reasoning.output_tokens.',\n    ],\n  },\n  'gen_ai.cost.reasoning.output_tokens': {\n    brief: 'The cost of reasoning output tokens in USD.',\n    type: 'double',\n    keys: ['gen_ai.cost.reasoning.output_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12.34,\n    changelog: [{ version: '0.16.0', description: 'Added gen_ai.cost.reasoning.output_tokens attribute' }],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      \"Despite the name 'cost.reasoning.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.reasoning.output_tokens.\",\n      'This is a subset of gen_ai.cost.output_tokens, not an independent cost. Do not sum this with gen_ai.cost.output_tokens — it is already included.',\n    ],\n  },\n  'gen_ai.cost.total_tokens': {\n    brief: 'The total cost for the tokens used.',\n    type: 'double',\n    keys: ['gen_ai.cost.total_tokens', 'ai.total_cost'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12.34,\n    aliases: ['ai.total_cost'],\n    changelog: [\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.5.0', prs: [264] },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [126] },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      \"Despite the name 'cost.total_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.total_tokens.\",\n    ],\n  },\n  'gen_ai.embeddings.input': {\n    brief: 'The input to the embeddings model.',\n    type: 'string',\n    keys: ['gen_ai.embeddings.input'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: \"What's the weather in Paris?\",\n    changelog: [{ version: '0.3.1', prs: [195] }],\n  },\n  'gen_ai.function_id': {\n    brief:\n      'Framework-specific tracing label for the execution of a function or other unit of execution in a generative AI system.',\n    type: 'string',\n    keys: ['gen_ai.function_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'my-awesome-function',\n    changelog: [{ version: '0.5.0', prs: [308], description: 'Added gen_ai.function_id attribute' }],\n  },\n  'gen_ai.input.messages': {\n    brief:\n      'The messages passed to the model. It has to be a stringified version of an array of objects in the format `{role: \"...\", parts: [...]}`. The `role` must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. Each part is an object with a `type`, such as `{type: \"text\", content: \"...\"}`. Other part types include `\"reasoning\"`, `\"tool_call\"`, and `\"tool_call_response\"`. The legacy format `{role, content}` is also accepted. The first example shows this shape. Some operations use a different shape. See the additional context.',\n    type: 'string',\n    keys: [\n      'gen_ai.input.messages',\n      'ai.input_messages',\n      'ai.prompt',\n      'ai.prompt.messages',\n      'ai.texts',\n      'gen_ai.prompt',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      '[{\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"Weather in Paris?\"}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_VSPygqKTWdrhaFErNvMV18Yl\", \"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]}, {\"role\": \"tool\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_VSPygqKTWdrhaFErNvMV18Yl\", \"response\": \"rainy, 57°F\"}]}]',\n    examples: [\n      '[{\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"Weather in Paris?\"}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_VSPygqKTWdrhaFErNvMV18Yl\", \"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]}, {\"role\": \"tool\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_VSPygqKTWdrhaFErNvMV18Yl\", \"response\": \"rainy, 57°F\"}]}]',\n      '[{\"state\": \"I cannot log in, and I also want a refund for last month.\", \"questions\": {\"authIssue\": {\"type\": \"noul\", \"instructions\": \"Is there a login problem?\"}, \"department\": {\"type\": \"choice\", \"instructions\": \"Which team should handle this?\", \"criteria\": {\"billing\": \"Charges and refunds\", \"technical\": \"Bugs and outages\"}}}}]',\n      '[{\"state\": \"Invoice INV-2291 from Northwind Supply, issued 2026-09-02, net 30. 4 pallets at $250.00 each, shipping $80.00. Contact: Dana Ruiz, Priya Shah.\", \"fields\": {\"invoice_number\": {\"type\": \"text\"}, \"due_date\": {\"type\": \"date\", \"instructions\": \"Issue date plus the net payment days\"}, \"total\": {\"type\": \"number\", \"decimals\": 2, \"unit\": \"USD\", \"instructions\": \"Amount due including shipping\"}, \"contacts\": {\"type\": \"list\", \"items\": \"text\"}, \"po_number\": {\"type\": \"text\", \"instructions\": \"Purchase order number\"}, \"days_to_pay\": {\"type\": \"estimate\", \"min\": 0, \"max\": 120, \"step\": 1, \"instructions\": \"Days after issue until this invoice is paid\"}}}]',\n    ],\n    aliases: ['ai.texts', 'ai.prompt.messages', 'gen_ai.prompt', 'ai.prompt'],\n    changelog: [\n      {\n        version: '0.28.0',\n        prs: [728],\n        description:\n          'Describe the extraction message shape for gen_ai.extract and move operation-specific shapes to additional context',\n      },\n      { version: '0.26.0', prs: [650], description: 'Describe the evaluation message shape for gen_ai.evaluate' },\n      { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n      { version: '0.5.0', prs: [264] },\n      { version: '0.4.0', prs: [221] },\n    ],\n    additionalContext: [\n      'For `gen_ai.decide` operations, the array holds one object `{state: ..., questions: {...}}`. `state` is the evaluated state. `questions` holds the questions keyed by name, as the caller passed them. Replace binary data in `state`, including `data:` URLs, with the string `\"[Blob substitute]\"`. The second example shows this shape.',\n      'For `gen_ai.extract` operations, the array holds one object `{state?: string, fields: {<name>: <field spec>}, images?: string[], reference_date?: string, options?: {...}}`. This object is the request body as the caller passed it, without `model`. Do not change the values, and leave out the keys that the caller did not set. Do not record the image data. Replace each image with the string `\"[Blob substitute]\"`. `state` is the text that the model reads. `fields` holds the field specs keyed by field name. Set the model in `gen_ai.request.model`. The third example shows this shape.',\n    ],\n  },\n  'gen_ai.memory.query.text': {\n    brief:\n      \"The search query used to retrieve memories. Only applicable to 'search_memory'. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information.\",\n    type: 'string',\n    keys: ['gen_ai.memory.query.text'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'user dietary preferences',\n    examples: ['user dietary preferences', 'past flight bookings'],\n    changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.query.text attribute' }],\n  },\n  'gen_ai.memory.records': {\n    brief:\n      'The memory records stored or retrieved in a memory operation. Stringified JSON array; each element follows the OTel MemoryRecord schema: {content (required), id, metadata, score}. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information including user/PII data.',\n    type: 'string',\n    keys: ['gen_ai.memory.records'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      '[{\"content\": \"User prefers dark mode\", \"id\": \"mem_123\", \"score\": 0.95}, {\"content\": {\"preference\": \"vegetarian meals\", \"confidence\": 0.9}, \"metadata\": {\"source\": \"profile\"}}]',\n    examples: [\n      '[{\"content\": \"User prefers dark mode\", \"id\": \"mem_123\", \"score\": 0.95}, {\"content\": {\"preference\": \"vegetarian meals\", \"confidence\": 0.9}, \"metadata\": {\"source\": \"profile\"}}]',\n    ],\n    changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.records attribute' }],\n  },\n  'gen_ai.memory.record.count': {\n    brief:\n      \"The number of memory records relevant to the operation. For 'search_memory' this is the number returned; for 'create_memory', 'update_memory', 'upsert_memory' and 'delete_memory' it is the number the operation attempted to create, modify, create-or-update, or delete respectively.\",\n    type: 'integer',\n    keys: ['gen_ai.memory.record.count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 3,\n    examples: [3],\n    changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.record.count attribute' }],\n  },\n  'gen_ai.memory.record.id': {\n    brief:\n      \"The unique identifier of the memory record. Set when the operation applies to a specific memory record. For 'delete_memory', its absence may indicate the operation intends to delete all memory records in the store.\",\n    type: 'string',\n    keys: ['gen_ai.memory.record.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'mem_5j66UpCpwteGg4YSxUnt7lPY',\n    examples: ['mem_5j66UpCpwteGg4YSxUnt7lPY'],\n    changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.record.id attribute' }],\n  },\n  'gen_ai.memory.store.id': {\n    brief:\n      'The unique identifier of the memory store the operation targets. What this maps to is implementation-specific (e.g. a collection, namespace, or vector index) and SHOULD be documented per integration.',\n    type: 'string',\n    keys: ['gen_ai.memory.store.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'ms_abc123',\n    examples: ['ms_abc123', 'user-preferences-store', 'seer-knowledge'],\n    changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.store.id attribute' }],\n  },\n  'gen_ai.operation.name': {\n    brief: 'The name of the operation being performed.',\n    type: 'string',\n    keys: ['gen_ai.operation.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'chat',\n    changelog: [\n      { version: '0.28.0', prs: [728], description: \"Added 'extract' to the well-known values\" },\n      {\n        version: '0.27.0',\n        prs: [653, 680],\n        description:\n          \"Added memory operation values, 'evaluate', and 'decide' to the well-known values; deprecated 'evaluate' in favor of 'decide'\",\n      },\n      { version: '0.4.0', prs: [225] },\n      { version: '0.1.0', prs: [62, 127] },\n    ],\n  },\n  'gen_ai.operation.type': {\n    brief:\n      'The type of AI operation. Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI',\n    type: 'string',\n    keys: ['gen_ai.operation.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'tool',\n    changelog: [\n      { version: '0.27.0', prs: [653], description: \"Added 'memory' value\" },\n      { version: '0.4.0', prs: [257] },\n      { version: '0.1.0', prs: [113, 127] },\n    ],\n  },\n  'gen_ai.output.messages': {\n    brief:\n      \"The model's response messages. It has to be a stringified version of an array of message objects, which can include text responses and tool calls. The first example shows this shape. Some operations use a different shape. See the additional context.\",\n    type: 'string',\n    keys: ['gen_ai.output.messages', 'ai.response.text', 'ai.response.toolCalls', 'ai.responses', 'ai.tool_calls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      '[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"The weather in Paris is currently rainy with a temperature of 57°F.\"}]}]',\n    examples: [\n      '[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"The weather in Paris is currently rainy with a temperature of 57°F.\"}]}]',\n      '[{\"answers\": {\"authIssue\": {\"type\": \"noul\", \"noul\": 0.98}, \"department\": {\"type\": \"choice\", \"choice\": \"billing\", \"confidence\": 0.28, \"probabilities\": {\"billing\": 0.64, \"technical\": 0.36}}}}]',\n      '[{\"answers\": {\"invoice_number\": {\"type\": \"text\", \"p_null\": 3.8e-10, \"span\": [8, 16], \"guess\": \"INV-2291\", \"confidence\": 1, \"value\": \"INV-2291\"}, \"due_date\": {\"type\": \"date\", \"p_null\": 1.9e-08, \"guess\": \"2026-10-02\", \"confidence\": 0.9999, \"value\": \"2026-10-02\"}, \"total\": {\"type\": \"number\", \"p_null\": 2.3e-08, \"guess\": 1080, \"confidence\": 0.9999, \"value\": 1080}, \"contacts\": {\"type\": \"list\", \"value\": [\"Dana Ruiz\", \"Priya Shah\"], \"spans\": [[120, 129], [131, 141]], \"confidence\": 0.9999}, \"po_number\": {\"type\": \"text\", \"p_null\": 1, \"span\": [8, 16], \"guess\": \"INV-2291\", \"confidence\": 0.9995, \"value\": null}, \"days_to_pay\": {\"type\": \"estimate\", \"value\": 30, \"mean\": 29.535, \"median\": 30, \"p10\": 21, \"p90\": 38, \"p_below\": 5.9e-06, \"p_above\": 1.2e-05}}, \"truncated\": false}]',\n    ],\n    aliases: ['ai.response.toolCalls', 'ai.response.text'],\n    changelog: [\n      {\n        version: '0.28.0',\n        prs: [728],\n        description:\n          'Describe the extraction message shape for gen_ai.extract and move operation-specific shapes to additional context',\n      },\n      { version: '0.26.0', prs: [650], description: 'Describe the evaluation message shape for gen_ai.evaluate' },\n      { version: '0.4.0', prs: [221] },\n    ],\n    additionalContext: [\n      'For `gen_ai.decide` operations, the array holds one object `{answers: {...}}`. `answers` holds the answers keyed by question name, as the provider returned them. The second example shows this shape.',\n      'For `gen_ai.extract` operations, the array holds one object `{answers: {<name>: <answer>}, truncated: boolean, state_text?: string}`. This object is the response body as the provider returned it, without `model` and `usage`. Do not change the values. `answers` holds one answer for each field in the input, keyed by field name. A field that the model cannot determine has a `value` of `null`. `span` and `spans` are `[start, end]` character offsets into `state` (or into `state_text`, if the provider returns it), and `end` is exclusive. Set the model in `gen_ai.response.model` and the token counts in `gen_ai.usage.input_tokens` and `gen_ai.usage.output_tokens`. The third example shows this shape.',\n    ],\n  },\n  'gen_ai.pipeline.name': {\n    brief: 'Name of the AI pipeline or chain being executed.',\n    type: 'string',\n    keys: ['gen_ai.pipeline.name', 'ai.pipeline.name', 'langchain.chain.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Autofix Pipeline',\n    aliases: ['ai.pipeline.name', 'langchain.chain.name'],\n    changelog: [\n      { version: '0.22.0', prs: [599], description: 'Added langchain.chain.name as an alias' },\n      { version: '0.1.0', prs: [76, 127] },\n    ],\n  },\n  'gen_ai.prompt': {\n    brief: 'The input messages sent to the model',\n    type: 'string',\n    keys: [\n      'gen_ai.input.messages',\n      'ai.input_messages',\n      'ai.prompt',\n      'ai.prompt.messages',\n      'ai.texts',\n      'gen_ai.prompt',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n    deprecation: {\n      replacement: 'gen_ai.input.messages',\n      reason: 'Deprecated from OTEL, use gen_ai.input.messages with the new format instead.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.input.messages', 'ai.texts', 'ai.prompt.messages', 'ai.prompt'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n      { version: '0.1.0', prs: [74, 108, 119] },\n      { version: '0.0.0' },\n    ],\n  },\n  'gen_ai.prompt.name': {\n    brief: 'The name of the prompt that uniquely identifies it.',\n    type: 'string',\n    keys: ['gen_ai.prompt.name', 'mcp.prompt.name'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Prompt names may reveal user behavior patterns or sensitive operations',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'summarize_text',\n    aliases: ['mcp.prompt.name'],\n    changelog: [{ version: '0.12.0', prs: [420], description: 'Added gen_ai.prompt.name attribute' }],\n  },\n  'gen_ai.prompt.variable.<key>': {\n    brief:\n      'Variables supplied to the prompt template. The <key> is the variable name, and the value is the variable value serialized as a string.',\n    type: 'string',\n    keys: ['gen_ai.prompt.variable.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Prompt variables contain user input and may include sensitive information',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"gen_ai.prompt.variable.language='French'\",\n    examples: [\"gen_ai.prompt.variable.language='French'\", \"gen_ai.prompt.variable.topic='weather'\"],\n    changelog: [\n      { version: '0.27.0', prs: [671], description: 'Added the OpenTelemetry convention for prompt variables' },\n    ],\n    additionalContext: [\n      'Capture only when the user explicitly opts in to recording prompt inputs. In MCP, these values are the arguments supplied in prompts/get requests.',\n    ],\n  },\n  'gen_ai.provider.name': {\n    brief: 'The Generative AI provider as identified by the client or server instrumentation.',\n    type: 'string',\n    keys: ['gen_ai.provider.name', 'ai.model.provider', 'gen_ai.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'openai',\n    aliases: ['ai.model.provider', 'gen_ai.system'],\n    changelog: [{ version: '0.4.0', prs: [253] }],\n  },\n  'gen_ai.request.available_tools': {\n    brief: 'The available tools for the model. It has to be a stringified version of an array of objects.',\n    type: 'string',\n    keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example:\n      '[{\"name\": \"get_weather\", \"description\": \"Get the weather for a given location\"}, {\"name\": \"get_news\", \"description\": \"Get the news for a given topic\"}]',\n    deprecation: {\n      replacement: 'gen_ai.tool.definitions',\n      status: 'normalize',\n    },\n    aliases: ['gen_ai.tool.definitions'],\n    changelog: [\n      { version: '0.22.0', prs: [595], description: 'Added gen_ai.tool.definitions as an alias' },\n      { version: '0.4.0', prs: [221] },\n      { version: '0.1.0', prs: [63, 127] },\n    ],\n  },\n  'gen_ai.request.frequency_penalty': {\n    brief:\n      'Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.',\n    type: 'double',\n    keys: ['gen_ai.request.frequency_penalty', 'ai.frequency_penalty'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 0.5,\n    aliases: ['ai.frequency_penalty'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [57] },\n    ],\n  },\n  'gen_ai.request.max_tokens': {\n    brief: 'The maximum number of tokens to generate in the response.',\n    type: 'integer',\n    keys: ['gen_ai.request.max_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 2048,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [62] },\n    ],\n  },\n  'gen_ai.request.messages': {\n    brief:\n      'The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. For messages of the role `\"tool\"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: \"text\", text:\"...\"}`.',\n    type: 'string',\n    keys: ['gen_ai.request.messages'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example:\n      '[{\"role\": \"system\", \"content\": \"Generate a random number.\"}, {\"role\": \"user\", \"content\": [{\"text\": \"Generate a random number between 0 and 10.\", \"type\": \"text\"}]}, {\"role\": \"tool\", \"content\": {\"toolCallId\": \"1\", \"toolName\": \"Weather\", \"output\": \"rainy\"}}]',\n    deprecation: {\n      replacement: 'gen_ai.input.messages',\n      status: 'transform',\n      transformation: 'gen_ai_request_messages_to_input_messages',\n    },\n    aliases: ['ai.input_messages'],\n    changelog: [\n      { version: '0.4.0', prs: [221] },\n      { version: '0.1.0', prs: [63, 74, 108, 119, 122] },\n    ],\n  },\n  'gen_ai.request.model': {\n    brief: 'The model identifier being used for the request.',\n    type: 'string',\n    keys: ['gen_ai.request.model', 'ai.model.id', 'ai.model_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'gpt-4-turbo-preview',\n    aliases: ['ai.model_id', 'ai.model.id'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.model.id as an alias' },\n      { version: '0.1.0', prs: [62, 127] },\n    ],\n  },\n  'gen_ai.request.presence_penalty': {\n    brief:\n      'Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.',\n    type: 'double',\n    keys: ['gen_ai.request.presence_penalty', 'ai.presence_penalty'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 0.5,\n    aliases: ['ai.presence_penalty'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [57] },\n    ],\n  },\n  'gen_ai.request.reasoning.level': {\n    brief: 'The reasoning or thinking effort level requested for a GenAI model.',\n    type: 'string',\n    keys: ['gen_ai.request.reasoning.level'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'high',\n    changelog: [{ version: '0.17.0', prs: [502], description: 'Added gen_ai.request.reasoning.level attribute' }],\n  },\n  'gen_ai.request.schema': {\n    brief: 'The stringified JSON schema the model output must conform to.',\n    type: 'string',\n    keys: ['gen_ai.request.schema'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}',\n    examples: ['{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}'],\n    deprecation: {\n      reason:\n        'This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.',\n    },\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added gen_ai.request.schema attribute' }],\n  },\n  'gen_ai.request.seed': {\n    brief: 'The seed, ideally models given the same seed and same other parameters will produce the exact same output.',\n    type: 'string',\n    keys: ['gen_ai.request.seed', 'ai.seed'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1234567890',\n    aliases: ['ai.seed'],\n    changelog: [{ version: '0.1.0', prs: [57, 127] }],\n  },\n  'gen_ai.request.stop_sequences': {\n    brief: 'List of sequences that the model will use to stop generating further tokens.',\n    type: 'string[]',\n    keys: ['gen_ai.request.stop_sequences'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['forest', 'lived'],\n    changelog: [{ version: '0.16.0', prs: [482], description: 'Added gen_ai.request.stop_sequences attribute' }],\n  },\n  'gen_ai.request.temperature': {\n    brief:\n      'For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.',\n    type: 'double',\n    keys: ['gen_ai.request.temperature', 'ai.temperature'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 0.1,\n    aliases: ['ai.temperature'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [57] },\n    ],\n  },\n  'gen_ai.request.top_k': {\n    brief:\n      'Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).',\n    type: 'integer',\n    keys: ['gen_ai.request.top_k', 'ai.top_k'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 35,\n    aliases: ['ai.top_k'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [57] },\n    ],\n  },\n  'gen_ai.request.top_p': {\n    brief:\n      'Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).',\n    type: 'double',\n    keys: ['gen_ai.request.top_p', 'ai.top_p'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 0.7,\n    aliases: ['ai.top_p'],\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [57] },\n    ],\n  },\n  'gen_ai.response.finish_reason': {\n    brief: 'The reason why the model stopped generating (singular form).',\n    type: 'string',\n    keys: ['gen_ai.response.finish_reasons', 'ai.finish_reason', 'gen_ai.response.finish_reason'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'COMPLETE',\n    deprecation: {\n      replacement: 'gen_ai.response.finish_reasons',\n      status: 'normalize',\n    },\n    aliases: ['gen_ai.response.finish_reasons'],\n    changelog: [{ version: '0.19.0', prs: [498], description: 'Added gen_ai.response.finish_reason attribute' }],\n  },\n  'gen_ai.response.finish_reasons': {\n    brief: 'The reason why the model stopped generating.',\n    type: 'string',\n    keys: ['gen_ai.response.finish_reasons', 'ai.finish_reason', 'gen_ai.response.finish_reason'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'COMPLETE',\n    aliases: ['ai.finish_reason', 'gen_ai.response.finish_reason'],\n    changelog: [{ version: '0.1.0', prs: [57, 127] }],\n  },\n  'gen_ai.response.id': {\n    brief: 'Unique identifier for the completion.',\n    type: 'string',\n    keys: ['gen_ai.response.id', 'ai.generation_id', 'ai.response.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'gen_123abc',\n    aliases: ['ai.generation_id', 'ai.response.id'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.response.id as an alias' },\n      { version: '0.1.0', prs: [57, 127] },\n    ],\n  },\n  'gen_ai.response.model': {\n    brief: 'The vendor-specific ID of the model used.',\n    type: 'string',\n    keys: ['gen_ai.response.model', 'ai.response.model'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'gpt-4',\n    aliases: ['ai.response.model'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.response.model as an alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'gen_ai.response.object': {\n    brief: 'The type of the object returned by the model.',\n    type: 'string',\n    keys: ['gen_ai.response.object'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'chat.completion',\n    examples: ['chat.completion'],\n    deprecation: {\n      reason:\n        'This attribute is deprecated. The Sentry conventions have no replacement for the raw response object type.',\n    },\n    changelog: [{ version: '0.21.0', prs: [583], description: 'Added gen_ai.response.object attribute' }],\n  },\n  'gen_ai.response.streaming': {\n    brief: \"Whether or not the AI model call's response was streamed back asynchronously\",\n    type: 'boolean',\n    keys: ['gen_ai.response.streaming', 'ai.streaming'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    aliases: ['ai.streaming'],\n    changelog: [{ version: '0.1.0', prs: [76] }],\n  },\n  'gen_ai.response.text': {\n    brief:\n      \"The model's response text messages. It has to be a stringified version of an array of response text messages.\",\n    type: 'string',\n    keys: ['gen_ai.response.text'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example:\n      '[\"The weather in Paris is rainy and overcast, with temperatures around 57°F\", \"The weather in London is sunny and warm, with temperatures around 65°F\"]',\n    deprecation: {\n      replacement: 'gen_ai.output.messages',\n      status: 'transform',\n      transformation: 'gen_ai_response_to_output_messages',\n    },\n    changelog: [\n      { version: '0.4.0', prs: [221] },\n      { version: '0.1.0', prs: [63, 74] },\n    ],\n  },\n  'gen_ai.response.time_to_first_chunk': {\n    brief: 'Time in seconds when the first response content chunk arrived in streaming responses.',\n    type: 'double',\n    keys: ['gen_ai.response.time_to_first_chunk', 'gen_ai.response.time_to_first_token'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 0.6853435,\n    aliases: ['gen_ai.response.time_to_first_token'],\n    changelog: [{ version: '0.11.0', prs: [418], description: 'Added gen_ai.response.time_to_first_chunk attribute' }],\n  },\n  'gen_ai.response.time_to_first_token': {\n    brief: 'Time in seconds when the first response content chunk arrived in streaming responses.',\n    type: 'double',\n    keys: ['gen_ai.response.time_to_first_chunk', 'gen_ai.response.time_to_first_token'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.6853435,\n    deprecation: {\n      replacement: 'gen_ai.response.time_to_first_chunk',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.response.time_to_first_chunk'],\n    changelog: [\n      { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.response.time_to_first_chunk' },\n      { version: '0.4.0', prs: [227] },\n    ],\n  },\n  'gen_ai.response.tokens_per_second': {\n    brief: 'The total output tokens per seconds throughput',\n    type: 'double',\n    keys: ['gen_ai.response.tokens_per_second'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12345.67,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [66] },\n    ],\n  },\n  'gen_ai.response.tool_calls': {\n    brief: \"The tool calls in the model's response. It has to be a stringified version of an array of objects.\",\n    type: 'string',\n    keys: ['gen_ai.response.tool_calls'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '[{\"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]',\n    deprecation: {\n      replacement: 'gen_ai.output.messages',\n      status: 'transform',\n      transformation: 'gen_ai_response_to_output_messages',\n    },\n    changelog: [\n      { version: '0.4.0', prs: [221] },\n      { version: '0.1.0', prs: [63, 74] },\n    ],\n  },\n  'gen_ai.system': {\n    brief: 'The provider of the model.',\n    type: 'string',\n    keys: ['gen_ai.provider.name', 'ai.model.provider', 'gen_ai.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'openai',\n    deprecation: {\n      replacement: 'gen_ai.provider.name',\n      status: 'normalize',\n    },\n    aliases: ['ai.model.provider', 'gen_ai.provider.name'],\n    changelog: [\n      { version: '0.4.0', prs: [253] },\n      { version: '0.1.0', prs: [57, 127] },\n    ],\n  },\n  'gen_ai.system_instructions': {\n    brief:\n      'The system instructions passed to the model. It has to be a stringified version of an array of objects in the format `{type: \"text\", content: \"...\"}`.',\n    type: 'string',\n    keys: ['gen_ai.system_instructions', 'ai.preamble', 'gen_ai.system.message'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      '[{\"type\": \"text\", \"content\": \"You are a helpful assistant.\"}, {\"type\": \"text\", \"content\": \"Be concise and clear.\"}]',\n    aliases: ['ai.preamble'],\n    changelog: [\n      { version: '0.5.0', prs: [264] },\n      { version: '0.4.0', prs: [221] },\n    ],\n  },\n  'gen_ai.system.message': {\n    brief: 'The system instructions passed to the model.',\n    type: 'string',\n    keys: ['gen_ai.system_instructions', 'ai.preamble', 'gen_ai.system.message'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'You are a helpful assistant',\n    deprecation: {\n      replacement: 'gen_ai.system_instructions',\n      status: 'backfill',\n    },\n    changelog: [\n      { version: '0.4.0', prs: [221] },\n      { version: '0.1.0', prs: [62] },\n    ],\n  },\n  'gen_ai.tool.call.arguments': {\n    brief: 'The arguments of the tool call. It has to be a stringified version of the arguments to the tool.',\n    type: 'string',\n    keys: ['gen_ai.tool.call.arguments', 'ai.toolCall.args', 'gen_ai.tool.input'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '{\"location\": \"Paris\"}',\n    aliases: ['gen_ai.tool.input', 'ai.toolCall.args'],\n    changelog: [\n      { version: '0.5.0', prs: [265] },\n      { version: '0.4.0', prs: [221] },\n    ],\n  },\n  'gen_ai.tool.call.result': {\n    brief: 'The result of the tool call. It has to be a stringified version of the result of the tool.',\n    type: 'string',\n    keys: [\n      'gen_ai.tool.call.result',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n      'gen_ai.tool.message',\n      'gen_ai.tool.output',\n      'mcp.tool.result.content',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'rainy, 57°F',\n    aliases: [\n      'gen_ai.tool.output',\n      'gen_ai.tool.message',\n      'mcp.tool.result.content',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n    ],\n    changelog: [\n      { version: '0.5.0', prs: [265] },\n      { version: '0.4.0', prs: [221] },\n    ],\n  },\n  'gen_ai.tool.call.result.size': {\n    brief: 'The UTF-8 byte length of the serialized tool call result, measured before truncation.',\n    type: 'integer',\n    keys: ['gen_ai.tool.call.result.size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0,\n    examples: [0, 1024],\n    changelog: [{ version: '0.28.0', prs: [679], description: 'Added gen_ai.tool.call.result.size attribute' }],\n    additionalContext: [\n      'The value is a non-negative byte count, not a token count, character count, or in-memory object size. It excludes span and envelope overhead.',\n      'Use 0 for an empty string result. Omit this attribute when the tool result is unavailable; do not treat missing output as zero.',\n    ],\n    searchAlias: {\n      name: 'gen_ai.tool.call.result.size',\n      type: 'byte',\n    },\n  },\n  'gen_ai.tool.definitions': {\n    brief: 'The list of source system tool definitions available to the GenAI agent or model.',\n    type: 'string',\n    keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      '[{\"type\": \"function\", \"name\": \"get_current_weather\", \"description\": \"Get the current weather in a given location\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}}, \"required\": [\"location\", \"unit\"]}}]',\n    aliases: ['gen_ai.request.available_tools'],\n    changelog: [\n      { version: '0.22.0', prs: [595], description: 'Added gen_ai.request.available_tools as an alias' },\n      { version: '0.4.0', prs: [221] },\n    ],\n  },\n  'gen_ai.tool.description': {\n    brief: 'The description of the tool being used.',\n    type: 'string',\n    keys: ['gen_ai.tool.description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Searches the web for current information about a topic',\n    changelog: [{ version: '0.1.0', prs: [62, 127] }],\n  },\n  'gen_ai.tool.input': {\n    brief: 'The input of the tool being used. It has to be a stringified version of the input to the tool.',\n    type: 'string',\n    keys: ['gen_ai.tool.call.arguments', 'ai.toolCall.args', 'gen_ai.tool.input'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"location\": \"Paris\"}',\n    deprecation: {\n      replacement: 'gen_ai.tool.call.arguments',\n      status: 'normalize',\n    },\n    aliases: ['gen_ai.tool.call.arguments', 'ai.toolCall.args'],\n    changelog: [\n      { version: '0.5.0', prs: [265] },\n      { version: '0.1.0', prs: [63, 74] },\n    ],\n  },\n  'gen_ai.tool.message': {\n    brief: 'The response from a tool or function call passed to the model.',\n    type: 'string',\n    keys: [\n      'gen_ai.tool.call.result',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n      'gen_ai.tool.message',\n      'gen_ai.tool.output',\n      'mcp.tool.result.content',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'rainy, 57°F',\n    deprecation: {\n      replacement: 'gen_ai.tool.call.result',\n      status: 'normalize',\n    },\n    aliases: [\n      'gen_ai.tool.call.result',\n      'gen_ai.tool.output',\n      'mcp.tool.result.content',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n    ],\n    changelog: [\n      { version: '0.5.0', prs: [265] },\n      { version: '0.1.0', prs: [62] },\n    ],\n  },\n  'gen_ai.tool.name': {\n    brief: 'Name of the tool utilized by the agent.',\n    type: 'string',\n    keys: ['gen_ai.tool.name', 'ai.function_call', 'mcp.tool.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Flights',\n    aliases: ['ai.function_call', 'mcp.tool.name'],\n    changelog: [{ version: '0.1.0', prs: [57, 127] }],\n  },\n  'gen_ai.tool.output': {\n    brief: 'The output of the tool being used. It has to be a stringified version of the output of the tool.',\n    type: 'string',\n    keys: [\n      'gen_ai.tool.call.result',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n      'gen_ai.tool.message',\n      'gen_ai.tool.output',\n      'mcp.tool.result.content',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'rainy, 57°F',\n    deprecation: {\n      replacement: 'gen_ai.tool.call.result',\n      status: 'normalize',\n    },\n    aliases: [\n      'gen_ai.tool.call.result',\n      'gen_ai.tool.message',\n      'mcp.tool.result.content',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n    ],\n    changelog: [\n      { version: '0.5.0', prs: [265] },\n      { version: '0.1.0', prs: [63, 74] },\n    ],\n  },\n  'gen_ai.tool.type': {\n    brief: 'The type of tool being used.',\n    type: 'string',\n    keys: ['gen_ai.tool.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'function',\n    deprecation: {\n      reason: 'The gen_ai.tool.type attribute is deprecated and should no longer be set.',\n    },\n    changelog: [{ version: '0.1.0', prs: [62, 127] }],\n  },\n  'gen_ai.usage.cache_creation.input_tokens': {\n    brief: 'The number of tokens written to the cache when processing the AI input (prompt).',\n    type: 'integer',\n    keys: [\n      'gen_ai.usage.cache_creation.input_tokens',\n      'gen_ai.usage.cache_creation_input_tokens',\n      'gen_ai.usage.input_tokens.cache_write',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 100,\n    aliases: ['gen_ai.usage.input_tokens.cache_write', 'gen_ai.usage.cache_creation_input_tokens'],\n    changelog: [\n      { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_creation_input_tokens as an alias' },\n      { version: '0.11.0', prs: [418], description: 'Added gen_ai.usage.cache_creation.input_tokens attribute' },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n    ],\n  },\n  'gen_ai.usage.cache_creation_input_tokens': {\n    brief: 'The number of tokens written to the cache when processing the AI input (prompt).',\n    type: 'integer',\n    keys: [\n      'gen_ai.usage.cache_creation.input_tokens',\n      'gen_ai.usage.cache_creation_input_tokens',\n      'gen_ai.usage.input_tokens.cache_write',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 100,\n    examples: [100],\n    deprecation: {\n      replacement: 'gen_ai.usage.cache_creation.input_tokens',\n      reason: 'This attribute is being deprecated in favor of gen_ai.usage.cache_creation.input_tokens.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.cache_creation.input_tokens', 'gen_ai.usage.input_tokens.cache_write'],\n    changelog: [\n      { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_creation_input_tokens attribute' },\n    ],\n  },\n  'gen_ai.usage.cache_read.input_tokens': {\n    brief: 'The number of cached tokens used to process the AI input (prompt).',\n    type: 'integer',\n    keys: [\n      'gen_ai.usage.cache_read.input_tokens',\n      'gen_ai.usage.cache_read_input_tokens',\n      'gen_ai.usage.input_tokens.cached',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 50,\n    aliases: ['gen_ai.usage.input_tokens.cached', 'gen_ai.usage.cache_read_input_tokens'],\n    changelog: [\n      { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_read_input_tokens as an alias' },\n      { version: '0.11.0', prs: [418], description: 'Added gen_ai.usage.cache_read.input_tokens attribute' },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      'This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens — it is already included.',\n    ],\n  },\n  'gen_ai.usage.cache_read_input_tokens': {\n    brief: 'The number of cached tokens used to process the AI input (prompt).',\n    type: 'integer',\n    keys: [\n      'gen_ai.usage.cache_read.input_tokens',\n      'gen_ai.usage.cache_read_input_tokens',\n      'gen_ai.usage.input_tokens.cached',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 50,\n    examples: [50],\n    deprecation: {\n      replacement: 'gen_ai.usage.cache_read.input_tokens',\n      reason: 'This attribute is being deprecated in favor of gen_ai.usage.cache_read.input_tokens.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.cache_read.input_tokens', 'gen_ai.usage.input_tokens.cached'],\n    changelog: [{ version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_read_input_tokens attribute' }],\n  },\n  'gen_ai.usage.completion_tokens': {\n    brief: 'The number of tokens used in the GenAI response (completion).',\n    type: 'integer',\n    keys: ['gen_ai.usage.output_tokens', 'ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 10,\n    deprecation: {\n      replacement: 'gen_ai.usage.output_tokens',\n      status: 'backfill',\n    },\n    aliases: ['ai.completion_tokens.used', 'gen_ai.usage.output_tokens'],\n    changelog: [\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n    ],\n  },\n  'gen_ai.usage.input_tokens': {\n    brief: 'The number of tokens used to process the AI input (prompt) including cached input tokens.',\n    type: 'integer',\n    keys: ['gen_ai.usage.input_tokens', 'ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 10,\n    aliases: ['ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\n    changelog: [\n      {\n        version: '0.11.0',\n        prs: [418],\n        description: 'Update additional_context to reference gen_ai.usage.cache_read.input_tokens',\n      },\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.5.0', prs: [261] },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [112] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      'This count includes cached input tokens. gen_ai.usage.cache_read.input_tokens is a subset of this value, not an independent count — do not sum them together.',\n    ],\n  },\n  'gen_ai.usage.input_tokens.cached': {\n    brief: 'The number of cached tokens used to process the AI input (prompt).',\n    type: 'integer',\n    keys: [\n      'gen_ai.usage.cache_read.input_tokens',\n      'gen_ai.usage.cache_read_input_tokens',\n      'gen_ai.usage.input_tokens.cached',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 50,\n    deprecation: {\n      replacement: 'gen_ai.usage.cache_read.input_tokens',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.cache_read.input_tokens', 'gen_ai.usage.cache_read_input_tokens'],\n    changelog: [\n      { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_read_input_tokens as an alias' },\n      { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.usage.cache_read.input_tokens' },\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [62, 112] },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      'This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens — it is already included.',\n    ],\n  },\n  'gen_ai.usage.input_tokens.cache_write': {\n    brief: 'The number of tokens written to the cache when processing the AI input (prompt).',\n    type: 'integer',\n    keys: [\n      'gen_ai.usage.cache_creation.input_tokens',\n      'gen_ai.usage.cache_creation_input_tokens',\n      'gen_ai.usage.input_tokens.cache_write',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 100,\n    deprecation: {\n      replacement: 'gen_ai.usage.cache_creation.input_tokens',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.cache_creation.input_tokens', 'gen_ai.usage.cache_creation_input_tokens'],\n    changelog: [\n      { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_creation_input_tokens as an alias' },\n      { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.usage.cache_creation.input_tokens' },\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [217, 228] },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n    ],\n  },\n  'gen_ai.usage.output_tokens': {\n    brief: 'The number of tokens used for creating the AI output (including reasoning tokens).',\n    type: 'integer',\n    keys: ['gen_ai.usage.output_tokens', 'ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 10,\n    aliases: ['ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\n    changelog: [\n      {\n        version: '0.11.0',\n        prs: [418],\n        description: 'Update additional_context to reference gen_ai.usage.reasoning.output_tokens',\n      },\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.5.0', prs: [261] },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [112] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      'This count includes reasoning tokens. gen_ai.usage.reasoning.output_tokens is a subset of this value, not an independent count — do not sum them together.',\n    ],\n  },\n  'gen_ai.usage.output_tokens.reasoning': {\n    brief: 'The number of tokens used for reasoning to create the AI output.',\n    type: 'integer',\n    keys: ['gen_ai.usage.reasoning.output_tokens', 'gen_ai.usage.output_tokens.reasoning'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 75,\n    deprecation: {\n      replacement: 'gen_ai.usage.reasoning.output_tokens',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.usage.reasoning.output_tokens'],\n    changelog: [\n      { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.usage.reasoning.output_tokens' },\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [62, 112] },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      'This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens — it is already included.',\n    ],\n  },\n  'gen_ai.usage.prompt_tokens': {\n    brief: 'The number of tokens used in the GenAI input (prompt).',\n    type: 'integer',\n    keys: ['gen_ai.usage.input_tokens', 'ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 20,\n    deprecation: {\n      replacement: 'gen_ai.usage.input_tokens',\n      status: 'backfill',\n    },\n    aliases: ['ai.prompt_tokens.used', 'gen_ai.usage.input_tokens'],\n    changelog: [\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n    ],\n  },\n  'gen_ai.usage.reasoning.output_tokens': {\n    brief: 'The number of tokens used for reasoning to create the AI output.',\n    type: 'integer',\n    keys: ['gen_ai.usage.reasoning.output_tokens', 'gen_ai.usage.output_tokens.reasoning'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 75,\n    aliases: ['gen_ai.usage.output_tokens.reasoning'],\n    changelog: [{ version: '0.11.0', prs: [418], description: 'Added gen_ai.usage.reasoning.output_tokens attribute' }],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      'This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens — it is already included.',\n    ],\n  },\n  'gen_ai.usage.total_tokens': {\n    brief: 'The total number of tokens used to process the prompt. (input tokens plus output todkens)',\n    type: 'integer',\n    keys: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used', 'ai.usage.tokens'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 20,\n    aliases: ['ai.total_tokens.used', 'ai.usage.tokens'],\n    changelog: [\n      { version: '0.21.0', prs: [583], description: 'Added ai.usage.tokens as an alias' },\n      { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [57] },\n    ],\n    additionalContext: [\n      'This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.',\n      'This is the sum of gen_ai.usage.input_tokens and gen_ai.usage.output_tokens. Do not sum this with either of them — they are already included.',\n    ],\n  },\n  'graphql.document': {\n    brief: 'The GraphQL document being executed.',\n    type: 'string',\n    keys: ['graphql.document', 'graphql.source'],\n    applyScrubbing: {\n      key: 'auto',\n      reason:\n        'The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible.',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'query findBookById { bookById(id: ?) { name } }',\n    aliases: ['graphql.source'],\n    changelog: [\n      { version: '0.21.0', prs: [584], description: 'Added graphql.source as an alias' },\n      {\n        version: '0.7.0',\n        description: 'Adds the `graphql.document` attribute to track the GraphQL document being executed.',\n      },\n    ],\n  },\n  'graphql.operation.name': {\n    brief: 'The name of the operation being executed.',\n    type: 'string',\n    keys: ['graphql.operation.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'findBookById',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'graphql.operation.type': {\n    brief: 'The type of the operation being executed.',\n    type: 'string',\n    keys: ['graphql.operation.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'query',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'graphql.processing.type': {\n    brief: 'The type of processing represented by this span.',\n    type: 'string',\n    keys: ['graphql.processing.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'parse',\n    examples: ['parse', 'validate', 'execute', 'resolve'],\n    changelog: [{ version: '0.21.0', prs: [572], description: 'Added graphql.processing.type attribute' }],\n    additionalContext: [\n      'Well-known values are request, parse, validate, variable_coercion, plan, execute, subscription_event, step_execute, resolve, dataloader_dispatch, dataloader_batch and _OTHER. Use one of these if it applies, otherwise a custom value.',\n      'Not to be confused with graphql.operation.type, which holds the GraphQL operation type (query, mutation, subscription) and only applies to spans that run an operation.',\n    ],\n  },\n  'graphql.source': {\n    brief: 'The GraphQL document being executed.',\n    type: 'string',\n    keys: ['graphql.document', 'graphql.source'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'query findBookById { bookById(id: ?) { name } }',\n    examples: ['query findBookById { bookById(id: ?) { name } }'],\n    deprecation: {\n      replacement: 'graphql.document',\n      reason:\n        'This attribute is being deprecated in favor of graphql.document, which is the OpenTelemetry name for the same value.',\n      status: 'backfill',\n    },\n    aliases: ['graphql.document'],\n    changelog: [{ version: '0.21.0', prs: [584], description: 'Added graphql.source attribute' }],\n  },\n  'grpc.error.bad_request.field_violations': {\n    brief:\n      'The individual field violations from a google.rpc.BadRequest error detail. Each entry is a JSON-encoded object with field, description, reason, and (optional) localized_message keys, mirroring google.rpc.BadRequest.FieldViolation.',\n    type: 'string[]',\n    keys: ['grpc.error.bad_request.field_violations'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: [\n      '{\"field\":\"email\",\"description\":\"must be a valid email address\",\"reason\":\"FIELD_INVALID\",\"localized_message\":{\"locale\":\"en-US\",\"message\":\"Must be a valid email address\"}}',\n    ],\n    changelog: [\n      { version: '0.17.0', prs: [460], description: 'Added grpc.error.bad_request.field_violations attribute' },\n    ],\n  },\n  'grpc.error.debug_info.detail': {\n    brief:\n      'Additional debugging information, such as a server-side stack trace, from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n    type: 'string',\n    keys: ['grpc.error.debug_info.detail'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'at com.example.Service.method(Service.java:42)',\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.debug_info.detail attribute' }],\n  },\n  'grpc.error.debug_info.stack_entries': {\n    brief:\n      'The server-side stack trace entries from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n    type: 'string[]',\n    keys: ['grpc.error.debug_info.stack_entries'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['com.example.Service.method(Service.java:42)', 'com.example.Server.handle(Server.java:100)'],\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.debug_info.stack_entries attribute' }],\n  },\n  'grpc.error.error_info.domain': {\n    brief: 'The logical grouping to which the gRPC error reason belongs, from the google.rpc.ErrorInfo error detail.',\n    type: 'string',\n    keys: ['grpc.error.error_info.domain'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'example.sentry.io',\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.error_info.domain attribute' }],\n  },\n  'grpc.error.error_info.metadata.<key>': {\n    brief:\n      'Additional structured metadata attached to a google.rpc.ErrorInfo error detail, with <key> being the metadata key name. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n    type: 'string',\n    keys: ['grpc.error.error_info.metadata.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"grpc.error.error_info.metadata.user_id='123'\",\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.error_info.metadata.<key> attribute' }],\n  },\n  'grpc.error.error_info.reason': {\n    brief:\n      'The reason for the gRPC error, as defined by the service that generated it, from the google.rpc.ErrorInfo error detail.',\n    type: 'string',\n    keys: ['grpc.error.error_info.reason'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'FIELD_INVALID',\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.error_info.reason attribute' }],\n  },\n  'grpc.error.precondition_failure.violations': {\n    brief:\n      'The individual precondition violations from a google.rpc.PreconditionFailure error detail. Each entry is a JSON-encoded object with type, subject, and description keys. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users.',\n    type: 'string[]',\n    keys: ['grpc.error.precondition_failure.violations'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['{\"type\":\"TOS\",\"subject\":\"example.com/user/123\",\"description\":\"User must accept the terms of service\"}'],\n    changelog: [\n      { version: '0.17.0', prs: [460], description: 'Added grpc.error.precondition_failure.violations attribute' },\n    ],\n  },\n  'grpc.error.quota_failure.violations': {\n    brief:\n      'The individual quota violations from a google.rpc.QuotaFailure error detail. Each entry is a JSON-encoded object with subject, description, api_service, quota_metric, quota_id, quota_dimensions, quota_value, and (optional) future_quota_value keys, mirroring google.rpc.QuotaFailure.Violation. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users.',\n    type: 'string[]',\n    keys: ['grpc.error.quota_failure.violations'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: [\n      '{\"subject\":\"clientip:127.0.0.1\",\"description\":\"Limit checks failed.\",\"api_service\":\"example.googleapis.com\",\"quota_metric\":\"example.googleapis.com/read_requests\",\"quota_id\":\"ReadRequestsPerMinutePerProject\",\"quota_dimensions\":{\"region\":\"us-central1\"},\"quota_value\":1000}',\n    ],\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.quota_failure.violations attribute' }],\n  },\n  'grpc.error.resource_info.description': {\n    brief:\n      'A description of the error that occurred while accessing the resource, from a google.rpc.ResourceInfo error detail.',\n    type: 'string',\n    keys: ['grpc.error.resource_info.description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Instance is not ready for the request.',\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.description attribute' }],\n  },\n  'grpc.error.resource_info.owner': {\n    brief:\n      'The owner of the resource being accessed (e.g. project or account owning it), from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n    type: 'string',\n    keys: ['grpc.error.resource_info.owner'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user@example.com',\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.owner attribute' }],\n  },\n  'grpc.error.resource_info.resource_name': {\n    brief:\n      'The name of the resource being accessed, from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n    type: 'string',\n    keys: ['grpc.error.resource_info.resource_name'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'projects/example/instances/example-instance',\n    changelog: [\n      { version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.resource_name attribute' },\n    ],\n  },\n  'grpc.error.resource_info.resource_type': {\n    brief: 'The type of resource being accessed, from a google.rpc.ResourceInfo error detail.',\n    type: 'string',\n    keys: ['grpc.error.resource_info.resource_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'database',\n    changelog: [\n      { version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.resource_type attribute' },\n    ],\n  },\n  'grpc.error.retry_info.retry_delay_ms': {\n    brief:\n      'How long the client should wait before retrying the gRPC call, in milliseconds, from the google.rpc.RetryInfo error detail.',\n    type: 'integer',\n    keys: ['grpc.error.retry_info.retry_delay_ms'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5000,\n    changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.retry_info.retry_delay_ms attribute' }],\n  },\n  'hapi.ext.type': {\n    brief: 'The request lifecycle extension point where the Hapi extension function runs.',\n    type: 'string',\n    keys: ['hapi.ext.type', 'server.ext.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'onRequest',\n    examples: ['onRequest', 'onPreResponse'],\n    aliases: ['server.ext.type'],\n    changelog: [{ version: '0.28.0', prs: [741], description: 'Added hapi.ext.type attribute' }],\n  },\n  'hapi.plugin.name': {\n    brief: 'The name of the Hapi plugin that registered the route.',\n    type: 'string',\n    keys: ['hapi.plugin.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'hapi-swagger',\n    examples: ['hapi-swagger'],\n    changelog: [{ version: '0.28.0', prs: [741], description: 'Added hapi.plugin.name attribute' }],\n  },\n  'hapi.type': {\n    brief: 'The type of the Hapi layer that the span describes: `router`, `plugin`, or `server.ext`.',\n    type: 'string',\n    keys: ['hapi.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'router',\n    examples: ['router', 'plugin', 'server.ext'],\n    changelog: [{ version: '0.28.0', prs: [741], description: 'Added hapi.type attribute' }],\n  },\n  hardwareConcurrency: {\n    brief: 'The number of logical CPU cores available.',\n    type: 'string',\n    keys: ['device.processor_count', 'hardwareConcurrency'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '14',\n    deprecation: {\n      replacement: 'device.processor_count',\n      reason: 'Old namespace-less attribute, to be replaced with device.processor_count for span-first future',\n      status: 'backfill',\n    },\n    aliases: ['device.processor_count'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [281, 300],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  'heroku.dyno.name': {\n    brief: 'Name of the Heroku dyno serving the request or emitting telemetry',\n    type: 'string',\n    keys: ['heroku.dyno.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'web.1',\n    examples: ['web.1', 'web-12a34bcd56-7efgh'],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.dyno.name attribute' }],\n    additionalContext: [\n      'A dyno name is distinct from the dyno ID or service.instance.id. Do not manufacture those identifiers from this value.',\n    ],\n  },\n  'heroku.error.code': {\n    brief: 'Heroku error code reported by a router or platform log',\n    type: 'string',\n    keys: ['heroku.error.code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'H12',\n    examples: ['H12', 'R14', 'L10'],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.error.code attribute' }],\n    additionalContext: ['Preserves the provider-specific code from the router code field or a platform error message.'],\n  },\n  'heroku.error.description': {\n    brief: 'Description of the Heroku error reported by a router or platform log',\n    type: 'string',\n    keys: ['heroku.error.description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Request timeout',\n    examples: ['Request timeout', 'Memory quota exceeded'],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.error.description attribute' }],\n    additionalContext: ['A router or platform error description does not imply that an exception was thrown'],\n  },\n  'heroku.logplex.drain_token': {\n    brief: 'Identifier of the Heroku log drain that delivered the log, from the Logplex-Drain-Token header',\n    type: 'string',\n    keys: ['heroku.logplex.drain_token'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'd.73ea7440-270a-435a-a0ea-adf50b4e5f5a',\n    examples: ['d.73ea7440-270a-435a-a0ea-adf50b4e5f5a'],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.logplex.drain_token attribute' }],\n  },\n  'heroku.router.connect': {\n    brief: 'Time in milliseconds the Heroku router spent establishing a connection to the dyno',\n    type: 'double',\n    keys: ['heroku.router.connect'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0,\n    examples: [0, 0.5, 6],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.router.connect attribute' }],\n  },\n  'heroku.router.request_id': {\n    brief: 'Request identifier reported by the Heroku router',\n    type: 'string',\n    keys: ['heroku.router.request_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '6903a168-b79b-ec27-03c8-b8f64d8d8792',\n    examples: ['6903a168-b79b-ec27-03c8-b8f64d8d8792'],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.router.request_id attribute' }],\n    additionalContext: [\n      'Heroku generates or accepts this identifier and forwards it to the application in the X-Request-ID header.',\n    ],\n  },\n  'heroku.router.service': {\n    brief:\n      'Time in milliseconds spent proxying data between the backend dyno and the client, as reported by the Heroku router',\n    type: 'double',\n    keys: ['heroku.router.service'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0,\n    examples: [0, 12.5, 30001],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.router.service attribute' }],\n    additionalContext: ['This measures the proxying phase, not necessarily the complete HTTP request duration.'],\n  },\n  'http.client_ip': {\n    brief:\n      'Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['client.address', 'http.client_ip'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    deprecation: {\n      replacement: 'client.address',\n      status: 'backfill',\n    },\n    aliases: ['client.address'],\n    changelog: [{ version: '0.1.0', prs: [61, 106, 127] }, { version: '0.0.0' }],\n  },\n  'http.decoded_response_content_length': {\n    brief: 'The decoded body size of the response (in bytes).',\n    type: 'integer',\n    keys: [\n      'http.response.body.decoded_size',\n      'http.decoded_response_content_length',\n      'http.response_content_length_uncompressed',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 456,\n    deprecation: {\n      replacement: 'http.response.body.decoded_size',\n      status: 'backfill',\n    },\n    aliases: ['http.response.body.decoded_size', 'http.response_content_length_uncompressed'],\n    changelog: [\n      { version: '0.21.0', prs: [574], description: 'Deprecated in favor of http.response.body.decoded_size' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n    searchAlias: {\n      name: 'http.decoded_response_content_length',\n      type: 'byte',\n    },\n  },\n  'http.flavor': {\n    brief: 'The actual version of the protocol used for network communication.',\n    type: 'string',\n    keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1.1',\n    deprecation: {\n      replacement: 'network.protocol.version',\n      status: 'backfill',\n    },\n    aliases: ['network.protocol.version', 'net.protocol.version', 'messaging.protocol_version'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version as an alias' },\n      { version: '0.1.0', prs: [61, 108, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'http.fragment': {\n    brief:\n      'The fragments present in the URI. Note that this contains the leading # character, while the `url.fragment` attribute does not.',\n    type: 'string',\n    keys: ['http.fragment'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '#details',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'http.host': {\n    brief: 'The domain name.',\n    type: 'string',\n    keys: ['http.host'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    deprecation: {\n      replacement: 'server.address',\n      reason: 'Deprecated, use one of `server.address` or `client.address`, depending on the usage',\n    },\n    aliases: [\n      'address',\n      'server.address',\n      'client.address',\n      'http.server_name',\n      'net.host.name',\n      'server_name',\n      'net.peer.name',\n    ],\n    changelog: [\n      { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n      { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n      { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n      { version: '0.1.0', prs: [61, 108, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'http.method': {\n    brief: 'The HTTP method used.',\n    type: 'string',\n    keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'GET',\n    deprecation: {\n      replacement: 'http.request.method',\n      status: 'backfill',\n    },\n    aliases: ['http.request.method', 'http.request_method', 'method'],\n    changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n  },\n  'http.query': {\n    brief:\n      'The query string present in the URL. Note that this contains the leading ? character, while the `url.query` attribute does not.',\n    type: 'string',\n    keys: ['http.query'],\n    applyScrubbing: {\n      key: 'auto',\n      reason:\n        'Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '?foo=bar&bar=baz',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'http.request.body.data': {\n    brief: 'HTTP request body data. Can be given as string or structural data of any format.',\n    type: 'string',\n    keys: ['http.request.body.data'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n    changelog: [{ version: '0.6.0', prs: [336], description: 'Added http.request.body.data attribute' }],\n  },\n  'http.request.body.decoded_size': {\n    brief: 'The decoded body size of the request (in bytes).',\n    type: 'integer',\n    keys: ['http.request.body.decoded_size', 'http.request_content_length_uncompressed'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 456,\n    aliases: ['http.request_content_length_uncompressed'],\n    changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.request.body.decoded_size attribute' }],\n    additionalContext: [\n      'This is the size after content decoding. Set it only when the decoded size is actually known, for example by measuring a decompressed request stream.',\n      'Do not derive this from the `content-length` header, which always carries the encoded size. Use `http.request.body.size` for that.',\n    ],\n  },\n  'http.request.body.size': {\n    brief: 'The encoded body size of the request (in bytes).',\n    type: 'integer',\n    keys: ['http.request.body.size', 'http.request_content_length'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 123,\n    aliases: ['http.request_content_length'],\n    changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.request.body.size attribute' }],\n    additionalContext: [\n      'This is the on-the-wire (encoded) size. The `content-length` header always carries the encoded size, so set this attribute whenever `content-length` is known, regardless of whether `content-encoding` is present.',\n    ],\n  },\n  'http.request.connection_end': {\n    brief:\n      'The UNIX timestamp representing the time immediately after the browser finishes establishing the connection to the server to retrieve the resource. The timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as TLS handshake and SOCKS authentication.',\n    type: 'double',\n    keys: ['http.request.connection_end'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.15,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.connect_start': {\n    brief:\n      'The UNIX timestamp representing the time immediately before the user agent starts establishing the connection to the server to retrieve the resource.',\n    type: 'double',\n    keys: ['http.request.connect_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.111,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request_content_length': {\n    brief: 'The encoded body size of the request (in bytes).',\n    type: 'integer',\n    keys: ['http.request.body.size', 'http.request_content_length'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 123,\n    deprecation: {\n      replacement: 'http.request.body.size',\n      status: 'backfill',\n    },\n    aliases: ['http.request.body.size'],\n    changelog: [\n      {\n        version: '0.21.0',\n        prs: [574],\n        description: 'Added http.request_content_length attribute, deprecated in favor of http.request.body.size',\n      },\n    ],\n  },\n  'http.request_content_length_uncompressed': {\n    brief: 'The decoded body size of the request (in bytes).',\n    type: 'integer',\n    keys: ['http.request.body.decoded_size', 'http.request_content_length_uncompressed'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 456,\n    deprecation: {\n      replacement: 'http.request.body.decoded_size',\n      status: 'backfill',\n    },\n    aliases: ['http.request.body.decoded_size'],\n    changelog: [\n      {\n        version: '0.21.0',\n        prs: [574],\n        description:\n          'Added http.request_content_length_uncompressed attribute, deprecated in favor of http.request.body.decoded_size',\n      },\n    ],\n  },\n  'http.request.domain_lookup_end': {\n    brief:\n      'The UNIX timestamp representing the time immediately after the browser finishes the domain-name lookup for the resource.',\n    type: 'double',\n    keys: ['http.request.domain_lookup_end'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.201,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.domain_lookup_start': {\n    brief:\n      'The UNIX timestamp representing the time immediately before the browser starts the domain name lookup for the resource.',\n    type: 'double',\n    keys: ['http.request.domain_lookup_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.322,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.duration': {\n    brief: 'The duration of a HTTP request, in milliseconds.',\n    type: 'integer',\n    keys: ['http.request.duration'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5000,\n    examples: [5000],\n    changelog: [{ version: '0.28.0', prs: [697], description: 'Added http.request.duration attribute' }],\n    additionalContext: ['This attribute is set by Relay.'],\n  },\n  'http.request.fetch_start': {\n    brief: 'The UNIX timestamp representing the time immediately before the browser starts to fetch the resource.',\n    type: 'double',\n    keys: ['http.request.fetch_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.389,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.header.<key>': {\n    brief:\n      'HTTP request headers, <key> being the lower-cased, but otherwise unchanged HTTP Header name, the value being the header values.',\n    type: 'string[]',\n    keys: ['http.request.header.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"http.request.header.custom-header=['foo', 'bar']\",\n    examples: [\"http.request.header.custom-header=['foo', 'bar']\", \"http.request.header.content-length=['123']\"],\n    changelog: [\n      { version: '0.4.0', prs: [201, 204] },\n      { version: '0.1.0', prs: [103] },\n    ],\n  },\n  'http.request.method': {\n    brief: 'The HTTP method used.',\n    type: 'string',\n    keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'GET',\n    aliases: ['method', 'http.method', 'http.request_method'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'http.request_method': {\n    brief: 'The HTTP method used.',\n    type: 'string',\n    keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GET',\n    deprecation: {\n      replacement: 'http.request.method',\n      status: 'backfill',\n    },\n    aliases: ['method', 'http.method', 'http.request.method'],\n    changelog: [{ version: '0.6.0', prs: [343], description: 'Added http.request_method attribute' }],\n  },\n  'http.request.redirect_end': {\n    brief:\n      'The UNIX timestamp representing the timestamp immediately after receiving the last byte of the response of the last redirect',\n    type: 'double',\n    keys: ['http.request.redirect_end'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829558.502,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [130, 134] },\n    ],\n  },\n  'http.request.redirect_start': {\n    brief: 'The UNIX timestamp representing the start time of the fetch which that initiates the redirect.',\n    type: 'double',\n    keys: ['http.request.redirect_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.495,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.request_start': {\n    brief:\n      'The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.',\n    type: 'double',\n    keys: ['http.request.request_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.51,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.resend_count': {\n    brief: 'The ordinal number of request resending attempt (for any reason, including redirects).',\n    type: 'integer',\n    keys: ['http.request.resend_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'http.request.response_end': {\n    brief:\n      'The UNIX timestamp representing the time immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.',\n    type: 'double',\n    keys: ['http.request.response_end'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.89,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.response_start': {\n    brief:\n      'The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.',\n    type: 'double',\n    keys: ['http.request.response_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.7,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.same_origin': {\n    brief: \"Indicates that a URL has the same origin as the current page's origin in the browser.\",\n    type: 'boolean',\n    keys: ['http.request.same_origin', 'url.same_origin'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    aliases: ['url.same_origin'],\n    changelog: [{ version: '0.16.0', prs: [456], description: 'Added http.request.same_origin attribute' }],\n  },\n  'http.request.secure_connection_start': {\n    brief:\n      'The UNIX timestamp representing the time immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, the property returns zero.',\n    type: 'double',\n    keys: ['http.request.secure_connection_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829555.73,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n  },\n  'http.request.time_to_first_byte': {\n    brief:\n      \"The time in seconds from the browser's timeorigin to when the first byte of the request's response was received. See https://web.dev/articles/ttfb#measure-resource-requests\",\n    type: 'double',\n    keys: ['http.request.time_to_first_byte'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1.032,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [131] },\n    ],\n  },\n  'http.request.worker_start': {\n    brief:\n      'The UNIX timestamp representing the timestamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running.',\n    type: 'double',\n    keys: ['http.request.worker_start'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732829553.68,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [130, 134] },\n    ],\n  },\n  'http.response.body.decoded_size': {\n    brief: 'The decoded body size of the response (in bytes).',\n    type: 'integer',\n    keys: [\n      'http.response.body.decoded_size',\n      'http.decoded_response_content_length',\n      'http.response_content_length_uncompressed',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 456,\n    aliases: ['http.decoded_response_content_length', 'http.response_content_length_uncompressed'],\n    changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.response.body.decoded_size attribute' }],\n    additionalContext: [\n      'This is the size after content decoding. Set it only when the decoded size is actually known, for example from the browser Resource Timing `decodedBodySize` or by measuring a decompressed response stream.',\n      'Do not derive this from the `content-length` header, which always carries the encoded size. Use `http.response.body.size` for that.',\n    ],\n  },\n  'http.response.body.size': {\n    brief: 'The encoded body size of the response (in bytes).',\n    type: 'integer',\n    keys: ['http.response.body.size', 'http.response.header.content-length', 'http.response_content_length'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 123,\n    aliases: ['http.response_content_length', 'http.response.header.content-length'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [106] }, { version: '0.0.0' }],\n  },\n  'http.response_content_length': {\n    brief: 'The encoded body size of the response (in bytes).',\n    type: 'integer',\n    keys: ['http.response.body.size', 'http.response.header.content-length', 'http.response_content_length'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 123,\n    deprecation: {\n      replacement: 'http.response.body.size',\n      status: 'backfill',\n    },\n    aliases: ['http.response.body.size', 'http.response.header.content-length'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61, 106] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'http.response_content_length',\n      type: 'byte',\n    },\n  },\n  'http.response_content_length_uncompressed': {\n    brief: 'The decoded body size of the response (in bytes).',\n    type: 'integer',\n    keys: [\n      'http.response.body.decoded_size',\n      'http.decoded_response_content_length',\n      'http.response_content_length_uncompressed',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 456,\n    deprecation: {\n      replacement: 'http.response.body.decoded_size',\n      status: 'backfill',\n    },\n    aliases: ['http.response.body.decoded_size', 'http.decoded_response_content_length'],\n    changelog: [\n      {\n        version: '0.21.0',\n        prs: [574],\n        description:\n          'Added http.response_content_length_uncompressed attribute, deprecated in favor of http.response.body.decoded_size',\n      },\n    ],\n  },\n  'http.response.header.content-length': {\n    brief: 'The size of the message body sent to the recipient (in bytes)',\n    type: 'string',\n    keys: ['http.response.header.content-length', 'http.response.body.size', 'http.response_content_length'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: \"http.response.header.custom-header=['foo', 'bar']\",\n    aliases: ['http.response_content_length', 'http.response.body.size'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'http.response.header.<key>': {\n    brief:\n      'HTTP response headers, <key> being the lower-cased, but otherwise unchanged HTTP Header name, the value being the header values.',\n    type: 'string[]',\n    keys: ['http.response.header.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"http.response.header.custom-header=['foo', 'bar']\",\n    examples: [\"http.response.header.custom-header=['foo', 'bar']\", \"http.response.header.content-length=['123']\"],\n    changelog: [\n      { version: '0.4.0', prs: [201, 204] },\n      { version: '0.1.0', prs: [103] },\n    ],\n  },\n  'http.response.size': {\n    brief: 'The transfer size of the response (in bytes).',\n    type: 'integer',\n    keys: ['http.response.size', 'http.response_transfer_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 456,\n    aliases: ['http.response_transfer_size'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'http.response.status_code': {\n    brief: 'The status code of the HTTP response.',\n    type: 'integer',\n    keys: ['http.response.status_code', 'http.response_status_code', 'http.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 404,\n    aliases: ['http.status_code'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'http.response_status_code',\n    },\n  },\n  'http.response.status_text': {\n    brief: 'The reason phrase of the HTTP response.',\n    type: 'string',\n    keys: ['http.response.status_text', 'http.status_text'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'NOT FOUND',\n    aliases: ['http.status_text'],\n    changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.response.status_text attribute' }],\n    additionalContext: [\n      'HTTP/2 and HTTP/3 do not carry a reason phrase. Do not set this attribute when the protocol provides none; use `http.response.status_code` instead.',\n    ],\n  },\n  'http.response_transfer_size': {\n    brief: 'The transfer size of the response (in bytes).',\n    type: 'integer',\n    keys: ['http.response.size', 'http.response_transfer_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 456,\n    deprecation: {\n      replacement: 'http.response.size',\n      status: 'backfill',\n    },\n    aliases: ['http.response.size'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'http.response_transfer_size',\n      type: 'byte',\n    },\n  },\n  'http.route': {\n    brief: 'The matched route, that is, the path template in the format used by the respective server framework.',\n    type: 'string',\n    keys: ['http.route'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/users/:id',\n    examples: ['/users/:id', 'my-controller/my-action/{id}', '/posts'],\n    aliases: ['route'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [505, 521],\n        description: 'Added multiple examples, removed alias to `url.template`, added additional context',\n      },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'This attribute should primarily be set by server-side instrumentation that captures the framework route of an incoming request.',\n      'For `http.client` spans and client-side routing, use `url.template` instead.',\n    ],\n  },\n  'http.scheme': {\n    brief: 'The URI scheme component identifying the used protocol.',\n    type: 'string',\n    keys: ['url.scheme', 'http.scheme'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'https',\n    deprecation: {\n      replacement: 'url.scheme',\n      status: 'backfill',\n    },\n    aliases: ['url.scheme'],\n    changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n  },\n  'http.server_name': {\n    brief: 'The server domain name',\n    type: 'string',\n    keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    deprecation: {\n      replacement: 'server.address',\n      status: 'backfill',\n    },\n    aliases: ['address', 'server.address', 'net.host.name', 'http.host', 'server_name', 'net.peer.name'],\n    changelog: [\n      { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n      { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n      { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n      { version: '0.1.0', prs: [61, 108, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'http.server.request.time_in_queue': {\n    brief:\n      'The time in milliseconds the request spent in the server queue before processing began. Measured from the X-Request-Start header set by reverse proxies (e.g., Nginx, HAProxy, Heroku) to when the application started handling the request.',\n    type: 'double',\n    keys: ['http.server.request.time_in_queue'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 50,\n    changelog: [{ version: '0.5.0', prs: [267] }],\n  },\n  'http.status_code': {\n    brief: 'The status code of the HTTP response.',\n    type: 'integer',\n    keys: ['http.response.status_code', 'http.response_status_code', 'http.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 404,\n    deprecation: {\n      replacement: 'http.response.status_code',\n      status: 'backfill',\n    },\n    aliases: ['http.response.status_code'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n  },\n  'http.status_text': {\n    brief: 'The reason phrase of the HTTP response',\n    type: 'string',\n    keys: ['http.response.status_text', 'http.status_text'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'NOT FOUND',\n    examples: ['NOT FOUND'],\n    deprecation: {\n      replacement: 'http.response.status_text',\n      status: 'backfill',\n    },\n    aliases: ['http.response.status_text'],\n    changelog: [\n      {\n        version: '0.21.0',\n        prs: [574],\n        description: 'Added http.status_text attribute, deprecated in favor of http.response.status_text',\n      },\n    ],\n  },\n  'http.target': {\n    brief: 'The pathname and query string of the URL.',\n    type: 'string',\n    keys: ['http.target'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/test?foo=bar#buzz',\n    deprecation: {\n      reason:\n        'This attribute is being deprecated in favor of url.path, url.query and url.fragment. The value holds all three parts at once, so it has no single replacement.',\n    },\n    changelog: [\n      {\n        version: '0.21.0',\n        prs: [587],\n        description: 'Documented url.path, url.query and url.fragment as the replacements for http.target',\n      },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n  },\n  'http.url': {\n    brief: 'The URL of the resource that was fetched.',\n    type: 'string',\n    keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'https://example.com/test?foo=bar#buzz',\n    deprecation: {\n      replacement: 'url.full',\n      status: 'backfill',\n    },\n    aliases: ['url.full', 'url', 'aws.request.url', 'messaging.url'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n      { version: '0.1.0', prs: [61, 108] },\n      { version: '0.0.0' },\n    ],\n  },\n  'http.user_agent': {\n    brief: 'Value of the HTTP User-Agent header sent by the client.',\n    type: 'string',\n    keys: ['user_agent.original', 'http.user_agent'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1',\n    deprecation: {\n      replacement: 'user_agent.original',\n      status: 'backfill',\n    },\n    aliases: ['user_agent.original'],\n    changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n  },\n  id: {\n    brief: 'A unique identifier for the span.',\n    type: 'string',\n    keys: ['id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'f47ac10b58cc4372a5670e02b2c3d479',\n    changelog: [{ version: '0.0.0' }],\n  },\n  inp: {\n    brief: 'The value of the recorded Interaction to Next Paint (INP) web vital',\n    type: 'double',\n    keys: ['browser.web_vital.inp.value', 'inp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 200,\n    deprecation: {\n      replacement: 'browser.web_vital.inp.value',\n      reason: 'The INP web vital is now recorded as a browser.web_vital.inp.value attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.inp.value'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [229],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  'integrity.blocked_url': {\n    brief: 'The URL of the resource blocked by the integrity policy.',\n    type: 'string',\n    keys: ['integrity.blocked_url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://example.com/app.js',\n    changelog: [{ version: '0.27.0', prs: [691] }],\n  },\n  'integrity.destination': {\n    brief: 'The destination type of the resource affected by the integrity policy.',\n    type: 'string',\n    keys: ['integrity.destination'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'script',\n    changelog: [{ version: '0.27.0', prs: [691] }],\n  },\n  'integrity.document_url': {\n    brief: 'The URL of the document where the integrity violation occurred.',\n    type: 'string',\n    keys: ['integrity.document_url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://example.com/index.html',\n    changelog: [{ version: '0.27.0', prs: [691] }],\n  },\n  'integrity.report_only': {\n    brief: 'Whether the integrity violation was generated by a report-only policy.',\n    type: 'boolean',\n    keys: ['integrity.report_only'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.27.0', prs: [691] }],\n  },\n  'jsonrpc.protocol.version': {\n    brief: 'The version of the JSON-RPC protocol used.',\n    type: 'string',\n    keys: ['jsonrpc.protocol.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '2.0',\n    changelog: [{ version: '0.12.0', prs: [420], description: 'Added jsonrpc.protocol.version attribute' }],\n  },\n  'jsonrpc.request.id': {\n    brief: 'The JSON-RPC request identifier, used to correlate a request with its response.',\n    type: 'string',\n    keys: ['jsonrpc.request.id', 'mcp.request.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1',\n    examples: ['1'],\n    aliases: ['mcp.request.id'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Removed the session-scoped uniqueness requirement from the request identifier',\n      },\n      { version: '0.12.0', prs: [420], description: 'Added jsonrpc.request.id attribute' },\n    ],\n  },\n  'jvm.gc.action': {\n    brief: 'Name of the garbage collector action.',\n    type: 'string',\n    keys: ['jvm.gc.action'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'end of minor GC',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'jvm.gc.name': {\n    brief: 'Name of the garbage collector.',\n    type: 'string',\n    keys: ['jvm.gc.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'G1 Young Generation',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'jvm.memory.pool.name': {\n    brief: 'Name of the memory pool.',\n    type: 'string',\n    keys: ['jvm.memory.pool.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'G1 Old Gen',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'jvm.memory.type': {\n    brief: 'Name of the memory pool.',\n    type: 'string',\n    keys: ['jvm.memory.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'G1 Old Gen',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'jvm.thread.daemon': {\n    brief: 'Whether the thread is daemon or not.',\n    type: 'boolean',\n    keys: ['jvm.thread.daemon'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'jvm.thread.state': {\n    brief: 'State of the thread.',\n    type: 'string',\n    keys: ['jvm.thread.state'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'blocked',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'koa.name': {\n    brief: 'The name of the Koa middleware or matched route that handled the request.',\n    type: 'string',\n    keys: ['koa.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/users/:id',\n    deprecation: {\n      reason:\n        'No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.',\n    },\n    changelog: [{ version: '0.16.0', prs: [490], description: 'Added koa.name attribute as deprecated' }],\n  },\n  'koa.type': {\n    brief: 'The type of the Koa layer that handled the request.',\n    type: 'string',\n    keys: ['koa.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'router',\n    changelog: [{ version: '0.16.0', prs: [471], description: 'Added koa.type attribute' }],\n  },\n  'langchain.chain.name': {\n    brief: 'The name of the LangChain chain being executed.',\n    type: 'string',\n    keys: ['gen_ai.pipeline.name', 'ai.pipeline.name', 'langchain.chain.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'format_prompt',\n    examples: ['format_prompt', 'RunnableSequence'],\n    deprecation: {\n      replacement: 'gen_ai.pipeline.name',\n      reason:\n        'This attribute is being deprecated in favor of gen_ai.pipeline.name, which is the SDK-agnostic replacement for the name of the AI pipeline or chain being executed.',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.pipeline.name', 'ai.pipeline.name'],\n    changelog: [{ version: '0.22.0', prs: [599], description: 'Added langchain.chain.name attribute' }],\n  },\n  lcp: {\n    brief: 'The value of the recorded Largest Contentful Paint (LCP) web vital',\n    type: 'double',\n    keys: ['browser.web_vital.lcp.value', 'lcp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2500,\n    deprecation: {\n      replacement: 'browser.web_vital.lcp.value',\n      reason: 'The LCP web vital is now recorded as a browser.web_vital.lcp.value attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.lcp.value'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [229],\n        description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n      },\n    ],\n  },\n  'lcp.element': {\n    brief: 'The dom element responsible for the largest contentful paint.',\n    type: 'string',\n    keys: ['browser.web_vital.lcp.element', 'lcp.element'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'img',\n    deprecation: {\n      replacement: 'browser.web_vital.lcp.element',\n      reason: 'The LCP element is now recorded as a browser.web_vital.lcp.element attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.lcp.element'],\n    changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'lcp.id': {\n    brief: 'The id of the dom element responsible for the largest contentful paint.',\n    type: 'string',\n    keys: ['browser.web_vital.lcp.id', 'lcp.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '#hero',\n    deprecation: {\n      replacement: 'browser.web_vital.lcp.id',\n      reason: 'The LCP id is now recorded as a browser.web_vital.lcp.id attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.lcp.id'],\n    changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'lcp.loadTime': {\n    brief: 'The time it took for the LCP element to be loaded',\n    type: 'integer',\n    keys: ['browser.web_vital.lcp.load_time', 'lcp.loadTime'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1402,\n    deprecation: {\n      replacement: 'browser.web_vital.lcp.load_time',\n      reason: 'The LCP load time is now recorded as a browser.web_vital.lcp.load_time attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.lcp.load_time'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'lcp.renderTime': {\n    brief: 'The time it took for the LCP element to be rendered',\n    type: 'integer',\n    keys: ['browser.web_vital.lcp.render_time', 'lcp.renderTime'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1685,\n    deprecation: {\n      replacement: 'browser.web_vital.lcp.render_time',\n      reason: 'The LCP render time is now recorded as a browser.web_vital.lcp.render_time attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.lcp.render_time'],\n    changelog: [{ version: '0.5.0', prs: [233] }],\n  },\n  'lcp.size': {\n    brief: 'The size of the largest contentful paint element.',\n    type: 'integer',\n    keys: ['browser.web_vital.lcp.size', 'lcp.size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234,\n    deprecation: {\n      replacement: 'browser.web_vital.lcp.size',\n      reason: 'The LCP size is now recorded as a browser.web_vital.lcp.size attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.lcp.size'],\n    changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'lcp.url': {\n    brief: 'The url of the dom element responsible for the largest contentful paint.',\n    type: 'string',\n    keys: ['browser.web_vital.lcp.url', 'lcp.url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://example.com',\n    deprecation: {\n      replacement: 'browser.web_vital.lcp.url',\n      reason: 'The LCP url is now recorded as a browser.web_vital.lcp.url attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.lcp.url'],\n    changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'litestar.middleware_name': {\n    brief: 'The name of the Litestar middleware.',\n    type: 'string',\n    keys: [\n      'middleware.name',\n      'django.middleware_name',\n      'litestar.middleware_name',\n      'starlette.middleware_name',\n      'starlite.middleware_name',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AuthenticationMiddleware',\n    deprecation: {\n      replacement: 'middleware.name',\n      reason:\n        'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n      status: 'backfill',\n    },\n    aliases: ['middleware.name'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [486],\n        description: 'Added litestar.middleware_name attribute, deprecated in favor of middleware.name',\n      },\n    ],\n  },\n  'logger.name': {\n    brief: 'The name of the logger that generated this event.',\n    type: 'string',\n    keys: ['logger.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'myLogger',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'mcp.auth.client.name': {\n    brief:\n      'Registered OAuth client application name associated with the authenticated MCP request. Taken from OAuth client registration metadata (client_name) made available by the authentication layer. This is distinct from the MCP implementation name in mcp.client.name; omit it when the OAuth client name is unavailable.',\n    type: 'string',\n    keys: ['mcp.auth.client.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Example Desktop',\n    examples: ['Example Desktop', 'Example CLI'],\n    changelog: [{ version: '0.27.0', prs: [671], description: 'Added mcp.auth.client.name attribute' }],\n  },\n  'mcp.cancelled.reason': {\n    brief: 'Reason for the cancellation of an MCP operation.',\n    type: 'string',\n    keys: ['mcp.cancelled.reason'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Cancellation reasons may contain user-specific or sensitive information',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'User cancelled the request',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.cancelled.request_id': {\n    brief: 'Request ID of the cancelled MCP operation.',\n    type: 'string',\n    keys: ['mcp.cancelled.request_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '123',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.client.name': {\n    brief:\n      'Name of the MCP client implementation, as declared in clientInfo. This is distinct from the registered OAuth application name in mcp.auth.client.name.',\n    type: 'string',\n    keys: ['mcp.client.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'example-mcp-client',\n    examples: ['example-mcp-client'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the attribute describes declared MCP implementation metadata',\n      },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.client.title': {\n    brief: 'Display title of the MCP client implementation, as declared in clientInfo.',\n    type: 'string',\n    keys: ['mcp.client.title'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Client titles may reveal user-specific application configurations or custom setups',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Example MCP Client',\n    examples: ['Example MCP Client'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the attribute describes declared MCP implementation metadata',\n      },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.client.version': {\n    brief: 'Version of the MCP client implementation, as declared in clientInfo.',\n    type: 'string',\n    keys: ['mcp.client.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1.0.0',\n    examples: ['1.0.0'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the attribute describes declared MCP implementation metadata',\n      },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.lifecycle.phase': {\n    brief: 'Lifecycle phase indicator for MCP operations.',\n    type: 'string',\n    keys: ['mcp.lifecycle.phase'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'initialization_complete',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.logging.data_type': {\n    brief: 'Data type of the logged message content.',\n    type: 'string',\n    keys: ['mcp.logging.data_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'string',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.logging.level': {\n    brief: 'Log level for MCP logging operations.',\n    type: 'string',\n    keys: ['mcp.logging.level'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'info',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.logging.logger': {\n    brief: 'Logger name for MCP logging operations.',\n    type: 'string',\n    keys: ['mcp.logging.logger'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Logger names may be user-defined and could contain sensitive information',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'mcp_server',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.logging.message': {\n    brief: 'Log message content from MCP logging operations.',\n    type: 'string',\n    keys: ['mcp.logging.message'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Log messages can contain user data',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Tool execution completed successfully',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.method.name': {\n    brief: 'The name of the MCP request or notification method being called.',\n    type: 'string',\n    keys: ['mcp.method.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'tools/call',\n    changelog: [\n      { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.progress.current': {\n    brief: 'Current progress value of an MCP operation.',\n    type: 'double',\n    keys: ['mcp.progress.current'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.2,\n    examples: [0.2, 50],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Changed the type to double to support fractional MCP progress values',\n      },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.progress.message': {\n    brief: 'Progress message describing the current state of an MCP operation.',\n    type: 'string',\n    keys: ['mcp.progress.message'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Progress messages may contain user-specific or sensitive information',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Processing 50 of 100 items',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.progress.percentage': {\n    brief: 'Calculated progress percentage of an MCP operation. Computed from current/total * 100.',\n    type: 'double',\n    keys: ['mcp.progress.percentage'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 50,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.progress.token': {\n    brief: 'Token for tracking progress of an MCP operation.',\n    type: 'string',\n    keys: ['mcp.progress.token'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'progress-token-123',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.progress.total': {\n    brief: 'Total progress target value of an MCP operation.',\n    type: 'double',\n    keys: ['mcp.progress.total'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    examples: [1, 100],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Changed the type to double to support fractional MCP progress values',\n      },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.prompt.name': {\n    brief: 'Name of the MCP prompt template being used.',\n    type: 'string',\n    keys: ['gen_ai.prompt.name', 'mcp.prompt.name'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Prompt names may reveal user behavior patterns or sensitive operations',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'summarize',\n    deprecation: {\n      replacement: 'gen_ai.prompt.name',\n      reason: 'OTel uses gen_ai.prompt.name for MCP prompt names',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.prompt.name'],\n    changelog: [\n      { version: '0.12.0', prs: [420], description: 'Deprecated in favor of gen_ai.prompt.name' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.prompt.result.description': {\n    brief: 'Description of the prompt result.',\n    type: 'string',\n    keys: ['mcp.prompt.result.description'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'A summary of the requested information',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.prompt.result.<key>.content': {\n    brief: 'Legacy text content of an indexed message in a multi-message MCP prompt result.',\n    type: 'string',\n    keys: ['mcp.prompt.result.<key>.content'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Summarize the document.',\n    examples: ['Summarize the document.'],\n    changelog: [\n      { version: '0.27.0', prs: [689], description: 'Register an existing JavaScript SDK MCP result attribute.' },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple messages. <key> is the zero-based position in the original messages array; absent fields do not renumber later messages.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.prompt.result.<key>.role': {\n    brief: 'Legacy role of an indexed message in a multi-message MCP prompt result.',\n    type: 'string',\n    keys: ['mcp.prompt.result.<key>.role'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user',\n    examples: ['user', 'assistant'],\n    changelog: [\n      { version: '0.27.0', prs: [689], description: 'Register an existing JavaScript SDK MCP result attribute.' },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple messages. <key> is the zero-based position in the original messages array; absent fields do not renumber later messages.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.prompt.result.message_content': {\n    brief: 'Content of the message in the prompt result. Used for single message results only.',\n    type: 'string',\n    keys: ['mcp.prompt.result.message_content'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Please provide a summary of the document',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.prompt.result.message_count': {\n    brief: 'Number of messages in the prompt result.',\n    type: 'integer',\n    keys: ['mcp.prompt.result.message_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 3,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.prompt.result.message_role': {\n    brief: 'Role of the message in the prompt result. Used for single message results only.',\n    type: 'string',\n    keys: ['mcp.prompt.result.message_role'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.protocol.ready': {\n    brief:\n      'Readiness indicator for the legacy MCP initialization handshake. A non-zero value indicates that notifications/initialized has completed initialization. Omit for protocol versions without this handshake.',\n    type: 'integer',\n    keys: ['mcp.protocol.ready'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    examples: [1],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that readiness describes the legacy MCP initialization handshake',\n      },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.protocol.version': {\n    brief: 'Version of the Model Context Protocol used for the operation.',\n    type: 'string',\n    keys: ['mcp.protocol.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '2024-11-05',\n    examples: ['2024-11-05'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the protocol version applies to an operation without requiring a session',\n      },\n      { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.request.argument.<key>': {\n    brief:\n      'MCP request argument with dynamic key suffix. The <key> is replaced with the actual argument name. The value is a JSON-stringified representation of the argument value.',\n    type: 'string',\n    keys: ['mcp.request.argument.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Arguments contain user input',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"mcp.request.argument.query='weather in Paris'\",\n    changelog: [{ version: '0.3.0', prs: [176] }],\n  },\n  'mcp.request.argument.name': {\n    brief: 'Name argument from prompts/get MCP request.',\n    type: 'string',\n    keys: ['mcp.request.argument.name'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Prompt names can contain user input',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'summarize',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.request.argument.uri': {\n    brief: 'URI argument from resources/read MCP request.',\n    type: 'string',\n    keys: ['mcp.request.argument.uri'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'URIs can contain user file paths',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'file:///path/to/resource',\n    changelog: [{ version: '0.3.0', prs: [171] }],\n  },\n  'mcp.request.id': {\n    brief: 'JSON-RPC request identifier for the MCP request, used to correlate the request with its response.',\n    type: 'string',\n    keys: ['jsonrpc.request.id', 'mcp.request.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1',\n    examples: ['1'],\n    deprecation: {\n      replacement: 'jsonrpc.request.id',\n      reason: 'OTel models MCP as JSON-RPC, uses jsonrpc.request.id',\n      status: 'backfill',\n    },\n    aliases: ['jsonrpc.request.id'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Removed the session-scoped uniqueness requirement from the request identifier',\n      },\n      { version: '0.12.0', prs: [420], description: 'Deprecated in favor of jsonrpc.request.id' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.resource.protocol': {\n    brief:\n      'URI scheme of the MCP resource being accessed, extracted from its URI. This is distinct from the network protocol used to communicate with the MCP server.',\n    type: 'string',\n    keys: ['mcp.resource.protocol'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'file',\n    examples: ['file', 'postgres'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description:\n          'Clarified Sentry-specific semantics and removed the incorrect network attribute alias and deprecation',\n      },\n      { version: '0.21.0', prs: [581], description: 'Added messaging.protocol as an alias' },\n      { version: '0.12.0', prs: [420], description: 'Deprecated in favor of network.protocol.name' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.resource.uri': {\n    brief: 'The resource URI being accessed in an MCP operation.',\n    type: 'string',\n    keys: ['mcp.resource.uri'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'URIs can contain sensitive file paths',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'file:///path/to/file.txt',\n    changelog: [\n      { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.server.name': {\n    brief: 'Name of the MCP server implementation, as declared in serverInfo.',\n    type: 'string',\n    keys: ['mcp.server.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'example-mcp-server',\n    examples: ['example-mcp-server'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the attribute describes declared MCP implementation metadata',\n      },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.server.title': {\n    brief: 'Display title of the MCP server implementation, as declared in serverInfo.',\n    type: 'string',\n    keys: ['mcp.server.title'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Server titles may reveal user-specific application configurations or custom setups',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Example MCP Server',\n    examples: ['Example MCP Server'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the attribute describes declared MCP implementation metadata',\n      },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.server.version': {\n    brief: 'Version of the MCP server implementation, as declared in serverInfo.',\n    type: 'string',\n    keys: ['mcp.server.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '0.1.0',\n    examples: ['0.1.0'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the attribute describes declared MCP implementation metadata',\n      },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.session.id': {\n    brief: 'Identifier for an MCP protocol session, when the operation belongs to a session.',\n    type: 'string',\n    keys: ['mcp.session.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '550e8400-e29b-41d4-a716-446655440000',\n    examples: ['550e8400-e29b-41d4-a716-446655440000'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description: 'Clarified that the identifier requires a real MCP protocol session',\n      },\n      { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n      { version: '0.3.0', prs: [171] },\n    ],\n    additionalContext: [\n      'Applies to protocol versions and transports that provide MCP session management, including legacy Streamable HTTP sessions. Omit for operations without a protocol session; do not synthesize a session identifier from a request, connection, or conversation.',\n    ],\n  },\n  'mcp.tool.name': {\n    brief: 'Name of the MCP tool being called.',\n    type: 'string',\n    keys: ['gen_ai.tool.name', 'ai.function_call', 'mcp.tool.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'calculator',\n    deprecation: {\n      replacement: 'gen_ai.tool.name',\n      reason: 'OTel uses gen_ai.tool.name for MCP tool names',\n      status: 'backfill',\n    },\n    aliases: ['gen_ai.tool.name', 'ai.function_call'],\n    changelog: [\n      { version: '0.12.0', prs: [420], description: 'Deprecated in favor of gen_ai.tool.name' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.tool.result.content': {\n    brief: 'The content of the tool result.',\n    type: 'string',\n    keys: [\n      'gen_ai.tool.call.result',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n      'gen_ai.tool.message',\n      'gen_ai.tool.output',\n      'mcp.tool.result.content',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'Tool results can contain user data',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '{\"output\": \"rainy\", \"toolCallId\": \"1\"}',\n    deprecation: {\n      replacement: 'gen_ai.tool.call.result',\n      reason: 'OTel uses gen_ai.tool.call.result for MCP tool results',\n      status: 'backfill',\n    },\n    aliases: [\n      'gen_ai.tool.call.result',\n      'gen_ai.tool.message',\n      'gen_ai.tool.output',\n      'ai.toolCall.result',\n      'anthropic.tool_result.content',\n    ],\n    changelog: [\n      { version: '0.12.0', prs: [420], description: 'Deprecated in favor of gen_ai.tool.call.result' },\n      { version: '0.3.0', prs: [171] },\n      { version: '0.2.0', prs: [164] },\n    ],\n  },\n  'mcp.tool.result.content_count': {\n    brief: 'Number of content items in the tool result.',\n    type: 'integer',\n    keys: ['mcp.tool.result.content_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    deprecation: {\n      reason: 'A count can be calculated from the value of the gen_ai.tool.call.result attribute.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [669],\n        description: 'Deprecate the attribute since it is redundant given gen_ai.tool.call.result.',\n      },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.tool.result.content_type': {\n    brief: 'Legacy content type of the content item in a single-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.content_type'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'text',\n    examples: ['text', 'image'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted only when the result contains exactly one content item.',\n      'Recorded even when output capture is disabled.',\n    ],\n  },\n  'mcp.tool.result.data_size': {\n    brief:\n      'Legacy length of the data string in UTF-16 code units of the content item in a single-item MCP tool result.',\n    type: 'integer',\n    keys: ['mcp.tool.result.data_size'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'The length contains no result content.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 4,\n    examples: [4, 1024],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted only when the result contains exactly one content item.',\n      'Recorded only when output capture is enabled.',\n      'The JavaScript SDK records data.length. For base64-encoded image or audio data, this counts encoded characters, not decoded bytes.',\n    ],\n  },\n  'mcp.tool.result.is_error': {\n    brief: 'Whether a tool execution resulted in an error.',\n    type: 'boolean',\n    keys: ['mcp.tool.result.is_error'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: false,\n    deprecation: {\n      replacement: 'error.type',\n      reason:\n        \"OTel uses error.type set to 'tool_error' when isError is true. Cannot be automatically backfilled due to type mismatch (boolean vs string).\",\n    },\n    changelog: [\n      { version: '0.12.0', prs: [420], description: 'Deprecated in favor of error.type' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mcp.tool.result.<key>.content': {\n    brief: 'Legacy text content of an indexed content item in a multi-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.<key>.content'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'The operation completed.',\n    examples: ['The operation completed.'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded only when output capture is enabled.',\n      \"This is one item's text, not the complete tool result. It must not be aliased or directly backfilled to gen_ai.tool.call.result; reconstructing the complete result requires aggregation.\",\n    ],\n  },\n  'mcp.tool.result.<key>.content_type': {\n    brief: 'Legacy content type of an indexed content item in a multi-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.<key>.content_type'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'text',\n    examples: ['text', 'image'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded even when output capture is disabled.',\n    ],\n  },\n  'mcp.tool.result.<key>.data_size': {\n    brief:\n      'Legacy length of the data string in UTF-16 code units of an indexed content item in a multi-item MCP tool result.',\n    type: 'integer',\n    keys: ['mcp.tool.result.<key>.data_size'],\n    applyScrubbing: {\n      key: 'manual',\n      reason: 'The length contains no result content.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 4,\n    examples: [4, 1024],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded only when output capture is enabled.',\n      'The JavaScript SDK records data.length. For base64-encoded image or audio data, this counts encoded characters, not decoded bytes.',\n    ],\n  },\n  'mcp.tool.result.<key>.mime_type': {\n    brief: 'Legacy MIME type of an indexed content item in a multi-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.<key>.mime_type'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'image/png',\n    examples: ['image/png', 'audio/wav'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.<key>.name': {\n    brief: 'Legacy resource link name of an indexed content item in a multi-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.<key>.name'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'report.txt',\n    examples: ['report.txt'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.<key>.resource_mime_type': {\n    brief: 'Legacy embedded resource MIME type of an indexed content item in a multi-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.<key>.resource_mime_type'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'text/plain',\n    examples: ['text/plain'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.<key>.resource_uri': {\n    brief: 'Legacy embedded resource URI of an indexed content item in a multi-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.<key>.resource_uri'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'file:///project/report.txt',\n    examples: ['file:///project/report.txt'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.<key>.uri': {\n    brief: 'Legacy resource link URI of an indexed content item in a multi-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.<key>.uri'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'file:///project/report.txt',\n    examples: ['file:///project/report.txt'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted for results with multiple content items. <key> is the zero-based position in the original content array; absent fields do not renumber later items.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.mime_type': {\n    brief: 'Legacy MIME type of the content item in a single-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.mime_type'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'image/png',\n    examples: ['image/png', 'audio/wav'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted only when the result contains exactly one content item.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.name': {\n    brief: 'Legacy resource link name of the content item in a single-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.name'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'report.txt',\n    examples: ['report.txt'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted only when the result contains exactly one content item.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.resource_mime_type': {\n    brief: 'Legacy embedded resource MIME type of the content item in a single-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.resource_mime_type'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'text/plain',\n    examples: ['text/plain'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted only when the result contains exactly one content item.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.resource_uri': {\n    brief: 'Legacy embedded resource URI of the content item in a single-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.resource_uri'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'file:///project/report.txt',\n    examples: ['file:///project/report.txt'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted only when the result contains exactly one content item.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.tool.result.uri': {\n    brief: 'Legacy resource link URI of the content item in a single-item MCP tool result.',\n    type: 'string',\n    keys: ['mcp.tool.result.uri'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Preserve automatic scrubbing of server-provided result fields.',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'file:///project/report.txt',\n    examples: ['file:///project/report.txt'],\n    deprecation: {\n      reason:\n        'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n    },\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [689],\n        description:\n          'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n      },\n    ],\n    additionalContext: [\n      'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n      'Emitted only when the result contains exactly one content item.',\n      'Recorded only when output capture is enabled.',\n    ],\n  },\n  'mcp.transport': {\n    brief:\n      'MCP transport implementation name, such as the transport class name. This identifies the implementation, not the network transport or application protocol.',\n    type: 'string',\n    keys: ['mcp.transport'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'StdioServerTransport',\n    examples: ['StdioServerTransport', 'CustomHTTPTransport'],\n    changelog: [\n      {\n        version: '0.27.0',\n        prs: [671],\n        description:\n          'Clarified Sentry-specific semantics and removed the incorrect network attribute alias and deprecation',\n      },\n      { version: '0.12.0', prs: [420], description: 'Deprecated in favor of network.transport' },\n      { version: '0.3.0', prs: [171] },\n    ],\n  },\n  'mdc.<key>': {\n    brief:\n      \"Attributes from the Mapped Diagnostic Context (MDC) present at the moment the log record was created. The MDC is supported by all the most popular logging solutions in the Java ecosystem, and it's usually implemented as a thread-local map that stores context for e.g. a specific request.\",\n    type: 'string',\n    keys: ['mdc.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"mdc.some_key='some_value'\",\n    changelog: [{ version: '0.3.0', prs: [176] }],\n  },\n  'messaging.batch.message_count': {\n    brief: 'The number of messages sent, received, or processed in the scope of the batching operation.',\n    type: 'integer',\n    keys: ['messaging.batch.message_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 10,\n    changelog: [{ version: '0.6.0', prs: [341], description: 'Added messaging.batch.message_count attribute' }],\n  },\n  'messaging.bullmq.flow.name': {\n    brief: 'The name of the root job of the BullMQ flow that FlowProducer.add() adds.',\n    type: 'string',\n    keys: ['messaging.bullmq.flow.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'build-report',\n    examples: ['build-report'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.flow.name attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.flow.name` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.job.attempt_finished_timestamp': {\n    brief: 'The time in milliseconds since the Unix epoch when the current attempt of the BullMQ job finished.',\n    type: 'integer',\n    keys: ['messaging.bullmq.job.attempt_finished_timestamp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1791184722406,\n    examples: [1791184722406],\n    changelog: [\n      { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.attempt_finished_timestamp attribute' },\n    ],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.attempt_finished_timestamp` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.job.bulk.names': {\n    brief: 'The names of the BullMQ jobs or flows that one bulk operation adds, for example Queue.addBulk().',\n    type: 'string[]',\n    keys: ['messaging.bullmq.job.bulk.names'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['send-welcome-email', 'generate-report'],\n    examples: [['send-welcome-email', 'generate-report']],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.bulk.names attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.bulk.names` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.job.deduplication.key': {\n    brief: 'The deduplication ID that Queue.removeDeduplicationKey() removes.',\n    type: 'string',\n    keys: ['messaging.bullmq.job.deduplication.key'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user-42-sync',\n    examples: ['user-42-sync'],\n    changelog: [\n      { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.deduplication.key attribute' },\n    ],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.deduplication.key` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.job.ids': {\n    brief: 'The IDs of the BullMQ jobs that Queue.clean() removed.',\n    type: 'string[]',\n    keys: ['messaging.bullmq.job.ids'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['1', '2', '3'],\n    examples: [['1', '2', '3']],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.ids attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.ids` attribute of BullMQ's telemetry interface.\",\n      'BullMQ 5.79.1 sets this attribute. BullMQ 6.3.11 does not.',\n    ],\n  },\n  'messaging.bullmq.job.key': {\n    brief:\n      'The key that a BullMQ remove operation for a debounce or repeatable key gets, for example Queue.removeDebounceKey().',\n    type: 'string',\n    keys: ['messaging.bullmq.job.key'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user-42-sync',\n    examples: ['user-42-sync'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.key attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.key` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.job.name': {\n    brief: 'The name of the BullMQ job, which the user passes to Queue.add() to identify the kind of work.',\n    type: 'string',\n    keys: ['messaging.bullmq.job.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'send-welcome-email',\n    examples: ['send-welcome-email', 'generate-report'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.name attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.name` attribute of BullMQ's telemetry interface.\",\n      'Also set on the BullMQ job metrics.',\n    ],\n  },\n  'messaging.bullmq.job.processed_timestamp': {\n    brief: 'The time in milliseconds since the Unix epoch when the Worker started to process the BullMQ job.',\n    type: 'integer',\n    keys: ['messaging.bullmq.job.processed_timestamp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1791184722281,\n    examples: [1791184722281],\n    changelog: [\n      { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.processed_timestamp attribute' },\n    ],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.processed.timestamp` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.job.scheduler.id': {\n    brief: 'The ID of the BullMQ job scheduler that adds the job.',\n    type: 'string',\n    keys: ['messaging.bullmq.job.scheduler.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'daily-report',\n    examples: ['daily-report'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.scheduler.id attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.scheduler.id` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.job.state': {\n    brief: 'The state of the BullMQ job that a job metric counts.',\n    type: 'string',\n    keys: ['messaging.bullmq.job.state'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'completed',\n    examples: ['completed', 'failed', 'delayed'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.state attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.state` attribute of BullMQ's telemetry interface. BullMQ before 5.81.2 sets `bullmq.job.status` instead, and the SDK then uses that value.\",\n    ],\n  },\n  'messaging.bullmq.job.type': {\n    brief: 'The job state from which Queue.clean() removes BullMQ jobs.',\n    type: 'string',\n    keys: ['messaging.bullmq.job.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'completed',\n    examples: ['completed', 'failed'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.type attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.job.type` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.queue.clean.count': {\n    brief: 'The number of BullMQ jobs that Queue.clean() removed.',\n    type: 'integer',\n    keys: ['messaging.bullmq.queue.clean.count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 25,\n    examples: [25],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.clean.count attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.queue.clean.count` attribute of BullMQ's telemetry interface.\",\n      'BullMQ 6.3.11 sets this attribute. BullMQ 5.79.1 does not.',\n    ],\n  },\n  'messaging.bullmq.queue.clean.limit': {\n    brief: 'The maximum number of BullMQ jobs that Queue.clean() removes.',\n    type: 'integer',\n    keys: ['messaging.bullmq.queue.clean.limit'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1000,\n    examples: [1000],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.clean.limit attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.queue.clean.limit` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.queue.drain.delay': {\n    brief: 'Whether Queue.drain() also removes the delayed BullMQ jobs.',\n    type: 'boolean',\n    keys: ['messaging.bullmq.queue.drain.delay'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    examples: [true],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.drain.delay attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.queue.drain.delay` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.queue.event.max_length': {\n    brief: 'The maximum number of events that Queue.trimEvents() keeps in the BullMQ event stream.',\n    type: 'integer',\n    keys: ['messaging.bullmq.queue.event.max_length'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 10000,\n    examples: [10000],\n    changelog: [\n      { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.event.max_length attribute' },\n    ],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.queue.event.max.length` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.queue.grace': {\n    brief: 'The grace period in milliseconds that Queue.clean() uses. Only BullMQ jobs that are older are removed.',\n    type: 'integer',\n    keys: ['messaging.bullmq.queue.grace'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 60000,\n    examples: [60000],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.grace attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.queue.grace` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.queue.jobs.state': {\n    brief: 'The BullMQ job state that the queue job count metric counts.',\n    type: 'string',\n    keys: ['messaging.bullmq.queue.jobs.state'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'waiting',\n    examples: ['waiting', 'active', 'completed'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.jobs.state attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.queue.jobs.state` attribute of BullMQ's telemetry interface.\",\n      'Set on the BullMQ queue job count metric.',\n    ],\n  },\n  'messaging.bullmq.queue.rate_limit': {\n    brief: 'The time in milliseconds for which Queue.rateLimit() rate-limits the BullMQ queue.',\n    type: 'integer',\n    keys: ['messaging.bullmq.queue.rate_limit'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5000,\n    examples: [5000],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.rate_limit attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.queue.rate.limit` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.worker.do_not_wait_active': {\n    brief: 'Whether Worker.pause() returns without waiting for the active BullMQ jobs to finish.',\n    type: 'boolean',\n    keys: ['messaging.bullmq.worker.do_not_wait_active'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: false,\n    examples: [false],\n    changelog: [\n      { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.do_not_wait_active attribute' },\n    ],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.worker.do.not.wait.active` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.worker.force_close': {\n    brief: 'Whether Worker.close() closes the Worker without waiting for the active BullMQ jobs to finish.',\n    type: 'boolean',\n    keys: ['messaging.bullmq.worker.force_close'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: false,\n    examples: [false],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.force_close attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.worker.force.close` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.worker.jobs_to_extend_locks': {\n    brief: 'The IDs of the BullMQ jobs whose locks the Worker extends.',\n    type: 'string[]',\n    keys: ['messaging.bullmq.worker.jobs_to_extend_locks'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['1', '2'],\n    examples: [['1', '2']],\n    changelog: [\n      { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.jobs_to_extend_locks attribute' },\n    ],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.worker.jobs.to.extend.locks` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.worker.name': {\n    brief: 'The name that the user gives to the BullMQ Worker in its options.',\n    type: 'string',\n    keys: ['messaging.bullmq.worker.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'email-worker',\n    examples: ['email-worker'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.name attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.worker.name` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.worker.rate_limit': {\n    brief: 'The time in milliseconds for which Worker.rateLimit() rate-limits the BullMQ Worker.',\n    type: 'integer',\n    keys: ['messaging.bullmq.worker.rate_limit'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 5000,\n    examples: [5000],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.rate_limit attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.worker.rate.limit` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.bullmq.worker.stalled_jobs': {\n    brief: 'The IDs of the stalled BullMQ jobs that the Worker moved back to the wait state.',\n    type: 'string[]',\n    keys: ['messaging.bullmq.worker.stalled_jobs'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['1', '2'],\n    examples: [['1', '2']],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.stalled_jobs attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute from the `bullmq.worker.stalled.jobs` attribute of BullMQ's telemetry interface.\",\n    ],\n  },\n  'messaging.client.id': {\n    brief: 'A unique identifier for the client that consumes or produces a message.',\n    type: 'string',\n    keys: ['messaging.client.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'client-5',\n    examples: ['client-5', 'myhost@8742@s8083jm'],\n    changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.client.id attribute' }],\n    additionalContext: [\n      \"The Sentry SDK sets this attribute on BullMQ spans from the `bullmq.worker.id` attribute of BullMQ's telemetry interface, which is the ID of the Worker.\",\n    ],\n  },\n  'messaging.conversation_id': {\n    brief:\n      'The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\".',\n    type: 'string',\n    keys: ['messaging.message.conversation_id', 'messaging.conversation_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'MyConversationId',\n    examples: ['MyConversationId'],\n    deprecation: {\n      replacement: 'messaging.message.conversation_id',\n      reason: 'This attribute is being deprecated in favor of messaging.message.conversation_id.',\n      status: 'backfill',\n    },\n    aliases: ['messaging.message.conversation_id'],\n    changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.conversation_id attribute' }],\n  },\n  'messaging.destination': {\n    brief: 'The message destination name.',\n    type: 'string',\n    keys: ['messaging.destination.name', 'messaging.destination'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'BestTopic',\n    deprecation: {\n      replacement: 'messaging.destination.name',\n      reason:\n        'This attribute is being deprecated in favor of messaging.destination.name, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['messaging.destination.name'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [482],\n        description: 'Added messaging.destination attribute, deprecated in favor of messaging.destination.name',\n      },\n    ],\n  },\n  'messaging.destination.connection': {\n    brief: 'The message destination connection.',\n    type: 'string',\n    keys: ['messaging.destination.connection'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'BestTopic',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'messaging.destination_kind': {\n    brief: 'The kind of message destination.',\n    type: 'string',\n    keys: ['messaging.destination_kind'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'topic',\n    deprecation: {\n      reason:\n        'Deprecated from OTEL, which now models the destination kind via messaging.operation.type and messaging.destination.name.',\n    },\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [509],\n        description:\n          'Added deprecated messaging.destination_kind attribute for parity with legacy OTel instrumentations.',\n      },\n    ],\n  },\n  'messaging.destination.name': {\n    brief: 'The message destination name.',\n    type: 'string',\n    keys: ['messaging.destination.name', 'messaging.destination'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'BestTopic',\n    aliases: ['messaging.destination'],\n    changelog: [\n      { version: '0.16.0', prs: [482], description: 'Added messaging.destination as an alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'messaging.destination.partition.id': {\n    brief:\n      'The identifier of the partition messages are sent to or received from, unique within the messaging.destination.name.',\n    type: 'string',\n    keys: ['messaging.destination.partition.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1',\n    changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.destination.partition.id attribute' }],\n  },\n  'messaging.kafka.message.key': {\n    brief:\n      \"Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from messaging.message.id in that they're not unique. If the key is null, the attribute MUST NOT be set.\",\n    type: 'string',\n    keys: ['messaging.kafka.message.key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'myKey',\n    changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.kafka.message.key attribute' }],\n  },\n  'messaging.kafka.message.tombstone': {\n    brief: 'A boolean that is true if the message is a tombstone.',\n    type: 'boolean',\n    keys: ['messaging.kafka.message.tombstone'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.kafka.message.tombstone attribute' }],\n  },\n  'messaging.kafka.offset': {\n    brief: 'The offset of a record in the corresponding Kafka partition.',\n    type: 'integer',\n    keys: ['messaging.kafka.offset'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 42,\n    changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.kafka.offset attribute' }],\n  },\n  'messaging.message.body.size': {\n    brief: 'The size of the message body in bytes.',\n    type: 'integer',\n    keys: ['messaging.message.body.size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 839,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'messaging.message.body.size',\n      type: 'byte',\n    },\n  },\n  'messaging.message.conversation_id': {\n    brief:\n      'The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\".',\n    type: 'string',\n    keys: ['messaging.message.conversation_id', 'messaging.conversation_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'MyConversationId',\n    aliases: ['messaging.conversation_id'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.conversation_id as an alias' },\n      { version: '0.16.0', prs: [468], description: 'Added messaging.message.conversation_id attribute' },\n    ],\n  },\n  'messaging.message.envelope.size': {\n    brief: 'The size of the message body and metadata in bytes.',\n    type: 'integer',\n    keys: ['messaging.message.envelope.size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 1045,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'messaging.message.id': {\n    brief: 'A value used by the messaging system as an identifier for the message, represented as a string.',\n    type: 'string',\n    keys: ['messaging.message.id', 'messaging.message_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'f47ac10b58cc4372a5670e02b2c3d479',\n    aliases: ['messaging.message_id'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.message_id as an alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'messaging.message_id': {\n    brief: 'A value used by the messaging system as an identifier for the message, represented as a string.',\n    type: 'string',\n    keys: ['messaging.message.id', 'messaging.message_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '452a7c7c7c7048c2f887f0e7',\n    examples: ['452a7c7c7c7048c2f887f0e7'],\n    deprecation: {\n      replacement: 'messaging.message.id',\n      reason: 'This attribute is being deprecated in favor of messaging.message.id.',\n      status: 'backfill',\n    },\n    aliases: ['messaging.message.id'],\n    changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.message_id attribute' }],\n  },\n  'messaging.message.receive.latency': {\n    brief: 'The latency between when the message was published and received.',\n    type: 'integer',\n    keys: ['messaging.message.receive.latency'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1732847252,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'messaging.message.receive.latency',\n      type: 'millisecond',\n    },\n  },\n  'messaging.message.retry.count': {\n    brief: 'The amount of attempts to send the message.',\n    type: 'integer',\n    keys: ['messaging.message.retry.count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'messaging.operation': {\n    brief: 'The name of the messaging operation being performed.',\n    type: 'string',\n    keys: ['messaging.operation.name', 'messaging.operation'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'publish',\n    examples: ['publish'],\n    deprecation: {\n      replacement: 'messaging.operation.name',\n      reason: 'This attribute is being deprecated in favor of messaging.operation.name.',\n      status: 'backfill',\n    },\n    aliases: ['messaging.operation.name'],\n    changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.operation attribute' }],\n  },\n  'messaging.operation.name': {\n    brief: 'The name of the messaging operation being performed',\n    type: 'string',\n    keys: ['messaging.operation.name', 'messaging.operation'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'send',\n    aliases: ['messaging.operation'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.operation as an alias' },\n      { version: '0.11.0', prs: [392], description: 'Added messaging.operation.name attribute' },\n    ],\n  },\n  'messaging.operation.type': {\n    brief: 'A string identifying the type of the messaging operation',\n    type: 'string',\n    keys: ['messaging.operation.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'create',\n    changelog: [{ version: '0.1.0', prs: [51, 127] }],\n  },\n  'messaging.protocol': {\n    brief: 'OSI application layer or non-OSI equivalent.',\n    type: 'string',\n    keys: ['network.protocol.name', 'messaging.protocol', 'net.protocol.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AMQP',\n    examples: ['AMQP'],\n    deprecation: {\n      replacement: 'network.protocol.name',\n      reason: 'This attribute is being deprecated in favor of network.protocol.name.',\n      status: 'backfill',\n    },\n    aliases: ['network.protocol.name', 'net.protocol.name'],\n    changelog: [\n      { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.resource.protocol alias' },\n      { version: '0.21.0', prs: [581], description: 'Added messaging.protocol attribute' },\n    ],\n  },\n  'messaging.protocol_version': {\n    brief: 'The actual version of the protocol used for network communication.',\n    type: 'string',\n    keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '0.9.1',\n    examples: ['0.9.1'],\n    deprecation: {\n      replacement: 'network.protocol.version',\n      reason: 'This attribute is being deprecated in favor of network.protocol.version.',\n      status: 'backfill',\n    },\n    aliases: ['network.protocol.version', 'http.flavor', 'net.protocol.version'],\n    changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version attribute' }],\n  },\n  'messaging.rabbitmq.destination.routing_key': {\n    brief: 'RabbitMQ message routing key.',\n    type: 'string',\n    keys: ['messaging.rabbitmq.destination.routing_key', 'messaging.rabbitmq.routing_key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'myKey',\n    aliases: ['messaging.rabbitmq.routing_key'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.rabbitmq.routing_key as an alias' },\n      { version: '0.16.0', prs: [468], description: 'Added messaging.rabbitmq.destination.routing_key attribute' },\n    ],\n  },\n  'messaging.rabbitmq.routing_key': {\n    brief: 'RabbitMQ message routing key.',\n    type: 'string',\n    keys: ['messaging.rabbitmq.destination.routing_key', 'messaging.rabbitmq.routing_key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'myKey',\n    examples: ['myKey'],\n    deprecation: {\n      replacement: 'messaging.rabbitmq.destination.routing_key',\n      reason: 'This attribute is being deprecated in favor of messaging.rabbitmq.destination.routing_key.',\n      status: 'backfill',\n    },\n    aliases: ['messaging.rabbitmq.destination.routing_key'],\n    changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.rabbitmq.routing_key attribute' }],\n  },\n  'messaging.system': {\n    brief: 'The messaging system as identified by the client instrumentation.',\n    type: 'string',\n    keys: ['messaging.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'activemq',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'messaging.url': {\n    brief: 'The connection string of the messaging broker.',\n    type: 'string',\n    keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'amqp://guest:guest@localhost:5672',\n    examples: ['amqp://guest:guest@localhost:5672'],\n    deprecation: {\n      replacement: 'url.full',\n      reason: 'This attribute is being deprecated in favor of url.full.',\n      status: 'backfill',\n    },\n    aliases: ['url.full', 'http.url', 'url', 'aws.request.url'],\n    changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.url attribute' }],\n  },\n  method: {\n    brief: 'The HTTP method used.',\n    type: 'string',\n    keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GET',\n    deprecation: {\n      replacement: 'http.request.method',\n      status: 'normalize',\n    },\n    aliases: ['http.request.method', 'http.request_method', 'http.method'],\n    changelog: [\n      { version: '0.19.0', prs: [497], description: 'Configured normalization' },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'middleware.name': {\n    brief: 'The name of the middleware.',\n    type: 'string',\n    keys: [\n      'middleware.name',\n      'django.middleware_name',\n      'litestar.middleware_name',\n      'starlette.middleware_name',\n      'starlite.middleware_name',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AuthenticationMiddleware',\n    aliases: [\n      'django.middleware_name',\n      'starlite.middleware_name',\n      'litestar.middleware_name',\n      'starlette.middleware_name',\n    ],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [485, 486, 519, 520],\n        description:\n          'Added django.middleware_name, starlite.middleware_name, litestar.middleware_name and starlette.middleware_name as aliases',\n      },\n      { version: '0.6.0', prs: [336], description: 'Added middleware.name attribute' },\n    ],\n  },\n  'navigation.origin': {\n    brief:\n      'The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise.',\n    type: 'string',\n    keys: ['router.navigation.origin', 'navigation.origin', 'sentry.sveltekit.navigation.from'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/users/:id',\n    deprecation: {\n      replacement: 'router.navigation.origin',\n      reason: 'Moved to the router.* namespace to separate client-side router navigations from browser navigations.',\n      status: 'backfill',\n    },\n    aliases: ['router.navigation.origin', 'sentry.sveltekit.navigation.from'],\n    changelog: [\n      { version: '0.22.0', prs: [600], description: 'Deprecated in favor of router.navigation.origin' },\n      { version: '0.16.0', prs: [467], description: 'Added navigation.origin attribute' },\n    ],\n  },\n  'navigation.route.id': {\n    brief:\n      'The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).',\n    type: 'string',\n    keys: ['router.navigation.route.id', 'navigation.route.id'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AboutView',\n    deprecation: {\n      replacement: 'router.navigation.route.id',\n      reason: 'Moved to the router.* namespace to separate client-side router navigations from browser navigations.',\n      status: 'backfill',\n    },\n    aliases: ['router.navigation.route.id'],\n    changelog: [\n      { version: '0.22.0', prs: [600], description: 'Deprecated in favor of router.navigation.route.id' },\n      { version: '0.16.0', prs: [468], description: 'Added navigation.route.id attribute' },\n    ],\n  },\n  'navigation.type': {\n    brief: 'The type of navigation done by a client-side router.',\n    type: 'string',\n    keys: ['router.navigation.type', 'navigation.type', 'sentry.sveltekit.navigation.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'router.push',\n    deprecation: {\n      replacement: 'router.navigation.type',\n      reason: 'Moved to the router.* namespace to separate client-side router navigations from browser navigations.',\n      status: 'backfill',\n    },\n    aliases: ['router.navigation.type', 'sentry.sveltekit.navigation.type'],\n    changelog: [\n      { version: '0.22.0', prs: [600], description: 'Deprecated in favor of router.navigation.type' },\n      { version: '0.16.0', prs: [467], description: 'Added new deprecated alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'nel.elapsed_time': {\n    brief:\n      'The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent.',\n    type: 'integer',\n    keys: ['nel.elapsed_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 100,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [68] },\n    ],\n  },\n  'nel.phase': {\n    brief: 'If request failed, the phase of its network error. If request succeeded, \"application\".',\n    type: 'string',\n    keys: ['nel.phase'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'application',\n    changelog: [{ version: '0.1.0', prs: [68, 127] }],\n  },\n  'nel.referrer': {\n    brief: \"request's referrer, as determined by the referrer policy associated with its client.\",\n    type: 'string',\n    keys: ['nel.referrer'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://example.com/foo?bar=baz',\n    changelog: [{ version: '0.1.0', prs: [68, 127] }],\n  },\n  'nel.sampling_fraction': {\n    brief: 'The sampling fraction used to determine if the request should be sampled.',\n    type: 'double',\n    keys: ['nel.sampling_fraction', 'nel.sampling_function'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.5,\n    examples: [0.5],\n    aliases: ['nel.sampling_function'],\n    changelog: [{ version: '0.26.0', prs: [668], description: 'Added nel.sampling_fraction attribute' }],\n  },\n  'nel.sampling_function': {\n    brief: 'The sampling function used to determine if the request should be sampled.',\n    type: 'double',\n    keys: ['nel.sampling_fraction', 'nel.sampling_function'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.5,\n    deprecation: {\n      replacement: 'nel.sampling_fraction',\n      reason: 'The correct name of this attribute is nel.sampling_fraction',\n      status: 'backfill',\n    },\n    aliases: ['nel.sampling_fraction'],\n    changelog: [\n      { version: '0.26.0', prs: [668], description: 'Deprecated in favor of nel.sampling_fraction' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [68] },\n    ],\n  },\n  'nel.type': {\n    brief: 'If request failed, the type of its network error. If request succeeded, \"ok\".',\n    type: 'string',\n    keys: ['nel.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'dns.unreachable',\n    changelog: [{ version: '0.1.0', prs: [68, 127] }],\n  },\n  'network.connection.effective_type': {\n    brief: 'Specifies the effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).',\n    type: 'string',\n    keys: ['network.connection.effective_type', 'effectiveConnectionType'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '4g',\n    aliases: ['effectiveConnectionType'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [279],\n        description: 'Added attribute network.connection.effective_type to be used instead of effectiveConnectionType',\n      },\n    ],\n  },\n  'network.connection.rtt': {\n    brief: 'Specifies the estimated effective round-trip time of the current connection, in milliseconds.',\n    type: 'integer',\n    keys: ['network.connection.rtt', 'connection.rtt'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 100,\n    aliases: ['connection.rtt'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [279],\n        description: 'Added attribute network.connection.rtt to be used instead of connection.rtt',\n      },\n    ],\n  },\n  'network.connection.type': {\n    brief: 'Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).',\n    type: 'string',\n    keys: ['network.connection.type', 'connectionType', 'device.connection_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'wifi',\n    aliases: ['device.connection_type', 'connectionType'],\n    changelog: [\n      {\n        version: '0.5.0',\n        prs: [279],\n        description: 'Added attribute network.connection.type to be used instead of connectionType',\n      },\n    ],\n  },\n  'network.local.address': {\n    brief: 'Local address of the network connection - IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['network.local.address', 'net.host.ip', 'net.sock.host.addr'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '10.1.2.80',\n    examples: ['10.1.2.80', '/var/run/my.sock'],\n    aliases: ['net.host.ip', 'net.sock.host.addr'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'network.local.port': {\n    brief: 'Local port number of the network connection.',\n    type: 'integer',\n    keys: ['network.local.port', 'net.sock.host.port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 65400,\n    aliases: ['net.sock.host.port'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'network.peer.address': {\n    brief: 'Peer address of the network connection - IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['network.peer.address', 'net.peer.ip', 'net.sock.peer.addr'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '10.1.2.80',\n    aliases: ['net.peer.ip', 'net.sock.peer.addr'],\n    changelog: [{ version: '0.1.0', prs: [108, 127] }, { version: '0.0.0' }],\n  },\n  'network.peer.port': {\n    brief: 'Peer port number of the network connection.',\n    type: 'integer',\n    keys: ['network.peer.port', 'net.sock.peer.port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 65400,\n    aliases: ['net.sock.peer.port'],\n    changelog: [\n      { version: '0.21.0', prs: [588], description: 'Added net.sock.peer.port as an alias' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n  },\n  'network.protocol.name': {\n    brief: 'OSI application layer or non-OSI equivalent.',\n    type: 'string',\n    keys: ['network.protocol.name', 'messaging.protocol', 'net.protocol.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'http',\n    examples: ['http'],\n    aliases: ['net.protocol.name', 'messaging.protocol'],\n    changelog: [\n      { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.resource.protocol alias' },\n      { version: '0.21.0', prs: [581], description: 'Added messaging.protocol as an alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'network.protocol.version': {\n    brief: 'The actual version of the protocol used for network communication.',\n    type: 'string',\n    keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1.1',\n    aliases: ['http.flavor', 'net.protocol.version', 'messaging.protocol_version'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version as an alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'network.transport': {\n    brief: 'OSI transport layer or inter-process communication method.',\n    type: 'string',\n    keys: ['network.transport'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'tcp',\n    examples: ['tcp'],\n    aliases: ['net.transport'],\n    changelog: [\n      { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.transport alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'network.type': {\n    brief: 'OSI network layer or non-OSI equivalent.',\n    type: 'string',\n    keys: ['network.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'ipv4',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'net.host.ip': {\n    brief: 'Local address of the network connection - IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['network.local.address', 'net.host.ip', 'net.sock.host.addr'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '192.168.0.1',\n    deprecation: {\n      replacement: 'network.local.address',\n      status: 'backfill',\n    },\n    aliases: ['network.local.address', 'net.sock.host.addr'],\n    changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n  },\n  'net.host.name': {\n    brief:\n      'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    deprecation: {\n      replacement: 'server.address',\n      status: 'backfill',\n    },\n    aliases: ['address', 'server.address', 'http.server_name', 'http.host', 'server_name', 'net.peer.name'],\n    changelog: [\n      { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n      { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n      { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n      { version: '0.1.0', prs: [61, 108, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'net.host.port': {\n    brief: 'Server port number.',\n    type: 'integer',\n    keys: ['server.port', 'net.host.port', 'port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 1337,\n    deprecation: {\n      replacement: 'server.port',\n      status: 'backfill',\n    },\n    aliases: ['server.port', 'port'],\n    changelog: [\n      { version: '0.19.0', prs: [532], description: 'Added port as an alias' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n  },\n  'net.peer.ip': {\n    brief: 'Peer address of the network connection - IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['network.peer.address', 'net.peer.ip', 'net.sock.peer.addr'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '192.168.0.1',\n    deprecation: {\n      replacement: 'network.peer.address',\n      status: 'backfill',\n    },\n    aliases: ['network.peer.address', 'net.sock.peer.addr'],\n    changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n  },\n  'net.peer.name': {\n    brief:\n      'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['net.peer.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    deprecation: {\n      replacement: 'server.address',\n      reason: 'Deprecated, use server.address on client spans and client.address on server spans.',\n    },\n    aliases: ['address', 'server.address', 'http.server_name', 'net.host.name', 'http.host', 'server_name'],\n    changelog: [\n      { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n      { version: '0.21.0', prs: [588, 602], description: 'Added the server.address alias group to net.peer.name' },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'net.peer.port': {\n    brief: 'Peer port number.',\n    type: 'integer',\n    keys: ['net.peer.port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 1337,\n    deprecation: {\n      replacement: 'server.port',\n      reason: 'Deprecated, use server.port on client spans and client.port on server spans.',\n    },\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n  },\n  'net.protocol.name': {\n    brief: 'OSI application layer or non-OSI equivalent.',\n    type: 'string',\n    keys: ['network.protocol.name', 'messaging.protocol', 'net.protocol.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'http',\n    examples: ['http'],\n    deprecation: {\n      replacement: 'network.protocol.name',\n      status: 'backfill',\n    },\n    aliases: ['network.protocol.name', 'messaging.protocol'],\n    changelog: [\n      { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.resource.protocol alias' },\n      { version: '0.21.0', prs: [581], description: 'Added messaging.protocol as an alias' },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'net.protocol.version': {\n    brief: 'The actual version of the protocol used for network communication.',\n    type: 'string',\n    keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1.1',\n    deprecation: {\n      replacement: 'network.protocol.version',\n      status: 'backfill',\n    },\n    aliases: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version as an alias' },\n      { version: '0.1.0', prs: [61, 108, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'net.sock.family': {\n    brief: 'OSI transport and network layer',\n    type: 'string',\n    keys: ['net.sock.family'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'inet',\n    deprecation: {\n      replacement: 'network.transport',\n      reason: 'Deprecated, use network.transport and network.type.',\n    },\n    changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n  },\n  'net.sock.host.addr': {\n    brief: 'Local address of the network connection mapping to Unix domain socket name.',\n    type: 'string',\n    keys: ['network.local.address', 'net.host.ip', 'net.sock.host.addr'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/var/my.sock',\n    deprecation: {\n      replacement: 'network.local.address',\n      status: 'backfill',\n    },\n    aliases: ['network.local.address', 'net.host.ip'],\n    changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n  },\n  'net.sock.host.port': {\n    brief: 'Local port number of the network connection.',\n    type: 'integer',\n    keys: ['network.local.port', 'net.sock.host.port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 8080,\n    deprecation: {\n      replacement: 'network.local.port',\n      status: 'backfill',\n    },\n    aliases: ['network.local.port'],\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n  },\n  'net.sock.peer.addr': {\n    brief: 'Peer address of the network connection - IP address',\n    type: 'string',\n    keys: ['network.peer.address', 'net.peer.ip', 'net.sock.peer.addr'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '192.168.0.1',\n    deprecation: {\n      replacement: 'network.peer.address',\n      status: 'backfill',\n    },\n    aliases: ['network.peer.address', 'net.peer.ip'],\n    changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n  },\n  'net.sock.peer.name': {\n    brief: 'Peer address of the network connection - Unix domain socket name',\n    type: 'string',\n    keys: ['net.sock.peer.name'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/var/my.sock',\n    deprecation: {\n      reason: 'Deprecated from OTEL, no replacement at this time',\n    },\n    changelog: [{ version: '0.1.0', prs: [61, 119, 127] }, { version: '0.0.0' }],\n  },\n  'net.sock.peer.port': {\n    brief: 'Peer port number of the network connection.',\n    type: 'integer',\n    keys: ['network.peer.port', 'net.sock.peer.port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 8080,\n    deprecation: {\n      replacement: 'network.peer.port',\n      status: 'backfill',\n    },\n    aliases: ['network.peer.port'],\n    changelog: [\n      { version: '0.21.0', prs: [588], description: 'Added network.peer.port as an alias' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n  },\n  'net.transport': {\n    brief: 'OSI transport layer or inter-process communication method.',\n    type: 'string',\n    keys: ['net.transport'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'tcp',\n    examples: ['tcp'],\n    deprecation: {\n      replacement: 'network.transport',\n      reason:\n        'This attribute is being deprecated in favor of network.transport. The values change from ip_tcp and ip_udp to tcp and udp, so the old value cannot be copied over.',\n    },\n    aliases: ['network.transport'],\n    changelog: [\n      { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.transport alias' },\n      {\n        version: '0.21.0',\n        prs: [588],\n        description: 'Set net.transport to _status null, because its values change on the replacement',\n      },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'os.build': {\n    brief: 'The build ID of the operating system.',\n    type: 'string',\n    keys: ['os.build_id', 'os.build'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1234567890',\n    deprecation: {\n      replacement: 'os.build_id',\n      status: 'backfill',\n    },\n    aliases: ['os.build_id'],\n    changelog: [\n      { version: '0.5.0', prs: [301], description: 'Added os.build attribute, deprecated in favor of os.build_id' },\n    ],\n  },\n  'os.build_id': {\n    brief: 'The build ID of the operating system.',\n    type: 'string',\n    keys: ['os.build_id', 'os.build'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1234567890',\n    aliases: ['os.build'],\n    changelog: [\n      { version: '0.5.0', prs: [301], description: 'Added os.build as alias' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'os.description': {\n    brief:\n      'Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands.',\n    type: 'string',\n    keys: ['os.description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Ubuntu 18.04.1 LTS',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'os.kernel_version': {\n    brief: 'An independent kernel version string. Typically the entire output of the `uname` syscall.',\n    type: 'string',\n    keys: ['os.kernel_version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '20.2.0',\n    changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.kernel_version attribute' }],\n  },\n  'os.name': {\n    brief: 'Human readable operating system name.',\n    type: 'string',\n    keys: ['os.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Ubuntu',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'os.raw_description': {\n    brief:\n      'An unprocessed description string obtained by the operating system. For some well-known runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are not explicitly given.',\n    type: 'string',\n    keys: ['os.raw_description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Ubuntu 22.04.4 LTS (Jammy Jellyfish)',\n    changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.raw_description attribute' }],\n  },\n  'os.rooted': {\n    brief: 'Whether the operating system has been jailbroken or rooted.',\n    type: 'boolean',\n    keys: ['os.rooted'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.rooted attribute' }],\n  },\n  'os.theme': {\n    brief: 'Whether the OS runs in dark mode or light mode.',\n    type: 'string',\n    keys: ['os.theme'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'dark',\n    changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.theme attribute' }],\n  },\n  'os.type': {\n    brief: 'The operating system type.',\n    type: 'string',\n    keys: ['os.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'linux',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'os.version': {\n    brief: 'The version of the operating system.',\n    type: 'string',\n    keys: ['os.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '18.04.2',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'otel.kind': {\n    brief:\n      'The span kind (https://opentelemetry.io/docs/concepts/signals/traces/#span-kind). Deprecated, use `sentry.kind` instead.',\n    type: 'string',\n    keys: ['sentry.kind', 'span.kind', 'otel.kind'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'SERVER',\n    deprecation: {\n      replacement: 'sentry.kind',\n      reason: 'Deprecated in favor of sentry.kind',\n      status: 'backfill',\n    },\n    aliases: ['sentry.kind'],\n    changelog: [{ version: '0.13.0', prs: [440], description: 'Added otel.kind attribute' }],\n  },\n  'otel.scope.name': {\n    brief: 'The name of the instrumentation scope - (InstrumentationScope.Name in OTLP).',\n    type: 'string',\n    keys: ['otel.scope.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'io.opentelemetry.contrib.mongodb',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'otel.scope.version': {\n    brief: 'The version of the instrumentation scope - (InstrumentationScope.Version in OTLP).',\n    type: 'string',\n    keys: ['otel.scope.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '2.4.5',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'otel.status_code': {\n    brief: 'Name of the code, either “OK” or “ERROR”. MUST NOT be set if the status code is UNSET.',\n    type: 'string',\n    keys: ['otel.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'OK',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'otel.status_description': {\n    brief: 'Description of the Status if it has a value, otherwise not set.',\n    type: 'string',\n    keys: ['otel.status_description'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'resource not found',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'page.server_rendering.type': {\n    brief:\n      'Set on a pageload span. Describes how the server rendered the content of the page: to reuse it for other requests, only for this request, or a mix of both.',\n    type: 'string',\n    keys: ['page.server_rendering.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'static',\n    examples: ['static', 'partially_static', 'dynamic'],\n    changelog: [{ version: '0.31.0', prs: [740], description: 'Added page.server_rendering.type attribute' }],\n    additionalContext: [\n      'Set only by an SDK that controls the server render, and only when the SDK knows the value.',\n      'More values can be added later.',\n      'Not set when the browser renders the content of the page (client-side rendering), or when the SDK does not know the value.',\n      'With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace.',\n      \"Describes how the server rendered the page, not how the page was delivered. A CDN or the browser cache can reuse a response with any value. For the browser's own [prerendering](https://developer.mozilla.org/en-US/docs/Web/API/Document/prerendering), see `browser.navigation.type`.\",\n    ],\n  },\n  'params.<key>': {\n    brief:\n      'Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.',\n    type: 'string',\n    keys: ['params.<key>', 'url.path.parameter.<key>', 'url.path.params.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"params.id='123'\",\n    aliases: ['url.path.parameter.<key>', 'url.path.params.<key>'],\n    changelog: [\n      { version: '0.21.0', prs: [586], description: 'Added url.path.params.<key> as an alias' },\n      { version: '0.1.0', prs: [103] },\n    ],\n  },\n  'performance.activationStart': {\n    brief: 'The time between initiating a navigation to a page and the browser activating the page',\n    type: 'double',\n    keys: ['browser.performance.navigation.activation_start', 'performance.activationStart'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1.983,\n    deprecation: {\n      replacement: 'browser.performance.navigation.activation_start',\n      reason: 'The activationStart is now recorded as the browser.performance.navigation.activation_start attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.performance.navigation.activation_start'],\n    changelog: [{ version: '0.5.0', prs: [321], description: 'Added performance.activationStart attribute' }],\n  },\n  'performance.timeOrigin': {\n    brief: \"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated\",\n    type: 'double',\n    keys: ['browser.performance.time_origin', 'performance.timeOrigin'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1776185678.886,\n    deprecation: {\n      replacement: 'browser.performance.time_origin',\n      reason: 'The timeOrigin is now recorded as the browser.performance.time_origin attribute.',\n      status: 'backfill',\n    },\n    aliases: ['browser.performance.time_origin'],\n    changelog: [{ version: '0.5.0', prs: [321], description: 'Added performance.timeOrigin attribute' }],\n  },\n  port: {\n    brief: 'The destination port for a TCP connection.',\n    type: 'integer',\n    keys: ['server.port', 'net.host.port', 'port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1337,\n    examples: [1337],\n    deprecation: {\n      replacement: 'server.port',\n      reason: 'Old namespace-less attribute, to be replaced with server.port for span-first future',\n      status: 'backfill',\n    },\n    aliases: ['server.port', 'net.host.port'],\n    changelog: [{ version: '0.19.0', prs: [532], description: 'Added port attribute' }],\n  },\n  previous_route: {\n    brief: 'Also used by mobile SDKs to indicate the previous route in the application.',\n    type: 'string',\n    keys: ['previous_route'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'HomeScreen',\n    changelog: [{ version: '0.1.0', prs: [74] }, { version: '0.0.0' }],\n  },\n  'process.command_args': {\n    brief: 'All the command arguments (including the command/executable itself) as received by the process.',\n    type: 'string[]',\n    keys: ['process.command_args'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['cmd/otecol', '--config=config.yaml'],\n    changelog: [{ version: '0.6.0', prs: [327], description: 'Added process.command_args attribute' }],\n  },\n  'process.executable.name': {\n    brief: 'The name of the executable that started the process.',\n    type: 'string',\n    keys: ['process.executable.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'getsentry',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'process.pid': {\n    brief: 'The process ID of the running process.',\n    type: 'integer',\n    keys: ['process.pid', 'subprocess.pid'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 12345,\n    aliases: ['subprocess.pid'],\n    changelog: [\n      { version: '0.19.0', prs: [487], description: 'Added subprocess.pid as an alias' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n  },\n  'process.runtime.description': {\n    brief:\n      'An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. Equivalent to `raw_description` in the Sentry runtime context.',\n    type: 'string',\n    keys: ['process.runtime.description', 'runtime.raw_description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'Eclipse OpenJ9 VM openj9-0.21.0',\n    aliases: ['runtime.raw_description'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'process.runtime.engine.name': {\n    brief: 'The name of the runtime engine.',\n    type: 'string',\n    keys: ['process.runtime.engine.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'v8',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'process.runtime.engine.version': {\n    brief: 'The version of the runtime engine.',\n    type: 'string',\n    keys: ['process.runtime.engine.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '12.9.202.13-rusty',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'process.runtime.name': {\n    brief: 'The name of the runtime. Equivalent to `name` in the Sentry runtime context.',\n    type: 'string',\n    keys: ['process.runtime.name', 'runtime.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'node',\n    aliases: ['runtime.name'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'process.runtime.version': {\n    brief:\n      'The version of the runtime of this process, as returned by the runtime without modification. Equivalent to `version` in the Sentry runtime context.',\n    type: 'string',\n    keys: ['process.runtime.version', 'runtime.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '18.04.2',\n    aliases: ['runtime.version'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  profile_id: {\n    brief:\n      'The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling.',\n    type: 'string',\n    keys: ['sentry.profile_id', 'profile.id', 'profile_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '123e4567e89b12d3a456426614174000',\n    deprecation: {\n      replacement: 'sentry.profile_id',\n      status: 'normalize',\n    },\n    aliases: ['sentry.profile_id'],\n    changelog: [{ version: '0.19.0', prs: [497], description: 'Added profile_id attribute' }],\n  },\n  query: {\n    brief: 'The database query being executed.',\n    type: 'string',\n    keys: ['db.query.text', 'db.statement', 'query'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'SELECT * FROM users WHERE id = $1',\n    examples: ['SELECT * FROM users WHERE id = $1'],\n    deprecation: {\n      replacement: 'db.query.text',\n      reason:\n        'While this attribute never specifically required parameterization, the replacement, db.query.text, does.',\n      status: 'backfill',\n    },\n    aliases: ['db.query.text', 'db.statement'],\n    changelog: [{ version: '0.19.0', prs: [530], description: 'Added query attribute' }],\n  },\n  'query.<key>': {\n    brief: 'An item in a query string. Usually added by client-side routing frameworks like vue-router.',\n    type: 'string',\n    keys: ['query.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"query.id='123'\",\n    deprecation: {\n      replacement: 'url.query',\n      reason: 'Instead of sending items individually in query.<key>, they should be sent all together with url.query.',\n    },\n    changelog: [{ version: '0.1.0', prs: [103] }],\n  },\n  'react_native.architecture': {\n    brief:\n      'The React Native architecture the app is running on. `new` for the New Architecture, where native modules are resolved as TurboModules through `TurboModuleRegistry`, `legacy` for the Old Architecture bridge.',\n    type: 'string',\n    keys: ['react_native.architecture', 'turbo_module.arch'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'new',\n    examples: ['new', 'legacy'],\n    aliases: ['turbo_module.arch'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.architecture attribute' }],\n  },\n  'react_native.module.call.count': {\n    brief: 'The number of native module calls observed during the lifetime of the span.',\n    type: 'integer',\n    keys: ['react_native.module.call.count', 'turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 42,\n    examples: [42],\n    aliases: ['turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.call.count attribute' }],\n  },\n  'react_native.module.call.distinct_count': {\n    brief:\n      'The number of distinct native module and method pairs called during the lifetime of the span. Useful as a cardinality signal when the per-method breakdown has been truncated.',\n    type: 'integer',\n    keys: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 7,\n    examples: [7],\n    aliases: ['turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n    changelog: [\n      { version: '0.24.0', prs: [564], description: 'Added react_native.module.call.distinct_count attribute' },\n    ],\n  },\n  'react_native.module.duration.max': {\n    brief:\n      'The duration of the slowest single native module call observed during the lifetime of the span, in milliseconds.',\n    type: 'double',\n    keys: ['react_native.module.duration.max'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 512.5,\n    examples: [512.5],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.duration.max attribute' }],\n  },\n  'react_native.module.duration.total': {\n    brief:\n      'The combined wall-clock duration of all native module calls observed during the lifetime of the span, in milliseconds. Calls overlap, so this can exceed the span duration.',\n    type: 'double',\n    keys: ['react_native.module.duration.total', 'turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 128.45,\n    examples: [128.45],\n    aliases: ['turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.duration.total attribute' }],\n  },\n  'react_native.module.error.count': {\n    brief:\n      'The number of native module calls that failed during the lifetime of the span. A call counts as failed when it threw, rejected, or — on the Old Architecture bridge only — invoked its failure callback.',\n    type: 'integer',\n    keys: ['react_native.module.error.count', 'turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2,\n    examples: [2],\n    aliases: ['turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.error.count attribute' }],\n  },\n  'react_native.module.kind': {\n    brief:\n      'Whether the native module call completed synchronously or reported completion later through a Promise or a callback. One of `sync` or `async`.',\n    type: 'string',\n    keys: ['react_native.module.kind'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'sync',\n    examples: ['sync', 'async'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.kind attribute' }],\n  },\n  'react_native.module.method': {\n    brief: 'The name of the native module method that was called.',\n    type: 'string',\n    keys: ['react_native.module.method', 'turbo_module.method'],\n    applyScrubbing: {\n      key: 'manual',\n      reason:\n        'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'getUniqueId',\n    examples: ['getUniqueId'],\n    aliases: ['turbo_module.method'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.method attribute' }],\n  },\n  'react_native.module.name': {\n    brief:\n      'The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key.',\n    type: 'string',\n    keys: ['react_native.module.name', 'turbo_module.name'],\n    applyScrubbing: {\n      key: 'manual',\n      reason:\n        'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'RNDeviceInfo',\n    examples: ['RNDeviceInfo'],\n    aliases: ['turbo_module.name'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.name attribute' }],\n  },\n  'react_native.module.top.duration': {\n    brief: 'The total duration attributed to `react_native.module.top.name`, in milliseconds.',\n    type: 'double',\n    keys: ['react_native.module.top.duration', 'turbo_module.top_module_duration_ms'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 87.25,\n    examples: [87.25],\n    aliases: ['turbo_module.top_module_duration_ms'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.top.duration attribute' }],\n  },\n  'react_native.module.top.name': {\n    brief:\n      'The native module and method that accounted for the most total duration during the lifetime of the span, formatted as `<module>.<method>`.',\n    type: 'string',\n    keys: ['react_native.module.top.name', 'turbo_module.top_module'],\n    applyScrubbing: {\n      key: 'manual',\n      reason:\n        'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'RNDeviceInfo.getUniqueId',\n    examples: ['RNDeviceInfo.getUniqueId'],\n    aliases: ['turbo_module.top_module'],\n    changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.top.name attribute' }],\n  },\n  'react.version': {\n    brief: 'The version of the React framework',\n    type: 'string',\n    keys: ['react.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '18.2.0',\n    changelog: [{ version: '0.7.0', prs: [368], description: 'Added react.version attribute' }],\n  },\n  'redis.command': {\n    brief: 'The name of the Redis operation being executed.',\n    type: 'string',\n    keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'SELECT',\n    examples: ['SELECT'],\n    deprecation: {\n      replacement: 'db.operation.name',\n      status: 'backfill',\n    },\n    aliases: ['cloudflare.d1.query_type', 'db.operation.name', 'db.operation'],\n    changelog: [{ version: '0.19.0', prs: [531], description: 'Added redis.command attribute' }],\n  },\n  'redis.key': {\n    brief: 'The key the Redis command is operating on.',\n    type: 'string',\n    keys: ['db.redis.key', 'redis.key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user:2047:city',\n    deprecation: {\n      replacement: 'db.redis.key',\n      reason: 'This attribute is being deprecated in favor of db.redis.key, which is the preferred replacement.',\n      status: 'backfill',\n    },\n    aliases: ['db.redis.key'],\n    changelog: [\n      { version: '0.19.0', prs: [484], description: 'Added redis.key attribute, deprecated in favor of db.redis.key' },\n    ],\n  },\n  release: {\n    brief: 'The sentry release.',\n    type: 'string',\n    keys: ['sentry.release', 'release', 'service.version'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'production',\n    deprecation: {\n      replacement: 'sentry.release',\n      status: 'normalize',\n    },\n    aliases: ['sentry.release'],\n    changelog: [\n      { version: '0.19.0', prs: [497], description: 'Configured normalization' },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'remix.action_form_data.<key>': {\n    brief: 'Remix form data, <key> being the form data key, the value being the form data value.',\n    type: 'string',\n    keys: ['remix.action_form_data.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"http.response.header.text='test'\",\n    changelog: [{ version: '0.1.0', prs: [103] }],\n  },\n  replayId: {\n    brief: 'The id of the sentry replay.',\n    type: 'string',\n    keys: ['replayId'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '123e4567e89b12d3a456426614174000',\n    deprecation: {\n      replacement: 'sentry.replay_id',\n    },\n    aliases: ['sentry.replay_id'],\n    changelog: [{ version: '0.24.0', prs: [401] }],\n  },\n  replay_id: {\n    brief: 'The id of the sentry replay.',\n    type: 'string',\n    keys: ['sentry.replay_id', 'replay.id', 'replay_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '123e4567e89b12d3a456426614174000',\n    deprecation: {\n      replacement: 'sentry.replay_id',\n      status: 'normalize',\n    },\n    aliases: ['sentry.replay_id'],\n    changelog: [\n      { version: '0.19.0', prs: [497], description: 'Configured normalization' },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n  },\n  'resource.deployment.environment': {\n    brief: 'The software deployment environment name.',\n    type: 'string',\n    keys: [\n      'sentry.environment',\n      'environment',\n      'resource.deployment.environment',\n      'resource.deployment.environment.name',\n    ],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'production',\n    deprecation: {\n      replacement: 'sentry.environment',\n      status: 'backfill',\n    },\n    changelog: [{ version: '0.5.0', prs: [266] }],\n  },\n  'resource.deployment.environment.name': {\n    brief: 'The software deployment environment name.',\n    type: 'string',\n    keys: [\n      'sentry.environment',\n      'environment',\n      'resource.deployment.environment',\n      'resource.deployment.environment.name',\n    ],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'production',\n    deprecation: {\n      replacement: 'sentry.environment',\n      status: 'backfill',\n    },\n    changelog: [{ version: '0.3.1', prs: [196] }],\n  },\n  'resource.render_blocking_status': {\n    brief: 'The render blocking status of the resource.',\n    type: 'string',\n    keys: ['resource.render_blocking_status'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'non-blocking',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  route: {\n    brief:\n      'The matched route, that is, the path template in the format used by the respective server framework. Also used by mobile SDKs to indicate the current route in the application.',\n    type: 'string',\n    keys: ['route'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'App\\\\Controller::indexAction',\n    deprecation: {\n      replacement: 'http.route',\n    },\n    aliases: ['http.route'],\n    changelog: [{ version: '0.1.0', prs: [61, 74] }, { version: '0.0.0' }],\n  },\n  'router.navigation.origin': {\n    brief:\n      'The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise.',\n    type: 'string',\n    keys: ['router.navigation.origin', 'navigation.origin', 'sentry.sveltekit.navigation.from'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/users/:id',\n    aliases: ['navigation.origin', 'sentry.sveltekit.navigation.from'],\n    changelog: [\n      {\n        version: '0.22.0',\n        prs: [600],\n        description: 'Added router.navigation.origin attribute, replacing navigation.origin',\n      },\n    ],\n  },\n  'router.navigation.route.id': {\n    brief:\n      'The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).',\n    type: 'string',\n    keys: ['router.navigation.route.id', 'navigation.route.id'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AboutView',\n    aliases: ['navigation.route.id'],\n    changelog: [\n      {\n        version: '0.22.0',\n        prs: [600],\n        description: 'Added router.navigation.route.id attribute, replacing navigation.route.id',\n      },\n    ],\n  },\n  'router.navigation.type': {\n    brief: 'The type of navigation done by a client-side router.',\n    type: 'string',\n    keys: ['router.navigation.type', 'navigation.type', 'sentry.sveltekit.navigation.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'router.push',\n    aliases: ['navigation.type', 'sentry.sveltekit.navigation.type'],\n    changelog: [\n      {\n        version: '0.22.0',\n        prs: [600],\n        description: 'Added router.navigation.type attribute, replacing navigation.type',\n      },\n    ],\n  },\n  'rpc.grpc.status_code': {\n    brief: 'The numeric status code of the gRPC request.',\n    type: 'integer',\n    keys: ['rpc.grpc.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 2,\n    deprecation: {\n      replacement: 'rpc.response.status_code',\n      reason:\n        'Cannot be automatically backfilled due to type mismatch (integer vs string); rpc.grpc.status_code is a numeric gRPC status code while rpc.response.status_code is the string status name.',\n    },\n    aliases: ['code', 'rpc.response.status_code'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [494, 533],\n        description: 'Deprecated rpc.grpc.status_code in favor of rpc.response.status_code',\n      },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n  },\n  'rpc.method': {\n    brief: 'The fully-qualified logical name of the method from the RPC interface perspective.',\n    type: 'string',\n    keys: ['rpc.method', 'aws.operation_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'com.example.ExampleService/exampleMethod',\n    examples: ['com.example.ExampleService/exampleMethod', 'GetObject'],\n    aliases: ['aws.operation_name'],\n    changelog: [\n      { version: '0.29.0', prs: [707], description: 'Added AWS SDK example and additional context' },\n      { version: '0.19.0', prs: [536], description: 'Added aws.operation_name as an alias' },\n      { version: '0.7.0', prs: [351], description: 'Added rpc.method attribute' },\n    ],\n    additionalContext: ['For AWS SDK calls, this is the operation name only, as the SDK reports it, e.g. `GetObject`.'],\n  },\n  'rpc.response.status_code': {\n    brief: 'Status code of the RPC returned by the RPC server or generated by the client.',\n    type: 'string',\n    keys: ['rpc.response.status_code', 'code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'DEADLINE_EXCEEDED',\n    aliases: ['code', 'rpc.grpc.status_code'],\n    changelog: [\n      { version: '0.19.0', prs: [494, 533], description: 'Added code and rpc.grpc.status_code as aliases' },\n      { version: '0.7.0', prs: [352], description: 'Added rpc.response.status_code attribute' },\n    ],\n  },\n  'rpc.service': {\n    brief: 'The full (logical) name of the service being called, including its package name, if applicable.',\n    type: 'string',\n    keys: ['rpc.service'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'myService.BestService',\n    examples: ['myService.BestService', 'S3', 'APIGateway'],\n    changelog: [\n      { version: '0.29.0', prs: [707], description: 'Added AWS SDK examples' },\n      { version: '0.28.0', prs: [714], description: 'Added additional context about the OpenTelemetry deprecation' },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'Deprecated in OpenTelemetry for generic RPC spans. The value should be included in `rpc.method`, which is expected to be the fully-qualified name.',\n      'Still set on AWS SDK spans, where it holds the AWS service ID with all whitespace removed (e.g. `S3`, `APIGateway` for `API Gateway`) and `rpc.method` is set to the operation (e.g. `GetObject`).',\n    ],\n  },\n  'rpc.system': {\n    brief: 'A string identifying the remoting system.',\n    type: 'string',\n    keys: ['rpc.system.name', 'rpc.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'aws-api',\n    deprecation: {\n      replacement: 'rpc.system.name',\n      reason: 'This attribute is being deprecated in favor of rpc.system.name, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['rpc.system.name'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [482],\n        description: 'Added rpc.system attribute, deprecated in favor of rpc.system.name',\n      },\n    ],\n  },\n  'rpc.system.name': {\n    brief: 'A string identifying the remoting system.',\n    type: 'string',\n    keys: ['rpc.system.name', 'rpc.system'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'aws-api',\n    aliases: ['rpc.system'],\n    changelog: [{ version: '0.16.0', prs: [482], description: 'Added rpc.system.name attribute' }],\n  },\n  'runtime.build': {\n    brief: 'The application build string, when it is separate from the version.',\n    type: 'string',\n    keys: ['runtime.build'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'stable',\n    deprecation: {\n      reason:\n        'The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute.',\n    },\n    changelog: [{ version: '0.11.0', prs: [383], description: 'Added and deprecated runtime.build attribute' }],\n  },\n  'runtime.name': {\n    brief: 'The name of the runtime. For example node, CPython, or rustc.',\n    type: 'string',\n    keys: ['process.runtime.name', 'runtime.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'node',\n    deprecation: {\n      replacement: 'process.runtime.name',\n      reason: 'Prefer OTel-aligned process.runtime.name',\n      status: 'backfill',\n    },\n    aliases: ['process.runtime.name'],\n    changelog: [\n      {\n        version: '0.11.0',\n        prs: [383],\n        description: 'Added and deprecated runtime.name attribute in favor of process.runtime.name',\n      },\n    ],\n  },\n  'runtime.raw_description': {\n    brief:\n      'Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.',\n    type: 'string',\n    keys: ['process.runtime.description', 'runtime.raw_description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Eclipse OpenJ9 VM openj9-0.21.0',\n    deprecation: {\n      replacement: 'process.runtime.description',\n      reason: 'Prefer OTel-aligned process.runtime.description',\n      status: 'backfill',\n    },\n    aliases: ['process.runtime.description'],\n    changelog: [\n      {\n        version: '0.11.0',\n        prs: [383],\n        description: 'Added and deprecated runtime.raw_description attribute in favor of process.runtime.description',\n      },\n    ],\n  },\n  'runtime.version': {\n    brief: 'The version of the runtime.',\n    type: 'string',\n    keys: ['process.runtime.version', 'runtime.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '18.04.2',\n    deprecation: {\n      replacement: 'process.runtime.version',\n      reason: 'Prefer OTel-aligned process.runtime.version',\n      status: 'backfill',\n    },\n    aliases: ['process.runtime.version'],\n    changelog: [\n      {\n        version: '0.11.0',\n        prs: [383],\n        description: 'Added and deprecated runtime.version attribute in favor of process.runtime.version',\n      },\n    ],\n  },\n  'score.<key>': {\n    brief:\n      'The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`.',\n    type: 'double',\n    keys: ['score.<key>'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: 'score.cls=0.1723',\n    changelog: [{ version: '0.7.0', prs: [355], description: 'Added score.<key> attribute' }],\n  },\n  'score.ratio.<key>': {\n    brief: 'The score for a web vital, normalized to a number between 0 and 1.',\n    type: 'double',\n    keys: ['score.ratio.<key>'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: 'score.ratio.inp=0.7748',\n    changelog: [{ version: '0.7.0', prs: [355], description: 'Added score.ratio.<key> attribute' }],\n  },\n  'score.total': {\n    brief:\n      'The total performance score of a span. This is the sum of individual weighted web vital scores (see `score.<key>`).',\n    type: 'double',\n    keys: ['score.total'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    changelog: [{ version: '0.7.0', prs: [355], description: 'Added score.total attribute' }],\n  },\n  'score.weight.<key>': {\n    brief: \"The relative weight of a web vital in a span's performance score.\",\n    type: 'double',\n    keys: ['score.weight.<key>'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: 'score.weight.fcp=0.25',\n    changelog: [{ version: '0.7.0', prs: [355], description: 'Added score.weight.<key> attribute' }],\n  },\n  'sentry.action': {\n    brief:\n      'Used as a generic attribute representing the action depending on the type of span. For instance, this is the database query operation for DB spans, and the request method for HTTP spans.',\n    type: 'string',\n    keys: ['sentry.action', 'span.action'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'SELECT',\n    changelog: [{ version: '0.4.0', prs: [212] }],\n    searchAlias: {\n      name: 'span.action',\n    },\n  },\n  'sentry.browser.name': {\n    brief: 'The name of the browser.',\n    type: 'string',\n    keys: ['browser.name', 'sentry.browser.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Chrome',\n    deprecation: {\n      replacement: 'browser.name',\n      status: 'backfill',\n    },\n    aliases: ['browser.name'],\n    changelog: [{ version: '0.1.0', prs: [139] }],\n    searchAlias: {\n      name: 'browser.name',\n    },\n  },\n  'sentry.browser.version': {\n    brief: 'The version of the browser.',\n    type: 'string',\n    keys: ['browser.version', 'sentry.browser.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '120.0.6099.130',\n    deprecation: {\n      replacement: 'browser.version',\n      status: 'backfill',\n    },\n    aliases: ['browser.version'],\n    changelog: [{ version: '0.1.0', prs: [139] }],\n  },\n  'sentry.cancellation_reason': {\n    brief: 'The reason why a span ended early.',\n    type: 'string',\n    keys: ['sentry.cancellation_reason'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'document.hidden',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'sentry.category': {\n    brief:\n      'The high-level category of a span, derived from the span operation or span attributes. This categorizes spans by their general purpose (e.g., database, HTTP, UI).',\n    type: 'string',\n    keys: ['sentry.category', 'span.category'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'db',\n    changelog: [\n      { version: '0.28.0', prs: [721], description: 'Added object to the enum values' },\n      { version: '0.4.0', prs: [218] },\n    ],\n    searchAlias: {\n      name: 'span.category',\n    },\n  },\n  'sentry.client_sample_rate': {\n    brief: 'Rate at which a span was sampled in the SDK.',\n    type: 'double',\n    keys: ['sentry.client_sample_rate', 'client_sample_rate'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.5,\n    changelog: [{ version: '0.1.0', prs: [102] }],\n    searchAlias: {\n      name: 'client_sample_rate',\n    },\n  },\n  'sentry.description': {\n    brief: 'The human-readable description of a span.',\n    type: 'string',\n    keys: ['sentry.description'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'index view query',\n    changelog: [{ version: '0.1.0', prs: [135] }],\n  },\n  'sentry.dist': {\n    brief: 'The sentry dist.',\n    type: 'string',\n    keys: ['sentry.dist', 'dist'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1.0',\n    aliases: ['dist'],\n    changelog: [{ version: '0.16.0', prs: [489], description: 'Added dist as an alias' }, { version: '0.0.0' }],\n  },\n  'sentry.domain': {\n    brief:\n      'Used as a generic attribute representing the domain depending on the type of span. For instance, this is the collection/table name for database spans, and the server address for HTTP spans.',\n    type: 'string',\n    keys: ['sentry.domain', 'span.domain'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'example.com',\n    changelog: [{ version: '0.4.0', prs: [212] }],\n    searchAlias: {\n      name: 'span.domain',\n    },\n  },\n  'sentry.dsc.environment': {\n    brief: 'The environment from the dynamic sampling context.',\n    type: 'string',\n    keys: ['sentry.dsc.environment'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: 'prod',\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.dsc.project_id': {\n    brief:\n      'The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.',\n    type: 'string',\n    keys: ['sentry.dsc.project_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: '12345',\n    changelog: [{ version: '0.7.0', prs: [358], description: 'Add sentry.dsc.project_id as an attribute' }],\n  },\n  'sentry.dsc.public_key': {\n    brief: 'The public key from the dynamic sampling context.',\n    type: 'string',\n    keys: ['sentry.dsc.public_key'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: 'c51734c603c4430eb57cb0a5728a479d',\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.dsc.release': {\n    brief: 'The release identifier from the dynamic sampling context.',\n    type: 'string',\n    keys: ['sentry.dsc.release'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: 'frontend@e8211be71b214afab5b85de4b4c54be3714952bb',\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.dsc.sampled': {\n    brief: 'Whether the event was sampled according to the dynamic sampling context.',\n    type: 'boolean',\n    keys: ['sentry.dsc.sampled'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: true,\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.dsc.sample_rate': {\n    brief: 'The sample rate from the dynamic sampling context.',\n    type: 'string',\n    keys: ['sentry.dsc.sample_rate'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: '1.0',\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.dsc.trace_id': {\n    brief: 'The trace ID from the dynamic sampling context.',\n    type: 'string',\n    keys: ['sentry.dsc.trace_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: '047372980460430cbc78d9779df33a46',\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.dsc.transaction': {\n    brief: 'The transaction name from the dynamic sampling context.',\n    type: 'string',\n    keys: ['sentry.dsc.transaction'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: '/issues/errors-outages/',\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.environment': {\n    brief: 'The sentry environment.',\n    type: 'string',\n    keys: [\n      'sentry.environment',\n      'environment',\n      'resource.deployment.environment',\n      'resource.deployment.environment.name',\n    ],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'production',\n    aliases: ['environment'],\n    changelog: [{ version: '0.0.0' }],\n    searchAlias: {\n      name: 'environment',\n    },\n  },\n  'sentry.event.serialized_breadcrumbs': {\n    brief: 'JSON-serialized `breadcrumbs` property from a Sentry event.',\n    type: 'string',\n    keys: ['sentry.event.serialized_breadcrumbs'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    changelog: [{ version: '0.19.0', prs: [556] }],\n  },\n  'sentry.event.serialized_contexts': {\n    brief: 'JSON-serialized `contexts` property from a Sentry event.',\n    type: 'string',\n    keys: ['sentry.event.serialized_contexts'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    changelog: [{ version: '0.19.0', prs: [556] }],\n  },\n  'sentry.event.serialized_extra': {\n    brief: 'JSON-serialized `extra` property from a Sentry event.',\n    type: 'string',\n    keys: ['sentry.event.serialized_extra'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    changelog: [{ version: '0.19.0', prs: [556] }],\n  },\n  'sentry.event.serialized_meta': {\n    brief: 'JSON-serialized `_meta` for the `sentry.event.serialized_*` properties from a Sentry event.',\n    type: 'string',\n    keys: ['sentry.event.serialized_meta'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    changelog: [{ version: '0.20.0', prs: [566] }],\n  },\n  'sentry.exclusive_time': {\n    brief: 'The exclusive time duration of the span in milliseconds.',\n    type: 'double',\n    keys: ['sentry.exclusive_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.3.0', prs: [160] }, { version: '0.0.0' }],\n  },\n  'sentry.frames.frozen': {\n    brief: 'The number of frozen frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.frozen.count', 'frames.frozen', 'mobile.frozen_frames', 'sentry.frames.frozen'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 3,\n    deprecation: {\n      replacement: 'app.vitals.frames.frozen.count',\n      reason:\n        'Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.frozen.count', 'frames.frozen'],\n    changelog: [{ version: '0.19.0', prs: [500], description: 'Added sentry.frames.frozen attribute' }],\n  },\n  'sentry.frames.slow': {\n    brief: 'The number of slow frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.slow.count', 'frames.slow', 'mobile.slow_frames', 'sentry.frames.slow'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1,\n    deprecation: {\n      replacement: 'app.vitals.frames.slow.count',\n      reason:\n        'Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.slow.count', 'frames.slow'],\n    changelog: [{ version: '0.19.0', prs: [500], description: 'Added sentry.frames.slow attribute' }],\n  },\n  'sentry.frames.total': {\n    brief: 'The number of total frames rendered during the lifetime of the span.',\n    type: 'integer',\n    keys: ['app.vitals.frames.total.count', 'frames.total', 'mobile.total_frames', 'sentry.frames.total'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 60,\n    deprecation: {\n      replacement: 'app.vitals.frames.total.count',\n      reason:\n        'Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.frames.total.count', 'frames.total'],\n    changelog: [{ version: '0.19.0', prs: [500], description: 'Added sentry.frames.total attribute' }],\n  },\n  'sentry.graphql.operation': {\n    brief: 'Indicates the type of graphql operation, emitted by the Javascript SDK.',\n    type: 'string',\n    keys: ['sentry.graphql.operation'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'getUserById',\n    changelog: [{ version: '0.3.1', prs: [190] }],\n  },\n  'sentry.group': {\n    brief:\n      'Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end.',\n    type: 'string',\n    keys: ['sentry.group', 'span.group'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    changelog: [{ version: '0.4.0', prs: [212] }],\n    searchAlias: {\n      name: 'span.group',\n    },\n  },\n  'sentry.http.prefetch': {\n    brief: 'If an http request was a prefetch request.',\n    type: 'boolean',\n    keys: ['sentry.http.prefetch'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'sentry.idle_span_finish_reason': {\n    brief: 'The reason why an idle span ended early.',\n    type: 'string',\n    keys: ['sentry.idle_span_finish_reason'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'idleTimeout',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'sentry.is_localhost': {\n    brief: 'Indicates whether a telemetry item was sent on a host, device or browser on a localhost URL or IP address.',\n    type: 'boolean',\n    keys: ['sentry.is_localhost'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: true,\n    examples: [true, false],\n    changelog: [{ version: '0.24.0', prs: [646], description: 'Added sentry.is_localhost attribute' }],\n    additionalContext: [\n      'This attribute is used for the Sentry \"Filter telemetry from localhost\" inbound filter feature.',\n      'SDKs must set this attribute on every span, as well as every other telemetry item supporting attribuztes.',\n    ],\n  },\n  'sentry.is_remote': {\n    brief: \"Indicates whether a span's parent is remote.\",\n    type: 'boolean',\n    keys: ['sentry.is_remote'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.3.1', prs: [190] }],\n  },\n  'sentry.kind': {\n    brief:\n      'Used to clarify the relationship between parents and children, or to distinguish between spans, e.g. a `server` and `client` span with the same name.',\n    type: 'string',\n    keys: ['sentry.kind', 'span.kind', 'otel.kind'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'client',\n    examples: ['client', 'server', 'producer', 'consumer', 'internal'],\n    aliases: ['otel.kind'],\n    changelog: [\n      { version: '0.19.0', prs: [517], description: 'Added more examples and additional_context to the attribute' },\n      { version: '0.3.1', prs: [190] },\n    ],\n    additionalContext: ['Valid attribute values are: \"client\", \"server\", \"producer\", \"consumer\" and \"internal\"'],\n    searchAlias: {\n      name: 'span.kind',\n    },\n  },\n  'sentry.link.type': {\n    brief: 'Set on a span link. Describes the relationship between the span and the linked span.',\n    type: 'string',\n    keys: ['sentry.link.type', 'link.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'previous_trace',\n    examples: ['previous_trace', 'cache_origin', 'message_origin', 'server_request'],\n    changelog: [\n      {\n        version: '0.28.0',\n        prs: [724, 738, 739],\n        description: 'Removed next_trace from the examples and enum_values, because no SDK sets it',\n      },\n      { version: '0.27.0', prs: [687], description: 'Added search alias link.type' },\n      { version: '0.25.0', prs: [656], description: 'Added sentry.link.type attribute' },\n    ],\n    additionalContext: [\n      'This attribute is exclusively set on span links.',\n      'Sentry instrumentation setting span links, sets it to describe the relationship between the span and the linked span.',\n      'Add each new link type to `enum_values`, with a brief that says what the linked span is.',\n    ],\n    searchAlias: {\n      name: 'link.type',\n    },\n  },\n  'sentry.main_thread': {\n    brief: 'Whether the span or event occurred on the main thread. Computed by Relay and should not be set by SDKs.',\n    type: 'boolean',\n    keys: ['sentry.main_thread'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.5.0' }],\n  },\n  'sentry.message.parameter.<key>': {\n    brief:\n      \"A parameter used in the message template. <key> can either be the number that represent the parameter's position in the template string (sentry.message.parameter.0, sentry.message.parameter.1, etc) or the parameter's name (sentry.message.parameter.item_id, sentry.message.parameter.user_id, etc)\",\n    type: 'string',\n    keys: ['sentry.message.parameter.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: \"sentry.message.parameter.0='123'\",\n    changelog: [{ version: '0.1.0', prs: [116] }],\n  },\n  'sentry.message.template': {\n    brief: 'The parameterized template string.',\n    type: 'string',\n    keys: ['sentry.message.template'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Hello, {name}!',\n    changelog: [{ version: '0.1.0', prs: [116] }],\n  },\n  'sentry.metric.source': {\n    brief:\n      'The provenance of a metric.  For example, this can be set to indicate if a metric was generated by Relay from a span.',\n    type: 'string',\n    keys: ['sentry.metric.source'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'span',\n    changelog: [{ version: '0.16.0', prs: [476], description: 'Added sentry.metric.source attribute' }],\n  },\n  'sentry.mobile': {\n    brief: 'Whether the application is using a mobile SDK. Computed by Relay and should not be set by SDKs.',\n    type: 'boolean',\n    keys: ['sentry.mobile'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.5.0' }],\n  },\n  'sentry.module.<key>': {\n    brief: 'A module that was loaded in the process. The key is the name of the module.',\n    type: 'string',\n    keys: ['sentry.module.<key>'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"sentry.module.brianium/paratest='v7.7.0'\",\n    changelog: [{ version: '0.1.0', prs: [103] }],\n  },\n  'sentry.nextjs.ssr.function.route': {\n    brief:\n      'A parameterized route for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions when the file location of the function is known.',\n    type: 'string',\n    keys: ['sentry.nextjs.ssr.function.route'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/posts/[id]/layout',\n    changelog: [{ version: '0.1.0', prs: [54, 106] }],\n  },\n  'sentry.nextjs.ssr.function.type': {\n    brief:\n      'A descriptor for a for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions.',\n    type: 'string',\n    keys: ['sentry.nextjs.ssr.function.type'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'generateMetadata',\n    changelog: [{ version: '0.1.0', prs: [54, 106] }],\n  },\n  'sentry.normalized_db_query': {\n    brief: 'The normalized version of `db.query.text`.',\n    type: 'string',\n    keys: ['sentry.normalized_db_query'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'SELECT .. FROM sentry_project WHERE (project_id = %s)',\n    changelog: [{ version: '0.3.1', prs: [194] }],\n  },\n  'sentry.normalized_db_query.hash': {\n    brief: 'The hash of `sentry.normalized_db_query`.',\n    type: 'string',\n    keys: ['sentry.normalized_db_query.hash'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    changelog: [{ version: '0.4.0', prs: [200] }],\n  },\n  'sentry.normalized_description': {\n    brief:\n      'Used as a generic attribute representing the normalized `sentry.description`. This refers to the legacy use case of `sentry.description` where it holds relevant data depending on the type of span (e.g. database query, resource url, http request description, etc).',\n    type: 'string',\n    keys: ['sentry.normalized_description'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'SELECT .. FROM sentry_project WHERE (project_id = %s)',\n    changelog: [{ version: '0.4.0', prs: [212] }],\n  },\n  'sentry.observed_timestamp_nanos': {\n    brief: 'The timestamp at which an envelope was received by Relay, in nanoseconds.',\n    type: 'string',\n    keys: ['sentry.observed_timestamp_nanos'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1544712660300000000',\n    changelog: [\n      { version: '0.3.0', prs: [174] },\n      { version: '0.2.0', prs: [137] },\n    ],\n  },\n  'sentry.op': {\n    brief: 'The operation of a span.',\n    type: 'string',\n    keys: ['sentry.op', 'span.op'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'http.client',\n    changelog: [{ version: '0.0.0' }],\n    searchAlias: {\n      name: 'span.op',\n    },\n  },\n  'sentry.origin': {\n    brief: 'The origin of the instrumentation (e.g. span, log, etc.)',\n    type: 'string',\n    keys: ['sentry.origin', 'origin'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'auto.http.otel.fastify',\n    changelog: [{ version: '0.1.0', prs: [68] }, { version: '0.0.0' }],\n    searchAlias: {\n      name: 'origin',\n    },\n  },\n  'sentry.pageload.span_id': {\n    brief: 'The id of the pageload span, set by web vital spans and metrics',\n    type: 'string',\n    keys: ['sentry.pageload.span_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'bf2c8d3df84524de',\n    changelog: [{ version: '0.17.0', prs: [495], description: 'Added sentry.pageload.span_id attribute' }],\n  },\n  'sentry.platform': {\n    brief: 'The sdk platform that generated the event.',\n    type: 'string',\n    keys: ['sentry.platform', 'platform'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'php',\n    changelog: [{ version: '0.0.0' }],\n    searchAlias: {\n      name: 'platform',\n    },\n  },\n  'sentry.profiler_id': {\n    brief: 'The id of the currently running profiler (continuous profiling)',\n    type: 'string',\n    keys: ['sentry.profiler_id', 'profiler.id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '18779b64dd35d1a538e7ce2dd2d3fad3',\n    changelog: [{ version: '0.4.0', prs: [242] }],\n    searchAlias: {\n      name: 'profiler.id',\n    },\n  },\n  'sentry.profile_id': {\n    brief:\n      'The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling.',\n    type: 'string',\n    keys: ['sentry.profile_id', 'profile.id', 'profile_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '123e4567e89b12d3a456426614174000',\n    aliases: ['profile_id'],\n    changelog: [\n      { version: '0.19.0', prs: [497], description: 'Added profile_id as an alias' },\n      { version: '0.6.0', prs: [344], description: 'Added sentry.profile_id attribute' },\n    ],\n    searchAlias: {\n      name: 'profile.id',\n    },\n  },\n  'sentry.relay.ingress': {\n    brief: 'How an item (span, log, &c.) entered Relay.',\n    type: 'string',\n    keys: ['sentry.relay.ingress'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: 'OTEL',\n    changelog: [{ version: '0.17.0', prs: [491], description: 'Added sentry.relay.ingress attribute' }],\n  },\n  'sentry.relay.pipeline': {\n    brief: 'An internal descriptor of which processing pipeline an item went through in Relay.',\n    type: 'string',\n    keys: ['sentry.relay.pipeline'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: 'span v2',\n    changelog: [{ version: '0.17.0', prs: [491], description: 'Added sentry.relay.pipeline attribute' }],\n  },\n  'sentry.release': {\n    brief: 'The sentry release.',\n    type: 'string',\n    keys: ['sentry.release', 'release', 'service.version'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '7.0.0',\n    aliases: ['service.version', 'release'],\n    changelog: [{ version: '0.0.0' }],\n    searchAlias: {\n      name: 'release',\n    },\n  },\n  'sentry.replay_id': {\n    brief: 'The id of the sentry replay.',\n    type: 'string',\n    keys: ['sentry.replay_id', 'replay.id', 'replay_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '123e4567e89b12d3a456426614174000',\n    aliases: ['replay_id', 'replayId'],\n    changelog: [{ version: '0.0.0' }],\n    searchAlias: {\n      name: 'replay.id',\n      deprecatedAliases: ['replay_id'],\n    },\n  },\n  'sentry.replay_is_buffering': {\n    brief:\n      'A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate).',\n    type: 'boolean',\n    keys: ['sentry.replay_is_buffering'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.3.0', prs: [185] }],\n  },\n  'sentry.report_event': {\n    brief: '(Deprecated) The event that caused the SDK to report CLS or LCP (pagehide or navigation)',\n    type: 'string',\n    keys: ['sentry.report_event'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'pagehide',\n    deprecation: {\n      reason:\n        'The report event moved to browser.web_vital.lcp.report_event and browser.web_vital.cls.report_event, which are themselves deprecated without a replacement. No backfill required.',\n    },\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [642],\n        description:\n          'Updated the deprecation reason now that the browser.web_vital.*.report_event attributes are deprecated',\n      },\n      { version: '0.5.0', prs: [320], description: 'Added sentry.report_event attribute' },\n    ],\n  },\n  'sentry.sdk.integrations': {\n    brief:\n      'A list of names identifying enabled integrations. The list shouldhave all enabled integrations, including default integrations. Defaultintegrations are included because different SDK releases may contain differentdefault integrations.',\n    type: 'string[]',\n    keys: ['sentry.sdk.integrations'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['InboundFilters', 'FunctionToString', 'BrowserApiErrors', 'Breadcrumbs'],\n    changelog: [{ version: '0.0.0', prs: [42] }],\n  },\n  'sentry.sdk.name': {\n    brief: 'The sentry sdk name.',\n    type: 'string',\n    keys: ['sentry.sdk.name', 'sdk.name'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '@sentry/react',\n    changelog: [{ version: '0.0.0' }],\n    searchAlias: {\n      name: 'sdk.name',\n    },\n  },\n  'sentry.sdk.version': {\n    brief: 'The sentry sdk version.',\n    type: 'string',\n    keys: ['sentry.sdk.version', 'sdk.version'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '7.0.0',\n    changelog: [{ version: '0.0.0' }],\n    searchAlias: {\n      name: 'sdk.version',\n    },\n  },\n  'sentry.segment.id': {\n    brief: 'The segment ID of a span',\n    type: 'string',\n    keys: ['sentry.segment.id', 'sentry.segment_id', 'transaction.span_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '051581bf3cb55c13',\n    aliases: ['sentry.segment_id'],\n    changelog: [{ version: '0.1.0', prs: [107, 124] }],\n  },\n  'sentry.segment_id': {\n    brief: 'The segment ID of a span',\n    type: 'string',\n    keys: ['sentry.segment.id', 'sentry.segment_id', 'transaction.span_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '051581bf3cb55c13',\n    deprecation: {\n      replacement: 'sentry.segment.id',\n      status: 'backfill',\n    },\n    aliases: ['sentry.segment.id'],\n    changelog: [{ version: '0.1.0', prs: [124] }],\n    searchAlias: {\n      name: 'transaction.span_id',\n    },\n  },\n  'sentry.segment.name': {\n    brief: 'The segment name of a span',\n    type: 'string',\n    keys: ['sentry.segment.name', 'transaction', 'sentry.transaction'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GET /user',\n    aliases: ['sentry.transaction', 'transaction'],\n    changelog: [\n      { version: '0.6.0', prs: [345], description: 'Added sentry.transaction and transaction aliases' },\n      { version: '0.1.0', prs: [104] },\n    ],\n    searchAlias: {\n      name: 'transaction',\n    },\n  },\n  'sentry.segment.name.source': {\n    brief: 'The source of the segment span name. Should only be set on segment spans.',\n    type: 'string',\n    keys: ['sentry.segment.name.source'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'internal',\n    example: 'route',\n    examples: ['route', 'component', 'view', 'task', 'custom', 'url'],\n    changelog: [{ version: '0.19.0', prs: [466], description: 'Added sentry.segment.name.source' }],\n    additionalContext: [\n      'This attribute is the replacement for `transaction_info.source` on transactions.',\n      'Should we bring back clustering for segment names (like we do for transaction names), this attribute will be used to determine if a segment name should be clustered.',\n    ],\n  },\n  'sentry.server_sample_rate': {\n    brief: 'Rate at which a span was sampled in Relay.',\n    type: 'double',\n    keys: ['sentry.server_sample_rate', 'server_sample_rate'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0.5,\n    changelog: [{ version: '0.1.0', prs: [102] }],\n    searchAlias: {\n      name: 'server_sample_rate',\n    },\n  },\n  'sentry.source': {\n    brief: 'The source of a span, also referred to as transaction source.',\n    type: 'string',\n    keys: ['sentry.source'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'route',\n    deprecation: {\n      reason:\n        'This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.',\n    },\n    changelog: [\n      { version: '0.19.0', prs: [510], description: 'Removed the sentry.span.source replacement' },\n      { version: '0.5.0' },\n    ],\n  },\n  'sentry.span.source': {\n    brief: 'The source of a span, also referred to as transaction source.',\n    type: 'string',\n    keys: ['sentry.span.source'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'route',\n    deprecation: {\n      reason:\n        'This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.',\n    },\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [510],\n        description: 'Deprecated; superseded by sentry.segment.name.source on segment spans',\n      },\n      { version: '0.4.0', prs: [214] },\n      { version: '0.0.0' },\n    ],\n  },\n  'sentry.status': {\n    brief:\n      'The span\\'s status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.',\n    type: 'string',\n    keys: ['sentry.status', 'span.status'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'ok',\n    changelog: [{ version: '0.14.0', prs: [453] }],\n    searchAlias: {\n      name: 'span.status',\n    },\n  },\n  'sentry.status_code': {\n    brief:\n      'The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients.',\n    type: 'integer',\n    keys: ['sentry.status_code', 'span.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 200,\n    changelog: [{ version: '0.4.0', prs: [223, 228] }],\n    searchAlias: {\n      name: 'span.status_code',\n    },\n  },\n  'sentry.status.message': {\n    brief: 'The from OTLP extracted status message.',\n    type: 'string',\n    keys: ['sentry.status.message', 'span.status.message'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'foobar',\n    changelog: [{ version: '0.3.1', prs: [190] }],\n    searchAlias: {\n      name: 'span.status.message',\n    },\n  },\n  'sentry.sveltekit.navigation.from': {\n    brief: 'the navigation origin (sveltekit router)',\n    type: 'string',\n    keys: ['router.navigation.origin', 'navigation.origin', 'sentry.sveltekit.navigation.from'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/home',\n    deprecation: {\n      replacement: 'router.navigation.origin',\n      reason: 'Use the more generic attribute instead',\n      status: 'backfill',\n    },\n    aliases: ['navigation.origin', 'router.navigation.origin'],\n    changelog: [\n      {\n        version: '0.22.0',\n        prs: [600],\n        description: 'Re-pointed deprecation from navigation.origin to router.navigation.origin',\n      },\n      { version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.from attribute' },\n    ],\n  },\n  'sentry.sveltekit.navigation.to': {\n    brief: 'the navigation destination',\n    type: 'string',\n    keys: ['sentry.sveltekit.navigation.to'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/users/:id',\n    deprecation: {\n      reason: 'the navigation destination is already covered by url.* attributes',\n    },\n    changelog: [{ version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.to attribute' }],\n  },\n  'sentry.sveltekit.navigation.type': {\n    brief: 'The type of navigation event emitted from the sveltekit client router',\n    type: 'string',\n    keys: ['router.navigation.type', 'navigation.type', 'sentry.sveltekit.navigation.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'link',\n    deprecation: {\n      replacement: 'router.navigation.type',\n      reason: 'Use the more generic attribute instead',\n      status: 'backfill',\n    },\n    aliases: ['navigation.type', 'router.navigation.type'],\n    changelog: [\n      {\n        version: '0.22.0',\n        prs: [600],\n        description: 'Re-pointed deprecation from navigation.type to router.navigation.type',\n      },\n      { version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.type attribute' },\n    ],\n  },\n  'sentry.thread.id': {\n    brief: 'Current \"managed\" thread ID.',\n    type: 'integer',\n    keys: ['thread.id', 'sentry.thread.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 56,\n    deprecation: {\n      replacement: 'thread.id',\n      reason: 'This attribute is being deprecated in favor of the OTel-standard thread.id',\n      status: 'backfill',\n    },\n    changelog: [{ version: '0.13.0', prs: [451] }],\n    searchAlias: {\n      name: 'thread.id',\n    },\n  },\n  'sentry.timestamp.sequence': {\n    brief:\n      'A sequencing counter for deterministic ordering of logs or metrics when timestamps share the same integer millisecond. Starts at 0 on SDK initialization, increments by 1 for each captured item, and resets to 0 when the integer millisecond of the current item differs from the previous one.',\n    type: 'integer',\n    keys: ['sentry.timestamp.sequence'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 0,\n    changelog: [{ version: '0.5.0', prs: [262] }],\n  },\n  'sentry.trace_lifecycle': {\n    brief: 'Indicates the chosen trace lifecycle mode of the SDK (stream or static)',\n    type: 'string',\n    keys: ['sentry.trace_lifecycle', 'trace_lifecycle'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'stream',\n    changelog: [{ version: '0.13.0', prs: [442], description: 'Added sentry.trace_lifecycle attribute' }],\n    searchAlias: {\n      name: 'trace_lifecycle',\n    },\n  },\n  'sentry.trace.parent_span_id': {\n    brief:\n      'The span id of the span that was active when the log was collected. This should not be set if there was no active span.',\n    type: 'string',\n    keys: ['sentry.trace.parent_span_id'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'b0e6f15b45c36b12',\n    deprecation: {},\n    changelog: [\n      { version: '0.5.0', prs: [287], description: 'Deprecate `sentry.trace.parent_span_id`' },\n      { version: '0.1.0', prs: [116] },\n    ],\n  },\n  'sentry.trace.status': {\n    brief:\n      'The segment\\'s status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.',\n    type: 'string',\n    keys: ['sentry.trace.status', 'trace.status'],\n    applyScrubbing: {\n      key: 'never',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'ok',\n    changelog: [{ version: '0.14.0', prs: [453] }],\n    searchAlias: {\n      name: 'trace.status',\n    },\n  },\n  'sentry.transaction': {\n    brief: 'The sentry transaction (segment name).',\n    type: 'string',\n    keys: ['sentry.segment.name', 'transaction', 'sentry.transaction'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GET /',\n    deprecation: {\n      replacement: 'sentry.segment.name',\n      reason: 'This attribute is being deprecated in favor of sentry.segment.name',\n      status: 'backfill',\n    },\n    aliases: ['sentry.segment.name', 'transaction'],\n    changelog: [\n      { version: '0.6.0', prs: [345], description: 'Deprecated sentry.transaction in favor of sentry.segment.name' },\n      { version: '0.0.0' },\n    ],\n  },\n  'sentry.user.email': {\n    brief: 'User email address.',\n    type: 'string',\n    keys: ['user.email', 'sentry.user.email'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.email',\n      status: 'backfill',\n    },\n    aliases: ['user.email'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.email',\n    },\n  },\n  'sentry.user.geo.city': {\n    brief: 'Human readable city name.',\n    type: 'string',\n    keys: ['user.geo.city', 'sentry.user.geo.city'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.geo.city',\n      status: 'backfill',\n    },\n    aliases: ['user.geo.city'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.geo.city',\n    },\n  },\n  'sentry.user.geo.country_code': {\n    brief: 'Two-letter country code (ISO 3166-1 alpha-2).',\n    type: 'string',\n    keys: ['user.geo.country_code', 'sentry.user.geo.country_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.geo.country_code',\n      status: 'backfill',\n    },\n    aliases: ['user.geo.country_code'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.geo.country_code',\n    },\n  },\n  'sentry.user.geo.region': {\n    brief: 'Human readable region name or code.',\n    type: 'string',\n    keys: ['user.geo.region', 'sentry.user.geo.region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.geo.region',\n      status: 'backfill',\n    },\n    aliases: ['user.geo.region'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.geo.region',\n    },\n  },\n  'sentry.user.geo.subdivision': {\n    brief: 'Human readable subdivision name.',\n    type: 'string',\n    keys: ['user.geo.subdivision', 'sentry.user.geo.subdivision'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.geo.subdivision',\n      status: 'backfill',\n    },\n    aliases: ['user.geo.subdivision'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.geo.subdivision',\n    },\n  },\n  'sentry.user.geo.subregion': {\n    brief:\n      \"UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions.\",\n    type: 'string',\n    keys: ['user.geo.subregion', 'sentry.user.geo.subregion'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '155',\n    examples: ['155', '21'],\n    deprecation: {\n      replacement: 'user.geo.subregion',\n      status: 'backfill',\n    },\n    aliases: ['user.geo.subregion'],\n    changelog: [{ version: '0.31.0', prs: [753], description: 'Added sentry.user.geo.subregion attribute' }],\n    searchAlias: {\n      name: 'user.geo.subregion',\n    },\n  },\n  'sentry.user.id': {\n    brief: 'Unique identifier of the user.',\n    type: 'string',\n    keys: ['user.id', 'sentry.user.id'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.id',\n      status: 'backfill',\n    },\n    aliases: ['user.id'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.id',\n    },\n  },\n  'sentry.user.ip': {\n    brief: 'The IP address of the user.',\n    type: 'string',\n    keys: ['user.ip_address', 'sentry.user.ip', 'user.ip'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.ip_address',\n      status: 'backfill',\n    },\n    aliases: ['user.ip_address'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.ip',\n    },\n  },\n  'sentry.user.username': {\n    brief: 'Short name or login/username of the user.',\n    type: 'string',\n    keys: ['user.name', 'sentry.user.username', 'user.username'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'user.name',\n      status: 'backfill',\n    },\n    aliases: ['user.name'],\n    changelog: [{ version: '0.10.0', prs: [406] }],\n    searchAlias: {\n      name: 'user.username',\n    },\n  },\n  'server.address': {\n    brief:\n      'Preferably the server domain name if available without reverse DNS lookup, or an IP address or Unix domain socket name. For compatibility, it may contain what the hostname command returns on UNIX systems, the fully qualified hostname, or another name specified by the user.',\n    type: 'string',\n    keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    aliases: ['address', 'http.server_name', 'net.host.name', 'http.host', 'server_name', 'net.peer.name'],\n    changelog: [\n      { version: '0.24.0', prs: [645, 647], description: 'Broaden brief to allow hostnames' },\n      { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n      { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n      { version: '0.1.0', prs: [108, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'server.ext.type': {\n    brief: 'The request lifecycle extension point where the Hapi extension function runs.',\n    type: 'string',\n    keys: ['hapi.ext.type', 'server.ext.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'onRequest',\n    examples: ['onRequest', 'onPreResponse'],\n    deprecation: {\n      replacement: 'hapi.ext.type',\n      reason:\n        'Name from the OpenTelemetry Hapi instrumentation. The `server` namespace describes the network endpoint of the server, so the attribute moves to the `hapi` namespace.',\n      status: 'backfill',\n    },\n    aliases: ['hapi.ext.type'],\n    changelog: [\n      {\n        version: '0.28.0',\n        prs: [741],\n        description: 'Added server.ext.type attribute, deprecated in favor of hapi.ext.type',\n      },\n    ],\n  },\n  server_name: {\n    brief: 'The name of the device. On servers and desktops, this is typically the hostname.',\n    type: 'string',\n    keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'example.com',\n    deprecation: {\n      replacement: 'server.address',\n      reason: 'This attribute is being deprecated in favor of server.address.',\n      status: 'backfill',\n    },\n    aliases: ['address', 'server.address', 'http.server_name', 'net.host.name', 'http.host', 'net.peer.name'],\n    changelog: [\n      { version: '0.24.0', prs: [647], description: 'Alias the server.address alias group' },\n      {\n        version: '0.21.0',\n        prs: [588, 602],\n        description: 'Alias device.name instead of the server.address alias group',\n      },\n      { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n      {\n        version: '0.16.0',\n        prs: [477],\n        description: 'Added server_name attribute, deprecated in favor of server.address',\n      },\n    ],\n  },\n  'server.port': {\n    brief: 'Server port number.',\n    type: 'integer',\n    keys: ['server.port', 'net.host.port', 'port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 1337,\n    aliases: ['net.host.port', 'port'],\n    changelog: [\n      { version: '0.19.0', prs: [532], description: 'Added port as an alias' },\n      { version: '0.4.0', prs: [228] },\n      { version: '0.0.0' },\n    ],\n  },\n  'service.name': {\n    brief: 'Logical name of the service.',\n    type: 'string',\n    keys: ['service.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'omegastar',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'service.version': {\n    brief: 'The version string of the service API or implementation. The format is not defined by these conventions.',\n    type: 'string',\n    keys: ['service.version', 'sentry.release', 'release'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '5.0.0',\n    aliases: ['sentry.release'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'session.id': {\n    brief: 'A unique id identifying the active session at the time of setting this attribute',\n    type: 'string',\n    keys: ['session.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '00112233-4455-6677-8899-aabbccddeeff',\n    changelog: [{ version: '0.11.0', prs: [412], description: 'Added session.id attribute' }],\n  },\n  stall_percentage: {\n    brief: 'The fraction of time the app was stalled. Only applies to React Native. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.stall.percentage', 'stall_percentage'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'app.vitals.stall.percentage',\n      reason:\n        'Replaced by app.vitals.stall.percentage to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.stall.percentage'],\n    changelog: [\n      { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.stall.percentage' },\n      { version: '0.7.0', prs: [362], description: 'Added stall_percentage attribute' },\n    ],\n  },\n  stall_total_time: {\n    brief:\n      'The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay.',\n    type: 'double',\n    keys: ['app.vitals.stall.duration', 'stall_total_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    deprecation: {\n      replacement: 'app.vitals.stall.duration',\n      reason:\n        'Replaced by app.vitals.stall.duration to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.stall.duration'],\n    changelog: [\n      { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.stall.duration' },\n      { version: '0.7.0', prs: [362], description: 'Added stall_total_time attribute' },\n    ],\n  },\n  'starlette.middleware_name': {\n    brief: 'The name of the Starlette middleware.',\n    type: 'string',\n    keys: [\n      'middleware.name',\n      'django.middleware_name',\n      'litestar.middleware_name',\n      'starlette.middleware_name',\n      'starlite.middleware_name',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AuthenticationMiddleware',\n    deprecation: {\n      replacement: 'middleware.name',\n      reason:\n        'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n      status: 'backfill',\n    },\n    aliases: ['middleware.name'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [485],\n        description: 'Added starlette.middleware_name attribute, deprecated in favor of middleware.name',\n      },\n    ],\n  },\n  'starlite.middleware_name': {\n    brief: 'The name of the Starlite middleware.',\n    type: 'string',\n    keys: [\n      'middleware.name',\n      'django.middleware_name',\n      'litestar.middleware_name',\n      'starlette.middleware_name',\n      'starlite.middleware_name',\n    ],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'AuthenticationMiddleware',\n    examples: ['AuthenticationMiddleware'],\n    deprecation: {\n      replacement: 'middleware.name',\n      reason:\n        'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n      status: 'backfill',\n    },\n    aliases: ['middleware.name'],\n    changelog: [{ version: '0.19.0', prs: [519], description: 'Added starlite.middleware_name attribute' }],\n  },\n  'state.type': {\n    brief: 'The type of state management library',\n    type: 'string',\n    keys: ['state.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'redux',\n    changelog: [{ version: '0.7.0', prs: [365], description: 'Added state.type attribute' }],\n  },\n  'subprocess.pid': {\n    brief: 'The process ID of a subprocess.',\n    type: 'integer',\n    keys: ['process.pid', 'subprocess.pid'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 12345,\n    deprecation: {\n      replacement: 'process.pid',\n      reason: 'This attribute is being deprecated in favor of process.pid, which is the OTel-aligned replacement.',\n      status: 'backfill',\n    },\n    aliases: ['process.pid'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [487],\n        description: 'Added subprocess.pid attribute, deprecated in favor of process.pid',\n      },\n    ],\n  },\n  'sveltekit.load.environment': {\n    brief:\n      \"The runtime environment in which the SvelteKit load function was executed. Known values are `'server'` and `'client'`.\",\n    type: 'string',\n    keys: ['sveltekit.load.environment'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'server',\n    examples: ['server', 'client'],\n    changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.load.environment attribute' }],\n    additionalContext: [\n      'Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.',\n    ],\n  },\n  'sveltekit.load.node_id': {\n    brief: 'The path to the SvelteKit load function.',\n    type: 'string',\n    keys: ['sveltekit.load.node_id', 'code.file.path', 'code.filepath'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'src/routes/users/:id/+page.server.ts',\n    examples: ['src/routes/users/:id/+page.server.ts'],\n    aliases: ['code.file.path', 'code.filepath'],\n    changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_id attribute' }],\n    additionalContext: [\n      'Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.',\n    ],\n  },\n  'sveltekit.load.node_type': {\n    brief:\n      'The kind of SvelteKit load function that was executed, distinguishing page from layout and universal from server load functions.',\n    type: 'string',\n    keys: ['sveltekit.load.node_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '+page.server',\n    examples: ['+page.server', '+layout', '+layout.server'],\n    changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_type attribute' }],\n    additionalContext: [\n      'Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.',\n    ],\n  },\n  'sveltekit.tracing.original_name': {\n    brief: 'The original span name as emitted by SvelteKit.',\n    type: 'string',\n    keys: ['sveltekit.tracing.original_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'sveltekit.handle.root',\n    examples: ['sveltekit.handle.root'],\n    changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.tracing.original_name attribute' }],\n    additionalContext: [\n      \"The Sentry SDK renames SvelteKit-emitted spans to match Sentry's span name semantics, and preserves the name SvelteKit originally set in this attribute.\",\n    ],\n  },\n  'thread.id': {\n    brief: 'Current “managed” thread ID.',\n    type: 'integer',\n    keys: ['thread.id', 'sentry.thread.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 56,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'thread.name': {\n    brief: 'Current thread name.',\n    type: 'string',\n    keys: ['thread.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'main',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'timber.tag': {\n    brief: 'The log tag provided by the timber logging framework.',\n    type: 'string',\n    keys: ['timber.tag'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'MyTag',\n    changelog: [{ version: '0.3.0', prs: [183] }],\n  },\n  time_to_full_display: {\n    brief: 'The duration of time to full display in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.ttfd.value', 'time_to_full_display'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    deprecation: {\n      replacement: 'app.vitals.ttfd.value',\n      reason:\n        'Replaced by app.vitals.ttfd.value to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.ttfd.value'],\n    changelog: [\n      { version: '0.5.0', prs: [313], description: 'Added and deprecated in favor of app.vitals.ttfd.value' },\n    ],\n  },\n  time_to_initial_display: {\n    brief: 'The duration of time to initial display in milliseconds',\n    type: 'double',\n    keys: ['app.vitals.ttid.value', 'time_to_initial_display'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1234.56,\n    deprecation: {\n      replacement: 'app.vitals.ttid.value',\n      reason:\n        'Replaced by app.vitals.ttid.value to align with the app.vitals.* namespace for mobile performance attributes',\n      status: 'backfill',\n    },\n    aliases: ['app.vitals.ttid.value'],\n    changelog: [\n      { version: '0.5.0', prs: [313], description: 'Added and deprecated in favor of app.vitals.ttid.value' },\n    ],\n  },\n  'tls.protocol.name': {\n    brief: 'Normalized lowercase protocol name parsed from the negotiated SSL/TLS protocol version',\n    type: 'string',\n    keys: ['tls.protocol.name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'tls',\n    examples: ['tls', 'ssl'],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added tls.protocol.name attribute' }],\n    additionalContext: [\n      'Extract the protocol name from the negotiated SSL/TLS version string and normalize it to lowercase, without the version. For example, TLSv1.3 becomes tls and SSLv3 becomes ssl.',\n    ],\n  },\n  'tls.protocol.version': {\n    brief: 'Numeric part of the version parsed from the negotiated SSL/TLS protocol version',\n    type: 'string',\n    keys: ['tls.protocol.version'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '1.2',\n    examples: ['1.2', '1.3', '3'],\n    changelog: [{ version: '0.31.0', prs: [772], description: 'Added tls.protocol.version attribute' }],\n    additionalContext: [\n      'Extract only the numeric version from the negotiated SSL/TLS version string. For example, TLSv1.3 becomes 1.3 and SSLv3 becomes 3. Do not include the protocol name or the v prefix.',\n    ],\n  },\n  transaction: {\n    brief: 'The sentry transaction (segment name).',\n    type: 'string',\n    keys: ['sentry.segment.name', 'transaction', 'sentry.transaction'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GET /',\n    deprecation: {\n      replacement: 'sentry.segment.name',\n      status: 'normalize',\n    },\n    aliases: ['sentry.segment.name', 'sentry.transaction'],\n    changelog: [\n      { version: '0.19.0', prs: [497], description: 'Change deprecation from backfill to normalize' },\n      {\n        version: '0.6.0',\n        prs: [345],\n        description: 'Updated transaction deprecation replacement to sentry.segment.name',\n      },\n      { version: '0.1.0', prs: [61, 127] },\n      { version: '0.0.0' },\n    ],\n  },\n  'trpc.procedure_path': {\n    brief: 'The path of the tRPC procedure being called',\n    type: 'string',\n    keys: ['trpc.procedure_path'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'user.getById',\n    changelog: [{ version: '0.7.0', prs: [370], description: 'Added trpc.procedure_path attribute' }],\n  },\n  'trpc.procedure_type': {\n    brief: 'The type of the tRPC procedure',\n    type: 'string',\n    keys: ['trpc.procedure_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'query',\n    changelog: [{ version: '0.7.0', prs: [370], description: 'Added trpc.procedure_type attribute' }],\n  },\n  ttfb: {\n    brief: 'The value of the recorded Time To First Byte (TTFB) web vital in milliseconds',\n    type: 'double',\n    keys: ['browser.web_vital.ttfb.value', 'ttfb'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 194,\n    deprecation: {\n      replacement: 'browser.web_vital.ttfb.value',\n      reason: 'This attribute is being deprecated in favor of browser.web_vital.ttfb.value',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.ttfb.value'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'ttfb.requestTime': {\n    brief:\n      \"The time it takes for the server to process the initial request and send the first byte of a response to the user's browser\",\n    type: 'double',\n    keys: ['browser.web_vital.ttfb.request_time', 'ttfb.requestTime'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1554.5814,\n    deprecation: {\n      replacement: 'browser.web_vital.ttfb.request_time',\n      reason: 'This attribute is being deprecated in favor of browser.web_vital.ttfb.request_time',\n      status: 'backfill',\n    },\n    aliases: ['browser.web_vital.ttfb.request_time'],\n    changelog: [{ version: '0.5.0', prs: [235] }],\n  },\n  'turbo_modules.total_call_count': {\n    brief: 'The number of native module calls in the flushed call aggregate. Only applies to React Native.',\n    type: 'integer',\n    keys: ['react_native.module.call.count', 'turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 42,\n    examples: [42],\n    deprecation: {\n      replacement: 'react_native.module.call.count',\n      reason:\n        'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.call.count', 'turbo_module.total_call_count'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_modules.total_call_count and deprecated it in favor of react_native.module.call.count',\n      },\n    ],\n  },\n  'turbo_modules.total_duration_ms': {\n    brief:\n      'The combined duration of all native module calls in the flushed call aggregate, in milliseconds. Only applies to React Native.',\n    type: 'double',\n    keys: ['react_native.module.duration.total', 'turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 128.45,\n    examples: [128.45],\n    deprecation: {\n      replacement: 'react_native.module.duration.total',\n      reason:\n        'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.duration.total', 'turbo_module.total_duration_ms'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_modules.total_duration_ms and deprecated it in favor of react_native.module.duration.total',\n      },\n    ],\n  },\n  'turbo_modules.total_error_count': {\n    brief: 'The number of failed native module calls in the flushed call aggregate. Only applies to React Native.',\n    type: 'integer',\n    keys: ['react_native.module.error.count', 'turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2,\n    examples: [2],\n    deprecation: {\n      replacement: 'react_native.module.error.count',\n      reason:\n        'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.error.count', 'turbo_module.total_error_count'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_modules.total_error_count and deprecated it in favor of react_native.module.error.count',\n      },\n    ],\n  },\n  'turbo_modules.unique_methods': {\n    brief:\n      'The number of distinct native module and method pairs in the flushed call aggregate. Only applies to React Native.',\n    type: 'integer',\n    keys: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 7,\n    examples: [7],\n    deprecation: {\n      replacement: 'react_native.module.call.distinct_count',\n      reason:\n        'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_modules.unique_methods and deprecated it in favor of react_native.module.call.distinct_count',\n      },\n    ],\n  },\n  'turbo_module.arch': {\n    brief:\n      'The React Native architecture the call was observed on. `new` for a TurboModule resolved through `TurboModuleRegistry`, `legacy` for a module reached over the Old Architecture bridge. Only applies to React Native.',\n    type: 'string',\n    keys: ['react_native.architecture', 'turbo_module.arch'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'new',\n    examples: ['new', 'legacy'],\n    deprecation: {\n      replacement: 'react_native.architecture',\n      reason:\n        'Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules',\n      status: 'backfill',\n    },\n    aliases: ['react_native.architecture'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description: 'Added turbo_module.arch and deprecated it in favor of react_native.architecture',\n      },\n    ],\n  },\n  'turbo_module.method': {\n    brief: 'The name of the native module method that was called. Only applies to React Native.',\n    type: 'string',\n    keys: ['react_native.module.method', 'turbo_module.method'],\n    applyScrubbing: {\n      key: 'manual',\n      reason:\n        'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'getUniqueId',\n    examples: ['getUniqueId'],\n    deprecation: {\n      replacement: 'react_native.module.method',\n      reason:\n        'Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.method'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description: 'Added turbo_module.method and deprecated it in favor of react_native.module.method',\n      },\n    ],\n  },\n  'turbo_module.name': {\n    brief:\n      'The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. Only applies to React Native.',\n    type: 'string',\n    keys: ['react_native.module.name', 'turbo_module.name'],\n    applyScrubbing: {\n      key: 'manual',\n      reason:\n        'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'RNDeviceInfo',\n    examples: ['RNDeviceInfo'],\n    deprecation: {\n      replacement: 'react_native.module.name',\n      reason:\n        'Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.name'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description: 'Added turbo_module.name and deprecated it in favor of react_native.module.name',\n      },\n    ],\n  },\n  'turbo_module.top_module': {\n    brief:\n      'The native module and method that accounted for the most total duration during the lifetime of the span. Only applies to React Native.',\n    type: 'string',\n    keys: ['react_native.module.top.name', 'turbo_module.top_module'],\n    applyScrubbing: {\n      key: 'manual',\n      reason:\n        'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'RNDeviceInfo.getUniqueId',\n    examples: ['RNDeviceInfo.getUniqueId'],\n    deprecation: {\n      replacement: 'react_native.module.top.name',\n      reason:\n        'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.top.name'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description: 'Added turbo_module.top_module and deprecated it in favor of react_native.module.top.name',\n      },\n    ],\n  },\n  'turbo_module.top_module_duration_ms': {\n    brief:\n      'The total duration attributed to the top native module method, in milliseconds. Only applies to React Native.',\n    type: 'double',\n    keys: ['react_native.module.top.duration', 'turbo_module.top_module_duration_ms'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 87.25,\n    examples: [87.25],\n    deprecation: {\n      replacement: 'react_native.module.top.duration',\n      reason:\n        'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.top.duration'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_module.top_module_duration_ms and deprecated it in favor of react_native.module.top.duration',\n      },\n    ],\n  },\n  'turbo_module.total_call_count': {\n    brief: 'The number of native module calls observed during the lifetime of the span. Only applies to React Native.',\n    type: 'integer',\n    keys: ['react_native.module.call.count', 'turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 42,\n    examples: [42],\n    deprecation: {\n      replacement: 'react_native.module.call.count',\n      reason:\n        'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.call.count', 'turbo_modules.total_call_count'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description: 'Added turbo_module.total_call_count and deprecated it in favor of react_native.module.call.count',\n      },\n    ],\n  },\n  'turbo_module.total_duration_ms': {\n    brief:\n      'The combined duration of all native module calls observed during the lifetime of the span, in milliseconds. Only applies to React Native.',\n    type: 'double',\n    keys: ['react_native.module.duration.total', 'turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 128.45,\n    examples: [128.45],\n    deprecation: {\n      replacement: 'react_native.module.duration.total',\n      reason:\n        'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.duration.total', 'turbo_modules.total_duration_ms'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_module.total_duration_ms and deprecated it in favor of react_native.module.duration.total',\n      },\n    ],\n  },\n  'turbo_module.total_error_count': {\n    brief:\n      'The number of native module calls that failed during the lifetime of the span. Only applies to React Native.',\n    type: 'integer',\n    keys: ['react_native.module.error.count', 'turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 2,\n    examples: [2],\n    deprecation: {\n      replacement: 'react_native.module.error.count',\n      reason:\n        'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.error.count', 'turbo_modules.total_error_count'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_module.total_error_count and deprecated it in favor of react_native.module.error.count',\n      },\n    ],\n  },\n  'turbo_module.unique_methods': {\n    brief:\n      'The number of distinct native module and method pairs called during the lifetime of the span. Only applies to React Native.',\n    type: 'integer',\n    keys: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 7,\n    examples: [7],\n    deprecation: {\n      replacement: 'react_native.module.call.distinct_count',\n      reason:\n        'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n      status: 'backfill',\n    },\n    aliases: ['react_native.module.call.distinct_count', 'turbo_modules.unique_methods'],\n    changelog: [\n      {\n        version: '0.24.0',\n        prs: [564],\n        description:\n          'Added turbo_module.unique_methods and deprecated it in favor of react_native.module.call.distinct_count',\n      },\n    ],\n  },\n  type: {\n    brief: 'More granular type of the operation happening.',\n    type: 'string',\n    keys: ['type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'fetch',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'ui.component_name': {\n    brief: 'The name of the associated component.',\n    type: 'string',\n    keys: ['ui.component_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'HomeButton',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'ui.contributes_to_ttfd': {\n    brief: 'Whether the span execution contributed to the TTFD (time to fully drawn) metric.',\n    type: 'boolean',\n    keys: ['ui.contributes_to_ttfd'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'ui.contributes_to_ttid': {\n    brief: 'Whether the span execution contributed to the TTID (time to initial display) metric.',\n    type: 'boolean',\n    keys: ['ui.contributes_to_ttid'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    changelog: [{ version: '0.0.0' }],\n  },\n  'ui.element.height': {\n    brief: 'The height of the UI element (for Html in pixels)',\n    type: 'integer',\n    keys: ['ui.element.height'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 256,\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.height attribute' }],\n  },\n  'ui.element.id': {\n    brief: 'The id of the UI element',\n    type: 'string',\n    keys: ['ui.element.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'btn-login',\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.id attribute' }],\n  },\n  'ui.element.identifier': {\n    brief: 'The identifier used to measure the UI element timing',\n    type: 'string',\n    keys: ['ui.element.identifier'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'heroImage',\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.identifier attribute' }],\n  },\n  'ui.element.load_time': {\n    brief: 'The loading time of a UI element (from time origin to finished loading)',\n    type: 'double',\n    keys: ['ui.element.load_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 998.2234,\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.load_time attribute' }],\n  },\n  'ui.element.paint_type': {\n    brief: \"The type of element paint. Can either be 'image-paint' or 'text-paint'\",\n    type: 'string',\n    keys: ['ui.element.paint_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'image-paint',\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.paint_type attribute' }],\n  },\n  'ui.element.render_time': {\n    brief: 'The rendering time of the UI element (from time origin to finished rendering)',\n    type: 'double',\n    keys: ['ui.element.render_time'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1023.1124,\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.render_time attribute' }],\n  },\n  'ui.element.type': {\n    brief: 'type of the UI element',\n    type: 'string',\n    keys: ['ui.element.type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'img',\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.type attribute' }],\n  },\n  'ui.element.url': {\n    brief: 'The URL of the UI element (e.g. an img src)',\n    type: 'string',\n    keys: ['ui.element.url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://assets.myapp.com/hero.png',\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.url attribute' }],\n  },\n  'ui.element.width': {\n    brief: 'The width of the UI element (for HTML in pixels)',\n    type: 'integer',\n    keys: ['ui.element.width'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 512,\n    changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.width attribute' }],\n  },\n  url: {\n    brief: 'The URL of the resource that was fetched.',\n    type: 'string',\n    keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://example.com/test?foo=bar#buzz',\n    deprecation: {\n      replacement: 'url.full',\n      status: 'backfill',\n    },\n    aliases: ['url.full', 'http.url', 'aws.request.url', 'messaging.url'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n      { version: '0.1.0', prs: [61] },\n      { version: '0.0.0' },\n    ],\n  },\n  'url.domain': {\n    brief:\n      'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n    type: 'string',\n    keys: ['url.domain'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'example.com',\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'url.fragment': {\n    brief:\n      'The fragments present in the URI. Note that this does not contain the leading # character, while the `http.fragment` attribute does.',\n    type: 'string',\n    keys: ['url.fragment'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'details',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'url.full': {\n    brief: 'The URL of the resource that was fetched.',\n    type: 'string',\n    keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'https://example.com/test?foo=bar#buzz',\n    aliases: ['http.url', 'url', 'aws.request.url', 'messaging.url'],\n    changelog: [\n      { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n      { version: '0.19.0', prs: [488], description: 'Added aws.request.url as an alias' },\n      { version: '0.1.0', prs: [108] },\n      { version: '0.0.0' },\n    ],\n  },\n  'url.path': {\n    brief: 'The URI path component.',\n    type: 'string',\n    keys: ['url.path'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/foo',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'url.path.parameter.<key>': {\n    brief:\n      'Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.',\n    type: 'string',\n    keys: ['url.path.parameter.<key>', 'params.<key>', 'url.path.params.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"url.path.parameter.id='123'\",\n    aliases: ['params.<key>', 'url.path.params.<key>'],\n    changelog: [\n      { version: '0.21.0', prs: [586], description: 'Added url.path.params.<key> as an alias' },\n      { version: '0.1.0', prs: [103] },\n    ],\n  },\n  'url.path.params.<key>': {\n    brief:\n      'Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.',\n    type: 'string',\n    keys: ['url.path.parameter.<key>', 'params.<key>', 'url.path.params.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"url.path.params.id='123'\",\n    examples: [\"url.path.params.id='123'\"],\n    deprecation: {\n      replacement: 'url.path.parameter.<key>',\n      reason: 'This attribute is being deprecated in favor of url.path.parameter.<key>.',\n      status: 'backfill',\n    },\n    aliases: ['url.path.parameter.<key>', 'params.<key>'],\n    changelog: [{ version: '0.21.0', prs: [586], description: 'Added url.path.params.<key> attribute' }],\n  },\n  'url.port': {\n    brief: 'Server port number.',\n    type: 'integer',\n    keys: ['url.port'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 1337,\n    changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n  },\n  'url.query': {\n    brief:\n      'The query string present in the URL. Note that this does not contain the leading ? character, while the `http.query` attribute does.',\n    type: 'string',\n    keys: ['url.query'],\n    applyScrubbing: {\n      key: 'auto',\n      reason:\n        'Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'foo=bar&bar=baz',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'url.same_origin': {\n    brief: \"Indicates that a URL has the same origin as the current page's origin in the browser.\",\n    type: 'boolean',\n    keys: ['http.request.same_origin', 'url.same_origin'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: true,\n    deprecation: {\n      replacement: 'http.request.same_origin',\n      reason: 'This attribute is being deprecated in favor of http.request.same_origin.',\n      status: 'backfill',\n    },\n    aliases: ['http.request.same_origin'],\n    changelog: [\n      {\n        version: '0.16.0',\n        prs: [456],\n        description: 'Added url.same_origin attribute, deprecated in favor of http.request.same_origin',\n      },\n    ],\n  },\n  'url.scheme': {\n    brief: 'The URI scheme component identifying the used protocol.',\n    type: 'string',\n    keys: ['url.scheme', 'http.scheme'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'https',\n    aliases: ['http.scheme'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'url.template': {\n    brief: 'The low-cardinality template of an absolute URL path reference.',\n    type: 'string',\n    keys: ['url.template'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '/users/{id}',\n    examples: ['/users/{id}', '/users/:id', '/about'],\n    changelog: [\n      {\n        version: '0.19.0',\n        prs: [505, 521],\n        description: 'Added multiple examples, removed alias to `http.route`, added additional context',\n      },\n      { version: '0.1.0', prs: [127] },\n      { version: '0.0.0' },\n    ],\n    additionalContext: [\n      'This attribute should primarily be set by client-side routing instrumentation, or `http.client` spans (if applicable).',\n      'Use `http.route` for server-side instrumentation that captures the framework route of an incoming request.',\n    ],\n  },\n  'user_agent.original': {\n    brief: 'Value of the HTTP User-Agent header sent by the client.',\n    type: 'string',\n    keys: ['user_agent.original', 'http.user_agent'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example:\n      'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1',\n    aliases: ['http.user_agent'],\n    changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n  },\n  'user.email': {\n    brief: 'User email address.',\n    type: 'string',\n    keys: ['user.email', 'sentry.user.email'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'test@example.com',\n    aliases: ['sentry.user.email'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.full_name': {\n    brief: \"User's full name.\",\n    type: 'string',\n    keys: ['user.full_name'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'John Smith',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.geo.city': {\n    brief: 'Human readable city name.',\n    type: 'string',\n    keys: ['user.geo.city', 'sentry.user.geo.city'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Toronto',\n    aliases: ['sentry.user.geo.city'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.geo.country_code': {\n    brief: 'Two-letter country code (ISO 3166-1 alpha-2).',\n    type: 'string',\n    keys: ['user.geo.country_code', 'sentry.user.geo.country_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'CA',\n    aliases: ['sentry.user.geo.country_code'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.geo.region': {\n    brief: 'Human readable region name or code.',\n    type: 'string',\n    keys: ['user.geo.region', 'sentry.user.geo.region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Canada',\n    aliases: ['sentry.user.geo.region'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.geo.subdivision': {\n    brief: 'Human readable subdivision name.',\n    type: 'string',\n    keys: ['user.geo.subdivision', 'sentry.user.geo.subdivision'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'Ontario',\n    aliases: ['sentry.user.geo.subdivision'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.geo.subregion': {\n    brief:\n      \"UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions.\",\n    type: 'string',\n    keys: ['user.geo.subregion', 'sentry.user.geo.subregion'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '155',\n    examples: ['155', '21'],\n    aliases: ['sentry.user.geo.subregion'],\n    changelog: [{ version: '0.31.0', prs: [753], description: 'Added user.geo.subregion attribute' }],\n  },\n  'user.hash': {\n    brief: 'Unique user hash to correlate information for a user in anonymized form.',\n    type: 'string',\n    keys: ['user.hash'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: '8ae4c2993e0f4f3b8b2d1b1f3b5e8f4d',\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.id': {\n    brief: 'Unique identifier of the user.',\n    type: 'string',\n    keys: ['user.id', 'sentry.user.id'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'S-1-5-21-202424912787-2692429404-2351956786-1000',\n    aliases: ['sentry.user.id'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.ip_address': {\n    brief: 'The IP address of the user.',\n    type: 'string',\n    keys: ['user.ip_address', 'sentry.user.ip', 'user.ip'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '192.168.1.1',\n    aliases: ['sentry.user.ip'],\n    changelog: [{ version: '0.1.0', prs: [75] }],\n  },\n  'user.name': {\n    brief: 'Short name or login/username of the user.',\n    type: 'string',\n    keys: ['user.name', 'sentry.user.username', 'user.username'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: 'j.smith',\n    aliases: ['sentry.user.username'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'user.roles': {\n    brief: 'Array of user roles at the time of the event.',\n    type: 'string[]',\n    keys: ['user.roles'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: true,\n    visibility: 'public',\n    example: ['admin', 'editor'],\n    changelog: [{ version: '0.0.0' }],\n  },\n  'vercel.ai.settings.context.<key>': {\n    brief:\n      'A runtime context property of a Vercel AI SDK call that the app included in telemetry through `telemetry.includeRuntimeContext`, with <key> being the top-level context property name.',\n    type: 'string',\n    keys: ['vercel.ai.settings.context.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Runtime context is user-defined and can contain user data',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"vercel.ai.settings.context.tenantId='acme'\",\n    examples: [\"vercel.ai.settings.context.tenantId='acme'\"],\n    changelog: [{ version: '0.31.0', prs: [756], description: 'Added vercel.ai.settings.context.<key> attribute' }],\n    additionalContext: [\n      'Set on `gen_ai` spans for `invoke_agent`, `generate_content`, `execute_tool`, `embeddings`, `rerank` and `decide` operations. Spans for model calls and tool calls inside an operation copy the attributes of that operation.',\n      'SDKs MUST only record the properties that the app included through `telemetry.includeRuntimeContext`. Some Vercel AI SDK versions expose the full runtime context to instrumentation. If an SDK cannot confirm that the Vercel AI SDK filtered the runtime context, it MUST NOT record it.',\n      \"The Vercel AI SDK's own OpenTelemetry integration (`@ai-sdk/otel`) emits the same data as `ai.settings.context.<key>`.\",\n      'Runtime context values can have any type. SDKs MUST convert them to strings, and SHOULD serialize objects and arrays as JSON.',\n      'This attribute is open-ended on purpose. The Vercel AI SDK does not define the runtime context keys.',\n    ],\n  },\n  'vercel.ai.telemetry.metadata.<key>': {\n    brief:\n      'Metadata passed to a Vercel AI SDK call through `experimental_telemetry.metadata`, with <key> being the metadata key name.',\n    type: 'string',\n    keys: ['vercel.ai.telemetry.metadata.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Metadata is user-defined and can contain user data',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"vercel.ai.telemetry.metadata.tenantId='acme'\",\n    examples: [\"vercel.ai.telemetry.metadata.tenantId='acme'\"],\n    changelog: [{ version: '0.26.0', prs: [662], description: 'Added vercel.ai.telemetry.metadata.<key> attribute' }],\n    additionalContext: [\n      'Set on `gen_ai` spans for `invoke_agent`, `generate_content` and `embeddings` operations. Not set on `execute_tool` spans.',\n      \"The Vercel AI SDK's own OpenTelemetry spans emit the same data as `ai.telemetry.metadata.<key>`.\",\n      'The Vercel AI SDK also allows numbers, booleans and arrays as metadata values. SDKs MUST convert these values to strings.',\n      'This attribute is open-ended on purpose. The Vercel AI SDK does not define the metadata keys. If Vercel defines a stricter spec for this metadata, consider moving it into `gen_ai.*` attributes.',\n    ],\n  },\n  'vercel.ai.tool_call.context.<key>': {\n    brief:\n      'A tool context property of a Vercel AI SDK tool call that the app included in telemetry through `telemetry.includeToolsContext`, with <key> being the top-level context property name.',\n    type: 'string',\n    keys: ['vercel.ai.tool_call.context.<key>'],\n    applyScrubbing: {\n      key: 'auto',\n      reason: 'Tool context is user-defined and can contain user data',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    hasDynamicSuffix: true,\n    example: \"vercel.ai.tool_call.context.units='metric'\",\n    examples: [\"vercel.ai.tool_call.context.units='metric'\"],\n    changelog: [{ version: '0.31.0', prs: [756], description: 'Added vercel.ai.tool_call.context.<key> attribute' }],\n    additionalContext: [\n      'Set on `gen_ai` spans for `execute_tool` operations.',\n      'SDKs MUST only record the properties that the app included for the tool through `telemetry.includeToolsContext`. Some Vercel AI SDK versions expose the full tool context to instrumentation. If an SDK cannot confirm that the Vercel AI SDK filtered the tool context, it MUST NOT record it.',\n      \"The Vercel AI SDK's own OpenTelemetry integration (`@ai-sdk/otel`) does not record tool context.\",\n      'Tool context values can have any type. SDKs MUST convert them to strings, and SHOULD serialize objects and arrays as JSON.',\n      'This attribute is open-ended on purpose. The Vercel AI SDK does not define the tool context keys.',\n    ],\n  },\n  'vercel.branch': {\n    brief: 'Git branch name for Vercel project',\n    type: 'string',\n    keys: ['vercel.branch'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'main',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.build_id': {\n    brief: 'Identifier for the Vercel build (only present on build logs)',\n    type: 'string',\n    keys: ['vercel.build_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'bld_cotnkcr76',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.deployment_id': {\n    brief: 'Identifier for the Vercel deployment',\n    type: 'string',\n    keys: ['vercel.deployment_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'dpl_233NRGRjVZX1caZrXWtz5g1TAksD',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.destination': {\n    brief: 'Origin of the external content in Vercel (only on external logs)',\n    type: 'string',\n    keys: ['vercel.destination'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https://vitals.vercel-insights.com/v1',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.edge_type': {\n    brief: 'Type of edge runtime in Vercel',\n    type: 'string',\n    keys: ['vercel.edge_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'edge-function',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.entrypoint': {\n    brief: 'Entrypoint for the request in Vercel',\n    type: 'string',\n    keys: ['vercel.entrypoint'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'api/index.js',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.execution_region': {\n    brief: 'Region where the request is executed',\n    type: 'string',\n    keys: ['vercel.execution_region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'sfo1',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.id': {\n    brief: 'Unique identifier for the log entry in Vercel',\n    type: 'string',\n    keys: ['vercel.id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '1573817187330377061717300000',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.ja3_digest': {\n    brief: 'JA3 fingerprint digest of Vercel request',\n    type: 'string',\n    keys: ['vercel.ja3_digest'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.ja4_digest': {\n    brief: 'JA4 fingerprint digest',\n    type: 'string',\n    keys: ['vercel.ja4_digest'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 't13d1516h2_8daaf6152771_02713d6af862',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.log_type': {\n    brief: 'Vercel log output type',\n    type: 'string',\n    keys: ['vercel.log_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'stdout',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.path': {\n    brief: 'Function or dynamic path of the request in Vercel.',\n    type: 'string',\n    keys: ['vercel.path'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/dynamic/[route].json',\n    changelog: [{ version: '0.6.0', prs: [349], description: 'Added vercel.path attribute' }],\n  },\n  'vercel.project_id': {\n    brief: 'Identifier for the Vercel project',\n    type: 'string',\n    keys: ['vercel.project_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'gdufoJxB6b9b1fEqr1jUtFkyavUU',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.project_name': {\n    brief: 'Name of the Vercel project',\n    type: 'string',\n    keys: ['vercel.project_name'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'my-app',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.cache_id': {\n    brief: 'Original request ID when request is served from cache',\n    type: 'string',\n    keys: ['vercel.proxy.cache_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'pdx1::v8g4b-1744143786684-93dafbc0f70d',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.client_ip': {\n    brief: 'Client IP address',\n    type: 'string',\n    keys: ['vercel.proxy.client_ip'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '120.75.16.101',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.host': {\n    brief: 'Hostname of the request',\n    type: 'string',\n    keys: ['vercel.proxy.host'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'test.vercel.app',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.lambda_region': {\n    brief: 'Region where lambda function executed',\n    type: 'string',\n    keys: ['vercel.proxy.lambda_region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'sfo1',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.method': {\n    brief: 'HTTP method of the request',\n    type: 'string',\n    keys: ['vercel.proxy.method'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'GET',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.path': {\n    brief: 'Request path with query parameters',\n    type: 'string',\n    keys: ['vercel.proxy.path'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '/dynamic/some-value.json?route=some-value',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.path_type': {\n    brief: 'How the request was served based on its path and project configuration',\n    type: 'string',\n    keys: ['vercel.proxy.path_type'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'func',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.path_type_variant': {\n    brief: 'Variant of the path type',\n    type: 'string',\n    keys: ['vercel.proxy.path_type_variant'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'api',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.referer': {\n    brief: 'Referer of the request',\n    type: 'string',\n    keys: ['vercel.proxy.referer'],\n    applyScrubbing: {\n      key: 'auto',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '*.vercel.app',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.region': {\n    brief: 'Region where the request is processed',\n    type: 'string',\n    keys: ['vercel.proxy.region'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'sfo1',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.response_byte_size': {\n    brief: 'Size of the response in bytes',\n    type: 'integer',\n    keys: ['vercel.proxy.response_byte_size'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1024,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.2.0', prs: [163] },\n    ],\n  },\n  'vercel.proxy.scheme': {\n    brief: 'Protocol of the request',\n    type: 'string',\n    keys: ['vercel.proxy.scheme'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'https',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.status_code': {\n    brief: 'HTTP status code of the proxy request',\n    type: 'integer',\n    keys: ['vercel.proxy.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 200,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.2.0', prs: [163] },\n    ],\n  },\n  'vercel.proxy.timestamp': {\n    brief: 'Unix timestamp when the proxy request was made',\n    type: 'integer',\n    keys: ['vercel.proxy.timestamp'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 1573817250172,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.2.0', prs: [163] },\n    ],\n  },\n  'vercel.proxy.user_agent': {\n    brief: 'User agent strings of the request',\n    type: 'string[]',\n    keys: ['vercel.proxy.user_agent'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: ['Mozilla/5.0...'],\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.vercel_cache': {\n    brief: 'Cache status sent to the browser',\n    type: 'string',\n    keys: ['vercel.proxy.vercel_cache'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'REVALIDATED',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.vercel_id': {\n    brief: 'Vercel-specific identifier',\n    type: 'string',\n    keys: ['vercel.proxy.vercel_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'sfo1::abc123',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.waf_action': {\n    brief: 'Action taken by firewall rules',\n    type: 'string',\n    keys: ['vercel.proxy.waf_action'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'deny',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.proxy.waf_rule_id': {\n    brief: 'ID of the firewall rule that matched',\n    type: 'string',\n    keys: ['vercel.proxy.waf_rule_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'rule_gAHz8jtSB1Gy',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.request_id': {\n    brief: 'Identifier of the Vercel request',\n    type: 'string',\n    keys: ['vercel.request_id'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: '643af4e3-975a-4cc7-9e7a-1eda11539d90',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.source': {\n    brief: 'Origin of the Vercel log (build, edge, lambda, static, external, or firewall)',\n    type: 'string',\n    keys: ['vercel.source'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 'build',\n    changelog: [{ version: '0.2.0', prs: [163] }],\n  },\n  'vercel.status_code': {\n    brief: 'HTTP status code of the request (-1 means no response returned and the lambda crashed)',\n    type: 'integer',\n    keys: ['vercel.status_code'],\n    applyScrubbing: {\n      key: 'manual',\n    },\n    isInOtel: false,\n    visibility: 'public',\n    example: 200,\n    changelog: [\n      { version: '0.4.0', prs: [228] },\n      { version: '0.2.0', prs: [163] },\n    ],\n  },\n};\n\nexport type AttributeValue = string | number | boolean | Array<string> | Array<number> | Array<boolean>;\n\nexport type Attributes = {\n  [ADDRESS]?: ADDRESS_TYPE;\n  [AI_CITATIONS]?: AI_CITATIONS_TYPE;\n  [AI_COMPLETION_TOKENS_USED]?: AI_COMPLETION_TOKENS_USED_TYPE;\n  [AI_DOCUMENTS]?: AI_DOCUMENTS_TYPE;\n  [AI_FINISH_REASON]?: AI_FINISH_REASON_TYPE;\n  [AI_FREQUENCY_PENALTY]?: AI_FREQUENCY_PENALTY_TYPE;\n  [AI_FUNCTION_CALL]?: AI_FUNCTION_CALL_TYPE;\n  [AI_GENERATION_ID]?: AI_GENERATION_ID_TYPE;\n  [AI_INPUT_MESSAGES]?: AI_INPUT_MESSAGES_TYPE;\n  [AI_IS_SEARCH_REQUIRED]?: AI_IS_SEARCH_REQUIRED_TYPE;\n  [AI_METADATA]?: AI_METADATA_TYPE;\n  [AI_MODEL_ID]?: AI_MODEL_ID_TYPE;\n  [_AI_MODEL_ID]?: _AI_MODEL_ID_TYPE;\n  [AI_MODEL_PROVIDER]?: AI_MODEL_PROVIDER_TYPE;\n  [AI_PIPELINE_NAME]?: AI_PIPELINE_NAME_TYPE;\n  [AI_PREAMBLE]?: AI_PREAMBLE_TYPE;\n  [AI_PRESENCE_PENALTY]?: AI_PRESENCE_PENALTY_TYPE;\n  [AI_PROMPT]?: AI_PROMPT_TYPE;\n  [AI_PROMPT_MESSAGES]?: AI_PROMPT_MESSAGES_TYPE;\n  [AI_PROMPT_TOKENS_USED]?: AI_PROMPT_TOKENS_USED_TYPE;\n  [AI_PROMPT_TOOLS]?: AI_PROMPT_TOOLS_TYPE;\n  [AI_RAW_PROMPTING]?: AI_RAW_PROMPTING_TYPE;\n  [AI_RESPONSES]?: AI_RESPONSES_TYPE;\n  [AI_RESPONSE_FORMAT]?: AI_RESPONSE_FORMAT_TYPE;\n  [AI_RESPONSE_ID]?: AI_RESPONSE_ID_TYPE;\n  [AI_RESPONSE_MODEL]?: AI_RESPONSE_MODEL_TYPE;\n  [AI_RESPONSE_OBJECT]?: AI_RESPONSE_OBJECT_TYPE;\n  [AI_RESPONSE_TEXT]?: AI_RESPONSE_TEXT_TYPE;\n  [AI_RESPONSE_TIMESTAMP]?: AI_RESPONSE_TIMESTAMP_TYPE;\n  [AI_RESPONSE_TOOLCALLS]?: AI_RESPONSE_TOOLCALLS_TYPE;\n  [AI_SCHEMA]?: AI_SCHEMA_TYPE;\n  [AI_SEARCH_QUERIES]?: AI_SEARCH_QUERIES_TYPE;\n  [AI_SEARCH_RESULTS]?: AI_SEARCH_RESULTS_TYPE;\n  [AI_SEED]?: AI_SEED_TYPE;\n  [AI_STREAMING]?: AI_STREAMING_TYPE;\n  [AI_TAGS]?: AI_TAGS_TYPE;\n  [AI_TEMPERATURE]?: AI_TEMPERATURE_TYPE;\n  [AI_TEXTS]?: AI_TEXTS_TYPE;\n  [AI_TOOLCALL_ARGS]?: AI_TOOLCALL_ARGS_TYPE;\n  [AI_TOOLCALL_RESULT]?: AI_TOOLCALL_RESULT_TYPE;\n  [AI_TOOLS]?: AI_TOOLS_TYPE;\n  [AI_TOOL_CALLS]?: AI_TOOL_CALLS_TYPE;\n  [AI_TOP_K]?: AI_TOP_K_TYPE;\n  [AI_TOP_P]?: AI_TOP_P_TYPE;\n  [AI_TOTAL_COST]?: AI_TOTAL_COST_TYPE;\n  [AI_TOTAL_TOKENS_USED]?: AI_TOTAL_TOKENS_USED_TYPE;\n  [AI_USAGE_TOKENS]?: AI_USAGE_TOKENS_TYPE;\n  [AI_VALUES]?: AI_VALUES_TYPE;\n  [AI_WARNINGS]?: AI_WARNINGS_TYPE;\n  [ANGULAR_VERSION]?: ANGULAR_VERSION_TYPE;\n  [ANTHROPIC_TOOL_RESULT_CONTENT]?: ANTHROPIC_TOOL_RESULT_CONTENT_TYPE;\n  [APP_APP_BUILD]?: APP_APP_BUILD_TYPE;\n  [APP_APP_IDENTIFIER]?: APP_APP_IDENTIFIER_TYPE;\n  [APP_APP_NAME]?: APP_APP_NAME_TYPE;\n  [APP_APP_START_TIME]?: APP_APP_START_TIME_TYPE;\n  [APP_APP_VERSION]?: APP_APP_VERSION_TYPE;\n  [APP_BUILD]?: APP_BUILD_TYPE;\n  [APP_IDENTIFIER]?: APP_IDENTIFIER_TYPE;\n  [APP_IN_FOREGROUND]?: APP_IN_FOREGROUND_TYPE;\n  [APP_NAME]?: APP_NAME_TYPE;\n  [APP_START_COLD]?: APP_START_COLD_TYPE;\n  [APP_START_TIME]?: APP_START_TIME_TYPE;\n  [APP_START_TYPE]?: APP_START_TYPE_TYPE;\n  [APP_START_WARM]?: APP_START_WARM_TYPE;\n  [APP_VERSION]?: APP_VERSION_TYPE;\n  [APP_VITALS_FRAMES_DELAY_VALUE]?: APP_VITALS_FRAMES_DELAY_VALUE_TYPE;\n  [APP_VITALS_FRAMES_FROZEN_COUNT]?: APP_VITALS_FRAMES_FROZEN_COUNT_TYPE;\n  [APP_VITALS_FRAMES_FROZEN_RATE]?: APP_VITALS_FRAMES_FROZEN_RATE_TYPE;\n  [APP_VITALS_FRAMES_SLOW_COUNT]?: APP_VITALS_FRAMES_SLOW_COUNT_TYPE;\n  [APP_VITALS_FRAMES_SLOW_RATE]?: APP_VITALS_FRAMES_SLOW_RATE_TYPE;\n  [APP_VITALS_FRAMES_TOTAL_COUNT]?: APP_VITALS_FRAMES_TOTAL_COUNT_TYPE;\n  [APP_VITALS_STALL_DURATION]?: APP_VITALS_STALL_DURATION_TYPE;\n  [APP_VITALS_STALL_PERCENTAGE]?: APP_VITALS_STALL_PERCENTAGE_TYPE;\n  [APP_VITALS_START_COLD_VALUE]?: APP_VITALS_START_COLD_VALUE_TYPE;\n  [APP_VITALS_START_PREWARMED]?: APP_VITALS_START_PREWARMED_TYPE;\n  [APP_VITALS_START_REASON]?: APP_VITALS_START_REASON_TYPE;\n  [APP_VITALS_START_SCREEN]?: APP_VITALS_START_SCREEN_TYPE;\n  [APP_VITALS_START_TYPE]?: APP_VITALS_START_TYPE_TYPE;\n  [APP_VITALS_START_WARM_VALUE]?: APP_VITALS_START_WARM_VALUE_TYPE;\n  [APP_VITALS_TTFD_VALUE]?: APP_VITALS_TTFD_VALUE_TYPE;\n  [APP_VITALS_TTID_VALUE]?: APP_VITALS_TTID_VALUE_TYPE;\n  [ART_GC_BLOCKING_COUNT]?: ART_GC_BLOCKING_COUNT_TYPE;\n  [ART_GC_BLOCKING_TIME]?: ART_GC_BLOCKING_TIME_TYPE;\n  [ART_GC_PRE_OOME_COUNT]?: ART_GC_PRE_OOME_COUNT_TYPE;\n  [ART_GC_TOTAL_COUNT]?: ART_GC_TOTAL_COUNT_TYPE;\n  [ART_GC_TOTAL_TIME]?: ART_GC_TOTAL_TIME_TYPE;\n  [ART_GC_WAITING_TIME]?: ART_GC_WAITING_TIME_TYPE;\n  [ART_MEMORY_FREE]?: ART_MEMORY_FREE_TYPE;\n  [ART_MEMORY_FREE_UNTIL_GC]?: ART_MEMORY_FREE_UNTIL_GC_TYPE;\n  [ART_MEMORY_FREE_UNTIL_OOME]?: ART_MEMORY_FREE_UNTIL_OOME_TYPE;\n  [ART_MEMORY_MAX]?: ART_MEMORY_MAX_TYPE;\n  [ART_MEMORY_TOTAL]?: ART_MEMORY_TOTAL_TYPE;\n  [AWS_CLOUDWATCH_LOGS_LOG_GROUP]?: AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE;\n  [AWS_CLOUDWATCH_LOGS_LOG_STREAM]?: AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE;\n  [AWS_CLOUDWATCH_LOGS_URL]?: AWS_CLOUDWATCH_LOGS_URL_TYPE;\n  [AWS_DYNAMODB_ATTRIBUTES_TO_GET]?: AWS_DYNAMODB_ATTRIBUTES_TO_GET_TYPE;\n  [AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS]?: AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS_TYPE;\n  [AWS_DYNAMODB_CONSISTENT_READ]?: AWS_DYNAMODB_CONSISTENT_READ_TYPE;\n  [AWS_DYNAMODB_CONSUMED_CAPACITY]?: AWS_DYNAMODB_CONSUMED_CAPACITY_TYPE;\n  [AWS_DYNAMODB_COUNT]?: AWS_DYNAMODB_COUNT_TYPE;\n  [AWS_DYNAMODB_EXCLUSIVE_START_TABLE]?: AWS_DYNAMODB_EXCLUSIVE_START_TABLE_TYPE;\n  [AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES]?: AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES_TYPE;\n  [AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES]?: AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES_TYPE;\n  [AWS_DYNAMODB_INDEX_NAME]?: AWS_DYNAMODB_INDEX_NAME_TYPE;\n  [AWS_DYNAMODB_ITEM_COLLECTION_METRICS]?: AWS_DYNAMODB_ITEM_COLLECTION_METRICS_TYPE;\n  [AWS_DYNAMODB_LIMIT]?: AWS_DYNAMODB_LIMIT_TYPE;\n  [AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES]?: AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES_TYPE;\n  [AWS_DYNAMODB_PROJECTION]?: AWS_DYNAMODB_PROJECTION_TYPE;\n  [AWS_DYNAMODB_PROVISIONED_READ_CAPACITY]?: AWS_DYNAMODB_PROVISIONED_READ_CAPACITY_TYPE;\n  [AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY]?: AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY_TYPE;\n  [AWS_DYNAMODB_SCANNED_COUNT]?: AWS_DYNAMODB_SCANNED_COUNT_TYPE;\n  [AWS_DYNAMODB_SCAN_FORWARD]?: AWS_DYNAMODB_SCAN_FORWARD_TYPE;\n  [AWS_DYNAMODB_SEGMENT]?: AWS_DYNAMODB_SEGMENT_TYPE;\n  [AWS_DYNAMODB_SELECT]?: AWS_DYNAMODB_SELECT_TYPE;\n  [AWS_DYNAMODB_TABLE_COUNT]?: AWS_DYNAMODB_TABLE_COUNT_TYPE;\n  [AWS_DYNAMODB_TABLE_NAMES]?: AWS_DYNAMODB_TABLE_NAMES_TYPE;\n  [AWS_DYNAMODB_TOTAL_SEGMENTS]?: AWS_DYNAMODB_TOTAL_SEGMENTS_TYPE;\n  [AWS_EXTENDED_REQUEST_ID]?: AWS_EXTENDED_REQUEST_ID_TYPE;\n  [AWS_KINESIS_STREAM_NAME]?: AWS_KINESIS_STREAM_NAME_TYPE;\n  [_AWS_KINESIS_STREAM_NAME]?: _AWS_KINESIS_STREAM_NAME_TYPE;\n  [AWS_LAMBDA_AWS_REQUEST_ID]?: AWS_LAMBDA_AWS_REQUEST_ID_TYPE;\n  [AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS]?: AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE;\n  [AWS_LAMBDA_FUNCTION_NAME]?: AWS_LAMBDA_FUNCTION_NAME_TYPE;\n  [AWS_LAMBDA_FUNCTION_VERSION]?: AWS_LAMBDA_FUNCTION_VERSION_TYPE;\n  [AWS_LAMBDA_INITIALIZATION_TYPE]?: AWS_LAMBDA_INITIALIZATION_TYPE_TYPE;\n  [AWS_LAMBDA_INVOKED_ARN]?: AWS_LAMBDA_INVOKED_ARN_TYPE;\n  [AWS_LAMBDA_INVOKED_FUNCTION_ARN]?: AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE;\n  [AWS_LAMBDA_REMAINING_TIME_IN_MILLIS]?: AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE;\n  [AWS_LAMBDA_RESOURCE_MAPPING_ID]?: AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE;\n  [AWS_LAMBDA_TARGET_FUNCTION_NAME]?: AWS_LAMBDA_TARGET_FUNCTION_NAME_TYPE;\n  [AWS_LAMBDA_WEB_ENDPOINT_NAME]?: AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE;\n  [AWS_LOG_GROUP_NAMES]?: AWS_LOG_GROUP_NAMES_TYPE;\n  [AWS_LOG_STREAM_NAMES]?: AWS_LOG_STREAM_NAMES_TYPE;\n  [AWS_OPERATION_NAME]?: AWS_OPERATION_NAME_TYPE;\n  [AWS_REGION]?: AWS_REGION_TYPE;\n  [AWS_REQUEST_EXTENDED_ID]?: AWS_REQUEST_EXTENDED_ID_TYPE;\n  [AWS_REQUEST_ID]?: AWS_REQUEST_ID_TYPE;\n  [_AWS_REQUEST_ID]?: _AWS_REQUEST_ID_TYPE;\n  [AWS_REQUEST_URL]?: AWS_REQUEST_URL_TYPE;\n  [AWS_S3_BUCKET]?: AWS_S3_BUCKET_TYPE;\n  [AWS_S3_COPY_SOURCE]?: AWS_S3_COPY_SOURCE_TYPE;\n  [AWS_S3_DELETE]?: AWS_S3_DELETE_TYPE;\n  [AWS_S3_KEY]?: AWS_S3_KEY_TYPE;\n  [AWS_S3_PART_NUMBER]?: AWS_S3_PART_NUMBER_TYPE;\n  [AWS_S3_UPLOAD_ID]?: AWS_S3_UPLOAD_ID_TYPE;\n  [AWS_SECRETSMANAGER_SECRET_ARN]?: AWS_SECRETSMANAGER_SECRET_ARN_TYPE;\n  [AWS_SECRETSMANAGER_SECRET_NAME]?: AWS_SECRETSMANAGER_SECRET_NAME_TYPE;\n  [AWS_SNS_TOPIC_ARN]?: AWS_SNS_TOPIC_ARN_TYPE;\n  [AWS_SQS_QUEUE_URL]?: AWS_SQS_QUEUE_URL_TYPE;\n  [AWS_STEP_FUNCTIONS_ACTIVITY_ARN]?: AWS_STEP_FUNCTIONS_ACTIVITY_ARN_TYPE;\n  [AWS_STEP_FUNCTIONS_ACTIVITY_NAME]?: AWS_STEP_FUNCTIONS_ACTIVITY_NAME_TYPE;\n  [AWS_STEP_FUNCTIONS_EXECUTION_ARN]?: AWS_STEP_FUNCTIONS_EXECUTION_ARN_TYPE;\n  [AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN]?: AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN_TYPE;\n  [AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME]?: AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME_TYPE;\n  [BLOCKED_MAIN_THREAD]?: BLOCKED_MAIN_THREAD_TYPE;\n  [BROWSER_BFCACHE_FRAME]?: BROWSER_BFCACHE_FRAME_TYPE;\n  [BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT]?: BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT_TYPE;\n  [BROWSER_BFCACHE_OUTCOME]?: BROWSER_BFCACHE_OUTCOME_TYPE;\n  [BROWSER_BFCACHE_REASON]?: BROWSER_BFCACHE_REASON_TYPE;\n  [BROWSER_NAME]?: BROWSER_NAME_TYPE;\n  [BROWSER_NAVIGATION_ID]?: BROWSER_NAVIGATION_ID_TYPE;\n  [BROWSER_NAVIGATION_TYPE]?: BROWSER_NAVIGATION_TYPE_TYPE;\n  [BROWSER_PAINT_TYPE]?: BROWSER_PAINT_TYPE_TYPE;\n  [BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START]?: BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START_TYPE;\n  [BROWSER_PERFORMANCE_TIME_ORIGIN]?: BROWSER_PERFORMANCE_TIME_ORIGIN_TYPE;\n  [BROWSER_REPORT_TYPE]?: BROWSER_REPORT_TYPE_TYPE;\n  [BROWSER_SCRIPT_INVOKER]?: BROWSER_SCRIPT_INVOKER_TYPE;\n  [BROWSER_SCRIPT_INVOKER_TYPE]?: BROWSER_SCRIPT_INVOKER_TYPE_TYPE;\n  [BROWSER_SCRIPT_SOURCE_CHAR_POSITION]?: BROWSER_SCRIPT_SOURCE_CHAR_POSITION_TYPE;\n  [BROWSER_VERSION]?: BROWSER_VERSION_TYPE;\n  [BROWSER_WEB_VITAL_CLS_REPORT_EVENT]?: BROWSER_WEB_VITAL_CLS_REPORT_EVENT_TYPE;\n  [BROWSER_WEB_VITAL_CLS_SOURCE_KEY]?: BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE;\n  [BROWSER_WEB_VITAL_CLS_VALUE]?: BROWSER_WEB_VITAL_CLS_VALUE_TYPE;\n  [BROWSER_WEB_VITAL_FCP_VALUE]?: BROWSER_WEB_VITAL_FCP_VALUE_TYPE;\n  [BROWSER_WEB_VITAL_FP_VALUE]?: BROWSER_WEB_VITAL_FP_VALUE_TYPE;\n  [BROWSER_WEB_VITAL_INP_INPUT_DELAY]?: BROWSER_WEB_VITAL_INP_INPUT_DELAY_TYPE;\n  [BROWSER_WEB_VITAL_INP_INTERACTION_TYPE]?: BROWSER_WEB_VITAL_INP_INTERACTION_TYPE_TYPE;\n  [BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY]?: BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY_TYPE;\n  [BROWSER_WEB_VITAL_INP_PROCESSING_DURATION]?: BROWSER_WEB_VITAL_INP_PROCESSING_DURATION_TYPE;\n  [BROWSER_WEB_VITAL_INP_TARGET]?: BROWSER_WEB_VITAL_INP_TARGET_TYPE;\n  [BROWSER_WEB_VITAL_INP_VALUE]?: BROWSER_WEB_VITAL_INP_VALUE_TYPE;\n  [BROWSER_WEB_VITAL_LCP_ELEMENT]?: BROWSER_WEB_VITAL_LCP_ELEMENT_TYPE;\n  [BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY]?: BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY_TYPE;\n  [BROWSER_WEB_VITAL_LCP_ID]?: BROWSER_WEB_VITAL_LCP_ID_TYPE;\n  [BROWSER_WEB_VITAL_LCP_LOAD_TIME]?: BROWSER_WEB_VITAL_LCP_LOAD_TIME_TYPE;\n  [BROWSER_WEB_VITAL_LCP_RENDER_TIME]?: BROWSER_WEB_VITAL_LCP_RENDER_TIME_TYPE;\n  [BROWSER_WEB_VITAL_LCP_REPORT_EVENT]?: BROWSER_WEB_VITAL_LCP_REPORT_EVENT_TYPE;\n  [BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY]?: BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY_TYPE;\n  [BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION]?: BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION_TYPE;\n  [BROWSER_WEB_VITAL_LCP_SIZE]?: BROWSER_WEB_VITAL_LCP_SIZE_TYPE;\n  [BROWSER_WEB_VITAL_LCP_URL]?: BROWSER_WEB_VITAL_LCP_URL_TYPE;\n  [BROWSER_WEB_VITAL_LCP_VALUE]?: BROWSER_WEB_VITAL_LCP_VALUE_TYPE;\n  [BROWSER_WEB_VITAL_TTFB_REQUEST_TIME]?: BROWSER_WEB_VITAL_TTFB_REQUEST_TIME_TYPE;\n  [BROWSER_WEB_VITAL_TTFB_VALUE]?: BROWSER_WEB_VITAL_TTFB_VALUE_TYPE;\n  [CACHE_HIT]?: CACHE_HIT_TYPE;\n  [CACHE_ITEM_AGE]?: CACHE_ITEM_AGE_TYPE;\n  [CACHE_ITEM_SIZE]?: CACHE_ITEM_SIZE_TYPE;\n  [CACHE_KEY]?: CACHE_KEY_TYPE;\n  [CACHE_OPERATION]?: CACHE_OPERATION_TYPE;\n  [CACHE_TAGS]?: CACHE_TAGS_TYPE;\n  [CACHE_TTL]?: CACHE_TTL_TYPE;\n  [CACHE_WRITE]?: CACHE_WRITE_TYPE;\n  [CHANNEL]?: CHANNEL_TYPE;\n  [CLIENT_ADDRESS]?: CLIENT_ADDRESS_TYPE;\n  [CLIENT_PORT]?: CLIENT_PORT_TYPE;\n  [CLOUDFLARE_D1_DURATION]?: CLOUDFLARE_D1_DURATION_TYPE;\n  [CLOUDFLARE_D1_QUERY_TYPE]?: CLOUDFLARE_D1_QUERY_TYPE_TYPE;\n  [CLOUDFLARE_D1_ROWS_READ]?: CLOUDFLARE_D1_ROWS_READ_TYPE;\n  [CLOUDFLARE_D1_ROWS_WRITTEN]?: CLOUDFLARE_D1_ROWS_WRITTEN_TYPE;\n  [CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS]?: CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS_TYPE;\n  [CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ]?: CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ_TYPE;\n  [CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN]?: CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN_TYPE;\n  [CLOUDFLARE_R2_BUCKET]?: CLOUDFLARE_R2_BUCKET_TYPE;\n  [CLOUDFLARE_R2_OPERATION]?: CLOUDFLARE_R2_OPERATION_TYPE;\n  [CLOUDFLARE_R2_REQUEST_DELIMITER]?: CLOUDFLARE_R2_REQUEST_DELIMITER_TYPE;\n  [CLOUDFLARE_R2_REQUEST_KEY]?: CLOUDFLARE_R2_REQUEST_KEY_TYPE;\n  [CLOUDFLARE_R2_REQUEST_PART_NUMBER]?: CLOUDFLARE_R2_REQUEST_PART_NUMBER_TYPE;\n  [CLOUDFLARE_R2_REQUEST_PREFIX]?: CLOUDFLARE_R2_REQUEST_PREFIX_TYPE;\n  [CLOUDFLARE_WORKFLOW_ATTEMPT]?: CLOUDFLARE_WORKFLOW_ATTEMPT_TYPE;\n  [CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF]?: CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF_TYPE;\n  [CLOUDFLARE_WORKFLOW_RETRIES_DELAY]?: CLOUDFLARE_WORKFLOW_RETRIES_DELAY_TYPE;\n  [CLOUDFLARE_WORKFLOW_RETRIES_LIMIT]?: CLOUDFLARE_WORKFLOW_RETRIES_LIMIT_TYPE;\n  [CLOUDFLARE_WORKFLOW_TIMEOUT]?: CLOUDFLARE_WORKFLOW_TIMEOUT_TYPE;\n  [CLOUD_ACCOUNT_ID]?: CLOUD_ACCOUNT_ID_TYPE;\n  [CLOUD_AVAILABILITY_ZONE]?: CLOUD_AVAILABILITY_ZONE_TYPE;\n  [CLOUD_PLATFORM]?: CLOUD_PLATFORM_TYPE;\n  [CLOUD_PROVIDER]?: CLOUD_PROVIDER_TYPE;\n  [CLOUD_REGION]?: CLOUD_REGION_TYPE;\n  [CLOUD_RESOURCE_ID]?: CLOUD_RESOURCE_ID_TYPE;\n  [CLS]?: CLS_TYPE;\n  [CLS_SOURCE_KEY]?: CLS_SOURCE_KEY_TYPE;\n  [CODE]?: CODE_TYPE;\n  [CODE_FILEPATH]?: CODE_FILEPATH_TYPE;\n  [CODE_FILE_PATH]?: CODE_FILE_PATH_TYPE;\n  [CODE_FUNCTION]?: CODE_FUNCTION_TYPE;\n  [CODE_FUNCTION_NAME]?: CODE_FUNCTION_NAME_TYPE;\n  [CODE_LINENO]?: CODE_LINENO_TYPE;\n  [CODE_LINE_NUMBER]?: CODE_LINE_NUMBER_TYPE;\n  [CODE_NAMESPACE]?: CODE_NAMESPACE_TYPE;\n  [CONNECTIONTYPE]?: CONNECTIONTYPE_TYPE;\n  [CONNECTION_RTT]?: CONNECTION_RTT_TYPE;\n  [CULTURE_CALENDAR]?: CULTURE_CALENDAR_TYPE;\n  [CULTURE_DISPLAY_NAME]?: CULTURE_DISPLAY_NAME_TYPE;\n  [CULTURE_IS_24_HOUR_FORMAT]?: CULTURE_IS_24_HOUR_FORMAT_TYPE;\n  [CULTURE_LOCALE]?: CULTURE_LOCALE_TYPE;\n  [CULTURE_TIMEZONE]?: CULTURE_TIMEZONE_TYPE;\n  [DB_COLLECTION_NAME]?: DB_COLLECTION_NAME_TYPE;\n  [DB_CONNECTION_STRING]?: DB_CONNECTION_STRING_TYPE;\n  [DB_DRIVER_NAME]?: DB_DRIVER_NAME_TYPE;\n  [DB_MONGODB_COLLECTION]?: DB_MONGODB_COLLECTION_TYPE;\n  [DB_NAME]?: DB_NAME_TYPE;\n  [DB_NAMESPACE]?: DB_NAMESPACE_TYPE;\n  [DB_OPERATION]?: DB_OPERATION_TYPE;\n  [DB_OPERATION_BATCH_SIZE]?: DB_OPERATION_BATCH_SIZE_TYPE;\n  [DB_OPERATION_NAME]?: DB_OPERATION_NAME_TYPE;\n  [DB_PARAMS]?: DB_PARAMS_TYPE;\n  [DB_QUERY_PARAMETER_KEY]?: DB_QUERY_PARAMETER_KEY_TYPE;\n  [DB_QUERY_SUMMARY]?: DB_QUERY_SUMMARY_TYPE;\n  [DB_QUERY_TEXT]?: DB_QUERY_TEXT_TYPE;\n  [DB_REDIS_CONNECTION]?: DB_REDIS_CONNECTION_TYPE;\n  [DB_REDIS_KEY]?: DB_REDIS_KEY_TYPE;\n  [DB_REDIS_PARAMETERS]?: DB_REDIS_PARAMETERS_TYPE;\n  [DB_RESPONSE_STATUS_CODE]?: DB_RESPONSE_STATUS_CODE_TYPE;\n  [DB_SQL_BINDINGS]?: DB_SQL_BINDINGS_TYPE;\n  [DB_STATEMENT]?: DB_STATEMENT_TYPE;\n  [DB_STORED_PROCEDURE_NAME]?: DB_STORED_PROCEDURE_NAME_TYPE;\n  [DB_SYSTEM]?: DB_SYSTEM_TYPE;\n  [DB_SYSTEM_NAME]?: DB_SYSTEM_NAME_TYPE;\n  [DB_USER]?: DB_USER_TYPE;\n  [DEVICEMEMORY]?: DEVICEMEMORY_TYPE;\n  [DEVICE_ARCHS]?: DEVICE_ARCHS_TYPE;\n  [DEVICE_BATTERY_LEVEL]?: DEVICE_BATTERY_LEVEL_TYPE;\n  [DEVICE_BATTERY_TEMPERATURE]?: DEVICE_BATTERY_TEMPERATURE_TYPE;\n  [DEVICE_BOOT_TIME]?: DEVICE_BOOT_TIME_TYPE;\n  [DEVICE_BRAND]?: DEVICE_BRAND_TYPE;\n  [DEVICE_CHARGING]?: DEVICE_CHARGING_TYPE;\n  [DEVICE_CHIPSET]?: DEVICE_CHIPSET_TYPE;\n  [DEVICE_CLASS]?: DEVICE_CLASS_TYPE;\n  [DEVICE_CONNECTION_TYPE]?: DEVICE_CONNECTION_TYPE_TYPE;\n  [DEVICE_CPU_DESCRIPTION]?: DEVICE_CPU_DESCRIPTION_TYPE;\n  [DEVICE_EXTERNAL_FREE_STORAGE]?: DEVICE_EXTERNAL_FREE_STORAGE_TYPE;\n  [DEVICE_EXTERNAL_STORAGE_SIZE]?: DEVICE_EXTERNAL_STORAGE_SIZE_TYPE;\n  [DEVICE_FAMILY]?: DEVICE_FAMILY_TYPE;\n  [DEVICE_FREE_MEMORY]?: DEVICE_FREE_MEMORY_TYPE;\n  [DEVICE_FREE_STORAGE]?: DEVICE_FREE_STORAGE_TYPE;\n  [DEVICE_ID]?: DEVICE_ID_TYPE;\n  [DEVICE_LOCALE]?: DEVICE_LOCALE_TYPE;\n  [DEVICE_LOW_MEMORY]?: DEVICE_LOW_MEMORY_TYPE;\n  [DEVICE_LOW_POWER_MODE]?: DEVICE_LOW_POWER_MODE_TYPE;\n  [DEVICE_MANUFACTURER]?: DEVICE_MANUFACTURER_TYPE;\n  [DEVICE_MEMORY_ESTIMATED_CAPACITY]?: DEVICE_MEMORY_ESTIMATED_CAPACITY_TYPE;\n  [DEVICE_MEMORY_SIZE]?: DEVICE_MEMORY_SIZE_TYPE;\n  [DEVICE_MODEL]?: DEVICE_MODEL_TYPE;\n  [DEVICE_MODEL_ID]?: DEVICE_MODEL_ID_TYPE;\n  [DEVICE_NAME]?: DEVICE_NAME_TYPE;\n  [DEVICE_ONLINE]?: DEVICE_ONLINE_TYPE;\n  [DEVICE_ORIENTATION]?: DEVICE_ORIENTATION_TYPE;\n  [DEVICE_PROCESSOR_COUNT]?: DEVICE_PROCESSOR_COUNT_TYPE;\n  [DEVICE_PROCESSOR_FREQUENCY]?: DEVICE_PROCESSOR_FREQUENCY_TYPE;\n  [DEVICE_SCREEN_DENSITY]?: DEVICE_SCREEN_DENSITY_TYPE;\n  [DEVICE_SCREEN_DPI]?: DEVICE_SCREEN_DPI_TYPE;\n  [DEVICE_SCREEN_HEIGHT_PIXELS]?: DEVICE_SCREEN_HEIGHT_PIXELS_TYPE;\n  [DEVICE_SCREEN_WIDTH_PIXELS]?: DEVICE_SCREEN_WIDTH_PIXELS_TYPE;\n  [DEVICE_SIMULATOR]?: DEVICE_SIMULATOR_TYPE;\n  [DEVICE_STORAGE_SIZE]?: DEVICE_STORAGE_SIZE_TYPE;\n  [DEVICE_THERMAL_STATE]?: DEVICE_THERMAL_STATE_TYPE;\n  [DEVICE_TIMEZONE]?: DEVICE_TIMEZONE_TYPE;\n  [DEVICE_USABLE_MEMORY]?: DEVICE_USABLE_MEMORY_TYPE;\n  [DIST]?: DIST_TYPE;\n  [DJANGO_FUNCTION_NAME]?: DJANGO_FUNCTION_NAME_TYPE;\n  [DJANGO_MIDDLEWARE_NAME]?: DJANGO_MIDDLEWARE_NAME_TYPE;\n  [EFFECTIVECONNECTIONTYPE]?: EFFECTIVECONNECTIONTYPE_TYPE;\n  [ENVIRONMENT]?: ENVIRONMENT_TYPE;\n  [ERROR_TYPE]?: ERROR_TYPE_TYPE;\n  [EVENT_ID]?: EVENT_ID_TYPE;\n  [EVENT_NAME]?: EVENT_NAME_TYPE;\n  [EXCEPTION_ESCAPED]?: EXCEPTION_ESCAPED_TYPE;\n  [EXCEPTION_MESSAGE]?: EXCEPTION_MESSAGE_TYPE;\n  [EXCEPTION_STACKTRACE]?: EXCEPTION_STACKTRACE_TYPE;\n  [EXCEPTION_TYPE]?: EXCEPTION_TYPE_TYPE;\n  [FAAS_COLDSTART]?: FAAS_COLDSTART_TYPE;\n  [FAAS_CRON]?: FAAS_CRON_TYPE;\n  [FAAS_DOCUMENT_COLLECTION]?: FAAS_DOCUMENT_COLLECTION_TYPE;\n  [FAAS_DOCUMENT_NAME]?: FAAS_DOCUMENT_NAME_TYPE;\n  [FAAS_DOCUMENT_OPERATION]?: FAAS_DOCUMENT_OPERATION_TYPE;\n  [FAAS_DOCUMENT_TIME]?: FAAS_DOCUMENT_TIME_TYPE;\n  [FAAS_DURATION_IN_MS]?: FAAS_DURATION_IN_MS_TYPE;\n  [FAAS_ENTRY_POINT]?: FAAS_ENTRY_POINT_TYPE;\n  [FAAS_EXECUTION]?: FAAS_EXECUTION_TYPE;\n  [FAAS_ID]?: FAAS_ID_TYPE;\n  [FAAS_IDENTITY]?: FAAS_IDENTITY_TYPE;\n  [FAAS_INSTANCE]?: FAAS_INSTANCE_TYPE;\n  [FAAS_INVOCATION_ID]?: FAAS_INVOCATION_ID_TYPE;\n  [FAAS_INVOKED_NAME]?: FAAS_INVOKED_NAME_TYPE;\n  [FAAS_INVOKED_PROVIDER]?: FAAS_INVOKED_PROVIDER_TYPE;\n  [FAAS_INVOKED_REGION]?: FAAS_INVOKED_REGION_TYPE;\n  [FAAS_MAX_MEMORY]?: FAAS_MAX_MEMORY_TYPE;\n  [FAAS_NAME]?: FAAS_NAME_TYPE;\n  [FAAS_TIME]?: FAAS_TIME_TYPE;\n  [FAAS_TRIGGER]?: FAAS_TRIGGER_TYPE;\n  [FAAS_VERSION]?: FAAS_VERSION_TYPE;\n  [FCP]?: FCP_TYPE;\n  [FILE_PATH]?: FILE_PATH_TYPE;\n  [FILE_SIZE]?: FILE_SIZE_TYPE;\n  [FLAG_EVALUATION_KEY]?: FLAG_EVALUATION_KEY_TYPE;\n  [FP]?: FP_TYPE;\n  [FRAMES_DELAY]?: FRAMES_DELAY_TYPE;\n  [FRAMES_FROZEN]?: FRAMES_FROZEN_TYPE;\n  [FRAMES_FROZEN_RATE]?: FRAMES_FROZEN_RATE_TYPE;\n  [FRAMES_SLOW]?: FRAMES_SLOW_TYPE;\n  [FRAMES_SLOW_RATE]?: FRAMES_SLOW_RATE_TYPE;\n  [FRAMES_TOTAL]?: FRAMES_TOTAL_TYPE;\n  [FS_ERROR]?: FS_ERROR_TYPE;\n  [GCP_FUNCTION_CONTEXT_EVENT_ID]?: GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE;\n  [GCP_FUNCTION_CONTEXT_EVENT_TYPE]?: GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE;\n  [GCP_FUNCTION_CONTEXT_ID]?: GCP_FUNCTION_CONTEXT_ID_TYPE;\n  [GCP_FUNCTION_CONTEXT_RESOURCE]?: GCP_FUNCTION_CONTEXT_RESOURCE_TYPE;\n  [GCP_FUNCTION_CONTEXT_SOURCE]?: GCP_FUNCTION_CONTEXT_SOURCE_TYPE;\n  [GCP_FUNCTION_CONTEXT_SPECVERSION]?: GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE;\n  [GCP_FUNCTION_CONTEXT_TIME]?: GCP_FUNCTION_CONTEXT_TIME_TYPE;\n  [GCP_FUNCTION_CONTEXT_TIMESTAMP]?: GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE;\n  [GCP_FUNCTION_CONTEXT_TYPE]?: GCP_FUNCTION_CONTEXT_TYPE_TYPE;\n  [GCP_PROJECT_ID]?: GCP_PROJECT_ID_TYPE;\n  [GCP_REGION]?: GCP_REGION_TYPE;\n  [GEN_AI_AGENT_NAME]?: GEN_AI_AGENT_NAME_TYPE;\n  [GEN_AI_CONTEXT_UTILIZATION]?: GEN_AI_CONTEXT_UTILIZATION_TYPE;\n  [GEN_AI_CONTEXT_WINDOW_SIZE]?: GEN_AI_CONTEXT_WINDOW_SIZE_TYPE;\n  [GEN_AI_CONVERSATION_ID]?: GEN_AI_CONVERSATION_ID_TYPE;\n  [GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS]?: GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS_TYPE;\n  [GEN_AI_COST_CACHE_READ_INPUT_TOKENS]?: GEN_AI_COST_CACHE_READ_INPUT_TOKENS_TYPE;\n  [GEN_AI_COST_INPUT_TOKENS]?: GEN_AI_COST_INPUT_TOKENS_TYPE;\n  [GEN_AI_COST_OUTPUT_TOKENS]?: GEN_AI_COST_OUTPUT_TOKENS_TYPE;\n  [GEN_AI_COST_REASONING_OUTPUT_TOKENS]?: GEN_AI_COST_REASONING_OUTPUT_TOKENS_TYPE;\n  [GEN_AI_COST_TOTAL_TOKENS]?: GEN_AI_COST_TOTAL_TOKENS_TYPE;\n  [GEN_AI_EMBEDDINGS_INPUT]?: GEN_AI_EMBEDDINGS_INPUT_TYPE;\n  [GEN_AI_FUNCTION_ID]?: GEN_AI_FUNCTION_ID_TYPE;\n  [GEN_AI_INPUT_MESSAGES]?: GEN_AI_INPUT_MESSAGES_TYPE;\n  [GEN_AI_MEMORY_QUERY_TEXT]?: GEN_AI_MEMORY_QUERY_TEXT_TYPE;\n  [GEN_AI_MEMORY_RECORDS]?: GEN_AI_MEMORY_RECORDS_TYPE;\n  [GEN_AI_MEMORY_RECORD_COUNT]?: GEN_AI_MEMORY_RECORD_COUNT_TYPE;\n  [GEN_AI_MEMORY_RECORD_ID]?: GEN_AI_MEMORY_RECORD_ID_TYPE;\n  [GEN_AI_MEMORY_STORE_ID]?: GEN_AI_MEMORY_STORE_ID_TYPE;\n  [GEN_AI_OPERATION_NAME]?: GEN_AI_OPERATION_NAME_TYPE;\n  [GEN_AI_OPERATION_TYPE]?: GEN_AI_OPERATION_TYPE_TYPE;\n  [GEN_AI_OUTPUT_MESSAGES]?: GEN_AI_OUTPUT_MESSAGES_TYPE;\n  [GEN_AI_PIPELINE_NAME]?: GEN_AI_PIPELINE_NAME_TYPE;\n  [GEN_AI_PROMPT]?: GEN_AI_PROMPT_TYPE;\n  [GEN_AI_PROMPT_NAME]?: GEN_AI_PROMPT_NAME_TYPE;\n  [GEN_AI_PROMPT_VARIABLE_KEY]?: GEN_AI_PROMPT_VARIABLE_KEY_TYPE;\n  [GEN_AI_PROVIDER_NAME]?: GEN_AI_PROVIDER_NAME_TYPE;\n  [GEN_AI_REQUEST_AVAILABLE_TOOLS]?: GEN_AI_REQUEST_AVAILABLE_TOOLS_TYPE;\n  [GEN_AI_REQUEST_FREQUENCY_PENALTY]?: GEN_AI_REQUEST_FREQUENCY_PENALTY_TYPE;\n  [GEN_AI_REQUEST_MAX_TOKENS]?: GEN_AI_REQUEST_MAX_TOKENS_TYPE;\n  [GEN_AI_REQUEST_MESSAGES]?: GEN_AI_REQUEST_MESSAGES_TYPE;\n  [GEN_AI_REQUEST_MODEL]?: GEN_AI_REQUEST_MODEL_TYPE;\n  [GEN_AI_REQUEST_PRESENCE_PENALTY]?: GEN_AI_REQUEST_PRESENCE_PENALTY_TYPE;\n  [GEN_AI_REQUEST_REASONING_LEVEL]?: GEN_AI_REQUEST_REASONING_LEVEL_TYPE;\n  [GEN_AI_REQUEST_SCHEMA]?: GEN_AI_REQUEST_SCHEMA_TYPE;\n  [GEN_AI_REQUEST_SEED]?: GEN_AI_REQUEST_SEED_TYPE;\n  [GEN_AI_REQUEST_STOP_SEQUENCES]?: GEN_AI_REQUEST_STOP_SEQUENCES_TYPE;\n  [GEN_AI_REQUEST_TEMPERATURE]?: GEN_AI_REQUEST_TEMPERATURE_TYPE;\n  [GEN_AI_REQUEST_TOP_K]?: GEN_AI_REQUEST_TOP_K_TYPE;\n  [GEN_AI_REQUEST_TOP_P]?: GEN_AI_REQUEST_TOP_P_TYPE;\n  [GEN_AI_RESPONSE_FINISH_REASON]?: GEN_AI_RESPONSE_FINISH_REASON_TYPE;\n  [GEN_AI_RESPONSE_FINISH_REASONS]?: GEN_AI_RESPONSE_FINISH_REASONS_TYPE;\n  [GEN_AI_RESPONSE_ID]?: GEN_AI_RESPONSE_ID_TYPE;\n  [GEN_AI_RESPONSE_MODEL]?: GEN_AI_RESPONSE_MODEL_TYPE;\n  [GEN_AI_RESPONSE_OBJECT]?: GEN_AI_RESPONSE_OBJECT_TYPE;\n  [GEN_AI_RESPONSE_STREAMING]?: GEN_AI_RESPONSE_STREAMING_TYPE;\n  [GEN_AI_RESPONSE_TEXT]?: GEN_AI_RESPONSE_TEXT_TYPE;\n  [GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK]?: GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK_TYPE;\n  [GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN]?: GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN_TYPE;\n  [GEN_AI_RESPONSE_TOKENS_PER_SECOND]?: GEN_AI_RESPONSE_TOKENS_PER_SECOND_TYPE;\n  [GEN_AI_RESPONSE_TOOL_CALLS]?: GEN_AI_RESPONSE_TOOL_CALLS_TYPE;\n  [GEN_AI_SYSTEM]?: GEN_AI_SYSTEM_TYPE;\n  [GEN_AI_SYSTEM_INSTRUCTIONS]?: GEN_AI_SYSTEM_INSTRUCTIONS_TYPE;\n  [GEN_AI_SYSTEM_MESSAGE]?: GEN_AI_SYSTEM_MESSAGE_TYPE;\n  [GEN_AI_TOOL_CALL_ARGUMENTS]?: GEN_AI_TOOL_CALL_ARGUMENTS_TYPE;\n  [GEN_AI_TOOL_CALL_RESULT]?: GEN_AI_TOOL_CALL_RESULT_TYPE;\n  [GEN_AI_TOOL_CALL_RESULT_SIZE]?: GEN_AI_TOOL_CALL_RESULT_SIZE_TYPE;\n  [GEN_AI_TOOL_DEFINITIONS]?: GEN_AI_TOOL_DEFINITIONS_TYPE;\n  [GEN_AI_TOOL_DESCRIPTION]?: GEN_AI_TOOL_DESCRIPTION_TYPE;\n  [GEN_AI_TOOL_INPUT]?: GEN_AI_TOOL_INPUT_TYPE;\n  [GEN_AI_TOOL_MESSAGE]?: GEN_AI_TOOL_MESSAGE_TYPE;\n  [GEN_AI_TOOL_NAME]?: GEN_AI_TOOL_NAME_TYPE;\n  [GEN_AI_TOOL_OUTPUT]?: GEN_AI_TOOL_OUTPUT_TYPE;\n  [GEN_AI_TOOL_TYPE]?: GEN_AI_TOOL_TYPE_TYPE;\n  [GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS]?: GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE;\n  [_GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS]?: _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE;\n  [GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS]?: GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE;\n  [_GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS]?: _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE;\n  [GEN_AI_USAGE_COMPLETION_TOKENS]?: GEN_AI_USAGE_COMPLETION_TOKENS_TYPE;\n  [GEN_AI_USAGE_INPUT_TOKENS]?: GEN_AI_USAGE_INPUT_TOKENS_TYPE;\n  [GEN_AI_USAGE_INPUT_TOKENS_CACHED]?: GEN_AI_USAGE_INPUT_TOKENS_CACHED_TYPE;\n  [GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE]?: GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_TYPE;\n  [GEN_AI_USAGE_OUTPUT_TOKENS]?: GEN_AI_USAGE_OUTPUT_TOKENS_TYPE;\n  [GEN_AI_USAGE_OUTPUT_TOKENS_REASONING]?: GEN_AI_USAGE_OUTPUT_TOKENS_REASONING_TYPE;\n  [GEN_AI_USAGE_PROMPT_TOKENS]?: GEN_AI_USAGE_PROMPT_TOKENS_TYPE;\n  [GEN_AI_USAGE_REASONING_OUTPUT_TOKENS]?: GEN_AI_USAGE_REASONING_OUTPUT_TOKENS_TYPE;\n  [GEN_AI_USAGE_TOTAL_TOKENS]?: GEN_AI_USAGE_TOTAL_TOKENS_TYPE;\n  [GRAPHQL_DOCUMENT]?: GRAPHQL_DOCUMENT_TYPE;\n  [GRAPHQL_OPERATION_NAME]?: GRAPHQL_OPERATION_NAME_TYPE;\n  [GRAPHQL_OPERATION_TYPE]?: GRAPHQL_OPERATION_TYPE_TYPE;\n  [GRAPHQL_PROCESSING_TYPE]?: GRAPHQL_PROCESSING_TYPE_TYPE;\n  [GRAPHQL_SOURCE]?: GRAPHQL_SOURCE_TYPE;\n  [GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS]?: GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS_TYPE;\n  [GRPC_ERROR_DEBUG_INFO_DETAIL]?: GRPC_ERROR_DEBUG_INFO_DETAIL_TYPE;\n  [GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES]?: GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES_TYPE;\n  [GRPC_ERROR_ERROR_INFO_DOMAIN]?: GRPC_ERROR_ERROR_INFO_DOMAIN_TYPE;\n  [GRPC_ERROR_ERROR_INFO_METADATA_KEY]?: GRPC_ERROR_ERROR_INFO_METADATA_KEY_TYPE;\n  [GRPC_ERROR_ERROR_INFO_REASON]?: GRPC_ERROR_ERROR_INFO_REASON_TYPE;\n  [GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS]?: GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS_TYPE;\n  [GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS]?: GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS_TYPE;\n  [GRPC_ERROR_RESOURCE_INFO_DESCRIPTION]?: GRPC_ERROR_RESOURCE_INFO_DESCRIPTION_TYPE;\n  [GRPC_ERROR_RESOURCE_INFO_OWNER]?: GRPC_ERROR_RESOURCE_INFO_OWNER_TYPE;\n  [GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME]?: GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME_TYPE;\n  [GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE]?: GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE_TYPE;\n  [GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS]?: GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS_TYPE;\n  [HAPI_EXT_TYPE]?: HAPI_EXT_TYPE_TYPE;\n  [HAPI_PLUGIN_NAME]?: HAPI_PLUGIN_NAME_TYPE;\n  [HAPI_TYPE]?: HAPI_TYPE_TYPE;\n  [HARDWARECONCURRENCY]?: HARDWARECONCURRENCY_TYPE;\n  [HEROKU_DYNO_NAME]?: HEROKU_DYNO_NAME_TYPE;\n  [HEROKU_ERROR_CODE]?: HEROKU_ERROR_CODE_TYPE;\n  [HEROKU_ERROR_DESCRIPTION]?: HEROKU_ERROR_DESCRIPTION_TYPE;\n  [HEROKU_LOGPLEX_DRAIN_TOKEN]?: HEROKU_LOGPLEX_DRAIN_TOKEN_TYPE;\n  [HEROKU_ROUTER_CONNECT]?: HEROKU_ROUTER_CONNECT_TYPE;\n  [HEROKU_ROUTER_REQUEST_ID]?: HEROKU_ROUTER_REQUEST_ID_TYPE;\n  [HEROKU_ROUTER_SERVICE]?: HEROKU_ROUTER_SERVICE_TYPE;\n  [HTTP_CLIENT_IP]?: HTTP_CLIENT_IP_TYPE;\n  [HTTP_DECODED_RESPONSE_CONTENT_LENGTH]?: HTTP_DECODED_RESPONSE_CONTENT_LENGTH_TYPE;\n  [HTTP_FLAVOR]?: HTTP_FLAVOR_TYPE;\n  [HTTP_FRAGMENT]?: HTTP_FRAGMENT_TYPE;\n  [HTTP_HOST]?: HTTP_HOST_TYPE;\n  [HTTP_METHOD]?: HTTP_METHOD_TYPE;\n  [HTTP_QUERY]?: HTTP_QUERY_TYPE;\n  [HTTP_REQUEST_BODY_DATA]?: HTTP_REQUEST_BODY_DATA_TYPE;\n  [HTTP_REQUEST_BODY_DECODED_SIZE]?: HTTP_REQUEST_BODY_DECODED_SIZE_TYPE;\n  [HTTP_REQUEST_BODY_SIZE]?: HTTP_REQUEST_BODY_SIZE_TYPE;\n  [HTTP_REQUEST_CONNECTION_END]?: HTTP_REQUEST_CONNECTION_END_TYPE;\n  [HTTP_REQUEST_CONNECT_START]?: HTTP_REQUEST_CONNECT_START_TYPE;\n  [HTTP_REQUEST_CONTENT_LENGTH]?: HTTP_REQUEST_CONTENT_LENGTH_TYPE;\n  [HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]?: HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED_TYPE;\n  [HTTP_REQUEST_DOMAIN_LOOKUP_END]?: HTTP_REQUEST_DOMAIN_LOOKUP_END_TYPE;\n  [HTTP_REQUEST_DOMAIN_LOOKUP_START]?: HTTP_REQUEST_DOMAIN_LOOKUP_START_TYPE;\n  [HTTP_REQUEST_DURATION]?: HTTP_REQUEST_DURATION_TYPE;\n  [HTTP_REQUEST_FETCH_START]?: HTTP_REQUEST_FETCH_START_TYPE;\n  [HTTP_REQUEST_HEADER_KEY]?: HTTP_REQUEST_HEADER_KEY_TYPE;\n  [HTTP_REQUEST_METHOD]?: HTTP_REQUEST_METHOD_TYPE;\n  [_HTTP_REQUEST_METHOD]?: _HTTP_REQUEST_METHOD_TYPE;\n  [HTTP_REQUEST_REDIRECT_END]?: HTTP_REQUEST_REDIRECT_END_TYPE;\n  [HTTP_REQUEST_REDIRECT_START]?: HTTP_REQUEST_REDIRECT_START_TYPE;\n  [HTTP_REQUEST_REQUEST_START]?: HTTP_REQUEST_REQUEST_START_TYPE;\n  [HTTP_REQUEST_RESEND_COUNT]?: HTTP_REQUEST_RESEND_COUNT_TYPE;\n  [HTTP_REQUEST_RESPONSE_END]?: HTTP_REQUEST_RESPONSE_END_TYPE;\n  [HTTP_REQUEST_RESPONSE_START]?: HTTP_REQUEST_RESPONSE_START_TYPE;\n  [HTTP_REQUEST_SAME_ORIGIN]?: HTTP_REQUEST_SAME_ORIGIN_TYPE;\n  [HTTP_REQUEST_SECURE_CONNECTION_START]?: HTTP_REQUEST_SECURE_CONNECTION_START_TYPE;\n  [HTTP_REQUEST_TIME_TO_FIRST_BYTE]?: HTTP_REQUEST_TIME_TO_FIRST_BYTE_TYPE;\n  [HTTP_REQUEST_WORKER_START]?: HTTP_REQUEST_WORKER_START_TYPE;\n  [HTTP_RESPONSE_BODY_DECODED_SIZE]?: HTTP_RESPONSE_BODY_DECODED_SIZE_TYPE;\n  [HTTP_RESPONSE_BODY_SIZE]?: HTTP_RESPONSE_BODY_SIZE_TYPE;\n  [HTTP_RESPONSE_CONTENT_LENGTH]?: HTTP_RESPONSE_CONTENT_LENGTH_TYPE;\n  [HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]?: HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_TYPE;\n  [HTTP_RESPONSE_HEADER_CONTENT_LENGTH]?: HTTP_RESPONSE_HEADER_CONTENT_LENGTH_TYPE;\n  [HTTP_RESPONSE_HEADER_KEY]?: HTTP_RESPONSE_HEADER_KEY_TYPE;\n  [HTTP_RESPONSE_SIZE]?: HTTP_RESPONSE_SIZE_TYPE;\n  [HTTP_RESPONSE_STATUS_CODE]?: HTTP_RESPONSE_STATUS_CODE_TYPE;\n  [HTTP_RESPONSE_STATUS_TEXT]?: HTTP_RESPONSE_STATUS_TEXT_TYPE;\n  [HTTP_RESPONSE_TRANSFER_SIZE]?: HTTP_RESPONSE_TRANSFER_SIZE_TYPE;\n  [HTTP_ROUTE]?: HTTP_ROUTE_TYPE;\n  [HTTP_SCHEME]?: HTTP_SCHEME_TYPE;\n  [HTTP_SERVER_NAME]?: HTTP_SERVER_NAME_TYPE;\n  [HTTP_SERVER_REQUEST_TIME_IN_QUEUE]?: HTTP_SERVER_REQUEST_TIME_IN_QUEUE_TYPE;\n  [HTTP_STATUS_CODE]?: HTTP_STATUS_CODE_TYPE;\n  [HTTP_STATUS_TEXT]?: HTTP_STATUS_TEXT_TYPE;\n  [HTTP_TARGET]?: HTTP_TARGET_TYPE;\n  [HTTP_URL]?: HTTP_URL_TYPE;\n  [HTTP_USER_AGENT]?: HTTP_USER_AGENT_TYPE;\n  [ID]?: ID_TYPE;\n  [INP]?: INP_TYPE;\n  [INTEGRITY_BLOCKED_URL]?: INTEGRITY_BLOCKED_URL_TYPE;\n  [INTEGRITY_DESTINATION]?: INTEGRITY_DESTINATION_TYPE;\n  [INTEGRITY_DOCUMENT_URL]?: INTEGRITY_DOCUMENT_URL_TYPE;\n  [INTEGRITY_REPORT_ONLY]?: INTEGRITY_REPORT_ONLY_TYPE;\n  [JSONRPC_PROTOCOL_VERSION]?: JSONRPC_PROTOCOL_VERSION_TYPE;\n  [JSONRPC_REQUEST_ID]?: JSONRPC_REQUEST_ID_TYPE;\n  [JVM_GC_ACTION]?: JVM_GC_ACTION_TYPE;\n  [JVM_GC_NAME]?: JVM_GC_NAME_TYPE;\n  [JVM_MEMORY_POOL_NAME]?: JVM_MEMORY_POOL_NAME_TYPE;\n  [JVM_MEMORY_TYPE]?: JVM_MEMORY_TYPE_TYPE;\n  [JVM_THREAD_DAEMON]?: JVM_THREAD_DAEMON_TYPE;\n  [JVM_THREAD_STATE]?: JVM_THREAD_STATE_TYPE;\n  [KOA_NAME]?: KOA_NAME_TYPE;\n  [KOA_TYPE]?: KOA_TYPE_TYPE;\n  [LANGCHAIN_CHAIN_NAME]?: LANGCHAIN_CHAIN_NAME_TYPE;\n  [LCP]?: LCP_TYPE;\n  [LCP_ELEMENT]?: LCP_ELEMENT_TYPE;\n  [LCP_ID]?: LCP_ID_TYPE;\n  [LCP_LOADTIME]?: LCP_LOADTIME_TYPE;\n  [LCP_RENDERTIME]?: LCP_RENDERTIME_TYPE;\n  [LCP_SIZE]?: LCP_SIZE_TYPE;\n  [LCP_URL]?: LCP_URL_TYPE;\n  [LITESTAR_MIDDLEWARE_NAME]?: LITESTAR_MIDDLEWARE_NAME_TYPE;\n  [LOGGER_NAME]?: LOGGER_NAME_TYPE;\n  [MCP_AUTH_CLIENT_NAME]?: MCP_AUTH_CLIENT_NAME_TYPE;\n  [MCP_CANCELLED_REASON]?: MCP_CANCELLED_REASON_TYPE;\n  [MCP_CANCELLED_REQUEST_ID]?: MCP_CANCELLED_REQUEST_ID_TYPE;\n  [MCP_CLIENT_NAME]?: MCP_CLIENT_NAME_TYPE;\n  [MCP_CLIENT_TITLE]?: MCP_CLIENT_TITLE_TYPE;\n  [MCP_CLIENT_VERSION]?: MCP_CLIENT_VERSION_TYPE;\n  [MCP_LIFECYCLE_PHASE]?: MCP_LIFECYCLE_PHASE_TYPE;\n  [MCP_LOGGING_DATA_TYPE]?: MCP_LOGGING_DATA_TYPE_TYPE;\n  [MCP_LOGGING_LEVEL]?: MCP_LOGGING_LEVEL_TYPE;\n  [MCP_LOGGING_LOGGER]?: MCP_LOGGING_LOGGER_TYPE;\n  [MCP_LOGGING_MESSAGE]?: MCP_LOGGING_MESSAGE_TYPE;\n  [MCP_METHOD_NAME]?: MCP_METHOD_NAME_TYPE;\n  [MCP_PROGRESS_CURRENT]?: MCP_PROGRESS_CURRENT_TYPE;\n  [MCP_PROGRESS_MESSAGE]?: MCP_PROGRESS_MESSAGE_TYPE;\n  [MCP_PROGRESS_PERCENTAGE]?: MCP_PROGRESS_PERCENTAGE_TYPE;\n  [MCP_PROGRESS_TOKEN]?: MCP_PROGRESS_TOKEN_TYPE;\n  [MCP_PROGRESS_TOTAL]?: MCP_PROGRESS_TOTAL_TYPE;\n  [MCP_PROMPT_NAME]?: MCP_PROMPT_NAME_TYPE;\n  [MCP_PROMPT_RESULT_DESCRIPTION]?: MCP_PROMPT_RESULT_DESCRIPTION_TYPE;\n  [MCP_PROMPT_RESULT_KEY_CONTENT]?: MCP_PROMPT_RESULT_KEY_CONTENT_TYPE;\n  [MCP_PROMPT_RESULT_KEY_ROLE]?: MCP_PROMPT_RESULT_KEY_ROLE_TYPE;\n  [MCP_PROMPT_RESULT_MESSAGE_CONTENT]?: MCP_PROMPT_RESULT_MESSAGE_CONTENT_TYPE;\n  [MCP_PROMPT_RESULT_MESSAGE_COUNT]?: MCP_PROMPT_RESULT_MESSAGE_COUNT_TYPE;\n  [MCP_PROMPT_RESULT_MESSAGE_ROLE]?: MCP_PROMPT_RESULT_MESSAGE_ROLE_TYPE;\n  [MCP_PROTOCOL_READY]?: MCP_PROTOCOL_READY_TYPE;\n  [MCP_PROTOCOL_VERSION]?: MCP_PROTOCOL_VERSION_TYPE;\n  [MCP_REQUEST_ARGUMENT_KEY]?: MCP_REQUEST_ARGUMENT_KEY_TYPE;\n  [MCP_REQUEST_ARGUMENT_NAME]?: MCP_REQUEST_ARGUMENT_NAME_TYPE;\n  [MCP_REQUEST_ARGUMENT_URI]?: MCP_REQUEST_ARGUMENT_URI_TYPE;\n  [MCP_REQUEST_ID]?: MCP_REQUEST_ID_TYPE;\n  [MCP_RESOURCE_PROTOCOL]?: MCP_RESOURCE_PROTOCOL_TYPE;\n  [MCP_RESOURCE_URI]?: MCP_RESOURCE_URI_TYPE;\n  [MCP_SERVER_NAME]?: MCP_SERVER_NAME_TYPE;\n  [MCP_SERVER_TITLE]?: MCP_SERVER_TITLE_TYPE;\n  [MCP_SERVER_VERSION]?: MCP_SERVER_VERSION_TYPE;\n  [MCP_SESSION_ID]?: MCP_SESSION_ID_TYPE;\n  [MCP_TOOL_NAME]?: MCP_TOOL_NAME_TYPE;\n  [MCP_TOOL_RESULT_CONTENT]?: MCP_TOOL_RESULT_CONTENT_TYPE;\n  [MCP_TOOL_RESULT_CONTENT_COUNT]?: MCP_TOOL_RESULT_CONTENT_COUNT_TYPE;\n  [MCP_TOOL_RESULT_CONTENT_TYPE]?: MCP_TOOL_RESULT_CONTENT_TYPE_TYPE;\n  [MCP_TOOL_RESULT_DATA_SIZE]?: MCP_TOOL_RESULT_DATA_SIZE_TYPE;\n  [MCP_TOOL_RESULT_IS_ERROR]?: MCP_TOOL_RESULT_IS_ERROR_TYPE;\n  [MCP_TOOL_RESULT_KEY_CONTENT]?: MCP_TOOL_RESULT_KEY_CONTENT_TYPE;\n  [MCP_TOOL_RESULT_KEY_CONTENT_TYPE]?: MCP_TOOL_RESULT_KEY_CONTENT_TYPE_TYPE;\n  [MCP_TOOL_RESULT_KEY_DATA_SIZE]?: MCP_TOOL_RESULT_KEY_DATA_SIZE_TYPE;\n  [MCP_TOOL_RESULT_KEY_MIME_TYPE]?: MCP_TOOL_RESULT_KEY_MIME_TYPE_TYPE;\n  [MCP_TOOL_RESULT_KEY_NAME]?: MCP_TOOL_RESULT_KEY_NAME_TYPE;\n  [MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE]?: MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE_TYPE;\n  [MCP_TOOL_RESULT_KEY_RESOURCE_URI]?: MCP_TOOL_RESULT_KEY_RESOURCE_URI_TYPE;\n  [MCP_TOOL_RESULT_KEY_URI]?: MCP_TOOL_RESULT_KEY_URI_TYPE;\n  [MCP_TOOL_RESULT_MIME_TYPE]?: MCP_TOOL_RESULT_MIME_TYPE_TYPE;\n  [MCP_TOOL_RESULT_NAME]?: MCP_TOOL_RESULT_NAME_TYPE;\n  [MCP_TOOL_RESULT_RESOURCE_MIME_TYPE]?: MCP_TOOL_RESULT_RESOURCE_MIME_TYPE_TYPE;\n  [MCP_TOOL_RESULT_RESOURCE_URI]?: MCP_TOOL_RESULT_RESOURCE_URI_TYPE;\n  [MCP_TOOL_RESULT_URI]?: MCP_TOOL_RESULT_URI_TYPE;\n  [MCP_TRANSPORT]?: MCP_TRANSPORT_TYPE;\n  [MDC_KEY]?: MDC_KEY_TYPE;\n  [MESSAGING_BATCH_MESSAGE_COUNT]?: MESSAGING_BATCH_MESSAGE_COUNT_TYPE;\n  [MESSAGING_BULLMQ_FLOW_NAME]?: MESSAGING_BULLMQ_FLOW_NAME_TYPE;\n  [MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP]?: MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP_TYPE;\n  [MESSAGING_BULLMQ_JOB_BULK_NAMES]?: MESSAGING_BULLMQ_JOB_BULK_NAMES_TYPE;\n  [MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY]?: MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY_TYPE;\n  [MESSAGING_BULLMQ_JOB_IDS]?: MESSAGING_BULLMQ_JOB_IDS_TYPE;\n  [MESSAGING_BULLMQ_JOB_KEY]?: MESSAGING_BULLMQ_JOB_KEY_TYPE;\n  [MESSAGING_BULLMQ_JOB_NAME]?: MESSAGING_BULLMQ_JOB_NAME_TYPE;\n  [MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP]?: MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP_TYPE;\n  [MESSAGING_BULLMQ_JOB_SCHEDULER_ID]?: MESSAGING_BULLMQ_JOB_SCHEDULER_ID_TYPE;\n  [MESSAGING_BULLMQ_JOB_STATE]?: MESSAGING_BULLMQ_JOB_STATE_TYPE;\n  [MESSAGING_BULLMQ_JOB_TYPE]?: MESSAGING_BULLMQ_JOB_TYPE_TYPE;\n  [MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT]?: MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT_TYPE;\n  [MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT]?: MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT_TYPE;\n  [MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY]?: MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY_TYPE;\n  [MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH]?: MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH_TYPE;\n  [MESSAGING_BULLMQ_QUEUE_GRACE]?: MESSAGING_BULLMQ_QUEUE_GRACE_TYPE;\n  [MESSAGING_BULLMQ_QUEUE_JOBS_STATE]?: MESSAGING_BULLMQ_QUEUE_JOBS_STATE_TYPE;\n  [MESSAGING_BULLMQ_QUEUE_RATE_LIMIT]?: MESSAGING_BULLMQ_QUEUE_RATE_LIMIT_TYPE;\n  [MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE]?: MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE_TYPE;\n  [MESSAGING_BULLMQ_WORKER_FORCE_CLOSE]?: MESSAGING_BULLMQ_WORKER_FORCE_CLOSE_TYPE;\n  [MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS]?: MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS_TYPE;\n  [MESSAGING_BULLMQ_WORKER_NAME]?: MESSAGING_BULLMQ_WORKER_NAME_TYPE;\n  [MESSAGING_BULLMQ_WORKER_RATE_LIMIT]?: MESSAGING_BULLMQ_WORKER_RATE_LIMIT_TYPE;\n  [MESSAGING_BULLMQ_WORKER_STALLED_JOBS]?: MESSAGING_BULLMQ_WORKER_STALLED_JOBS_TYPE;\n  [MESSAGING_CLIENT_ID]?: MESSAGING_CLIENT_ID_TYPE;\n  [MESSAGING_CONVERSATION_ID]?: MESSAGING_CONVERSATION_ID_TYPE;\n  [MESSAGING_DESTINATION]?: MESSAGING_DESTINATION_TYPE;\n  [MESSAGING_DESTINATION_CONNECTION]?: MESSAGING_DESTINATION_CONNECTION_TYPE;\n  [MESSAGING_DESTINATION_KIND]?: MESSAGING_DESTINATION_KIND_TYPE;\n  [MESSAGING_DESTINATION_NAME]?: MESSAGING_DESTINATION_NAME_TYPE;\n  [MESSAGING_DESTINATION_PARTITION_ID]?: MESSAGING_DESTINATION_PARTITION_ID_TYPE;\n  [MESSAGING_KAFKA_MESSAGE_KEY]?: MESSAGING_KAFKA_MESSAGE_KEY_TYPE;\n  [MESSAGING_KAFKA_MESSAGE_TOMBSTONE]?: MESSAGING_KAFKA_MESSAGE_TOMBSTONE_TYPE;\n  [MESSAGING_KAFKA_OFFSET]?: MESSAGING_KAFKA_OFFSET_TYPE;\n  [MESSAGING_MESSAGE_BODY_SIZE]?: MESSAGING_MESSAGE_BODY_SIZE_TYPE;\n  [MESSAGING_MESSAGE_CONVERSATION_ID]?: MESSAGING_MESSAGE_CONVERSATION_ID_TYPE;\n  [MESSAGING_MESSAGE_ENVELOPE_SIZE]?: MESSAGING_MESSAGE_ENVELOPE_SIZE_TYPE;\n  [MESSAGING_MESSAGE_ID]?: MESSAGING_MESSAGE_ID_TYPE;\n  [_MESSAGING_MESSAGE_ID]?: _MESSAGING_MESSAGE_ID_TYPE;\n  [MESSAGING_MESSAGE_RECEIVE_LATENCY]?: MESSAGING_MESSAGE_RECEIVE_LATENCY_TYPE;\n  [MESSAGING_MESSAGE_RETRY_COUNT]?: MESSAGING_MESSAGE_RETRY_COUNT_TYPE;\n  [MESSAGING_OPERATION]?: MESSAGING_OPERATION_TYPE;\n  [MESSAGING_OPERATION_NAME]?: MESSAGING_OPERATION_NAME_TYPE;\n  [MESSAGING_OPERATION_TYPE]?: MESSAGING_OPERATION_TYPE_TYPE;\n  [MESSAGING_PROTOCOL]?: MESSAGING_PROTOCOL_TYPE;\n  [MESSAGING_PROTOCOL_VERSION]?: MESSAGING_PROTOCOL_VERSION_TYPE;\n  [MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY]?: MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY_TYPE;\n  [MESSAGING_RABBITMQ_ROUTING_KEY]?: MESSAGING_RABBITMQ_ROUTING_KEY_TYPE;\n  [MESSAGING_SYSTEM]?: MESSAGING_SYSTEM_TYPE;\n  [MESSAGING_URL]?: MESSAGING_URL_TYPE;\n  [METHOD]?: METHOD_TYPE;\n  [MIDDLEWARE_NAME]?: MIDDLEWARE_NAME_TYPE;\n  [NAVIGATION_ORIGIN]?: NAVIGATION_ORIGIN_TYPE;\n  [NAVIGATION_ROUTE_ID]?: NAVIGATION_ROUTE_ID_TYPE;\n  [NAVIGATION_TYPE]?: NAVIGATION_TYPE_TYPE;\n  [NEL_ELAPSED_TIME]?: NEL_ELAPSED_TIME_TYPE;\n  [NEL_PHASE]?: NEL_PHASE_TYPE;\n  [NEL_REFERRER]?: NEL_REFERRER_TYPE;\n  [NEL_SAMPLING_FRACTION]?: NEL_SAMPLING_FRACTION_TYPE;\n  [NEL_SAMPLING_FUNCTION]?: NEL_SAMPLING_FUNCTION_TYPE;\n  [NEL_TYPE]?: NEL_TYPE_TYPE;\n  [NETWORK_CONNECTION_EFFECTIVE_TYPE]?: NETWORK_CONNECTION_EFFECTIVE_TYPE_TYPE;\n  [NETWORK_CONNECTION_RTT]?: NETWORK_CONNECTION_RTT_TYPE;\n  [NETWORK_CONNECTION_TYPE]?: NETWORK_CONNECTION_TYPE_TYPE;\n  [NETWORK_LOCAL_ADDRESS]?: NETWORK_LOCAL_ADDRESS_TYPE;\n  [NETWORK_LOCAL_PORT]?: NETWORK_LOCAL_PORT_TYPE;\n  [NETWORK_PEER_ADDRESS]?: NETWORK_PEER_ADDRESS_TYPE;\n  [NETWORK_PEER_PORT]?: NETWORK_PEER_PORT_TYPE;\n  [NETWORK_PROTOCOL_NAME]?: NETWORK_PROTOCOL_NAME_TYPE;\n  [NETWORK_PROTOCOL_VERSION]?: NETWORK_PROTOCOL_VERSION_TYPE;\n  [NETWORK_TRANSPORT]?: NETWORK_TRANSPORT_TYPE;\n  [NETWORK_TYPE]?: NETWORK_TYPE_TYPE;\n  [NET_HOST_IP]?: NET_HOST_IP_TYPE;\n  [NET_HOST_NAME]?: NET_HOST_NAME_TYPE;\n  [NET_HOST_PORT]?: NET_HOST_PORT_TYPE;\n  [NET_PEER_IP]?: NET_PEER_IP_TYPE;\n  [NET_PEER_NAME]?: NET_PEER_NAME_TYPE;\n  [NET_PEER_PORT]?: NET_PEER_PORT_TYPE;\n  [NET_PROTOCOL_NAME]?: NET_PROTOCOL_NAME_TYPE;\n  [NET_PROTOCOL_VERSION]?: NET_PROTOCOL_VERSION_TYPE;\n  [NET_SOCK_FAMILY]?: NET_SOCK_FAMILY_TYPE;\n  [NET_SOCK_HOST_ADDR]?: NET_SOCK_HOST_ADDR_TYPE;\n  [NET_SOCK_HOST_PORT]?: NET_SOCK_HOST_PORT_TYPE;\n  [NET_SOCK_PEER_ADDR]?: NET_SOCK_PEER_ADDR_TYPE;\n  [NET_SOCK_PEER_NAME]?: NET_SOCK_PEER_NAME_TYPE;\n  [NET_SOCK_PEER_PORT]?: NET_SOCK_PEER_PORT_TYPE;\n  [NET_TRANSPORT]?: NET_TRANSPORT_TYPE;\n  [OS_BUILD]?: OS_BUILD_TYPE;\n  [OS_BUILD_ID]?: OS_BUILD_ID_TYPE;\n  [OS_DESCRIPTION]?: OS_DESCRIPTION_TYPE;\n  [OS_KERNEL_VERSION]?: OS_KERNEL_VERSION_TYPE;\n  [OS_NAME]?: OS_NAME_TYPE;\n  [OS_RAW_DESCRIPTION]?: OS_RAW_DESCRIPTION_TYPE;\n  [OS_ROOTED]?: OS_ROOTED_TYPE;\n  [OS_THEME]?: OS_THEME_TYPE;\n  [OS_TYPE]?: OS_TYPE_TYPE;\n  [OS_VERSION]?: OS_VERSION_TYPE;\n  [OTEL_KIND]?: OTEL_KIND_TYPE;\n  [OTEL_SCOPE_NAME]?: OTEL_SCOPE_NAME_TYPE;\n  [OTEL_SCOPE_VERSION]?: OTEL_SCOPE_VERSION_TYPE;\n  [OTEL_STATUS_CODE]?: OTEL_STATUS_CODE_TYPE;\n  [OTEL_STATUS_DESCRIPTION]?: OTEL_STATUS_DESCRIPTION_TYPE;\n  [PAGE_SERVER_RENDERING_TYPE]?: PAGE_SERVER_RENDERING_TYPE_TYPE;\n  [PARAMS_KEY]?: PARAMS_KEY_TYPE;\n  [PERFORMANCE_ACTIVATIONSTART]?: PERFORMANCE_ACTIVATIONSTART_TYPE;\n  [PERFORMANCE_TIMEORIGIN]?: PERFORMANCE_TIMEORIGIN_TYPE;\n  [PORT]?: PORT_TYPE;\n  [PREVIOUS_ROUTE]?: PREVIOUS_ROUTE_TYPE;\n  [PROCESS_COMMAND_ARGS]?: PROCESS_COMMAND_ARGS_TYPE;\n  [PROCESS_EXECUTABLE_NAME]?: PROCESS_EXECUTABLE_NAME_TYPE;\n  [PROCESS_PID]?: PROCESS_PID_TYPE;\n  [PROCESS_RUNTIME_DESCRIPTION]?: PROCESS_RUNTIME_DESCRIPTION_TYPE;\n  [PROCESS_RUNTIME_ENGINE_NAME]?: PROCESS_RUNTIME_ENGINE_NAME_TYPE;\n  [PROCESS_RUNTIME_ENGINE_VERSION]?: PROCESS_RUNTIME_ENGINE_VERSION_TYPE;\n  [PROCESS_RUNTIME_NAME]?: PROCESS_RUNTIME_NAME_TYPE;\n  [PROCESS_RUNTIME_VERSION]?: PROCESS_RUNTIME_VERSION_TYPE;\n  [PROFILE_ID]?: PROFILE_ID_TYPE;\n  [QUERY]?: QUERY_TYPE;\n  [QUERY_KEY]?: QUERY_KEY_TYPE;\n  [REACT_NATIVE_ARCHITECTURE]?: REACT_NATIVE_ARCHITECTURE_TYPE;\n  [REACT_NATIVE_MODULE_CALL_COUNT]?: REACT_NATIVE_MODULE_CALL_COUNT_TYPE;\n  [REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT]?: REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT_TYPE;\n  [REACT_NATIVE_MODULE_DURATION_MAX]?: REACT_NATIVE_MODULE_DURATION_MAX_TYPE;\n  [REACT_NATIVE_MODULE_DURATION_TOTAL]?: REACT_NATIVE_MODULE_DURATION_TOTAL_TYPE;\n  [REACT_NATIVE_MODULE_ERROR_COUNT]?: REACT_NATIVE_MODULE_ERROR_COUNT_TYPE;\n  [REACT_NATIVE_MODULE_KIND]?: REACT_NATIVE_MODULE_KIND_TYPE;\n  [REACT_NATIVE_MODULE_METHOD]?: REACT_NATIVE_MODULE_METHOD_TYPE;\n  [REACT_NATIVE_MODULE_NAME]?: REACT_NATIVE_MODULE_NAME_TYPE;\n  [REACT_NATIVE_MODULE_TOP_DURATION]?: REACT_NATIVE_MODULE_TOP_DURATION_TYPE;\n  [REACT_NATIVE_MODULE_TOP_NAME]?: REACT_NATIVE_MODULE_TOP_NAME_TYPE;\n  [REACT_VERSION]?: REACT_VERSION_TYPE;\n  [REDIS_COMMAND]?: REDIS_COMMAND_TYPE;\n  [REDIS_KEY]?: REDIS_KEY_TYPE;\n  [RELEASE]?: RELEASE_TYPE;\n  [REMIX_ACTION_FORM_DATA_KEY]?: REMIX_ACTION_FORM_DATA_KEY_TYPE;\n  [REPLAYID]?: REPLAYID_TYPE;\n  [REPLAY_ID]?: REPLAY_ID_TYPE;\n  [RESOURCE_DEPLOYMENT_ENVIRONMENT]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE;\n  [RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE;\n  [RESOURCE_RENDER_BLOCKING_STATUS]?: RESOURCE_RENDER_BLOCKING_STATUS_TYPE;\n  [ROUTE]?: ROUTE_TYPE;\n  [ROUTER_NAVIGATION_ORIGIN]?: ROUTER_NAVIGATION_ORIGIN_TYPE;\n  [ROUTER_NAVIGATION_ROUTE_ID]?: ROUTER_NAVIGATION_ROUTE_ID_TYPE;\n  [ROUTER_NAVIGATION_TYPE]?: ROUTER_NAVIGATION_TYPE_TYPE;\n  [RPC_GRPC_STATUS_CODE]?: RPC_GRPC_STATUS_CODE_TYPE;\n  [RPC_METHOD]?: RPC_METHOD_TYPE;\n  [RPC_RESPONSE_STATUS_CODE]?: RPC_RESPONSE_STATUS_CODE_TYPE;\n  [RPC_SERVICE]?: RPC_SERVICE_TYPE;\n  [RPC_SYSTEM]?: RPC_SYSTEM_TYPE;\n  [RPC_SYSTEM_NAME]?: RPC_SYSTEM_NAME_TYPE;\n  [RUNTIME_BUILD]?: RUNTIME_BUILD_TYPE;\n  [RUNTIME_NAME]?: RUNTIME_NAME_TYPE;\n  [RUNTIME_RAW_DESCRIPTION]?: RUNTIME_RAW_DESCRIPTION_TYPE;\n  [RUNTIME_VERSION]?: RUNTIME_VERSION_TYPE;\n  [SCORE_KEY]?: SCORE_KEY_TYPE;\n  [SCORE_RATIO_KEY]?: SCORE_RATIO_KEY_TYPE;\n  [SCORE_TOTAL]?: SCORE_TOTAL_TYPE;\n  [SCORE_WEIGHT_KEY]?: SCORE_WEIGHT_KEY_TYPE;\n  [SENTRY_ACTION]?: SENTRY_ACTION_TYPE;\n  [SENTRY_BROWSER_NAME]?: SENTRY_BROWSER_NAME_TYPE;\n  [SENTRY_BROWSER_VERSION]?: SENTRY_BROWSER_VERSION_TYPE;\n  [SENTRY_CANCELLATION_REASON]?: SENTRY_CANCELLATION_REASON_TYPE;\n  [SENTRY_CATEGORY]?: SENTRY_CATEGORY_TYPE;\n  [SENTRY_CLIENT_SAMPLE_RATE]?: SENTRY_CLIENT_SAMPLE_RATE_TYPE;\n  [SENTRY_DESCRIPTION]?: SENTRY_DESCRIPTION_TYPE;\n  [SENTRY_DIST]?: SENTRY_DIST_TYPE;\n  [SENTRY_DOMAIN]?: SENTRY_DOMAIN_TYPE;\n  [SENTRY_DSC_ENVIRONMENT]?: SENTRY_DSC_ENVIRONMENT_TYPE;\n  [SENTRY_DSC_PROJECT_ID]?: SENTRY_DSC_PROJECT_ID_TYPE;\n  [SENTRY_DSC_PUBLIC_KEY]?: SENTRY_DSC_PUBLIC_KEY_TYPE;\n  [SENTRY_DSC_RELEASE]?: SENTRY_DSC_RELEASE_TYPE;\n  [SENTRY_DSC_SAMPLED]?: SENTRY_DSC_SAMPLED_TYPE;\n  [SENTRY_DSC_SAMPLE_RATE]?: SENTRY_DSC_SAMPLE_RATE_TYPE;\n  [SENTRY_DSC_TRACE_ID]?: SENTRY_DSC_TRACE_ID_TYPE;\n  [SENTRY_DSC_TRANSACTION]?: SENTRY_DSC_TRANSACTION_TYPE;\n  [SENTRY_ENVIRONMENT]?: SENTRY_ENVIRONMENT_TYPE;\n  [SENTRY_EVENT_SERIALIZED_BREADCRUMBS]?: SENTRY_EVENT_SERIALIZED_BREADCRUMBS_TYPE;\n  [SENTRY_EVENT_SERIALIZED_CONTEXTS]?: SENTRY_EVENT_SERIALIZED_CONTEXTS_TYPE;\n  [SENTRY_EVENT_SERIALIZED_EXTRA]?: SENTRY_EVENT_SERIALIZED_EXTRA_TYPE;\n  [SENTRY_EVENT_SERIALIZED_META]?: SENTRY_EVENT_SERIALIZED_META_TYPE;\n  [SENTRY_EXCLUSIVE_TIME]?: SENTRY_EXCLUSIVE_TIME_TYPE;\n  [SENTRY_FRAMES_FROZEN]?: SENTRY_FRAMES_FROZEN_TYPE;\n  [SENTRY_FRAMES_SLOW]?: SENTRY_FRAMES_SLOW_TYPE;\n  [SENTRY_FRAMES_TOTAL]?: SENTRY_FRAMES_TOTAL_TYPE;\n  [SENTRY_GRAPHQL_OPERATION]?: SENTRY_GRAPHQL_OPERATION_TYPE;\n  [SENTRY_GROUP]?: SENTRY_GROUP_TYPE;\n  [SENTRY_HTTP_PREFETCH]?: SENTRY_HTTP_PREFETCH_TYPE;\n  [SENTRY_IDLE_SPAN_FINISH_REASON]?: SENTRY_IDLE_SPAN_FINISH_REASON_TYPE;\n  [SENTRY_IS_LOCALHOST]?: SENTRY_IS_LOCALHOST_TYPE;\n  [SENTRY_IS_REMOTE]?: SENTRY_IS_REMOTE_TYPE;\n  [SENTRY_KIND]?: SENTRY_KIND_TYPE;\n  [SENTRY_LINK_TYPE]?: SENTRY_LINK_TYPE_TYPE;\n  [SENTRY_MAIN_THREAD]?: SENTRY_MAIN_THREAD_TYPE;\n  [SENTRY_MESSAGE_PARAMETER_KEY]?: SENTRY_MESSAGE_PARAMETER_KEY_TYPE;\n  [SENTRY_MESSAGE_TEMPLATE]?: SENTRY_MESSAGE_TEMPLATE_TYPE;\n  [SENTRY_METRIC_SOURCE]?: SENTRY_METRIC_SOURCE_TYPE;\n  [SENTRY_MOBILE]?: SENTRY_MOBILE_TYPE;\n  [SENTRY_MODULE_KEY]?: SENTRY_MODULE_KEY_TYPE;\n  [SENTRY_NEXTJS_SSR_FUNCTION_ROUTE]?: SENTRY_NEXTJS_SSR_FUNCTION_ROUTE_TYPE;\n  [SENTRY_NEXTJS_SSR_FUNCTION_TYPE]?: SENTRY_NEXTJS_SSR_FUNCTION_TYPE_TYPE;\n  [SENTRY_NORMALIZED_DB_QUERY]?: SENTRY_NORMALIZED_DB_QUERY_TYPE;\n  [SENTRY_NORMALIZED_DB_QUERY_HASH]?: SENTRY_NORMALIZED_DB_QUERY_HASH_TYPE;\n  [SENTRY_NORMALIZED_DESCRIPTION]?: SENTRY_NORMALIZED_DESCRIPTION_TYPE;\n  [SENTRY_OBSERVED_TIMESTAMP_NANOS]?: SENTRY_OBSERVED_TIMESTAMP_NANOS_TYPE;\n  [SENTRY_OP]?: SENTRY_OP_TYPE;\n  [SENTRY_ORIGIN]?: SENTRY_ORIGIN_TYPE;\n  [SENTRY_PAGELOAD_SPAN_ID]?: SENTRY_PAGELOAD_SPAN_ID_TYPE;\n  [SENTRY_PLATFORM]?: SENTRY_PLATFORM_TYPE;\n  [SENTRY_PROFILER_ID]?: SENTRY_PROFILER_ID_TYPE;\n  [SENTRY_PROFILE_ID]?: SENTRY_PROFILE_ID_TYPE;\n  [SENTRY_RELAY_INGRESS]?: SENTRY_RELAY_INGRESS_TYPE;\n  [SENTRY_RELAY_PIPELINE]?: SENTRY_RELAY_PIPELINE_TYPE;\n  [SENTRY_RELEASE]?: SENTRY_RELEASE_TYPE;\n  [SENTRY_REPLAY_ID]?: SENTRY_REPLAY_ID_TYPE;\n  [SENTRY_REPLAY_IS_BUFFERING]?: SENTRY_REPLAY_IS_BUFFERING_TYPE;\n  [SENTRY_REPORT_EVENT]?: SENTRY_REPORT_EVENT_TYPE;\n  [SENTRY_SDK_INTEGRATIONS]?: SENTRY_SDK_INTEGRATIONS_TYPE;\n  [SENTRY_SDK_NAME]?: SENTRY_SDK_NAME_TYPE;\n  [SENTRY_SDK_VERSION]?: SENTRY_SDK_VERSION_TYPE;\n  [SENTRY_SEGMENT_ID]?: SENTRY_SEGMENT_ID_TYPE;\n  [_SENTRY_SEGMENT_ID]?: _SENTRY_SEGMENT_ID_TYPE;\n  [SENTRY_SEGMENT_NAME]?: SENTRY_SEGMENT_NAME_TYPE;\n  [SENTRY_SEGMENT_NAME_SOURCE]?: SENTRY_SEGMENT_NAME_SOURCE_TYPE;\n  [SENTRY_SERVER_SAMPLE_RATE]?: SENTRY_SERVER_SAMPLE_RATE_TYPE;\n  [SENTRY_SOURCE]?: SENTRY_SOURCE_TYPE;\n  [SENTRY_SPAN_SOURCE]?: SENTRY_SPAN_SOURCE_TYPE;\n  [SENTRY_STATUS]?: SENTRY_STATUS_TYPE;\n  [SENTRY_STATUS_CODE]?: SENTRY_STATUS_CODE_TYPE;\n  [SENTRY_STATUS_MESSAGE]?: SENTRY_STATUS_MESSAGE_TYPE;\n  [SENTRY_SVELTEKIT_NAVIGATION_FROM]?: SENTRY_SVELTEKIT_NAVIGATION_FROM_TYPE;\n  [SENTRY_SVELTEKIT_NAVIGATION_TO]?: SENTRY_SVELTEKIT_NAVIGATION_TO_TYPE;\n  [SENTRY_SVELTEKIT_NAVIGATION_TYPE]?: SENTRY_SVELTEKIT_NAVIGATION_TYPE_TYPE;\n  [SENTRY_THREAD_ID]?: SENTRY_THREAD_ID_TYPE;\n  [SENTRY_TIMESTAMP_SEQUENCE]?: SENTRY_TIMESTAMP_SEQUENCE_TYPE;\n  [SENTRY_TRACE_LIFECYCLE]?: SENTRY_TRACE_LIFECYCLE_TYPE;\n  [SENTRY_TRACE_PARENT_SPAN_ID]?: SENTRY_TRACE_PARENT_SPAN_ID_TYPE;\n  [SENTRY_TRACE_STATUS]?: SENTRY_TRACE_STATUS_TYPE;\n  [SENTRY_TRANSACTION]?: SENTRY_TRANSACTION_TYPE;\n  [SENTRY_USER_EMAIL]?: SENTRY_USER_EMAIL_TYPE;\n  [SENTRY_USER_GEO_CITY]?: SENTRY_USER_GEO_CITY_TYPE;\n  [SENTRY_USER_GEO_COUNTRY_CODE]?: SENTRY_USER_GEO_COUNTRY_CODE_TYPE;\n  [SENTRY_USER_GEO_REGION]?: SENTRY_USER_GEO_REGION_TYPE;\n  [SENTRY_USER_GEO_SUBDIVISION]?: SENTRY_USER_GEO_SUBDIVISION_TYPE;\n  [SENTRY_USER_GEO_SUBREGION]?: SENTRY_USER_GEO_SUBREGION_TYPE;\n  [SENTRY_USER_ID]?: SENTRY_USER_ID_TYPE;\n  [SENTRY_USER_IP]?: SENTRY_USER_IP_TYPE;\n  [SENTRY_USER_USERNAME]?: SENTRY_USER_USERNAME_TYPE;\n  [SERVER_ADDRESS]?: SERVER_ADDRESS_TYPE;\n  [SERVER_EXT_TYPE]?: SERVER_EXT_TYPE_TYPE;\n  [SERVER_NAME]?: SERVER_NAME_TYPE;\n  [SERVER_PORT]?: SERVER_PORT_TYPE;\n  [SERVICE_NAME]?: SERVICE_NAME_TYPE;\n  [SERVICE_VERSION]?: SERVICE_VERSION_TYPE;\n  [SESSION_ID]?: SESSION_ID_TYPE;\n  [STALL_PERCENTAGE]?: STALL_PERCENTAGE_TYPE;\n  [STALL_TOTAL_TIME]?: STALL_TOTAL_TIME_TYPE;\n  [STARLETTE_MIDDLEWARE_NAME]?: STARLETTE_MIDDLEWARE_NAME_TYPE;\n  [STARLITE_MIDDLEWARE_NAME]?: STARLITE_MIDDLEWARE_NAME_TYPE;\n  [STATE_TYPE]?: STATE_TYPE_TYPE;\n  [SUBPROCESS_PID]?: SUBPROCESS_PID_TYPE;\n  [SVELTEKIT_LOAD_ENVIRONMENT]?: SVELTEKIT_LOAD_ENVIRONMENT_TYPE;\n  [SVELTEKIT_LOAD_NODE_ID]?: SVELTEKIT_LOAD_NODE_ID_TYPE;\n  [SVELTEKIT_LOAD_NODE_TYPE]?: SVELTEKIT_LOAD_NODE_TYPE_TYPE;\n  [SVELTEKIT_TRACING_ORIGINAL_NAME]?: SVELTEKIT_TRACING_ORIGINAL_NAME_TYPE;\n  [THREAD_ID]?: THREAD_ID_TYPE;\n  [THREAD_NAME]?: THREAD_NAME_TYPE;\n  [TIMBER_TAG]?: TIMBER_TAG_TYPE;\n  [TIME_TO_FULL_DISPLAY]?: TIME_TO_FULL_DISPLAY_TYPE;\n  [TIME_TO_INITIAL_DISPLAY]?: TIME_TO_INITIAL_DISPLAY_TYPE;\n  [TLS_PROTOCOL_NAME]?: TLS_PROTOCOL_NAME_TYPE;\n  [TLS_PROTOCOL_VERSION]?: TLS_PROTOCOL_VERSION_TYPE;\n  [TRANSACTION]?: TRANSACTION_TYPE;\n  [TRPC_PROCEDURE_PATH]?: TRPC_PROCEDURE_PATH_TYPE;\n  [TRPC_PROCEDURE_TYPE]?: TRPC_PROCEDURE_TYPE_TYPE;\n  [TTFB]?: TTFB_TYPE;\n  [TTFB_REQUESTTIME]?: TTFB_REQUESTTIME_TYPE;\n  [TURBO_MODULES_TOTAL_CALL_COUNT]?: TURBO_MODULES_TOTAL_CALL_COUNT_TYPE;\n  [TURBO_MODULES_TOTAL_DURATION_MS]?: TURBO_MODULES_TOTAL_DURATION_MS_TYPE;\n  [TURBO_MODULES_TOTAL_ERROR_COUNT]?: TURBO_MODULES_TOTAL_ERROR_COUNT_TYPE;\n  [TURBO_MODULES_UNIQUE_METHODS]?: TURBO_MODULES_UNIQUE_METHODS_TYPE;\n  [TURBO_MODULE_ARCH]?: TURBO_MODULE_ARCH_TYPE;\n  [TURBO_MODULE_METHOD]?: TURBO_MODULE_METHOD_TYPE;\n  [TURBO_MODULE_NAME]?: TURBO_MODULE_NAME_TYPE;\n  [TURBO_MODULE_TOP_MODULE]?: TURBO_MODULE_TOP_MODULE_TYPE;\n  [TURBO_MODULE_TOP_MODULE_DURATION_MS]?: TURBO_MODULE_TOP_MODULE_DURATION_MS_TYPE;\n  [TURBO_MODULE_TOTAL_CALL_COUNT]?: TURBO_MODULE_TOTAL_CALL_COUNT_TYPE;\n  [TURBO_MODULE_TOTAL_DURATION_MS]?: TURBO_MODULE_TOTAL_DURATION_MS_TYPE;\n  [TURBO_MODULE_TOTAL_ERROR_COUNT]?: TURBO_MODULE_TOTAL_ERROR_COUNT_TYPE;\n  [TURBO_MODULE_UNIQUE_METHODS]?: TURBO_MODULE_UNIQUE_METHODS_TYPE;\n  [TYPE]?: TYPE_TYPE;\n  [UI_COMPONENT_NAME]?: UI_COMPONENT_NAME_TYPE;\n  [UI_CONTRIBUTES_TO_TTFD]?: UI_CONTRIBUTES_TO_TTFD_TYPE;\n  [UI_CONTRIBUTES_TO_TTID]?: UI_CONTRIBUTES_TO_TTID_TYPE;\n  [UI_ELEMENT_HEIGHT]?: UI_ELEMENT_HEIGHT_TYPE;\n  [UI_ELEMENT_ID]?: UI_ELEMENT_ID_TYPE;\n  [UI_ELEMENT_IDENTIFIER]?: UI_ELEMENT_IDENTIFIER_TYPE;\n  [UI_ELEMENT_LOAD_TIME]?: UI_ELEMENT_LOAD_TIME_TYPE;\n  [UI_ELEMENT_PAINT_TYPE]?: UI_ELEMENT_PAINT_TYPE_TYPE;\n  [UI_ELEMENT_RENDER_TIME]?: UI_ELEMENT_RENDER_TIME_TYPE;\n  [UI_ELEMENT_TYPE]?: UI_ELEMENT_TYPE_TYPE;\n  [UI_ELEMENT_URL]?: UI_ELEMENT_URL_TYPE;\n  [UI_ELEMENT_WIDTH]?: UI_ELEMENT_WIDTH_TYPE;\n  [URL]?: URL_TYPE;\n  [URL_DOMAIN]?: URL_DOMAIN_TYPE;\n  [URL_FRAGMENT]?: URL_FRAGMENT_TYPE;\n  [URL_FULL]?: URL_FULL_TYPE;\n  [URL_PATH]?: URL_PATH_TYPE;\n  [URL_PATH_PARAMETER_KEY]?: URL_PATH_PARAMETER_KEY_TYPE;\n  [URL_PATH_PARAMS_KEY]?: URL_PATH_PARAMS_KEY_TYPE;\n  [URL_PORT]?: URL_PORT_TYPE;\n  [URL_QUERY]?: URL_QUERY_TYPE;\n  [URL_SAME_ORIGIN]?: URL_SAME_ORIGIN_TYPE;\n  [URL_SCHEME]?: URL_SCHEME_TYPE;\n  [URL_TEMPLATE]?: URL_TEMPLATE_TYPE;\n  [USER_AGENT_ORIGINAL]?: USER_AGENT_ORIGINAL_TYPE;\n  [USER_EMAIL]?: USER_EMAIL_TYPE;\n  [USER_FULL_NAME]?: USER_FULL_NAME_TYPE;\n  [USER_GEO_CITY]?: USER_GEO_CITY_TYPE;\n  [USER_GEO_COUNTRY_CODE]?: USER_GEO_COUNTRY_CODE_TYPE;\n  [USER_GEO_REGION]?: USER_GEO_REGION_TYPE;\n  [USER_GEO_SUBDIVISION]?: USER_GEO_SUBDIVISION_TYPE;\n  [USER_GEO_SUBREGION]?: USER_GEO_SUBREGION_TYPE;\n  [USER_HASH]?: USER_HASH_TYPE;\n  [USER_ID]?: USER_ID_TYPE;\n  [USER_IP_ADDRESS]?: USER_IP_ADDRESS_TYPE;\n  [USER_NAME]?: USER_NAME_TYPE;\n  [USER_ROLES]?: USER_ROLES_TYPE;\n  [VERCEL_AI_SETTINGS_CONTEXT_KEY]?: VERCEL_AI_SETTINGS_CONTEXT_KEY_TYPE;\n  [VERCEL_AI_TELEMETRY_METADATA_KEY]?: VERCEL_AI_TELEMETRY_METADATA_KEY_TYPE;\n  [VERCEL_AI_TOOL_CALL_CONTEXT_KEY]?: VERCEL_AI_TOOL_CALL_CONTEXT_KEY_TYPE;\n  [VERCEL_BRANCH]?: VERCEL_BRANCH_TYPE;\n  [VERCEL_BUILD_ID]?: VERCEL_BUILD_ID_TYPE;\n  [VERCEL_DEPLOYMENT_ID]?: VERCEL_DEPLOYMENT_ID_TYPE;\n  [VERCEL_DESTINATION]?: VERCEL_DESTINATION_TYPE;\n  [VERCEL_EDGE_TYPE]?: VERCEL_EDGE_TYPE_TYPE;\n  [VERCEL_ENTRYPOINT]?: VERCEL_ENTRYPOINT_TYPE;\n  [VERCEL_EXECUTION_REGION]?: VERCEL_EXECUTION_REGION_TYPE;\n  [VERCEL_ID]?: VERCEL_ID_TYPE;\n  [VERCEL_JA3_DIGEST]?: VERCEL_JA3_DIGEST_TYPE;\n  [VERCEL_JA4_DIGEST]?: VERCEL_JA4_DIGEST_TYPE;\n  [VERCEL_LOG_TYPE]?: VERCEL_LOG_TYPE_TYPE;\n  [VERCEL_PATH]?: VERCEL_PATH_TYPE;\n  [VERCEL_PROJECT_ID]?: VERCEL_PROJECT_ID_TYPE;\n  [VERCEL_PROJECT_NAME]?: VERCEL_PROJECT_NAME_TYPE;\n  [VERCEL_PROXY_CACHE_ID]?: VERCEL_PROXY_CACHE_ID_TYPE;\n  [VERCEL_PROXY_CLIENT_IP]?: VERCEL_PROXY_CLIENT_IP_TYPE;\n  [VERCEL_PROXY_HOST]?: VERCEL_PROXY_HOST_TYPE;\n  [VERCEL_PROXY_LAMBDA_REGION]?: VERCEL_PROXY_LAMBDA_REGION_TYPE;\n  [VERCEL_PROXY_METHOD]?: VERCEL_PROXY_METHOD_TYPE;\n  [VERCEL_PROXY_PATH]?: VERCEL_PROXY_PATH_TYPE;\n  [VERCEL_PROXY_PATH_TYPE]?: VERCEL_PROXY_PATH_TYPE_TYPE;\n  [VERCEL_PROXY_PATH_TYPE_VARIANT]?: VERCEL_PROXY_PATH_TYPE_VARIANT_TYPE;\n  [VERCEL_PROXY_REFERER]?: VERCEL_PROXY_REFERER_TYPE;\n  [VERCEL_PROXY_REGION]?: VERCEL_PROXY_REGION_TYPE;\n  [VERCEL_PROXY_RESPONSE_BYTE_SIZE]?: VERCEL_PROXY_RESPONSE_BYTE_SIZE_TYPE;\n  [VERCEL_PROXY_SCHEME]?: VERCEL_PROXY_SCHEME_TYPE;\n  [VERCEL_PROXY_STATUS_CODE]?: VERCEL_PROXY_STATUS_CODE_TYPE;\n  [VERCEL_PROXY_TIMESTAMP]?: VERCEL_PROXY_TIMESTAMP_TYPE;\n  [VERCEL_PROXY_USER_AGENT]?: VERCEL_PROXY_USER_AGENT_TYPE;\n  [VERCEL_PROXY_VERCEL_CACHE]?: VERCEL_PROXY_VERCEL_CACHE_TYPE;\n  [VERCEL_PROXY_VERCEL_ID]?: VERCEL_PROXY_VERCEL_ID_TYPE;\n  [VERCEL_PROXY_WAF_ACTION]?: VERCEL_PROXY_WAF_ACTION_TYPE;\n  [VERCEL_PROXY_WAF_RULE_ID]?: VERCEL_PROXY_WAF_RULE_ID_TYPE;\n  [VERCEL_REQUEST_ID]?: VERCEL_REQUEST_ID_TYPE;\n  [VERCEL_SOURCE]?: VERCEL_SOURCE_TYPE;\n  [VERCEL_STATUS_CODE]?: VERCEL_STATUS_CODE_TYPE;\n} & Record<string, AttributeValue | undefined>;\n","declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the `debug` singleton, or b) put your function elsewhere.\n *\n * Note: This file was originally called `global.ts`, but was changed to unblock users which might be doing\n * string replaces with bundlers like Vite for `global` (would break imports that rely on importing from utils/src/global).\n *\n * Why worldwide?\n *\n * Why not?\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Integration } from '../types/integration';\nimport type { Carrier } from '../carrier';\nimport type { SdkSource } from './env';\n\n/** Internal global with common properties and Sentry extensions  */\nexport type InternalGlobal = {\n  navigator?: { userAgent?: string; maxTouchPoints?: number };\n  location?: { href?: string };\n  console: Console;\n  PerformanceObserver?: any;\n  Sentry?: any;\n  onerror?: {\n    (event: object | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n    __SENTRY_INSTRUMENTED__?: true;\n  };\n  onunhandledrejection?: {\n    (event: unknown): boolean;\n    __SENTRY_INSTRUMENTED__?: true;\n  };\n  SENTRY_ENVIRONMENT?: string;\n  SENTRY_DSN?: string;\n  SENTRY_RELEASE?: {\n    id?: string;\n  };\n  SENTRY_SDK_SOURCE?: SdkSource;\n  /**\n   * Debug IDs are indirectly injected by Sentry CLI or bundler plugins to directly reference a particular source map\n   * for resolving of a source file. The injected code will place an entry into the record for each loaded bundle/JS\n   * file.\n   */\n  _sentryDebugIds?: Record<string, string>;\n  /**\n   * Native debug IDs implementation (e.g., from Vercel).\n   * This uses the same format as _sentryDebugIds but with a different global name.\n   * Keys are `error.stack` strings, values are debug IDs.\n   */\n  _debugIds?: Record<string, string>;\n  /**\n   * Raw module metadata that is injected by bundler plugins.\n   *\n   * Keys are `error.stack` strings, values are the metadata.\n   */\n  _sentryModuleMetadata?: Record<string, any>;\n  _sentryWrappedDepth?: number;\n  /**\n   * Bundler and runtime instrumentation detection.\n   */\n  __SENTRY_ORCHESTRION__?: {\n    /** Empty array signifies runtime hooked */\n    runtime?: string[];\n    /**\n     * The resolved `file:` URL of a transformed file for each runtime-injected\n     * module, keyed by module name (e.g. `@mastra/core`). Lets an integration\n     * anchor `createRequire` on the app's actual copy of a dependency without\n     * relying on `process.cwd()` or the CJS `require.cache` — the latter is\n     * always empty for ESM-loaded modules. Only the runtime `--import`/hook path\n     * populates this; the bundler path inlines modules and records none.\n     */\n    runtimeFiles?: Record<string, string>;\n    /**\n     * Module names recorded as each bundler-transformed module loads (the\n     * injected snippet calls `orchestrionModuleInjected`). The bundler plugin's\n     * entry banner ensures an empty `Set` at boot, so a defined set — even\n     * empty — signifies the plugin ran.\n     */\n    bundler?: Set<string>;\n    /**\n     * Channel-subscriber integration factories stored by the snippet the\n     * bundler transform splices into each instrumented module, keyed by module\n     * name. A factory shared by several packages (e.g. pg/pg-pool) appears\n     * under several keys; integration-name deduplication collapses them at\n     * setup. A bundler-only SDK (e.g. `@sentry/cloudflare`) reads these at\n     * `init()` and instantiates them.\n     */\n    integrations?: Map<string, () => Integration>;\n    /**\n     * Set once `registerDiagnosticsChannelInjection()` has run but could not\n     * install the runtime module hooks — most commonly because\n     * `@sentry/server-runtime-injection` was bundled into the app (which strips its vendored\n     * code transformer) or the Node runtime lacks the required module-hook API.\n     * Dedupes the one-time warning and short-circuits repeat calls.\n     */\n    runtimeUnavailable?: boolean;\n    /**\n     * Set when an integration asks to subscribe to orchestrion-injected\n     * channels, so a missing injection is only reported when it loses data.\n     */\n    channelIntegrations?: boolean;\n    /**\n     * Set once the Bun warning for missing channel injection has been shown.\n     * Lives on the marker so that duplicate SDK copies warn only once.\n     */\n    warnedBunRunNotInjected?: boolean;\n    /**\n     * Module namespaces stashed by build-time provider imports, keyed by module\n     * name (e.g. `@mastra/observability`). A bundler plugin can splice a static\n     * `import * as ns from '<pkg>'` into an integration and record `ns` here, so\n     * the integration can read a bundled peer dependency it cannot `createRequire`\n     * in a bundled runtime such as Cloudflare Workers.\n     */\n    providedModules?: Record<string, Record<string, unknown>>;\n  };\n} & Carrier;\n\n/** Get's the global object for the current JavaScript runtime */\nexport const GLOBAL_OBJ = globalThis as unknown as InternalGlobal;\n","// This is a magic string replaced by rollup\ndeclare const __SENTRY_SDK_VERSION__: string;\n\nexport const SDK_VERSION = typeof __SENTRY_SDK_VERSION__ === 'string' ? __SENTRY_SDK_VERSION__ : '0.0.0-unknown.0';\n","import type { AsyncContextStack } from './asyncContext/stackStrategy';\nimport type { AsyncContextStrategy } from './asyncContext/types';\nimport type { Client } from './client';\nimport type { Scope } from './scope';\nimport type { SegmentSpanCaptureStrategy } from './tracing/segmentSpanCaptureStrategy';\nimport type { SerializedLog } from './types/log';\nimport type { SerializedMetric } from './types/metric';\nimport type { TunnelStore } from './utils/tunnelStore';\nimport { SDK_VERSION } from './utils/version';\nimport { GLOBAL_OBJ } from './utils/worldwide';\n\n/**\n * An object that contains globally accessible properties and maintains a scope stack.\n * @hidden\n */\nexport interface Carrier {\n  __SENTRY__?: VersionedCarrier;\n}\n\ntype VersionedCarrier = {\n  version?: string;\n} & Record<Exclude<string, 'version'>, SentryCarrier>;\n\nexport interface SentryCarrier {\n  acs?: AsyncContextStrategy;\n  stack?: AsyncContextStack;\n\n  globalScope?: Scope;\n  defaultIsolationScope?: Scope;\n  defaultCurrentScope?: Scope;\n  loggerSettings?: { enabled: boolean };\n  /**\n   * A map of Sentry clients to their log buffers.\n   * This is used to store logs that are sent to Sentry.\n   */\n  clientToLogBufferMap?: WeakMap<Client, Array<SerializedLog>>;\n\n  /**\n   * A map of Sentry clients to their metric buffers.\n   * This is used to store metrics that are sent to Sentry.\n   */\n  clientToMetricBufferMap?: WeakMap<Client, Array<SerializedMetric>>;\n\n  /** Strategy for assembling segment spans into transactions; set by SDKs that defer capture. */\n  segmentSpanCaptureStrategy?: SegmentSpanCaptureStrategy;\n\n  /** Supplies trace context from a non-Sentry source (e.g. OpenTelemetry); set by `openTelemetryIntegration`. */\n  externalPropagationContextProvider?: () => { traceId: string; spanId: string } | undefined;\n\n  /** Overwrites TextEncoder used in `@sentry/core`, need for `react-native@0.73` and older */\n  encodePolyfill?: (input: string) => Uint8Array;\n  /** Overwrites TextDecoder used in `@sentry/core`, need for `react-native@0.73` and older */\n  decodePolyfill?: (input: Uint8Array) => string;\n\n  /** Only `utils/tunnelStore.ts` reads or writes it. */\n  tunnelStore?: TunnelStore;\n}\n\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nexport function getMainCarrier(): Carrier {\n  // This ensures a Sentry carrier exists\n  getSentryCarrier(GLOBAL_OBJ);\n  return GLOBAL_OBJ;\n}\n\n/** Will either get the existing sentry carrier, or create a new one. */\nexport function getSentryCarrier(carrier: Carrier): SentryCarrier {\n  const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});\n\n  // For now: First SDK that sets the .version property wins\n  __SENTRY__.version = __SENTRY__.version || SDK_VERSION;\n\n  // Intentionally populating and returning the version of \"this\" SDK instance\n  // rather than what's set in .version so that \"this\" SDK always gets its carrier\n  return (__SENTRY__[SDK_VERSION] = __SENTRY__[SDK_VERSION] || {});\n}\n\n/**\n * Returns a global singleton contained in the global `__SENTRY__[]` object.\n *\n * If the singleton doesn't already exist in `__SENTRY__`, it will be created using the given factory\n * function and added to the `__SENTRY__` object.\n *\n * @param name name of the global singleton on __SENTRY__\n * @param creator creator Factory function to create the singleton if it doesn't already exist on `__SENTRY__`\n * @param obj (Optional) The global object on which to look for `__SENTRY__`, if not `GLOBAL_OBJ`'s return value\n * @returns the singleton\n */\nexport function getGlobalSingleton<Prop extends keyof SentryCarrier>(\n  name: Prop,\n  creator: () => NonNullable<SentryCarrier[Prop]>,\n  obj = GLOBAL_OBJ,\n): NonNullable<SentryCarrier[Prop]> {\n  const __SENTRY__ = (obj.__SENTRY__ = obj.__SENTRY__ || {});\n  const carrier = (__SENTRY__[SDK_VERSION] = __SENTRY__[SDK_VERSION] || {});\n  // Note: We do not want to set `carrier.version` here, as this may be called before any `init` is called, e.g. for the default scopes\n  return carrier[name] || (carrier[name] = creator());\n}\n","import { getGlobalSingleton } from '../carrier';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { ConsoleLevel } from '../types/instrument';\nimport { GLOBAL_OBJ } from './worldwide';\n\nexport interface SentryDebugLogger {\n  disable(): void;\n  enable(): void;\n  isEnabled(): boolean;\n  log(...args: Parameters<typeof console.log>): void;\n  warn(...args: Parameters<typeof console.warn>): void;\n  error(...args: Parameters<typeof console.error>): void;\n}\n\nexport const CONSOLE_LEVELS: readonly ConsoleLevel[] = [\n  'debug',\n  'info',\n  'warn',\n  'error',\n  'log',\n  'assert',\n  'trace',\n] as const;\n\n/** Prefix for logging strings */\nconst PREFIX = 'Sentry Logger ';\n\n/** This may be mutated by the console instrumentation. */\nexport const originalConsoleMethods: Partial<{\n  log(...args: Parameters<typeof console.log>): void;\n  info(...args: Parameters<typeof console.info>): void;\n  warn(...args: Parameters<typeof console.warn>): void;\n  error(...args: Parameters<typeof console.error>): void;\n  debug(...args: Parameters<typeof console.debug>): void;\n  assert(...args: Parameters<typeof console.assert>): void;\n  trace(...args: Parameters<typeof console.trace>): void;\n}> = {};\n\n/**\n * Temporarily disable sentry console instrumentations.\n *\n * @param callback The function to run against the original `console` messages\n * @returns The results of the callback\n */\nexport function consoleSandbox<T>(callback: () => T): T {\n  if (!('console' in GLOBAL_OBJ)) {\n    return callback();\n  }\n\n  const console = GLOBAL_OBJ.console;\n  const wrappedFuncs: Partial<Record<ConsoleLevel, (...args: unknown[]) => void>> = {};\n\n  const wrappedLevels = Object.keys(originalConsoleMethods) as ConsoleLevel[];\n\n  // Restore all wrapped console methods\n  wrappedLevels.forEach(level => {\n    const originalConsoleMethod = originalConsoleMethods[level];\n    wrappedFuncs[level] = console[level] as (...args: unknown[]) => void;\n    console[level] = originalConsoleMethod as (...args: unknown[]) => void;\n  });\n\n  try {\n    return callback();\n  } finally {\n    // Revert restoration to wrapped state\n    wrappedLevels.forEach(level => {\n      console[level] = wrappedFuncs[level] as (...args: unknown[]) => void;\n    });\n  }\n}\n\nfunction enable(): void {\n  _getLoggerSettings().enabled = true;\n}\n\nfunction disable(): void {\n  _getLoggerSettings().enabled = false;\n}\n\nfunction isEnabled(): boolean {\n  return _getLoggerSettings().enabled;\n}\n\nfunction log(...args: Parameters<typeof console.log>): void {\n  _maybeLog('log', ...args);\n}\n\nfunction warn(...args: Parameters<typeof console.warn>): void {\n  _maybeLog('warn', ...args);\n}\n\nfunction error(...args: Parameters<typeof console.error>): void {\n  _maybeLog('error', ...args);\n}\n\nfunction _maybeLog(level: ConsoleLevel, ...args: Parameters<(typeof console)[typeof level]>): void {\n  if (!DEBUG_BUILD) {\n    return;\n  }\n\n  if (isEnabled()) {\n    consoleSandbox(() => {\n      GLOBAL_OBJ.console[level](`${PREFIX}[${level}]:`, ...args);\n    });\n  }\n}\n\nfunction _getLoggerSettings(): { enabled: boolean } {\n  if (!DEBUG_BUILD) {\n    return { enabled: false };\n  }\n\n  return getGlobalSingleton('loggerSettings', () => ({ enabled: false }));\n}\n\n/**\n * This is a logger singleton which either logs things or no-ops if logging is not enabled.\n */\nexport const debug = {\n  /** Enable logging. */\n  enable,\n  /** Disable logging. */\n  disable,\n  /** Check if logging is enabled. */\n  isEnabled,\n  /** Log a message. */\n  log,\n  /** Log a warning. */\n  warn,\n  /** Log an error. */\n  error,\n} satisfies SentryDebugLogger;\n","import type { Event } from '../types/event';\nimport type { StackFrame } from '../types/stackframe';\nimport type { StackLineParser, StackParser } from '../types/stacktrace';\nimport type { VNode, VueViewModel } from '../types/vue';\n\nconst STACKTRACE_FRAME_LIMIT = 50;\nexport const UNKNOWN_FUNCTION = '?';\n// Used to sanitize webpack (error: *) wrapped stack errors\nconst WEBPACK_ERROR_REGEXP = /\\(error: (.*)\\)/;\nconst STRIP_FRAME_REGEXP = /captureMessage|captureException/;\n\n/**\n * Creates a stack parser with the supplied line parsers\n *\n * StackFrames are returned in the correct order for Sentry Exception\n * frames and with Sentry SDK internal frames removed from the top and bottom\n *\n */\nexport function createStackParser(...parsers: StackLineParser[]): StackParser {\n  const sortedParsers = parsers.sort((a, b) => a[0] - b[0]).map(p => p[1]);\n\n  return (stack: string, skipFirstLines: number = 0, framesToPop: number = 0): StackFrame[] => {\n    const frames: StackFrame[] = [];\n    const lines = stack.split('\\n');\n\n    for (let i = skipFirstLines; i < lines.length; i++) {\n      let line = lines[i] as string;\n      // Truncate lines over 1kb because many of the regular expressions use\n      // backtracking which results in run time that increases exponentially\n      // with input size. Huge strings can result in hangs/Denial of Service:\n      // https://github.com/getsentry/sentry-javascript/issues/2286\n      if (line.length > 1024) {\n        line = line.slice(0, 1024);\n      }\n\n      // https://github.com/getsentry/sentry-javascript/issues/5459\n      // Remove webpack (error: *) wrappers\n      const cleanedLine = WEBPACK_ERROR_REGEXP.test(line) ? line.replace(WEBPACK_ERROR_REGEXP, '$1') : line;\n\n      // https://github.com/getsentry/sentry-javascript/issues/7813\n      // Skip Error: lines\n      // Using includes() instead of a regex to avoid O(n²) backtracking on long lines\n      // https://github.com/getsentry/sentry-javascript/issues/20052\n      if (cleanedLine.includes('Error: ')) {\n        continue;\n      }\n\n      for (const parser of sortedParsers) {\n        const frame = parser(cleanedLine);\n\n        if (frame) {\n          frames.push(frame);\n          break;\n        }\n      }\n\n      if (frames.length >= STACKTRACE_FRAME_LIMIT + framesToPop) {\n        break;\n      }\n    }\n\n    return stripSentryFramesAndReverse(frames.slice(framesToPop));\n  };\n}\n\n/**\n * Gets a stack parser implementation from Options.stackParser\n * @see Options\n *\n * If options contains an array of line parsers, it is converted into a parser\n */\nexport function stackParserFromStackParserOptions(stackParser: StackParser | StackLineParser[]): StackParser {\n  if (Array.isArray(stackParser)) {\n    return createStackParser(...stackParser);\n  }\n  return stackParser;\n}\n\n/**\n * Removes Sentry frames from the top and bottom of the stack if present and enforces a limit of max number of frames.\n * Assumes stack input is ordered from top to bottom and returns the reverse representation so call site of the\n * function that caused the crash is the last frame in the array.\n * @hidden\n */\nexport function stripSentryFramesAndReverse(stack: ReadonlyArray<StackFrame>): StackFrame[] {\n  if (!stack.length) {\n    return [];\n  }\n\n  const localStack = Array.from(stack);\n\n  // If stack starts with one of our API calls, remove it (starts, meaning it's the top of the stack - aka last call)\n  if (/sentryWrapped/.test(getLastStackFrame(localStack).function || '')) {\n    localStack.pop();\n  }\n\n  // Reversing in the middle of the procedure allows us to just pop the values off the stack\n  localStack.reverse();\n\n  // If stack ends with one of our internal API calls, remove it (ends, meaning it's the bottom of the stack - aka top-most call)\n  if (STRIP_FRAME_REGEXP.test(getLastStackFrame(localStack).function || '')) {\n    localStack.pop();\n\n    // When using synthetic events, we will have a 2 levels deep stack, as `new Error('Sentry syntheticException')`\n    // is produced within the scope itself, making it:\n    //\n    //   Sentry.captureException()\n    //   scope.captureException()\n    //\n    // instead of just the top `Sentry` call itself.\n    // This forces us to possibly strip an additional frame in the exact same was as above.\n    if (STRIP_FRAME_REGEXP.test(getLastStackFrame(localStack).function || '')) {\n      localStack.pop();\n    }\n  }\n\n  return localStack.slice(0, STACKTRACE_FRAME_LIMIT).map(frame => ({\n    ...frame,\n    filename: frame.filename || getLastStackFrame(localStack).filename,\n    function: frame.function || UNKNOWN_FUNCTION,\n  }));\n}\n\nfunction getLastStackFrame(arr: StackFrame[]): StackFrame {\n  return arr[arr.length - 1] || {};\n}\n\nconst defaultFunctionName = '<anonymous>';\n\n/**\n * Safely extract function name from itself\n */\nexport function getFunctionName(fn: unknown): string {\n  try {\n    if (!fn || typeof fn !== 'function') {\n      return defaultFunctionName;\n    }\n    return fn.name || defaultFunctionName;\n  } catch {\n    // Just accessing custom props in some Selenium environments\n    // can cause a \"Permission denied\" exception (see raven-js#495).\n    return defaultFunctionName;\n  }\n}\n\n/**\n * Get's stack frames from an event without needing to check for undefined properties.\n */\nexport function getFramesFromEvent(event: Event): StackFrame[] | undefined {\n  const exception = event.exception;\n\n  if (exception) {\n    const frames: StackFrame[] = [];\n    try {\n      // @ts-expect-error Object could be undefined\n      exception.values.forEach(value => {\n        // @ts-expect-error Value could be undefined\n        if (value.stacktrace.frames) {\n          // @ts-expect-error Value could be undefined\n          frames.push(...value.stacktrace.frames);\n        }\n      });\n      return frames;\n    } catch {\n      return undefined;\n    }\n  }\n  return undefined;\n}\n\n/**\n * Get the internal name of an internal Vue value, to represent it in a stacktrace.\n *\n * @param value The value to get the internal name of.\n * @deprecated This is Vue-specific and will be removed from `@sentry/core` in a future major version.\n * The `@sentry/vue` SDK inlines its own equivalent — there's no replacement export from core.\n */\nexport function getVueInternalName(value: VueViewModel | VNode): string {\n  // Check if it's a VNode (has __v_isVNode) or a component instance (has _isVue/__isVue)\n  const isVNode = '__v_isVNode' in value && value.__v_isVNode;\n\n  return isVNode ? '[VueVNode]' : '[VueViewModel]';\n}\n\n/**\n * Normalizes stack line paths by removing file:// prefix and leading slashes for Windows paths\n */\nexport function normalizeStackTracePath(path: string | undefined): string | undefined {\n  let filename = path?.startsWith('file://') ? path.slice(7) : path;\n  // If it's a Windows path, trim the leading slash so that `/C:/foo` becomes `C:/foo`\n  if (filename?.match(/\\/[A-Z]:/)) {\n    filename = filename.slice(1);\n  }\n  return filename;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Primitive } from '../types/misc';\nimport type { ParameterizedString } from '../types/parameterize';\nimport type { PolymorphicEvent } from '../types/polymorphics';\nimport type { VNode, VueViewModel } from '../types/vue';\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst objectToString = Object.prototype.toString;\n\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat: unknown): wat is Error {\n  switch (objectToString.call(wat)) {\n    case '[object Error]':\n    case '[object Exception]':\n    case '[object DOMException]':\n    case '[object WebAssembly.Exception]':\n      return true;\n    default:\n      return isInstanceOf(wat, Error);\n  }\n}\n/**\n * Checks whether given value is an instance of the given built-in class.\n *\n * @param wat The value to be checked\n * @param className\n * @returns A boolean representing the result.\n */\nfunction isBuiltin(wat: unknown, className: string): boolean {\n  return objectToString.call(wat) === `[object ${className}]`;\n}\n\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat: unknown): boolean {\n  return isBuiltin(wat, 'ErrorEvent');\n}\n\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat: unknown): boolean {\n  return isBuiltin(wat, 'DOMError');\n}\n\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat: unknown): boolean {\n  return isBuiltin(wat, 'DOMException');\n}\n\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat: unknown): wat is string {\n  return isBuiltin(wat, 'String');\n}\n\n/**\n * Checks whether given string is parameterized\n * {@link isParameterizedString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isParameterizedString(wat: unknown): wat is ParameterizedString {\n  return (\n    typeof wat === 'object' &&\n    wat !== null &&\n    '__sentry_template_string__' in wat &&\n    '__sentry_template_values__' in wat\n  );\n}\n\n/**\n * Checks whether given value is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat: unknown): wat is Primitive {\n  return wat === null || isParameterizedString(wat) || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n\n/**\n * Checks whether given value's type is an object literal, or a class instance.\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat: unknown): wat is Record<string, unknown> {\n  return isBuiltin(wat, 'Object');\n}\n\n/**\n * Checks whether given value is a non-null object (i.e. `typeof` is `'object'` and it is not `null`).\n * Unlike {@link isPlainObject}, this also accepts arrays and class instances - it only rules out\n * `null`, primitives, and functions.\n * {@link isObjectLike}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isObjectLike(wat: unknown): wat is Record<PropertyKey, unknown> {\n  return typeof wat === 'object' && wat !== null;\n}\n\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat: unknown): wat is PolymorphicEvent {\n  return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is browser-specific and will be removed from `@sentry/core` in a future major version.\n * Import `isElement` from `@sentry/browser-utils` instead.\n */\nexport function isElement(wat: unknown): boolean {\n  return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat: unknown): wat is RegExp {\n  return isBuiltin(wat, 'RegExp');\n}\n\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat: any): wat is PromiseLike<any> {\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n  return Boolean(wat?.then && typeof wat.then === 'function');\n}\n\n/**\n * Checks whether given value's type is a React SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is React-specific and will be removed from `@sentry/core` in a future major version.\n * Use the equivalent helper that ships with `@sentry/react` instead.\n */\nexport function isSyntheticEvent(wat: unknown): boolean {\n  return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\ntype Constructor<T> = { new (...args: never[]): T };\n\nexport function isInstanceOf<T>(wat: unknown, base: Constructor<T>): wat is T;\nexport function isInstanceOf(wat: unknown, base: unknown): boolean;\nexport function isInstanceOf<T>(wat: unknown, base: unknown): wat is T {\n  try {\n    return wat instanceof (base as Constructor<T>);\n  } catch {\n    return false;\n  }\n}\n\n/**\n * Checks whether given value's type is a Vue ViewModel or a VNode.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is Vue-specific and will be removed from `@sentry/core` in a future major version.\n * Use the equivalent helper that ships with `@sentry/vue` instead.\n */\nexport function isVueViewModel(wat: unknown): wat is VueViewModel | VNode {\n  // Not using Object.prototype.toString because in Vue 3 it would read the instance's Symbol(Symbol.toStringTag) property.\n  // We also need to check for __v_isVNode because Vue 3 component render instances have an internal __v_isVNode property.\n  return !!(\n    typeof wat === 'object' &&\n    wat !== null &&\n    ((wat as VueViewModel).__isVue || (wat as VueViewModel)._isVue || (wat as { __v_isVNode?: boolean }).__v_isVNode)\n  );\n}\n\n/**\n * Checks whether the given parameter is a Standard Web API Request instance.\n *\n * Returns false if Request is not available in the current runtime.\n */\nexport function isRequest(request: unknown): request is Request {\n  return typeof Request !== 'undefined' && isInstanceOf(request, Request);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { WrappedFunction } from '../types/wrappedfunction';\nimport { debug } from './debug-logger';\nimport { isError, isEvent, isObjectLike, isPrimitive } from './is';\n\n/**\n * Replace a method in an object with a wrapped version of itself.\n *\n * If the method on the passed object is not a function, the wrapper will not be applied.\n *\n * @param source An object that contains a method to be wrapped.\n * @param name The name of the method to be wrapped.\n * @param replacementFactory A higher-order function that takes the original version of the given method and returns a\n * wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to\n * preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, <other\n * args>)` or `origMethod.apply(this, [<other args>])` (rather than being called directly), again to preserve `this`.\n * @returns void\n */\n\nexport function fill(\n  source: { [key: string | symbol]: any },\n  name: string | symbol,\n  replacementFactory: (...args: any[]) => any,\n): void {\n  if (!(name in source)) {\n    return;\n  }\n\n  // explicitly casting to unknown because we don't know the type of the method initially at all\n  const original = source[name] as unknown;\n\n  if (typeof original !== 'function') {\n    return;\n  }\n\n  const wrapped = replacementFactory(original) as WrappedFunction;\n\n  // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n  // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n  if (typeof wrapped === 'function') {\n    markFunctionWrapped(wrapped, original);\n  }\n\n  try {\n    source[name] = wrapped;\n  } catch {\n    DEBUG_BUILD && debug.log(`Failed to replace method \"${String(name)}\" in object`, source);\n  }\n}\n\n/**\n * Defines a non-enumerable property on the given object.\n *\n * @param obj The object on which to set the property\n * @param name The name of the property to be set\n * @param value The value to which to set the property\n */\nexport function addNonEnumerableProperty(obj: object, name: string | symbol, value: unknown): void {\n  try {\n    Object.defineProperty(obj, name, {\n      // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it\n      value,\n      writable: true,\n      configurable: true,\n    });\n  } catch {\n    DEBUG_BUILD && debug.log(`Failed to add non-enumerable property \"${String(name)}\" to object`, obj);\n  }\n}\n\n/**\n * Remembers the original function on the wrapped function and\n * patches up the prototype.\n *\n * @param wrapped the wrapper function\n * @param original the original function that gets wrapped\n */\nexport function markFunctionWrapped(wrapped: WrappedFunction, original: WrappedFunction): void {\n  try {\n    const proto = original.prototype || {};\n    wrapped.prototype = original.prototype = proto;\n    addNonEnumerableProperty(wrapped, '__sentry_original__', original);\n  } catch {} // eslint-disable-line no-empty\n}\n\n/**\n * Wrap a method on an object by name, only if it is not already wrapped.\n *\n * Note: to set the wrapped method as a non-enumerable property, pass\n * false as the `enumerable` argument. This could be detected, but only\n * by either walking up the prototype chain, or iterating over all fields\n * in a `for(in)` loop. Neither are an acceptable performance impact for\n * the rare case where we might patch a non-enumerable method.\n */\nexport function wrapMethod<O extends {}, T extends string & keyof O>(\n  obj: O,\n  field: T,\n  wrapped: WrappedFunction,\n  enumerable: boolean = true,\n): void {\n  const original = obj[field];\n  if (typeof original !== 'function') {\n    throw new Error(`Cannot wrap method: ${field} is not a function`);\n  }\n  if (getOriginalFunction(original)) {\n    throw new Error(`Attempting to wrap method ${field} multiple times`);\n  }\n  markFunctionWrapped(wrapped, original);\n  Object.defineProperty(obj, field, {\n    writable: true,\n    configurable: true,\n    enumerable,\n    value: wrapped,\n  });\n}\n\n/**\n * This extracts the original function if available.  See\n * `markFunctionWrapped` for more information.\n *\n * @param func the function to unwrap\n * @returns the unwrapped version of the function if available.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function getOriginalFunction<T extends Function>(func: WrappedFunction<T>): T | undefined {\n  return func.__sentry_original__;\n}\n\n/**\n * Transforms any `Error` or `Event` into a plain object with all of their enumerable properties, and some of their\n * non-enumerable properties attached.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n * @returns An Event or Error turned into an object - or the value argument itself, when value is neither an Event nor\n *  an Error.\n */\nexport function convertToPlainObject<V>(value: V): Record<string, unknown> | V {\n  if (isError(value)) {\n    return {\n      message: value.message,\n      name: value.name,\n      stack: value.stack,\n      ...getOwnProperties(value),\n    };\n  }\n\n  // This handles browser events specifically, where certain properties are non-enumerable and need to be unpacked.\n  if (isEvent(value)) {\n    const { type, target, currentTarget, detail } = value;\n    return {\n      type,\n      target,\n      currentTarget,\n      ...(detail ? { detail } : {}),\n      ...getOwnProperties(value),\n    };\n  }\n\n  return value;\n}\n\n/** Filters out all but an object's own properties */\nfunction getOwnProperties(obj: unknown): { [key: string]: unknown } {\n  if (isObjectLike(obj)) {\n    return Object.fromEntries(Object.entries(obj));\n  }\n  return {};\n}\n\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\nexport function extractExceptionKeysForMessage(exception: Record<string, unknown>): string {\n  const keys = Object.keys(convertToPlainObject(exception));\n  keys.sort();\n\n  return !keys[0] ? '[object has no keys]' : keys.join(', ');\n}\n\n/**\n * Given any object, return a new object having removed all fields whose value was `undefined`.\n * Works recursively on objects and arrays.\n *\n * Attention: This function keeps circular references in the returned object.\n *\n * @deprecated This function is no longer used by the SDK and will be removed in a future major version.\n */\nexport function dropUndefinedKeys<T>(inputValue: T): T {\n  // This map keeps track of what already visited nodes map to.\n  // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n  // references as the input object.\n  const memoizationMap = new Map<unknown, unknown>();\n\n  // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n  return _dropUndefinedKeys(inputValue, memoizationMap);\n}\n\nfunction _dropUndefinedKeys<T>(inputValue: T, memoizationMap: Map<unknown, unknown>): T {\n  // Early return for primitive values\n  if (inputValue === null || typeof inputValue !== 'object') {\n    return inputValue;\n  }\n\n  // Check memo map first for all object types\n  const memoVal = memoizationMap.get(inputValue);\n  if (memoVal !== undefined) {\n    return memoVal as T;\n  }\n\n  // handle arrays\n  if (Array.isArray(inputValue)) {\n    const returnValue: unknown[] = [];\n    // Store mapping to handle circular references\n    memoizationMap.set(inputValue, returnValue);\n\n    inputValue.forEach(value => {\n      returnValue.push(_dropUndefinedKeys(value, memoizationMap));\n    });\n\n    return returnValue as unknown as T;\n  }\n\n  if (isPojo(inputValue)) {\n    const returnValue: { [key: string]: unknown } = {};\n    // Store mapping to handle circular references\n    memoizationMap.set(inputValue, returnValue);\n\n    const keys = Object.keys(inputValue);\n\n    keys.forEach(key => {\n      const val = inputValue[key];\n      if (val !== undefined) {\n        returnValue[key] = _dropUndefinedKeys(val, memoizationMap);\n      }\n    });\n\n    return returnValue as T;\n  }\n\n  // For other object types, return as is\n  return inputValue;\n}\n\nfunction isPojo(input: unknown): input is Record<string, unknown> {\n  // Plain objects have Object as constructor or no constructor\n  const constructor = (input as object).constructor;\n  return constructor === Object || constructor === undefined;\n}\n\n/**\n * Ensure that something is an object.\n *\n * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper\n * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.\n *\n * @param wat The subject of the objectification\n * @returns A version of `wat` which can safely be used with `Object` class methods\n */\nexport function objectify(wat: unknown): typeof Object {\n  let objectified;\n  switch (true) {\n    // this will catch both undefined and null\n    case wat == undefined:\n      objectified = new String(wat);\n      break;\n\n    // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n    // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n    // an object in order to wrap it.\n    case typeof wat === 'symbol' || typeof wat === 'bigint':\n      objectified = Object(wat);\n      break;\n\n    // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n    case isPrimitive(wat):\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n      objectified = new (wat as any).constructor(wat);\n      break;\n\n    // by process of elimination, at this point we know that `wat` must already be an object\n    default:\n      objectified = wat;\n      break;\n  }\n  return objectified;\n}\n","import { GLOBAL_OBJ } from './worldwide';\n\nexport type RandomSafeContextRunner = <T>(callback: () => T) => T;\n\n// undefined = not yet resolved, null = no runner found, function = runner found\nlet RESOLVED_RUNNER: RandomSafeContextRunner | null | undefined;\n\n/**\n * Simple wrapper that allows SDKs to *secretly* set context wrapper to generate safe random IDs in cache components contexts\n */\nexport function withRandomSafeContext<T>(cb: () => T): T {\n  // Skips future symbol lookups if we've already resolved (or attempted to resolve) the runner once\n  if (RESOLVED_RUNNER !== undefined) {\n    return RESOLVED_RUNNER ? RESOLVED_RUNNER(cb) : cb();\n  }\n\n  const sym = Symbol.for('__SENTRY_SAFE_RANDOM_ID_WRAPPER__');\n  const globalWithSymbol: typeof GLOBAL_OBJ & { [sym]?: RandomSafeContextRunner } = GLOBAL_OBJ;\n\n  if (sym in globalWithSymbol && typeof globalWithSymbol[sym] === 'function') {\n    RESOLVED_RUNNER = globalWithSymbol[sym];\n    return RESOLVED_RUNNER(cb);\n  }\n\n  RESOLVED_RUNNER = null;\n  return cb();\n}\n\n/**\n * Identical to Math.random() but wrapped in withRandomSafeContext\n * to ensure safe random number generation in certain contexts (e.g., Next.js Cache Components).\n */\nexport function safeMathRandom(): number {\n  return withRandomSafeContext(() => Math.random());\n}\n\n/**\n * Identical to Date.now() but wrapped in withRandomSafeContext\n * to ensure safe time value generation in certain contexts (e.g., Next.js Cache Components).\n */\nexport function safeDateNow(): number {\n  return withRandomSafeContext(() => Date.now());\n}\n","import { addNonEnumerableProperty } from './object';\n\n/**\n * Internal symbols for normalization behavior. JSON and other structured user payloads cannot\n * carry these keys, so they cannot spoof SDK-only normalization hints.\n * We use Symbol.for to ensure that the symbols are the same across different modules/files.\n */\nconst SENTRY_SKIP_NORMALIZATION = Symbol.for('sentry.skipNormalization');\nconst SENTRY_OVERRIDE_NORMALIZATION_DEPTH = Symbol.for('sentry.overrideNormalizationDepth');\n\n/** Marks an object so `normalize` returns it unchanged (already-normalized SDK data). */\nexport function setSkipNormalizationHint(obj: object): void {\n  addNonEnumerableProperty(obj, SENTRY_SKIP_NORMALIZATION, true);\n}\n\n/** Overrides remaining normalization depth from this object downward (e.g. Redux / Pinia state). */\nexport function setNormalizationDepthOverrideHint(obj: object, depth: number): void {\n  addNonEnumerableProperty(obj, SENTRY_OVERRIDE_NORMALIZATION_DEPTH, depth);\n}\n\n/** @internal */\nexport function hasSkipNormalizationHint(value: object) {\n  return Boolean((value as Record<symbol, unknown>)[SENTRY_SKIP_NORMALIZATION]);\n}\n\n/** @internal */\nexport function getNormalizationDepthOverrideHint(value: object): number | undefined {\n  const v = (value as Record<symbol, unknown>)[SENTRY_OVERRIDE_NORMALIZATION_DEPTH];\n  return typeof v === 'number' ? v : undefined;\n}\n","import type { Primitive } from '../types/misc';\nimport { getNormalizationDepthOverrideHint, hasSkipNormalizationHint } from './normalizationHints';\nimport { convertToPlainObject } from './object';\nimport { getFunctionName } from './stacktrace';\n\ntype Stringifier = (value: Exclude<unknown, string | number | boolean | null>) => string | undefined;\n\n// We store a custom stringifier in module scope, which is not bullet proof\n// however, we currently only really use this for browser-specific values, where this should work just fine, generally.\nlet stringifier: Stringifier | undefined;\n\n/**\n * Set a custom stringifier for the normalize function.\n * If this returns a non-empty string, it will be used instead of the default stringification.\n * Return undefined to fall back to the generic behavior.\n */\nexport function setNormalizeStringifier(newStringifier: Stringifier | undefined): void {\n  stringifier = newStringifier;\n}\n\ntype Prototype = { constructor?: (...args: unknown[]) => unknown };\n// This is a hack to placate TS, relying on the fact that technically, arrays are objects with integer keys. Normally we\n// think of those keys as actual numbers, but `arr['0']` turns out to work just as well as `arr[0]`, and doing it this\n// way lets us use a single type in the places where behave as if we are only dealing with objects, even if some of them\n// might be arrays.\ntype ObjOrArray<T> = { [key: string]: T };\n\ntype MemoFunc = [\n  // memoize\n  (obj: object) => boolean,\n  // unmemoize\n  (obj: object) => void,\n];\n\n/**\n * Recursively normalizes the given object.\n *\n * - Creates a copy to prevent original input mutation\n * - Skips non-enumerable properties\n * - When stringifying, calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializable values (`undefined`/`NaN`/functions) to serializable format\n * - Translates known global objects/classes to a string representations\n * - Takes care of `Error` object serialization\n * - Optionally limits depth of final output\n * - Optionally limits number of properties/elements included in any single object/array\n *\n * @param input The object to be normalized.\n * @param depth The max depth to which to normalize the object. (Anything deeper stringified whole.)\n * @param maxProperties The max number of elements or properties to be included in any single array or\n * object in the normalized output.\n * @returns A normalized version of the object, or `\"**non-serializable**\"` if any errors are thrown during normalization.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function normalize(input: unknown, depth: number = 100, maxProperties: number = +Infinity): any {\n  try {\n    // since we're at the outermost level, we don't provide a key\n    return visit('', input, depth, maxProperties);\n  } catch (err) {\n    return { ERROR: `**non-serializable** (${stringifyCaughtValue(err)})` };\n  }\n}\n\n/**\n * Stringify a caught value for an error message. Template literals and other implicit\n * conversions throw on symbols and on objects with no usable `toString`, which is how\n * the values that end up here tend to be broken in the first place, so fall back to\n * fixed text instead of throwing again.\n */\nfunction stringifyCaughtValue(err: unknown): string {\n  try {\n    return String(err);\n  } catch {\n    return 'unknown error';\n  }\n}\n\n/** JSDoc */\nexport function normalizeToSize<T>(\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  object: { [key: string]: any },\n  // Default Node.js REPL depth\n  depth: number = 3,\n  // 100kB, as 200kB is max payload size, so half sounds reasonable\n  maxSize: number = 100 * 1024,\n): T {\n  const normalized = normalize(object, depth);\n\n  if (jsonSize(normalized) > maxSize) {\n    return normalizeToSize(object, depth - 1, maxSize);\n  }\n\n  return normalized as T;\n}\n\n/**\n * Visits a node to perform normalization on it\n *\n * @param key The key corresponding to the given node\n * @param value The node to be visited\n * @param depth Optional number indicating the maximum recursion depth\n * @param maxProperties Optional maximum number of properties/elements included in any single object/array\n * @param memo Optional Memo class handling decycling\n */\nfunction visit(\n  key: string,\n  value: unknown,\n  depth: number = +Infinity,\n  maxProperties: number = +Infinity,\n  memo = memoBuilder(),\n): Primitive | ObjOrArray<unknown> {\n  const [memoize, unmemoize] = memo;\n\n  // Get the simple cases out of the way first\n  if (\n    value == null || // this matches null and undefined -> eqeq not eqeqeq\n    ['boolean', 'string'].includes(typeof value) ||\n    (typeof value === 'number' && Number.isFinite(value))\n  ) {\n    return value as Primitive;\n  }\n\n  const stringified = stringifyValue(key, value);\n\n  // Anything we could potentially dig into more (objects or arrays) will have come back as `\"[object XXXX]\"`.\n  // Everything else will have already been serialized, so if we don't see that pattern, we're done.\n  if (!stringified.startsWith('[object ')) {\n    return stringified;\n  }\n\n  // From here on, we can assert that `value` is either an object or an array.\n\n  // Do not normalize objects that we know have already been normalized. Hints use internal symbols\n  // (see normalizationHints.ts) so user-controlled JSON cannot spoof them.\n  if (hasSkipNormalizationHint(value)) {\n    return value as ObjOrArray<unknown>;\n  }\n\n  // Override remaining depth from this node (e.g. Redux / Pinia state). Set via setNormalizationDepthOverrideHint.\n  const overrideDepth = getNormalizationDepthOverrideHint(value);\n  const remainingDepth = overrideDepth !== undefined ? overrideDepth : depth;\n\n  // We're also done if we've reached the max depth\n  if (remainingDepth === 0) {\n    // At this point we know `serialized` is a string of the form `\"[object XXXX]\"`. Clean it up so it's just `\"[XXXX]\"`.\n    return stringified.replace('object ', '');\n  }\n\n  // If we've already visited this branch, bail out, as it's circular reference. If not, note that we're seeing it now.\n  if (memoize(value)) {\n    return '[Circular ~]';\n  }\n\n  // If the value has a `toJSON` method, we call it to extract more information\n  const valueWithToJSON = value as unknown & { toJSON?: () => unknown };\n  if (valueWithToJSON && typeof valueWithToJSON.toJSON === 'function') {\n    try {\n      const jsonValue = valueWithToJSON.toJSON();\n      // We need to normalize the return value of `.toJSON()` in case it has circular references\n      return visit('', jsonValue, remainingDepth - 1, maxProperties, memo);\n    } catch {\n      // pass (The built-in `toJSON` failed, but we can still try to do it ourselves)\n    }\n  }\n\n  // At this point we know we either have an object or an array, we haven't seen it before, and we're going to recurse\n  // because we haven't yet reached the max depth. Create an accumulator to hold the results of visiting each\n  // property/entry, and keep track of the number of items we add to it.\n  const normalized = (Array.isArray(value) ? [] : {}) as ObjOrArray<unknown>;\n  let numAdded = 0;\n\n  // Before we begin, convert`Error` and`Event` instances into plain objects, since some of each of their relevant\n  // properties are non-enumerable and otherwise would get missed.\n  const visitable = convertToPlainObject(value as ObjOrArray<unknown>);\n\n  for (const visitKey in visitable) {\n    // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n    if (!Object.prototype.hasOwnProperty.call(visitable, visitKey)) {\n      continue;\n    }\n\n    if (numAdded >= maxProperties) {\n      normalized[visitKey] = '[MaxProperties ~]';\n      break;\n    }\n\n    // Recursively visit all the child nodes\n    const visitValue = visitable[visitKey];\n    normalized[visitKey] = visit(visitKey, visitValue, remainingDepth - 1, maxProperties, memo);\n\n    numAdded++;\n  }\n\n  // Once we've visited all the branches, remove the parent from memo storage\n  unmemoize(value);\n\n  // Return accumulated values\n  return normalized;\n}\n\n/* eslint-disable complexity */\n/**\n * Stringify the given value. Handles various known special values and types.\n *\n * Not meant to be used on simple primitives which already have a string representation, as it will, for example, turn\n * the number 1231 into \"[Object Number]\", nor on `null`, as it will throw.\n *\n * @param value The value to stringify\n * @returns A stringified representation of the given value\n */\nexport function stringifyValue(\n  key: unknown,\n  // this type is a tiny bit of a cheat, since this function does handle NaN (which is technically a number), but for\n  // our internal use, it'll do\n  value: Exclude<unknown, string | number | boolean | null>,\n): string {\n  try {\n    // Runtime-specific stringifications (browser, framework integrations) are registered on the\n    // async-context strategy. Consult them before the universal fallbacks below.\n    if (stringifier) {\n      const stringified = stringifier(value);\n      // Safe to ignore empty strings here as well, we wont stringify to this\n      if (stringified) {\n        return stringified;\n      }\n    }\n\n    if (typeof global !== 'undefined' && value === global) {\n      return '[Global]';\n    }\n\n    if (typeof value === 'number' && !Number.isFinite(value)) {\n      return `[${value}]`;\n    }\n\n    if (typeof value === 'function') {\n      return `[Function: ${getFunctionName(value)}]`;\n    }\n\n    if (typeof value === 'symbol') {\n      return `[${String(value)}]`;\n    }\n\n    // stringified BigInts are indistinguishable from regular numbers, so we need to label them to avoid confusion\n    if (typeof value === 'bigint') {\n      return `[BigInt: ${String(value)}]`;\n    }\n\n    // Now that we've knocked out all the special cases and the primitives, all we have left are objects. Simply casting\n    // them to strings means that instances of classes which haven't defined their `toStringTag` will just come out as\n    // `\"[object Object]\"`. If we instead look at the constructor's name (which is the same as the name of the class),\n    // we can make sure that only plain objects come out that way.\n    const objName = getConstructorName(value);\n\n    return `[object ${objName}]`;\n  } catch (err) {\n    return `**non-serializable** (${stringifyCaughtValue(err)})`;\n  }\n}\n/* eslint-enable complexity */\n\nfunction getConstructorName(value: unknown): string {\n  const prototype: Prototype | null = Object.getPrototypeOf(value);\n\n  return prototype?.constructor ? prototype.constructor.name : 'null prototype';\n}\n\n/** Calculates bytes size of input string */\nfunction utf8Length(value: string): number {\n  // eslint-disable-next-line no-bitwise\n  return ~-encodeURI(value).split(/%..|./).length;\n}\n\n/** Calculates bytes size of input object */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction jsonSize(value: any): number {\n  return utf8Length(JSON.stringify(value));\n}\n\n/**\n * Normalizes URLs in exceptions and stacktraces to a base path so Sentry can fingerprint\n * across platforms and working directory.\n *\n * @param url The URL to be normalized.\n * @param basePath The application base path.\n * @returns The normalized URL.\n */\nexport function normalizeUrlToBase(url: string, basePath: string): string {\n  const escapedBase = basePath\n    // Backslash to forward\n    .replace(/\\\\/g, '/')\n    // Escape RegExp special characters\n    .replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n\n  let newUrl = url;\n  try {\n    newUrl = decodeURI(url);\n  } catch {\n    // Sometime this breaks\n  }\n  return (\n    newUrl\n      .replace(/\\\\/g, '/')\n      .replace(/webpack:\\/?/g, '') // Remove intermediate base path\n      // oxlint-disable-next-line sdk/no-regexp-constructor\n      .replace(new RegExp(`(file://)?/*${escapedBase}/*`, 'ig'), 'app:///')\n  );\n}\n\n/**\n * Helper to decycle json objects\n */\nfunction memoBuilder(): MemoFunc {\n  const inner = new WeakSet<object>();\n  function memoize(obj: object): boolean {\n    if (inner.has(obj)) {\n      return true;\n    }\n    inner.add(obj);\n    return false;\n  }\n\n  function unmemoize(obj: object): void {\n    inner.delete(obj);\n  }\n  return [memoize, unmemoize];\n}\n","import { isPrimitive, isRegExp, isString } from './is';\nimport { stringifyValue } from './normalize';\n\nexport { escapeStringForRegex } from '../vendor/escapeStringForRegex';\n\n/**\n * Coerce a value to a string without ever throwing. Strings pass through unchanged (so an\n * already-serialized value isn't double-encoded and a plain string isn't wrapped in quotes);\n * anything else is `JSON.stringify`-ed, falling back to `fallback` if that throws (e.g. on\n * circular references or `BigInt`). Returns `undefined` for values `JSON.stringify` itself drops\n * (top-level `undefined`, functions, symbols), matching `JSON.stringify`'s own runtime behavior.\n *\n * @param value the value to stringify\n * @param fallback returned when serialization throws, or, if a function, called with `value` to\n *   produce the fallback. Defaults to `'[unserializable]'`.\n */\nexport function stringify(\n  value: unknown,\n  fallback: string | ((value: unknown) => string) = '[unserializable]',\n): string | undefined {\n  if (typeof value === 'string') {\n    return value;\n  }\n  try {\n    return JSON.stringify(value);\n  } catch {\n    return typeof fallback === 'function' ? fallback(value) : fallback;\n  }\n}\n\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str: string, max: number = 0): string {\n  if (typeof str !== 'string' || max === 0) {\n    return str;\n  }\n  return str.length <= max ? str : `${str.slice(0, max)}...`;\n}\n\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line: string, colno: number): string {\n  let newLine = line;\n  const lineLength = newLine.length;\n  if (lineLength <= 150) {\n    return newLine;\n  }\n  if (colno > lineLength) {\n    // eslint-disable-next-line no-param-reassign\n    colno = lineLength;\n  }\n\n  let start = Math.max(colno - 60, 0);\n  if (start < 5) {\n    start = 0;\n  }\n\n  let end = Math.min(start + 140, lineLength);\n  if (end > lineLength - 5) {\n    end = lineLength;\n  }\n  if (end === lineLength) {\n    start = Math.max(end - 140, 0);\n  }\n\n  newLine = newLine.slice(start, end);\n  if (start > 0) {\n    newLine = `'{snip} ${newLine}`;\n  }\n  if (end < lineLength) {\n    newLine += ' {snip}';\n  }\n\n  return newLine;\n}\n\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\nexport function safeJoin(input: unknown[], delimiter?: string): string {\n  if (!Array.isArray(input)) {\n    return '';\n  }\n\n  const output = [];\n  // eslint-disable-next-line typescript/prefer-for-of\n  for (let i = 0; i < input.length; i++) {\n    const value = input[i];\n    if (isPrimitive(value)) {\n      output.push(String(value));\n    } else if (value instanceof Error) {\n      // While stringifyValue does not special-case errors, because we later handle them specifically based on the [object XXX] fallback,\n      // in this method we want to render them more nicely\n      output.push(value.message ? `${value.name}: ${value.message}` : value.name);\n    } else {\n      output.push(stringifyValue(undefined, value));\n    }\n  }\n\n  return output.join(delimiter);\n}\n\n/**\n * Checks if the given value matches a regex or string\n *\n * @param value The string to test\n * @param pattern Either a regex or a string against which `value` will be matched\n * @param requireExactStringMatch If true, `value` must match `pattern` exactly. If false, `value` will match\n * `pattern` if it contains `pattern`. Only applies to string-type patterns.\n */\nexport function isMatchingPattern(\n  value: string,\n  pattern: RegExp | string | ((value: string) => boolean),\n  requireExactStringMatch: boolean = false,\n): boolean {\n  if (!isString(value)) {\n    return false;\n  }\n\n  if (isRegExp(pattern)) {\n    return pattern.test(value);\n  }\n  if (isString(pattern)) {\n    return requireExactStringMatch ? value === pattern : value.includes(pattern);\n  }\n  if (typeof pattern === 'function') {\n    return pattern(value);\n  }\n\n  return false;\n}\n\n/**\n * Test the given string against an array of strings and regexes. By default, string matching is done on a\n * substring-inclusion basis rather than a strict equality basis\n *\n * @param testString The string to test\n * @param patterns The patterns against which to test the string\n * @param requireExactStringMatch If true, `testString` must match one of the given string patterns exactly in order to\n * count. If false, `testString` will match a string pattern if it contains that pattern.\n * @returns\n */\nexport function stringMatchesSomePattern(\n  testString: string,\n  patterns:\n    | Array<string | RegExp | ((value: string) => boolean)>\n    | Set<string | RegExp | ((value: string) => boolean)> = [],\n  requireExactStringMatch: boolean = false,\n): boolean {\n  for (const pattern of patterns) {\n    if (isMatchingPattern(testString, pattern, requireExactStringMatch)) {\n      return true;\n    }\n  }\n  return false;\n}\n","import type { Event } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { Mechanism } from '../types/mechanism';\nimport type { StackFrame } from '../types/stackframe';\nimport { addNonEnumerableProperty } from './object';\nimport { safeMathRandom, withRandomSafeContext } from './randomSafeContext';\nimport { snipLine } from './string';\nimport { GLOBAL_OBJ } from './worldwide';\n\ninterface CryptoInternal {\n  randomUUID?(): string;\n}\n\n/** An interface for common properties on global */\ninterface CryptoGlobal {\n  msCrypto?: CryptoInternal;\n  crypto?: CryptoInternal;\n}\n\nfunction getCrypto(): CryptoInternal | undefined {\n  const gbl = GLOBAL_OBJ as typeof GLOBAL_OBJ & CryptoGlobal;\n  return gbl.crypto || gbl.msCrypto;\n}\n\nlet emptyUuid: string | undefined;\n\nfunction getRandomByte(): number {\n  return safeMathRandom() * 16;\n}\n\n/**\n * UUID4 generator\n * @param crypto Object that provides the crypto API.\n * @returns string Generated UUID4.\n */\nexport function uuid4(crypto = getCrypto()): string {\n  try {\n    if (crypto?.randomUUID) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n      return withRandomSafeContext(() => crypto.randomUUID!()).replace(/-/g, '');\n    }\n  } catch {\n    // some runtimes can crash invoking crypto\n    // https://github.com/getsentry/sentry-javascript/issues/8935\n  }\n\n  if (!emptyUuid) {\n    // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n    // Concatenating the following numbers as strings results in '10000000100040008000100000000000'\n    emptyUuid = ([1e7] as unknown as string) + 1e3 + 4e3 + 8e3 + 1e11;\n  }\n\n  return emptyUuid.replace(/[018]/g, c =>\n    // eslint-disable-next-line no-bitwise\n    ((c as unknown as number) ^ ((getRandomByte() & 15) >> ((c as unknown as number) / 4))).toString(16),\n  );\n}\n\nfunction getFirstException(event: Event): Exception | undefined {\n  return event.exception?.values?.[0];\n}\n\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event: Event): string {\n  const { message, event_id: eventId } = event;\n  if (message) {\n    return message;\n  }\n\n  const firstException = getFirstException(event);\n  if (firstException) {\n    if (firstException.type && firstException.value) {\n      return `${firstException.type}: ${firstException.value}`;\n    }\n    return firstException.type || firstException.value || eventId || '<unknown>';\n  }\n  return eventId || '<unknown>';\n}\n\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event: Event, value?: string, type?: string): void {\n  const exception = (event.exception = event.exception || {});\n  const values = (exception.values = exception.values || []);\n  const firstException = (values[0] = values[0] || {});\n  if (!firstException.value) {\n    firstException.value = value || '';\n  }\n  if (!firstException.type) {\n    firstException.type = type || 'Error';\n  }\n}\n\n/**\n * Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.\n *\n * @param event The event to modify.\n * @param newMechanism Mechanism data to add to the event.\n * @hidden\n */\nexport function addExceptionMechanism(event: Event, newMechanism?: Partial<Mechanism>): void {\n  const firstException = getFirstException(event);\n  if (!firstException) {\n    return;\n  }\n\n  applyExceptionMechanism(firstException, newMechanism);\n}\n\n/**\n * Adds exception mechanism data to the originally captured (root) exception of a given event.\n *\n * @hidden\n */\nexport function addExceptionMechanismToCapturedException(event: Event, newMechanism?: Partial<Mechanism>): void {\n  const exceptions = event.exception?.values;\n\n  // Exception groups identify the originally captured (root) exception with exception_id 0.\n  const capturedException = exceptions?.find(exception => exception.mechanism?.exception_id === 0) ?? exceptions?.[0];\n\n  if (!capturedException) {\n    return;\n  }\n\n  applyExceptionMechanism(capturedException, newMechanism);\n}\n\nfunction applyExceptionMechanism(exception: Exception, newMechanism?: Partial<Mechanism>): void {\n  const defaultMechanism = { type: 'generic', handled: true };\n  const currentMechanism = exception.mechanism;\n  exception.mechanism = { ...defaultMechanism, ...currentMechanism, ...newMechanism };\n\n  if (newMechanism && 'data' in newMechanism) {\n    exception.mechanism.data = { ...currentMechanism?.data, ...newMechanism.data };\n  }\n}\n\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nconst SEMVER_REGEXP =\n  /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n\n/**\n * Represents Semantic Versioning object\n */\ninterface SemVer {\n  major?: number;\n  minor?: number;\n  patch?: number;\n  prerelease?: string;\n  buildmetadata?: string;\n}\n\nfunction _parseInt(input: string | undefined): number {\n  return parseInt(input || '', 10);\n}\n\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input: string): SemVer {\n  const match = input.match(SEMVER_REGEXP) || [];\n  const major = _parseInt(match[1]);\n  const minor = _parseInt(match[2]);\n  const patch = _parseInt(match[3]);\n  return {\n    buildmetadata: match[5],\n    major: isNaN(major) ? undefined : major,\n    minor: isNaN(minor) ? undefined : minor,\n    patch: isNaN(patch) ? undefined : patch,\n    prerelease: match[4],\n  };\n}\n\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines: string[], frame: StackFrame, linesOfContext: number = 5): void {\n  // When there is no line number in the frame, attaching context is nonsensical and will even break grouping\n  if (frame.lineno === undefined) {\n    return;\n  }\n\n  const maxLines = lines.length;\n  const sourceLine = Math.max(Math.min(maxLines - 1, frame.lineno - 1), 0);\n\n  frame.pre_context = lines\n    .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n    .map((line: string) => snipLine(line, 0));\n\n  // We guard here to ensure this is not larger than the existing number of lines\n  const lineIndex = Math.min(maxLines - 1, sourceLine);\n\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n  frame.context_line = snipLine(lines[lineIndex]!, frame.colno || 0);\n\n  frame.post_context = lines\n    .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n    .map((line: string) => snipLine(line, 0));\n}\n\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * The client runs this check for every captured exception, also when `dedupeIntegration` is not active.\n * `dedupeIntegration` drops equal events that come from different error objects.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nexport function checkOrSetAlreadyCaught(exception: unknown): boolean {\n  if (isAlreadyCaptured(exception)) {\n    return true;\n  }\n\n  try {\n    // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n    // `ExtraErrorData` integration\n    addNonEnumerableProperty(exception as { [key: string]: unknown }, '__sentry_captured__', true);\n  } catch {\n    // `exception` is a primitive, so we can't mark it seen\n  }\n\n  return false;\n}\n\n/**\n * Checks whether we've already captured the given exception (note: not an identical exception - the very object).\n * It is considered already captured if it has the `__sentry_captured__` property set to `true`.\n *\n * @internal Only considered for internal usage\n */\nexport function isAlreadyCaptured(exception: unknown): boolean | void {\n  try {\n    return (exception as { __sentry_captured__?: boolean }).__sentry_captured__;\n  } catch {} // eslint-disable-line no-empty\n}\n","import { safeDateNow, withRandomSafeContext } from './randomSafeContext';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst ONE_SECOND_IN_MS = 1000;\n\n/**\n * If `performance.timeOrigin + performance.now()` and `Date.now()` differ by more than this, we correct the time origin.\n */\nconst CLOCK_DRIFT_THRESHOLD_MS = 1_000;\n\n/**\n * Max number of time origins we store. When we hit it, we drop the oldest one, except the page load origin, which\n * the pageload span uses.\n */\nconst MAX_TIME_ORIGIN_SEGMENTS = 100;\n\n/**\n * A partial definition of the [Performance Web API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance}\n * for accessing a high-resolution monotonic clock.\n */\ninterface Performance {\n  /**\n   * The millisecond timestamp at which measurement began, measured in Unix time.\n   */\n  timeOrigin: number;\n  /**\n   * Returns the current millisecond timestamp, where 0 represents the start of measurement.\n   */\n  now(): number;\n}\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n */\nexport function dateTimestampInSeconds(): number {\n  return safeDateNow() / ONE_SECOND_IN_MS;\n}\n\n/**\n * A time origin and the `performance.now()` value from which it applies.\n *\n * When we correct the time origin, we keep the old ones. This way, a `performance.now()` value can be converted with the\n * origin that was valid when it was measured, not the one that is valid now.\n */\ninterface TimeOriginSegment {\n  /** The `performance.now()` value from which `origin` applies. */\n  from: number;\n  /** Milliseconds since the UNIX epoch that `performance.now() === 0` corresponds to. */\n  origin: number;\n}\n\n/**\n * All time origins of the page, oldest first. Empty until the first `timestampInSeconds` call, or if the Performance\n * API is unavailable.\n */\nlet _timeOriginSegments: TimeOriginSegment[] = [];\n\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction createUnixTimestampInSecondsFunc(): () => number {\n  const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & { performance?: Performance };\n  // Some browser and environments don't have a performance or timeOrigin, so we fallback to\n  // using Date.now() to compute the starting time.\n  if (!performance?.now || !performance.timeOrigin) {\n    if (performance?.now) {\n      // We can still convert `performance.now()` values, just without drift correction.\n      _timeOriginSegments = [{ from: 0, origin: safeDateNow() - withRandomSafeContext(() => performance.now()) }];\n    }\n    return dateTimestampInSeconds;\n  }\n\n  // performance.now() is a monotonic clock, which means it starts at 0 when the process begins. To get the current\n  // wall clock time (actual UNIX timestamp), we need to add the starting time origin and the current time elapsed.\n  // Due to device sleeps, the origin might need to be corrected to match the wall clock time over the SDK's lifetime.\n  let correctedTimeOrigin = performance.timeOrigin;\n  _timeOriginSegments = [{ from: 0, origin: correctedTimeOrigin }];\n  let isFirstCall = true;\n  let lastCheckedPerformanceNow = 0;\n\n  return () => {\n    return withRandomSafeContext(() => {\n      const performanceNow = performance.now();\n      const dateNow = Date.now();\n\n      // `performance.now()` stops while the device sleeps, and the wall clock can be changed by NTP or the user. In\n      // both cases `timeOrigin + performance.now()` no longer matches `Date.now()`, so we correct the time origin.\n      // We still use `performance.now()` for elapsed time to keep sub-millisecond precision.\n      // See: https://github.com/getsentry/sentry-javascript/issues/2590\n      // See: https://github.com/mdn/content/issues/4713\n      // See: https://dev.to/noamr/when-a-millisecond-is-not-a-millisecond-3h6\n      if (Math.abs(correctedTimeOrigin + performanceNow - dateNow) > CLOCK_DRIFT_THRESHOLD_MS) {\n        correctedTimeOrigin = dateNow - performanceNow;\n\n        if (isFirstCall) {\n          // `performance.timeOrigin` was already wrong at startup, so we replace it. If we pushed a second segment\n          // instead, the segment cap below could later drop the corrected one and keep the wrong one.\n          _timeOriginSegments = [{ from: 0, origin: correctedTimeOrigin }];\n        } else {\n          // We keep the old origins, so performance entries recorded before the correction still use their origin.\n          _timeOriginSegments.push({ from: lastCheckedPerformanceNow, origin: correctedTimeOrigin });\n          if (_timeOriginSegments.length > MAX_TIME_ORIGIN_SEGMENTS) {\n            // we keep the oldest entry (the page load origin) and drop the one after it.\n            _timeOriginSegments.splice(1, 1);\n          }\n        }\n      }\n      isFirstCall = false;\n      lastCheckedPerformanceNow = performanceNow;\n\n      return (correctedTimeOrigin + performanceNow) / ONE_SECOND_IN_MS;\n    });\n  };\n}\n\n/**\n * Returns `performance.now()` in milliseconds, or `undefined` if the Performance API is unavailable.\n */\nexport function safePerformanceNow(): number | undefined {\n  const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & { performance?: Performance };\n  return performance?.now ? withRandomSafeContext(() => performance.now()) : undefined;\n}\n\nlet _cachedTimestampInSecondsFn: (() => number) | undefined;\nlet _checkedForDriftInThisTask = false;\n\n/**\n * Converts a `performance.now()` based, relative time in milliseconds (e.g. a `PerformanceEntry`'s `startTime`)\n * to a UNIX timestamp in seconds, matching {@link timestampInSeconds}.\n *\n * Corrects for clock drift via browserPerformanceTimeOrigin().\n *\n * Pass `entryStartTimeInMs` (also a `performance.now()` based time) to use the time origin that was valid at the entry's\n * start. Use it for all timings of one entry, so its duration stays correct.\n *\n * Returns `undefined` if the Performance API is unavailable.\n */\nexport function performanceTimeToSeconds(\n  monotonicTimeInMs: number,\n  entryStartTimeInMs = monotonicTimeInMs,\n): number | undefined {\n  const origin = browserPerformanceTimeOrigin(entryStartTimeInMs);\n  return origin == null ? undefined : (origin + monotonicTimeInMs) / ONE_SECOND_IN_MS;\n}\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * If the Performance API time and `Date.now()` differ by more than {@link CLOCK_DRIFT_THRESHOLD_MS} (e.g. after the\n * device slept), the time origin is corrected based on `Date.now()`.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nexport function timestampInSeconds(): number {\n  // We store this in a closure so that we don't have to create a new function every time this is called.\n  const func = _cachedTimestampInSecondsFn ?? (_cachedTimestampInSecondsFn = createUnixTimestampInSecondsFunc());\n  return func();\n}\n\n/**\n * Returns the time origin in milliseconds that was valid at the given `performance.now()` time. Defaults to the page\n * load origin.\n *\n * Pass the time you want to convert, so entries that are reported late (e.g. INP on pagehide) are not shifted by a\n * drift that happened after they were recorded. Use the same time for all timings of one entry to keep its duration.\n *\n * Returns `undefined` if the Performance API is unavailable.\n */\nexport function browserPerformanceTimeOrigin(monotonicTimeInMs = 0): number | undefined {\n  // Checks for drift (and sets up `_timeOriginSegments`), so entries recorded after a sleep get the corrected origin.\n  // To avoid the expensive clock drift check on every call, we only do it once per task. Helps mitigating performance\n  // overhead in loops over many entries (e.g. browser profiling `convertToContinuousProfile`).\n  if (!_checkedForDriftInThisTask) {\n    _checkedForDriftInThisTask = true;\n    // We use a promise instead of `queueMicrotask`, because React Native < 0.66 doesn't have it.\n    void Promise.resolve().then(() => {\n      _checkedForDriftInThisTask = false;\n    });\n    timestampInSeconds();\n  }\n\n  let segment: TimeOriginSegment | undefined;\n  for (const candidate of _timeOriginSegments) {\n    if (segment && candidate.from > monotonicTimeInMs) {\n      break;\n    }\n    segment = candidate;\n  }\n\n  return segment?.origin;\n}\n","import type { SerializedSession, Session, SessionContext, SessionStatus } from './types/session';\nimport { uuid4 } from './utils/misc';\nimport { timestampInSeconds } from './utils/time';\n\n/**\n * Creates a new `Session` object by setting certain default parameters. If optional @param context\n * is passed, the passed properties are applied to the session object.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns a new `Session` object\n */\nexport function makeSession(context?: Omit<SessionContext, 'started' | 'status'>): Session {\n  // Both timestamp and started are in seconds since the UNIX epoch.\n  const startingTime = timestampInSeconds();\n\n  const session: Session = {\n    sid: uuid4(),\n    init: true,\n    timestamp: startingTime,\n    started: startingTime,\n    duration: 0,\n    status: 'ok',\n    errors: 0,\n    ignoreDuration: false,\n    toJSON: () => sessionToJSON(session),\n  };\n\n  if (context) {\n    updateSession(session, context);\n  }\n\n  return session;\n}\n\n/**\n * Updates a session object with the properties passed in the context.\n *\n * Note that this function mutates the passed object and returns void.\n * (Had to do this instead of returning a new and updated session because closing and sending a session\n * makes an update to the session after it was passed to the sending logic.\n * @see Client.captureSession )\n *\n * @param session the `Session` to update\n * @param context the `SessionContext` holding the properties that should be updated in @param session\n */\n// eslint-disable-next-line complexity\nexport function updateSession(session: Session, context: SessionContext = {}): void {\n  if (context.user) {\n    if (!session.ipAddress && context.user.ip_address) {\n      session.ipAddress = context.user.ip_address;\n    }\n\n    if (!session.did && !context.did) {\n      session.did = context.user.id || context.user.email || context.user.username;\n    }\n  }\n\n  session.timestamp = context.timestamp || timestampInSeconds();\n\n  if (context.abnormal_mechanism) {\n    session.abnormal_mechanism = context.abnormal_mechanism;\n  }\n\n  if (context.ignoreDuration) {\n    session.ignoreDuration = context.ignoreDuration;\n  }\n  if (context.sid) {\n    // Good enough uuid validation. — Kamil\n    session.sid = context.sid.length === 32 ? context.sid : uuid4();\n  }\n  if (context.init !== undefined) {\n    session.init = context.init;\n  }\n  if (!session.did && context.did) {\n    session.did = `${context.did}`;\n  }\n  if (typeof context.started === 'number') {\n    session.started = context.started;\n  }\n  if (session.ignoreDuration) {\n    session.duration = undefined;\n  } else if (typeof context.duration === 'number') {\n    session.duration = context.duration;\n  } else {\n    const duration = session.timestamp - session.started;\n    session.duration = duration >= 0 ? duration : 0;\n  }\n  if (context.release) {\n    session.release = context.release;\n  }\n  if (context.environment) {\n    session.environment = context.environment;\n  }\n  if (!session.ipAddress && context.ipAddress) {\n    session.ipAddress = context.ipAddress;\n  }\n  if (!session.userAgent && context.userAgent) {\n    session.userAgent = context.userAgent;\n  }\n  if (typeof context.errors === 'number') {\n    session.errors = context.errors;\n  }\n  if (context.status) {\n    session.status = context.status;\n  }\n}\n\n/**\n * Closes a session by setting its status and updating the session object with it.\n * Internally calls `updateSession` to update the passed session object.\n *\n * Note that this function mutates the passed session (@see updateSession for explanation).\n *\n * @param session the `Session` object to be closed\n * @param status the `SessionStatus` with which the session was closed. If you don't pass a status,\n *               this function will keep the previously set status, unless it was `'ok'` in which case\n *               it is changed to `'exited'`.\n */\nexport function closeSession(session: Session, status?: Exclude<SessionStatus, 'ok'>): void {\n  let context = {};\n  if (status) {\n    context = { status };\n  } else if (session.status === 'ok') {\n    context = { status: 'exited' };\n  }\n\n  updateSession(session, context);\n}\n\n/**\n * Serializes a passed session object to a JSON object with a slightly different structure.\n * This is necessary because the Sentry backend requires a slightly different schema of a session\n * than the one the JS SDKs use internally.\n *\n * @param session the session to be converted\n *\n * @returns a JSON object of the passed session\n */\nfunction sessionToJSON(session: Session): SerializedSession {\n  return {\n    sid: `${session.sid}`,\n    init: session.init,\n    // Make sure that sec is converted to ms for date constructor\n    started: new Date(session.started * 1000).toISOString(),\n    timestamp: new Date(session.timestamp * 1000).toISOString(),\n    status: session.status,\n    errors: session.errors,\n    did: typeof session.did === 'number' || typeof session.did === 'string' ? `${session.did}` : undefined,\n    duration: session.duration,\n    abnormal_mechanism: session.abnormal_mechanism,\n    attrs: {\n      release: session.release,\n      environment: session.environment,\n      ip_address: session.ipAddress,\n      user_agent: session.userAgent,\n    },\n  };\n}\n","/**\n * Shallow merge two objects.\n * Does not mutate the passed in objects.\n * Undefined/empty values in the merge object will overwrite existing values.\n *\n * By default, this merges 2 levels deep.\n */\nexport function merge<T>(initialObj: T, mergeObj: T, levels = 2): T {\n  // If the merge value is not an object, or we have no merge levels left,\n  // we just set the value to the merge value\n  if (!mergeObj || typeof mergeObj !== 'object' || levels <= 0) {\n    return mergeObj;\n  }\n\n  // If the merge object is an empty object, and the initial object is not undefined, we return the initial object\n  if (initialObj && Object.keys(mergeObj).length === 0) {\n    return initialObj;\n  }\n\n  // Clone object\n  const output = { ...initialObj };\n\n  // Merge values into output, resursively\n  for (const key in mergeObj) {\n    if (Object.prototype.hasOwnProperty.call(mergeObj, key)) {\n      output[key] = merge(output[key], mergeObj[key], levels - 1);\n    }\n  }\n\n  return output;\n}\n","import { uuid4 } from './misc';\n\n/**\n * Generate a random, valid trace ID.\n */\nexport function generateTraceId(): string {\n  return uuid4();\n}\n\n/**\n * Generate a random, valid span ID.\n */\nexport function generateSpanId(): string {\n  return uuid4().substring(16);\n}\n","/* eslint-disable max-lines */\nimport type { AttributeObject, RawAttribute, RawAttributes } from './attributes';\nimport type { Client } from './client';\nimport { DEBUG_BUILD } from './debug-build';\nimport { updateSession } from './session';\nimport type { Attachment } from './types/attachment';\nimport type { Breadcrumb } from './types/breadcrumb';\nimport type { Context, Contexts } from './types/context';\nimport type { DynamicSamplingContext } from './types/envelope';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { Extra, Extras } from './types/extra';\nimport type { Primitive } from './types/misc';\nimport type { RequestEventData } from './types/request';\nimport type { Session } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { PropagationContext } from './types/tracing';\nimport type { User } from './types/user';\nimport { debug } from './utils/debug-logger';\nimport { isPlainObject } from './utils/is';\nimport { addNonEnumerableProperty } from './utils/object';\nimport { merge } from './utils/merge';\nimport { uuid4 } from './utils/misc';\nimport { generateTraceId } from './utils/propagationContext';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { truncate } from './utils/string';\nimport { dateTimestampInSeconds } from './utils/time';\n\n/**\n * Default value for maximum number of breadcrumbs added to an event.\n */\nconst DEFAULT_MAX_BREADCRUMBS = 100;\n\n/**\n * A context to be used for capturing an event.\n * This can either be a Scope, or a partial ScopeContext,\n * or a callback that receives the current scope and returns a new scope to use.\n */\nexport type CaptureContext = Scope | Partial<ScopeContext> | ((scope: Scope) => Scope);\n\n/**\n * Data that can be converted to a Scope.\n */\nexport interface ScopeContext {\n  user: User;\n  level: SeverityLevel;\n  extra: Extras;\n  contexts: Contexts;\n  tags: { [key: string]: Primitive };\n  attributes?: RawAttributes<Record<string, unknown>>;\n  fingerprint: string[];\n  propagationContext: PropagationContext;\n  conversationId?: string;\n}\n\nexport interface SdkProcessingMetadata {\n  [key: string]: unknown;\n  requestSession?: {\n    status: 'ok' | 'errored' | 'crashed';\n  };\n  normalizedRequest?: RequestEventData;\n  dynamicSamplingContext?: Partial<DynamicSamplingContext>;\n  capturedSpanScope?: Scope;\n  capturedSpanIsolationScope?: Scope;\n  /**\n   * @deprecated This is no longer set or read by the SDK and will be removed in the next major version.\n   */\n  spanCountBeforeProcessing?: number;\n  ipAddress?: string;\n  /**\n   * Set on `captureMessage` events whose stack trace exists only because `attachStacktrace`\n   * defaults to `true`, so Replay does not treat them as errors in buffer mode.\n   */\n  hasDefaultSyntheticStacktrace?: boolean;\n}\n\n/**\n * Normalized data of the Scope, ready to be used.\n */\nexport interface ScopeData {\n  eventProcessors: EventProcessor[];\n  breadcrumbs: Breadcrumb[];\n  user: User;\n  tags: { [key: string]: Primitive };\n  attributes: RawAttributes<Record<string, unknown>>;\n  extra: Extras;\n  contexts: Contexts;\n  attachments: Attachment[];\n  propagationContext: PropagationContext;\n  sdkProcessingMetadata: SdkProcessingMetadata;\n  fingerprint: string[];\n  level?: SeverityLevel;\n  transactionName?: string;\n  conversationId?: string;\n}\n\n/**\n * Holds additional event information.\n */\nexport class Scope {\n  /** Flag if notifying is happening. */\n  protected _notifyingListeners: boolean;\n\n  /** Callback for client to receive scope changes. */\n  protected _scopeListeners: Array<(scope: Scope) => void>;\n\n  /** Callback list that will be called during event processing. */\n  protected _eventProcessors: EventProcessor[];\n\n  /** Array of breadcrumbs. */\n  protected _breadcrumbs: Breadcrumb[];\n\n  /** User */\n  protected _user: User;\n\n  /** Tags */\n  protected _tags: { [key: string]: Primitive };\n\n  /** Attributes */\n  protected _attributes: RawAttributes<Record<string, unknown>>;\n\n  /** Extra */\n  protected _extra: Extras;\n\n  /** Contexts */\n  protected _contexts: Contexts;\n\n  /** Attachments */\n  protected _attachments: Attachment[];\n\n  /** Propagation Context for distributed tracing */\n  protected _propagationContext: PropagationContext;\n\n  /**\n   * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get\n   * sent to Sentry\n   */\n  protected _sdkProcessingMetadata: SdkProcessingMetadata;\n\n  /** Fingerprint */\n  protected _fingerprint?: string[];\n\n  /** Severity */\n  protected _level?: SeverityLevel;\n\n  /**\n   * Transaction Name\n   *\n   * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.\n   * It's purpose is to assign a transaction to the scope that's added to non-transaction events.\n   */\n  protected _transactionName?: string;\n\n  /** Session */\n  protected _session?: Session;\n\n  /** The client on this scope */\n  protected _client?: Client;\n\n  /** Contains the last event id of a captured event.  */\n  protected _lastEventId?: string;\n\n  /** Conversation ID */\n  protected _conversationId?: string;\n\n  /**\n   * A place to stash references to objects that are associated with this scope but should not be serialized,\n   * such as the currently active span (core) or the OpenTelemetry context (opentelemetry).\n   * These are cloned as-is (shallow) when the scope is cloned, so they survive `clone()`.\n   *\n   * This is non-enumerable so it does not leak into `toJSON`, `Object.keys` or structural comparisons.\n   */\n  declare public refs: Record<string, unknown>;\n\n  // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.\n\n  public constructor() {\n    this._notifyingListeners = false;\n    this._scopeListeners = [];\n    this._eventProcessors = [];\n    this._breadcrumbs = [];\n    this._attachments = [];\n    this._user = {};\n    this._tags = {};\n    this._attributes = {};\n    this._extra = {};\n    this._contexts = {};\n    this._sdkProcessingMetadata = {};\n    addNonEnumerableProperty(this, 'refs', {});\n    this._propagationContext = {\n      traceId: generateTraceId(),\n      sampleRand: safeMathRandom(),\n    };\n  }\n\n  /**\n   * Clone all data from this scope into a new scope.\n   */\n  public clone(): Scope {\n    const newScope = new Scope();\n    newScope._breadcrumbs = [...this._breadcrumbs];\n    newScope._tags = { ...this._tags };\n    newScope._attributes = { ...this._attributes };\n    newScope._extra = { ...this._extra };\n    newScope._contexts = { ...this._contexts };\n    if (this._contexts.flags) {\n      // We need to copy the `values` array so insertions on a cloned scope\n      // won't affect the original array.\n      newScope._contexts.flags = {\n        values: [...this._contexts.flags.values],\n      };\n    }\n\n    newScope._user = this._user;\n    newScope._level = this._level;\n    newScope._session = this._session;\n    newScope._transactionName = this._transactionName;\n    newScope._fingerprint = this._fingerprint;\n    newScope._eventProcessors = [...this._eventProcessors];\n    newScope._attachments = [...this._attachments];\n    newScope._sdkProcessingMetadata = { ...this._sdkProcessingMetadata };\n    newScope._propagationContext = { ...this._propagationContext };\n    newScope._client = this._client;\n    newScope._lastEventId = this._lastEventId;\n    newScope._conversationId = this._conversationId;\n    newScope.refs = { ...this.refs };\n\n    return newScope;\n  }\n\n  /**\n   * Update the client assigned to this scope.\n   * Note that not every scope will have a client assigned - isolation scopes & the global scope will generally not have a client,\n   * as well as manually created scopes.\n   */\n  public setClient(client: Client | undefined): void {\n    this._client = client;\n  }\n\n  /**\n   * Set the ID of the last captured error event.\n   * This is generally only captured on the isolation scope.\n   */\n  public setLastEventId(lastEventId: string | undefined): void {\n    this._lastEventId = lastEventId;\n  }\n\n  /**\n   * Get the client assigned to this scope.\n   */\n  public getClient<C extends Client>(): C | undefined {\n    return this._client as C | undefined;\n  }\n\n  /**\n   * Get the ID of the last captured error event.\n   * This is generally only available on the isolation scope.\n   */\n  public lastEventId(): string | undefined {\n    return this._lastEventId;\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public addScopeListener(callback: (scope: Scope) => void): void {\n    this._scopeListeners.push(callback);\n  }\n\n  /**\n   * Add an event processor that will be called before an event is sent.\n   */\n  public addEventProcessor(callback: EventProcessor): this {\n    this._eventProcessors.push(callback);\n    return this;\n  }\n\n  /**\n   * Set the user for this scope.\n   * Set to `null` to unset the user.\n   */\n  public setUser(user: User | null): this {\n    // If null is passed we want to unset everything, but still define keys,\n    // so that later down in the pipeline any existing values are cleared.\n    this._user = user || {\n      email: undefined,\n      id: undefined,\n      ip_address: undefined,\n      username: undefined,\n    };\n\n    if (this._session) {\n      updateSession(this._session, { user });\n    }\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Get the user from this scope.\n   */\n  public getUser(): User | undefined {\n    return this._user;\n  }\n\n  /**\n   * Set the conversation ID for this scope.\n   * Set to `null` to unset the conversation ID.\n   */\n  public setConversationId(conversationId: string | null | undefined): this {\n    this._conversationId = conversationId || undefined;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set an object that will be merged into existing tags on the scope,\n   * and will be sent as tags data with the event.\n   */\n  public setTags(tags: { [key: string]: Primitive }): this {\n    this._tags = {\n      ...this._tags,\n      ...tags,\n    };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set a single tag that will be sent as tags data with the event.\n   */\n  public setTag(key: string, value: Primitive): this {\n    return this.setTags({ [key]: value });\n  }\n\n  /**\n   * Sets attributes onto the scope.\n   *\n   * These attributes are applied to logs, metrics and streamed spans.\n   *\n   * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n   *\n   * @param newAttributes - The attributes to set on the scope, as key-value pairs.\n   *\n   * @example\n   * ```typescript\n   * scope.setAttributes({\n   *   is_admin: true,\n   *   payment_selection: 'credit_card',\n   *   render_duration: 150,\n   * });\n   * ```\n   */\n  public setAttributes<T extends Record<string, unknown>>(newAttributes: RawAttributes<T>): this {\n    this._attributes = {\n      ...this._attributes,\n      ...newAttributes,\n    };\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets an attribute onto the scope.\n   *\n   * These attributes are applied to logs, metrics and streamed spans.\n   *\n   * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n   *\n   * @param key - The attribute key.\n   * @param value - The attribute value.\n   *\n   * @example\n   * ```typescript\n   * scope.setAttribute('is_admin', true);\n   * scope.setAttribute('render_duration', 150);\n   * ```\n   */\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  public setAttribute<T extends (RawAttribute<T> extends { value: any } | { unit: any } ? AttributeObject : unknown)>(\n    key: string,\n    value: RawAttribute<T>,\n  ): this {\n    return this.setAttributes({ [key]: value });\n  }\n\n  /**\n   * Removes the attribute with the given key from the scope.\n   *\n   * @param key - The attribute key.\n   *\n   * @example\n   * ```typescript\n   * scope.removeAttribute('is_admin');\n   * ```\n   */\n  public removeAttribute(key: string): this {\n    if (key in this._attributes) {\n      // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n      delete this._attributes[key];\n      this._notifyScopeListeners();\n    }\n    return this;\n  }\n\n  /**\n   * Set an object that will be merged into existing extra on the scope,\n   * and will be sent as extra data with the event.\n   */\n  public setExtras(extras: Extras): this {\n    this._extra = {\n      ...this._extra,\n      ...extras,\n    };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set a single key:value extra entry that will be sent as extra data with the event.\n   */\n  public setExtra(key: string, extra: Extra): this {\n    this._extra = { ...this._extra, [key]: extra };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the fingerprint on the scope to send with the events.\n   * @param {string[]} fingerprint Fingerprint to group events in Sentry.\n   */\n  public setFingerprint(fingerprint: string[]): this {\n    this._fingerprint = fingerprint;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the level on the scope for future events.\n   */\n  public setLevel(level: SeverityLevel): this {\n    this._level = level;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the transaction name on the scope so that the name of e.g. taken server route or\n   * the page location is attached to future events.\n   *\n   * IMPORTANT: Calling this function does NOT change the name of the currently active\n   * root span. If you want to change the name of the active root span, use\n   * `Sentry.updateSpanName(rootSpan, 'new name')` instead.\n   *\n   * By default, the SDK updates the scope's transaction name automatically on sensible\n   * occasions, such as a page navigation or when handling a new request on the server.\n   */\n  public setTransactionName(name?: string): this {\n    this._transactionName = name;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets context data with the given name.\n   * Data passed as context will be normalized. You can also pass `null` to unset the context.\n   * Note that context data will not be merged - calling `setContext` will overwrite an existing context with the same key.\n   */\n  public setContext(key: string, context: Context | null): this {\n    if (context === null) {\n      // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n      delete this._contexts[key];\n    } else {\n      this._contexts[key] = context;\n    }\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set the session for the scope.\n   */\n  public setSession(session?: Session): this {\n    if (!session) {\n      delete this._session;\n    } else {\n      this._session = session;\n    }\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Get the session from the scope.\n   */\n  public getSession(): Session | undefined {\n    return this._session;\n  }\n\n  /**\n   * Updates the scope with provided data. Can work in three variations:\n   * - plain object containing updatable attributes\n   * - Scope instance that'll extract the attributes from\n   * - callback function that'll receive the current scope as an argument and allow for modifications\n   */\n  public update(captureContext?: CaptureContext): this {\n    if (!captureContext) {\n      return this;\n    }\n\n    const scopeToMerge = typeof captureContext === 'function' ? captureContext(this) : captureContext;\n\n    const scopeInstance =\n      scopeToMerge instanceof Scope\n        ? scopeToMerge.getScopeData()\n        : isPlainObject(scopeToMerge)\n          ? (captureContext as ScopeContext)\n          : undefined;\n\n    const {\n      tags,\n      attributes,\n      extra,\n      user,\n      contexts,\n      level,\n      fingerprint = [],\n      propagationContext,\n      conversationId,\n    } = scopeInstance || {};\n\n    this._tags = { ...this._tags, ...tags };\n    this._attributes = { ...this._attributes, ...attributes };\n    this._extra = { ...this._extra, ...extra };\n    this._contexts = { ...this._contexts, ...contexts };\n\n    if (user && Object.keys(user).length) {\n      this._user = user;\n    }\n\n    if (level) {\n      this._level = level;\n    }\n\n    if (fingerprint.length) {\n      this._fingerprint = fingerprint;\n    }\n\n    if (propagationContext) {\n      this._propagationContext = propagationContext;\n    }\n\n    if (conversationId) {\n      this._conversationId = conversationId;\n    }\n\n    return this;\n  }\n\n  /**\n   * Adds a breadcrumb to the scope.\n   * By default, the last 100 breadcrumbs are kept.\n   */\n  public addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this {\n    const maxCrumbs = typeof maxBreadcrumbs === 'number' ? maxBreadcrumbs : DEFAULT_MAX_BREADCRUMBS;\n\n    // No data has been changed, so don't notify scope listeners\n    if (maxCrumbs <= 0) {\n      return this;\n    }\n\n    const mergedBreadcrumb: Breadcrumb = {\n      timestamp: dateTimestampInSeconds(),\n      ...breadcrumb,\n      // Breadcrumb messages can theoretically be infinitely large and they're held in memory so we truncate them not to leak (too much) memory\n      message: breadcrumb.message ? truncate(breadcrumb.message, 2048) : breadcrumb.message,\n    };\n\n    this._breadcrumbs.push(mergedBreadcrumb);\n    if (this._breadcrumbs.length > maxCrumbs) {\n      this._breadcrumbs = this._breadcrumbs.slice(-maxCrumbs);\n    }\n\n    this._notifyScopeListeners();\n\n    return this;\n  }\n\n  /**\n   * Get the last breadcrumb of the scope.\n   */\n  public getLastBreadcrumb(): Breadcrumb | undefined {\n    return this._breadcrumbs[this._breadcrumbs.length - 1];\n  }\n\n  /**\n   * Clear all breadcrumbs from the scope.\n   */\n  public clearBreadcrumbs(): this {\n    this._breadcrumbs = [];\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Add an attachment to the scope.\n   */\n  public addAttachment(attachment: Attachment): this {\n    this._attachments.push(attachment);\n    return this;\n  }\n\n  /**\n   * Clear all attachments from the scope.\n   */\n  public clearAttachments(): this {\n    this._attachments = [];\n    return this;\n  }\n\n  /**\n   * Get the data of this scope, which should be applied to an event during processing.\n   */\n  public getScopeData(): ScopeData {\n    return {\n      breadcrumbs: this._breadcrumbs,\n      attachments: this._attachments,\n      contexts: this._contexts,\n      tags: this._tags,\n      attributes: this._attributes,\n      extra: this._extra,\n      user: this._user,\n      level: this._level,\n      fingerprint: this._fingerprint || [],\n      eventProcessors: this._eventProcessors,\n      propagationContext: this._propagationContext,\n      sdkProcessingMetadata: this._sdkProcessingMetadata,\n      transactionName: this._transactionName,\n      conversationId: this._conversationId,\n    };\n  }\n\n  /**\n   * Add data which will be accessible during event processing but won't get sent to Sentry.\n   */\n  public setSDKProcessingMetadata(newData: SdkProcessingMetadata): this {\n    this._sdkProcessingMetadata = merge(this._sdkProcessingMetadata, newData, 2);\n    return this;\n  }\n\n  /**\n   * Add propagation context to the scope, used for distributed tracing\n   */\n  public setPropagationContext(context: PropagationContext): this {\n    this._propagationContext = context;\n    return this;\n  }\n\n  /**\n   * Get propagation context from the scope, used for distributed tracing\n   */\n  public getPropagationContext(): PropagationContext {\n    return this._propagationContext;\n  }\n\n  /**\n   * Capture an exception for this scope.\n   *\n   * @returns {string} The id of the captured Sentry event.\n   */\n  public captureException(exception: unknown, hint?: EventHint): string {\n    const eventId = hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture exception!');\n      return eventId;\n    }\n\n    const syntheticException = new Error('Sentry syntheticException');\n\n    this._client.captureException(\n      exception,\n      {\n        originalException: exception,\n        syntheticException,\n        ...hint,\n        event_id: eventId,\n      },\n      this,\n    );\n\n    return eventId;\n  }\n\n  /**\n   * Capture a message for this scope.\n   *\n   * @returns {string} The id of the captured message.\n   */\n  public captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string {\n    const eventId = hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture message!');\n      return eventId;\n    }\n\n    const syntheticException = hint?.syntheticException ?? new Error(message);\n\n    this._client.captureMessage(\n      message,\n      level,\n      {\n        originalException: message,\n        syntheticException,\n        ...hint,\n        event_id: eventId,\n      },\n      this,\n    );\n\n    return eventId;\n  }\n\n  /**\n   * Capture a Sentry event for this scope.\n   *\n   * @returns {string} The id of the captured event.\n   */\n  public captureEvent(event: Event, hint?: EventHint): string {\n    const eventId = event.event_id || hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture event!');\n      return eventId;\n    }\n\n    this._client.captureEvent(event, { ...hint, event_id: eventId }, this);\n\n    return eventId;\n  }\n\n  /**\n   * This will be called on every set call.\n   */\n  protected _notifyScopeListeners(): void {\n    // We need this check for this._notifyingListeners to be able to work on scope during updates\n    // If this check is not here we'll produce endless recursion when something is done with the scope\n    // during the callback.\n    if (!this._notifyingListeners) {\n      this._notifyingListeners = true;\n      this._scopeListeners.forEach(callback => {\n        callback(this);\n      });\n      this._notifyingListeners = false;\n    }\n  }\n}\n","import { getGlobalSingleton } from './carrier';\nimport { Scope } from './scope';\n\n/** Get the default current scope. */\nexport function getDefaultCurrentScope(): Scope {\n  return getGlobalSingleton('defaultCurrentScope', () => new Scope());\n}\n\n/** Get the default isolation scope. */\nexport function getDefaultIsolationScope(): Scope {\n  return getGlobalSingleton('defaultIsolationScope', () => new Scope());\n}\n","export const SUPPRESS_TRACING_KEY = '__SENTRY_SUPPRESS_TRACING__';\n","const isActualPromise = (p: unknown) =>\n  p instanceof Promise && !(p as unknown as ChainedPromiseLike<unknown>)[kChainedCopy];\n\ntype ChainedPromiseLike<T> = PromiseLike<T> & {\n  [kChainedCopy]: true;\n};\nconst kChainedCopy = Symbol('chained PromiseLike');\n\n/**\n * Copy the properties from a decorated promiselike object onto its chained\n * actual promise.\n */\nexport const chainAndCopyPromiseLike = <V, T extends PromiseLike<V>>(\n  original: T,\n  onSuccess: (value: V) => void,\n  onError: (e: unknown) => void,\n): T => {\n  const chained = original.then(\n    value => {\n      onSuccess(value);\n      return value;\n    },\n    err => {\n      onError(err);\n      throw err;\n    },\n  ) as T;\n\n  // if we're just dealing with \"normal\" Promise objects, return the chain\n  return isActualPromise(chained) && isActualPromise(original) ? chained : copyProps(original, chained);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst copyProps = <T extends Record<string, any>>(original: T, chained: T): T => {\n  if (!chained) return original;\n  let mutated = false;\n  //oxlint-disable-next-line guard-for-in\n  for (const key in original) {\n    if (key in chained) continue;\n    mutated = true;\n    const value = original[key];\n    if (typeof value === 'function') {\n      Object.defineProperty(chained, key, {\n        value: (...args: unknown[]) => value.apply(original, args),\n        enumerable: true,\n        configurable: true,\n        writable: true,\n      });\n    } else {\n      (chained as Record<string, unknown>)[key] = value;\n    }\n  }\n\n  if (mutated) Object.assign(chained, { [kChainedCopy]: true });\n  return chained;\n};\n","import type { Client } from '../client';\nimport { getDefaultCurrentScope, getDefaultIsolationScope } from '../defaultScopes';\nimport { Scope } from '../scope';\nimport { SUPPRESS_TRACING_KEY } from '../tracing/constants';\nimport { chainAndCopyPromiseLike } from '../utils/chain-and-copy-promiselike';\nimport { isThenable } from '../utils/is';\nimport { getMainCarrier, getSentryCarrier } from './../carrier';\nimport type { AsyncContextStrategy } from './types';\n\ninterface Layer {\n  client?: Client;\n  scope: Scope;\n}\n\n/**\n * This is an object that holds a stack of scopes.\n */\nexport class AsyncContextStack {\n  private readonly _stack: [Layer, ...Layer[]];\n  private _isolationScope: Scope;\n\n  public constructor(scope?: Scope, isolationScope?: Scope) {\n    let assignedScope;\n    if (!scope) {\n      assignedScope = new Scope();\n    } else {\n      assignedScope = scope;\n    }\n\n    let assignedIsolationScope;\n    if (!isolationScope) {\n      assignedIsolationScope = new Scope();\n    } else {\n      assignedIsolationScope = isolationScope;\n    }\n\n    // scope stack for domains or the process\n    this._stack = [{ scope: assignedScope }];\n    this._isolationScope = assignedIsolationScope;\n  }\n\n  /**\n   * Fork a scope for the stack.\n   */\n  public withScope<T>(callback: (scope: Scope) => T): T {\n    const scope = this._pushScope();\n\n    let maybePromiseResult: T;\n    try {\n      maybePromiseResult = callback(scope);\n    } catch (e) {\n      this._popScope();\n      throw e;\n    }\n\n    if (isThenable(maybePromiseResult)) {\n      return chainAndCopyPromiseLike(\n        maybePromiseResult as PromiseLike<Awaited<typeof maybePromiseResult>> & Record<string, unknown>,\n        () => this._popScope(),\n        () => this._popScope(),\n      ) as T;\n    }\n\n    this._popScope();\n    return maybePromiseResult;\n  }\n\n  /**\n   * Get the client of the stack.\n   */\n  public getClient<C extends Client>(): C | undefined {\n    return this.getStackTop().client as C;\n  }\n\n  /**\n   * Returns the scope of the top stack.\n   */\n  public getScope(): Scope {\n    return this.getStackTop().scope;\n  }\n\n  /**\n   * Get the isolation scope for the stack.\n   */\n  public getIsolationScope(): Scope {\n    return this._isolationScope;\n  }\n\n  /**\n   * Returns the topmost scope layer in the order domain > local > process.\n   */\n  public getStackTop(): Layer {\n    return this._stack[this._stack.length - 1] as Layer;\n  }\n\n  /**\n   * Push a scope to the stack.\n   */\n  private _pushScope(): Scope {\n    // We want to clone the content of prev scope\n    const scope = this.getScope().clone();\n    this._stack.push({\n      client: this.getClient(),\n      scope,\n    });\n    return scope;\n  }\n\n  /**\n   * Pop a scope from the stack.\n   */\n  private _popScope(): boolean {\n    if (this._stack.length <= 1) return false;\n    return !!this._stack.pop();\n  }\n}\n\n/**\n * Get the global async context stack.\n * This will be removed during the v8 cycle and is only here to make migration easier.\n */\nfunction getAsyncContextStack(): AsyncContextStack {\n  const registry = getMainCarrier();\n  const sentry = getSentryCarrier(registry);\n\n  return (sentry.stack = sentry.stack || new AsyncContextStack(getDefaultCurrentScope(), getDefaultIsolationScope()));\n}\n\nfunction withScope<T>(callback: (scope: Scope) => T): T {\n  return getAsyncContextStack().withScope(callback);\n}\n\nfunction withSetScope<T>(scope: Scope, callback: (scope: Scope) => T): T {\n  const stack = getAsyncContextStack();\n  return stack.withScope(() => {\n    stack.getStackTop().scope = scope;\n    return callback(scope);\n  });\n}\n\nfunction withIsolationScope<T>(callback: (isolationScope: Scope) => T): T {\n  return getAsyncContextStack().withScope(() => {\n    return callback(getAsyncContextStack().getIsolationScope());\n  });\n}\n\n/**\n * Get the stack-based async context strategy.\n */\nexport function getStackAsyncContextStrategy(): AsyncContextStrategy {\n  return {\n    suppressTracing: suppressTracingInStack,\n    withIsolationScope,\n    withScope,\n    withSetScope,\n    withSetIsolationScope: <T>(_isolationScope: Scope, callback: (isolationScope: Scope) => T) => {\n      return withIsolationScope(callback);\n    },\n    getCurrentScope: () => getAsyncContextStack().getScope(),\n    getIsolationScope: () => getAsyncContextStack().getIsolationScope(),\n  };\n}\n\n/**\n * In stack-based ACS, we do not wait for the callback to finish before we reset the metadata\n * the reason for this is that otherwise, in the stack this can lead to very weird behavior\n * as there is only a single top scope, if the callback takes longer to finish,\n * other, unrelated spans may also be suppressed, which we do not want\n * so instead, we only suppress tracing synchronoysly in the stack.\n */\nfunction suppressTracingInStack<T>(callback: () => T): T {\n  return withScope(scope => {\n    scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: true });\n    const res = callback();\n    scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: undefined });\n    return res;\n  });\n}\n","import type { Carrier } from './../carrier';\nimport { getMainCarrier, getSentryCarrier } from './../carrier';\nimport { getStackAsyncContextStrategy } from './stackStrategy';\nimport type { AsyncContextStrategy } from './types';\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Sets the global async context strategy\n */\nexport function setAsyncContextStrategy(strategy: AsyncContextStrategy | undefined): void {\n  // Get main carrier (global for every environment)\n  const registry = getMainCarrier();\n  const sentry = getSentryCarrier(registry);\n  sentry.acs = strategy;\n}\n\n/**\n * Get the current async context strategy.\n * If none has been setup, the default will be used.\n */\nexport function getAsyncContextStrategy(carrier: Carrier): AsyncContextStrategy {\n  const sentry = getSentryCarrier(carrier);\n\n  if (sentry.acs) {\n    return sentry.acs;\n  }\n\n  // Otherwise, use the default one (stack)\n  return getStackAsyncContextStrategy();\n}\n","import type { DurationUnit, FractionUnit, InformationUnit } from './types/measurement';\nimport type { Primitive } from './types/misc';\nimport { isPrimitive } from './utils/is';\n\nexport type RawAttributes<T> = T & ValidatedAttributes<T>;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type RawAttribute<T> = T extends { value: any } | { unit: any } ? AttributeObject : T;\n\nexport type Attributes = Record<string, TypedAttributeValue>;\n\nexport type AttributeValueType = string | number | boolean | Array<string> | Array<number> | Array<boolean>;\n\ntype AttributeTypeMap = {\n  string: string;\n  integer: number;\n  double: number;\n  boolean: boolean;\n  array: Array<string> | Array<number> | Array<boolean>;\n};\n\n/* Generates a type from the AttributeTypeMap like:\n  | { value: string; type: 'string' }\n  | { value: number; type: 'integer' }\n  | { value: number; type: 'double' }\n */\ntype AttributeUnion = {\n  [K in keyof AttributeTypeMap]: {\n    value: AttributeTypeMap[K];\n    type: K;\n  };\n}[keyof AttributeTypeMap];\n\nexport type TypedAttributeValue = AttributeUnion & { unit?: AttributeUnit };\n\nexport type AttributeObject = {\n  value: unknown;\n  unit?: AttributeUnit;\n};\n\n// Unfortunately, we loose type safety if we did something like Exclude<MeasurementUnit, string>\n// so therefore we unionize between the three supported unit categories.\ntype AttributeUnit = DurationUnit | InformationUnit | FractionUnit;\n\n/* If an attribute has either a 'value' or 'unit' property, we use the ValidAttributeObject type. */\nexport type ValidatedAttributes<T> = {\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  [K in keyof T]: T[K] extends { value: any } | { unit: any } ? AttributeObject : unknown;\n};\n\n/**\n * Type-guard: The attribute object has the shape the official attribute object (value, type, unit).\n * https://develop.sentry.dev/sdk/telemetry/scopes/#setting-attributes\n */\nexport function isAttributeObject(maybeObj: unknown): maybeObj is AttributeObject {\n  return (\n    typeof maybeObj === 'object' &&\n    maybeObj != null &&\n    !Array.isArray(maybeObj) &&\n    Object.keys(maybeObj).includes('value')\n  );\n}\n\n/**\n * Converts an attribute value to a typed attribute value.\n *\n * For now, we support primitive values and arrays, either raw or inside attribute objects.\n * If @param useFallback is true, we stringify other non-primitive values to a string attribute\n * value. Otherwise we return `undefined` for unsupported values.\n *\n * @param value - The value of the passed attribute.\n * @param useFallback - If true, unsupported values will be stringified to a string attribute value.\n *                      Defaults to false. In this case, `undefined` is returned for unsupported values.\n * @returns The typed attribute.\n */\nexport function attributeValueToTypedAttributeValue(\n  rawValue: unknown,\n  useFallback?: boolean | 'skip-undefined',\n): TypedAttributeValue | void {\n  const { value, unit } = isAttributeObject(rawValue) ? rawValue : { value: rawValue, unit: undefined };\n  const attributeValue = getTypedAttributeValue(value);\n  const checkedUnit = unit && typeof unit === 'string' ? { unit } : {};\n  if (attributeValue) {\n    return { ...attributeValue, ...checkedUnit };\n  }\n\n  if (!useFallback || (useFallback === 'skip-undefined' && value === undefined)) {\n    return;\n  }\n\n  // Fallback: stringify the value\n  // TODO(v11): be smarter here and use String constructor if stringify fails\n  // (this is a breaking change for already existing attribute values)\n  let stringValue = '';\n  try {\n    stringValue = JSON.stringify(value) ?? '';\n  } catch {\n    // Do nothing\n  }\n  return {\n    value: stringValue,\n    type: 'string',\n    ...checkedUnit,\n  };\n}\n\n/**\n * Serializes raw attributes to typed attributes as expected in our envelopes.\n *\n * @param attributes The raw attributes to serialize.\n * @param fallback   If true, unsupported values will be stringified to a string attribute value.\n *                   Defaults to false. In this case, `undefined` is returned for unsupported values.\n *\n * @returns The serialized attributes.\n */\nexport function serializeAttributes<T>(\n  attributes: RawAttributes<T> | undefined,\n  fallback: boolean | 'skip-undefined' = false,\n): Attributes {\n  const serializedAttributes: Attributes = {};\n  for (const [key, value] of Object.entries(attributes ?? {})) {\n    const typedValue = attributeValueToTypedAttributeValue(value, fallback);\n    if (typedValue) {\n      serializedAttributes[key] = typedValue;\n    }\n  }\n  return serializedAttributes;\n}\n\n/**\n * Estimates the serialized byte size of {@link Attributes},\n * with a couple of heuristics for performance.\n */\nexport function estimateTypedAttributesSizeInBytes(attributes: Attributes | undefined): number {\n  if (!attributes) {\n    return 0;\n  }\n  let weight = 0;\n  for (const [key, attr] of Object.entries(attributes)) {\n    weight += key.length * 2;\n    weight += attr.type.length * 2;\n    weight += (attr.unit?.length ?? 0) * 2;\n    const val = attr.value;\n\n    if (Array.isArray(val)) {\n      // Assumption: Individual array items have the same type and roughly the same size\n      // probably not always true but allows us to cut down on runtime\n      weight += estimatePrimitiveSizeInBytes(val[0]) * val.length;\n    } else if (isPrimitive(val)) {\n      weight += estimatePrimitiveSizeInBytes(val);\n    } else {\n      // default fallback for anything else (objects)\n      weight += 100;\n    }\n  }\n  return weight;\n}\n\nfunction estimatePrimitiveSizeInBytes(value: Primitive): number {\n  if (typeof value === 'string') {\n    return value.length * 2;\n  } else if (typeof value === 'boolean') {\n    return 4;\n  } else if (typeof value === 'number') {\n    return 8;\n  }\n  return 0;\n}\n\n/**\n * NOTE: We return typed attributes for primitives and arrays:\n *  - Relay currently only supports arrays consisting of primitive values. Attributes with non-conforming arrays are dropped by Relay, so runtime type validation in the SDK is unnecessary.\n *  - Objects are not supported yet and product support is still TBD.\n */\nfunction getTypedAttributeValue(value: unknown): TypedAttributeValue | void {\n  if (Array.isArray(value)) {\n    return { value, type: 'array' };\n  }\n\n  const primitiveType =\n    typeof value === 'string'\n      ? 'string'\n      : typeof value === 'boolean'\n        ? 'boolean'\n        : typeof value === 'number' && !Number.isNaN(value)\n          ? Number.isInteger(value)\n            ? 'integer'\n            : 'double'\n          : null;\n  if (primitiveType) {\n    // @ts-expect-error - TS complains because {@link TypedAttributeValue} is strictly typed to\n    // avoid setting the wrong `type` on the attribute value.\n    // In this case, getPrimitiveType already does the check but TS doesn't know that.\n    // The \"clean\" alternative is to return an object per `typeof value` case\n    // but that would require more bundle size\n    // Therefore, we ignore it.\n    return { value, type: primitiveType };\n  }\n}\n","import { getAsyncContextStrategy } from './asyncContext';\nimport { getGlobalSingleton, getMainCarrier, getSentryCarrier } from './carrier';\nimport type { Client } from './client';\nimport { Scope } from './scope';\nimport type { TraceContext } from './types/context';\nimport { generateSpanId } from './utils/propagationContext';\n\n/**\n * Register an external propagation context provider function.\n * When registered, trace context will be read from the external source (e.g. OpenTelemetry)\n * instead of from the Sentry scope's propagation context.\n */\nexport function registerExternalPropagationContext(fn: () => { traceId: string; spanId: string } | undefined): void {\n  // Kept on the carrier rather than in module state: bundlers routinely emit more than one copy of\n  // `@sentry/core` (e.g. one per Next.js server chunk), and the copy the integration registers on is\n  // usually not the copy that reads it back when an event is assembled.\n  getSentryCarrier(getMainCarrier()).externalPropagationContextProvider = fn;\n}\n\n/**\n * Get the external propagation context, if a provider has been registered.\n */\nexport function getExternalPropagationContext(): { traceId: string; spanId: string } | undefined {\n  return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider?.();\n}\n\n/**\n * Check if an external propagation context provider has been registered.\n */\nexport function hasExternalPropagationContext(): boolean {\n  return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider !== undefined;\n}\n\n/**\n * Get the currently active scope.\n */\nexport function getCurrentScope(): Scope {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  return acs.getCurrentScope();\n}\n\n/**\n * Get the currently active isolation scope.\n * The isolation scope is active for the current execution context.\n */\nexport function getIsolationScope(): Scope {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  return acs.getIsolationScope();\n}\n\n/**\n * Get the global scope.\n * This scope is applied to _all_ events.\n */\nexport function getGlobalScope(): Scope {\n  return getGlobalSingleton('globalScope', () => new Scope());\n}\n\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n */\nexport function withScope<T>(callback: (scope: Scope) => T): T;\n/**\n * Set the given scope as the active scope in the callback.\n */\nexport function withScope<T>(scope: Scope | undefined, callback: (scope: Scope) => T): T;\n/**\n * Either creates a new active scope, or sets the given scope as active scope in the given callback.\n */\nexport function withScope<T>(\n  ...rest: [callback: (scope: Scope) => T] | [scope: Scope | undefined, callback: (scope: Scope) => T]\n): T {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n\n  // If a scope is defined, we want to make this the active scope instead of the default one\n  if (rest.length === 2) {\n    const [scope, callback] = rest;\n\n    if (!scope) {\n      return acs.withScope(callback);\n    }\n\n    return acs.withSetScope(scope, callback);\n  }\n\n  return acs.withScope(rest[0]);\n}\n\n/**\n * Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no\n * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the\n * case, for example, in the browser).\n *\n * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.\n *\n * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in \"normal\"\n * applications directly because it comes with pitfalls. Use at your own risk!\n */\nexport function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T;\n/**\n * Set the provided isolation scope as active in the given callback. If no\n * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the\n * case, for example, in the browser).\n *\n * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.\n *\n * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in \"normal\"\n * applications directly because it comes with pitfalls. Use at your own risk!\n *\n * If you pass in `undefined` as a scope, it will fork a new isolation scope, the same as if no scope is passed.\n */\nexport function withIsolationScope<T>(isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T): T;\n/**\n * Either creates a new active isolation scope, or sets the given isolation scope as active scope in the given callback.\n */\nexport function withIsolationScope<T>(\n  ...rest:\n    | [callback: (isolationScope: Scope) => T]\n    | [isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T]\n): T {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n\n  // If a scope is defined, we want to make this the active scope instead of the default one\n  if (rest.length === 2) {\n    const [isolationScope, callback] = rest;\n\n    if (!isolationScope) {\n      return acs.withIsolationScope(callback);\n    }\n\n    return acs.withSetIsolationScope(isolationScope, callback);\n  }\n\n  return acs.withIsolationScope(rest[0]);\n}\n\n/**\n * Get the currently active client.\n */\nexport function getClient<C extends Client>(): C | undefined {\n  return getCurrentScope().getClient<C>();\n}\n\n/**\n * Get a trace context for the given scope.\n */\nexport function getTraceContextFromScope(scope: Scope): TraceContext {\n  const externalContext = getExternalPropagationContext();\n  if (externalContext) {\n    return { trace_id: externalContext.traceId, span_id: externalContext.spanId };\n  }\n\n  const propagationContext = scope.getPropagationContext();\n\n  const { traceId, parentSpanId, propagationSpanId } = propagationContext;\n\n  const traceContext: TraceContext = {\n    trace_id: traceId,\n    span_id: propagationSpanId || generateSpanId(),\n  };\n\n  if (parentSpanId) {\n    traceContext.parent_span_id = parentSpanId;\n  }\n\n  return traceContext;\n}\n","/**\n * Attributes that holds the sample rate that was locally applied to a span.\n * If this attribute is not defined, it means that the span inherited a sampling decision.\n *\n * NOTE: Is only defined on root spans.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = 'sentry.sample_rate';\n\n/**\n * Attribute holding the sample rate of the previous trace.\n * This is used to sample consistently across subsequent traces in the browser SDK.\n *\n * Note: Only defined on root spans, if opted into consistent sampling\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE = 'sentry.previous_trace_sample_rate';\n\n/**\n * Use this attribute to represent the operation of a span.\n * @deprecated Use `SENTRY_OP` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_OP = 'sentry.op';\n\n/**\n * Use this attribute to represent the origin of a span.\n * @deprecated Use `SENTRY_ORIGIN` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = 'sentry.origin';\n\n/**\n * Holds the human-readable span status message (e.g. set via\n * `span.setStatus({ code, message })`).\n *\n * Streamed (v2) span statuses are reduced to `ok`/`error`, so we preserve the\n * message as an attribute instead of dropping it. This mirrors the attribute\n * Sentry's OTLP ingestion uses for the same purpose.\n * @deprecated Use `SENTRY_STATUS_MESSAGE` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE = 'sentry.status.message';\n\n/**\n * The reason why an idle span finished.\n * @deprecated Use `SENTRY_IDLE_SPAN_FINISH_REASON` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON = 'sentry.idle_span_finish_reason';\n\n/** The unit of a measurement, which may be stored as a TimedEvent. */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT = 'sentry.measurement_unit';\n\n/** The value of a measurement, which may be stored as a TimedEvent. */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE = 'sentry.measurement_value';\n\n/**\n * The release version of the application\n * @deprecated Use `SENTRY_RELEASE` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_RELEASE = 'sentry.release';\n/**\n * The environment name (e.g., \"production\", \"staging\", \"development\")\n * @deprecated Use `SENTRY_ENVIRONMENT` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT = 'sentry.environment';\n/**\n * The segment name (e.g., \"GET /users\")\n * @deprecated Use `SENTRY_SEGMENT_NAME` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME = 'sentry.segment.name';\n/**\n * The id of the segment that this span belongs to.\n * @deprecated Use `SENTRY_SEGMENT_ID` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID = 'sentry.segment.id';\n/**\n * The name of the Sentry SDK (e.g., \"sentry.php\", \"sentry.javascript\")\n * @deprecated Use `SENTRY_SDK_NAME` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME = 'sentry.sdk.name';\n/**\n * The version of the Sentry SDK\n * @deprecated Use `SENTRY_SDK_VERSION` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION = 'sentry.sdk.version';\n/**\n * The list of integrations enabled in the Sentry SDK (e.g., [\"EventFilters\", \"BrowserTracing\"])\n * @deprecated Use `SENTRY_SDK_INTEGRATIONS` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS = 'sentry.sdk.integrations';\n\n/**\n * The user ID\n * @deprecated Use `USER_ID` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_ID = 'user.id';\n/**\n * The user email\n * @deprecated Use `USER_EMAIL` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_EMAIL = 'user.email';\n/**\n * The user IP address\n * @deprecated Use `USER_IP_ADDRESS` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS = 'user.ip_address';\n/**\n * The user username\n * @deprecated Use `USER_NAME` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_USERNAME = 'user.name';\n\n/**\n * A custom span name set by users guaranteed to be taken over any automatically\n * inferred name. This attribute is removed before the span is sent.\n *\n * @internal only meant for internal SDK usage\n * @hidden\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME = 'sentry.custom_span_name';\n\n/**\n * The id of the profile that this span occurred in.\n * @deprecated Use `SENTRY_PROFILE_ID` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_PROFILE_ID = 'sentry.profile_id';\n\n/**\n * @deprecated Use `SENTRY_EXCLUSIVE_TIME` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME = 'sentry.exclusive_time';\n\n/**\n * @deprecated Use `CACHE_HIT` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_CACHE_HIT = 'cache.hit';\n\n/**\n * @deprecated Use `CACHE_KEY` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_CACHE_KEY = 'cache.key';\n\n/**\n * @deprecated Use `CACHE_ITEM_SIZE` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE = 'cache.item_size';\n\n/**\n * @deprecated Use `HTTP_REQUEST_METHOD` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD = 'http.request.method';\n/**\n * @deprecated Use `URL_FULL` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_URL_FULL = 'url.full';\n\n/**\n * A span link attribute to mark the link as a special span link.\n *\n * Known values:\n * - `previous_trace`: The span links to the frontend root span of the previous trace.\n * - `next_trace`: The span links to the frontend root span of the next trace. (Not set by the SDK)\n *\n * Other values may be set as appropriate.\n * @deprecated Use `SENTRY_LINK_TYPE` from `@sentry/conventions/attributes` instead.\n * @see https://develop.sentry.dev/sdk/telemetry/traces/span-links/#link-types\n */\nexport const SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE = 'sentry.link.type';\n\n/**\n * =============================================================================\n * GEN AI ATTRIBUTES\n * Based on OpenTelemetry Semantic Conventions for Generative AI\n * @see https://opentelemetry.io/docs/specs/semconv/gen-ai/\n * =============================================================================\n */\n\n/**\n * The conversation ID for linking messages across API calls.\n * For OpenAI Assistants API: thread_id\n * For LangGraph: configurable.thread_id\n * @deprecated Use `GEN_AI_CONVERSATION_ID` from `@sentry/conventions/attributes` instead.\n */\nexport const GEN_AI_CONVERSATION_ID_ATTRIBUTE = 'gen_ai.conversation.id';\n","export const SPAN_STATUS_TYPES = [\n  /** The operation completed successfully. */\n  'ok',\n  /** Deadline expired before operation could complete. */\n  'deadline_exceeded',\n  /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n  'unauthenticated',\n  /** 403 Forbidden */\n  'permission_denied',\n  /** 404 Not Found. Some requested entity (file or directory) was not found. */\n  'not_found',\n  /** 429 Too Many Requests */\n  'resource_exhausted',\n  /** Client specified an invalid argument. 4xx. */\n  'invalid_argument',\n  /** 501 Not Implemented */\n  'unimplemented',\n  /** 503 Service Unavailable */\n  'unavailable',\n  /** Other/generic 5xx. */\n  'internal_error',\n  /** Unknown. Any non-standard HTTP status code. */\n  'unknown_error',\n  /** The operation was cancelled (typically by the user). */\n  'cancelled',\n  /** Already exists (409) */\n  'already_exists',\n  /** Operation was rejected because the system is not in a state required for the operation's */\n  'failed_precondition',\n  /** The operation was aborted, typically due to a concurrency issue. */\n  'aborted',\n  /** Operation was attempted past the valid range. */\n  'out_of_range',\n  /** Unrecoverable data loss or corruption */\n  'data_loss',\n] as const;\n\nexport type SpanStatusType = (typeof SPAN_STATUS_TYPES)[number];\n\n// These are aligned with OpenTelemetry span status codes\nconst SPAN_STATUS_UNSET = 0;\nconst SPAN_STATUS_OK = 1;\nconst SPAN_STATUS_ERROR = 2;\n/** The status code of a span. */\nexport type SpanStatusCode = typeof SPAN_STATUS_UNSET | typeof SPAN_STATUS_OK | typeof SPAN_STATUS_ERROR;\n\n/**\n * The status of a span.\n * This can optionally contain a human-readable message.\n */\nexport interface SpanStatus {\n  /**\n   * The status code of this message.\n   * 0 = UNSET\n   * 1 = OK\n   * 2 = ERROR\n   */\n  code: SpanStatusCode;\n  /**\n   * A developer-facing error message.\n   */\n  message?: SpanStatusType | string;\n}\n","import { HTTP_RESPONSE_STATUS_CODE } from '@sentry/conventions/attributes';\nimport type { Span } from '../types/span';\nimport type { SpanStatusType } from '../types/spanStatus';\nimport { SPAN_STATUS_TYPES, type SpanStatus } from '../types/spanStatus';\n\nexport const SPAN_STATUS_UNSET = 0;\nexport const SPAN_STATUS_OK = 1;\nexport const SPAN_STATUS_ERROR = 2;\n\nexport function isStatusErrorMessageValid(message: string): boolean {\n  return message !== 'ok' && SPAN_STATUS_TYPES.includes(message as SpanStatusType);\n}\n\n/**\n * Converts a HTTP status code into a sentry status with a message.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or internal_error.\n */\n// https://develop.sentry.dev/sdk/event-payloads/span/\nexport function getSpanStatusFromHttpCode(httpStatus: number): SpanStatus {\n  if (httpStatus < 400 && httpStatus >= 100) {\n    return { code: SPAN_STATUS_OK };\n  }\n\n  if (httpStatus >= 400 && httpStatus < 500) {\n    switch (httpStatus) {\n      case 401:\n        return { code: SPAN_STATUS_ERROR, message: 'unauthenticated' };\n      case 403:\n        return { code: SPAN_STATUS_ERROR, message: 'permission_denied' };\n      case 404:\n        return { code: SPAN_STATUS_ERROR, message: 'not_found' };\n      case 409:\n        return { code: SPAN_STATUS_ERROR, message: 'already_exists' };\n      case 413:\n        return { code: SPAN_STATUS_ERROR, message: 'failed_precondition' };\n      case 429:\n        return { code: SPAN_STATUS_ERROR, message: 'resource_exhausted' };\n      case 499:\n        return { code: SPAN_STATUS_ERROR, message: 'cancelled' };\n      default:\n        return { code: SPAN_STATUS_ERROR, message: 'invalid_argument' };\n    }\n  }\n\n  if (httpStatus >= 500 && httpStatus < 600) {\n    switch (httpStatus) {\n      case 501:\n        return { code: SPAN_STATUS_ERROR, message: 'unimplemented' };\n      case 503:\n        return { code: SPAN_STATUS_ERROR, message: 'unavailable' };\n      case 504:\n        return { code: SPAN_STATUS_ERROR, message: 'deadline_exceeded' };\n      default:\n        return { code: SPAN_STATUS_ERROR, message: 'internal_error' };\n    }\n  }\n\n  return { code: SPAN_STATUS_ERROR, message: 'internal_error' };\n}\n\n/**\n * Sets the Http status attributes on the current span based on the http code.\n * Additionally, the span's status is updated, depending on the http code.\n */\nexport function setHttpStatus(span: Span, httpStatus: number): void {\n  span.setAttribute(HTTP_RESPONSE_STATUS_CODE, httpStatus);\n\n  const spanStatus = getSpanStatusFromHttpCode(httpStatus);\n  if (spanStatus.message !== 'unknown_error') {\n    span.setStatus(spanStatus);\n  }\n}\n","import { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Interface representing a weak reference to an object.\n * This matches the standard WeakRef interface but is defined here\n * because WeakRef is not available in ES2020 type definitions.\n */\ninterface WeakRefLike<T extends object> {\n  deref(): T | undefined;\n}\n\n/**\n * A wrapper type that represents either a WeakRef-like object or a direct reference.\n * Used for optional weak referencing in environments where WeakRef may not be available.\n */\nexport type MaybeWeakRef<T extends object> = WeakRefLike<T> | T;\n\n/**\n * Creates a weak reference to an object if WeakRef is available,\n * otherwise returns the object directly.\n *\n * This is useful for breaking circular references while maintaining\n * compatibility with environments that don't support WeakRef (e.g., older browsers).\n *\n * @param value - The object to create a weak reference to\n * @returns A WeakRef wrapper if available, or the original object as fallback\n */\nexport function makeWeakRef<T extends object>(value: T): MaybeWeakRef<T> {\n  try {\n    // @ts-expect-error - WeakRef may not be in the type definitions for older TS targets\n    const WeakRefImpl = GLOBAL_OBJ.WeakRef;\n    if (typeof WeakRefImpl === 'function') {\n      return new WeakRefImpl(value);\n    }\n  } catch {\n    // WeakRef not available or construction failed\n  }\n  return value;\n}\n\n/**\n * Resolves a potentially weak reference, returning the underlying object\n * or undefined if the reference has been garbage collected.\n *\n * @param ref - A MaybeWeakRef or undefined\n * @returns The referenced object, or undefined if GC'd or ref was undefined\n */\nexport function derefWeakRef<T extends object>(ref: MaybeWeakRef<T> | undefined): T | undefined {\n  if (!ref) {\n    return undefined;\n  }\n\n  // Check if this is a WeakRef (has deref method)\n  if (typeof ref === 'object' && 'deref' in ref && typeof ref.deref === 'function') {\n    try {\n      return ref.deref();\n    } catch {\n      // deref() failed - treat as GC'd\n      return undefined;\n    }\n  }\n\n  // Direct reference fallback\n  return ref as T;\n}\n","import type { Scope } from '../scope';\nimport type { Span } from '../types/span';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { derefWeakRef, makeWeakRef, type MaybeWeakRef } from '../utils/weakRef';\n\nconst SCOPE_ON_START_SPAN_FIELD = '_sentryScope';\nconst ISOLATION_SCOPE_ON_START_SPAN_FIELD = '_sentryIsolationScope';\n\n// Brand marking a span created by the `SentryTracerProvider` (i.e. via the OTel tracer) rather than\n// directly through the core span API. Such a span is handed to OTel instrumentations as an OTel span,\n// so it must become immutable after `end()` like a real OTel SDK span (see `SentrySpan.end()`). Spans\n// created directly through core (e.g. the browser SDK) are not branded and stay mutable.\nconst TRACER_PROVIDER_SPAN_FIELD = Symbol.for('sentry.tracerProviderSpan');\n\ntype SpanWithScopes = Span & {\n  [SCOPE_ON_START_SPAN_FIELD]?: Scope;\n  [ISOLATION_SCOPE_ON_START_SPAN_FIELD]?: MaybeWeakRef<Scope>;\n};\n\ntype SpanWithTracerProviderBrand = Span & {\n  [TRACER_PROVIDER_SPAN_FIELD]?: boolean;\n};\n\n/** Store the scope & isolation scope for a span, which can the be used when it is finished. */\nexport function setCapturedScopesOnSpan(span: Span | undefined, scope: Scope, isolationScope: Scope): void {\n  if (span) {\n    addNonEnumerableProperty(span, ISOLATION_SCOPE_ON_START_SPAN_FIELD, makeWeakRef(isolationScope));\n    // We don't wrap the scope with a WeakRef here because webkit aggressively garbage collects\n    // and scopes are not held in memory for long periods of time.\n    addNonEnumerableProperty(span, SCOPE_ON_START_SPAN_FIELD, scope);\n  }\n}\n\n/**\n * Grabs the scope and isolation scope off a span that were active when the span was started.\n * If WeakRef was used and scopes have been garbage collected, returns undefined for those scopes.\n */\nexport function getCapturedScopesOnSpan(span: Span): { scope?: Scope; isolationScope?: Scope } {\n  const spanWithScopes = span as SpanWithScopes;\n\n  return {\n    scope: spanWithScopes[SCOPE_ON_START_SPAN_FIELD],\n    isolationScope: derefWeakRef(spanWithScopes[ISOLATION_SCOPE_ON_START_SPAN_FIELD]),\n  };\n}\n\n/**\n * Mark a span as created by the `SentryTracerProvider` (via the OTel tracer). Set by `SentryTracer`\n * on every span it creates; read by `SentrySpan.end()` to seal the span against further writes once\n * it has ended, mirroring OTel SDK spans (which are immutable after `end()`).\n */\nexport function markSpanAsTracerProviderSpan(span: Span): void {\n  addNonEnumerableProperty(span, TRACER_PROVIDER_SPAN_FIELD, true);\n}\n\n/** Whether a span was created by the `SentryTracerProvider` (see {@link markSpanAsTracerProviderSpan}). */\nexport function spanIsTracerProviderSpan(span: Span): boolean {\n  return (span as SpanWithTracerProviderBrand)[TRACER_PROVIDER_SPAN_FIELD] === true;\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport { debug } from './debug-logger';\nimport { isString } from './is';\n\nexport const SENTRY_BAGGAGE_KEY_PREFIX = 'sentry-';\n\nexport const SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;\n\n/**\n * Max length of a serialized baggage string\n *\n * https://www.w3.org/TR/baggage/#limits\n */\nexport const MAX_BAGGAGE_STRING_LENGTH = 8192;\n\n/**\n * Takes a baggage header and turns it into Dynamic Sampling Context, by extracting all the \"sentry-\" prefixed values\n * from it.\n *\n * @param baggageHeader A very bread definition of a baggage header as it might appear in various frameworks.\n * @returns The Dynamic Sampling Context that was found on `baggageHeader`, if there was any, `undefined` otherwise.\n */\nexport function baggageHeaderToDynamicSamplingContext(\n  // Very liberal definition of what any incoming header might look like\n  baggageHeader: string | string[] | number | null | undefined | boolean,\n): Partial<DynamicSamplingContext> | undefined {\n  const baggageObject = parseBaggageHeader(baggageHeader);\n\n  if (!baggageObject) {\n    return undefined;\n  }\n\n  // Read all \"sentry-\" prefixed values out of the baggage object and put it onto a dynamic sampling context object.\n  const dynamicSamplingContext = Object.entries(baggageObject).reduce<Record<string, string>>((acc, [key, value]) => {\n    if (key.startsWith(SENTRY_BAGGAGE_KEY_PREFIX)) {\n      const nonPrefixedKey = key.slice(SENTRY_BAGGAGE_KEY_PREFIX.length);\n      acc[nonPrefixedKey] = value;\n    }\n    return acc;\n  }, {});\n\n  // Only return a dynamic sampling context object if there are keys in it.\n  // A keyless object means there were no sentry values on the header, which means that there is no DSC.\n  if (Object.keys(dynamicSamplingContext).length > 0) {\n    return dynamicSamplingContext;\n  } else {\n    return undefined;\n  }\n}\n\n/**\n * Turns a Dynamic Sampling Object into a baggage header by prefixing all the keys on the object with \"sentry-\".\n *\n * @param dynamicSamplingContext The Dynamic Sampling Context to turn into a header. For convenience and compatibility\n * with the `getDynamicSamplingContext` method on the Transaction class ,this argument can also be `undefined`. If it is\n * `undefined` the function will return `undefined`.\n * @returns a baggage header, created from `dynamicSamplingContext`, or `undefined` either if `dynamicSamplingContext`\n * was `undefined`, or if `dynamicSamplingContext` didn't contain any values.\n */\nexport function dynamicSamplingContextToSentryBaggageHeader(\n  // this also takes undefined for convenience and bundle size in other places\n  dynamicSamplingContext?: Partial<DynamicSamplingContext>,\n): string | undefined {\n  if (!dynamicSamplingContext) {\n    return undefined;\n  }\n\n  // Prefix all DSC keys with \"sentry-\" and put them into a new object\n  const sentryPrefixedDSC = Object.entries(dynamicSamplingContext).reduce<Record<string, string>>(\n    (acc, [dscKey, dscValue]) => {\n      if (dscValue) {\n        acc[`${SENTRY_BAGGAGE_KEY_PREFIX}${dscKey}`] = dscValue;\n      }\n      return acc;\n    },\n    {},\n  );\n\n  return objectToBaggageHeader(sentryPrefixedDSC);\n}\n\n/**\n * Take a baggage header and parse it into an object.\n */\nexport function parseBaggageHeader(\n  baggageHeader: string | string[] | number | null | undefined | boolean,\n): Record<string, string> | undefined {\n  if (!baggageHeader || (!isString(baggageHeader) && !Array.isArray(baggageHeader))) {\n    return undefined;\n  }\n\n  if (Array.isArray(baggageHeader)) {\n    // Combine all baggage headers into one object containing the baggage values so we can later read the Sentry-DSC-values from it\n    return baggageHeader.reduce<Record<string, string>>((acc, curr) => {\n      const currBaggageObject = baggageHeaderToObject(curr);\n      Object.entries(currBaggageObject).forEach(([key, value]) => {\n        acc[key] = value;\n      });\n      return acc;\n    }, {});\n  }\n\n  return baggageHeaderToObject(baggageHeader);\n}\n\n/**\n * Will parse a baggage header, which is a simple key-value map, into a flat object.\n *\n * @param baggageHeader The baggage header to parse.\n * @returns a flat object containing all the key-value pairs from `baggageHeader`.\n */\nfunction baggageHeaderToObject(baggageHeader: string): Record<string, string> {\n  return baggageHeader\n    .split(',')\n    .map(baggageEntry => {\n      const eqIdx = baggageEntry.indexOf('=');\n      if (eqIdx === -1) {\n        // Likely an invalid entry\n        return [];\n      }\n      const key = baggageEntry.slice(0, eqIdx);\n      const value = baggageEntry.slice(eqIdx + 1);\n      return [key, value].map(keyOrValue => {\n        try {\n          return decodeURIComponent(keyOrValue.trim());\n        } catch {\n          // We ignore errors here, e.g. if the value cannot be URL decoded.\n          // This will then be skipped in the next step\n          return;\n        }\n      });\n    })\n    .reduce<Record<string, string>>((acc, [key, value]) => {\n      if (key && value) {\n        acc[key] = value;\n      }\n      return acc;\n    }, {});\n}\n\n/**\n * Turns a flat object (key-value pairs) into a baggage header, which is also just key-value pairs.\n *\n * @param object The object to turn into a baggage header.\n * @returns a baggage header string, or `undefined` if the object didn't have any values, since an empty baggage header\n * is not spec compliant.\n */\nexport function objectToBaggageHeader(object: Record<string, string>): string | undefined {\n  if (Object.keys(object).length === 0) {\n    // An empty baggage header is not spec compliant: We return undefined.\n    return undefined;\n  }\n\n  return Object.entries(object).reduce((baggageHeader, [objectKey, objectValue], currentIndex) => {\n    const baggageEntry = `${encodeURIComponent(objectKey)}=${encodeURIComponent(objectValue)}`;\n    const newBaggageHeader = currentIndex === 0 ? baggageEntry : `${baggageHeader},${baggageEntry}`;\n    if (newBaggageHeader.length > MAX_BAGGAGE_STRING_LENGTH) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `Not adding key: ${objectKey} with val: ${objectValue} to baggage header due to exceeding baggage size limits.`,\n        );\n      return baggageHeader;\n    } else {\n      return newBaggageHeader;\n    }\n  }, '');\n}\n\n/**\n * Merge two baggage headers into one.\n * - Sentry-specific entries (keys starting with \"sentry-\") from the new\n *   baggage take precedence\n * - Non-Sentry entries from existing baggage take precedence\n *\n * The order of the existing baggage will be preserved, and new entries will\n * be added to the end.\n *\n * This matches the behavior of OTEL's propagation.inject() which uses\n * `baggage.setEntry()`  to overwrite existing entries with the same key.\n */\nexport function mergeBaggageHeaders<Existing extends string | string[] | number | undefined>(\n  existing: Existing,\n  incoming: string,\n): string | undefined | Existing {\n  if (!existing) {\n    return incoming;\n  }\n\n  const existingEntries = parseBaggageHeader(existing);\n  const incomingEntries = parseBaggageHeader(incoming);\n\n  if (!incomingEntries) {\n    return existing;\n  }\n\n  // 1. All non-sentry entries from existing are kept\n  // 2. All sentry- entries from the new baggage are retained\n  // 3. If sentry- entries present in new, ignore from old, else keep from old.\n  // 4. Non-sentry entries from new are only kept if not in existing.\n\n  const merged: Record<string, string> = {};\n\n  // partition incoming entries into sentry and non-sentry prefixed\n  let hasNewSentryEntries = false;\n  const newSentryEntries: Record<string, string> = {};\n  const newNonSentryEntries: Record<string, string> = {};\n  for (const [key, value] of Object.entries(incomingEntries)) {\n    if (key.startsWith(SENTRY_BAGGAGE_KEY_PREFIX)) {\n      newSentryEntries[key] = value;\n      hasNewSentryEntries = true;\n    } else {\n      newNonSentryEntries[key] = value;\n    }\n  }\n\n  // If new baggage contains at least one sentry- value, we remove all old\n  // sentry- values otherwise, we keep old sentry- values. If we don't remove\n  // old sentry- values, we end up with an inconsistent dynamic sampling\n  // context propagation.\n  if (existingEntries) {\n    for (const [key, value] of Object.entries(existingEntries)) {\n      if (!hasNewSentryEntries || !key.startsWith(SENTRY_BAGGAGE_KEY_PREFIX)) {\n        merged[key] = value;\n      }\n    }\n  }\n\n  // Assign new sentry fields.\n  if (hasNewSentryEntries) {\n    Object.assign(merged, newSentryEntries);\n  }\n\n  // assign new non-sentry fields not found on existing object.\n  for (const [key, value] of Object.entries(newNonSentryEntries)) {\n    merged[key] ??= value;\n  }\n\n  return objectToBaggageHeader(merged);\n}\n","import type { Client } from '../client';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { DsnComponents, DsnLike, DsnProtocol } from '../types/dsn';\nimport { consoleSandbox, debug } from './debug-logger';\n\n/** Regular expression used to extract org ID from a DSN host. */\nconst ORG_ID_REGEX = /^o(\\d+)\\./;\n\n/** Regular expression used to parse a Dsn. */\nconst DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+)?)?@)((?:\\[[:.%\\w]+\\]|[\\w.-]+))(?::(\\d+))?\\/(.+)/;\n\nfunction isValidProtocol(protocol?: string): protocol is DsnProtocol {\n  return protocol === 'http' || protocol === 'https';\n}\n\n/**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\nexport function dsnToString(dsn: DsnComponents, withPassword: boolean = false): string {\n  const { host, path, pass, port, projectId, protocol, publicKey } = dsn;\n  return (\n    `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ''}` +\n    `@${host}${port ? `:${port}` : ''}/${path ? `${path}/` : path}${projectId}`\n  );\n}\n\n/**\n * Parses a Dsn from a given string.\n *\n * @param str A Dsn as string\n * @returns Dsn as DsnComponents or undefined if @param str is not a valid DSN string\n */\nexport function dsnFromString(str: string): DsnComponents | undefined {\n  const match = DSN_REGEX.exec(str);\n\n  if (!match) {\n    // This should be logged to the console\n    consoleSandbox(() => {\n      // eslint-disable-next-line no-console\n      console.error(`Invalid Sentry Dsn: ${str}`);\n    });\n    return undefined;\n  }\n\n  const [protocol, publicKey, pass = '', host = '', port = '', lastPath = ''] = match.slice(1);\n  let path = '';\n  let projectId = lastPath;\n\n  const split = projectId.split('/');\n  if (split.length > 1) {\n    path = split.slice(0, -1).join('/');\n    projectId = split.pop() as string;\n  }\n\n  if (projectId) {\n    const projectMatch = projectId.match(/^\\d+/);\n    if (projectMatch) {\n      projectId = projectMatch[0];\n    }\n  }\n\n  return dsnFromComponents({ host, pass, path, projectId, port, protocol: protocol as DsnProtocol, publicKey });\n}\n\nfunction dsnFromComponents(components: DsnComponents): DsnComponents {\n  return {\n    protocol: components.protocol,\n    publicKey: components.publicKey || '',\n    pass: components.pass || '',\n    host: components.host,\n    port: components.port || '',\n    path: components.path || '',\n    projectId: components.projectId,\n  };\n}\n\nfunction validateDsn(dsn: DsnComponents): boolean {\n  if (!DEBUG_BUILD) {\n    return true;\n  }\n\n  const { port, projectId, protocol } = dsn;\n\n  const requiredComponents: ReadonlyArray<keyof DsnComponents> = ['protocol', 'publicKey', 'host', 'projectId'];\n  const hasMissingRequiredComponent = requiredComponents.find(component => {\n    if (!dsn[component]) {\n      debug.error(`Invalid Sentry Dsn: ${component} missing`);\n      return true;\n    }\n    return false;\n  });\n\n  if (hasMissingRequiredComponent) {\n    return false;\n  }\n\n  if (!projectId.match(/^\\d+$/)) {\n    debug.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);\n    return false;\n  }\n\n  if (!isValidProtocol(protocol)) {\n    debug.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);\n    return false;\n  }\n\n  if (port && isNaN(parseInt(port, 10))) {\n    debug.error(`Invalid Sentry Dsn: Invalid port ${port}`);\n    return false;\n  }\n\n  return true;\n}\n\n/**\n * Extract the org ID from a DSN host.\n *\n * @param host The host from a DSN\n * @returns The org ID if found, undefined otherwise\n */\nexport function extractOrgIdFromDsnHost(host: string): string | undefined {\n  const match = host.match(ORG_ID_REGEX);\n\n  return match?.[1];\n}\n\n/**\n *  Returns the organization ID of the client.\n *\n *  The organization ID is extracted from the DSN. If the client options include a `orgId`, this will always take precedence.\n */\nexport function extractOrgIdFromClient(client: Client): string | undefined {\n  const options = client.getOptions();\n\n  const { host } = client.getDsn() || {};\n\n  let org_id: string | undefined;\n\n  if (options.orgId) {\n    org_id = String(options.orgId);\n  } else if (host) {\n    org_id = extractOrgIdFromDsnHost(host);\n  }\n\n  return org_id;\n}\n\n/**\n * Creates a valid Sentry Dsn object, identifying a Sentry instance and project.\n * @returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source\n */\nexport function makeDsn(from: DsnLike): DsnComponents | undefined {\n  const components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);\n  if (!components || !validateDsn(components)) {\n    return undefined;\n  }\n  return components;\n}\n","/**\n * Parse a sample rate from a given value.\n * This will either return a boolean or number sample rate, if the sample rate is valid (between 0 and 1).\n * If a string is passed, we try to convert it to a number.\n *\n * Any invalid sample rate will return `undefined`.\n */\nexport function parseSampleRate(sampleRate: unknown): number | undefined {\n  if (typeof sampleRate === 'boolean') {\n    return Number(sampleRate);\n  }\n\n  const rate = typeof sampleRate === 'string' ? parseFloat(sampleRate) : sampleRate;\n  if (typeof rate !== 'number' || isNaN(rate) || rate < 0 || rate > 1) {\n    return undefined;\n  }\n\n  return rate;\n}\n","import type { Client } from '../client';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport type { PropagationContext } from '../types/tracing';\nimport type { TraceparentData } from '../types/transaction';\nimport { debug } from '../utils/debug-logger';\nimport { baggageHeaderToDynamicSamplingContext } from './baggage';\nimport { extractOrgIdFromClient } from './dsn';\nimport { parseSampleRate } from './parseSampleRate';\nimport { generateSpanId, generateTraceId } from './propagationContext';\nimport { safeMathRandom } from './randomSafeContext';\n\n// oxlint-disable-next-line sdk/no-regexp-constructor -- RegExp is used for readability here\nexport const TRACEPARENT_REGEXP = new RegExp(\n  '^[ \\\\t]*' + // whitespace\n    '([0-9a-f]{32})?' + // trace_id\n    '-?([0-9a-f]{16})?' + // span_id\n    '-?([01])?' + // sampled\n    '[ \\\\t]*$', // whitespace\n);\n\n/**\n * Extract transaction context data from a `sentry-trace` header.\n *\n * This is terrible naming but the function has nothing to do with the W3C traceparent header.\n * It can only parse the `sentry-trace` header and extract the \"trace parent\" data.\n *\n * @param traceparent Traceparent string\n *\n * @returns Object containing data from the header, or undefined if traceparent string is malformed\n */\nexport function extractTraceparentData(traceparent?: string): TraceparentData | undefined {\n  if (!traceparent) {\n    return undefined;\n  }\n\n  const matches = traceparent.match(TRACEPARENT_REGEXP);\n  if (!matches) {\n    return undefined;\n  }\n\n  let parentSampled: boolean | undefined;\n  if (matches[3] === '1') {\n    parentSampled = true;\n  } else if (matches[3] === '0') {\n    parentSampled = false;\n  }\n\n  return {\n    traceId: matches[1],\n    parentSampled,\n    parentSpanId: matches[2],\n  };\n}\n\n/**\n * Whether a propagation context continues an incoming trace, rather than being the head of a new one.\n *\n * Both fields have to be checked. `parentSpanId` is unset when the incoming `sentry-trace` header\n * carried no span id, which the header format allows. `dsc` is unset when a remote parent arrived\n * without any incoming baggage. Either one on its own therefore misses a continued trace.\n */\nexport function isContinuingTrace(propagationContext: PropagationContext): boolean {\n  return !!propagationContext.parentSpanId || !!propagationContext.dsc;\n}\n\n/**\n * Create a propagation context from incoming headers or\n * creates a minimal new one if the headers are undefined.\n */\nexport function propagationContextFromHeaders(\n  sentryTrace: string | undefined,\n  baggage: string | number | boolean | string[] | null | undefined,\n): PropagationContext {\n  const traceparentData = extractTraceparentData(sentryTrace);\n  const dynamicSamplingContext = baggageHeaderToDynamicSamplingContext(baggage);\n\n  if (!traceparentData?.traceId) {\n    return {\n      traceId: generateTraceId(),\n      sampleRand: safeMathRandom(),\n    };\n  }\n\n  const sampleRand = getSampleRandFromTraceparentAndDsc(traceparentData, dynamicSamplingContext);\n\n  // The sample_rand on the DSC needs to be generated based on traceparent + baggage.\n  if (dynamicSamplingContext) {\n    dynamicSamplingContext.sample_rand = sampleRand.toString();\n  }\n\n  const { traceId, parentSpanId, parentSampled } = traceparentData;\n\n  return {\n    traceId,\n    parentSpanId,\n    sampled: parentSampled,\n    dsc: dynamicSamplingContext || {}, // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it\n    sampleRand,\n  };\n}\n\n/**\n * Create sentry-trace header from span context values.\n */\nexport function generateSentryTraceHeader(\n  traceId: string | undefined = generateTraceId(),\n  spanId: string | undefined = generateSpanId(),\n  sampled?: boolean,\n): string {\n  let sampledString = '';\n  if (sampled !== undefined) {\n    sampledString = sampled ? '-1' : '-0';\n  }\n  return `${traceId}-${spanId}${sampledString}`;\n}\n\n/**\n * Creates a W3C traceparent header from the given trace and span ids.\n */\nexport function generateTraceparentHeader(\n  traceId: string | undefined = generateTraceId(),\n  spanId: string | undefined = generateSpanId(),\n  sampled?: boolean,\n): string {\n  return `00-${traceId}-${spanId}-${sampled ? '01' : '00'}`;\n}\n\n/**\n * Given any combination of an incoming trace, generate a sample rand based on its defined semantics.\n *\n * Read more: https://develop.sentry.dev/sdk/telemetry/traces/#propagated-random-value\n */\nfunction getSampleRandFromTraceparentAndDsc(\n  traceparentData: TraceparentData | undefined,\n  dsc: Partial<DynamicSamplingContext> | undefined,\n): number {\n  // When there is an incoming sample rand use it.\n  const parsedSampleRand = parseSampleRate(dsc?.sample_rand);\n  if (parsedSampleRand !== undefined) {\n    return parsedSampleRand;\n  }\n\n  // Otherwise, if there is an incoming sampling decision + sample rate, generate a sample rand that would lead to the same sampling decision.\n  const parsedSampleRate = parseSampleRate(dsc?.sample_rate);\n  if (parsedSampleRate && traceparentData?.parentSampled !== undefined) {\n    return traceparentData.parentSampled\n      ? // Returns a sample rand with positive sampling decision [0, sampleRate)\n        safeMathRandom() * parsedSampleRate\n      : // Returns a sample rand with negative sampling decision [sampleRate, 1)\n        parsedSampleRate + safeMathRandom() * (1 - parsedSampleRate);\n  } else {\n    // If nothing applies, return a random sample rand.\n    return safeMathRandom();\n  }\n}\n\n/**\n * Determines whether a new trace should be continued based on the provided baggage org ID and the client's `strictTraceContinuation` option.\n * If the trace should not be continued, a new trace will be started.\n *\n * The result is dependent on the `strictTraceContinuation` option in the client.\n * See https://develop.sentry.dev/sdk/telemetry/traces/#stricttracecontinuation\n */\nexport function shouldContinueTrace(client: Client, baggageOrgId?: string): boolean {\n  const clientOrgId = extractOrgIdFromClient(client);\n\n  // Case: baggage orgID and Client orgID don't match - always start new trace\n  if (baggageOrgId && clientOrgId && baggageOrgId !== clientOrgId) {\n    debug.log(\n      `Won't continue trace because org IDs don't match (incoming baggage: ${baggageOrgId}, SDK options: ${clientOrgId})`,\n    );\n    return false;\n  }\n\n  const strictTraceContinuation = client.getOptions().strictTraceContinuation || false; // default for `strictTraceContinuation` is `false`\n\n  if (strictTraceContinuation) {\n    // With strict continuation enabled, don't continue trace if:\n    // - Baggage has orgID, but Client doesn't have one\n    // - Client has orgID, but baggage doesn't have one\n    if ((baggageOrgId && !clientOrgId) || (!baggageOrgId && clientOrgId)) {\n      debug.log(\n        `Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${baggageOrgId}, Sentry client: ${clientOrgId})`,\n      );\n      return false;\n    }\n  }\n\n  return true;\n}\n","import type { Scope } from '../scope';\nimport type { Span } from '../types/span';\nimport { derefWeakRef, makeWeakRef, type MaybeWeakRef } from './weakRef';\n\nconst SCOPE_SPAN_FIELD = 'span';\n\n/**\n * Set the active span for a given scope.\n * NOTE: This should NOT be used directly, but is only used internally by the trace methods.\n */\nexport function _setSpanForScope(scope: Scope, span: Span | undefined): void {\n  if (span) {\n    // Use WeakRef to avoid circular reference with span holding scope\n    scope.refs[SCOPE_SPAN_FIELD] = makeWeakRef(span);\n  } else {\n    // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n    delete scope.refs[SCOPE_SPAN_FIELD];\n  }\n}\n\n/**\n * Get the active span for a given scope.\n * NOTE: This should NOT be used directly, but is only used internally by the trace methods.\n */\nexport function _getSpanForScope(scope: Scope): Span | undefined {\n  return derefWeakRef(scope.refs[SCOPE_SPAN_FIELD] as MaybeWeakRef<Span> | undefined);\n}\n","// oxlint-disable max-lines\nimport { getAsyncContextStrategy } from '../asyncContext';\nimport type { RawAttributes } from '../attributes';\nimport { serializeAttributes } from '../attributes';\nimport { getMainCarrier } from '../carrier';\nimport { getCurrentScope } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport {\n  SENTRY_SEGMENT_NAME_SOURCE,\n  SENTRY_STATUS_MESSAGE,\n  SENTRY_OP,\n  SENTRY_ORIGIN,\n} from '@sentry/conventions/attributes';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME } from '../semanticAttributes';\nimport type { SentrySpan } from '../tracing/sentrySpan';\nimport { isStatusErrorMessageValid, SPAN_STATUS_OK, SPAN_STATUS_UNSET } from '../tracing/spanstatus';\nimport { getCapturedScopesOnSpan } from '../tracing/utils';\nimport type { TraceContext } from '../types/context';\nimport type { SpanLink, SpanLinkJSON } from '../types/link';\nimport type { TransactionSource } from '../types/transaction';\nimport type {\n  SerializedStreamedSpan,\n  Span,\n  SpanAttributes,\n  SpanJSON,\n  SpanOrigin,\n  SpanTimeInput,\n  StreamedSpanJSON,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { generateSpanId } from '../utils/propagationContext';\nimport { performanceTimeToSeconds, timestampInSeconds } from '../utils/time';\nimport { generateSentryTraceHeader, generateTraceparentHeader } from '../utils/tracing';\nimport { _getSpanForScope } from './spanOnScope';\n\n// These are aligned with OpenTelemetry trace flags\nexport const TRACE_FLAG_NONE = 0x0;\nexport const TRACE_FLAG_SAMPLED = 0x1;\n\n/**\n * Convert a span to a trace context, which can be sent as the `trace` context in an event.\n * By default, this will only include trace_id, span_id & parent_span_id.\n * If `includeAllData` is true, it will also include data, op, status & origin.\n */\nexport function spanToTransactionTraceContext(span: Span): TraceContext {\n  const { spanId: span_id, traceId: trace_id } = span.spanContext();\n  const { data, op, parent_span_id, status, origin, links } = spanToStaticSpanJSON(span);\n\n  return {\n    parent_span_id,\n    span_id,\n    trace_id,\n    data,\n    op,\n    status,\n    origin,\n    links,\n  };\n}\n\n/**\n * Convert a span to a trace context, which can be sent as the `trace` context in a non-transaction event.\n */\nexport function spanToTraceContext(span: Span): TraceContext {\n  const { spanId, traceId: trace_id, isRemote } = span.spanContext();\n\n  // If the span is remote, we use a random/virtual span as span_id to the trace context,\n  // and the remote span as parent_span_id\n  const parent_span_id = isRemote ? spanId : spanToStaticSpanJSON(span).parent_span_id;\n  const scope = getCapturedScopesOnSpan(span).scope;\n\n  const span_id = isRemote ? scope?.getPropagationContext().propagationSpanId || generateSpanId() : spanId;\n\n  return {\n    parent_span_id,\n    span_id,\n    trace_id,\n  };\n}\n\n/**\n * Convert a Span to a Sentry trace header.\n */\nexport function spanToTraceHeader(span: Span): string {\n  const { traceId, spanId } = span.spanContext();\n  const sampled = spanIsSampled(span);\n  return generateSentryTraceHeader(traceId, spanId, sampled);\n}\n\n/**\n * Convert a Span to a W3C traceparent header.\n */\nexport function spanToTraceparentHeader(span: Span): string {\n  const { traceId, spanId } = span.spanContext();\n  const sampled = spanIsSampled(span);\n  return generateTraceparentHeader(traceId, spanId, sampled);\n}\n\n/**\n *  Converts the span links array to a flattened version to be sent within an envelope.\n *\n *  If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.\n */\nexport function convertSpanLinksForEnvelope(links?: SpanLink[]): SpanLinkJSON[] | undefined {\n  if (links && links.length > 0) {\n    return links.map(({ context: { spanId, traceId, traceFlags, ...restContext }, attributes }) => ({\n      span_id: spanId,\n      trace_id: traceId,\n      sampled: traceFlags === TRACE_FLAG_SAMPLED,\n      attributes,\n      ...restContext,\n    }));\n  } else {\n    return undefined;\n  }\n}\n\n/**\n * Converts the span links array to a flattened version with serialized attributes for V2 spans.\n *\n * If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.\n */\nexport function getStreamedSpanLinks(\n  links?: SpanLink[],\n): SpanLinkJSON<RawAttributes<Record<string, unknown>>>[] | undefined {\n  if (links?.length) {\n    return links.map(({ context: { spanId, traceId, traceFlags }, attributes }) => ({\n      span_id: spanId,\n      trace_id: traceId,\n      sampled: traceFlags === TRACE_FLAG_SAMPLED,\n      attributes,\n    }));\n  } else {\n    return undefined;\n  }\n}\n\n/**\n * Convert a span time input into a timestamp in seconds.\n */\nexport function spanTimeInputToSeconds(input: SpanTimeInput | undefined): number {\n  if (typeof input === 'number') {\n    return ensureTimestampInSeconds(input);\n  }\n\n  if (Array.isArray(input)) {\n    // See {@link HrTime} for the array-based time format\n    return input[0] + input[1] / 1e9;\n  }\n\n  if (input instanceof Date) {\n    return ensureTimestampInSeconds(input.getTime());\n  }\n\n  return timestampInSeconds();\n}\n\n/**\n * Converts a timestamp to second, if it was in milliseconds, or keeps it as second.\n */\nfunction ensureTimestampInSeconds(timestamp: number): number {\n  const isMs = timestamp > 9999999999;\n  return isMs ? timestamp / 1000 : timestamp;\n}\n\n/**\n * Convert an OpenTelemetry time input into a timestamp in seconds.\n *\n * OpenTelemetry numbers are always milliseconds, either since the epoch or since the performance time origin\n * (`performance.now()`).\n */\nexport function otelTimeInputToSeconds(input: SpanTimeInput | undefined): number {\n  if (typeof input !== 'number') {\n    return spanTimeInputToSeconds(input);\n  }\n  // Epoch milliseconds are > 1e12 for any date after 2001, `performance.now()` would need ~30 years of uptime to get there\n  if (input < 1e12) {\n    return performanceTimeToSeconds(input) ?? timestampInSeconds();\n  }\n  return input / 1000;\n}\n\n/**\n * Convert a span to a static JSON representation.\n */\n// Note: Because of this, we currently have a circular type dependency (which we opted out of in package.json).\n// This is not avoidable as we need `spanToJSON` in `spanUtils.ts`, which in turn is needed by `span.ts` for backwards compatibility.\n// And `spanToJSON` needs the Span class from `span.ts` to check here.\nexport function spanToStaticSpanJSON(span: Span): SpanJSON {\n  if (spanIsSentrySpan(span)) {\n    return span.getStaticSpanJSON();\n  }\n\n  const { spanId: span_id, traceId: trace_id } = span.spanContext();\n\n  // Handle a span from @opentelemetry/sdk-base-trace's `Span` class\n  if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {\n    const { attributes, startTime, name, endTime, status, links } = span;\n\n    return {\n      span_id,\n      trace_id,\n      data: attributes,\n      description: name,\n      parent_span_id: getOtelParentSpanId(span),\n      start_timestamp: spanTimeInputToSeconds(startTime),\n      // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time\n      timestamp: spanTimeInputToSeconds(endTime) || undefined,\n      status: getStatusMessage(status),\n      op: attributes[SENTRY_OP],\n      origin: attributes[SENTRY_ORIGIN] as SpanOrigin | undefined,\n      links: convertSpanLinksForEnvelope(links),\n    };\n  }\n\n  // Finally, at least we have `spanContext()`....\n  // This should not actually happen in reality, but we need to handle it for type safety.\n  return {\n    span_id,\n    trace_id,\n    start_timestamp: 0,\n    status: 'ok',\n    data: {},\n  };\n}\n\n/**\n * Convert a span to a JSON representation.\n */\nexport function spanToJSON(span: Span): StreamedSpanJSON {\n  if (spanIsSentrySpan(span)) {\n    return span.getSpanJSON();\n  }\n\n  const { spanId: span_id, traceId: trace_id } = span.spanContext();\n\n  // Handle a span from @opentelemetry/sdk-base-trace's `Span` class\n  if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {\n    const { attributes, startTime, name, endTime, status, links } = span;\n\n    return {\n      name,\n      span_id,\n      trace_id,\n      parent_span_id: getOtelParentSpanId(span),\n      start_timestamp: spanTimeInputToSeconds(startTime),\n      // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time\n      end_timestamp: spanTimeInputToSeconds(endTime) || undefined,\n      is_segment: spanIsSegment(span),\n      status: getSimpleStatus(status),\n      attributes: addStatusMessageAttribute(attributes, status),\n      links: getStreamedSpanLinks(links),\n    };\n  }\n\n  // Finally, as a fallback, at least we have `spanContext()`....\n  // This should not actually happen in reality, but we need to handle it for type safety.\n  return {\n    span_id,\n    trace_id,\n    start_timestamp: 0,\n    name: '',\n    status: 'ok',\n    is_segment: spanIsSegment(span),\n    attributes: {},\n  };\n}\n\n/**\n * In preparation for the next major of OpenTelemetry, we want to support\n * looking up the parent span id according to the new API\n * In OTel v1, the parent span id is accessed as `parentSpanId`\n * In OTel v2, the parent span id is accessed as `spanId` on the `parentSpanContext`\n */\nfunction getOtelParentSpanId(span: OpenTelemetrySdkTraceBaseSpan): string | undefined {\n  return 'parentSpanId' in span\n    ? span.parentSpanId\n    : 'parentSpanContext' in span\n      ? (span.parentSpanContext as { spanId?: string } | undefined)?.spanId\n      : undefined;\n}\n\n/**\n * Converts a {@link StreamedSpanJSON} to a {@link SerializedSpan}.\n * This is the final serialized span format that is sent to Sentry.\n * The returned serilaized spans must not be consumed by users or SDK integrations.\n */\nexport function streamedSpanJsonToSerializedSpan(spanJson: StreamedSpanJSON): SerializedStreamedSpan {\n  return {\n    ...spanJson,\n    // We only ever send ended spans, but fall back to the start time (i.e. duration 0) so that\n    // sent spans always carry an end timestamp.\n    end_timestamp: spanJson.end_timestamp ?? spanJson.start_timestamp,\n    attributes: serializeAttributes(spanJson.attributes),\n    links: spanJson.links?.map(link => ({\n      ...link,\n      attributes: serializeAttributes(link.attributes),\n    })),\n  };\n}\n\nfunction spanIsOpenTelemetrySdkTraceBaseSpan(span: Span): span is OpenTelemetrySdkTraceBaseSpan {\n  const castSpan = span as Partial<OpenTelemetrySdkTraceBaseSpan>;\n  return !!castSpan.attributes && !!castSpan.startTime && !!castSpan.name && !!castSpan.endTime && !!castSpan.status;\n}\n\n/** Exported only for tests. */\nexport interface OpenTelemetrySdkTraceBaseSpan extends Span {\n  attributes: SpanAttributes;\n  startTime: SpanTimeInput;\n  name: string;\n  status: SpanStatus;\n  endTime: SpanTimeInput;\n  parentSpanId?: string;\n  links?: SpanLink[];\n}\n\n/**\n * Sadly, due to circular dependency checks we cannot actually import the Span class here and check for instanceof.\n * :( So instead we approximate this by checking if it has the `getSpanJSON` method.\n */\nexport function spanIsSentrySpan(span: Span): span is SentrySpan {\n  return typeof (span as SentrySpan).getSpanJSON === 'function';\n}\n\n/**\n * Returns true if a span is sampled.\n * In most cases, you should just use `span.isRecording()` instead.\n * However, this has a slightly different semantic, as it also returns false if the span is finished.\n * So in the case where this distinction is important, use this method.\n */\nexport function spanIsSampled(span: Span): boolean {\n  // We align our trace flags with the ones OpenTelemetry use\n  // So we also check for sampled the same way they do.\n  const { traceFlags } = span.spanContext();\n  return traceFlags === TRACE_FLAG_SAMPLED;\n}\n\n/** Get the status message to use for a JSON representation of a span. */\nexport function getStatusMessage(status: SpanStatus | undefined): string {\n  if (!status || status.code === SPAN_STATUS_UNSET) {\n    return 'ok';\n  }\n\n  if (status.code === SPAN_STATUS_OK) {\n    return 'ok';\n  }\n\n  return status.message && isStatusErrorMessageValid(status.message) ? status.message : 'internal_error';\n}\n\n/**\n * Convert the various statuses to the simple ones expected by Sentry for streamed spans ('ok' is default).\n */\nexport function getSimpleStatus(status: SpanStatus | undefined): 'ok' | 'error' {\n  return !status ||\n    status.code === SPAN_STATUS_OK ||\n    status.code === SPAN_STATUS_UNSET ||\n    status.message === 'cancelled'\n    ? 'ok'\n    : 'error';\n}\n\n/**\n * Returns the span's attributes with the SENTRY_STATUS_MESSAGE attribute added\n * if the span has an error status message worth preserving.\n *\n * An explicitly set attribute is never overwritten.\n */\nexport function addStatusMessageAttribute(\n  attributes: SpanAttributes,\n  status: SpanStatus | undefined,\n): RawAttributes<Record<string, unknown>> {\n  const statusMessage = getSimpleStatus(status) === 'error' ? status?.message : undefined;\n  return {\n    ...(statusMessage && { [SENTRY_STATUS_MESSAGE]: statusMessage }),\n    ...attributes,\n  };\n}\n\nconst CHILD_SPANS_FIELD = '_sentryChildSpans';\nconst ROOT_SPAN_FIELD = '_sentryRootSpan';\n\ntype SpanWithPotentialChildren = Span & {\n  [CHILD_SPANS_FIELD]?: Set<Span>;\n  [ROOT_SPAN_FIELD]?: Span;\n};\n\n/**\n * Adds an opaque child span reference to a span.\n */\nexport function addChildSpanToSpan(span: SpanWithPotentialChildren, childSpan: Span): void {\n  // We store the root span reference on the child span\n  // We need this for `getRootSpan()` to work\n  const rootSpan = span[ROOT_SPAN_FIELD] || span;\n  addNonEnumerableProperty(childSpan, ROOT_SPAN_FIELD, rootSpan);\n\n  // Name source is exclusive to segment spans. Constructor-time attribute bags can leak it onto\n  // children before this link exists, so drop it once the span is known not to be the segment.\n  childSpan.setAttribute(SENTRY_SEGMENT_NAME_SOURCE, undefined);\n\n  // `_sentryChildSpans` exists only so `getSpanDescendants()` can walk the tree when the segment span\n  // is sent, and that walk stops at an unsampled span without ever visiting its children. So a child\n  // tracked here would be held for the parent's lifetime and never read.\n  if (!spanIsSampled(span)) {\n    return;\n  }\n\n  // Once the segment span stopped recording, the tree has been read for the last time, and a child\n  // starting now belongs to whatever segment comes next: it is re-emitted on its own instead. Tracking\n  // it here would pin it for as long as the parent lives, which for a span left active in an async\n  // context (e.g. a framework boot span captured by a queue consumer) is the rest of the process. Only\n  // a parent that is itself still recording keeps tracking, so a late child that outlives its segment\n  // still collects the subtree it is re-emitted with.\n  if (!span.isRecording() && !rootSpan.isRecording()) {\n    return;\n  }\n\n  // We store a list of child spans on the parent span\n  // We need this for `getSpanDescendants()` to work\n  if (span[CHILD_SPANS_FIELD]) {\n    span[CHILD_SPANS_FIELD].add(childSpan);\n  } else {\n    addNonEnumerableProperty(span, CHILD_SPANS_FIELD, new Set([childSpan]));\n  }\n}\n\n/** This is only used internally by Idle Spans. */\nexport function removeChildSpanFromSpan(span: SpanWithPotentialChildren, childSpan: Span): void {\n  if (span[CHILD_SPANS_FIELD]) {\n    span[CHILD_SPANS_FIELD].delete(childSpan);\n  }\n}\n\n/**\n * Returns an array of the given span and all of its descendants.\n */\nexport function getSpanDescendants(span: SpanWithPotentialChildren): Span[] {\n  const resultSet = new Set<Span>();\n\n  function addSpanChildren(span: SpanWithPotentialChildren): void {\n    // This exit condition is required to not infinitely loop in case of a circular dependency.\n    if (resultSet.has(span)) {\n      return;\n      // We want to ignore unsampled spans (e.g. non recording spans)\n    } else if (spanIsSampled(span)) {\n      resultSet.add(span);\n      const childSpans = span[CHILD_SPANS_FIELD] ? Array.from(span[CHILD_SPANS_FIELD]) : [];\n      for (const childSpan of childSpans) {\n        addSpanChildren(childSpan);\n      }\n    }\n  }\n\n  addSpanChildren(span);\n\n  return Array.from(resultSet);\n}\n\n/**\n * Returns the root span of a given span.\n */\nexport const getRootSpan = INTERNAL_getSegmentSpan;\n\n/**\n * Returns the segment span of a given span.\n */\nexport function INTERNAL_getSegmentSpan(span: SpanWithPotentialChildren): Span {\n  return span[ROOT_SPAN_FIELD] || span;\n}\n\n/**\n * Whether the given span is the segment span, i.e. it has no parent within its trace.\n */\nexport function spanIsSegment(span: SpanWithPotentialChildren): boolean {\n  return span === INTERNAL_getSegmentSpan(span);\n}\n\n/**\n * Returns the currently active span.\n */\nexport function getActiveSpan(scope?: Scope): Span | undefined {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  if (acs.getActiveSpan) {\n    return acs.getActiveSpan(scope);\n  }\n\n  return _getSpanForScope(scope || getCurrentScope());\n}\n\n/**\n * Updates the name of the given span and ensures that the span name is not\n * overwritten by the Sentry SDK.\n *\n * Use this function instead of `span.updateName()` if you want to make sure that\n * your name is kept. For some spans, for example root `http.server` spans the\n * Sentry SDK would otherwise overwrite the span name with a high-quality name\n * it infers when the span ends.\n *\n * Use this function in server code or when your span is started on the server\n * and on the client (browser). If you only update a span name on the client,\n * you can also use `span.updateName()` the SDK does not overwrite the name.\n *\n * @param span - The span to update the name of.\n * @param name - The name to set on the span.\n */\nexport function updateSpanName(span: Span, name: string): void {\n  span.updateName(name);\n  span.setAttributes({\n    [SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]: name,\n  });\n  INTERNAL_setSegmentNameSourceIfSegment(span, 'custom');\n}\n\n/**\n * Sets `sentry.segment.name.source` only when `span` is the segment span.\n * No-op for child spans — the attribute must exclusively live on the segment.\n */\nexport function INTERNAL_setSegmentNameSourceIfSegment(span: Span, source: TransactionSource): void {\n  if (spanIsSegment(span)) {\n    span.setAttribute(SENTRY_SEGMENT_NAME_SOURCE, source);\n  }\n}\n","import { getClient } from '../currentScopes';\nimport type { CoreOptions } from '../types/options';\n\n// Treeshakable guard to remove all code related to tracing\ndeclare const __SENTRY_TRACING__: boolean | undefined;\n\n/**\n * Determines if span recording is currently enabled.\n *\n * Spans are recorded when at least one of `tracesSampleRate` and `tracesSampler`\n * is defined in the SDK config. This function does not make any assumption about\n * sampling decisions, it only checks if the SDK is configured to record spans.\n *\n * Important: This function only determines if span recording is enabled. Trace\n * continuation and propagation is separately controlled and not covered by this function.\n * If this function returns `false`, traces can still be propagated (which is what\n * we refer to by \"Tracing without Performance\")\n * @see https://develop.sentry.dev/sdk/telemetry/traces/tracing-without-performance/\n *\n * @param maybeOptions An SDK options object to be passed to this function.\n * If this option is not provided, the function will use the current client's options.\n */\nexport function hasSpansEnabled(\n  maybeOptions?: Pick<CoreOptions, 'tracesSampleRate' | 'tracesSampler'> | undefined,\n): boolean {\n  if (typeof __SENTRY_TRACING__ === 'boolean' && !__SENTRY_TRACING__) {\n    return false;\n  }\n\n  const options = maybeOptions || getClient()?.getOptions();\n  return (\n    !!options &&\n    // Note: This check is `!= null`, meaning \"nullish\". `0` is not \"nullish\", `undefined` and `null` are. (This comment was brought to you by 15 minutes of questioning life)\n    (options.tracesSampleRate != null || !!options.tracesSampler)\n  );\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { ClientOptions, IgnoreSpanAttributeValue } from '../types/options';\nimport type { SpanJSON } from '../types/span';\nimport { debug } from './debug-logger';\nimport { isMatchingPattern } from './string';\n\nfunction logIgnoredSpan(droppedSpan: Pick<SpanJSON, 'description' | 'op'>): void {\n  debug.log(`Ignoring span ${droppedSpan.op} - ${droppedSpan.description} because it matches \\`ignoreSpans\\`.`);\n}\n\n/**\n * Check if a span should be ignored based on the ignoreSpans configuration.\n */\nexport function shouldIgnoreSpan(\n  span: Pick<SpanJSON, 'description' | 'op'> & { attributes?: Record<string, unknown> },\n  ignoreSpans: Required<ClientOptions>['ignoreSpans'],\n): boolean {\n  if (!ignoreSpans?.length) {\n    return false;\n  }\n\n  for (const pattern of ignoreSpans) {\n    if (isStringOrRegExp(pattern)) {\n      if (span.description && isMatchingPattern(span.description, pattern)) {\n        DEBUG_BUILD && logIgnoredSpan(span);\n        return true;\n      }\n      continue;\n    }\n\n    const hasAttributes = !!pattern.attributes && Object.keys(pattern.attributes).length > 0;\n    if (!pattern.name && !pattern.op && !hasAttributes) {\n      continue;\n    }\n\n    const nameMatches = pattern.name ? span.description && isMatchingPattern(span.description, pattern.name) : true;\n    const opMatches = pattern.op ? span.op && isMatchingPattern(span.op, pattern.op) : true;\n    const attrsMatch = pattern.attributes\n      ? Object.entries(pattern.attributes).every(([key, valuePattern]) =>\n          _matchesAttributeValue(span.attributes?.[key], valuePattern),\n        )\n      : true;\n\n    // This check here is only correct because we can guarantee that we ran `isMatchingPattern`\n    // for at least one of `nameMatches`, `opMatches`, or `attrsMatch`. So in contrary to how this looks,\n    // not all of op, name, and attributes actually have to match. This is the most efficient way to check\n    // for all combinations of name, op, and attribute patterns.\n    if (nameMatches && opMatches && attrsMatch) {\n      DEBUG_BUILD && logIgnoredSpan(span);\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction _matchesAttributeValue(actual: unknown, pat: IgnoreSpanAttributeValue): boolean {\n  // String values support pattern matching\n  if (typeof actual === 'string' && (typeof pat === 'string' || pat instanceof RegExp)) {\n    return isMatchingPattern(actual, pat);\n  }\n  // Arrays: element-wise strict equality\n  if (Array.isArray(actual) && Array.isArray(pat)) {\n    return actual.length === pat.length && actual.every((v, i) => v === pat[i]);\n  }\n  // Primitives: strict equality\n  return actual === pat;\n}\n\n/**\n * Takes a list of spans, and a span that was dropped, and re-parents the child spans of the dropped span to the parent of the dropped span, if possible.\n * This mutates the spans array in place!\n */\nexport function reparentChildSpans(spans: SpanJSON[], dropSpan: SpanJSON): void {\n  const droppedSpanParentId = dropSpan.parent_span_id;\n  const droppedSpanId = dropSpan.span_id;\n\n  // This should generally not happen, as we do not apply this on root spans\n  // but to be safe, we just bail in this case\n  if (!droppedSpanParentId) {\n    return;\n  }\n\n  for (const span of spans) {\n    if (span.parent_span_id === droppedSpanId) {\n      span.parent_span_id = droppedSpanParentId;\n    }\n  }\n}\n\nfunction isStringOrRegExp(value: unknown): value is string | RegExp {\n  return typeof value === 'string' || value instanceof RegExp;\n}\n","import type { Client } from './client';\nimport { getClient } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { Event, EventHint } from './types/event';\nimport type { Integration, IntegrationFn } from './types/integration';\nimport type { CoreOptions } from './types/options';\nimport type { StreamedSpanJSON } from './types/span';\nimport { debug } from './utils/debug-logger';\n\nexport const installedIntegrations: string[] = [];\n\n/** Map of integrations assigned to a client */\nexport type IntegrationIndex = {\n  [key: string]: Integration;\n};\n\ntype IntegrationWithDefaultInstance = Integration & { isDefaultInstance?: true };\n\n/**\n * Remove duplicates from the given array, preferring the last instance of any duplicate. Not guaranteed to\n * preserve the order of integrations in the array.\n *\n * @private\n */\nfunction filterDuplicates(integrations: Integration[]): Integration[] {\n  const integrationsByName: { [key: string]: Integration } = {};\n\n  integrations.forEach((currentInstance: IntegrationWithDefaultInstance) => {\n    const { name } = currentInstance;\n\n    const existingInstance: IntegrationWithDefaultInstance | undefined = integrationsByName[name];\n\n    // We want integrations later in the array to overwrite earlier ones of the same type, except that we never want a\n    // default instance to overwrite an existing user instance\n    if (existingInstance && !existingInstance.isDefaultInstance && currentInstance.isDefaultInstance) {\n      return;\n    }\n\n    integrationsByName[name] = currentInstance;\n  });\n\n  return Object.values(integrationsByName);\n}\n\n/** Gets integrations to install */\nexport function getIntegrationsToSetup(\n  options: Pick<CoreOptions, 'defaultIntegrations' | 'integrations'>,\n): Integration[] {\n  const defaultIntegrations = options.defaultIntegrations || [];\n  const userIntegrations = options.integrations;\n\n  // We flag default instances, so that later we can tell them apart from any user-created instances of the same class\n  defaultIntegrations.forEach((integration: IntegrationWithDefaultInstance) => {\n    integration.isDefaultInstance = true;\n  });\n\n  let integrations: Integration[];\n\n  if (Array.isArray(userIntegrations)) {\n    integrations = [...defaultIntegrations, ...userIntegrations];\n  } else if (typeof userIntegrations === 'function') {\n    const resolvedUserIntegrations = userIntegrations(defaultIntegrations);\n    integrations = Array.isArray(resolvedUserIntegrations) ? resolvedUserIntegrations : [resolvedUserIntegrations];\n  } else {\n    integrations = defaultIntegrations;\n  }\n\n  return filterDuplicates(integrations);\n}\n\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\nexport function setupIntegrations(client: Client, integrations: Integration[]): IntegrationIndex {\n  const integrationIndex: IntegrationIndex = {};\n\n  integrations.forEach((integration: Integration | undefined) => {\n    if (integration?.beforeSetup) {\n      integration.beforeSetup(client);\n    }\n  });\n\n  integrations.forEach((integration: Integration | undefined) => {\n    // guard against empty provided integrations\n    if (integration) {\n      setupIntegration(client, integration, integrationIndex);\n    }\n  });\n\n  return integrationIndex;\n}\n\n/**\n * Execute the `afterAllSetup` hooks of the given integrations.\n */\nexport function afterSetupIntegrations(client: Client, integrations: Integration[]): void {\n  for (const integration of integrations) {\n    // guard against empty provided integrations\n    if (integration?.afterAllSetup) {\n      integration.afterAllSetup(client);\n    }\n  }\n}\n\n/** Setup a single integration.  */\nexport function setupIntegration(client: Client, integration: Integration, integrationIndex: IntegrationIndex): void {\n  if (integrationIndex[integration.name]) {\n    DEBUG_BUILD && debug.log(`Integration skipped because it was already installed: ${integration.name}`);\n    return;\n  }\n  integrationIndex[integration.name] = integration;\n\n  // `setupOnce` is only called the first time\n  if (!installedIntegrations.includes(integration.name) && typeof integration.setupOnce === 'function') {\n    integration.setupOnce();\n    installedIntegrations.push(integration.name);\n  }\n\n  // `setup` is run for each client\n  if (integration.setup && typeof integration.setup === 'function') {\n    integration.setup(client);\n  }\n\n  if (typeof integration.preprocessEvent === 'function') {\n    const callback = integration.preprocessEvent.bind(integration) as typeof integration.preprocessEvent;\n    client.on('preprocessEvent', (event, hint) => callback(event, hint, client));\n  }\n\n  if (typeof integration.processEvent === 'function') {\n    const callback = integration.processEvent.bind(integration) as typeof integration.processEvent;\n\n    const processor = Object.assign((event: Event, hint: EventHint) => callback(event, hint, client), {\n      id: integration.name,\n    });\n\n    client.addEventProcessor(processor);\n  }\n\n  (['processSpan', 'processSegmentSpan'] as const).forEach(hook => {\n    const callback = integration[hook];\n    if (typeof callback === 'function') {\n      // The cast is needed because TS can't resolve overloads when the discriminant is a union type.\n      // Both overloads have the same callback signature so this is safe.\n      client.on(hook as 'processSpan', (span: StreamedSpanJSON) => callback.call(integration, span, client));\n    }\n  });\n\n  DEBUG_BUILD && debug.log(`Integration installed: ${integration.name}`);\n}\n\n/** Add an integration to the current scope's client. */\nexport function addIntegration(integration: Integration): void {\n  const client = getClient();\n\n  if (!client) {\n    DEBUG_BUILD && debug.warn(`Cannot add integration \"${integration.name}\" because no SDK Client is available.`);\n    return;\n  }\n\n  client.addIntegration(integration);\n}\n\n/**\n * Define an integration function that can be used to create an integration instance.\n * Note that this by design hides the implementation details of the integration, as they are considered internal.\n */\nexport function defineIntegration<Fn extends IntegrationFn>(\n  fn: Fn,\n): (...args: Parameters<Fn>) => Integration & { name: ReturnType<Fn>['name'] } {\n  return fn;\n}\n\n// When  extending an integration, we allow other properties to be passed-through\ntype IntegrationWithOtherProperties = Record<string, unknown> & Integration;\ntype ExtendedIntegration<Base extends Integration, Extended extends Partial<IntegrationWithOtherProperties>> = Omit<\n  Base,\n  keyof Extended\n> &\n  Extended;\n\n/**\n * Wrap a parent integration with an extended integration.\n * Any passed integration function will call the parent integration function first, if it exists.\n *\n * Example usage:\n *\n * @example\n * ```typescript\n * const parentIntegration = defineIntegration(() => ({\n *   name: 'ParentIntegration',\n *   setupOnce: () => {\n *     console.log('ParentIntegration setupOnce');\n *   },\n * }));\n *\n * const extendedIntegration = extendIntegration(parentIntegration, {\n *   setupOnce: () => {\n *     console.log('ExtendedIntegration setupOnce');\n *   },\n * });\n * ```\n */\nexport function extendIntegration<Base extends Integration, Extended extends Partial<IntegrationWithOtherProperties>>(\n  integration: Base,\n  extendedIntegration: Extended,\n): ExtendedIntegration<Base, Extended> {\n  // The extension overrides the base for any shared key (object spread + the wrapping below), so the\n  // result type drops the overridden base keys rather than intersecting them — `Base & Extended` would\n  // wrongly intersect shared keys (e.g. a re-typed property collapses to `never`).\n  const wrappedIntegration = {\n    ...integration,\n    ...extendedIntegration,\n  } as ExtendedIntegration<Base, Extended>;\n\n  // Make sure that functions that are extended also call the base functions, if defined\n  // oxlint-disable-next-line guard-for-in\n  for (const key in extendedIntegration) {\n    const baseValue = integration[key as keyof Base];\n    const extendedValue = extendedIntegration[key];\n\n    type ValueType = typeof extendedValue;\n\n    if (typeof baseValue === 'function' && typeof extendedValue === 'function') {\n      const wrappedFunction = new Proxy(baseValue, {\n        apply: (target, thisArg, args) => {\n          Reflect.apply(target, thisArg, args);\n          return Reflect.apply(extendedValue, thisArg, args);\n        },\n      }) as ValueType;\n\n      // We know this is OK, but typescript does not properly narrow/infer types here\n      // so instead of casting the wrappedFunction to some complicated type, we just make clear that we simply overwrite this\n      (wrappedIntegration as Record<string, unknown>)[key] = wrappedFunction;\n    }\n  }\n\n  return wrappedIntegration;\n}\n","export const DEFAULT_ENVIRONMENT = 'production';\nexport const DEV_ENVIRONMENT = 'development';\n","import type { EventDropReason } from '../types/clientreport';\nimport type {\n  SentrySpanArguments,\n  Span,\n  SpanAttributes,\n  SpanAttributeValue,\n  SpanContextData,\n  SpanTimeInput,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { generateSpanId, generateTraceId } from '../utils/propagationContext';\nimport { TRACE_FLAG_NONE } from '../utils/spanUtils';\n\ninterface SentryNonRecordingSpanArguments extends SentrySpanArguments {\n  dropReason?: EventDropReason;\n}\n\n// Brand used to detect non-recording spans via {@link spanIsNonRecordingSpan} without `instanceof`,\n// which is brittle when `@sentry/core` is duplicated across packages. We use `Symbol.for` so the key\n// is shared across copies of the module, and so user payloads (e.g. JSON) cannot spoof the marker.\nconst NON_RECORDING_SPAN_FIELD = Symbol.for('sentry.nonRecordingSpan');\n\n/**\n * A Sentry Span that is non-recording, meaning it will not be sent to Sentry.\n */\nexport class SentryNonRecordingSpan implements Span {\n  private _traceId: string;\n  private _spanId: string;\n\n  /**\n   * Reason why this span was dropped, if applicable ('ignored' or 'sample_rate').\n   * Used to propagate the correct client report outcome to descendant spans\n   * when span streaming is enabled.\n   */\n  public dropReason?: EventDropReason;\n\n  public constructor(spanContext: SentryNonRecordingSpanArguments = {}) {\n    this._traceId = spanContext.traceId || generateTraceId();\n    this._spanId = spanContext.spanId || generateSpanId();\n    this.dropReason = spanContext.dropReason;\n    addNonEnumerableProperty(this, NON_RECORDING_SPAN_FIELD, true);\n  }\n\n  /** @inheritdoc */\n  public spanContext(): SpanContextData {\n    return {\n      spanId: this._spanId,\n      traceId: this._traceId,\n      traceFlags: TRACE_FLAG_NONE,\n    };\n  }\n\n  /** @inheritdoc */\n  public end(_timestamp?: SpanTimeInput): void {}\n\n  /** @inheritdoc */\n  public setAttribute(_key: string, _value: SpanAttributeValue | undefined): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public setAttributes(_values: SpanAttributes): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public setStatus(_status: SpanStatus): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public updateName(_name: string): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public isRecording(): boolean {\n    return false;\n  }\n\n  /** @inheritdoc */\n  public addEvent(\n    _name: string,\n    _attributesOrStartTime?: SpanAttributes | SpanTimeInput,\n    _startTime?: SpanTimeInput,\n  ): this {\n    return this;\n  }\n\n  /** @inheritDoc */\n  public addLink(_link: unknown): this {\n    return this;\n  }\n\n  /** @inheritDoc */\n  public addLinks(_links: unknown[]): this {\n    return this;\n  }\n\n  /**\n   * This should generally not be used,\n   * but we need it for being compliant with the OTEL Span interface.\n   *\n   * @hidden\n   * @internal\n   */\n  public recordException(_exception: unknown, _time?: SpanTimeInput | undefined): void {\n    // noop\n  }\n}\n\n/**\n * Whether the given span is a {@link SentryNonRecordingSpan}.\n */\nexport function spanIsNonRecordingSpan(span: Span | undefined): span is SentryNonRecordingSpan {\n  return !!span && (span as { [NON_RECORDING_SPAN_FIELD]?: boolean })[NON_RECORDING_SPAN_FIELD] === true;\n}\n","import type { Client } from '../client';\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { getClient, getExternalPropagationContext } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport { SENTRY_SEGMENT_NAME_SOURCE } from '@sentry/conventions/attributes';\nimport {\n  SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,\n  SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,\n} from '../semanticAttributes';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport type { Span } from '../types/span';\nimport { baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader } from '../utils/baggage';\nimport { extractOrgIdFromClient } from '../utils/dsn';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { getRootSpan, spanIsSampled, spanToStaticSpanJSON } from '../utils/spanUtils';\nimport { spanIsNonRecordingSpan } from './sentryNonRecordingSpan';\nimport { getCapturedScopesOnSpan } from './utils';\n\n/**\n * If you change this value, also update the terser plugin config to\n * avoid minification of the object property!\n */\nconst FROZEN_DSC_FIELD = '_frozenDsc';\n\ntype SpanWithMaybeDsc = Span & {\n  [FROZEN_DSC_FIELD]?: Partial<DynamicSamplingContext> | undefined;\n};\n\n/**\n * Freeze the given DSC on the given span.\n */\nexport function freezeDscOnSpan(span: Span, dsc: Partial<DynamicSamplingContext>): void {\n  const spanWithMaybeDsc = span as SpanWithMaybeDsc;\n  addNonEnumerableProperty(spanWithMaybeDsc, FROZEN_DSC_FIELD, dsc);\n}\n\n/**\n * Creates a dynamic sampling context from a client.\n *\n * Dispatches the `createDsc` lifecycle hook as a side effect.\n */\nexport function getDynamicSamplingContextFromClient(trace_id: string, client: Client): DynamicSamplingContext {\n  const options = client.getOptions();\n\n  const { publicKey: public_key } = client.getDsn() || {};\n\n  // Instead of conditionally adding non-undefined values, we add them and then remove them if needed\n  // otherwise, the order of baggage entries changes, which \"breaks\" a bunch of tests etc.\n  const dsc: DynamicSamplingContext = {\n    environment: options.environment || DEFAULT_ENVIRONMENT,\n    release: options.release,\n    public_key,\n    trace_id,\n    org_id: extractOrgIdFromClient(client),\n  };\n\n  client.emit('createDsc', dsc);\n\n  return dsc;\n}\n\n/**\n * Get the dynamic sampling context for the currently active scopes.\n */\nexport function getDynamicSamplingContextFromScope(\n  client: Client,\n  scope: Scope,\n): Partial<DynamicSamplingContext> | undefined {\n  // While an external propagation context is active (e.g. the OTLP integration riding along on an\n  // OpenTelemetry span), the SDK lacks most of the DSC information, like sampled, sample_rate,\n  // sample_rand and transaction. The scope's own DSC would also name a different trace than the one\n  // stamped on the event, so send none at all. Matches sentry-python.\n  if (getExternalPropagationContext()) {\n    return undefined;\n  }\n\n  const propagationContext = scope.getPropagationContext();\n  return propagationContext.dsc || getDynamicSamplingContextFromClient(propagationContext.traceId, client);\n}\n\n/**\n * Creates a dynamic sampling context from a span (and client and scope)\n *\n * @param span the span from which a few values like the root span name and sample rate are extracted.\n *\n * @returns a dynamic sampling context\n */\nexport function getDynamicSamplingContextFromSpan(span: Span): Readonly<Partial<DynamicSamplingContext>> {\n  const client = getClient();\n  if (!client) {\n    return {};\n  }\n\n  const rootSpan = getRootSpan(span);\n  const rootSpanJson = spanToStaticSpanJSON(rootSpan);\n  const rootSpanAttributes = rootSpanJson.data;\n  const traceState = rootSpan.spanContext().traceState;\n\n  // The span sample rate that was locally applied to the root span should also always be applied to the DSC, even if the DSC is frozen.\n  // This is so that the downstream traces/services can use parentSampleRate in their `tracesSampler` to make consistent sampling decisions across the entire trace.\n  const rootSpanSampleRate =\n    traceState?.get('sentry.sample_rate') ??\n    rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] ??\n    rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];\n\n  function applyLocalSampleRateToDsc(dsc: Partial<DynamicSamplingContext>): Partial<DynamicSamplingContext> {\n    if (typeof rootSpanSampleRate === 'number' || typeof rootSpanSampleRate === 'string') {\n      dsc.sample_rate = `${rootSpanSampleRate}`;\n    }\n    return dsc;\n  }\n\n  // For core implementation, we freeze the DSC onto the span as a non-enumerable property\n  const frozenDsc = (rootSpan as SpanWithMaybeDsc)[FROZEN_DSC_FIELD];\n  if (frozenDsc) {\n    return applyLocalSampleRateToDsc(frozenDsc);\n  }\n\n  // For a non-recording placeholder in Tracing without Performance (TwP) mode or an ignored segment,\n  // the DSC is not carried on the span; the scope is the source of truth. Resolve it from the span's\n  // captured scope so continued traces keep their incoming DSC.\n  //\n  // We gate this on `!hasSpansEnabled()` so it mirrors the `sentry-trace` source in `getTraceData`:\n  // with tracing enabled, other non-recording spans (e.g. an `onlyIfParent` placeholder) keep deriving\n  // their DSC from the span/client. Ignored segments are an explicit exception: they preserve the\n  // incoming DSC but override its sampling decision to agree with the propagated `sentry-trace`.\n  //\n  // We spread into a new object so applying the local sample rate can't mutate the scope's DSC.\n  const isNonRecordingRoot = spanIsNonRecordingSpan(rootSpan);\n  const isIgnoredRoot = isNonRecordingRoot && rootSpan.dropReason === 'ignored';\n  if (isNonRecordingRoot && (!hasSpansEnabled(client.getOptions()) || isIgnoredRoot)) {\n    const capturedScope = getCapturedScopesOnSpan(rootSpan).scope;\n    // The scope yields no DSC while an external propagation context is active. We do have a Sentry\n    // span here though, so we are head of *its* trace: fall through and derive the DSC from the span\n    // rather than emitting an empty one.\n    const scopeDsc = capturedScope && getDynamicSamplingContextFromScope(client, capturedScope);\n    if (scopeDsc) {\n      const dsc = { ...scopeDsc };\n      if (isIgnoredRoot) {\n        dsc.sampled = 'false';\n      }\n      return applyLocalSampleRateToDsc(dsc);\n    }\n  }\n\n  // For OpenTelemetry, we freeze the DSC on the trace state\n  const traceStateDsc = traceState?.get('sentry.dsc');\n\n  // If the span has a DSC, we want it to take precedence\n  const dscOnTraceState = traceStateDsc && baggageHeaderToDynamicSamplingContext(traceStateDsc);\n\n  if (dscOnTraceState) {\n    return applyLocalSampleRateToDsc(dscOnTraceState);\n  }\n\n  // Else, we generate it from the span\n  const dsc = getDynamicSamplingContextFromClient(span.spanContext().traceId, client);\n\n  // We don't want to have a transaction name in the DSC if the source is \"url\" because URLs might contain PII\n  const source = rootSpanAttributes[SENTRY_SEGMENT_NAME_SOURCE];\n\n  // after JSON conversion, txn.name becomes jsonSpan.description\n  const name = rootSpanJson.description;\n  if (source !== 'url' && name) {\n    dsc.transaction = name;\n  }\n\n  // How can we even land here with hasSpansEnabled() returning false?\n  // Otel creates a Non-recording span in Tracing Without Performance mode when handling incoming requests\n  // So we end up with an active span that is not sampled (neither positively nor negatively)\n  if (hasSpansEnabled()) {\n    dsc.sampled = String(spanIsSampled(rootSpan));\n    dsc.sample_rand =\n      // In OTEL we store the sample rand on the trace state because we cannot access scopes for NonRecordingSpans\n      // The Sentry OTEL SpanSampler takes care of writing the sample rand on the root span\n      traceState?.get('sentry.sample_rand') ??\n      // On all other platforms we can actually get the scopes from a root span (we use this as a fallback)\n      getCapturedScopesOnSpan(rootSpan).scope?.getPropagationContext().sampleRand.toString();\n  }\n\n  applyLocalSampleRateToDsc(dsc);\n\n  client.emit('createDsc', dsc, rootSpan);\n\n  return dsc;\n}\n\n/**\n * Convert a Span to a baggage header.\n */\nexport function spanToBaggageHeader(span: Span): string | undefined {\n  const dsc = getDynamicSamplingContextFromSpan(span);\n  return dynamicSamplingContextToSentryBaggageHeader(dsc);\n}\n","import { getGlobalScope } from '../currentScopes';\nimport type { Scope, ScopeData } from '../scope';\nimport { getDynamicSamplingContextFromSpan } from '../tracing/dynamicSamplingContext';\nimport type { Breadcrumb } from '../types/breadcrumb';\nimport type { Event } from '../types/event';\nimport type { Span } from '../types/span';\nimport { merge } from './merge';\nimport { getRootSpan, spanToStaticSpanJSON, spanToTraceContext } from './spanUtils';\n\n/**\n * Applies data from the scope to the event and runs all event processors on it.\n */\nexport function applyScopeDataToEvent(event: Event, data: ScopeData): void {\n  const { fingerprint, breadcrumbs, sdkProcessingMetadata } = data;\n\n  applyDataToEvent(event, data);\n  applyFingerprintToEvent(event, fingerprint);\n  applyBreadcrumbsToEvent(event, breadcrumbs);\n  applySdkMetadataToEvent(event, sdkProcessingMetadata);\n}\n\n/** Merge data of two scopes together. */\nexport function mergeScopeData(data: ScopeData, mergeData: ScopeData): void {\n  const {\n    extra,\n    tags,\n    attributes,\n    user,\n    contexts,\n    level,\n    sdkProcessingMetadata,\n    breadcrumbs,\n    fingerprint,\n    eventProcessors,\n    attachments,\n    propagationContext,\n    transactionName,\n  } = mergeData;\n\n  mergeAndOverwriteScopeData(data, 'extra', extra);\n  mergeAndOverwriteScopeData(data, 'tags', tags);\n  mergeAndOverwriteScopeData(data, 'attributes', attributes);\n  mergeAndOverwriteScopeData(data, 'user', user);\n  mergeAndOverwriteScopeData(data, 'contexts', contexts);\n\n  data.sdkProcessingMetadata = merge(data.sdkProcessingMetadata, sdkProcessingMetadata, 2);\n\n  if (level) {\n    data.level = level;\n  }\n\n  if (transactionName) {\n    data.transactionName = transactionName;\n  }\n\n  if (breadcrumbs.length) {\n    data.breadcrumbs = [...data.breadcrumbs, ...breadcrumbs];\n  }\n\n  if (fingerprint.length) {\n    data.fingerprint = [...data.fingerprint, ...fingerprint];\n  }\n\n  if (eventProcessors.length) {\n    data.eventProcessors = [...data.eventProcessors, ...eventProcessors];\n  }\n\n  if (attachments.length) {\n    data.attachments = [...data.attachments, ...attachments];\n  }\n\n  data.propagationContext = { ...data.propagationContext, ...propagationContext };\n}\n\n/**\n * Merges certain scope data. Undefined values will overwrite any existing values.\n * Exported only for tests.\n */\nexport function mergeAndOverwriteScopeData<\n  Prop extends 'extra' | 'tags' | 'attributes' | 'user' | 'contexts' | 'sdkProcessingMetadata',\n  Data extends ScopeData,\n>(data: Data, prop: Prop, mergeVal: Data[Prop]): void {\n  data[prop] = merge(data[prop], mergeVal, 1);\n}\n\n/** Exported only for tests */\nexport function mergeArray<Prop extends 'breadcrumbs' | 'fingerprint'>(\n  event: Event,\n  prop: Prop,\n  mergeVal: ScopeData[Prop],\n): void {\n  const prevVal = event[prop];\n  // If we are not merging any new values,\n  // we only need to proceed if there was an empty array before (as we want to replace it with undefined)\n  if (!mergeVal.length && (!prevVal || prevVal.length)) {\n    return;\n  }\n\n  const merged = [...(prevVal || []), ...mergeVal] as ScopeData[Prop];\n  event[prop] = merged.length ? merged : undefined;\n}\n\n/**\n * Get the scope data for the current scope after merging with the\n * global scope and isolation scope.\n *\n * @param currentScope - The current scope.\n * @returns The scope data.\n */\nexport function getCombinedScopeData(isolationScope: Scope | undefined, currentScope: Scope | undefined): ScopeData {\n  const scopeData = getGlobalScope().getScopeData();\n  isolationScope && mergeScopeData(scopeData, isolationScope.getScopeData());\n  currentScope && mergeScopeData(scopeData, currentScope.getScopeData());\n  return scopeData;\n}\n\nfunction applyDataToEvent(event: Event, data: ScopeData): void {\n  const { extra, tags, user, contexts, level, transactionName } = data;\n\n  if (Object.keys(extra).length) {\n    event.extra = { ...extra, ...event.extra };\n  }\n\n  if (Object.keys(tags).length) {\n    event.tags = { ...tags, ...event.tags };\n  }\n\n  if (Object.keys(user).length) {\n    event.user = { ...user, ...event.user };\n  }\n\n  if (Object.keys(contexts).length) {\n    event.contexts = { ...contexts, ...event.contexts };\n  }\n\n  if (level) {\n    event.level = level;\n  }\n\n  // transaction events get their `transaction` from the root span name\n  if (transactionName && event.type !== 'transaction') {\n    event.transaction = transactionName;\n  }\n}\n\nfunction applyBreadcrumbsToEvent(event: Event, breadcrumbs: Breadcrumb[]): void {\n  const mergedBreadcrumbs = [...(event.breadcrumbs || []), ...breadcrumbs];\n  event.breadcrumbs = mergedBreadcrumbs.length ? mergedBreadcrumbs : undefined;\n}\n\nfunction applySdkMetadataToEvent(event: Event, sdkProcessingMetadata: ScopeData['sdkProcessingMetadata']): void {\n  event.sdkProcessingMetadata = {\n    ...event.sdkProcessingMetadata,\n    ...sdkProcessingMetadata,\n  };\n}\n\n/** Apply a given span to the event. */\nexport function applySpanToEvent(event: Event, span: Span): void {\n  event.contexts = {\n    trace: spanToTraceContext(span),\n    ...event.contexts,\n  };\n\n  event.sdkProcessingMetadata = {\n    dynamicSamplingContext: getDynamicSamplingContextFromSpan(span),\n    ...event.sdkProcessingMetadata,\n  };\n\n  const rootSpan = getRootSpan(span);\n  const transactionName = spanToStaticSpanJSON(rootSpan).description;\n  if (transactionName && !event.transaction && event.type === 'transaction') {\n    event.transaction = transactionName;\n  }\n}\n\n/**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\nfunction applyFingerprintToEvent(event: Event, fingerprint: ScopeData['fingerprint'] | undefined): void {\n  // Make sure it's an array first and we actually have something in place\n  event.fingerprint = event.fingerprint\n    ? Array.isArray(event.fingerprint)\n      ? event.fingerprint\n      : [event.fingerprint]\n    : [];\n\n  // If we have something on the scope, then merge it with event\n  if (fingerprint) {\n    event.fingerprint = event.fingerprint.concat(fingerprint);\n  }\n\n  // If we have no data at all, remove empty array default\n  if (!event.fingerprint.length) {\n    delete event.fingerprint;\n  }\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from './debug-logger';\nimport { isThenable } from './is';\n\n/**\n * Lets a `safeCallback` fallback signal \"the callback failed\" as opposed to \"the callback returned `null`\",\n * so the call site can report the drop as `callback_error`. Always return it, never throw it: a thrown\n * sentinel would have to be caught at every boundary, and some of those (e.g. `prepareEvent`) are public.\n */\nexport const CALLBACK_ERROR = Symbol.for('SentryCallbackError');\n\n/**\n * Invokes a user-provided callback (e.g. `beforeSend`, `tracesSampler`, an integration hook) so that\n * neither a synchronous throw nor a rejected promise escapes into the caller. On failure the error is\n * logged and `fallback(error)` supplies the result instead.\n *\n * Not for `startSpan` bodies: those must re-throw and are handled by `handleCallbackErrors`.\n *\n * @param message - Logged via `debug.error` together with the error. Pass it as `DEBUG_BUILD ? '...' : ''`\n *   so the string is tree-shaken from non-debug bundles.\n * @param fn - Invokes the callback.\n * @param fallback - Produces the result to use when the callback throws or rejects.\n */\nexport function safeCallback<T>(message: string, fn: () => T, fallback: (error: unknown) => T): T {\n  let result: T;\n  try {\n    result = fn();\n  } catch (error) {\n    return recover(message, error, fallback);\n  }\n\n  if (isThenable(result)) {\n    return result.then(undefined, (error: unknown) => recover(message, error, fallback)) as T;\n  }\n\n  return result;\n}\n\nfunction recover<T>(message: string, error: unknown, fallback: (error: unknown) => T): T {\n  DEBUG_BUILD && debug.error(message, error);\n  return fallback(error);\n}\n","import { DEBUG_BUILD } from '../../debug-build';\nimport type { BeforeSendStaticSpanCallback, BeforeSendStreamedSpanCallback } from '../../types/options';\nimport type { SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { addNonEnumerableProperty } from '../../utils/object';\nimport { safeCallback } from '../../utils/safeCallback';\n\n/**\n * A wrapper to use the static, transaction-based span format in your `beforeSendSpan` callback.\n *\n * When using `traceLifecycle: 'static'`, wrap your callback with this function\n * to receive and return a static span instead of a {@link StreamedSpanJSON}.\n *\n * @example\n *\n * Sentry.init({\n *   traceLifecycle: 'static',\n *   beforeSendSpan: withStaticSpan((span) => {\n *     // span is of type SpanJSON\n *     return span;\n *   }),\n * });\n *\n * @param callback - A {@link BeforeSendStaticSpanCallback} that receives and returns a static span.\n * @returns A callback that is compatible with the `beforeSendSpan` option when using `traceLifecycle: 'static'`.\n */\nexport function withStaticSpan(callback: BeforeSendStaticSpanCallback): BeforeSendStreamedSpanCallback {\n  addNonEnumerableProperty(callback, '_static', true);\n  // `beforeSendSpan` is typed as a single streamed callback so that an unwrapped callback's parameter\n  // is contextually typed as `StreamedSpanJSON`. The `_static` marker tells the SDK to hand this\n  // callback a `SpanJSON` instead, so the declared parameter type is deliberately not what it receives.\n  return callback as unknown as BeforeSendStreamedSpanCallback;\n}\n\n/**\n * A wrapper to explicitly use the streamed span format in your `beforeSendSpan` callback.\n *\n * @deprecated `beforeSendSpan` callbacks receive {@link StreamedSpanJSON} by default.\n * This function returns the callback unchanged and will be removed in SDK version 12.\n *\n * @param callback - The callback function that receives and returns a {@link StreamedSpanJSON}.\n * @returns The provided callback.\n */\nexport function withStreamedSpan(\n  callback: (span: StreamedSpanJSON) => StreamedSpanJSON,\n): BeforeSendStreamedSpanCallback {\n  return callback;\n}\n\n/**\n * Typesafe check to identify if a `beforeSendSpan` callback expects the static span JSON format.\n *\n * @param callback - The `beforeSendSpan` callback to check.\n * @returns `true` if the callback was wrapped with {@link withStaticSpan}.\n */\nexport function isStaticBeforeSendSpanCallback(callback: unknown): callback is BeforeSendStaticSpanCallback {\n  return !!callback && typeof callback === 'function' && '_static' in callback && !!callback._static;\n}\n\n/**\n * Apply a user-provided beforeSendSpan callback to a span JSON.\n */\nexport function applyBeforeSendSpanCallback<T extends StreamedSpanJSON | SpanJSON>(\n  span: T,\n  beforeSendSpan: (span: T) => T,\n): T {\n  // Spans are captured synchronously when they end, so a throwing callback would otherwise\n  // propagate into whatever user code ended the span.\n  const modifiedSpan = safeCallback(\n    DEBUG_BUILD ? 'The `beforeSendSpan` callback threw an error, sending the span unmodified:' : '',\n    () => beforeSendSpan(span),\n    () => span,\n  );\n  return modifiedSpan || span;\n}\n","import type { RawAttributes } from '../../attributes';\nimport type { SerializedStreamedSpan, SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { streamedSpanJsonToSerializedSpan } from '../../utils/spanUtils';\n\n/**\n * Converts a v1 SpanJSON (from a legacy transaction) to a serialized v2 StreamedSpan.\n */\nexport function spanJsonToSerializedStreamedSpan(span: SpanJSON): SerializedStreamedSpan {\n  const streamedSpan: StreamedSpanJSON = {\n    trace_id: span.trace_id,\n    span_id: span.span_id,\n    parent_span_id: span.parent_span_id,\n    name: span.description || '',\n    start_timestamp: span.start_timestamp,\n    end_timestamp: span.timestamp,\n    status: !span.status || span.status === 'ok' || span.status === 'cancelled' ? 'ok' : 'error',\n    is_segment: false,\n    attributes: { ...(span.data as RawAttributes<Record<string, unknown>>) },\n    links: span.links,\n  };\n\n  return streamedSpanJsonToSerializedSpan(streamedSpan);\n}\n","import {\n  ANGULAR_VERSION,\n  CULTURE_LOCALE,\n  CULTURE_TIMEZONE,\n  HTTP_RESPONSE_BODY_SIZE,\n  HTTP_RESPONSE_STATUS_CODE,\n  REACT_VERSION,\n  SENTRY_PROFILER_ID,\n  SENTRY_PROFILE_ID,\n  STATE_TYPE,\n} from '@sentry/conventions/attributes';\nimport type { Contexts } from '../../types/context';\n\n/**\n * Convert known scope contexts set by SDK integrations to span attributes.\n * Only maps context keys that are relevant to browser SDKs.\n * Server-only contexts (aws, gcp, trpc) are handled\n * by processSegmentSpan hooks in their respective packages.\n */\nexport function scopeContextsToSpanAttributes(contexts: Contexts): Record<string, unknown> {\n  const attrs: Record<string, unknown> = {};\n\n  const { response, profile, cloud_resource, culture, state } = contexts;\n\n  if (response) {\n    if (response.status_code != null) {\n      attrs[HTTP_RESPONSE_STATUS_CODE] = response.status_code;\n    }\n    if (response.body_size != null) {\n      attrs[HTTP_RESPONSE_BODY_SIZE] = response.body_size;\n    }\n  }\n\n  if (profile) {\n    if (profile.profile_id) {\n      attrs[SENTRY_PROFILE_ID] = profile.profile_id;\n    }\n    if (profile.profiler_id) {\n      attrs[SENTRY_PROFILER_ID] = profile.profiler_id;\n    }\n  }\n\n  // CloudResourceContext keys are already in dot-notation (OTel resource conventions)\n  if (cloud_resource) {\n    for (const [key, value] of Object.entries(cloud_resource)) {\n      if (value != null) {\n        attrs[key] = value;\n      }\n    }\n  }\n\n  if (culture) {\n    if (culture.locale) {\n      attrs[CULTURE_LOCALE] = culture.locale;\n    }\n    if (culture.timezone) {\n      attrs[CULTURE_TIMEZONE] = culture.timezone;\n    }\n  }\n\n  if (state?.state && typeof state.state.type === 'string') {\n    attrs[STATE_TYPE] = state.state.type;\n  }\n\n  // Framework version contexts\n  const angular = contexts['angular'];\n  if (angular) {\n    const version = angular['version'];\n    if (typeof version === 'string' || typeof version === 'number') {\n      attrs[ANGULAR_VERSION] = version;\n    }\n  }\n\n  const react = contexts['react'];\n  if (react) {\n    const version = react['version'];\n    if (typeof version === 'string' || typeof version === 'number') {\n      attrs[REACT_VERSION] = version;\n    }\n  }\n\n  return attrs;\n}\n","import type { RawAttributes } from '../../attributes';\nimport type { Client } from '../../client';\nimport type { ScopeData } from '../../scope';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME } from '../../semanticAttributes';\nimport type { SerializedStreamedSpan, Span, SpanAttributeValue, SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { getCombinedScopeData } from '../../utils/scopeData';\nimport {\n  INTERNAL_getSegmentSpan,\n  spanToStaticSpanJSON,\n  spanToJSON,\n  streamedSpanJsonToSerializedSpan,\n} from '../../utils/spanUtils';\nimport { getCapturedScopesOnSpan } from '../utils';\nimport { applyBeforeSendSpanCallback, isStaticBeforeSendSpanCallback } from './beforeSendSpan';\nimport { spanJsonToSerializedStreamedSpan } from './spanJsonToStreamedSpan';\nimport { scopeContextsToSpanAttributes } from './scopeContextAttributes';\nimport { DEFAULT_ENVIRONMENT } from '../../constants';\nimport {\n  SENTRY_SDK_NAME,\n  SENTRY_SDK_VERSION,\n  SENTRY_SEGMENT_ID,\n  SENTRY_SEGMENT_NAME,\n  SENTRY_TRACE_LIFECYCLE,\n  USER_EMAIL,\n  USER_ID,\n  USER_IP_ADDRESS,\n  USER_NAME,\n  SENTRY_ENVIRONMENT,\n  SENTRY_RELEASE,\n  SENTRY_SDK_INTEGRATIONS,\n} from '@sentry/conventions/attributes';\n\nexport type SerializedStreamedSpanWithSegmentSpan = SerializedStreamedSpan & {\n  _segmentSpan: Span;\n  _segmentNameAtCapture?: string;\n};\n\n/**\n * Captures a span and returns a JSON representation to be enqueued for sending.\n *\n * IMPORTANT: This function converts the span to JSON immediately to avoid writing\n * to an already-ended OTel span instance (which is blocked by the OTel Span class).\n *\n * @returns the final serialized span with a reference to its segment span. This reference\n * is needed later on to compute the DSC and the final segment name for the span envelope.\n */\nexport function captureSpan(span: Span, client: Client): SerializedStreamedSpanWithSegmentSpan {\n  // Convert to JSON FIRST - we cannot write to an already-ended span\n  const spanJSON = spanToJSON(span);\n  if (spanJSON.attributes) {\n    // oxlint-disable-next-line typescript/no-dynamic-delete\n    delete spanJSON.attributes[SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];\n  }\n\n  const segmentSpan = INTERNAL_getSegmentSpan(span);\n  const serializedSegmentSpan = spanToJSON(segmentSpan);\n\n  const { isolationScope: spanIsolationScope, scope: spanScope } = getCapturedScopesOnSpan(span);\n\n  const finalScopeData = getCombinedScopeData(spanIsolationScope, spanScope);\n\n  applyCommonSpanAttributes(spanJSON, serializedSegmentSpan, client, finalScopeData);\n\n  // Preprocess the span JSON before any other hooks run, so that `processSpan`/`processSegmentSpan`\n  // subscribers (incl. integrations) and `beforeSendSpan` see fully inferred span data.\n  client.emit('preprocessSpan', spanJSON);\n\n  if (spanJSON.is_segment) {\n    applyScopeToSegmentSpan(spanJSON, finalScopeData);\n    applySdkMetadataToSegmentSpan(spanJSON, client);\n    // Allow hook subscribers to mutate the segment span JSON\n    // This also invokes the `processSegmentSpan` hook of all integrations\n    client.emit('processSegmentSpan', spanJSON);\n  }\n\n  // This allows hook subscribers to mutate the span JSON\n  // This also invokes the `processSpan` hook of all integrations\n  client.emit('processSpan', spanJSON);\n\n  const { beforeSendSpan, traceLifecycle } = client.getOptions();\n  const processedSpan =\n    // check for traceLifecycle here because in static lifecycle,\n    // captureSpan is called for INP spans. If an unmigrated beforeSendSpan\n    // callback is run on these spans, it will throw an error.\n    traceLifecycle !== 'static' && beforeSendSpan && !isStaticBeforeSendSpanCallback(beforeSendSpan)\n      ? applyBeforeSendSpanCallback(spanJSON, beforeSendSpan)\n      : spanJSON;\n\n  return {\n    ...streamedSpanJsonToSerializedSpan(processedSpan),\n    _segmentSpan: segmentSpan,\n    _segmentNameAtCapture: serializedSegmentSpan.name,\n  };\n}\n\nfunction applyScopeToSegmentSpan(segmentSpanJSON: StreamedSpanJSON, scopeData: ScopeData): void {\n  const contextAttributes = scopeContextsToSpanAttributes(scopeData.contexts);\n  safeSetSpanJSONAttributes(segmentSpanJSON, contextAttributes);\n}\n\n/**\n * Safely set attributes on a span JSON.\n * If an attribute already exists, it will not be overwritten.\n */\nexport function safeSetSpanJSONAttributes(\n  spanJSON: StreamedSpanJSON,\n  newAttributes: RawAttributes<Record<string, unknown>>,\n): void {\n  const originalAttributes = spanJSON.attributes ?? (spanJSON.attributes = {});\n\n  Object.entries(newAttributes).forEach(([key, value]) => {\n    if (value != null && !(key in originalAttributes)) {\n      originalAttributes[key] = value;\n    }\n  });\n}\n\nfunction applySdkMetadataToSegmentSpan(segmentSpanJSON: StreamedSpanJSON, client: Client): void {\n  const integrationNames = client.getIntegrationNames();\n  if (!integrationNames.length) return;\n\n  safeSetSpanJSONAttributes(segmentSpanJSON, {\n    [SENTRY_SDK_INTEGRATIONS]: integrationNames,\n  });\n}\n\nfunction commonSpanAttributes(\n  serializedSegmentSpan: StreamedSpanJSON,\n  client: Client,\n  scopeData: ScopeData,\n  // TODO(standalone): remove this param (always include scope attributes) once the static (transaction)\n  // trace lifecycle is dropped and standalone spans no longer need to look transaction-shaped.\n  includeScopeAttributes = true,\n): RawAttributes<Record<string, unknown>> {\n  const sdk = client.getSdkMetadata();\n  const { release, environment } = client.getOptions();\n\n  return {\n    [SENTRY_TRACE_LIFECYCLE]: 'stream',\n    [SENTRY_SEGMENT_NAME]: serializedSegmentSpan.name,\n    [SENTRY_SEGMENT_ID]: serializedSegmentSpan.span_id,\n    [SENTRY_SDK_NAME]: sdk?.sdk?.name,\n    [SENTRY_SDK_VERSION]: sdk?.sdk?.version,\n    [SENTRY_RELEASE]: release,\n    [SENTRY_ENVIRONMENT]: environment || DEFAULT_ENVIRONMENT,\n    [USER_ID]: scopeData.user?.id,\n    [USER_EMAIL]: scopeData.user?.email,\n    [USER_IP_ADDRESS]: scopeData.user?.ip_address,\n    [USER_NAME]: scopeData.user?.username,\n    ...(includeScopeAttributes ? scopeData.attributes : undefined),\n  };\n}\n\nfunction applyCommonSpanAttributes(\n  spanJSON: StreamedSpanJSON,\n  serializedSegmentSpan: StreamedSpanJSON,\n  client: Client,\n  scopeData: ScopeData,\n): void {\n  // avoid overwriting any previously set attributes (from users or potentially our SDK instrumentation)\n  safeSetSpanJSONAttributes(spanJSON, commonSpanAttributes(serializedSegmentSpan, client, scopeData));\n}\n\n/**\n * Captures a standalone span whose `beforeSendSpan` callback expects the v1 {@link SpanJSON} format\n * (i.e. the user opted out of span streaming). The span is serialized to v1, the common attributes are\n * applied, the callback runs in its native format, and the result is converted forward to a serialized\n * v2 span. This mirrors how gen_ai spans reach the v2 span path from a static transaction (a plain\n * conversion, no `processSpan` hooks), so there is never a reverse v2 -> v1 conversion.\n *\n * TODO(standalone): remove once the static (transaction) trace lifecycle is dropped.\n */\nexport function captureStandaloneSpanWithStaticCallback(\n  span: Span,\n  client: Client,\n  beforeSendSpan: (span: SpanJSON) => SpanJSON,\n): SerializedStreamedSpan {\n  const spanJSON = spanToStaticSpanJSON(span);\n\n  const segmentSpan = INTERNAL_getSegmentSpan(span);\n  const serializedSegmentSpan = spanToJSON(segmentSpan);\n\n  const { isolationScope: spanIsolationScope, scope: spanScope } = getCapturedScopesOnSpan(span);\n  const finalScopeData = getCombinedScopeData(spanIsolationScope, spanScope);\n\n  // Skip scope attributes: their `{ unit, value }` shape is unexpected for a static callback, and like\n  // transactions, standalone spans don't get them.\n  const commonAttributes = commonSpanAttributes(serializedSegmentSpan, client, finalScopeData, false);\n  Object.entries(commonAttributes).forEach(([key, value]) => {\n    if (value != null && !(key in spanJSON.data)) {\n      spanJSON.data[key] = value as SpanAttributeValue;\n    }\n  });\n\n  const processedSpan = applyBeforeSendSpanCallback(spanJSON, beforeSendSpan);\n\n  return spanJsonToSerializedStreamedSpan(processedSpan);\n}\n","import type { Client } from '../../client';\n\n/**\n * Determines if span streaming is enabled for the given client\n */\nexport function hasSpanStreamingEnabled(client: Client): boolean {\n  return client.getOptions().traceLifecycle === 'stream';\n}\n","/**\n * Calls `unref` on a timer, if the method is available on @param timer.\n *\n * `unref()` is used to allow processes to exit immediately, even if the timer\n * is still running and hasn't resolved yet.\n *\n * Use this in places where code can run on browser or server, since browsers\n * do not support `unref`.\n */\nexport function safeUnref(timer: ReturnType<typeof setTimeout>): ReturnType<typeof setTimeout> {\n  if (typeof timer === 'object' && typeof timer.unref === 'function') {\n    timer.unref();\n  }\n  return timer;\n}\n","import { getSentryCarrier } from '../carrier';\nimport type { Attachment } from '../types/attachment';\nimport type { DataCategory } from '../types/datacategory';\nimport type { DsnComponents } from '../types/dsn';\nimport type {\n  AttachmentItem,\n  BaseEnvelopeHeaders,\n  BaseEnvelopeItemHeaders,\n  Envelope,\n  EnvelopeItemType,\n  EventEnvelopeHeaders,\n} from '../types/envelope';\nimport type { Event, EventType } from '../types/event';\nimport type { SdkInfo } from '../types/sdkinfo';\nimport type { SdkMetadata } from '../types/sdkmetadata';\nimport { dsnToString } from './dsn';\nimport { normalize } from './normalize';\nimport { safeDateNow } from './randomSafeContext';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Creates an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nexport function createEnvelope<E extends Envelope>(headers: E[0], items: E[1] = []): E {\n  return [headers, items] as E;\n}\n\n/**\n * Add an item to an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nexport function addItemToEnvelope<E extends Envelope>(envelope: E, newItem: E[1][number]): E {\n  const [headers, items] = envelope;\n  return [headers, [...items, newItem]] as unknown as E;\n}\n\n/**\n * Convenience function to loop through the items and item types of an envelope.\n * (This function was mostly created because working with envelope types is painful at the moment)\n *\n * If the callback returns true, the rest of the items will be skipped.\n */\nexport function forEachEnvelopeItem<E extends Envelope>(\n  envelope: Envelope,\n  callback: (envelopeItem: E[1][number], envelopeItemType: E[1][number][0]['type']) => boolean | void,\n): boolean {\n  const envelopeItems = envelope[1];\n\n  for (const envelopeItem of envelopeItems) {\n    const envelopeItemType = envelopeItem[0].type;\n    const result = callback(envelopeItem, envelopeItemType);\n\n    if (result) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\n/**\n * Returns true if the envelope contains any of the given envelope item types\n */\nexport function envelopeContainsItemType(envelope: Envelope, types: EnvelopeItemType[]): boolean {\n  return forEachEnvelopeItem(envelope, (_, type) => types.includes(type));\n}\n\n/**\n * Encode a string to UTF8 array.\n */\nfunction encodeUTF8(input: string): Uint8Array {\n  const carrier = getSentryCarrier(GLOBAL_OBJ);\n  return carrier.encodePolyfill ? carrier.encodePolyfill(input) : new TextEncoder().encode(input);\n}\n\n/**\n * Decode a UTF8 array to string.\n */\nfunction decodeUTF8(input: Uint8Array): string {\n  const carrier = getSentryCarrier(GLOBAL_OBJ);\n  return carrier.decodePolyfill ? carrier.decodePolyfill(input) : new TextDecoder().decode(input);\n}\n\n/**\n * Serializes an envelope.\n */\nexport function serializeEnvelope(envelope: Envelope): string | Uint8Array {\n  const [envHeaders, items] = envelope;\n  // Initially we construct our envelope as a string and only convert to binary chunks if we encounter binary data\n  let parts: string | Uint8Array[] = JSON.stringify(envHeaders);\n\n  function append(next: string | Uint8Array): void {\n    if (typeof parts === 'string') {\n      parts = typeof next === 'string' ? parts + next : [encodeUTF8(parts), next];\n    } else {\n      parts.push(typeof next === 'string' ? encodeUTF8(next) : next);\n    }\n  }\n\n  for (const item of items) {\n    const [itemHeaders, payload] = item;\n\n    append(`\\n${JSON.stringify(itemHeaders)}\\n`);\n\n    if (typeof payload === 'string' || payload instanceof Uint8Array) {\n      append(payload);\n    } else {\n      let stringifiedPayload: string;\n      try {\n        stringifiedPayload = JSON.stringify(payload);\n      } catch {\n        // In case, despite all our efforts to keep `payload` circular-dependency-free, `JSON.stringify()` still\n        // fails, we try again after normalizing it again with infinite normalization depth. This of course has a\n        // performance impact but in this case a performance hit is better than throwing.\n        stringifiedPayload = JSON.stringify(normalize(payload));\n      }\n      append(stringifiedPayload);\n    }\n  }\n\n  return typeof parts === 'string' ? parts : concatBuffers(parts);\n}\n\nfunction concatBuffers(buffers: Uint8Array[]): Uint8Array {\n  const totalLength = buffers.reduce((acc, buf) => acc + buf.length, 0);\n\n  const merged = new Uint8Array(totalLength);\n  let offset = 0;\n  for (const buffer of buffers) {\n    merged.set(buffer, offset);\n    offset += buffer.length;\n  }\n\n  return merged;\n}\n\n/**\n * Parses an envelope\n */\nexport function parseEnvelope(env: string | Uint8Array): Envelope {\n  let buffer = typeof env === 'string' ? encodeUTF8(env) : env;\n\n  function readBinary(length: number): Uint8Array {\n    const bin = buffer.subarray(0, length);\n    // Replace the buffer with the remaining data excluding trailing newline\n    buffer = buffer.subarray(length + 1);\n    return bin;\n  }\n\n  function readJson<T>(): T {\n    let i = buffer.indexOf(0xa);\n    // If we couldn't find a newline, we must have found the end of the buffer\n    if (i < 0) {\n      i = buffer.length;\n    }\n\n    return JSON.parse(decodeUTF8(readBinary(i))) as T;\n  }\n\n  const envelopeHeader = readJson<BaseEnvelopeHeaders>();\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  const items: [any, any][] = [];\n\n  while (buffer.length) {\n    const itemHeader = readJson<BaseEnvelopeItemHeaders>();\n    const binaryLength = typeof itemHeader.length === 'number' ? itemHeader.length : undefined;\n\n    items.push([itemHeader, binaryLength ? readBinary(binaryLength) : readJson()]);\n  }\n\n  return [envelopeHeader, items];\n}\n\n/**\n * Creates attachment envelope items\n */\nexport function createAttachmentEnvelopeItem(attachment: Attachment): AttachmentItem {\n  const buffer = typeof attachment.data === 'string' ? encodeUTF8(attachment.data) : attachment.data;\n\n  return [\n    {\n      type: 'attachment',\n      length: buffer.length,\n      filename: attachment.filename,\n      content_type: attachment.contentType,\n      attachment_type: attachment.attachmentType,\n    },\n    buffer,\n  ];\n}\n\ntype OverriddenItemType = Exclude<EnvelopeItemType, DataCategory>;\n\n// Map of envelope item types to data categories where the category differs from the type.\n// Types that map to themselves (session, attachment, transaction, profile, feedback, span, trace_metric) fall through.\nconst DATA_CATEGORY_OVERRIDES: Record<OverriddenItemType, DataCategory> = {\n  sessions: 'session',\n  event: 'error',\n  client_report: 'internal',\n  user_report: 'default',\n  profile_chunk: 'profile',\n  replay_event: 'replay',\n  replay_recording: 'replay',\n  check_in: 'monitor',\n  raw_security: 'security',\n  log: 'log_item',\n  metric: 'trace_metric',\n};\n\nfunction _isOverriddenType(type: EnvelopeItemType): type is OverriddenItemType {\n  return type in DATA_CATEGORY_OVERRIDES;\n}\n\n/**\n * Maps the type of an envelope item to a data category.\n */\nexport function envelopeItemTypeToDataCategory(type: EnvelopeItemType): DataCategory {\n  return _isOverriddenType(type) ? DATA_CATEGORY_OVERRIDES[type] : type;\n}\n\n/** Extracts the minimal SDK info from the metadata or an events */\nexport function getSdkMetadataForEnvelopeHeader(metadataOrEvent?: SdkMetadata | Event): SdkInfo | undefined {\n  if (!metadataOrEvent?.sdk) {\n    return;\n  }\n  const { name, version } = metadataOrEvent.sdk;\n  return { name, version };\n}\n\n/**\n * Creates event envelope headers, based on event, sdk info and tunnel\n * Note: This function was extracted from the core package to make it available in Replay\n */\nexport function createEventEnvelopeHeaders(\n  event: Event,\n  sdkInfo: SdkInfo | undefined,\n  tunnel: string | undefined,\n  dsn?: DsnComponents,\n): EventEnvelopeHeaders {\n  const dynamicSamplingContext = event.sdkProcessingMetadata?.dynamicSamplingContext;\n  return {\n    event_id: event.event_id as string,\n    sent_at: new Date(safeDateNow()).toISOString(),\n    ...(sdkInfo && { sdk: sdkInfo }),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n    ...(dynamicSamplingContext && {\n      trace: dynamicSamplingContext,\n    }),\n  };\n}\n\n/**\n * Maps an event type to the data category used for client reports.\n */\nexport function getDataCategoryByType(type: EventType): DataCategory {\n  return type === 'replay_event' ? 'replay' : type || 'error';\n}\n","/*\n * This module exists for optimizations in the build process through rollup and terser.  We define some global\n * constants, which can be overridden during build. By guarding certain pieces of code with functions that return these\n * constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will\n * never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to\n * `debug` and preventing node-related code from appearing in browser bundles.\n *\n * Attention:\n * This file should not be used to define constants/flags that are intended to be used for tree-shaking conducted by\n * users. These flags should live in their respective packages, as we identified user tooling (specifically webpack)\n * having issues tree-shaking these constants across package boundaries.\n * An example for this is the __SENTRY_DEBUG__ constant. It is declared in each package individually because we want\n * users to be able to shake away expressions that it guards.\n */\n\ndeclare const __SENTRY_BROWSER_BUNDLE__: boolean | undefined;\n\nexport type SdkSource = 'npm' | 'cdn' | 'loader' | 'aws-lambda-layer';\n\n/**\n * Figures out if we're building a browser bundle.\n *\n * @returns true if this is a browser bundle build.\n */\nexport function isBrowserBundle(): boolean {\n  return typeof __SENTRY_BROWSER_BUNDLE__ !== 'undefined' && !!__SENTRY_BROWSER_BUNDLE__;\n}\n\n/**\n * Get source of SDK.\n */\nexport function getSDKSource(): SdkSource {\n  // The `/*! ... */` marker is replaced by our CDN bundle build step with `return 'cdn';`.\n  // It uses the `/*!` legal-comment syntax specifically so it survives esbuild's transpile\n  // (which strips ordinary `/* ... */` block comments).\n  /*! __SENTRY_SDK_SOURCE__ */ return 'npm';\n}\n","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the `debug` singleton, or b) put your function elsewhere.\n */\n\nimport { isBrowserBundle } from './env';\n\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nexport function isNodeEnv(): boolean {\n  // explicitly check for browser bundles as those can be optimized statically\n  // by terser/rollup.\n  return (\n    !isBrowserBundle() &&\n    Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'\n  );\n}\n\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction dynamicRequire(mod: any, request: string): any {\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n  return mod.require(request);\n}\n\n/**\n * Helper for dynamically loading module that should work with linked dependencies.\n * The problem is that we _should_ be using `require(require.resolve(moduleName, { paths: [cwd()] }))`\n * However it's _not possible_ to do that with Webpack, as it has to know all the dependencies during\n * build time. `require.resolve` is also not available in any other way, so we cannot create,\n * a fake helper like we do with `dynamicRequire`.\n *\n * We always prefer to use local package, thus the value is not returned early from each `try/catch` block.\n * That is to mimic the behavior of `require.resolve` exactly.\n *\n * @param moduleName module name to require\n * @param existingModule module to use for requiring\n * @returns possibly required module\n */\nexport function loadModule<T>(\n  moduleName: string,\n  // Default parameters are evaluated before the body runs, so a bare `module` would throw a\n  // ReferenceError in ESM before reaching the try/catch below that makes this helper degrade\n  // gracefully. Guard it so the ESM build resolves to `undefined` instead of crashing.\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  existingModule: any = typeof module !== 'undefined' ? module : undefined,\n): T | undefined {\n  let mod: T | undefined;\n\n  try {\n    mod = dynamicRequire(existingModule, moduleName);\n  } catch {\n    // no-empty\n  }\n\n  if (!mod) {\n    try {\n      const { cwd } = dynamicRequire(existingModule, 'process');\n      mod = dynamicRequire(existingModule, `${cwd()}/node_modules/${moduleName}`) as T;\n    } catch {\n      // no-empty\n    }\n  }\n\n  return mod;\n}\n","import { isNodeEnv } from './node';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Returns true if we are in the browser.\n */\nexport function isBrowser(): boolean {\n  // eslint-disable-next-line no-restricted-globals\n  return typeof window !== 'undefined' && (!isNodeEnv() || isElectronNodeRenderer());\n}\n\ntype ElectronProcess = { type?: string };\n\n// Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them\nfunction isElectronNodeRenderer(): boolean {\n  const process = (GLOBAL_OBJ as typeof GLOBAL_OBJ & { process?: ElectronProcess }).process;\n  return process?.type === 'renderer';\n}\n","import type { Client } from '../../client';\nimport type { DynamicSamplingContext, SpanContainerItem, StreamedSpanEnvelope } from '../../types/envelope';\nimport type { SerializedStreamedSpan } from '../../types/span';\nimport { dsnToString } from '../../utils/dsn';\nimport { createEnvelope, getSdkMetadataForEnvelopeHeader } from '../../utils/envelope';\nimport { isBrowser } from '../../utils/isBrowser';\nimport { safeDateNow } from '../../utils/randomSafeContext';\n\n/**\n * Creates a span v2 span streaming envelope\n */\nexport function createStreamedSpanEnvelope(\n  serializedSpans: Array<SerializedStreamedSpan>,\n  dsc: Partial<DynamicSamplingContext>,\n  client: Client,\n): StreamedSpanEnvelope {\n  const options = client.getOptions();\n  const dsn = client.getDsn();\n  const tunnel = options.tunnel;\n  const sdk = getSdkMetadataForEnvelopeHeader(options._metadata);\n\n  const headers: StreamedSpanEnvelope[0] = {\n    sent_at: new Date(safeDateNow()).toISOString(),\n    ...(dscHasRequiredProps(dsc) && { trace: dsc }),\n    ...(sdk && { sdk }),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n  };\n\n  return createEnvelope<StreamedSpanEnvelope>(headers, [createSpanContainerItem(serializedSpans, client)]);\n}\n\n/**\n * Builds a span v2 container envelope item from already-serialized streamed spans.\n */\nexport function createSpanContainerItem(\n  serializedSpans: Array<SerializedStreamedSpan>,\n  client: Client,\n): SpanContainerItem {\n  const inferSetting = client.getDataCollectionOptions().userInfo ? 'auto' : 'never';\n\n  return [\n    { type: 'span', item_count: serializedSpans.length, content_type: 'application/vnd.sentry.items.span.v2+json' },\n    {\n      version: 2,\n      ingest_settings: isBrowser() ? { infer_ip: inferSetting, infer_user_agent: inferSetting } : undefined,\n      items: serializedSpans,\n    },\n  ];\n}\n\nfunction dscHasRequiredProps(dsc: Partial<DynamicSamplingContext>): dsc is DynamicSamplingContext {\n  return !!dsc.trace_id && !!dsc.public_key;\n}\n","import { estimateTypedAttributesSizeInBytes } from '../../attributes';\nimport type { SerializedStreamedSpan } from '../../types/span';\n\n/**\n * Estimates the serialized byte size of a {@link SerializedStreamedSpan}.\n *\n * Uses 2 bytes per character as a UTF-16 approximation, and 8 bytes per number.\n * The estimate is intentionally conservative and may be slightly lower than the\n * actual byte size on the wire.\n * We compensate for this by setting the span buffers internal limit well below the limit\n * of how large an actual span v2 envelope may be.\n */\nexport function estimateSerializedSpanSizeInBytes(span: SerializedStreamedSpan): number {\n  /*\n   * Fixed-size fields are pre-computed as a constant for performance:\n   * - two timestamps (8 bytes each = 16)\n   * - is_segment boolean (5 bytes, assumed false for most spans)\n   * - trace_id  – always 32 hex chars (64 bytes)\n   * - span_id   – always 16 hex chars (32 bytes)\n   * - parent_span_id – 16 hex chars, assumed present for most spans (32 bytes)\n   * - status \"ok\" – most common value (8 bytes)\n   * = 156 bytes total base\n   */\n  let weight = 156;\n  weight += span.name.length * 2;\n  weight += estimateTypedAttributesSizeInBytes(span.attributes);\n  if (span.links && span.links.length > 0) {\n    // Assumption: Links are roughly equal in number of attributes\n    // probably not always true but allows us to cut down on runtime\n    const firstLink = span.links[0];\n    const attributes = firstLink?.attributes;\n    // Fixed size 100 due to span_id, trace_id and sampled flag (see above)\n    const linkWeight = 100 + (attributes ? estimateTypedAttributesSizeInBytes(attributes) : 0);\n    weight += linkWeight * span.links.length;\n  }\n  return weight;\n}\n","import type { Client } from '../../client';\nimport { DEBUG_BUILD } from '../../debug-build';\nimport type { SerializedStreamedSpan, Span } from '../../types/span';\nimport { debug } from '../../utils/debug-logger';\nimport { spanToJSON } from '../../utils/spanUtils';\nimport { safeUnref } from '../../utils/timer';\nimport { getDynamicSamplingContextFromSpan } from '../dynamicSamplingContext';\nimport type { SerializedStreamedSpanWithSegmentSpan } from './captureSpan';\nimport { createStreamedSpanEnvelope } from './envelope';\nimport { estimateSerializedSpanSizeInBytes } from './estimateSize';\nimport { SENTRY_SEGMENT_NAME } from '@sentry/conventions/attributes';\n\n/**\n * We must not send more than 1000 spans in one envelope.\n * Otherwise the envelope is dropped by Relay.\n */\nconst MAX_SPANS_PER_ENVELOPE = 1000;\n\nconst MAX_TRACE_WEIGHT_IN_BYTES = 5_000_000;\n\ninterface TraceBucket {\n  spans: Set<SerializedStreamedSpanWithSegmentSpan>;\n  size: number;\n  timeout: ReturnType<typeof setTimeout>;\n}\n\nexport interface SpanBufferOptions {\n  /**\n   * Max spans per trace before auto-flush\n   * Must not exceed 1000.\n   *\n   * @default 1_000\n   */\n  maxSpanLimit?: number;\n\n  /**\n   * Per-trace flush timeout in ms. A timeout is started when a trace bucket is first created\n   * and fires flush() for that specific trace when it expires.\n   * Must be greater than 0.\n   *\n   * @default 5_000\n   */\n  flushInterval?: number;\n\n  /**\n   * Max accumulated byte weight of spans per trace before auto-flush.\n   * Size is estimated, not exact. Uses 2 bytes per character for strings (UTF-16).\n   *\n   * @default 5_000_000 (5 MB)\n   */\n  maxTraceWeightInBytes?: number;\n}\n\n/**\n * A buffer for serialized streamed span JSON objects that flushes them to Sentry in Span v2 envelopes.\n * Handles per-trace timeout-based flushing, size thresholds, and graceful shutdown.\n * Also handles computation of the Dynamic Sampling Context (DSC) for the trace, if it wasn't yet\n * frozen onto the segment span.\n *\n * For this, we need the reference to the segment span instance, from\n * which we compute the DSC. Doing this in the buffer ensures that we compute the DSC as late as possible,\n * allowing span name and data updates up to this point. Worth noting here that the segment span is likely\n * still active and modifyable when child spans are added to the buffer.\n */\nexport class SpanBuffer {\n  /* Bucket spans by their trace id, along with accumulated size and a per-trace flush timeout */\n  private _traceBuckets: Map<string, TraceBucket>;\n\n  private _client: Client;\n  private _maxSpanLimit: number;\n  private _flushInterval: number;\n  private _maxTraceWeight: number;\n\n  public constructor(client: Client, options?: SpanBufferOptions) {\n    this._traceBuckets = new Map();\n    this._client = client;\n\n    const { maxSpanLimit, flushInterval, maxTraceWeightInBytes } = options ?? {};\n\n    this._maxSpanLimit =\n      maxSpanLimit && maxSpanLimit > 0 && maxSpanLimit <= MAX_SPANS_PER_ENVELOPE\n        ? maxSpanLimit\n        : MAX_SPANS_PER_ENVELOPE;\n    this._flushInterval = flushInterval && flushInterval > 0 ? flushInterval : 5_000;\n    this._maxTraceWeight =\n      maxTraceWeightInBytes && maxTraceWeightInBytes > 0 ? maxTraceWeightInBytes : MAX_TRACE_WEIGHT_IN_BYTES;\n\n    this._client.on('flush', () => {\n      this.drain();\n    });\n\n    this._client.on('close', () => {\n      // No need to drain the buffer here as `Client.close()` internally already calls `Client.flush()`\n      // which already invokes the `flush` hook and thus drains the buffer.\n      this._traceBuckets.forEach(bucket => {\n        clearTimeout(bucket.timeout);\n      });\n      this._traceBuckets.clear();\n    });\n  }\n\n  /**\n   * Add a span to the buffer.\n   */\n  public add(spanJSON: SerializedStreamedSpanWithSegmentSpan): void {\n    const traceId = spanJSON.trace_id;\n    let bucket = this._traceBuckets.get(traceId);\n\n    if (!bucket) {\n      bucket = {\n        spans: new Set(),\n        size: 0,\n        timeout: safeUnref(\n          setTimeout(() => {\n            this.flush(traceId);\n          }, this._flushInterval),\n        ),\n      };\n      this._traceBuckets.set(traceId, bucket);\n    }\n\n    bucket.spans.add(spanJSON);\n    bucket.size += estimateSerializedSpanSizeInBytes(spanJSON);\n\n    if (bucket.spans.size >= this._maxSpanLimit || bucket.size >= this._maxTraceWeight) {\n      this.flush(traceId);\n    }\n  }\n\n  /**\n   * Drain and flush all buffered traces.\n   */\n  public drain(): void {\n    if (!this._traceBuckets.size) {\n      return;\n    }\n\n    DEBUG_BUILD && debug.log(`Flushing span tree map with ${this._traceBuckets.size} traces`);\n\n    this._traceBuckets.forEach((_, traceId) => {\n      this.flush(traceId);\n    });\n  }\n\n  /**\n   * Flush spans of a specific trace.\n   * In contrast to {@link SpanBuffer.drain}, this method does not flush all traces, but only the one with the given traceId.\n   */\n  public flush(traceId: string): void {\n    const bucket = this._traceBuckets.get(traceId);\n    if (!bucket) {\n      return;\n    }\n\n    if (!bucket.spans.size) {\n      // we should never get here, given we always add a span when we create a new bucket\n      // and delete the bucket once we flush out the trace\n      this._removeTrace(traceId);\n      return;\n    }\n\n    const spans = Array.from(bucket.spans);\n\n    const segmentSpan = spans[0]?._segmentSpan;\n    if (!segmentSpan) {\n      DEBUG_BUILD && debug.warn('No segment span reference found on span JSON, cannot compute DSC');\n      this._removeTrace(traceId);\n      return;\n    }\n\n    const dsc = getDynamicSamplingContextFromSpan(segmentSpan);\n\n    const currentSegmentNames = new Map<Span, string>();\n    const getCurrentSegmentName = (span: Span): string => {\n      let name = currentSegmentNames.get(span);\n      if (name === undefined) {\n        name = spanToJSON(span).name;\n        currentSegmentNames.set(span, name);\n      }\n      return name;\n    };\n\n    const cleanedSpans: SerializedStreamedSpan[] = spans.map(spanJSON => {\n      const { _segmentSpan, _segmentNameAtCapture, ...cleanSpanJSON } = spanJSON;\n      refreshSegmentName(cleanSpanJSON, _segmentNameAtCapture, () => getCurrentSegmentName(_segmentSpan));\n      return cleanSpanJSON;\n    });\n\n    const envelope = createStreamedSpanEnvelope(cleanedSpans, dsc, this._client);\n\n    DEBUG_BUILD && debug.log(`Sending span envelope for trace ${traceId} with ${cleanedSpans.length} spans`);\n\n    this._client.sendEnvelope(envelope).then(null, reason => {\n      DEBUG_BUILD && debug.error('Error while sending streamed span envelope:', reason);\n    });\n\n    this._removeTrace(traceId);\n  }\n\n  private _removeTrace(traceId: string): void {\n    const bucket = this._traceBuckets.get(traceId);\n    if (bucket) {\n      clearTimeout(bucket.timeout);\n    }\n    this._traceBuckets.delete(traceId);\n  }\n}\n\n/**\n * Spans are captured when they end, but the segment span can still be renamed afterwards\n * (e.g. once the route is known). Only replace the value we set at capture time, so that\n * values set by users or `beforeSendSpan` are kept.\n */\nfunction refreshSegmentName(\n  spanJSON: SerializedStreamedSpan,\n  segmentNameAtCapture: string | undefined,\n  getCurrentSegmentName: () => string,\n): void {\n  const segmentNameAttribute = spanJSON.attributes[SENTRY_SEGMENT_NAME];\n  if (segmentNameAtCapture === undefined || segmentNameAttribute?.value !== segmentNameAtCapture) {\n    return;\n  }\n\n  const currentSegmentName = getCurrentSegmentName();\n  if (currentSegmentName !== segmentNameAtCapture) {\n    spanJSON.attributes[SENTRY_SEGMENT_NAME] = { ...segmentNameAttribute, value: currentSegmentName };\n  }\n}\n","import type { IntegrationFn } from '../types/integration';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { defineIntegration } from '../integration';\nimport { captureSpan } from '../tracing/spans/captureSpan';\nimport { hasSpanStreamingEnabled } from '../tracing/spans/hasSpanStreamingEnabled';\nimport { SpanBuffer } from '../tracing/spans/spanBuffer';\nimport { debug } from '../utils/debug-logger';\nimport { spanIsSampled } from '../utils/spanUtils';\nimport { safeUnref } from '../utils/timer';\n\nexport const INTEGRATION_NAME = 'SpanStreaming' as const;\n\ninterface SpanStreamingOptions {\n  /**\n   * When enabled, a trace is flushed shortly after its segment span ends, rather than relying solely\n   * on the buffer's timeout/size thresholds or an explicit `flushTraceSpans` emission.\n   *\n   *\n   * @default true\n   */\n  flushOnSegmentEnd?: boolean;\n}\n\nexport const spanStreamingIntegration = defineIntegration((options: SpanStreamingOptions = {}) => {\n  const flushOnSegmentEnd = options.flushOnSegmentEnd ?? true;\n\n  return {\n    name: INTEGRATION_NAME,\n\n    setup(client) {\n      if (!hasSpanStreamingEnabled(client)) {\n        DEBUG_BUILD && debug.log(`[${INTEGRATION_NAME}] \\`traceLifecycle\\` is \"static\", skipping setup.`);\n        return;\n      }\n\n      const buffer = new SpanBuffer(client);\n\n      client.on('afterSpanEnd', span => {\n        if (!spanIsSampled(span)) {\n          return;\n        }\n        buffer.add(captureSpan(span, client));\n      });\n\n      // Lets runtimes flush a single trace eagerly (e.g. the Cloudflare SDK draining\n      // a trace the moment its segment ends), without exposing the buffer itself.\n      client.on('flushTraceSpans', traceId => {\n        buffer.flush(traceId);\n      });\n\n      if (flushOnSegmentEnd) {\n        // Also flush the trace when the segment span ends to ensure things are sent timely.\n        client.on('afterSegmentSpanEnd', segmentSpan => {\n          const traceId = segmentSpan.spanContext().traceId;\n          // `safeUnref` so an enabled `flushOnSegmentEnd` on a server runtime can't keep the\n          // process alive until the timer fires (no-op in the browser, where it's the default path).\n          safeUnref(\n            setTimeout(() => {\n              buffer.flush(traceId);\n            }, 500),\n          );\n        });\n      }\n    },\n  };\n}) satisfies IntegrationFn;\n","import { getTraceContextFromScope } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport type { TraceContext } from '../types/context';\nimport type { Event, EventHint } from '../types/event';\nimport type { Span } from '../types/span';\nimport { isPrimitive } from './is';\nimport { spanIsSampled, spanToTraceContext } from './spanUtils';\n\n/**\n * The trace context of the span an error escaped, keyed by the error itself.\n *\n * We store the trace context rather than the span because that is the shape we apply to the event\n * later, and it snapshots the span as it failed instead of reading it back once it has ended.\n */\nconst escapedSpanTraceContexts = new WeakMap<object, TraceContext>();\n\n/**\n * A `WeakMap` can only be keyed by an object, so an error thrown as a primitive (`throw 'boom'`)\n * has nothing we can hang the span on and is left unattributed.\n */\nfunction toWeakMapKey(error: unknown): object | undefined {\n  return isPrimitive(error) ? undefined : error;\n}\n\n/**\n * Remember which span an error escaped, so a later `captureException` can attribute the error to\n * the span that actually failed instead of whichever span happens to be active at capture time.\n *\n * The first span to see the error wins: as an error unwinds through nested spans, the innermost\n * one is the one that failed. Unsampled spans are skipped because they are never sent, so their\n * span id would point at a span that does not exist. Sampling rather than `isRecording()` is what\n * matters here: a span ended before the error escaped it, which is the norm for `startSpanManual`,\n * has stopped recording but is still sent.\n */\nexport function recordEscapedErrorSpan(error: unknown, span: Span): void {\n  const key = toWeakMapKey(error);\n\n  if (!key || !spanIsSampled(span) || escapedSpanTraceContexts.has(key)) {\n    return;\n  }\n\n  escapedSpanTraceContexts.set(key, spanToTraceContext(span));\n}\n\n/**\n * Attribute an error event to the span the error escaped, if we recorded one.\n *\n * This only applies within the error's own trace. The stored span id is meaningless in another\n * trace, and the event's dynamic sampling context (which the envelope header is built from) is\n * derived from the root span of the trace the event is already on. Rewriting the trace id here\n * would leave the envelope header and body naming different traces.\n */\nexport function applyEscapedErrorSpanToEvent(event: Event, hint: EventHint, scope: Scope | undefined): void {\n  const key = toWeakMapKey(hint.originalException);\n  const traceContext = key && escapedSpanTraceContexts.get(key);\n\n  if (!traceContext) {\n    return;\n  }\n\n  // An error captured with no active span has no trace context yet: the scope's is merged in\n  // further downstream. Resolve the trace the event will end up on the same way that merge does,\n  // so the check below still knows which trace we are on.\n  const eventTraceContext = event.contexts?.trace;\n  const eventTraceId = eventTraceContext?.trace_id ?? (scope && getTraceContextFromScope(scope).trace_id);\n\n  if (eventTraceId !== traceContext.trace_id) {\n    return;\n  }\n\n  event.contexts = {\n    ...event.contexts,\n    trace: {\n      ...eventTraceContext,\n      ...traceContext,\n    },\n  };\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { Span } from '../types/span';\nimport { debug } from '../utils/debug-logger';\nimport { getRootSpan, spanIsSampled, spanToStaticSpanJSON } from '../utils/spanUtils';\n\n/**\n * Print a log message for a started span.\n */\nexport function logSpanStart(span: Span): void {\n  if (!DEBUG_BUILD) return;\n\n  const {\n    description = '< unknown name >',\n    op = '< unknown op >',\n    parent_span_id: parentSpanId,\n  } = spanToStaticSpanJSON(span);\n  const { spanId } = span.spanContext();\n\n  const sampled = spanIsSampled(span);\n  const rootSpan = getRootSpan(span);\n  const isRootSpan = rootSpan === span;\n\n  const header = `[Tracing] Starting ${sampled ? 'sampled' : 'unsampled'} ${isRootSpan ? 'root ' : ''}span`;\n\n  const infoParts: string[] = [`op: ${op}`, `name: ${description}`, `ID: ${spanId}`];\n\n  if (parentSpanId) {\n    infoParts.push(`parent ID: ${parentSpanId}`);\n  }\n\n  if (!isRootSpan) {\n    const { op, description } = spanToStaticSpanJSON(rootSpan);\n    infoParts.push(`root ID: ${rootSpan.spanContext().spanId}`);\n    if (op) {\n      infoParts.push(`root op: ${op}`);\n    }\n    if (description) {\n      infoParts.push(`root description: ${description}`);\n    }\n  }\n\n  debug.log(`${header}\n  ${infoParts.join('\\n  ')}`);\n}\n\n/**\n * Print a log message for an ended span.\n */\nexport function logSpanEnd(span: Span): void {\n  if (!DEBUG_BUILD) return;\n\n  const { description = '< unknown name >', op = '< unknown op >' } = spanToStaticSpanJSON(span);\n  const { spanId } = span.spanContext();\n  const rootSpan = getRootSpan(span);\n  const isRootSpan = rootSpan === span;\n\n  const msg = `[Tracing] Finishing \"${op}\" ${isRootSpan ? 'root ' : ''}span \"${description}\" with ID ${spanId}`;\n  debug.log(msg);\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { CoreOptions } from '../types/options';\nimport type { SamplingContext } from '../types/samplingcontext';\nimport { debug } from '../utils/debug-logger';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { parseSampleRate } from '../utils/parseSampleRate';\nimport { safeCallback } from '../utils/safeCallback';\n\n/**\n * Makes a sampling decision for the given options.\n *\n * Called every time a root span is created. Only root spans which emerge with a `sampled` value of `true` will be\n * sent to Sentry.\n */\nexport function sampleSpan(\n  options: Pick<CoreOptions, 'tracesSampleRate' | 'tracesSampler'>,\n  samplingContext: SamplingContext,\n  sampleRand: number,\n): [sampled: boolean, sampleRate?: number, localSampleRateWasApplied?: boolean, dropReason?: 'callback_error'] {\n  // nothing to do if span recording is not enabled\n  if (!hasSpansEnabled(options)) {\n    return [false];\n  }\n\n  const resolved = resolveSampleRate(options, samplingContext);\n  if (!resolved) {\n    // `hasSpansEnabled` guarantees either `tracesSampleRate` or `tracesSampler` is set, so the only way to end up\n    // without a sample rate is a throwing `tracesSampler` with nothing to fall back to.\n    return [false, undefined, undefined, 'callback_error'];\n  }\n  const [sampleRate, localSampleRateWasApplied] = resolved;\n\n  // Since this is coming from the user (or from a function provided by the user), who knows what we might get.\n  // (The only valid values are booleans or numbers between 0 and 1.)\n  const parsedSampleRate = parseSampleRate(sampleRate);\n\n  if (parsedSampleRate === undefined) {\n    DEBUG_BUILD &&\n      debug.warn(\n        `[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(\n          sampleRate,\n        )} of type ${JSON.stringify(typeof sampleRate)}.`,\n      );\n    return [false];\n  }\n\n  // if the function returned 0 (or false), or if `tracesSampleRate` is 0, it's a sign the transaction should be dropped\n  if (!parsedSampleRate) {\n    DEBUG_BUILD &&\n      debug.log(\n        `[Tracing] Discarding transaction because ${\n          typeof options.tracesSampler === 'function'\n            ? 'tracesSampler returned 0 or false'\n            : 'a negative sampling decision was inherited or tracesSampleRate is set to 0'\n        }`,\n      );\n    return [false, parsedSampleRate, localSampleRateWasApplied];\n  }\n\n  // We always compare the sample rand for the current execution context against the chosen sample rate.\n  // Read more: https://develop.sentry.dev/sdk/telemetry/traces/#propagated-random-value\n  const shouldSample = sampleRand < parsedSampleRate;\n\n  // if we're not going to keep it, we're done\n  if (!shouldSample) {\n    DEBUG_BUILD &&\n      debug.log(\n        `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(\n          sampleRate,\n        )})`,\n      );\n  }\n\n  return [shouldSample, parsedSampleRate, localSampleRateWasApplied];\n}\n\n/**\n * Prefers `tracesSampler`. If it throws, falls back to the parent decision, then `tracesSampleRate`.\n * Returns `undefined` when there is nothing to fall back to.\n */\nfunction resolveSampleRate(\n  options: Pick<CoreOptions, 'tracesSampleRate' | 'tracesSampler'>,\n  samplingContext: SamplingContext,\n): [sampleRate: unknown, localSampleRateWasApplied?: boolean] | undefined {\n  const { tracesSampler, tracesSampleRate } = options;\n\n  if (typeof tracesSampler === 'function') {\n    const samplerResult = safeCallback(\n      DEBUG_BUILD\n        ? 'The `tracesSampler` callback threw an error, falling back to the parent sampling decision or `tracesSampleRate`:'\n        : '',\n      (): [unknown, boolean] => [\n        tracesSampler({\n          ...samplingContext,\n          inheritOrSampleWith: fallbackSampleRate => {\n            // If we have an incoming parent sample rate, we'll just use that one.\n            // The sampling decision will be inherited because of the sample_rand that was generated when the trace reached the incoming boundaries of the SDK.\n            if (typeof samplingContext.parentSampleRate === 'number') {\n              return samplingContext.parentSampleRate;\n            }\n\n            // Fallback if parent sample rate is not on the incoming trace (e.g. if there is no baggage)\n            // This is to provide backwards compatibility if there are incoming traces from older SDKs that don't send a parent sample rate or a sample rand. In these cases we just want to force either a sampling decision on the downstream traces via the sample rate.\n            if (typeof samplingContext.parentSampled === 'boolean') {\n              return Number(samplingContext.parentSampled);\n            }\n\n            return fallbackSampleRate;\n          },\n        }),\n        true,\n      ],\n      () => undefined,\n    );\n    if (samplerResult) {\n      return samplerResult;\n    }\n  }\n\n  if (samplingContext.parentSampled !== undefined) {\n    return [samplingContext.parentSampled];\n  }\n\n  if (typeof tracesSampleRate !== 'undefined') {\n    return [tracesSampleRate, true];\n  }\n\n  return undefined;\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport {\n  SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,\n  SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,\n} from '../semanticAttributes';\nimport type { Measurements, MeasurementUnit } from '../types/measurement';\nimport type { TimedEvent } from '../types/timedEvent';\nimport { debug } from '../utils/debug-logger';\nimport { getActiveSpan, getRootSpan } from '../utils/spanUtils';\n\n/**\n * Adds a measurement to the active transaction on the current global scope. You can optionally pass in a different span\n * as the 4th parameter.\n */\nexport function setMeasurement(name: string, value: number, unit: MeasurementUnit, activeSpan = getActiveSpan()): void {\n  const rootSpan = activeSpan && getRootSpan(activeSpan);\n\n  if (rootSpan) {\n    DEBUG_BUILD && debug.log(`[Measurement] Setting measurement on root span: ${name} = ${value} ${unit}`);\n    rootSpan.addEvent(name, {\n      [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]: value,\n      [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]: unit as string,\n    });\n  }\n}\n\n/**\n * Convert timed events to measurements.\n */\nexport function timedEventsToMeasurements(events: TimedEvent[]): Measurements | undefined {\n  if (!events || events.length === 0) {\n    return undefined;\n  }\n\n  const measurements: Measurements = {};\n  events.forEach(event => {\n    const attributes = event.attributes || {};\n    const unit = attributes[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT] as MeasurementUnit | undefined;\n    const value = attributes[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE] as number | undefined;\n\n    if (typeof unit === 'string' && typeof value === 'number') {\n      measurements[event.name] = { value, unit };\n    }\n  });\n\n  return measurements;\n}\n","import { getMainCarrier, getSentryCarrier } from '../carrier';\nimport type { Scope } from '../scope';\nimport type { TransactionEvent } from '../types/event';\nimport type { Span } from '../types/span';\n\n/**\n * Callbacks the deferred-capture strategy hands to `_convertSpanToTransaction` when assembling a\n * transaction. The synchronous (browser) path calls the converter with no options, so neither runs.\n */\nexport interface SegmentSpanCaptureConvertOptions {\n  /** Skip a descendant already sent in an earlier transaction, so it isn't sent twice. */\n  isSpanAlreadyCaptured?: (span: Span) => boolean;\n  /** Record each span included here, so a child that ends after the snapshot can be emitted as an orphan. */\n  onSpanCaptured?: (span: Span) => void;\n}\n\nexport type SegmentSpanConverter = (options?: SegmentSpanCaptureConvertOptions) => TransactionEvent | undefined;\n\n/**\n * Assembles segment spans into transactions. Registered by SDKs that defer capture (see\n * `_INTERNAL_setDeferSegmentSpanCapture`); when unset, `SentrySpan` captures synchronously. Living\n * behind this seam tree-shakes the deferral machinery out of SDKs that never register one (e.g. browser).\n */\nexport interface SegmentSpanCaptureStrategy {\n  /** Assemble and capture a segment (root or standalone-root) span's transaction through its captured scope. */\n  onSegmentSpanEnded(convert: SegmentSpanConverter, scope: Scope): void;\n  /** Consider a child that ended after its segment for emission as its own orphan transaction. */\n  onChildSpanEnded(span: Span, rootSpan: Span, convert: SegmentSpanConverter, scope: Scope): void;\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Set the global segment-span capture strategy (or clear it with `undefined`).\n */\nexport function setSegmentSpanCaptureStrategy(strategy: SegmentSpanCaptureStrategy | undefined): void {\n  getSentryCarrier(getMainCarrier()).segmentSpanCaptureStrategy = strategy;\n}\n\n/** Get the global segment-span capture strategy, or `undefined` when none is registered. */\nexport function getSegmentSpanCaptureStrategy(): SegmentSpanCaptureStrategy | undefined {\n  return getSentryCarrier(getMainCarrier()).segmentSpanCaptureStrategy;\n}\n","/* eslint-disable max-lines */\nimport { getClient, getCurrentScope } from '../currentScopes';\nimport { DEBUG_BUILD } from '../debug-build';\nimport {\n  SENTRY_PROFILE_ID,\n  SENTRY_EXCLUSIVE_TIME,\n  SENTRY_SEGMENT_NAME_SOURCE,\n  SENTRY_OP,\n  SENTRY_ORIGIN,\n} from '@sentry/conventions/attributes';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME } from '../semanticAttributes';\nimport type { Client } from '../client';\nimport type { TransactionEvent } from '../types/event';\nimport type { SpanLink } from '../types/link';\nimport type {\n  SentrySpanArguments,\n  Span,\n  SpanAttributes,\n  SpanAttributeValue,\n  SpanContextData,\n  SpanJSON,\n  SpanOrigin,\n  SpanTimeInput,\n  StreamedSpanJSON,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport type { TimedEvent } from '../types/timedEvent';\nimport { debug } from '../utils/debug-logger';\nimport { generateSpanId, generateTraceId } from '../utils/propagationContext';\nimport {\n  addStatusMessageAttribute,\n  convertSpanLinksForEnvelope,\n  getRootSpan,\n  getSimpleStatus,\n  getSpanDescendants,\n  getStatusMessage,\n  getStreamedSpanLinks,\n  INTERNAL_setSegmentNameSourceIfSegment,\n  spanIsSegment,\n  otelTimeInputToSeconds,\n  spanTimeInputToSeconds,\n  spanToStaticSpanJSON,\n  spanToTransactionTraceContext,\n  TRACE_FLAG_NONE,\n  TRACE_FLAG_SAMPLED,\n} from '../utils/spanUtils';\nimport { safePerformanceNow, timestampInSeconds } from '../utils/time';\nimport { getDynamicSamplingContextFromSpan } from './dynamicSamplingContext';\nimport { logSpanEnd } from './logSpans';\nimport { timedEventsToMeasurements } from './measurement';\nimport { getSegmentSpanCaptureStrategy, type SegmentSpanCaptureConvertOptions } from './segmentSpanCaptureStrategy';\nimport { isStaticBeforeSendSpanCallback } from './spans/beforeSendSpan';\nimport { captureSpan, captureStandaloneSpanWithStaticCallback } from './spans/captureSpan';\nimport { createStreamedSpanEnvelope } from './spans/envelope';\nimport { hasSpanStreamingEnabled } from './spans/hasSpanStreamingEnabled';\nimport { getCapturedScopesOnSpan, spanIsTracerProviderSpan } from './utils';\n\nconst MAX_SPAN_COUNT = 1000;\n\n/**\n * Span contains all data about a span\n */\nexport class SentrySpan implements Span {\n  protected _traceId: string;\n  protected _spanId: string;\n  protected _parentSpanId?: string | undefined;\n  protected _sampled: boolean | undefined;\n  protected _name?: string | undefined;\n  protected _attributes: SpanAttributes;\n  protected _links?: SpanLink[];\n  /** Epoch timestamp in seconds when the span started. */\n  protected _startTime: number;\n  /** Epoch timestamp in seconds when the span ended. */\n  protected _endTime?: number | undefined;\n  /** `performance.now()` in milliseconds when the span started. Only set if no start time was passed in. */\n  private _startPerformanceNow?: number | undefined;\n  /** Internal keeper of the status */\n  protected _status?: SpanStatus;\n  /** The timed events added to this span. */\n  protected _events: TimedEvent[];\n\n  /** if true, the span is sealed and ignores further mutations (set after end for tracer-provider spans) */\n  private _frozen?: boolean;\n\n  /**\n   * If true, the span is sent on its own as a v2 streamed span and is never folded into a\n   * transaction. Used for late web vital spans (INP) when span streaming is disabled.\n   *\n   * TODO(standalone): remove once the static (transaction) trace lifecycle is dropped and every\n   * span streams on its own. See the matching markers on `isStandaloneSpan`/`sendStandaloneSpan`,\n   * the `_convertSpanToTransaction` exclusion, and the `isStandalone`/`experimental.standalone` types.\n   */\n  private _isStandaloneSpan?: boolean;\n\n  /**\n   * You should never call the constructor manually, always use `Sentry.startSpan()`\n   * or other span methods.\n   * @internal\n   * @hideconstructor\n   * @hidden\n   */\n  public constructor(spanContext: SentrySpanArguments = {}) {\n    this._traceId = spanContext.traceId || generateTraceId();\n    this._spanId = spanContext.spanId || generateSpanId();\n    if (spanContext.startTimestamp) {\n      this._startTime = spanContext.startTimestamp;\n    } else {\n      this._startTime = timestampInSeconds();\n      this._startPerformanceNow = safePerformanceNow();\n    }\n    this._links = spanContext.links;\n\n    this._attributes = {};\n    this.setAttributes({\n      [SENTRY_ORIGIN]: 'manual',\n      [SENTRY_OP]: spanContext.op,\n      ...spanContext.attributes,\n    });\n\n    this._name = spanContext.name;\n\n    if (spanContext.parentSpanId) {\n      this._parentSpanId = spanContext.parentSpanId;\n    }\n    // We want to include booleans as well here\n    if ('sampled' in spanContext) {\n      this._sampled = spanContext.sampled;\n    }\n\n    this._events = [];\n\n    this._isStandaloneSpan = spanContext.isStandalone;\n  }\n\n  /** @inheritDoc */\n  public addLink(link: SpanLink): this {\n    if (this._frozen) {\n      return this;\n    }\n    if (this._links) {\n      this._links.push(link);\n    } else {\n      this._links = [link];\n    }\n    return this;\n  }\n\n  /** @inheritDoc */\n  public addLinks(links: SpanLink[]): this {\n    if (this._frozen) {\n      return this;\n    }\n    if (this._links) {\n      this._links.push(...links);\n    } else {\n      this._links = links;\n    }\n    return this;\n  }\n\n  /**\n   * This should generally not be used,\n   * but it is needed for being compliant with the OTEL Span interface.\n   *\n   * @hidden\n   * @internal\n   */\n  public recordException(_exception: unknown, _time?: SpanTimeInput | undefined): void {\n    // noop\n  }\n\n  /** @inheritdoc */\n  public spanContext(): SpanContextData {\n    const { _spanId: spanId, _traceId: traceId, _sampled: sampled } = this;\n    return {\n      spanId,\n      traceId,\n      traceFlags: sampled ? TRACE_FLAG_SAMPLED : TRACE_FLAG_NONE,\n    };\n  }\n\n  /** @inheritdoc */\n  public setAttribute(key: string, value: SpanAttributeValue | undefined): this {\n    if (this._frozen) {\n      return this;\n    }\n\n    // Allow `undefined` so `addChildSpanToSpan` can strip a leaked constructor-time value.\n    if (key === SENTRY_SEGMENT_NAME_SOURCE && value !== undefined && !spanIsSegment(this)) {\n      DEBUG_BUILD &&\n        debug.warn('[Tracing] Ignoring name source on a child span: this attribute is only valid on the root span.');\n      return this;\n    }\n\n    if (value === undefined) {\n      // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n      delete this._attributes[key];\n    } else {\n      this._attributes[key] = value;\n    }\n\n    return this;\n  }\n\n  /** @inheritdoc */\n  public setAttributes(attributes: SpanAttributes): this {\n    Object.keys(attributes).forEach(key => this.setAttribute(key, attributes[key]));\n    return this;\n  }\n\n  /**\n   * This should generally not be used,\n   * but we need it for browser tracing where we want to adjust the start time afterwards.\n   * USE THIS WITH CAUTION!\n   *\n   * @hidden\n   * @internal\n   */\n  public updateStartTime(timeInput: SpanTimeInput): void {\n    if (this._frozen) {\n      return;\n    }\n    this._startTime = timeInputToSeconds(this, timeInput);\n    this._startPerformanceNow = undefined;\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public setStatus(value: SpanStatus): this {\n    if (this._frozen) {\n      return this;\n    }\n    this._status = value;\n    return this;\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public updateName(name: string): this {\n    if (this._frozen) {\n      return this;\n    }\n    this._name = name;\n    INTERNAL_setSegmentNameSourceIfSegment(this, 'custom');\n\n    return this;\n  }\n\n  /** @inheritdoc */\n  public end(endTimestamp?: SpanTimeInput): void {\n    if (this._endTime) {\n      return;\n    }\n\n    this._endTime = endTimestamp == null ? this._getEndTimeFromDuration() : timeInputToSeconds(this, endTimestamp);\n    logSpanEnd(this);\n\n    this._onSpanEnded();\n\n    // A span created by the SentryTracerProvider is handed to OTel instrumentations as an OTel span,\n    // so once end-of-span processing is done it is sealed against further writes — mirroring the OpenTelemetry SDK,\n    // where setters no-op after a span has ended. Without this, an instrumentation that sets\n    // status/attributes after `end()` (e.g. Next.js on a render error) would overwrite the finalized\n    // values, and the deferred capture would then serialize those late writes. Spans created directly\n    // through the core API (e.g. the browser SDK, which backfills resource-timing attributes after a\n    // span ends) are not tracer-provider spans and stay mutable.\n    this._frozen = spanIsTracerProviderSpan(this);\n  }\n\n  /**\n   * Get JSON representation of this span.\n   *\n   * @hidden\n   * @internal This method is purely for internal purposes and should not be used outside\n   * of SDK code. If you need to get a JSON representation of a span,\n   * use `spanToJSON(span)` instead.\n   */\n  public getStaticSpanJSON(): SpanJSON {\n    return {\n      data: this._attributes,\n      description: this._name,\n      op: this._attributes[SENTRY_OP],\n      parent_span_id: this._parentSpanId,\n      span_id: this._spanId,\n      start_timestamp: this._startTime,\n      status: getStatusMessage(this._status),\n      timestamp: this._endTime,\n      trace_id: this._traceId,\n      origin: this._attributes[SENTRY_ORIGIN] as SpanOrigin | undefined,\n      profile_id: this._attributes[SENTRY_PROFILE_ID] as string | undefined,\n      exclusive_time: this._attributes[SENTRY_EXCLUSIVE_TIME] as number | undefined,\n      measurements: timedEventsToMeasurements(this._events),\n      links: convertSpanLinksForEnvelope(this._links),\n    };\n  }\n\n  /**\n   * Get {@link StreamedSpanJSON} representation of this span.\n   *\n   * @hidden\n   * @internal This method is purely for internal purposes and should not be used outside\n   * of SDK code. If you need to get a JSON representation of a span,\n   * use `spanToJSON(span)` instead.\n   */\n  public getSpanJSON(): StreamedSpanJSON {\n    return {\n      name: this._name ?? '',\n      span_id: this._spanId,\n      trace_id: this._traceId,\n      parent_span_id: this._parentSpanId,\n      start_timestamp: this._startTime,\n      end_timestamp: this._endTime,\n      is_segment: spanIsSegment(this),\n      status: getSimpleStatus(this._status),\n      attributes: addStatusMessageAttribute(this._attributes, this._status),\n      links: getStreamedSpanLinks(this._links),\n    };\n  }\n\n  /** @inheritdoc */\n  public isRecording(): boolean {\n    return !this._endTime && !!this._sampled;\n  }\n\n  /**\n   * @inheritdoc\n   */\n  public addEvent(\n    name: string,\n    attributesOrStartTime?: SpanAttributes | SpanTimeInput,\n    startTime?: SpanTimeInput,\n  ): this {\n    if (this._frozen) {\n      return this;\n    }\n    DEBUG_BUILD && debug.log('[Tracing] Adding an event to span:', name);\n\n    const time = isSpanTimeInput(attributesOrStartTime) ? attributesOrStartTime : startTime || undefined;\n    const attributes = isSpanTimeInput(attributesOrStartTime) ? {} : attributesOrStartTime || {};\n\n    const event: TimedEvent = {\n      name,\n      time: timeInputToSeconds(this, time),\n      attributes,\n    };\n\n    this._events.push(event);\n\n    return this;\n  }\n\n  /**\n   * Whether this span is sent on its own (as a v2 streamed span) rather than as part of a\n   * transaction. Used internally; see `_isStandaloneSpan`.\n   * @internal\n   */\n  public isStandaloneSpan(): boolean {\n    return !!this._isStandaloneSpan;\n  }\n\n  /**\n   * Returns the start time plus the `performance.now()` time since the span started.\n   *\n   * This way, the duration is correct even if the time origin was corrected while the span was running (e.g. after the\n   * device slept), and it can never be negative.\n   */\n  private _getEndTimeFromDuration(): number {\n    const performanceNow = safePerformanceNow();\n    if (this._startPerformanceNow == null || performanceNow == null) {\n      return timestampInSeconds();\n    }\n    return this._startTime + (performanceNow - this._startPerformanceNow) / 1000;\n  }\n\n  /** Emit `spanEnd` when the span is ended. */\n  private _onSpanEnded(): void {\n    const client = getClient();\n    client?.emit('spanEnd', this);\n\n    // A standalone span is sent on its own as a v2 streamed span and never becomes/joins a\n    // transaction, so we send it here and stop.\n    // TODO(standalone): once we drop the static (transaction) trace lifecycle entirely and everything\n    // streams, standalone spans are no longer needed (every span streams on its own) and this branch,\n    // the `_isStandaloneSpan` flag, and the `_convertSpanToTransaction` exclusion can all be removed.\n    if (this._isStandaloneSpan) {\n      if (!client) return;\n\n      if (this._sampled) {\n        sendStandaloneSpan(this, client);\n        return;\n      }\n\n      DEBUG_BUILD && debug.log('[Tracing] Discarding standalone span because its trace was not chosen to be sampled.');\n      return;\n    }\n\n    client?.emit('afterSpanEnd', this);\n\n    // Child spans aren't captured on their own. A registered strategy may re-emit a late child\n    // as its own orphan transaction; without one, it's dropped.\n    const rootSpan = getRootSpan(this);\n    if (rootSpan !== this) {\n      const strategy = getSegmentSpanCaptureStrategy();\n      if (strategy) {\n        const scope = getCapturedScopesOnSpan(this).scope || getCurrentScope();\n        strategy.onChildSpanEnded(this, rootSpan, options => this._convertSpanToTransaction(options), scope);\n      }\n      return;\n    }\n\n    if (client && hasSpanStreamingEnabled(client)) {\n      client.emit('afterSegmentSpanEnd', this);\n      return;\n    }\n\n    // A registered strategy defers the snapshot so children closing just after the segment still land\n    // (and late ones can orphan); without one, assemble synchronously from the live tree.\n    const scope = getCapturedScopesOnSpan(this).scope || getCurrentScope();\n    const strategy = getSegmentSpanCaptureStrategy();\n    if (strategy) {\n      strategy.onSegmentSpanEnded(options => this._convertSpanToTransaction(options), scope);\n    } else {\n      const transactionEvent = this._convertSpanToTransaction();\n      if (transactionEvent) {\n        scope.captureEvent(transactionEvent);\n      }\n    }\n  }\n\n  /**\n   * Finish the transaction & prepare the event to send to Sentry.\n   */\n  private _convertSpanToTransaction(options: SegmentSpanCaptureConvertOptions = {}): TransactionEvent | undefined {\n    // We can only convert finished spans\n    if (!isFullFinishedSpan(spanToStaticSpanJSON(this))) {\n      return undefined;\n    }\n\n    if (!this._name) {\n      DEBUG_BUILD && debug.warn('Transaction has no name, falling back to `<unlabeled transaction>`.');\n      this._name = '<unlabeled transaction>';\n    }\n\n    const { scope: capturedSpanScope, isolationScope: capturedSpanIsolationScope } = getCapturedScopesOnSpan(this);\n\n    const normalizedRequest = capturedSpanScope?.getScopeData().sdkProcessingMetadata?.normalizedRequest;\n\n    if (this._sampled !== true) {\n      return undefined;\n    }\n\n    // Skip the span itself, standalone spans (they are sent on their own), and (when a strategy\n    // tracks it) spans already sent. The synchronous default passes no hooks, so this bookkeeping\n    // stays out of SDKs that don't defer.\n    // TODO(standalone): drop the `isStandaloneSpan(descendant)` check once the static trace lifecycle is gone.\n    options.onSpanCaptured?.(this);\n    const spans: SpanJSON[] = [];\n    let droppedUnfinishedSpanCount = 0;\n    for (const descendant of getSpanDescendants(this)) {\n      if (descendant === this || isStandaloneSpan(descendant) || options.isSpanAlreadyCaptured?.(descendant)) {\n        continue;\n      }\n      const spanJSON = spanToStaticSpanJSON(descendant);\n      if (!isFullFinishedSpan(spanJSON)) {\n        // A strategy tracking captured spans re-emits this child as an orphan transaction once it ends.\n        if (!options.onSpanCaptured) {\n          droppedUnfinishedSpanCount++;\n        }\n        continue;\n      }\n      options.onSpanCaptured?.(descendant);\n      spans.push(spanJSON);\n    }\n\n    const client = capturedSpanScope?.getClient() || getClient();\n    if (droppedUnfinishedSpanCount) {\n      client?.recordDroppedEvent('invalid', 'span', droppedUnfinishedSpanCount);\n    }\n    if (spans.length > MAX_SPAN_COUNT) {\n      client?.recordDroppedEvent('buffer_overflow', 'span', spans.length - MAX_SPAN_COUNT);\n    }\n\n    const source = this._attributes[SENTRY_SEGMENT_NAME_SOURCE];\n\n    // remove internal root span attributes we don't need to send.\n    /* eslint-disable @typescript-eslint/no-dynamic-delete */\n    delete this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];\n    let hasGenAiSpans = false;\n    spans.forEach(span => {\n      delete span.data[SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];\n      if (span.op?.startsWith('gen_ai.')) {\n        hasGenAiSpans = true;\n      }\n    });\n    // eslint-enabled-next-line @typescript-eslint/no-dynamic-delete\n\n    const transaction: TransactionEvent = {\n      contexts: {\n        trace: spanToTransactionTraceContext(this),\n      },\n      spans:\n        // spans.sort() mutates the array, but `spans` is already a copy so we can safely do this here\n        // we do not use spans anymore after this point\n        spans.length > MAX_SPAN_COUNT\n          ? spans.sort((a, b) => a.start_timestamp - b.start_timestamp).slice(0, MAX_SPAN_COUNT)\n          : spans,\n      start_timestamp: this._startTime,\n      timestamp: this._endTime,\n      transaction: this._name,\n      type: 'transaction',\n      sdkProcessingMetadata: {\n        capturedSpanScope,\n        capturedSpanIsolationScope,\n        dynamicSamplingContext: getDynamicSamplingContextFromSpan(this),\n        hasGenAiSpans,\n      },\n      request: normalizedRequest,\n      ...(source && {\n        transaction_info: {\n          source,\n        },\n      }),\n    };\n\n    const measurements = timedEventsToMeasurements(this._events);\n    const hasMeasurements = measurements && Object.keys(measurements).length;\n\n    if (hasMeasurements) {\n      DEBUG_BUILD &&\n        debug.log(\n          '[Measurements] Adding measurements to transaction event',\n          JSON.stringify(measurements, undefined, 2),\n        );\n      transaction.measurements = measurements;\n    }\n\n    return transaction;\n  }\n}\n\nfunction timeInputToSeconds(span: SentrySpan, input: SpanTimeInput | undefined): number {\n  return spanIsTracerProviderSpan(span) ? otelTimeInputToSeconds(input) : spanTimeInputToSeconds(input);\n}\n\nfunction isSpanTimeInput(value: undefined | SpanAttributes | SpanTimeInput): value is SpanTimeInput {\n  return (value && typeof value === 'number') || value instanceof Date || Array.isArray(value);\n}\n\n// We want to filter out any incomplete SpanJSON objects\nfunction isFullFinishedSpan(input: Partial<SpanJSON>): input is SpanJSON {\n  return !!input.start_timestamp && !!input.timestamp && !!input.span_id && !!input.trace_id;\n}\n\n/**\n * `SentrySpan`s can be sent on their own (as a v2 streamed span) rather than as part of a transaction.\n *\n * TODO(standalone): remove once the static (transaction) trace lifecycle is dropped.\n */\nfunction isStandaloneSpan(span: Span): boolean {\n  return span instanceof SentrySpan && span.isStandaloneSpan();\n}\n\n/**\n * Sends a single span on its own, as a v2 streamed span envelope.\n *\n * Used for standalone spans (e.g. a late INP web vital when span streaming is disabled): they are\n * not part of a transaction and are not handled by the span streaming buffer, so we serialize and\n * send them here directly.\n *\n * TODO(standalone): remove once the static (transaction) trace lifecycle is dropped.\n */\nfunction sendStandaloneSpan(span: SentrySpan, client: Client): void {\n  const { beforeSendSpan, traceLifecycle } = client.getOptions();\n\n  // A user who opted out of span streaming wraps `beforeSendSpan` with `withStaticSpan` and writes it in\n  // the v1 `SpanJSON` format. That callback never runs through `captureSpan` (which only honors streamed\n  // callbacks), so scrub the span in its native v1 shape and convert it forward to v2, mirroring the\n  // gen_ai extraction path.\n  // TODO(standalone): remove this branch once the static trace lifecycle is dropped.\n  if (traceLifecycle === 'static' && isStaticBeforeSendSpanCallback(beforeSendSpan)) {\n    const serializedSpan = captureStandaloneSpanWithStaticCallback(span, client, beforeSendSpan);\n    const dsc = getDynamicSamplingContextFromSpan(span);\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    client.sendEnvelope(createStreamedSpanEnvelope([serializedSpan], dsc, client));\n    return;\n  }\n\n  const { _segmentSpan, _segmentNameAtCapture, ...serializedSpan } = captureSpan(span, client);\n  const dsc = getDynamicSamplingContextFromSpan(_segmentSpan);\n  // sendEnvelope should not throw\n  // eslint-disable-next-line @typescript-eslint/no-floating-promises\n  client.sendEnvelope(createStreamedSpanEnvelope([serializedSpan], dsc, client));\n}\n","/* eslint-disable max-lines */\n\nimport { getAsyncContextStrategy } from '../asyncContext';\nimport type { AsyncContextStrategy } from '../asyncContext/types';\nimport { getMainCarrier } from '../carrier';\nimport { getClient, getCurrentScope, getIsolationScope, withScope } from '../currentScopes';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { Scope } from '../scope';\nimport { SENTRY_SEGMENT_NAME_SOURCE, SENTRY_OP } from '@sentry/conventions/attributes';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE } from '../semanticAttributes';\nimport type { ClientOptions } from '../types/options';\nimport type { SentrySpanArguments, Span, SpanTimeInput } from '../types/span';\nimport type { StartSpanOptions } from '../types/startSpanOptions';\nimport { baggageHeaderToDynamicSamplingContext } from '../utils/baggage';\nimport { debug } from '../utils/debug-logger';\nimport { handleCallbackErrors } from '../utils/handleCallbackErrors';\nimport { recordEscapedErrorSpan } from '../utils/errorSpanAttribution';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { shouldIgnoreSpan } from '../utils/should-ignore-span';\nimport { hasSpanStreamingEnabled } from './spans/hasSpanStreamingEnabled';\nimport { parseSampleRate } from '../utils/parseSampleRate';\nimport { generateTraceId } from '../utils/propagationContext';\nimport { safeMathRandom } from '../utils/randomSafeContext';\nimport { _setSpanForScope } from '../utils/spanOnScope';\nimport {\n  addChildSpanToSpan,\n  getActiveSpan,\n  getRootSpan,\n  spanIsSampled,\n  spanTimeInputToSeconds,\n  spanToStaticSpanJSON,\n} from '../utils/spanUtils';\nimport { propagationContextFromHeaders, shouldContinueTrace } from '../utils/tracing';\nimport { freezeDscOnSpan, getDynamicSamplingContextFromSpan } from './dynamicSamplingContext';\nimport { logSpanStart } from './logSpans';\nimport { sampleSpan } from './sampling';\nimport { SentryNonRecordingSpan, spanIsNonRecordingSpan } from './sentryNonRecordingSpan';\nimport { SentrySpan } from './sentrySpan';\nimport { SPAN_STATUS_ERROR } from './spanstatus';\nimport { getCapturedScopesOnSpan, setCapturedScopesOnSpan } from './utils';\nimport type { Client } from '../client';\nimport { SUPPRESS_TRACING_KEY } from './constants';\n\n/**\n * Wraps a function with a transaction/span and finishes the span after the function is done.\n * The created span is the active span and will be used as parent by other spans created inside the function\n * and can be accessed via `Sentry.getActiveSpan()`, as long as the function is executed while the scope is active.\n *\n * If you want to create a span that is not set as active, use {@link startInactiveSpan}.\n *\n * You'll always get a span passed to the callback,\n * it may just be a non-recording span if the span is not sampled or if tracing is disabled.\n */\nexport function startSpan<T>(options: StartSpanOptions, callback: (span: Span) => T): T {\n  const spanArguments = parseSentrySpanArguments(options);\n  // oxlint-disable-next-line typescript/no-deprecated\n  const { forceTransaction, parentSpan: customParentSpan, scope: customScope } = options;\n\n  // We still need to fork a potentially passed scope, as we set the active span on it\n  // and we need to ensure that it is cleaned up properly once the span ends.\n  const customForkedScope = customScope?.clone();\n\n  return withScope(customForkedScope, () => {\n    // If `options.parentSpan` is defined, we want to wrap the callback in `withActiveSpan`\n    const wrapper = getActiveSpanWrapper<T>(customParentSpan);\n\n    return wrapper(() => {\n      const scope = getCurrentScope();\n      const parentSpan = getParentSpan(customScope ?? scope, customParentSpan);\n      const client = getClient();\n\n      const missingRequiredParent = options.onlyIfParent && !parentSpan;\n      const activeSpan = missingRequiredParent\n        ? startMissingRequiredParentSpan(scope, client)\n        : createChildOrRootSpan({\n            parentSpan,\n            spanArguments,\n            forceTransaction,\n            scope,\n          });\n\n      // Ignored root spans still need to be set on scope so that `getActiveSpan()` returns them\n      // and descendants are also non-recording. Ignored child spans don't need this because\n      // the parent span is already on scope.\n      const makeSpanActive = !spanIsIgnored(activeSpan) || !parentSpan;\n\n      return runCallback(\n        activeSpan,\n        makeSpanActive,\n        () => callback(activeSpan),\n        () => activeSpan.end(),\n      );\n    });\n  });\n}\n\n/**\n * Similar to `Sentry.startSpan`. Wraps a function with a transaction/span, but does not finish the span\n * after the function is done automatically. Use `span.end()` to end the span.\n *\n * The created span is the active span and will be used as parent by other spans created inside the function\n * and can be accessed via `Sentry.getActiveSpan()`, as long as the function is executed while the scope is active.\n *\n * You'll always get a span passed to the callback,\n * it may just be a non-recording span if the span is not sampled or if tracing is disabled.\n */\nexport function startSpanManual<T>(options: StartSpanOptions, callback: (span: Span, finish: () => void) => T): T {\n  const spanArguments = parseSentrySpanArguments(options);\n  // oxlint-disable-next-line typescript/no-deprecated\n  const { forceTransaction, parentSpan: customParentSpan, scope: customScope } = options;\n\n  const customForkedScope = customScope?.clone();\n\n  return withScope(customForkedScope, () => {\n    // If `options.parentSpan` is defined, we want to wrap the callback in `withActiveSpan`\n    const wrapper = getActiveSpanWrapper<T>(customParentSpan);\n\n    return wrapper(() => {\n      const scope = getCurrentScope();\n      const parentSpan = getParentSpan(customScope ?? scope, customParentSpan);\n\n      const missingRequiredParent = options.onlyIfParent && !parentSpan;\n      const activeSpan = missingRequiredParent\n        ? startMissingRequiredParentSpan(scope, getClient())\n        : createChildOrRootSpan({\n            parentSpan,\n            spanArguments,\n            forceTransaction,\n            scope,\n          });\n\n      // We don't set ignored child spans onto the scope because there likely is an active,\n      // unignored span on the scope already.\n      const makeSpanActive = !spanIsIgnored(activeSpan) || !parentSpan;\n\n      // We pass the `finish` function to the callback, so the user can finish the span manually\n      // this is mainly here for historic purposes because previously, we instructed users to call\n      // `finish` instead of `span.end()` to also clean up the scope. Nowadays, calling `span.end()`\n      // or `finish` has the same effect and we simply leave it here to avoid breaking user code.\n      return runCallback(activeSpan, makeSpanActive, () => callback(activeSpan, () => activeSpan.end()));\n    });\n  });\n}\n\n/**\n * Creates a span. This span is not set as active, so will not get automatic instrumentation spans\n * as children or be able to be accessed via `Sentry.getActiveSpan()`.\n *\n * If you want to create a span that is set as active, use {@link startSpan}.\n *\n * This function will always return a span,\n * it may just be a non-recording span if the span is not sampled or if tracing is disabled.\n */\nexport function startInactiveSpan(options: StartSpanOptions): Span {\n  const spanArguments = parseSentrySpanArguments(options);\n  // oxlint-disable-next-line typescript/no-deprecated\n  const { forceTransaction, parentSpan: customParentSpan, scope: customScope } = options;\n\n  // If `options.scope` is defined, we use this as as a wrapper,\n  // If `options.parentSpan` is defined, we want to wrap the callback in `withActiveSpan`\n  const wrapper = customScope\n    ? (callback: () => Span) => withScope(customScope, callback)\n    : customParentSpan !== undefined\n      ? (callback: () => Span) => withActiveSpan(customParentSpan, callback)\n      : (callback: () => Span) => callback();\n\n  return wrapper(() => {\n    const scope = getCurrentScope();\n    const parentSpan = getParentSpan(customScope ?? scope, customParentSpan);\n    const client = getClient();\n\n    const missingRequiredParent = options.onlyIfParent && !parentSpan;\n\n    if (missingRequiredParent) {\n      return startMissingRequiredParentSpan(scope, client);\n    }\n\n    return createChildOrRootSpan({\n      parentSpan,\n      spanArguments,\n      forceTransaction,\n      scope,\n    });\n  });\n}\n\n/**\n * Continue a trace from `sentry-trace` and `baggage` values.\n * These values can be obtained from incoming request headers, or in the browser from `<meta name=\"sentry-trace\">`\n * and `<meta name=\"baggage\">` HTML tags.\n *\n * Spans started with `startSpan`, `startSpanManual` and `startInactiveSpan`, within the callback will automatically\n * be attached to the incoming trace.\n */\nexport const continueTrace = <V>(\n  options: {\n    sentryTrace: Parameters<typeof propagationContextFromHeaders>[0];\n    baggage: Parameters<typeof propagationContextFromHeaders>[1];\n  },\n  callback: () => V,\n): V => {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  if (acs.continueTrace) {\n    return acs.continueTrace(options, callback);\n  }\n\n  const { sentryTrace, baggage } = options;\n\n  const client = getClient();\n  const incomingDsc = baggageHeaderToDynamicSamplingContext(baggage);\n  if (client && !shouldContinueTrace(client, incomingDsc?.org_id)) {\n    return startNewTrace(callback);\n  }\n\n  return withScope(scope => {\n    const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);\n    scope.setPropagationContext(propagationContext);\n    return withActiveSpan(null, callback);\n  });\n};\n\n/**\n * Forks the current scope and sets the provided span as active span in the context of the provided callback. Can be\n * passed `null` to start an entirely new span tree.\n *\n * @param span Spans started in the context of the provided callback will be children of this span. If `null` is passed,\n * spans started within the callback will not be attached to a parent span.\n * @param callback Execution context in which the provided span will be active. Is passed the newly forked scope.\n * @returns the value returned from the provided callback function.\n */\nexport function withActiveSpan<T>(span: Span | null, callback: (scope: Scope) => T): T {\n  const acs = getAcs();\n  if (acs.withActiveSpan) {\n    return acs.withActiveSpan(span, callback);\n  }\n\n  return withScope(scope => {\n    _setSpanForScope(scope, span || undefined);\n    return callback(scope);\n  });\n}\n\n/** Suppress tracing in the given callback, ensuring no spans are generated inside of it. */\nexport function suppressTracing<T>(callback: () => T): T {\n  const acs = getAcs();\n\n  if (acs.suppressTracing) {\n    return acs.suppressTracing(callback);\n  }\n\n  return withScope(scope => {\n    scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: true });\n    return callback();\n  });\n}\n\n/** Check if tracing is suppressed. */\nexport function isTracingSuppressed(scope = getCurrentScope()): boolean {\n  const acs = getAcs();\n\n  if (acs.isTracingSuppressed) {\n    return acs.isTracingSuppressed(scope);\n  }\n\n  return scope.getScopeData().sdkProcessingMetadata[SUPPRESS_TRACING_KEY] === true;\n}\n\n/**\n * Starts a new trace for the duration of the provided callback. Spans started within the\n * callback will be part of the new trace instead of a potentially previously started trace.\n *\n * Important: Only use this function if you want to override the default trace lifetime and\n * propagation mechanism of the SDK for the duration and scope of the provided callback.\n * The newly created trace will also be the root of a new distributed trace, for example if\n * you make http requests within the callback.\n * This function might be useful if the operation you want to instrument should not be part\n * of a potentially ongoing trace.\n *\n * Default behavior:\n * - Server-side: A new trace is started for each incoming request.\n * - Browser: A new trace is started for each page our route. Navigating to a new route\n *            or page will automatically create a new trace.\n */\nexport function startNewTrace<T>(callback: () => T): T {\n  const acs = getAcs();\n  if (acs.startNewTrace) {\n    return acs.startNewTrace(callback);\n  }\n\n  return withActiveSpan(null, () => {\n    return withScope(scope => {\n      scope.setPropagationContext({\n        traceId: generateTraceId(),\n        sampleRand: safeMathRandom(),\n      });\n      DEBUG_BUILD && debug.log(`Starting a new trace with id ${scope.getPropagationContext().traceId}`);\n      return callback();\n    });\n  });\n}\n\n/**\n * The placeholder returned from `startSpan*` when `onlyIfParent` is set but there is no parent span.\n * It carries the current trace id and captured scopes so the trace data it propagates (and any nested\n * span that resolves it as its root via `getRootSpan`) reads its DSC from the scope, preserving a\n * continued trace's DSC instead of fabricating a fresh client one. Also records the dropped-span outcome.\n */\nfunction startMissingRequiredParentSpan(scope: Scope, client: Client | undefined): SentryNonRecordingSpan {\n  client?.recordDroppedEvent('no_parent_span', 'span');\n  // Spans nested inside the placeholder inherit its drop reason in `_startChildSpan`\n  const span = new SentryNonRecordingSpan({\n    dropReason: 'no_parent_span',\n    traceId: scope.getPropagationContext().traceId,\n  });\n  setCapturedScopesOnSpan(span, scope, getIsolationScope());\n  return span;\n}\n\nfunction createChildOrRootSpan({\n  parentSpan: resolvedParentSpan,\n  spanArguments,\n  forceTransaction,\n  scope: currentScope,\n}: {\n  parentSpan: Span | undefined;\n  spanArguments: SentrySpanArguments;\n  forceTransaction?: boolean;\n  scope: Scope;\n}): Span {\n  const isolationScope = getIsolationScope();\n\n  // Listeners can adjust the scope and the parent right before span creation. The Node SDK uses\n  // this to turn a remote parent (an incoming trace on the ambient OTel context) into a propagation\n  // context on a forked scope, so the span continues the incoming trace as a root span.\n  const spanScope: { scope: Scope; parentSpan: Span | undefined } = {\n    scope: currentScope,\n    parentSpan: resolvedParentSpan,\n  };\n  getClient()?.emit('prepareSpanScope', spanScope);\n  const { scope, parentSpan } = spanScope;\n\n  if (!hasSpansEnabled()) {\n    const scopePropagationContext = scope.getPropagationContext();\n    const traceId = parentSpan ? parentSpan.spanContext().traceId : scopePropagationContext.traceId;\n\n    // The placeholder is a thin marker; it carries no sampling decision or DSC. Both are read from\n    // the scope: the sampling decision in `getTraceData`, the DSC in `getDynamicSamplingContextFromSpan`.\n    const span = new SentryNonRecordingSpan({ traceId });\n\n    // Nested placeholders link to their parent so `getRootSpan` resolves to the root placeholder,\n    // whose captured scope is the source of truth. Root/forced placeholders are their own root.\n    if (parentSpan && !forceTransaction) {\n      addChildSpanToSpan(parentSpan, span);\n    }\n\n    // Capture scopes so consumers (e.g. SentryTraceProvider) can read them and so the DSC can be\n    // resolved from the scope by `getDynamicSamplingContextFromSpan`. Consistent with `startIdleSpan`.\n    setCapturedScopesOnSpan(span, scope, isolationScope);\n\n    return span;\n  }\n\n  const client = getClient();\n  if (_shouldIgnoreStreamedSpan(client, spanArguments)) {\n    if (!isTracingSuppressed(scope)) {\n      // if tracing is actively suppressed (Sentry.suppressTracing(...)),\n      // we don't want to record a client outcome for the ignored span\n      client?.recordDroppedEvent('ignored', 'span');\n    }\n\n    const ignoredSpan = new SentryNonRecordingSpan({\n      dropReason: 'ignored',\n      traceId: parentSpan?.spanContext().traceId ?? scope.getPropagationContext().traceId,\n    });\n    if (parentSpan && !forceTransaction) {\n      // Preserve the root relationship so async context strategies can distinguish\n      // ignored children from ignored segments and keep the parent active.\n      addChildSpanToSpan(parentSpan, ignoredSpan);\n    }\n    setCapturedScopesOnSpan(ignoredSpan, scope, isolationScope);\n\n    return ignoredSpan;\n  }\n\n  let span: Span;\n  if (parentSpan && !forceTransaction) {\n    span = _startChildSpan(parentSpan, scope, spanArguments, isolationScope);\n    addChildSpanToSpan(parentSpan, span);\n  } else if (parentSpan) {\n    // If we forced a transaction but have a parent span, make sure to continue from the parent span, not the scope\n    const dsc = getDynamicSamplingContextFromSpan(parentSpan);\n    const { traceId, spanId: parentSpanId } = parentSpan.spanContext();\n    const parentSampled = spanIsSampled(parentSpan);\n\n    span = _startRootSpan(\n      {\n        traceId,\n        parentSpanId,\n        ...spanArguments,\n      },\n      scope,\n      isolationScope,\n      parentSampled,\n    );\n\n    freezeDscOnSpan(span, dsc);\n  } else {\n    const { traceId, dsc, parentSpanId, sampled: parentSampled, sampleRand } = scope.getPropagationContext();\n\n    span = _startRootSpan(\n      {\n        traceId,\n        parentSpanId,\n        ...spanArguments,\n      },\n      scope,\n      isolationScope,\n      parentSampled,\n    );\n\n    if (dsc) {\n      // A trace continued without incoming baggage carries an empty DSC (we are not the head of\n      // trace). Fold in the scope's `sample_rand` so it still propagates downstream and sampling\n      // decisions stay consistent across the trace. A populated frozen DSC (e.g. an OTel remote\n      // parent whose DSC came in via baggage/trace state) is left untouched.\n      const dscWithSampleRand =\n        Object.keys(dsc).length === 0 && sampleRand !== undefined ? { sample_rand: sampleRand.toString() } : dsc;\n      freezeDscOnSpan(span, dscWithSampleRand);\n    }\n  }\n\n  logSpanStart(span);\n\n  return span;\n}\n\n/**\n * This converts StartSpanOptions to SentrySpanArguments.\n * For the most part (for now) we accept the same options,\n * but some of them need to be transformed.\n */\nfunction parseSentrySpanArguments(options: StartSpanOptions): SentrySpanArguments {\n  const initialCtx: SentrySpanArguments = {\n    // TODO(standalone): remove once the static (transaction) trace lifecycle is dropped.\n    // oxlint-disable-next-line typescript/no-deprecated\n    isStandalone: options.experimental?.standalone,\n    ...options,\n  };\n\n  // Fold `op` into the attributes up front so samplers see `sentry.op`; the `SentrySpan`\n  // constructor only adds it after the sampling decision. An explicit `sentry.op` attribute wins.\n  if (options.op) {\n    initialCtx.attributes = {\n      [SENTRY_OP]: options.op,\n      ...options.attributes,\n    };\n  }\n\n  if (options.startTime) {\n    const ctx: SentrySpanArguments & { startTime?: SpanTimeInput } = { ...initialCtx };\n    ctx.startTimestamp = spanTimeInputToSeconds(options.startTime);\n    delete ctx.startTime;\n    return ctx;\n  }\n\n  return initialCtx;\n}\n\nfunction getAcs(): AsyncContextStrategy {\n  const carrier = getMainCarrier();\n  return getAsyncContextStrategy(carrier);\n}\n\n/**\n * Runs the callback with the span active. When the async context strategy bridges to an ambient\n * context (OTel), activation must go through it so the span lands on that context and\n * instrumentation-created child spans nest under it; the scope alone is not consulted there.\n */\nfunction _startRootSpan(\n  spanArguments: SentrySpanArguments,\n  scope: Scope,\n  isolationScope: Scope,\n  parentSampled?: boolean,\n): SentrySpan {\n  const client = getClient();\n  const options: Partial<ClientOptions> = client?.getOptions() || {};\n\n  const { name = '' } = spanArguments;\n\n  const mutableSpanSamplingData = { spanAttributes: { ...spanArguments.attributes }, spanName: name, parentSampled };\n\n  // we don't care about the decision for the moment; this is just a placeholder\n  client?.emit('beforeSampling', mutableSpanSamplingData, { decision: false });\n\n  // If hook consumers override the parentSampled flag, we will use that value instead of the actual one\n  const finalParentSampled = mutableSpanSamplingData.parentSampled ?? parentSampled;\n  const finalAttributes = mutableSpanSamplingData.spanAttributes;\n\n  const currentPropagationContext = scope.getPropagationContext();\n  const _isTracingSuppressed = isTracingSuppressed(scope);\n\n  const [sampled, sampleRate, localSampleRateWasApplied, dropReason] = _isTracingSuppressed\n    ? [false]\n    : sampleSpan(\n        options,\n        {\n          name,\n          parentSampled: finalParentSampled,\n          attributes: finalAttributes,\n          normalizedRequest: isolationScope.getScopeData().sdkProcessingMetadata.normalizedRequest,\n          parentSampleRate: parseSampleRate(currentPropagationContext.dsc?.sample_rate),\n        },\n        currentPropagationContext.sampleRand,\n      );\n\n  const rootSpan = new SentrySpan({\n    ...spanArguments,\n    attributes: {\n      [SENTRY_SEGMENT_NAME_SOURCE]: 'custom',\n      [SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:\n        sampleRate !== undefined && localSampleRateWasApplied ? sampleRate : undefined,\n      ...finalAttributes,\n    },\n    sampled,\n  });\n\n  if (!sampled && client && !_isTracingSuppressed) {\n    DEBUG_BUILD && debug.log('[Tracing] Discarding root span because its trace was not chosen to be sampled.');\n    const outcomeReason = dropReason || 'sample_rate';\n    // A standalone span is sent on its own and never becomes a transaction.\n    // TODO(v12): Drop the `isStandalone` check once the static trace lifecycle is gone.\n    if (!hasSpanStreamingEnabled(client) && !spanArguments.isStandalone) {\n      client.recordDroppedEvent(outcomeReason, 'transaction');\n    }\n    // Child spans of this root record their own `span` outcome in `_startChildSpan`.\n    client.recordDroppedEvent(outcomeReason, 'span');\n  }\n\n  setCapturedScopesOnSpan(rootSpan, scope, isolationScope);\n\n  if (client) {\n    client.emit('spanStart', rootSpan);\n  }\n\n  return rootSpan;\n}\n\n/**\n * Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.\n * This inherits the sampling decision from the parent span.\n */\nfunction _startChildSpan(\n  parentSpan: Span,\n  scope: Scope,\n  spanArguments: SentrySpanArguments,\n  isolationScope: Scope,\n): Span {\n  const { spanId, traceId } = parentSpan.spanContext();\n  const _isTracingSuppressed = isTracingSuppressed(scope);\n  const sampled = _isTracingSuppressed ? false : spanIsSampled(parentSpan);\n\n  const childSpan = sampled\n    ? new SentrySpan({\n        ...spanArguments,\n        parentSpanId: spanId,\n        traceId,\n        sampled,\n      })\n    : new SentryNonRecordingSpan({ traceId });\n\n  addChildSpanToSpan(parentSpan, childSpan);\n\n  setCapturedScopesOnSpan(childSpan, scope, isolationScope);\n\n  const client = getClient();\n\n  if (!client) {\n    return childSpan;\n  }\n\n  if (spanIsNonRecordingSpan(childSpan)) {\n    if (spanIsNonRecordingSpan(parentSpan) && parentSpan.dropReason) {\n      // The parent was dropped for a reason other than sampling (e.g. an ignored segment span or\n      // an `onlyIfParent` placeholder), so the child is dropped for the same reason.\n      childSpan.dropReason = parentSpan.dropReason;\n      client.recordDroppedEvent(parentSpan.dropReason, 'span');\n    } else if (!_isTracingSuppressed) {\n      // Otherwise, the child is not sampled due to sampling of the parent span,\n      // hence we record a sample_rate client outcome for the child.\n      childSpan.dropReason = 'sample_rate';\n      client.recordDroppedEvent('sample_rate', 'span');\n    }\n  }\n\n  client.emit('spanStart', childSpan);\n\n  return childSpan;\n}\n\nfunction getParentSpan(scope: Scope, customParentSpan: Span | null | undefined): Span | undefined {\n  // always use the passed in span directly\n  if (customParentSpan) {\n    return customParentSpan;\n  }\n\n  // This is different from `undefined` as it means the user explicitly wants no parent span\n  if (customParentSpan === null) {\n    return undefined;\n  }\n\n  const span = getActiveSpan(scope);\n\n  if (!span) {\n    return undefined;\n  }\n\n  const client = getClient();\n  const options: Partial<ClientOptions> = client ? client.getOptions() : {};\n  if (options.parentSpanIsAlwaysRootSpan) {\n    return getRootSpan(span);\n  }\n\n  return span;\n}\n\nfunction getActiveSpanWrapper<T>(parentSpan: Span | undefined | null): (callback: () => T) => T {\n  return parentSpan !== undefined\n    ? (callback: () => T) => {\n        return withActiveSpan(parentSpan, callback);\n      }\n    : (callback: () => T) => callback();\n}\n\n/* Checks if `ignoreSpans` applies (extracted for bundle size)*/\nfunction _shouldIgnoreStreamedSpan(client: Client | undefined, spanArguments: SentrySpanArguments): boolean {\n  const ignoreSpans = client?.getOptions().ignoreSpans;\n\n  if (!client || !hasSpanStreamingEnabled(client) || !ignoreSpans?.length) {\n    return false;\n  }\n\n  return shouldIgnoreSpan(\n    {\n      description: spanArguments.name || '',\n      op: spanArguments.attributes?.[SENTRY_OP] || spanArguments.op,\n      attributes: spanArguments.attributes,\n    },\n    ignoreSpans,\n  );\n}\n\n/**\n * Whether a span is an ignored (`ignoreSpans`) placeholder. Such a span must not be set as the active\n * span when it has a parent, so its children attach to that parent and get re-parented rather than\n * dropped with it. Shared with the OTel-based provider so both span pipelines apply the same rule.\n */\nexport function spanIsIgnored(span: Span): span is SentryNonRecordingSpan {\n  return spanIsNonRecordingSpan(span) && span.dropReason === 'ignored';\n}\n\nfunction runCallback<T>(span: Span, makeSpanActive: boolean, callback: () => T, finallyCallback?: () => void): T {\n  const wrapper = makeSpanActive\n    ? (callback: () => T) => {\n        return withActiveSpan(span, () => {\n          const scope = getCurrentScope();\n          // The fork made by withActiveSpan is based on the ambient scope. Carry over the\n          // propagation context captured at span creation, which can continue a remote parent's\n          // trace the ambient scope knows nothing about. For local parents this is a no-op.\n          const creationScope = getCapturedScopesOnSpan(span).scope;\n          if (creationScope) {\n            scope.setPropagationContext(creationScope.getPropagationContext());\n          }\n          // Make sure the correct scope is captured on the span, since withActiveSpan forks the scope\n          setCapturedScopesOnSpan(span, scope, getIsolationScope());\n          return callback();\n        });\n      }\n    : (callback: () => T) => callback();\n\n  return wrapper(() =>\n    handleCallbackErrors(\n      () => callback(),\n      error => {\n        recordEscapedErrorSpan(error, span);\n\n        // Only update the span status if it hasn't been changed yet, and the span is not yet finished\n        const { status } = spanToStaticSpanJSON(span);\n        if (span.isRecording() && status === 'ok') {\n          span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n        }\n      },\n      finallyCallback,\n    ),\n  );\n}\n","type DebouncedCallback = {\n  (): void | unknown;\n  flush: () => void | unknown;\n  cancel: () => void;\n};\ntype CallbackFunction = () => unknown;\ntype DebounceOptions = {\n  /** The max. time in ms to wait for the callback to be invoked. */\n  maxWait?: number;\n  /** This can be overwritten to use a different setTimeout implementation, e.g. to avoid triggering change detection in Angular  */\n  setTimeoutImpl?: typeof setTimeout;\n};\n\n/**\n * Heavily simplified debounce function based on lodash.debounce.\n *\n * This function takes a callback function (@param fun) and delays its invocation\n * by @param wait milliseconds. Optionally, a maxWait can be specified in @param options,\n * which ensures that the callback is invoked at least once after the specified max. wait time.\n *\n * @param func the function whose invocation is to be debounced\n * @param wait the minimum time until the function is invoked after it was called once\n * @param options the options object, which can contain the `maxWait` property\n *\n * @returns the debounced version of the function, which needs to be called at least once to start the\n *          debouncing process. Subsequent calls will reset the debouncing timer and, in case @paramfunc\n *          was already invoked in the meantime, return @param func's return value.\n *          The debounced function has two additional properties:\n *          - `flush`: Invokes the debounced function immediately and returns its return value\n *          - `cancel`: Cancels the debouncing process and resets the debouncing timer\n */\nexport function debounce(func: CallbackFunction, wait: number, options?: DebounceOptions): DebouncedCallback {\n  let callbackReturnValue: unknown;\n\n  let timerId: ReturnType<typeof setTimeout> | undefined;\n  let maxTimerId: ReturnType<typeof setTimeout> | undefined;\n\n  const maxWait = options?.maxWait ? Math.max(options.maxWait, wait) : 0;\n  const setTimeoutImpl = options?.setTimeoutImpl || setTimeout;\n\n  function invokeFunc(): unknown {\n    cancelTimers();\n    callbackReturnValue = func();\n    return callbackReturnValue;\n  }\n\n  function cancelTimers(): void {\n    timerId !== undefined && clearTimeout(timerId);\n    maxTimerId !== undefined && clearTimeout(maxTimerId);\n    timerId = maxTimerId = undefined;\n  }\n\n  function flush(): unknown {\n    if (timerId !== undefined || maxTimerId !== undefined) {\n      return invokeFunc();\n    }\n    return callbackReturnValue;\n  }\n\n  function debounced(): unknown {\n    if (timerId) {\n      clearTimeout(timerId);\n    }\n    timerId = setTimeoutImpl(invokeFunc, wait);\n\n    if (maxWait && maxTimerId === undefined) {\n      maxTimerId = setTimeoutImpl(invokeFunc, maxWait);\n    }\n\n    return callbackReturnValue;\n  }\n\n  debounced.cancel = cancelTimers;\n  debounced.flush = flush;\n  return debounced;\n}\n","import type { Client } from '../client';\nimport type { Scope } from '../scope';\nimport type { Span } from '../types/span';\nimport { debounce } from '../utils/debounce';\nimport { getSegmentSpanCaptureStrategy, setSegmentSpanCaptureStrategy } from './segmentSpanCaptureStrategy';\nimport type { SegmentSpanConverter } from './segmentSpanCaptureStrategy';\n\n// Spans already sent in a transaction, so a child ending after its segment can be emitted as its own\n// orphan transaction instead of being dropped or sent twice.\nconst CAPTURED_SPANS = new WeakSet<Span>();\nconst isSpanAlreadyCaptured = (span: Span): boolean => CAPTURED_SPANS.has(span);\nconst markSpanCaptured = (span: Span): void => {\n  CAPTURED_SPANS.add(span);\n};\n\n// One debounced queue per client, drained on the client's `flush`/`close`. Mirrors the OpenTelemetry\n// span exporter, which holds one such buffer per instance, and the debounce window matches it. The\n// capturing client is resolved from the span's captured scope and bound when the span ends, not\n// re-resolved at drain time, so a deferred transaction lands on the client that created the span even if\n// the current client (or the captured scope's own client) is reassigned before the debounce fires.\nconst CLIENT_QUEUES = new WeakMap<Client, (capture: () => void) => void>();\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Enable deferred segment-span transaction capture for a client: create its debounced queue and\n * register the strategy (idempotent).\n *\n * `SentrySpan` otherwise assembles the transaction synchronously the instant a segment span ends, which\n * drops children whose async instrumentation closes them later (a diagnostics-channel `asyncEnd`\n * callback in the same tick, or engine spans replayed on a later tick). The debounced snapshot delays\n * capture just enough for those later span ends to land first; a child that still ends after it is\n * emitted as its own orphan transaction. Pending captures drain on the client's `flush` hook, so\n * `Sentry.flush()` / `client.close()` cannot resolve before they run.\n */\nexport function _INTERNAL_setDeferSegmentSpanCapture(client: Client): void {\n  if (!getSegmentSpanCaptureStrategy()) {\n    setSegmentSpanCaptureStrategy(deferredSegmentSpanCaptureStrategy);\n  }\n  if (CLIENT_QUEUES.has(client)) {\n    return;\n  }\n\n  const pendingCaptures = new Set<() => void>();\n  const debouncedDrain = debounce(\n    () => {\n      const captures = [...pendingCaptures];\n      pendingCaptures.clear();\n      for (const capture of captures) {\n        capture();\n      }\n    },\n    1,\n    { maxWait: 100 },\n  );\n\n  client.on('flush', () => {\n    debouncedDrain.flush();\n  });\n\n  CLIENT_QUEUES.set(client, capture => {\n    pendingCaptures.add(capture);\n    debouncedDrain();\n  });\n}\n\nconst deferredSegmentSpanCaptureStrategy = {\n  onSegmentSpanEnded(convert: SegmentSpanConverter, scope: Scope): void {\n    const client = scope.getClient();\n    const enqueue = client && CLIENT_QUEUES.get(client);\n    if (!enqueue) {\n      // The capturing client didn't enable deferral: capture synchronously.\n      const transactionEvent = convert();\n      if (transactionEvent) {\n        client?.captureEvent(transactionEvent);\n      }\n      return;\n    }\n\n    enqueue(() => {\n      const transactionEvent = convert({ isSpanAlreadyCaptured, onSpanCaptured: markSpanCaptured });\n      if (transactionEvent) {\n        client.captureEvent(transactionEvent);\n      }\n    });\n  },\n\n  onChildSpanEnded(span: Span, rootSpan: Span, convert: SegmentSpanConverter, scope: Scope): void {\n    // Only a late child of an already-captured segment is an orphan. Inert under span streaming, where\n    // `CAPTURED_SPANS` is never populated.\n    if (CAPTURED_SPANS.has(span) || !CAPTURED_SPANS.has(rootSpan)) {\n      return;\n    }\n\n    const client = scope.getClient();\n    const enqueue = client && CLIENT_QUEUES.get(client);\n\n    const captureOrphan = (): void => {\n      const transactionEvent = convert({ isSpanAlreadyCaptured, onSpanCaptured: markSpanCaptured });\n      if (transactionEvent?.contexts?.trace?.data) {\n        // Tag orphans so they're distinguishable downstream (mirrors the OTel span exporter).\n        transactionEvent.contexts.trace.data['sentry.parent_span_already_sent'] = true;\n      }\n      if (transactionEvent) {\n        client?.captureEvent(transactionEvent);\n      }\n    };\n\n    // Defer when the capturing client batches; otherwise emit now so the orphan isn't dropped.\n    if (enqueue) {\n      enqueue(captureOrphan);\n    } else {\n      captureOrphan();\n    }\n  },\n};\n","import type { LegacyCSPReport } from './types/csp';\nimport type { DsnComponents } from './types/dsn';\nimport type {\n  EventEnvelope,\n  EventItem,\n  RawSecurityEnvelope,\n  RawSecurityItem,\n  SessionEnvelope,\n  SessionItem,\n} from './types/envelope';\nimport type { Event } from './types/event';\nimport type { SdkInfo } from './types/sdkinfo';\nimport type { SdkMetadata } from './types/sdkmetadata';\nimport type { Session, SessionAggregates } from './types/session';\nimport { dsnToString } from './utils/dsn';\nimport { createEnvelope, createEventEnvelopeHeaders, getSdkMetadataForEnvelopeHeader } from './utils/envelope';\nimport { uuid4 } from './utils/misc';\nimport { safeDateNow } from './utils/randomSafeContext';\n\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n *\n * @internal, exported only for testing\n **/\nexport function _enhanceEventWithSdkInfo(event: Event, newSdkInfo?: SdkInfo): Event {\n  if (!newSdkInfo) {\n    return event;\n  }\n\n  const eventSdkInfo = event.sdk || {};\n\n  event.sdk = {\n    ...eventSdkInfo,\n    name: eventSdkInfo.name || newSdkInfo.name,\n    version: eventSdkInfo.version || newSdkInfo.version,\n    integrations: [...(event.sdk?.integrations || []), ...(newSdkInfo.integrations || [])],\n    packages: [...(event.sdk?.packages || []), ...(newSdkInfo.packages || [])],\n    settings:\n      event.sdk?.settings || newSdkInfo.settings\n        ? {\n            ...event.sdk?.settings,\n            ...newSdkInfo.settings,\n          }\n        : undefined,\n  };\n\n  return event;\n}\n\n/** Creates an envelope from a Session */\nexport function createSessionEnvelope(\n  session: Session | SessionAggregates,\n  dsn?: DsnComponents,\n  metadata?: SdkMetadata,\n  tunnel?: string,\n): SessionEnvelope {\n  const sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n  const envelopeHeaders = {\n    sent_at: new Date(safeDateNow()).toISOString(),\n    ...(sdkInfo && { sdk: sdkInfo }),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n  };\n\n  const envelopeItem: SessionItem =\n    'aggregates' in session ? [{ type: 'sessions' }, session] : [{ type: 'session' }, session.toJSON()];\n\n  return createEnvelope<SessionEnvelope>(envelopeHeaders, [envelopeItem]);\n}\n\n/**\n * Create an Envelope from an event.\n */\nexport function createEventEnvelope(\n  event: Event,\n  dsn?: DsnComponents,\n  metadata?: SdkMetadata,\n  tunnel?: string,\n): EventEnvelope {\n  const sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n\n  /*\n    Note: Due to TS, event.type may be `replay_event`, theoretically.\n    In practice, we never call `createEventEnvelope` with `replay_event` type,\n    and we'd have to adjust a looot of types to make this work properly.\n    We want to avoid casting this around, as that could lead to bugs (e.g. when we add another type)\n    So the safe choice is to really guard against the replay_event type here.\n  */\n  const eventType = event.type && event.type !== 'replay_event' ? event.type : 'event';\n\n  _enhanceEventWithSdkInfo(event, metadata?.sdk);\n\n  const envelopeHeaders = createEventEnvelopeHeaders(event, sdkInfo, tunnel, dsn);\n\n  // Prevent this data (which, if it exists, was used in earlier steps in the processing pipeline) from being sent to\n  // sentry. (Note: Our use of this property comes and goes with whatever we might be debugging, whatever hacks we may\n  // have temporarily added, etc. Even if we don't happen to be using it at some point in the future, let's not get rid\n  // of this `delete`, lest we miss putting it back in the next time the property is in use.)\n  delete event.sdkProcessingMetadata;\n\n  const eventItem: EventItem = [{ type: eventType }, event];\n  return createEnvelope<EventEnvelope>(envelopeHeaders, [eventItem]);\n}\n\n/**\n * Create an Envelope from a CSP report.\n */\nexport function createRawSecurityEnvelope(\n  report: LegacyCSPReport,\n  dsn: DsnComponents,\n  tunnel?: string,\n  release?: string,\n  environment?: string,\n): RawSecurityEnvelope {\n  const envelopeHeaders = {\n    event_id: uuid4(),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n  };\n\n  const eventItem: RawSecurityItem = [\n    { type: 'raw_security', sentry_release: release, sentry_environment: environment },\n    report,\n  ];\n\n  return createEnvelope<RawSecurityEnvelope>(envelopeHeaders, [eventItem]);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isThenable } from './is';\n\n/** SyncPromise internal states */\nconst STATE_PENDING = 0;\nconst STATE_RESOLVED = 1;\nconst STATE_REJECTED = 2;\n\ntype State = typeof STATE_PENDING | typeof STATE_RESOLVED | typeof STATE_REJECTED;\n\n// Overloads so we can call resolvedSyncPromise without arguments and generic argument\nexport function resolvedSyncPromise(): PromiseLike<void>;\nexport function resolvedSyncPromise<T>(value: T | PromiseLike<T>): PromiseLike<T>;\n\n/**\n * Creates a resolved sync promise.\n *\n * @param value the value to resolve the promise with\n * @returns the resolved sync promise\n */\nexport function resolvedSyncPromise<T>(value?: T | PromiseLike<T>): PromiseLike<T> {\n  return new SyncPromise(resolve => {\n    resolve(value);\n  });\n}\n\n/**\n * Creates a rejected sync promise.\n *\n * @param value the value to reject the promise with\n * @returns the rejected sync promise\n */\nexport function rejectedSyncPromise<T = never>(reason?: any): PromiseLike<T> {\n  return new SyncPromise((_, reject) => {\n    reject(reason);\n  });\n}\n\ntype Executor<T> = (resolve: (value?: T | PromiseLike<T> | null) => void, reject: (reason?: any) => void) => void;\n\n/**\n * Thenable class that behaves like a Promise and follows it's interface\n * but is not async internally\n */\nexport class SyncPromise<T> implements PromiseLike<T> {\n  private _state: State;\n  private _handlers: Array<[boolean, (value: T) => void, (reason: any) => any]>;\n  private _value: any;\n\n  public constructor(executor: Executor<T>) {\n    this._state = STATE_PENDING;\n    this._handlers = [];\n\n    this._runExecutor(executor);\n  }\n\n  /** @inheritdoc */\n  public then<TResult1 = T, TResult2 = never>(\n    onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\n    onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null,\n  ): PromiseLike<TResult1 | TResult2> {\n    return new SyncPromise((resolve, reject) => {\n      this._handlers.push([\n        false,\n        result => {\n          if (!onfulfilled) {\n            // TODO: ¯\\_(ツ)_/¯\n            // TODO: FIXME\n            resolve(result as any);\n          } else {\n            try {\n              resolve(onfulfilled(result));\n            } catch (e) {\n              reject(e);\n            }\n          }\n        },\n        reason => {\n          if (!onrejected) {\n            reject(reason);\n          } else {\n            try {\n              resolve(onrejected(reason));\n            } catch (e) {\n              reject(e);\n            }\n          }\n        },\n      ]);\n      this._executeHandlers();\n    });\n  }\n\n  /** @inheritdoc */\n  public catch<TResult = never>(\n    onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null,\n  ): PromiseLike<T | TResult> {\n    return this.then(val => val, onrejected);\n  }\n\n  /** @inheritdoc */\n  public finally<TResult>(onfinally?: (() => void) | null): PromiseLike<TResult> {\n    return new SyncPromise<TResult>((resolve, reject) => {\n      let val: TResult | any;\n      let isRejected: boolean;\n\n      return this.then(\n        value => {\n          isRejected = false;\n          val = value;\n          if (onfinally) {\n            onfinally();\n          }\n        },\n        reason => {\n          isRejected = true;\n          val = reason;\n          if (onfinally) {\n            onfinally();\n          }\n        },\n      ).then(() => {\n        if (isRejected) {\n          reject(val);\n          return;\n        }\n\n        resolve(val);\n      });\n    });\n  }\n\n  /** Excute the resolve/reject handlers. */\n  private _executeHandlers(): void {\n    if (this._state === STATE_PENDING) {\n      return;\n    }\n\n    const cachedHandlers = this._handlers.slice();\n    this._handlers = [];\n\n    cachedHandlers.forEach(handler => {\n      if (handler[0]) {\n        return;\n      }\n\n      if (this._state === STATE_RESOLVED) {\n        handler[1](this._value);\n      }\n\n      if (this._state === STATE_REJECTED) {\n        handler[2](this._value);\n      }\n\n      handler[0] = true;\n    });\n  }\n\n  /** Run the executor for the SyncPromise. */\n  private _runExecutor(executor: Executor<T>): void {\n    const setResult = (state: State, value?: T | PromiseLike<T> | any): void => {\n      if (this._state !== STATE_PENDING) {\n        return;\n      }\n\n      if (isThenable(value)) {\n        void (value as PromiseLike<T>).then(resolve, reject);\n        return;\n      }\n\n      this._state = state;\n      this._value = value;\n\n      this._executeHandlers();\n    };\n\n    const resolve = (value: unknown): void => {\n      setResult(STATE_RESOLVED, value);\n    };\n\n    const reject = (reason: unknown): void => {\n      setResult(STATE_REJECTED, reason);\n    };\n\n    try {\n      executor(resolve, reject);\n    } catch (e) {\n      reject(e);\n    }\n  }\n}\n","import { DEBUG_BUILD } from './debug-build';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport { debug } from './utils/debug-logger';\nimport { isThenable } from './utils/is';\nimport { safeCallback } from './utils/safeCallback';\nimport { rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';\n\ntype EventProcessorDropReason = 'event_processor' | 'callback_error';\n\n/**\n * Process an array of event processors, returning the processed event (or `null` if the event was dropped).\n */\nexport function notifyEventProcessors(\n  processors: EventProcessor[],\n  event: Event | null,\n  hint: EventHint,\n  index: number = 0,\n  onDrop?: (reason: EventProcessorDropReason) => void,\n): PromiseLike<Event | null> {\n  try {\n    const result = _notifyEventProcessors(event, hint, processors, index, onDrop);\n    return isThenable(result) ? result : resolvedSyncPromise(result);\n  } catch (error) {\n    return rejectedSyncPromise(error);\n  }\n}\n\nfunction _notifyEventProcessors(\n  event: Event | null,\n  hint: EventHint,\n  processors: EventProcessor[],\n  index: number,\n  onDrop?: (reason: EventProcessorDropReason) => void,\n): Event | null | PromiseLike<Event | null> {\n  const processor = processors[index];\n\n  if (!event || !processor) {\n    return event;\n  }\n\n  const processorName = `Event processor \"${processor.id || '?'}\"`;\n  let callbackError = false;\n\n  const result = safeCallback(\n    DEBUG_BUILD ? `${processorName} threw an error, dropping event:` : '',\n    () => processor({ ...event }, hint),\n    () => {\n      callbackError = true;\n      return null;\n    },\n  );\n\n  DEBUG_BUILD && result === null && debug.log(`${processorName} dropped event`);\n\n  if (isThenable(result)) {\n    return result.then(final => {\n      if (!final) {\n        onDrop?.(callbackError ? 'callback_error' : 'event_processor');\n        return null;\n      }\n      return _notifyEventProcessors(final, hint, processors, index + 1, onDrop);\n    });\n  }\n\n  if (!result) {\n    onDrop?.(callbackError ? 'callback_error' : 'event_processor');\n    return null;\n  }\n  return _notifyEventProcessors(result, hint, processors, index + 1, onDrop);\n}\n","import type { DebugImage } from '../types/debugMeta';\nimport type { StackParser } from '../types/stacktrace';\nimport { normalizeStackTracePath } from './stacktrace';\nimport { GLOBAL_OBJ } from './worldwide';\n\ntype StackString = string;\ntype CachedResult = [string, string];\n\nlet parsedStackResults: Record<StackString, CachedResult> | undefined;\nlet lastSentryKeysCount: number | undefined;\nlet lastNativeKeysCount: number | undefined;\nlet cachedFilenameDebugIds: Record<string, string> | undefined;\n\n/**\n * Clears the cached debug ID mappings.\n * Useful for testing or when the global debug ID state changes.\n */\nexport function clearDebugIdCache(): void {\n  parsedStackResults = undefined;\n  lastSentryKeysCount = undefined;\n  lastNativeKeysCount = undefined;\n  cachedFilenameDebugIds = undefined;\n}\n\n/**\n * Returns a map of filenames to debug identifiers.\n * Supports both proprietary _sentryDebugIds and native _debugIds (e.g., from Vercel) formats.\n */\nexport function getFilenameToDebugIdMap(stackParser: StackParser): Record<string, string> {\n  const sentryDebugIdMap = GLOBAL_OBJ._sentryDebugIds;\n  const nativeDebugIdMap = GLOBAL_OBJ._debugIds;\n\n  if (!sentryDebugIdMap && !nativeDebugIdMap) {\n    return {};\n  }\n\n  const sentryDebugIdKeys = sentryDebugIdMap ? Object.keys(sentryDebugIdMap) : [];\n  const nativeDebugIdKeys = nativeDebugIdMap ? Object.keys(nativeDebugIdMap) : [];\n\n  // If the count of registered globals hasn't changed since the last call, we\n  // can just return the cached result.\n  if (\n    cachedFilenameDebugIds &&\n    sentryDebugIdKeys.length === lastSentryKeysCount &&\n    nativeDebugIdKeys.length === lastNativeKeysCount\n  ) {\n    return cachedFilenameDebugIds;\n  }\n\n  lastSentryKeysCount = sentryDebugIdKeys.length;\n  lastNativeKeysCount = nativeDebugIdKeys.length;\n\n  // Build a map of filename -> debug_id from both sources\n  cachedFilenameDebugIds = {};\n\n  if (!parsedStackResults) {\n    parsedStackResults = {};\n  }\n\n  const processDebugIds = (debugIdKeys: string[], debugIdMap: Record<string, string>): void => {\n    for (const key of debugIdKeys) {\n      const debugId = debugIdMap[key];\n      const result = parsedStackResults?.[key];\n\n      if (result && cachedFilenameDebugIds && debugId) {\n        // Use cached filename but update with current debug ID\n        cachedFilenameDebugIds[result[0]] = debugId;\n        // Update cached result with new debug ID\n        if (parsedStackResults) {\n          parsedStackResults[key] = [result[0], debugId];\n        }\n      } else if (debugId) {\n        const parsedStack = stackParser(key);\n\n        for (let i = parsedStack.length - 1; i >= 0; i--) {\n          const stackFrame = parsedStack[i];\n          const filename = stackFrame?.filename;\n\n          if (filename && cachedFilenameDebugIds && parsedStackResults) {\n            cachedFilenameDebugIds[filename] = debugId;\n            parsedStackResults[key] = [filename, debugId];\n            break;\n          }\n        }\n      }\n    }\n  };\n\n  if (sentryDebugIdMap) {\n    processDebugIds(sentryDebugIdKeys, sentryDebugIdMap);\n  }\n\n  // Native _debugIds will override _sentryDebugIds if same file\n  if (nativeDebugIdMap) {\n    processDebugIds(nativeDebugIdKeys, nativeDebugIdMap);\n  }\n\n  return cachedFilenameDebugIds;\n}\n\n/**\n * Returns a list of debug images for the given resources.\n */\nexport function getDebugImagesForResources(\n  stackParser: StackParser,\n  resource_paths: ReadonlyArray<string>,\n): DebugImage[] {\n  const filenameDebugIdMap = getFilenameToDebugIdMap(stackParser);\n\n  if (!filenameDebugIdMap) {\n    return [];\n  }\n\n  const images: DebugImage[] = [];\n  for (const path of resource_paths) {\n    const normalizedPath = normalizeStackTracePath(path);\n    if (normalizedPath && filenameDebugIdMap[normalizedPath]) {\n      images.push({\n        type: 'sourcemap',\n        code_file: path,\n        debug_id: filenameDebugIdMap[normalizedPath],\n      });\n    }\n  }\n\n  return images;\n}\n","import type { Event, EventHint } from '../types/event';\n\nexport function isInternalException(hint: EventHint): boolean {\n  return (hint.data as { __sentry__: boolean })?.__sentry__ === true;\n}\n\n/**\n * Get a list of possible event messages from a Sentry event.\n */\nexport function getPossibleEventMessages(event: Event): string[] {\n  const possibleMessages: string[] = [];\n\n  if (event.message) {\n    possibleMessages.push(event.message);\n  }\n\n  try {\n    // @ts-expect-error Try catching to save bundle size\n    const lastException = event.exception.values[event.exception.values.length - 1];\n    if (lastException?.value) {\n      possibleMessages.push(lastException.value);\n      if (lastException.type) {\n        possibleMessages.push(`${lastException.type}: ${lastException.value}`);\n      }\n    }\n  } catch {\n    // ignore errors here\n  }\n\n  return possibleMessages;\n}\n","import type { Client } from '../client';\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { notifyEventProcessors } from '../eventProcessors';\nimport type { CaptureContext, ScopeContext } from '../scope';\nimport { Scope } from '../scope';\nimport type { Event, EventHint } from '../types/event';\nimport type { ClientOptions } from '../types/options';\nimport type { StackParser } from '../types/stacktrace';\nimport { getFilenameToDebugIdMap } from './debug-ids';\nimport { getDataCategoryByType } from './envelope';\nimport { applyEscapedErrorSpanToEvent } from './errorSpanAttribution';\nimport { isInternalException } from './eventUtils';\nimport { addExceptionMechanismToCapturedException, uuid4 } from './misc';\nimport { normalize } from './normalize';\nimport { applyScopeDataToEvent, applySpanToEvent, getCombinedScopeData } from './scopeData';\nimport { getActiveSpan } from './spanUtils';\nimport { truncate } from './string';\nimport { resolvedSyncPromise } from './syncpromise';\nimport { dateTimestampInSeconds } from './time';\n\n/**\n * This type makes sure that we get either a CaptureContext, OR an EventHint.\n * It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:\n * { user: { id: '123' }, mechanism: { handled: false } }\n */\nexport type ExclusiveEventHintOrCaptureContext =\n  | (CaptureContext & Partial<{ [key in keyof EventHint]: never }>)\n  | (EventHint & Partial<{ [key in keyof ScopeContext]: never }>);\n\n/**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information, or `null` if an event processor dropped it (or threw). In that case the\n *   drop has already been recorded on the client, so callers must not record it again.\n * @hidden\n */\nexport function prepareEvent(\n  options: ClientOptions,\n  event: Event,\n  hint: EventHint,\n  scope?: Scope,\n  client?: Client,\n  isolationScope?: Scope,\n): PromiseLike<Event | null> {\n  const { normalizeDepth = 3, normalizeMaxBreadth = 1_000 } = options;\n  const prepared: Event = {\n    ...event,\n    event_id: event.event_id || hint.event_id || uuid4(),\n    timestamp: event.timestamp || dateTimestampInSeconds(),\n  };\n  const integrations = hint.integrations || options.integrations.map(i => i.name);\n\n  applyClientOptions(prepared, options);\n  applyIntegrationsMetadata(prepared, integrations);\n\n  if (client) {\n    client.emit('applyFrameMetadata', event);\n  }\n\n  // Only put debug IDs onto frames for error events.\n  if (event.type === undefined) {\n    applyDebugIds(prepared, options.stackParser);\n  }\n\n  // If we have scope given to us, use it as the base for further modifications.\n  // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n  const finalScope = getFinalScope(scope, hint.captureContext);\n\n  if (hint.mechanism) {\n    addExceptionMechanismToCapturedException(prepared, hint.mechanism);\n  }\n\n  const clientEventProcessors = client ? client.getEventProcessors() : [];\n\n  // This should be the last thing called, since we want that\n  // {@link Scope.addEventProcessor} gets the finished prepared event.\n  // Merge scope data together\n  const data = getCombinedScopeData(isolationScope, finalScope);\n\n  const attachments = [...(hint.attachments || []), ...data.attachments];\n  if (attachments.length) {\n    hint.attachments = attachments;\n  }\n\n  applyScopeDataToEvent(prepared, data);\n  const span = getActiveSpan(finalScope);\n  if (span) {\n    applySpanToEvent(prepared, span);\n  }\n\n  // After the active span, so an error that escaped a span is attributed to that span rather than\n  // to whichever one happened to be active at capture time. Done here rather than once the event is\n  // assembled so that event processors and the `postprocessEvent` hook see the corrected span id.\n  applyEscapedErrorSpanToEvent(prepared, hint, finalScope);\n\n  const eventProcessors = [\n    ...clientEventProcessors,\n    // Run scope event processors _after_ all other processors\n    ...data.eventProcessors,\n  ];\n\n  // Skip event processors for internal exceptions to prevent recursion\n  const isTransaction = event.type === 'transaction';\n  // Snapshot the count rather than reading `event.spans` later: processors get a shallow copy of the\n  // event, so one that mutates `spans` in place also mutates the original array.\n  const spanCountBeforeProcessing = event.spans?.length || 0;\n  const result: PromiseLike<Event | null> = isInternalException(hint)\n    ? resolvedSyncPromise(prepared)\n    : notifyEventProcessors(eventProcessors, prepared, hint, 0, reason => {\n        if (!client) {\n          return;\n        }\n\n        client.recordDroppedEvent(reason, getDataCategoryByType(event.type));\n        if (isTransaction) {\n          client.recordDroppedEvent(reason, 'span', 1 + spanCountBeforeProcessing);\n        }\n      });\n\n  return result.then(evt => {\n    if (!evt) {\n      return null;\n    }\n\n    if (isTransaction && client) {\n      const droppedSpanCount = spanCountBeforeProcessing - (evt.spans?.length || 0);\n      if (droppedSpanCount > 0) {\n        client.recordDroppedEvent('event_processor', 'span', droppedSpanCount);\n      }\n    }\n\n    // We apply the debug_meta field only after all event processors have ran, so that if any event processors modified\n    // file names (e.g.the RewriteFrames integration) the filename -> debug ID relationship isn't destroyed.\n    // This should not cause any PII issues, since we're only moving data that is already on the event and not adding\n    // any new data\n    applyDebugMeta(evt);\n\n    if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n      return normalizeEvent(evt, normalizeDepth, normalizeMaxBreadth);\n    }\n    return evt;\n  });\n}\n\n/**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n *\n * Only exported for tests.\n *\n * @param event event instance to be enhanced\n */\nexport function applyClientOptions(event: Event, options: ClientOptions): void {\n  const { environment, release, dist, maxValueLength } = options;\n\n  // empty strings do not make sense for environment, release, and dist\n  // so we handle them the same as if they were not provided\n  event.environment = event.environment || environment || DEFAULT_ENVIRONMENT;\n\n  if (!event.release && release) {\n    event.release = release;\n  }\n\n  if (!event.dist && dist) {\n    event.dist = dist;\n  }\n\n  const request = event.request;\n  if (request?.url && maxValueLength) {\n    request.url = truncate(request.url, maxValueLength);\n  }\n\n  if (maxValueLength) {\n    event.exception?.values?.forEach(exception => {\n      if (exception.value) {\n        // Truncates error messages\n        exception.value = truncate(exception.value, maxValueLength);\n      }\n    });\n  }\n}\n\n/**\n * Puts debug IDs into the stack frames of an error event.\n */\nexport function applyDebugIds(event: Event, stackParser: StackParser): void {\n  // Build a map of filename -> debug_id\n  const filenameDebugIdMap = getFilenameToDebugIdMap(stackParser);\n\n  event.exception?.values?.forEach(exception => {\n    exception.stacktrace?.frames?.forEach(frame => {\n      if (frame.filename) {\n        frame.debug_id = filenameDebugIdMap[frame.filename];\n      }\n    });\n  });\n}\n\n/**\n * Moves debug IDs from the stack frames of an error event into the debug_meta field.\n */\nexport function applyDebugMeta(event: Event): void {\n  // Extract debug IDs and filenames from the stack frames on the event.\n  const filenameDebugIdMap: Record<string, string> = {};\n  event.exception?.values?.forEach(exception => {\n    exception.stacktrace?.frames?.forEach(frame => {\n      if (frame.debug_id) {\n        if (frame.abs_path) {\n          filenameDebugIdMap[frame.abs_path] = frame.debug_id;\n        } else if (frame.filename) {\n          filenameDebugIdMap[frame.filename] = frame.debug_id;\n        }\n        delete frame.debug_id;\n      }\n    });\n  });\n\n  if (Object.keys(filenameDebugIdMap).length === 0) {\n    return;\n  }\n\n  // Fill debug_meta information\n  event.debug_meta = event.debug_meta || {};\n  event.debug_meta.images = event.debug_meta.images || [];\n  const images = event.debug_meta.images;\n  Object.entries(filenameDebugIdMap).forEach(([filename, debug_id]) => {\n    images.push({\n      type: 'sourcemap',\n      code_file: filename,\n      debug_id,\n    });\n  });\n}\n\n/**\n * This function adds all used integrations to the SDK info in the event.\n * @param event The event that will be filled with all integrations.\n */\nfunction applyIntegrationsMetadata(event: Event, integrationNames: string[]): void {\n  if (integrationNames.length > 0) {\n    event.sdk = event.sdk || {};\n    event.sdk.integrations = [...(event.sdk.integrations || []), ...integrationNames];\n  }\n}\n\n/**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\nfunction normalizeEvent(event: Event | null, depth: number, maxBreadth: number): Event | null {\n  if (!event) {\n    return null;\n  }\n\n  const normalized: Event = {\n    ...event,\n    ...(event.breadcrumbs && {\n      breadcrumbs: event.breadcrumbs.map(b => ({\n        ...b,\n        ...(b.data && {\n          data: normalize(b.data, depth, maxBreadth),\n        }),\n      })),\n    }),\n    ...(event.user && {\n      user: normalize(event.user, depth, maxBreadth),\n    }),\n    ...(event.contexts && {\n      contexts: normalize(event.contexts, depth, maxBreadth),\n    }),\n    ...(event.extra && {\n      extra: normalize(event.extra, depth, maxBreadth),\n    }),\n  };\n\n  // event.contexts.trace stores information about a Transaction. Similarly,\n  // event.spans[] stores information about child Spans. Given that a\n  // Transaction is conceptually a Span, normalization should apply to both\n  // Transactions and Spans consistently.\n  // For now the decision is to skip normalization of Transactions and Spans,\n  // so this block overwrites the normalized event to add back the original\n  // Transaction information prior to normalization.\n  if (event.contexts?.trace && normalized.contexts) {\n    normalized.contexts.trace = event.contexts.trace;\n\n    // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n    if (event.contexts.trace.data) {\n      normalized.contexts.trace.data = normalize(event.contexts.trace.data, depth, maxBreadth);\n    }\n  }\n\n  // event.spans[].data may contain circular/dangerous data so we need to normalize it\n  if (event.spans) {\n    normalized.spans = event.spans.map(span => {\n      return {\n        ...span,\n        ...(span.data && {\n          data: normalize(span.data, depth, maxBreadth),\n        }),\n      };\n    });\n  }\n\n  // event.contexts.flags (FeatureFlagContext) stores context for our feature\n  // flag integrations. It has a greater nesting depth than our other typed\n  // Contexts, so we re-normalize with a fixed depth of 3 here. We do not want\n  // to skip this in case of conflicting, user-provided context.\n  if (event.contexts?.flags && normalized.contexts) {\n    normalized.contexts.flags = normalize(event.contexts.flags, 3, maxBreadth);\n  }\n\n  return normalized;\n}\n\nfunction getFinalScope(scope: Scope | undefined, captureContext: CaptureContext | undefined): Scope | undefined {\n  if (!captureContext) {\n    return scope;\n  }\n\n  const finalScope = scope ? scope.clone() : new Scope();\n  finalScope.update(captureContext);\n  return finalScope;\n}\n\n/**\n * Parse either an `EventHint` directly, or convert a `CaptureContext` to an `EventHint`.\n * This is used to allow to update method signatures that used to accept a `CaptureContext` but should now accept an `EventHint`.\n */\nexport function parseEventHintOrCaptureContext(\n  hint: ExclusiveEventHintOrCaptureContext | undefined,\n): EventHint | undefined {\n  if (!hint) {\n    return undefined;\n  }\n\n  // If you pass a Scope or `() => Scope` as CaptureContext, we just return this as captureContext\n  if (hintIsScopeOrFunction(hint)) {\n    return { captureContext: hint };\n  }\n\n  if (hintIsScopeContext(hint)) {\n    return {\n      captureContext: hint,\n    };\n  }\n\n  return hint;\n}\n\nfunction hintIsScopeOrFunction(hint: CaptureContext | EventHint): hint is Scope | ((scope: Scope) => Scope) {\n  return hint instanceof Scope || typeof hint === 'function';\n}\n\ntype ScopeContextProperty = keyof ScopeContext;\nconst captureContextKeys: readonly ScopeContextProperty[] = [\n  'user',\n  'level',\n  'extra',\n  'contexts',\n  'tags',\n  'fingerprint',\n  'propagationContext',\n] as const;\n\nfunction hintIsScopeContext(hint: Partial<ScopeContext> | EventHint): hint is Partial<ScopeContext> {\n  return Object.keys(hint).some(key => captureContextKeys.includes(key as ScopeContextProperty));\n}\n","import type { AttributeObject, RawAttribute, RawAttributes } from './attributes';\nimport { getClient, getCurrentScope, getIsolationScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { CaptureContext } from './scope';\nimport { closeSession, makeSession, updateSession } from './session';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { Extra, Extras } from './types/extra';\nimport type { Primitive } from './types/misc';\nimport type { Session, SessionContext } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { User } from './types/user';\nimport { filterKeyValueData } from './utils/data-collection/filterKeyValueData';\nimport { debug } from './utils/debug-logger';\nimport type { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent';\nimport { parseEventHintOrCaptureContext } from './utils/prepareEvent';\nimport { getCombinedScopeData } from './utils/scopeData';\nimport { GLOBAL_OBJ } from './utils/worldwide';\n\n/**\n * Captures an exception event and sends it to Sentry.\n *\n * @param exception The exception to capture.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured Sentry event.\n */\nexport function captureException(exception: unknown, hint?: ExclusiveEventHintOrCaptureContext): string {\n  return getCurrentScope().captureException(exception, parseEventHintOrCaptureContext(hint));\n}\n\n/**\n * Captures a message event and sends it to Sentry.\n *\n * @param message The message to send to Sentry.\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\nexport function captureMessage(message: string, captureContext?: CaptureContext | SeverityLevel): string {\n  // This is necessary to provide explicit scopes upgrade, without changing the original\n  // arity of the `captureMessage(message, level)` method.\n  const level = typeof captureContext === 'string' ? captureContext : undefined;\n  const hint = typeof captureContext !== 'string' ? { captureContext } : undefined;\n  return getCurrentScope().captureMessage(message, level, hint);\n}\n\n/**\n * Captures a manually created event and sends it to Sentry.\n *\n * @param event The event to send to Sentry.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured event.\n */\nexport function captureEvent(event: Event, hint?: EventHint): string {\n  return getCurrentScope().captureEvent(event, hint);\n}\n\n/**\n * Sets context data with the given name.\n * @param name of the context\n * @param context Any kind of data. This data will be normalized.\n */\nexport function setContext(name: string, context: { [key: string]: unknown } | null): void {\n  getIsolationScope().setContext(name, context);\n}\n\n/**\n * Set an object that will be merged sent as extra data with the event.\n * @param extras Extras object to merge into current context.\n */\nexport function setExtras(extras: Extras): void {\n  getIsolationScope().setExtras(extras);\n}\n\n/**\n * Set key:value that will be sent as extra data with the event.\n * @param key String of extra\n * @param extra Any kind of data. This data will be normalized.\n */\nexport function setExtra(key: string, extra: Extra): void {\n  getIsolationScope().setExtra(key, extra);\n}\n\n/**\n * Set an object that will be merged sent as tags data with the event.\n * @param tags Tags context object to merge into current context.\n */\nexport function setTags(tags: { [key: string]: Primitive }): void {\n  getIsolationScope().setTags(tags);\n}\n\n/**\n * Set key:value that will be sent as tags data with the event.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key String key of tag\n * @param value Value of tag\n */\nexport function setTag(key: string, value: Primitive): void {\n  getIsolationScope().setTag(key, value);\n}\n\n/**\n * Sets attributes on the isolation scope.\n *\n * These attributes are applied to logs, metrics and streamed spans.\n *\n * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n *\n * @param attributes - The attributes to set on the scope, as key-value pairs.\n *\n * @example\n * ```typescript\n * Sentry.setAttributes({\n *   is_admin: true,\n *   payment_selection: 'credit_card',\n *   render_duration: 150,\n * });\n * ```\n */\nexport function setAttributes<T extends Record<string, unknown>>(attributes: RawAttributes<T>): void {\n  getIsolationScope().setAttributes(attributes);\n}\n\n/**\n * Sets an attribute on the isolation scope.\n *\n * These attributes are applied to logs, metrics and streamed spans.\n *\n * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n *\n * @param key - The attribute key.\n * @param value - The attribute value.\n *\n * @example\n * ```typescript\n * Sentry.setAttribute('is_admin', true);\n * Sentry.setAttribute('render_duration', 150);\n * ```\n */\nexport function setAttribute<\n  // oxlint-disable-next-line typescript-eslint/no-explicit-any\n  T extends (RawAttribute<T> extends { value: any } | { unit: any } ? AttributeObject : unknown),\n>(key: string, value: RawAttribute<T>): void {\n  getIsolationScope().setAttribute(key, value);\n}\n\n/**\n * Updates user context information for future events.\n *\n * @param user User context object to be set in the current context. Pass `null` to unset the user.\n */\nexport function setUser(user: User | null): void {\n  getIsolationScope().setUser(user);\n}\n\n/**\n * Sets the conversation ID for the current isolation scope.\n *\n * @param conversationId The conversation ID to set. Pass `null` or `undefined` to unset the conversation ID.\n */\nexport function setConversationId(conversationId: string | null | undefined): void {\n  getIsolationScope().setConversationId(conversationId);\n}\n\n/**\n * The last error event id of the isolation scope.\n *\n * Warning: This function really returns the last recorded error event id on the current\n * isolation scope. If you call this function after handling a certain error and another error\n * is captured in between, the last one is returned instead of the one you might expect.\n * Also, ids of events that were never sent to Sentry (for example because\n * they were dropped by sampling or `beforeSend`) could be returned.\n *\n * @returns The last event id of the isolation scope.\n */\nexport function lastEventId(): string | undefined {\n  return getIsolationScope().lastEventId();\n}\n\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport async function flush(timeout?: number): Promise<boolean> {\n  const client = getClient();\n  if (client) {\n    return client.flush(timeout);\n  }\n  DEBUG_BUILD && debug.warn('Cannot flush events. No client defined.');\n  return Promise.resolve(false);\n}\n\n/**\n * Call `close()` on the current client, if there is one, and unbind it from the current scope.\n * See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport async function close(timeout?: number): Promise<boolean> {\n  const scope = getCurrentScope();\n  const client = scope.getClient();\n  if (client) {\n    const result = await client.close(timeout);\n    // Unbind the client, so a later `init()` sets up a new one.\n    if (scope.getClient() === client) {\n      scope.setClient(undefined);\n    }\n    return result;\n  }\n  DEBUG_BUILD && debug.warn('Cannot flush events and disable SDK. No client defined.');\n  return Promise.resolve(false);\n}\n\n/**\n * Returns true if Sentry has been properly initialized.\n */\nexport function isInitialized(): boolean {\n  return !!getClient();\n}\n\n/** If the SDK is initialized & enabled. */\nexport function isEnabled(): boolean {\n  const client = getClient();\n  return client?.getOptions().enabled !== false && !!client?.getTransport();\n}\n\n/**\n * Add an event processor.\n * This will be added to the current isolation scope, ensuring any event that is processed in the current execution\n * context will have the processor applied.\n */\nexport function addEventProcessor(callback: EventProcessor): void {\n  getIsolationScope().addEventProcessor(callback);\n}\n\n/**\n * Start a session on the current isolation scope.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns the new active session\n */\nexport function startSession(context?: SessionContext): Session {\n  const isolationScope = getIsolationScope();\n\n  const { user } = getCombinedScopeData(isolationScope, getCurrentScope());\n\n  let userAgent = GLOBAL_OBJ.navigator?.userAgent;\n  if (userAgent) {\n    const headerCollection = getClient()?.getDataCollectionOptions().httpHeaders.request ?? true;\n    userAgent = filterKeyValueData({ 'User-Agent': userAgent }, headerCollection)['User-Agent'];\n  }\n\n  const session = makeSession({\n    user,\n    userAgent,\n    ...context,\n  });\n\n  // End existing session if there's one\n  const currentSession = isolationScope.getSession();\n  if (currentSession?.status === 'ok') {\n    updateSession(currentSession, { status: 'exited' });\n  }\n\n  endSession();\n\n  // Afterwards we set the new session on the scope\n  isolationScope.setSession(session);\n\n  return session;\n}\n\n/**\n * End the session on the current isolation scope.\n */\nexport function endSession(): void {\n  const isolationScope = getIsolationScope();\n  const currentScope = getCurrentScope();\n\n  const session = currentScope.getSession() || isolationScope.getSession();\n  if (session) {\n    closeSession(session);\n  }\n  _sendSessionUpdate();\n\n  // the session is over; take it off of the scope\n  isolationScope.setSession();\n}\n\n/**\n * Sends the current Session on the scope\n */\nfunction _sendSessionUpdate(): void {\n  const isolationScope = getIsolationScope();\n  const client = getClient();\n  const session = isolationScope.getSession();\n  if (session && client) {\n    client.captureSession(session);\n  }\n}\n\n/**\n * Sends the current session on the scope to Sentry\n *\n * @param end If set the session will be marked as exited and removed from the scope.\n *            Defaults to `false`.\n */\nexport function captureSession(end: boolean = false): void {\n  // both send the update and pull the session from the scope\n  if (end) {\n    endSession();\n    return;\n  }\n\n  // only send the update\n  _sendSessionUpdate();\n}\n","import type { ReportDialogOptions } from './report-dialog';\nimport type { DsnComponents, DsnLike } from './types/dsn';\nimport type { SdkInfo } from './types/sdkinfo';\nimport { dsnToString, makeDsn } from './utils/dsn';\n\nexport const SENTRY_API_VERSION = '7';\n\n/** Returns the prefix to construct Sentry ingestion API endpoints. */\nfunction getBaseApiEndpoint(dsn: DsnComponents): string {\n  const protocol = dsn.protocol ? `${dsn.protocol}:` : '';\n  const port = dsn.port ? `:${dsn.port}` : '';\n  return `${protocol}//${dsn.host}${port}${dsn.path ? `/${dsn.path}` : ''}/api/`;\n}\n\n/** Returns the ingest API endpoint for target. */\nfunction _getIngestEndpoint(dsn: DsnComponents): string {\n  return `${getBaseApiEndpoint(dsn)}${dsn.projectId}/envelope/`;\n}\n\n/** Returns a URL-encoded string with auth config suitable for a query string. */\nfunction _encodedAuth(dsn: DsnComponents, sdkInfo: SdkInfo | undefined): string {\n  const params: Record<string, string> = {\n    sentry_version: SENTRY_API_VERSION,\n  };\n\n  if (dsn.publicKey) {\n    // We send only the minimum set of required information. See\n    // https://github.com/getsentry/sentry-javascript/issues/2572.\n    params.sentry_key = dsn.publicKey;\n  }\n\n  if (sdkInfo) {\n    params.sentry_client = `${sdkInfo.name}/${sdkInfo.version}`;\n  }\n\n  return new URLSearchParams(params).toString();\n}\n\n/**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\nexport function getEnvelopeEndpointWithUrlEncodedAuth(dsn: DsnComponents, tunnel?: string, sdkInfo?: SdkInfo): string {\n  return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, sdkInfo)}`;\n}\n\n/** Returns the url to the report dialog endpoint. */\nexport function getReportDialogEndpoint(dsnLike: DsnLike, dialogOptions: ReportDialogOptions): string {\n  const dsn = makeDsn(dsnLike);\n  if (!dsn) {\n    return '';\n  }\n\n  const endpoint = `${getBaseApiEndpoint(dsn)}embed/error-page/`;\n\n  let encodedOptions = `dsn=${dsnToString(dsn)}`;\n  for (const key in dialogOptions) {\n    if (key === 'dsn') {\n      continue;\n    }\n\n    if (key === 'onClose' || key === 'onError') {\n      continue;\n    }\n\n    if (key === 'user') {\n      const user = dialogOptions.user;\n      if (!user) {\n        continue;\n      }\n      if (user.name) {\n        encodedOptions += `&name=${encodeURIComponent(user.name)}`;\n      }\n      if (user.email) {\n        encodedOptions += `&email=${encodeURIComponent(user.email)}`;\n      }\n    } else {\n      encodedOptions += `&${encodeURIComponent(key)}=${encodeURIComponent(dialogOptions[key] as string)}`;\n    }\n  }\n\n  return `${endpoint}?${encodedOptions}`;\n}\n","import type { Client } from '../../client';\nimport type { SpanContainerItem } from '../../types/envelope';\nimport type { Event } from '../../types/event';\nimport { createSpanContainerItem } from './envelope';\nimport { hasSpanStreamingEnabled } from './hasSpanStreamingEnabled';\nimport { spanJsonToSerializedStreamedSpan } from './spanJsonToStreamedSpan';\n\n/**\n * Extracts gen_ai spans from a transaction event, converts them to span v2 format,\n * and returns them as a SpanContainerItem.\n *\n * Only applies to static mode (non-streaming) transactions.\n *\n * WARNING: This function mutates `event.spans` by removing the extracted gen_ai spans\n * from the array. Call this before creating the event envelope so the transaction\n * item does not include the extracted spans.\n */\nexport function extractGenAiSpansFromEvent(event: Event, client: Client): SpanContainerItem | undefined {\n  if (\n    event.type !== 'transaction' ||\n    !event.spans?.length ||\n    !event.sdkProcessingMetadata?.hasGenAiSpans ||\n    hasSpanStreamingEnabled(client)\n  ) {\n    return undefined;\n  }\n\n  const genAiSpans = [];\n  const remainingSpans = [];\n\n  for (const span of event.spans) {\n    if (span.op?.startsWith('gen_ai.')) {\n      genAiSpans.push(spanJsonToSerializedStreamedSpan(span));\n    } else {\n      remainingSpans.push(span);\n    }\n  }\n\n  if (genAiSpans.length === 0) {\n    return undefined;\n  }\n\n  event.spans = remainingSpans;\n\n  return createSpanContainerItem(genAiSpans, client);\n}\n","import { rejectedSyncPromise, resolvedSyncPromise } from './syncpromise';\nimport { safeUnref } from './timer';\n\nexport interface PromiseBuffer<T> {\n  // exposes the internal array so tests can assert on the state of it.\n  // XXX: this really should not be public api.\n  $: PromiseLike<T>[];\n  add(taskProducer: () => PromiseLike<T>): PromiseLike<T>;\n  drain(timeout?: number): PromiseLike<boolean>;\n}\n\nexport const SENTRY_BUFFER_FULL_ERROR = Symbol.for('SentryBufferFullError');\n\n/**\n * Creates an new PromiseBuffer object with the specified limit\n * @param limit max number of promises that can be stored in the buffer\n */\nexport function makePromiseBuffer<T>(limit: number = 100): PromiseBuffer<T> {\n  const buffer: Set<PromiseLike<T>> = new Set();\n\n  function isReady(): boolean {\n    return buffer.size < limit;\n  }\n\n  /**\n   * Remove a promise from the queue.\n   *\n   * @param task Can be any PromiseLike<T>\n   * @returns Removed promise.\n   */\n  function remove(task: PromiseLike<T>): void {\n    buffer.delete(task);\n  }\n\n  /**\n   * Add a promise (representing an in-flight action) to the queue, and set it to remove itself on fulfillment.\n   *\n   * @param taskProducer A function producing any PromiseLike<T>; In previous versions this used to be `task:\n   *        PromiseLike<T>`, but under that model, Promises were instantly created on the call-site and their executor\n   *        functions therefore ran immediately. Thus, even if the buffer was full, the action still happened. By\n   *        requiring the promise to be wrapped in a function, we can defer promise creation until after the buffer\n   *        limit check.\n   * @returns The original promise.\n   */\n  function add(taskProducer: () => PromiseLike<T>): PromiseLike<T> {\n    if (!isReady()) {\n      return rejectedSyncPromise(SENTRY_BUFFER_FULL_ERROR);\n    }\n\n    // start the task and add its promise to the queue\n    const task = taskProducer();\n    buffer.add(task);\n    void task.then(\n      () => remove(task),\n      () => remove(task),\n    );\n    return task;\n  }\n\n  /**\n   * Wait for all promises in the queue to resolve or for timeout to expire, whichever comes first.\n   *\n   * @param timeout The time, in ms, after which to resolve to `false` if the queue is still non-empty. Passing `0` (or\n   * not passing anything) will make the promise wait as long as it takes for the queue to drain before resolving to\n   * `true`.\n   * @returns A promise which will resolve to `true` if the queue is already empty or drains before the timeout, and\n   * `false` otherwise\n   */\n  function drain(timeout?: number): PromiseLike<boolean> {\n    if (!buffer.size) {\n      return resolvedSyncPromise(true);\n    }\n\n    // We want to resolve even if one of the promises rejects\n    const drainPromise = Promise.allSettled(Array.from(buffer)).then(() => true);\n\n    if (!timeout) {\n      return drainPromise;\n    }\n\n    const promises = [\n      drainPromise,\n      new Promise<boolean>(resolve => safeUnref(setTimeout(() => resolve(false), timeout))),\n    ];\n\n    return Promise.race(promises);\n  }\n\n  return {\n    get $(): PromiseLike<T>[] {\n      return Array.from(buffer);\n    },\n    add,\n    drain,\n  };\n}\n","import type { DataCategory } from '../types/datacategory';\nimport type { TransportMakeRequestResponse } from '../types/transport';\nimport { safeDateNow } from './randomSafeContext';\n\n// Intentionally keeping the key broad, as we don't know for sure what rate limit headers get returned from backend\nexport type RateLimits = Record<string, number>;\n\nexport const DEFAULT_RETRY_AFTER = 60 * 1000; // 60 seconds\n\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param header string representation of 'Retry-After' header\n * @param now current unix timestamp\n *\n */\nexport function parseRetryAfterHeader(header: string, now: number = safeDateNow()): number {\n  const headerDelay = parseInt(`${header}`, 10);\n  if (!isNaN(headerDelay)) {\n    return headerDelay * 1000;\n  }\n\n  const headerDate = Date.parse(`${header}`);\n  if (!isNaN(headerDate)) {\n    return headerDate - now;\n  }\n\n  return DEFAULT_RETRY_AFTER;\n}\n\n/**\n * Gets the time that the given category is disabled until for rate limiting.\n * In case no category-specific limit is set but a general rate limit across all categories is active,\n * that time is returned.\n *\n * @return the time in ms that the category is disabled until or 0 if there's no active rate limit.\n */\nexport function disabledUntil(limits: RateLimits, dataCategory: DataCategory): number {\n  return limits[dataCategory] || limits.all || 0;\n}\n\n/**\n * Checks if a category is rate limited\n */\nexport function isRateLimited(limits: RateLimits, dataCategory: DataCategory, now: number = safeDateNow()): boolean {\n  return disabledUntil(limits, dataCategory) > now;\n}\n\n/**\n * Update ratelimits from incoming headers.\n *\n * @return the updated RateLimits object.\n */\nexport function updateRateLimits(\n  limits: RateLimits,\n  { statusCode, headers }: TransportMakeRequestResponse,\n  now: number = safeDateNow(),\n): RateLimits {\n  const updatedRateLimits: RateLimits = {\n    ...limits,\n  };\n\n  // \"The name is case-insensitive.\"\n  // https://developer.mozilla.org/en-US/docs/Web/API/Headers/get\n  const rateLimitHeader = headers?.['x-sentry-rate-limits'];\n  const retryAfterHeader = headers?.['retry-after'];\n\n  if (rateLimitHeader) {\n    /**\n     * rate limit headers are of the form\n     *     <header>,<header>,..\n     * where each <header> is of the form\n     *     <retry_after>: <categories>: <scope>: <reason_code>: <namespaces>\n     * where\n     *     <retry_after> is a delay in seconds\n     *     <categories> is the event type(s) (error, transaction, etc) being rate limited and is of the form\n     *         <category>;<category>;...\n     *     <scope> is what's being limited (org, project, or key) - ignored by SDK\n     *     <reason_code> is an arbitrary string like \"org_quota\" - ignored by SDK\n     *     <namespaces> Semicolon-separated list of metric namespace identifiers. Defines which namespace(s) will be affected.\n     *         Only present if rate limit applies to the metric_bucket data category.\n     */\n    for (const limit of rateLimitHeader.trim().split(',')) {\n      const [retryAfter, categories, , , namespaces] = limit.split(':', 5) as [string, ...string[]];\n      const headerDelay = parseInt(retryAfter, 10);\n      const delay = (!isNaN(headerDelay) ? headerDelay : 60) * 1000; // 60sec default\n      if (!categories) {\n        updatedRateLimits.all = now + delay;\n      } else {\n        for (const category of categories.split(';')) {\n          if (category === 'metric_bucket') {\n            // namespaces will be present when category === 'metric_bucket'\n            if (!namespaces || namespaces.split(';').includes('custom')) {\n              updatedRateLimits[category] = now + delay;\n            }\n          } else {\n            updatedRateLimits[category] = now + delay;\n          }\n        }\n      }\n    }\n  } else if (retryAfterHeader) {\n    updatedRateLimits.all = now + parseRetryAfterHeader(retryAfterHeader, now);\n  } else if (statusCode === 429) {\n    updatedRateLimits.all = now + 60 * 1000;\n  }\n\n  return updatedRateLimits;\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { EventDropReason } from '../types/clientreport';\nimport type { Envelope, EnvelopeItem, EnvelopeItemType } from '../types/envelope';\nimport type { Event } from '../types/event';\nimport type {\n  InternalBaseTransportOptions,\n  Transport,\n  TransportMakeRequestResponse,\n  TransportRequestExecutor,\n} from '../types/transport';\nimport { debug } from '../utils/debug-logger';\nimport {\n  createEnvelope,\n  envelopeContainsItemType,\n  envelopeItemTypeToDataCategory,\n  forEachEnvelopeItem,\n  serializeEnvelope,\n} from '../utils/envelope';\nimport { makePromiseBuffer, type PromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from '../utils/promisebuffer';\nimport { isRateLimited, type RateLimits, updateRateLimits } from '../utils/ratelimit';\n\nexport const DEFAULT_TRANSPORT_BUFFER_SIZE = 64;\n\n/**\n * Creates an instance of a Sentry `Transport`\n *\n * @param options\n * @param makeRequest\n */\nexport function createTransport(\n  options: InternalBaseTransportOptions,\n  makeRequest: TransportRequestExecutor,\n  buffer: PromiseBuffer<TransportMakeRequestResponse> = makePromiseBuffer(\n    options.bufferSize || DEFAULT_TRANSPORT_BUFFER_SIZE,\n  ),\n): Transport {\n  let rateLimits: RateLimits = {};\n  const flush = (timeout?: number): PromiseLike<boolean> => buffer.drain(timeout);\n\n  function recordItemLoss(reason: EventDropReason, [headers, payload]: EnvelopeItem, type: EnvelopeItemType): void {\n    const dataCategory = envelopeItemTypeToDataCategory(type);\n    if (type === 'transaction') {\n      // The transaction itself counts as a span, too\n      options.recordDroppedEvent(reason, 'span', ((payload as Event).spans?.length ?? 0) + 1);\n    }\n    options.recordDroppedEvent(reason, dataCategory, typeof headers.item_count === 'number' ? headers.item_count : 1);\n  }\n\n  function send(envelope: Envelope): PromiseLike<TransportMakeRequestResponse> {\n    const filteredEnvelopeItems: EnvelopeItem[] = [];\n\n    // Drop rate limited items from envelope\n    forEachEnvelopeItem(envelope, (item, type) => {\n      if (isRateLimited(rateLimits, envelopeItemTypeToDataCategory(type))) {\n        recordItemLoss('ratelimit_backoff', item, type);\n      } else {\n        filteredEnvelopeItems.push(item);\n      }\n    });\n\n    // Skip sending if envelope is empty after filtering out rate limited events\n    if (filteredEnvelopeItems.length === 0) {\n      return Promise.resolve({});\n    }\n\n    const filteredEnvelope: Envelope = createEnvelope(envelope[0], filteredEnvelopeItems as (typeof envelope)[1]);\n\n    // Creates client report for each item in an envelope\n    const recordEnvelopeLoss = (reason: EventDropReason): void => {\n      // Don't record outcomes for client reports - we don't want to create a feedback loop if client reports themselves fail to send\n      if (envelopeContainsItemType(filteredEnvelope, ['client_report'])) {\n        DEBUG_BUILD && debug.warn(`Dropping client report. Will not send outcomes (reason: ${reason}).`);\n        return;\n      }\n      forEachEnvelopeItem(filteredEnvelope, (item, type) => {\n        recordItemLoss(reason, item, type);\n      });\n    };\n\n    const requestTask = (): PromiseLike<TransportMakeRequestResponse> =>\n      makeRequest({ body: serializeEnvelope(filteredEnvelope) }).then(\n        response => {\n          // Handle 413 Content Too Large\n          // Loss of envelope content is expected so we record a send_error client report\n          // https://develop.sentry.dev/sdk/expected-features/#dealing-with-network-failures\n          if (response.statusCode === 413) {\n            DEBUG_BUILD &&\n              debug.error(\n                'Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.',\n              );\n            recordEnvelopeLoss('send_error');\n            return response;\n          }\n\n          // We don't want to throw on NOK responses, but we want to at least log them\n          if (\n            DEBUG_BUILD &&\n            response.statusCode !== undefined &&\n            (response.statusCode < 200 || response.statusCode >= 300)\n          ) {\n            debug.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);\n          }\n\n          rateLimits = updateRateLimits(rateLimits, response);\n          return response;\n        },\n        error => {\n          recordEnvelopeLoss('network_error');\n          DEBUG_BUILD && debug.error('Encountered error running transport request:', error);\n          throw error;\n        },\n      );\n\n    return buffer.add(requestTask).then(\n      result => result,\n      error => {\n        if (error === SENTRY_BUFFER_FULL_ERROR) {\n          DEBUG_BUILD && debug.error('Skipped sending event because buffer is full.');\n          recordEnvelopeLoss('queue_overflow');\n          return Promise.resolve({});\n        } else {\n          throw error;\n        }\n      },\n    );\n  }\n\n  return {\n    send,\n    flush,\n  };\n}\n","import type { ClientReport } from '../types/clientreport';\nimport type { ClientReportEnvelope, ClientReportItem } from '../types/envelope';\nimport { createEnvelope } from './envelope';\nimport { dateTimestampInSeconds } from './time';\n\n/**\n * Creates client report envelope\n * @param discarded_events An array of discard events\n * @param dsn A DSN that can be set on the header. Optional.\n */\nexport function createClientReportEnvelope(\n  discarded_events: ClientReport['discarded_events'],\n  dsn?: string,\n  timestamp?: number,\n): ClientReportEnvelope {\n  const clientReportItem: ClientReportItem = [\n    { type: 'client_report' },\n    {\n      timestamp: timestamp || dateTimestampInSeconds(),\n      discarded_events,\n    },\n  ];\n  return createEnvelope<ClientReportEnvelope>(dsn ? { dsn } : {}, [clientReportItem]);\n}\n","import { SENTRY_PROFILE_ID, SENTRY_EXCLUSIVE_TIME } from '@sentry/conventions/attributes';\nimport type { TransactionEvent } from '../types/event';\nimport type { SpanJSON } from '../types/span';\n\n/**\n * Converts a transaction event to a span JSON object.\n */\nexport function convertTransactionEventToSpanJson(event: TransactionEvent): SpanJSON {\n  const { trace_id, parent_span_id, span_id, status, origin, data, op, links } = event.contexts?.trace ?? {};\n\n  return {\n    data: data ?? {},\n    description: event.transaction,\n    op,\n    parent_span_id,\n    span_id: span_id ?? '',\n    start_timestamp: event.start_timestamp ?? 0,\n    status: status ?? 'ok',\n    timestamp: event.timestamp,\n    trace_id: trace_id ?? '',\n    origin,\n    links,\n    profile_id: data?.[SENTRY_PROFILE_ID] as string | undefined,\n    exclusive_time: data?.[SENTRY_EXCLUSIVE_TIME] as number | undefined,\n    measurements: event.measurements,\n    is_segment: true,\n  };\n}\n\n/**\n * Converts a span JSON object to a transaction event.\n */\nexport function convertSpanJsonToTransactionEvent(span: SpanJSON): TransactionEvent {\n  return {\n    type: 'transaction',\n    timestamp: span.timestamp,\n    start_timestamp: span.start_timestamp,\n    transaction: span.description,\n    contexts: {\n      trace: {\n        trace_id: span.trace_id,\n        span_id: span.span_id,\n        parent_span_id: span.parent_span_id,\n        op: span.op,\n        status: span.status,\n        origin: span.origin,\n        links: span.links,\n        data: {\n          ...span.data,\n          ...(span.profile_id && { [SENTRY_PROFILE_ID]: span.profile_id }),\n          ...(span.exclusive_time && { [SENTRY_EXCLUSIVE_TIME]: span.exclusive_time }),\n        },\n      },\n    },\n    measurements: span.measurements,\n  };\n}\n","import type { ClientOptions } from '../types/options';\nimport { consoleSandbox } from './debug-logger';\n\n/**\n * Warns about `beforeSendTransaction` and `ignoreTransactions` being ignored because span streaming is enabled.\n *\n * Both options are tied to the transaction event that span streaming no longer produces, so they silently\n * stop taking effect when users upgrade. Since that's easy to miss, this warning bypasses the `debug` logger\n * (which is opt-in and stripped from non-debug bundles) and writes to the console directly.\n */\nexport function maybeWarnAboutIgnoredTransactionOptions(options: ClientOptions): void {\n  if (\n    options.traceLifecycle !== 'stream' ||\n    // oxlint-disable-next-line typescript/no-deprecated\n    !(options.beforeSendTransaction || options.ignoreTransactions?.length)\n  ) {\n    return;\n  }\n\n  consoleSandbox(() => {\n    // oxlint-disable-next-line no-console\n    console.warn(\n      \"[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.\",\n    );\n  });\n}\n","import type {\n  CollectBehavior,\n  DataCollection,\n  HttpHeadersCollection,\n  ResolvedDataCollection,\n} from '../../types/datacollection';\n\nconst DEFAULTS: ResolvedDataCollection = {\n  userInfo: true,\n  cookies: true,\n  httpHeaders: { request: true, response: true },\n  httpBodies: ['incomingRequest', 'outgoingRequest', 'incomingResponse', 'outgoingResponse'],\n  urlQueryParams: true,\n  graphQL: { document: true, variables: true },\n  genAI: { inputs: true, outputs: true },\n  mcp: { inputs: true, outputs: true },\n  databaseQueryData: true,\n  queues: true,\n  stackFrameVariables: true,\n  frameContextLines: 5,\n};\n\nfunction isCollectBehavior(value: CollectBehavior | HttpHeadersCollection): value is CollectBehavior {\n  return typeof value === 'boolean' || 'allow' in value || 'deny' in value;\n}\n\nfunction resolveHttpHeaders(httpHeaders: DataCollection['httpHeaders']): ResolvedDataCollection['httpHeaders'] {\n  if (httpHeaders === undefined) {\n    return { ...DEFAULTS.httpHeaders };\n  }\n\n  if (isCollectBehavior(httpHeaders)) {\n    return { request: httpHeaders, response: httpHeaders };\n  }\n\n  return {\n    request: httpHeaders.request ?? DEFAULTS.httpHeaders.request,\n    response: httpHeaders.response ?? DEFAULTS.httpHeaders.response,\n  };\n}\n\n/**\n * Resolves the effective `DataCollection` configuration from client options.\n *\n * Precedence:\n * 1. Spec defaults\n * 2. Fields explicitly set in `dataCollection`\n */\nexport function resolveDataCollectionOptions(options: { dataCollection?: DataCollection }): ResolvedDataCollection {\n  const dc = options.dataCollection ?? {};\n\n  return {\n    userInfo: dc.userInfo ?? DEFAULTS.userInfo,\n    cookies: dc.cookies ?? DEFAULTS.cookies,\n    httpHeaders: resolveHttpHeaders(dc.httpHeaders),\n    httpBodies: dc.httpBodies ?? DEFAULTS.httpBodies,\n    urlQueryParams: dc.urlQueryParams ?? DEFAULTS.urlQueryParams,\n    graphQL: {\n      document: dc.graphQL?.document ?? DEFAULTS.graphQL.document,\n      variables: dc.graphQL?.variables ?? DEFAULTS.graphQL.variables,\n    },\n    genAI: {\n      inputs: dc.genAI?.inputs ?? DEFAULTS.genAI.inputs,\n      outputs: dc.genAI?.outputs ?? DEFAULTS.genAI.outputs,\n    },\n    mcp: {\n      inputs: dc.mcp?.inputs ?? DEFAULTS.mcp.inputs,\n      outputs: dc.mcp?.outputs ?? DEFAULTS.mcp.outputs,\n    },\n    databaseQueryData: dc.databaseQueryData ?? DEFAULTS.databaseQueryData,\n    queues: dc.queues ?? DEFAULTS.queues,\n    stackFrameVariables: dc.stackFrameVariables ?? DEFAULTS.stackFrameVariables,\n    frameContextLines: dc.frameContextLines ?? DEFAULTS.frameContextLines,\n  };\n}\n","/* eslint-disable max-lines */\nimport { getEnvelopeEndpointWithUrlEncodedAuth } from './api';\nimport { DEFAULT_ENVIRONMENT } from './constants';\nimport { getCurrentScope, getIsolationScope, getTraceContextFromScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport { createEventEnvelope, createSessionEnvelope } from './envelope';\nimport type { IntegrationIndex } from './integration';\nimport { afterSetupIntegrations, setupIntegration, setupIntegrations } from './integration';\nimport type { Scope } from './scope';\nimport { updateSession } from './session';\nimport { getDynamicSamplingContextFromScope } from './tracing/dynamicSamplingContext';\nimport { isStaticBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';\nimport { extractGenAiSpansFromEvent } from './tracing/spans/extractGenAiSpans';\nimport { DEFAULT_TRANSPORT_BUFFER_SIZE } from './transports/base';\nimport type { Breadcrumb, BreadcrumbHint, FetchBreadcrumbHint, XhrBreadcrumbHint } from './types/breadcrumb';\nimport type { CheckIn, MonitorConfig } from './types/checkin';\nimport type { EventDropReason, Outcome } from './types/clientreport';\nimport type { DataCategory } from './types/datacategory';\nimport type { DsnComponents } from './types/dsn';\nimport type { DynamicSamplingContext, Envelope } from './types/envelope';\nimport type { ErrorEvent, Event, EventHint, TransactionEvent } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { FeedbackEvent } from './types/feedback';\nimport type { Integration } from './types/integration';\nimport type { Log } from './types/log';\nimport type { Metric } from './types/metric';\nimport type { ClientOptions } from './types/options';\nimport type { ParameterizedString } from './types/parameterize';\nimport type { ReplayEndEvent, ReplayStartEvent } from './types/replay';\nimport type { RequestEventData } from './types/request';\nimport type { SdkMetadata } from './types/sdkmetadata';\nimport type { Session, SessionAggregates, SessionStatus } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { Span, SpanAttributes, SpanContextData, SpanJSON, StreamedSpanJSON } from './types/span';\nimport type { StartSpanOptions } from './types/startSpanOptions';\nimport type { Transport, TransportMakeRequestResponse } from './types/transport';\nimport type { ResolvedDataCollection } from './types/datacollection';\nimport { createClientReportEnvelope } from './utils/clientreport';\nimport { consoleSandbox, debug } from './utils/debug-logger';\nimport { dsnToString, makeDsn } from './utils/dsn';\nimport { addItemToEnvelope, createAttachmentEnvelopeItem, getDataCategoryByType } from './utils/envelope';\nimport { getPossibleEventMessages, isInternalException } from './utils/eventUtils';\nimport { isObjectLike, isParameterizedString, isPlainObject, isPrimitive } from './utils/is';\nimport { merge } from './utils/merge';\nimport { checkOrSetAlreadyCaught, uuid4 } from './utils/misc';\nimport { parseSampleRate } from './utils/parseSampleRate';\nimport { prepareEvent } from './utils/prepareEvent';\nimport { makePromiseBuffer, type PromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from './utils/promisebuffer';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { safeCallback } from './utils/safeCallback';\nimport { reparentChildSpans, shouldIgnoreSpan } from './utils/should-ignore-span';\nimport { rejectedSyncPromise } from './utils/syncpromise';\nimport { convertSpanJsonToTransactionEvent, convertTransactionEventToSpanJson } from './utils/transactionEvent';\nimport { maybeWarnAboutIgnoredTransactionOptions } from './utils/warnAboutIgnoredTransactionOptions';\nimport { resolveDataCollectionOptions } from './utils/data-collection/resolveDataCollectionOptions';\nimport { applyBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';\n\nconst ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\nconst MISSING_RELEASE_FOR_SESSION_ERROR = 'Discarded session because of missing or non-string release';\n\nconst INTERNAL_ERROR_SYMBOL = Symbol.for('SentryInternalError');\nconst DO_NOT_SEND_EVENT_SYMBOL = Symbol.for('SentryDoNotSendEventError');\n\n// Clones of a scope keep their own reference to its client, so unbinding a\n// closed client from one scope does not reach the others. The mark lives on\n// the client under a `Symbol.for` key, so every copy of the SDK can read it.\nconst CLOSED_CLIENT_SYMBOL = Symbol.for('SentryClosedClient');\n\n/**\n * Whether `close()` was called on the given client.\n *\n * @hidden\n */\nexport function isClientClosed(client: Client): boolean {\n  return CLOSED_CLIENT_SYMBOL in client;\n}\n\ninterface InternalError {\n  message: string;\n  [INTERNAL_ERROR_SYMBOL]: true;\n}\n\ninterface DoNotSendEventError {\n  message: string;\n  [DO_NOT_SEND_EVENT_SYMBOL]: true;\n}\n\nfunction _makeInternalError(message: string): InternalError {\n  return {\n    message,\n    [INTERNAL_ERROR_SYMBOL]: true,\n  };\n}\n\nfunction _makeDoNotSendEventError(message: string): DoNotSendEventError {\n  return {\n    message,\n    [DO_NOT_SEND_EVENT_SYMBOL]: true,\n  };\n}\n\nfunction _makeSampledOutError(sampleRate: ClientOptions['sampleRate']): DoNotSendEventError {\n  return _makeDoNotSendEventError(\n    `Discarding event because it's not included in the random sample (sampling rate = ${sampleRate})`,\n  );\n}\n\nfunction _isInternalError(error: unknown): error is InternalError {\n  return isObjectLike(error) && INTERNAL_ERROR_SYMBOL in error;\n}\n\nfunction _isDoNotSendEventError(error: unknown): error is DoNotSendEventError {\n  return isObjectLike(error) && DO_NOT_SEND_EVENT_SYMBOL in error;\n}\n\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event, it is passed through\n * {@link Client._prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends Client<NodeOptions> {\n *   public constructor(options: NodeOptions) {\n *     super(options);\n *   }\n *\n *   // ...\n * }\n */\nexport abstract class Client<O extends ClientOptions = ClientOptions> {\n  /** Options passed to the SDK. */\n  protected readonly _options: O;\n\n  /** The client Dsn, if specified in options. Without this Dsn, the SDK will be disabled. */\n  protected readonly _dsn?: DsnComponents;\n\n  protected readonly _transport?: Transport;\n\n  /** Array of set up integrations. */\n  protected _integrations: IntegrationIndex;\n\n  /** Number of calls being processed */\n  protected _numProcessing: number;\n\n  protected _eventProcessors: EventProcessor[];\n\n  /** Holds flushable  */\n  protected _outcomes: { [key: string]: number };\n\n  // eslint-disable-next-line @typescript-eslint/ban-types\n  protected _hooks: Record<string, Set<Function>>;\n\n  protected _promiseBuffer: PromiseBuffer<unknown>;\n\n  protected readonly _dataCollection: ResolvedDataCollection;\n\n  /**\n   * The session status to set when an unhandled error terminates a session.\n   *\n   * Defaults to `'crashed'`. Browser SDKs override this to `'unhandled'` because unhandled errors\n   * don't actually crash the browser.\n   */\n  protected _unhandledSessionStatus: SessionStatus;\n\n  /** Whether `attachStacktrace` came from the SDK default rather than the user's options. */\n  protected readonly _attachStacktraceIsDefault: boolean;\n\n  /**\n   * Initializes this client instance.\n   *\n   * @param options Options for the client.\n   */\n  protected constructor(options: O) {\n    // Any value other than `'static'` normalizes to the `'stream'` default, so that `traceLifecycle`\n    // is always one of the two known values for the rest of the SDK.\n    this._options = {\n      attachStacktrace: true,\n      ...options,\n      traceLifecycle: options.traceLifecycle === 'static' ? 'static' : 'stream',\n    };\n    this._integrations = {};\n    this._numProcessing = 0;\n    this._outcomes = {};\n    this._hooks = {};\n    this._eventProcessors = [];\n    this._promiseBuffer = makePromiseBuffer(options.transportOptions?.bufferSize ?? DEFAULT_TRANSPORT_BUFFER_SIZE);\n    this._dataCollection = resolveDataCollectionOptions(options);\n    this._unhandledSessionStatus = 'crashed';\n    this._attachStacktraceIsDefault = options.attachStacktrace === undefined;\n\n    if (options.dsn) {\n      this._dsn = makeDsn(options.dsn);\n    } else {\n      DEBUG_BUILD && debug.warn('No DSN provided, client will not send events.');\n    }\n\n    const { beforeSendSpan, traceLifecycle } = this._options;\n    // A `beforeSendSpan` callback is only invoked for the span format matching the trace lifecycle,\n    // so a mismatch means it is silently never called.\n    if (\n      DEBUG_BUILD &&\n      beforeSendSpan &&\n      isStaticBeforeSendSpanCallback(beforeSendSpan) !== (traceLifecycle === 'static')\n    ) {\n      consoleSandbox(() => {\n        // oxlint-disable-next-line no-console\n        console.warn(\n          `Ignoring \\`beforeSendSpan\\`: ${\n            traceLifecycle === 'static' ? 'wrap it with' : 'remove'\n          } \\`Sentry.withStaticSpan\\` to use it with \\`traceLifecycle: \"${traceLifecycle}\"\\`.`,\n        );\n      });\n    }\n\n    if (this._dsn) {\n      const url = getEnvelopeEndpointWithUrlEncodedAuth(\n        this._dsn,\n        options.tunnel,\n        options._metadata ? options._metadata.sdk : undefined,\n      );\n      this._transport = options.transport({\n        tunnel: this._options.tunnel,\n        recordDroppedEvent: this.recordDroppedEvent.bind(this),\n        ...options.transportOptions,\n        url,\n      });\n    }\n  }\n\n  /**\n   * Captures an exception event and sends it to Sentry.\n   *\n   * Unlike `captureException` exported from every SDK, this method requires that you pass it the current scope.\n   */\n  public captureException(exception: unknown, hint?: EventHint, scope?: Scope): string {\n    const eventId = uuid4();\n\n    // ensure we haven't captured this very object before\n    if (checkOrSetAlreadyCaught(exception)) {\n      DEBUG_BUILD && debug.log(ALREADY_SEEN_ERROR);\n      return eventId;\n    }\n\n    const hintWithEventId = {\n      event_id: eventId,\n      ...hint,\n    };\n\n    this._process(\n      () =>\n        this.eventFromException(exception, hintWithEventId)\n          .then(event => this._captureEvent(event, hintWithEventId, scope))\n          .then(res => res),\n      'error',\n    );\n\n    return hintWithEventId.event_id;\n  }\n\n  /**\n   * Captures a message event and sends it to Sentry.\n   *\n   * Unlike `captureMessage` exported from every SDK, this method requires that you pass it the current scope.\n   */\n  public captureMessage(\n    message: ParameterizedString,\n    level?: SeverityLevel,\n    hint?: EventHint,\n    currentScope?: Scope,\n  ): string {\n    const hintWithEventId = {\n      event_id: uuid4(),\n      ...hint,\n    };\n\n    const eventMessage = isParameterizedString(message) ? message : String(message);\n    const isMessage = isPrimitive(message);\n    const promisedEvent = isMessage\n      ? this.eventFromMessage(eventMessage, level, hintWithEventId).then(event => {\n          // Lets Replay keep treating messages as non-errors unless the user opted into stack traces\n          if (event.exception && this._attachStacktraceIsDefault) {\n            event.sdkProcessingMetadata = { ...event.sdkProcessingMetadata, hasDefaultSyntheticStacktrace: true };\n          }\n\n          return event;\n        })\n      : this.eventFromException(message, hintWithEventId);\n\n    this._process(\n      () => promisedEvent.then(event => this._captureEvent(event, hintWithEventId, currentScope)),\n      isMessage ? 'unknown' : 'error',\n    );\n\n    return hintWithEventId.event_id;\n  }\n\n  /**\n   * Captures a manually created event and sends it to Sentry.\n   *\n   * Unlike `captureEvent` exported from every SDK, this method requires that you pass it the current scope.\n   */\n  public captureEvent(event: Event, hint?: EventHint, currentScope?: Scope): string {\n    const eventId = uuid4();\n\n    // ensure we haven't captured this very object before\n    if (hint?.originalException && checkOrSetAlreadyCaught(hint.originalException)) {\n      DEBUG_BUILD && debug.log(ALREADY_SEEN_ERROR);\n      return eventId;\n    }\n\n    const hintWithEventId = {\n      event_id: eventId,\n      ...hint,\n    };\n\n    const sdkProcessingMetadata = event.sdkProcessingMetadata || {};\n    const capturedSpanScope: Scope | undefined = sdkProcessingMetadata.capturedSpanScope;\n    const capturedSpanIsolationScope: Scope | undefined = sdkProcessingMetadata.capturedSpanIsolationScope;\n    const dataCategory = getDataCategoryByType(event.type);\n\n    this._process(\n      () => this._captureEvent(event, hintWithEventId, capturedSpanScope || currentScope, capturedSpanIsolationScope),\n      dataCategory,\n    );\n\n    return hintWithEventId.event_id;\n  }\n\n  /**\n   * Captures a session.\n   */\n  public captureSession(session: Session): void {\n    this.sendSession(session);\n    // After sending, we set init false to indicate it's not the first occurrence\n    updateSession(session, { init: false });\n  }\n\n  /**\n   * Create a cron monitor check in and send it to Sentry. This method is not available on all clients.\n   *\n   * @param checkIn An object that describes a check in.\n   * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want\n   * to create a monitor automatically when sending a check in.\n   * @param scope An optional scope containing event metadata.\n   * @returns A string representing the id of the check in.\n   */\n  public captureCheckIn?(checkIn: CheckIn, monitorConfig?: MonitorConfig, scope?: Scope): string;\n\n  /**\n   * Get the current Dsn.\n   */\n  public getDsn(): DsnComponents | undefined {\n    return this._dsn;\n  }\n\n  /**\n   * Get the current options.\n   */\n  public getOptions(): O {\n    return this._options;\n  }\n\n  /**\n   * Get the resolved data collection configuration.\n   */\n  public getDataCollectionOptions(): ResolvedDataCollection {\n    return this._dataCollection;\n  }\n\n  /**\n   * Get the SDK metadata.\n   * @see SdkMetadata\n   */\n  public getSdkMetadata(): SdkMetadata | undefined {\n    return this._options._metadata;\n  }\n\n  /**\n   * Returns the transport that is used by the client.\n   * Please note that the transport gets lazy initialized so it will only be there once the first event has been sent.\n   */\n  public getTransport(): Transport | undefined {\n    return this._transport;\n  }\n\n  /**\n   * Wait for all events to be sent or the timeout to expire, whichever comes first.\n   *\n   * @param timeout Maximum time in ms the client should wait for events to be flushed. Omitting this parameter will\n   *   cause the client to wait until all events are sent before resolving the promise.\n   * @returns A promise that will resolve with `true` if all events are sent before the timeout, or `false` if there are\n   * still events in the queue when the timeout is reached.\n   */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async flush(timeout?: number): PromiseLike<boolean> {\n    const transport = this._transport;\n\n    // Emit `flush` unconditionally so weight-based log/metric flushers drain\n    // their buffers and clear their idle timers, even when no transport is\n    // configured (e.g. no DSN).\n    this.emit('flush');\n\n    if (!transport) {\n      return true;\n    }\n\n    const clientFinished = await this._isClientDoneProcessing(timeout);\n    const transportFlushed = await transport.flush(timeout);\n\n    return clientFinished && transportFlushed;\n  }\n\n  /**\n   * Flush the event queue and set the client to `enabled = false`. See {@link Client.flush}.\n   *\n   * @param {number} timeout Maximum time in ms the client should wait before shutting down. Omitting this parameter will cause\n   *   the client to wait until all events are sent before disabling itself.\n   * @returns {Promise<boolean>} A promise which resolves to `true` if the flush completes successfully before the timeout, or `false` if\n   * it doesn't.\n   */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async close(timeout?: number): PromiseLike<boolean> {\n    Object.defineProperty(this, CLOSED_CLIENT_SYMBOL, { value: true });\n    const result = await this.flush(timeout);\n    this.getOptions().enabled = false;\n    this.emit('close');\n    return result;\n  }\n\n  /**\n   * Get all installed event processors.\n   */\n  public getEventProcessors(): EventProcessor[] {\n    return this._eventProcessors;\n  }\n\n  /**\n   * Adds an event processor that applies to any event processed by this client.\n   */\n  public addEventProcessor(eventProcessor: EventProcessor): void {\n    this._eventProcessors.push(eventProcessor);\n  }\n\n  /**\n   * Initialize this client.\n   * Call this after the client was set on a scope.\n   */\n  public init(): void {\n    if (\n      this._isEnabled() ||\n      // Force integrations to be setup even if no DSN was set when we have\n      // Spotlight enabled. This is particularly important for browser as we\n      // don't support the `spotlight` option there and rely on the users\n      // adding the `spotlightBrowserIntegration()` to their integrations which\n      // wouldn't get initialized with the check below when there's no DSN set.\n      this._options.integrations.some(({ name }) => name.startsWith('Spotlight'))\n    ) {\n      this._setupIntegrations();\n\n      maybeWarnAboutIgnoredTransactionOptions(this._options);\n    }\n  }\n\n  /**\n   * Gets an installed integration by its name.\n   *\n   * @returns {Integration|undefined} The installed integration or `undefined` if no integration with that `name` was installed.\n   */\n  public getIntegrationByName<T extends Integration = Integration>(integrationName: string): T | undefined {\n    return this._integrations[integrationName] as T | undefined;\n  }\n\n  /**\n   * Returns the names of all installed integrations.\n   */\n  public getIntegrationNames(): string[] {\n    return Object.keys(this._integrations);\n  }\n\n  /**\n   * Add an integration to the client.\n   * This can be used to e.g. lazy load integrations.\n   * In most cases, this should not be necessary,\n   * and you're better off just passing the integrations via `integrations: []` at initialization time.\n   * However, if you find the need to conditionally load & add an integration, you can use `addIntegration` to do so.\n   */\n  public addIntegration(integration: Integration): void {\n    const isAlreadyInstalled = this._integrations[integration.name];\n\n    if (!isAlreadyInstalled && integration.beforeSetup) {\n      integration.beforeSetup(this);\n    }\n\n    // This hook takes care of only installing if not already installed\n    setupIntegration(this, integration, this._integrations);\n    // Here we need to check manually to make sure to not run this multiple times\n    if (!isAlreadyInstalled) {\n      afterSetupIntegrations(this, [integration]);\n    }\n  }\n\n  /**\n   * Send a fully prepared event to Sentry.\n   */\n  public sendEvent(event: Event, hint: EventHint = {}): void {\n    this.emit('beforeSendEvent', event, hint);\n\n    // Extract gen_ai spans from transaction and convert to span v2 format.\n    // This mutates event.spans to remove the extracted spans.\n    const genAiSpanItem = extractGenAiSpansFromEvent(event, this);\n\n    let env = createEventEnvelope(event, this._dsn, this._options._metadata, this._options.tunnel);\n\n    if (!isInternalException(hint)) {\n      for (const attachment of hint.attachments || []) {\n        env = addItemToEnvelope(env, createAttachmentEnvelopeItem(attachment));\n      }\n    }\n\n    if (genAiSpanItem) {\n      env = addItemToEnvelope(env, genAiSpanItem);\n    }\n\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.sendEnvelope(env).then(sendResponse => this.emit('afterSendEvent', event, sendResponse));\n  }\n\n  /**\n   * Send a session or session aggregrates to Sentry.\n   */\n  public sendSession(session: Session | SessionAggregates): void {\n    // Backfill release and environment on session\n    const { release: clientReleaseOption, environment: clientEnvironmentOption = DEFAULT_ENVIRONMENT } = this._options;\n    if ('aggregates' in session) {\n      const sessionAttrs = session.attrs || {};\n      if (!sessionAttrs.release && !clientReleaseOption) {\n        DEBUG_BUILD && debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);\n        return;\n      }\n      sessionAttrs.release = sessionAttrs.release || clientReleaseOption;\n      sessionAttrs.environment = sessionAttrs.environment || clientEnvironmentOption;\n      session.attrs = sessionAttrs;\n    } else {\n      if (!session.release && !clientReleaseOption) {\n        DEBUG_BUILD && debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);\n        return;\n      }\n      session.release = session.release || clientReleaseOption;\n      session.environment = session.environment || clientEnvironmentOption;\n    }\n\n    this.emit('beforeSendSession', session);\n\n    const env = createSessionEnvelope(session, this._dsn, this._options._metadata, this._options.tunnel);\n\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.sendEnvelope(env);\n  }\n\n  /**\n   * Record on the client that an event got dropped (ie, an event that will not be sent to Sentry).\n   */\n  public recordDroppedEvent(reason: EventDropReason, category: DataCategory, count: number = 1): void {\n    if (this._options.sendClientReports) {\n      // We want to track each category (error, transaction, session, replay_event) separately\n      // but still keep the distinction between different type of outcomes.\n      // We could use nested maps, but it's much easier to read and type this way.\n      // A correct type for map-based implementation if we want to go that route\n      // would be `Partial<Record<SentryRequestType, Partial<Record<Outcome, number>>>>`\n      // With typescript 4.1 we could even use template literal types\n      const key = `${reason}:${category}`;\n      DEBUG_BUILD && debug.log(`Recording outcome: \"${key}\"${count > 1 ? ` (${count} times)` : ''}`);\n      this._outcomes[key] = (this._outcomes[key] || 0) + count;\n    }\n  }\n\n  /* eslint-disable @typescript-eslint/unified-signatures */\n  /**\n   * Register a callback for whenever a span is started.\n   * Receives the span as argument.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'spanStart', callback: (span: Span) => void): () => void;\n\n  /**\n   * Register a callback that can adjust the scope and the parent span right before a span is\n   * created. Listeners mutate the passed `spanScope` object. The Node SDK uses this to continue\n   * the trace of a remote (incoming) parent through the propagation context of a forked scope.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'prepareSpanScope',\n    callback: (spanScope: { scope: Scope; parentSpan: Span | undefined }) => void,\n  ): () => void;\n\n  /**\n   * Register a callback before span sampling runs. Receives a `samplingDecision` object argument with a `decision`\n   * property that can be used to make a sampling decision that will be enforced, before any span sampling runs.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeSampling',\n    callback: (\n      samplingData: {\n        spanAttributes: SpanAttributes;\n        spanName: string;\n        parentSampled?: boolean;\n        parentSampleRate?: number;\n        parentContext?: SpanContextData;\n      },\n      samplingDecision: { decision: boolean },\n    ) => void,\n  ): void;\n\n  /**\n   * Register a callback for after a span is ended.\n   * NOTE: The span cannot be mutated anymore in this callback.\n   * Receives the span as argument.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'spanEnd', callback: (span: Span) => void): () => void;\n\n  /** Register a callback before an idle span ends and its end timestamp is finalized. */\n  public on(hook: 'beforeIdleSpanEnd', callback: (idleSpan: Span) => void): () => void;\n\n  /**\n   * Register a callback for after a span is ended and the `spanEnd` hook has run.\n   * NOTE: The span cannot be mutated anymore in this callback.\n   */\n  public on(hook: 'afterSpanEnd', callback: (immutableSegmentSpan: Readonly<Span>) => void): () => void;\n\n  /**\n   * Register a callback for after a segment span is ended and the `segmentSpanEnd` hook has run.\n   * NOTE: The segment span cannot be mutated anymore in this callback.\n   */\n  public on(hook: 'afterSegmentSpanEnd', callback: (immutableSegmentSpan: Readonly<Span>) => void): () => void;\n\n  /**\n   * Register a callback to preprocess a span JSON _before_ it is passed to the `processSpan` and\n   * `processSegmentSpan` hooks. Use this to backfill data that subsequent hooks rely on.\n   */\n  public on(hook: 'preprocessSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n  /**\n   * Register a callback for when a span JSON is processed, to add some data to the span JSON.\n   */\n  public on(hook: 'processSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n  /**\n   * Register a callback for when a segment span JSON is processed, to add some data to the segment span JSON.\n   */\n  public on(hook: 'processSegmentSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n  /**\n   * Register a callback for when an idle span is allowed to auto-finish.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'idleSpanEnableAutoFinish', callback: (span: Span) => void): () => void;\n\n  /**\n   * Register a callback for transaction start and finish.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeEnvelope', callback: (envelope: Envelope) => void): () => void;\n\n  /**\n   * Register a callback for after an envelope has been accepted by the transport.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterEnvelope', callback: (envelope: Envelope) => void): () => void;\n\n  /**\n   * Register a callback that runs when stack frame metadata should be applied to an event.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'applyFrameMetadata', callback: (event: Event) => void): () => void;\n\n  /**\n   * Register a callback for before sending an event.\n   * This is called right before an event is sent and should not be used to mutate the event.\n   * Receives an Event & EventHint as arguments.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeSendEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n  /**\n   * Register a callback for before sending a session or session aggregrates..\n   * Receives the session/aggregate as second argument.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeSendSession', callback: (session: Session | SessionAggregates) => void): () => void;\n\n  /**\n   * Register a callback for preprocessing an event,\n   * before it is passed to (global) event processors.\n   * Receives an Event & EventHint as arguments.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'preprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n  /**\n   * Register a callback for postprocessing an event,\n   * after it was passed to (global) event processors, before it is being sent.\n   * Receives an Event & EventHint as arguments.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'postprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n  /**\n   * Register a callback for when an event has been sent.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'afterSendEvent',\n    callback: (event: Event, sendResponse: TransportMakeRequestResponse) => void,\n  ): () => void;\n\n  /**\n   * Register a callback before a breadcrumb is added.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeAddBreadcrumb', callback: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void): () => void;\n\n  /**\n   * Register a callback when a DSC (Dynamic Sampling Context) is created.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'createDsc', callback: (dsc: DynamicSamplingContext, rootSpan?: Span) => void): () => void;\n\n  /**\n   * Register a callback when a Feedback event has been prepared.\n   * This should be used to mutate the event. The options argument can hint\n   * about what kind of mutation it expects.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeSendFeedback',\n    callback: (feedback: FeedbackEvent, options?: { includeReplay?: boolean }) => void,\n  ): () => void;\n\n  /**\n   * Register a callback when the feedback widget is opened in a user's browser\n   */\n  public on(hook: 'openFeedbackWidget', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when a replay session starts recording (either session or buffer mode).\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'replayStart', callback: (event: ReplayStartEvent) => void): () => void;\n\n  /**\n   * A hook that is called when a replay session stops recording, either manually or due to an\n   * internal condition such as `maxReplayDuration` expiry, send failure, or mutation limit.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'replayEnd', callback: (event: ReplayEndEvent) => void): () => void;\n\n  /**\n   * A hook for the browser tracing integrations to trigger a span start for a page load.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'startPageLoadSpan',\n    callback: (\n      options: StartSpanOptions,\n      traceOptions?: { sentryTrace?: string | undefined; baggage?: string | undefined },\n    ) => void,\n  ): () => void;\n\n  /**\n   * A hook for the browser tracing integrations to trigger the end of a page load span.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'endPageloadSpan', callback: () => void): () => void;\n\n  /**\n   * A hook for the browser tracing integrations to trigger after the pageload span was started.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterStartPageLoadSpan', callback: (span: Span) => void): () => void;\n\n  /**\n   * A hook for triggering right before a navigation span is started.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeStartNavigationSpan',\n    callback: (options: StartSpanOptions, navigationOptions?: { isRedirect?: boolean; url?: string }) => void,\n  ): () => void;\n\n  /**\n   * A hook for browser tracing integrations to trigger a span for a navigation.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'startNavigationSpan',\n    callback: (options: StartSpanOptions, navigationOptions?: { isRedirect?: boolean; url?: string }) => void,\n  ): () => void;\n\n  /**\n   * A hook for GraphQL client integration to enhance a span with request data.\n   * @returns A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeOutgoingRequestSpan',\n    callback: (span: Span, hint: XhrBreadcrumbHint | FetchBreadcrumbHint) => void,\n  ): () => void;\n\n  /**\n   * A hook for GraphQL client integration to enhance a breadcrumb with request data.\n   * @returns A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeOutgoingRequestBreadcrumb',\n    callback: (breadcrumb: Breadcrumb, hint: XhrBreadcrumbHint | FetchBreadcrumbHint) => void,\n  ): () => void;\n\n  /**\n   * A hook that is called when an incoming request starts being tracked as a request session.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'startRequestSession', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when the client is flushing\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flush', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when spans of a single trace should be flushed eagerly,\n   * ahead of the trace's regular flush point. Only runtimes with a span streaming\n   * buffer (e.g. the Cloudflare SDK) listen to this hook.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flushTraceSpans', callback: (traceId: string) => void): () => void;\n\n  /**\n   * A hook that is called when the client is closing\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'close', callback: () => void): () => void;\n\n  /**\n   * A hook that is called before a log is captured. This hooks runs before `beforeSendLog` is fired.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeCaptureLog', callback: (log: Log) => void): () => void;\n\n  /**\n   * A hook that is called after a log is captured\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterCaptureLog', callback: (log: Log) => void): () => void;\n\n  /**\n   * A hook that is called when the client is flushing logs\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flushLogs', callback: () => void): () => void;\n\n  /**\n   * A hook that is called after capturing a metric. This hooks runs after `beforeSendMetric` is fired.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterCaptureMetric', callback: (metric: Metric) => void): () => void;\n\n  /**\n   * A hook that is called when the client is flushing metrics\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flushMetrics', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when a metric is processed before it is captured and before the `beforeSendMetric` callback is fired.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'processMetric', callback: (metric: Metric) => void): () => void;\n\n  /**\n   * A hook that is called when a http server request is started.\n   * This hook is called after request isolation, but before the request is processed.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'httpServerRequest',\n    callback: (request: unknown, response: unknown, normalizedRequest: RequestEventData) => void,\n  ): () => void;\n\n  /**\n   * A hook that is called when the UI Profiler should start profiling.\n   *\n   * This hook is called when running `Sentry.uiProfiler.startProfiler()`.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'startUIProfiler', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when the UI Profiler should stop profiling.\n   *\n   * This hook is called when running `Sentry.uiProfiler.stopProfiler()`.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'stopUIProfiler', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when an instrumented module is injected —\n   * at runtime by the module hook, or at load of a bundler-transformed module.\n   * Channel-based integrations use it to subscribe their diagnostics-channel\n   * listeners lazily, only once the module they instrument is actually loaded.\n   * Receives the injected module name.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'orchestrion.module-injected', callback: (moduleName: string) => void): () => void;\n\n  /**\n   * Register a hook on this client.\n   */\n  public on(hook: string, callback: unknown): () => void {\n    const hookCallbacks = (this._hooks[hook] = this._hooks[hook] || new Set());\n\n    // Wrap the callback in a function so that registering the same callback instance multiple\n    // times results in the callback being called multiple times.\n    // @ts-expect-error - The `callback` type is correct and must be a function due to the\n    // individual, specific overloads of this function.\n    // eslint-disable-next-line @typescript-eslint/ban-types\n    const uniqueCallback: Function = (...args: unknown[]) => callback(...args);\n\n    hookCallbacks.add(uniqueCallback);\n\n    // This function returns a callback execution handler that, when invoked,\n    // deregisters a callback. This is crucial for managing instances where callbacks\n    // need to be unregistered to prevent self-referencing in callback closures,\n    // ensuring proper garbage collection.\n    return () => {\n      hookCallbacks.delete(uniqueCallback);\n    };\n  }\n\n  /** Fire a hook whenever a span starts. */\n  public emit(hook: 'spanStart', span: Span): void;\n\n  /** A hook that is called right before a span is created; listeners mutate the passed object. */\n  public emit(hook: 'prepareSpanScope', spanScope: { scope: Scope; parentSpan: Span | undefined }): void;\n\n  /** A hook that is called every time before a span is sampled. */\n  public emit(\n    hook: 'beforeSampling',\n    samplingData: {\n      spanAttributes: SpanAttributes;\n      spanName: string;\n      parentSampled?: boolean;\n      parentSampleRate?: number;\n      parentContext?: SpanContextData;\n    },\n    samplingDecision: { decision: boolean },\n  ): void;\n\n  /** Fire a hook whenever a span ends. */\n  public emit(hook: 'spanEnd', span: Span): void;\n\n  /** Fire a hook before an idle span ends and its end timestamp is finalized. */\n  public emit(hook: 'beforeIdleSpanEnd', idleSpan: Span): void;\n\n  /**\n   * Fire a hook event after a span ends and the `spanEnd` hook has run.\n   */\n  public emit(hook: 'afterSpanEnd', immutableSpan: Readonly<Span>): void;\n\n  /**\n   * Fire a hook event after a segment span ends and the `spanEnd` hook has run.\n   */\n  public emit(hook: 'afterSegmentSpanEnd', immutableSegmentSpan: Readonly<Span>): void;\n\n  /**\n   * Fire a hook event to preprocess a span JSON before the `processSpan` and `processSegmentSpan` hooks run.\n   */\n  public emit(hook: 'preprocessSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n  /**\n   * Fire a hook event when a span JSON is processed, to add some data to the span JSON.\n   */\n  public emit(hook: 'processSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n  /**\n   * Fire a hook event for when a segment span JSON is processed, to add some data to the segment span JSON.\n   */\n  public emit(hook: 'processSegmentSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n  /**\n   * Fire a hook indicating that an idle span is allowed to auto finish.\n   */\n  public emit(hook: 'idleSpanEnableAutoFinish', span: Span): void;\n\n  /**\n   * Fire a hook event for envelope creation and sending. Expects to be given an envelope as the\n   * second argument.\n   */\n  public emit(hook: 'beforeEnvelope', envelope: Envelope): void;\n\n  /**\n   * Fire a hook event after an envelope has been accepted by the transport.\n   */\n  public emit(hook: 'afterEnvelope', envelope: Envelope): void;\n\n  /**\n   * Fire a hook indicating that stack frame metadata should be applied to the event passed to the hook.\n   */\n  public emit(hook: 'applyFrameMetadata', event: Event): void;\n\n  /**\n   * Fire a hook event before sending an event.\n   * This is called right before an event is sent and should not be used to mutate the event.\n   * Expects to be given an Event & EventHint as the second/third argument.\n   */\n  public emit(hook: 'beforeSendEvent', event: Event, hint?: EventHint): void;\n\n  /**\n   * Fire a hook event before sending a session/aggregates.\n   * Expects to be given the prepared session/aggregates as second argument.\n   */\n  public emit(hook: 'beforeSendSession', session: Session | SessionAggregates): void;\n\n  /**\n   * Fire a hook event to process events before they are passed to (global) event processors.\n   * Expects to be given an Event & EventHint as the second/third argument.\n   */\n  public emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;\n\n  /**\n   * Fire a hook event to process a user on an event before it is sent to Sentry, after all other processors have run.\n   * Expects to be given an Event & EventHint as the second/third argument.\n   */\n  public emit(hook: 'postprocessEvent', event: Event, hint?: EventHint): void;\n\n  /**\n   * Fire a hook event after sending an event. Expects to be given an Event as the\n   * second argument.\n   */\n  public emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse): void;\n\n  /**\n   * Fire a hook for when a breadcrumb is added. Expects the breadcrumb as second argument.\n   */\n  public emit(hook: 'beforeAddBreadcrumb', breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;\n\n  /**\n   * Fire a hook for when a DSC (Dynamic Sampling Context) is created. Expects the DSC as second argument.\n   */\n  public emit(hook: 'createDsc', dsc: DynamicSamplingContext, rootSpan?: Span): void;\n\n  /**\n   * Fire a hook event for after preparing a feedback event. Events to be given\n   * a feedback event as the second argument, and an optional options object as\n   * third argument.\n   */\n  public emit(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: { includeReplay?: boolean }): void;\n\n  /**\n   * Fire a hook event for when the feedback widget is opened in a user's browser\n   */\n  public emit(hook: 'openFeedbackWidget'): void;\n\n  /**\n   * Fire a hook event when a replay session starts recording.\n   */\n  public emit(hook: 'replayStart', event: ReplayStartEvent): void;\n\n  /**\n   * Fire a hook event when a replay session stops recording.\n   */\n  public emit(hook: 'replayEnd', event: ReplayEndEvent): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger a span start for a page load.\n   */\n  public emit(\n    hook: 'startPageLoadSpan',\n    options: StartSpanOptions,\n    traceOptions?: { sentryTrace?: string | undefined; baggage?: string | undefined },\n  ): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger the end of a page load span.\n   */\n  public emit(hook: 'endPageloadSpan'): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger after the pageload span was started.\n   */\n  public emit(hook: 'afterStartPageLoadSpan', span: Span): void;\n\n  /**\n   * Emit a hook event for triggering right before a navigation span is started.\n   */\n  public emit(\n    hook: 'beforeStartNavigationSpan',\n    options: StartSpanOptions,\n    navigationOptions?: { isRedirect?: boolean; url?: string },\n  ): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger a span for a navigation.\n   */\n  public emit(\n    hook: 'startNavigationSpan',\n    options: StartSpanOptions,\n    navigationOptions?: { isRedirect?: boolean; url?: string },\n  ): void;\n\n  /**\n   * Emit a hook event for GraphQL client integration to enhance a span with request data.\n   */\n  public emit(hook: 'beforeOutgoingRequestSpan', span: Span, hint: XhrBreadcrumbHint | FetchBreadcrumbHint): void;\n\n  /**\n   * Emit a hook event for GraphQL client integration to enhance a breadcrumb with request data.\n   */\n  public emit(\n    hook: 'beforeOutgoingRequestBreadcrumb',\n    breadcrumb: Breadcrumb,\n    hint: XhrBreadcrumbHint | FetchBreadcrumbHint,\n  ): void;\n\n  /**\n   * Emit a hook event when an incoming request starts being tracked as a request session.\n   */\n  public emit(hook: 'startRequestSession'): void;\n\n  /**\n   * Emit a hook event for client flush\n   */\n  public emit(hook: 'flush'): void;\n\n  /**\n   * Fire a hook event indicating that spans of a single trace should be flushed eagerly.\n   */\n  public emit(hook: 'flushTraceSpans', traceId: string): void;\n\n  /**\n   * Emit a hook event for client close\n   */\n  public emit(hook: 'close'): void;\n\n  /**\n   * Emit a hook event for client before capturing a log. This hooks runs before `beforeSendLog` is fired.\n   */\n  public emit(hook: 'beforeCaptureLog', log: Log): void;\n\n  /**\n   * Emit a hook event for client after capturing a log.\n   */\n  public emit(hook: 'afterCaptureLog', log: Log): void;\n\n  /**\n   * Emit a hook event for client flush logs\n   */\n  public emit(hook: 'flushLogs'): void;\n\n  /**\n   * Emit a hook event for client after capturing a metric.\n   */\n  public emit(hook: 'afterCaptureMetric', metric: Metric): void;\n\n  /**\n   * Emit a hook event for client flush metrics\n   */\n  public emit(hook: 'flushMetrics'): void;\n\n  /**\n   *\n   * Emit a hook event for client to process a metric before it is captured.\n   * This hook is called before the `beforeSendMetric` callback is fired.\n   */\n  public emit(hook: 'processMetric', metric: Metric): void;\n\n  /**\n   * Emit a hook event for client when a http server request is started.\n   * This hook is called after request isolation, but before the request is processed.\n   */\n  public emit(\n    hook: 'httpServerRequest',\n    request: unknown,\n    response: unknown,\n    normalizedRequest: RequestEventData,\n  ): void;\n\n  /**\n   * Emit a hook event for starting the UI Profiler.\n   */\n  public emit(hook: 'startUIProfiler'): void;\n\n  /**\n   * Emit a hook event for stopping the UI Profiler.\n   */\n  public emit(hook: 'stopUIProfiler'): void;\n\n  /**\n   * Emit a hook when an instrumented module is injected (runtime\n   * module hook or bundler-transformed module load).\n   */\n  public emit(hook: 'orchestrion.module-injected', moduleName: string): void;\n\n  /**\n   * Emit a hook that was previously registered via `on()`.\n   */\n  public emit(hook: string, ...rest: unknown[]): void {\n    const callbacks = this._hooks[hook];\n    if (callbacks) {\n      callbacks.forEach(callback => callback(...rest));\n    }\n  }\n\n  /**\n   * Send an envelope to Sentry.\n   */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async sendEnvelope(envelope: Envelope): PromiseLike<TransportMakeRequestResponse> {\n    this.emit('beforeEnvelope', envelope);\n\n    if (this._isEnabled() && this._transport) {\n      try {\n        const result = await this._transport.send(envelope);\n        this.emit('afterEnvelope', envelope);\n\n        return result;\n      } catch (reason) {\n        DEBUG_BUILD && debug.error('Error while sending envelope:', reason);\n        return {};\n      }\n    }\n\n    DEBUG_BUILD && debug.error('Transport disabled');\n    return {};\n  }\n\n  /**\n   * Register a cleanup function to be called when the client is disposed.\n   * This is useful for integrations that need to clean up global state.\n   *\n   * NOTE: This is a no-op in the base `Client` class. Subclasses like `ServerRuntimeClient`\n   * override this method to actually register and execute cleanup callbacks.\n   */\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  public registerCleanup(callback: () => void): void {\n    // No-op in base class - subclasses override to implement cleanup registration\n  }\n\n  /**\n   * Disposes of the client and releases all resources.\n   *\n   * Subclasses should override this method to clean up their own resources, including invoking\n   * any callbacks registered via {@link Client.registerCleanup}. The base implementation is a\n   * no-op and does NOT execute registered cleanup callbacks.\n   *\n   * After calling dispose(), the client should not be used anymore.\n   */\n  public dispose(): void {\n    // Base class has no cleanup logic - subclasses implement their own\n  }\n\n  /* eslint-enable @typescript-eslint/unified-signatures */\n\n  /** Setup integrations for this client. */\n  protected _setupIntegrations(): void {\n    const { integrations } = this._options;\n    this._integrations = setupIntegrations(this, integrations);\n    afterSetupIntegrations(this, integrations);\n  }\n\n  /** Updates existing session based on the provided event */\n  protected _updateSessionFromEvent(session: Session, event: Event): void {\n    // initially, set `unhandled` based on the event level and update from exceptions if there are any later on\n    let unhandled = event.level === 'fatal';\n    let errored = false;\n    const exceptions = event.exception?.values;\n\n    if (exceptions) {\n      errored = true;\n      // reset `unhandled` to false if there are exceptions, to ensure `mechanism.handled` is respected.\n      unhandled = false;\n\n      for (const ex of exceptions) {\n        if (ex.mechanism?.handled === false) {\n          unhandled = true;\n          break;\n        }\n      }\n    }\n\n    // A session is updated and that session update is sent in only one of the two following scenarios:\n    // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n    // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status unhandled and send update\n    const sessionNonTerminal = session.status === 'ok';\n    const shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && unhandled);\n\n    if (shouldUpdateAndSend) {\n      updateSession(session, {\n        ...(unhandled && { status: this._unhandledSessionStatus }),\n        errors: session.errors || Number(errored || unhandled),\n      });\n      this.captureSession(session);\n    }\n  }\n\n  /**\n   * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n   * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n   *\n   * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n   * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n   * `true`.\n   * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n   * `false` otherwise\n   */\n  protected async _isClientDoneProcessing(timeout?: number): Promise<boolean> {\n    let ticked = 0;\n\n    while (!timeout || ticked < timeout) {\n      await new Promise(resolve => setTimeout(resolve, 1));\n\n      if (!this._numProcessing) {\n        return true;\n      }\n      ticked++;\n    }\n\n    return false;\n  }\n\n  /** Determines whether this SDK is enabled and a transport is present. */\n  protected _isEnabled(): boolean {\n    return this.getOptions().enabled !== false && this._transport !== undefined;\n  }\n\n  /**\n   * Adds common information to events.\n   *\n   * The information includes release and environment from `options`,\n   * breadcrumbs and context (extra, tags and user) from the scope.\n   *\n   * Information that is already present in the event is never overwritten. For\n   * nested objects, such as the context, keys are merged.\n   *\n   * @param event The original event.\n   * @param hint May contain additional information about the original exception.\n   * @param currentScope A scope containing event metadata.\n   * @returns A new event with more information.\n   */\n  protected _prepareEvent(\n    event: Event,\n    hint: EventHint,\n    currentScope: Scope,\n    isolationScope: Scope,\n  ): PromiseLike<Event | null> {\n    const options = this.getOptions();\n    const integrations = this.getIntegrationNames();\n    if (!hint.integrations && integrations.length) {\n      hint.integrations = integrations;\n    }\n\n    this.emit('preprocessEvent', event, hint);\n\n    if (!event.type) {\n      isolationScope.setLastEventId(event.event_id || hint.event_id);\n    }\n\n    return prepareEvent(options, event, hint, currentScope, this, isolationScope).then(evt => {\n      if (evt === null) {\n        return evt;\n      }\n\n      this.emit('postprocessEvent', evt, hint);\n\n      evt.contexts = {\n        trace: { ...evt.contexts?.trace, ...getTraceContextFromScope(currentScope) },\n        ...evt.contexts,\n      };\n\n      const dynamicSamplingContext = getDynamicSamplingContextFromScope(this, currentScope);\n\n      evt.sdkProcessingMetadata = {\n        dynamicSamplingContext,\n        ...evt.sdkProcessingMetadata,\n      };\n\n      return evt;\n    });\n  }\n\n  /**\n   * Processes the event and logs an error in case of rejection\n   * @param event\n   * @param hint\n   * @param scope\n   */\n  protected _captureEvent(\n    event: Event,\n    hint: EventHint = {},\n    currentScope = getCurrentScope(),\n    isolationScope = getIsolationScope(),\n  ): PromiseLike<string | undefined> {\n    if (DEBUG_BUILD && isErrorEvent(event)) {\n      debug.log(`Captured error event \\`${getPossibleEventMessages(event)[0] || '<unknown>'}\\``);\n    }\n\n    return this._processEvent(event, hint, currentScope, isolationScope).then(\n      finalEvent => {\n        return finalEvent.event_id;\n      },\n      reason => {\n        if (DEBUG_BUILD) {\n          if (_isDoNotSendEventError(reason)) {\n            debug.log(reason.message);\n          } else if (_isInternalError(reason)) {\n            debug.warn(reason.message);\n          } else {\n            debug.warn(reason);\n          }\n        }\n        return undefined;\n      },\n    );\n  }\n\n  /**\n   * Processes an event (either error or message) and sends it to Sentry.\n   *\n   * This also adds breadcrumbs and context information to the event. However,\n   * platform specific meta data (such as the User's IP address) must be added\n   * by the SDK implementor.\n   *\n   *\n   * @param event The event to send to Sentry.\n   * @param hint May contain additional information about the original exception.\n   * @param currentScope A scope containing event metadata.\n   * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n   */\n  protected _processEvent(\n    event: Event,\n    hint: EventHint,\n    currentScope: Scope,\n    isolationScope: Scope,\n  ): PromiseLike<Event> {\n    const options = this.getOptions();\n    const { sampleRate } = options;\n\n    const isTransaction = isTransactionEvent(event);\n    const isError = isErrorEvent(event);\n    const eventType = event.type || 'error';\n    const beforeSendLabel = `before send for type \\`${eventType}\\``;\n    let beforeSendDropReason: BeforeSendDropReason = 'before_send';\n    let ignoredSpanCount = 0;\n\n    // 1.0 === 100% events are sent\n    // 0.0 === 0% events are sent\n    // Sampling for transaction happens somewhere else\n    const parsedSampleRate = typeof sampleRate === 'undefined' ? undefined : parseSampleRate(sampleRate);\n    const isSampledOut = isError && typeof parsedSampleRate === 'number' && safeMathRandom() > parsedSampleRate;\n    const dataCategory = getDataCategoryByType(event.type);\n    // Spans that event processors removed are already recorded in `prepareEvent`, so all later\n    // span outcomes are relative to the span count of the prepared event.\n    let preparedSpanCount = 0;\n\n    const session = currentScope.getSession() || isolationScope.getSession();\n    // A sampled-out error only runs the pipeline to update the session. Without a session it could update,\n    // drop it right away so it doesn't hold a promise buffer slot while event processors run.\n    if (isSampledOut && session?.status !== 'ok') {\n      this.recordDroppedEvent('sample_rate', 'error');\n      return rejectedSyncPromise(_makeSampledOutError(sampleRate));\n    }\n\n    return this._prepareEvent(event, hint, currentScope, isolationScope)\n      .then(prepared => {\n        if (prepared === null) {\n          throw _makeDoNotSendEventError('An event processor returned `null`, will not send event.');\n        }\n\n        preparedSpanCount = prepared.spans?.length || 0;\n\n        if (isInternalException(hint)) {\n          return prepared;\n        }\n\n        return processBeforeSend(\n          options,\n          prepared,\n          hint,\n          reason => {\n            beforeSendDropReason = reason;\n          },\n          count => {\n            ignoredSpanCount = count;\n          },\n        );\n      })\n      .then(processedEvent => {\n        if (ignoredSpanCount) {\n          this.recordDroppedEvent('ignored', 'span', ignoredSpanCount);\n        }\n\n        // An annotated boolean keeps `isPlainObject` from narrowing `processedEvent` to a plain record\n        const isValidEvent: boolean = isPlainObject(processedEvent);\n        if (!isValidEvent || processedEvent === null) {\n          this.recordDroppedEvent(beforeSendDropReason, dataCategory);\n          if (isTransaction) {\n            // the transaction itself counts as one span, plus all the child spans that weren't ignored before\n            this.recordDroppedEvent(beforeSendDropReason, 'span', 1 + preparedSpanCount - ignoredSpanCount);\n          }\n          if (processedEvent !== null) {\n            throw _makeInternalError(`${beforeSendLabel} must return \\`null\\` or a valid event.`);\n          }\n          const dropMessage =\n            beforeSendDropReason === 'ignored'\n              ? 'Transaction matched `ignoreSpans`'\n              : `${beforeSendLabel} ${beforeSendDropReason === 'callback_error' ? 'threw an error' : 'returned `null`'}`;\n          throw _makeDoNotSendEventError(`${dropMessage}, will not send event.`);\n        }\n\n        if (isError && session) {\n          this._updateSessionFromEvent(session, processedEvent);\n        }\n\n        if (isSampledOut) {\n          this.recordDroppedEvent('sample_rate', 'error');\n          throw _makeSampledOutError(sampleRate);\n        }\n\n        if (isTransaction) {\n          const droppedSpanCount = preparedSpanCount - ignoredSpanCount - (processedEvent.spans?.length || 0);\n          if (droppedSpanCount > 0) {\n            this.recordDroppedEvent('before_send', 'span', droppedSpanCount);\n          }\n        }\n\n        // None of the Sentry built event processor will update transaction name,\n        // so if the transaction name has been changed by an event processor, we know\n        // it has to come from custom event processor added by a user\n        const transactionInfo = processedEvent.transaction_info;\n        if (isTransaction && transactionInfo && processedEvent.transaction !== event.transaction) {\n          const source = 'custom';\n          processedEvent.transaction_info = {\n            ...transactionInfo,\n            source,\n          };\n        }\n\n        this.sendEvent(processedEvent, hint);\n        return processedEvent;\n      })\n      .then(null, reason => {\n        if (_isDoNotSendEventError(reason) || _isInternalError(reason)) {\n          throw reason;\n        }\n\n        this.captureException(reason, {\n          mechanism: {\n            handled: false,\n            type: 'internal',\n          },\n          data: {\n            __sentry__: true,\n          },\n          originalException: reason,\n        });\n        throw _makeInternalError(\n          `Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\\nReason: ${reason}`,\n        );\n      });\n  }\n\n  /**\n   * Occupies the client with processing and event\n   */\n  protected _process<T>(taskProducer: () => PromiseLike<T>, dataCategory: DataCategory): void {\n    this._numProcessing++;\n\n    void this._promiseBuffer.add(taskProducer).then(\n      value => {\n        this._numProcessing--;\n        return value;\n      },\n      reason => {\n        this._numProcessing--;\n\n        if (reason === SENTRY_BUFFER_FULL_ERROR) {\n          this.recordDroppedEvent('queue_overflow', dataCategory);\n        }\n\n        return reason;\n      },\n    );\n  }\n\n  /**\n   * Clears outcomes on this client and returns them.\n   */\n  protected _clearOutcomes(): Outcome[] {\n    const outcomes = this._outcomes;\n    this._outcomes = {};\n    return Object.entries(outcomes).map(([key, quantity]) => {\n      const [reason, category] = key.split(':') as [EventDropReason, DataCategory];\n      return {\n        reason,\n        category,\n        quantity,\n      };\n    });\n  }\n\n  /**\n   * Sends client reports as an envelope.\n   */\n  protected _flushOutcomes(): void {\n    DEBUG_BUILD && debug.log('Flushing outcomes...');\n\n    const outcomes = this._clearOutcomes();\n\n    if (outcomes.length === 0) {\n      DEBUG_BUILD && debug.log('No outcomes to send');\n      return;\n    }\n\n    // This is really the only place where we want to check for a DSN and only send outcomes then\n    if (!this._dsn) {\n      DEBUG_BUILD && debug.log('No dsn provided, will not send outcomes');\n      return;\n    }\n\n    DEBUG_BUILD && debug.log('Sending outcomes:', outcomes);\n\n    const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn));\n\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.sendEnvelope(envelope);\n  }\n\n  /**\n   * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n   */\n  public abstract eventFromException(_exception: unknown, _hint?: EventHint): PromiseLike<Event>;\n\n  /**\n   * Creates an {@link Event} from primitive inputs to `captureMessage`.\n   */\n  public abstract eventFromMessage(\n    _message: ParameterizedString,\n    _level?: SeverityLevel,\n    _hint?: EventHint,\n  ): PromiseLike<Event>;\n}\n\ntype BeforeSendDropReason = 'before_send' | 'callback_error' | 'ignored';\n\n/**\n * Process the matching `beforeSendXXX` callback.\n */\nfunction processBeforeSend(\n  options: ClientOptions,\n  event: Event,\n  hint: EventHint,\n  onDrop: (reason: Exclude<BeforeSendDropReason, 'before_send'>) => void,\n  onIgnoredSpans: (count: number) => void,\n): PromiseLike<Event | null> | Event | null {\n  const {\n    beforeSend,\n    ignoreSpans,\n    // oxlint-disable-next-line typescript/no-deprecated\n    beforeSendTransaction,\n  } = options;\n  const beforeSendSpan = isStaticBeforeSendSpanCallback(options.beforeSendSpan) && options.beforeSendSpan;\n\n  let processedEvent = event;\n\n  if (isErrorEvent(processedEvent) && beforeSend) {\n    const errorEvent = processedEvent;\n    return safeCallback(\n      DEBUG_BUILD ? 'The `beforeSend` callback threw an error, dropping the event:' : '',\n      () => beforeSend(errorEvent, hint),\n      () => {\n        onDrop('callback_error');\n        return null;\n      },\n    );\n  }\n\n  if (isTransactionEvent(processedEvent)) {\n    // Avoid processing if we don't have to\n    if (beforeSendSpan || ignoreSpans) {\n      // 1. Process root span\n      const rootSpanJson = convertTransactionEventToSpanJson(processedEvent);\n\n      // 1.1 If the root span should be ignored, drop the whole transaction\n      if (\n        ignoreSpans?.length &&\n        shouldIgnoreSpan(\n          { description: rootSpanJson.description, op: rootSpanJson.op, attributes: rootSpanJson.data },\n          ignoreSpans,\n        )\n      ) {\n        onDrop('ignored');\n        return null;\n      }\n\n      // 1.2 If a `beforeSendSpan` callback is defined, process the root span\n      if (beforeSendSpan) {\n        const processedRootSpanJson = applyBeforeSendSpanCallback(rootSpanJson, beforeSendSpan);\n        // update event with processed root span values\n        processedEvent = merge(event, convertSpanJsonToTransactionEvent(processedRootSpanJson));\n      }\n\n      // 2. Process child spans\n      if (processedEvent.spans) {\n        const processedSpans: SpanJSON[] = [];\n\n        const initialSpans = processedEvent.spans;\n\n        for (const span of initialSpans) {\n          // 2.a If the child span should be ignored, reparent it to the root span\n          if (\n            ignoreSpans?.length &&\n            shouldIgnoreSpan({ description: span.description, op: span.op, attributes: span.data }, ignoreSpans)\n          ) {\n            reparentChildSpans(initialSpans, span);\n            continue;\n          }\n\n          // 2.b If a `beforeSendSpan` callback is defined, process the child span\n          if (beforeSendSpan) {\n            processedSpans.push(applyBeforeSendSpanCallback(span, beforeSendSpan));\n          } else {\n            processedSpans.push(span);\n          }\n        }\n\n        onIgnoredSpans(initialSpans.length - processedSpans.length);\n        processedEvent.spans = processedSpans;\n      }\n    }\n\n    if (beforeSendTransaction) {\n      return safeCallback(\n        DEBUG_BUILD ? 'The `beforeSendTransaction` callback threw an error, dropping the event:' : '',\n        () => beforeSendTransaction(processedEvent as TransactionEvent, hint),\n        () => {\n          onDrop('callback_error');\n          return null;\n        },\n      );\n    }\n  }\n\n  return processedEvent;\n}\n\nfunction isErrorEvent(event: Event): event is ErrorEvent {\n  return event.type === undefined;\n}\n\nfunction isTransactionEvent(event: Event): event is TransactionEvent {\n  return event.type === 'transaction';\n}\n","import type { Client } from './client';\nimport { isClientClosed } from './client';\nimport { getClient, getCurrentScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { ClientOptions } from './types/options';\nimport { consoleSandbox, debug } from './utils/debug-logger';\n\n/** A class object that can instantiate Client objects. */\nexport type ClientClass<F extends Client, O extends ClientOptions> = new (options: O) => F;\n\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nexport function initAndBind<F extends Client, O extends ClientOptions>(\n  clientClass: ClientClass<F, O>,\n  options: O,\n): Client {\n  if (options.debug === true) {\n    if (DEBUG_BUILD) {\n      debug.enable();\n    } else {\n      // use `console.warn` rather than `debug.warn` since by non-debug bundles have all `debug.x` statements stripped\n      consoleSandbox(() => {\n        // eslint-disable-next-line no-console\n        console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n      });\n    }\n  }\n  warnIfClientIsActive();\n\n  const scope = getCurrentScope();\n  scope.update(options.initialScope);\n\n  const client = new clientClass(options);\n  setCurrentClient(client);\n  client.init();\n  return client;\n}\n\n/**\n * Returns the client bound to the current scope, unless it is closed.\n *\n * @hidden\n */\nexport function getActiveClient<C extends Client>(): C | undefined {\n  const client = getClient<C>();\n  return client && !isClientClosed(client) ? client : undefined;\n}\n\n/**\n * Warns when `init()` runs while a client is still bound. The new client\n * replaces it, but the old client stays alive, so the two can mix state.\n *\n * @hidden\n */\nexport function warnIfClientIsActive(): void {\n  if (getActiveClient()) {\n    consoleSandbox(() => {\n      // TODO(#24883): Point apps that share a page with another app to the\n      // isolated client helper, once that PR settles its name.\n      // eslint-disable-next-line no-console\n      console.warn(\n        '[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.',\n      );\n    });\n  }\n}\n\n/**\n * Make the given client the current client.\n */\nexport function setCurrentClient(client: Client): void {\n  getCurrentScope().setClient(client);\n}\n","import { DEBUG_BUILD } from '../../debug-build';\nimport { debug } from '../debug-logger';\n\n/**\n * Registry tracking which AI provider modules should skip instrumentation wrapping.\n *\n * This prevents duplicate spans when a higher-level integration (like LangChain)\n * already instruments AI providers at a higher abstraction level.\n */\nconst SKIPPED_AI_PROVIDERS = new Set<string>();\n\n/**\n * Mark AI provider modules to skip instrumentation wrapping.\n *\n * This prevents duplicate spans when a higher-level integration (like LangChain)\n * already instruments AI providers at a higher abstraction level.\n *\n * @internal\n * @param modules - Array of npm module names to skip (e.g., '@anthropic-ai/sdk', 'openai')\n *\n * @example\n * ```typescript\n * // In LangChain integration\n * _INTERNAL_skipAiProviderWrapping(['@anthropic-ai/sdk', 'openai', '@google/generative-ai']);\n * ```\n */\nexport function _INTERNAL_skipAiProviderWrapping(modules: string[]): void {\n  modules.forEach(module => {\n    SKIPPED_AI_PROVIDERS.add(module);\n    DEBUG_BUILD && debug.log(`AI provider \"${module}\" wrapping will be skipped`);\n  });\n}\n\n/**\n * Check if an AI provider module should skip instrumentation wrapping.\n *\n * @internal\n * @param module - The npm module name (e.g., '@anthropic-ai/sdk', 'openai')\n * @returns true if wrapping should be skipped\n *\n * @example\n * ```typescript\n * // In AI provider instrumentation\n * if (_INTERNAL_shouldSkipAiProviderWrapping('@anthropic-ai/sdk')) {\n *   return Reflect.construct(Original, args); // Don't instrument\n * }\n * ```\n */\nexport function _INTERNAL_shouldSkipAiProviderWrapping(module: string): boolean {\n  return SKIPPED_AI_PROVIDERS.has(module);\n}\n\n/**\n * Clear all AI provider skip registrations.\n *\n * This is automatically called at the start of Sentry.init() to ensure a clean state\n * between different client initializations.\n *\n * @internal\n */\nexport function _INTERNAL_clearAiProviderSkips(): void {\n  SKIPPED_AI_PROVIDERS.clear();\n  DEBUG_BUILD && debug.log('Cleared AI provider skip registrations');\n}\n","export const FALSY_ENV_VALUES = new Set(['false', 'f', 'n', 'no', 'off', '0']);\nexport const TRUTHY_ENV_VALUES = new Set(['true', 't', 'y', 'yes', 'on', '1']);\n\nexport type StrictBoolCast = {\n  strict: true;\n};\n\nexport type LooseBoolCast = {\n  strict?: false;\n};\n\nexport type BoolCastOptions = StrictBoolCast | LooseBoolCast;\n\nexport function envToBool(value: unknown, options?: LooseBoolCast): boolean;\nexport function envToBool(value: unknown, options: StrictBoolCast): boolean | null;\nexport function envToBool(value: unknown, options?: BoolCastOptions): boolean | null;\n/**\n * A helper function which casts an ENV variable value to `true` or `false` using the constants defined above.\n * In strict mode, it may return `null` if the value doesn't match any of the predefined values.\n *\n * @param value The value of the env variable\n * @param options -- Only has `strict` key for now, which requires a strict match for `true` in TRUTHY_ENV_VALUES\n * @returns true/false if the lowercase value matches the predefined values above. If not, null in strict mode,\n *          and Boolean(value) in loose mode.\n */\nexport function envToBool(value: unknown, options?: BoolCastOptions): boolean | null {\n  const normalized = String(value).toLowerCase();\n\n  if (FALSY_ENV_VALUES.has(normalized)) {\n    return false;\n  }\n\n  if (TRUTHY_ENV_VALUES.has(normalized)) {\n    return true;\n  }\n\n  return options?.strict ? null : Boolean(value);\n}\n","import type { SerializedCheckIn } from './types/checkin';\nimport type { DsnComponents } from './types/dsn';\nimport type { CheckInEnvelope, CheckInItem, DynamicSamplingContext } from './types/envelope';\nimport type { SdkMetadata } from './types/sdkmetadata';\nimport { dsnToString } from './utils/dsn';\nimport { createEnvelope } from './utils/envelope';\nimport { safeDateNow } from './utils/randomSafeContext';\n\n/**\n * Create envelope from check in item.\n */\nexport function createCheckInEnvelope(\n  checkIn: SerializedCheckIn,\n  dynamicSamplingContext?: Partial<DynamicSamplingContext>,\n  metadata?: SdkMetadata,\n  tunnel?: string,\n  dsn?: DsnComponents,\n): CheckInEnvelope {\n  const headers: CheckInEnvelope[0] = {\n    sent_at: new Date(safeDateNow()).toISOString(),\n  };\n\n  if (metadata?.sdk) {\n    headers.sdk = {\n      name: metadata.sdk.name,\n      version: metadata.sdk.version,\n    };\n  }\n\n  if (!!tunnel && !!dsn) {\n    headers.dsn = dsnToString(dsn);\n  }\n\n  if (dynamicSamplingContext) {\n    headers.trace = dynamicSamplingContext as DynamicSamplingContext;\n  }\n\n  const item = createCheckInEnvelopeItem(checkIn);\n  return createEnvelope<CheckInEnvelope>(headers, [item]);\n}\n\nfunction createCheckInEnvelopeItem(checkIn: SerializedCheckIn): CheckInItem {\n  const checkInHeaders: CheckInItem[0] = {\n    type: 'check_in',\n  };\n  return [checkInHeaders, checkIn];\n}\n","// Based on https://github.com/sindresorhus/escape-string-regexp but with modifications to:\n//   a) reduce the size by skipping the runtime type - checking\n//   b) ensure it gets down - compiled for old versions of Node(the published package only supports Node 14+).\n//\n// Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n// SPDX-License-Identifier: MIT\n\n/**\n * Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to\n * `new RegExp()`.\n *\n * @param regexString The string to escape\n * @returns An version of the string with all special regex characters escaped\n */\nexport function escapeStringForRegex(regexString: string): string {\n  // escape the hyphen separately so we can also replace it with a unicode literal hyphen, to avoid the problems\n  // discussed in https://github.com/sindresorhus/escape-string-regexp/issues/20.\n  return regexString.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&').replace(/-/g, '\\\\x2d');\n}\n","import type { Client } from '../client';\nimport { getGlobalSingleton } from '../carrier';\nimport type { IgnoreSpanFilter } from '../types/options';\nimport type { TunnelDefaults } from './tunnelDefaults';\nimport type { ServedTunnel, TunnelForwarder } from './tunnel';\nimport type { NodeTunnelHandler } from './tunnelForward';\n\n/**\n * What the tunnel keeps per server client.\n */\nexport interface ClientTunnelState {\n  /** The paths, allowed DSNs and forwarder the client answers tunnel requests with. */\n  served?: ServedTunnel;\n  /** The forwarder `serveTunnelIntegration` enabled the tunnel with. */\n  forward?: TunnelForwarder;\n  /** The span filters the tunnel installed, so applying it again replaces them instead of adding more. */\n  spanFilters?: IgnoreSpanFilter[];\n}\n\n/**\n * The tunnel state, shared by every copy of `@sentry/core`: a framework's server bundle can carry its own\n * copy, which sets the tunnel up for the runtime's copy that answers it.\n */\nexport interface TunnelStore {\n  clients: WeakMap<Client, ClientTunnelState>;\n  defaults?: TunnelDefaults;\n  /** Whether core's HTTP server instrumentation is set up, whose `emit` wrapper handles tunnel requests itself. */\n  httpServerHandlesTunnel?: boolean;\n  /** Answers tunnel requests on Node servers. The tunnel sets it, so apps without one don't bundle it. */\n  nodeHandler?: NodeTunnelHandler;\n}\n\n/**\n * Only this module touches the store, through the functions below.\n */\nfunction getTunnelStore(): TunnelStore {\n  return getGlobalSingleton('tunnelStore', () => ({ clients: new WeakMap() }));\n}\n\n/**\n * What the tunnel keeps for a client.\n */\nexport function getClientTunnel(client: Client): Readonly<ClientTunnelState> | undefined {\n  return getTunnelStore().clients.get(client);\n}\n\n/**\n * Sets what the tunnel keeps for a client. Merges into what is already there, like `scope.setTags`.\n */\nexport function setClientTunnel(client: Client, state: ClientTunnelState): void {\n  const { clients } = getTunnelStore();\n  clients.set(client, { ...clients.get(client), ...state });\n}\n\n/**\n * The framework-known tunnel settings, see `setTunnelDefaults`.\n */\nexport function getStoredTunnelDefaults(): Readonly<TunnelDefaults> | undefined {\n  return getTunnelStore().defaults;\n}\n\n/**\n * Replaces the framework-known tunnel settings.\n */\nexport function setStoredTunnelDefaults(defaults: TunnelDefaults | undefined): void {\n  getTunnelStore().defaults = defaults;\n}\n\n/**\n * Records that core's HTTP server instrumentation is set up. Its `emit` wrapper handles tunnel requests, so `node:http`\n * servers need no second one for the tunnel.\n */\nexport function setHttpServerHandlesTunnel(): void {\n  getTunnelStore().httpServerHandlesTunnel = true;\n}\n\n/**\n * Whether core's HTTP server instrumentation handles tunnel requests, see {@link setHttpServerHandlesTunnel}.\n */\nexport function httpServerHandlesTunnel(): boolean {\n  return !!getTunnelStore().httpServerHandlesTunnel;\n}\n\n/**\n * Sets what answers tunnel requests on Node servers, like the forwarder `serveTunnelIntegration` brings in.\n */\nexport function setNodeTunnelHandler(handler: NodeTunnelHandler): void {\n  getTunnelStore().nodeHandler = handler;\n}\n\n/**\n * What answers tunnel requests on Node servers, see {@link setNodeTunnelHandler}.\n */\nexport function getNodeTunnelHandler(): NodeTunnelHandler | undefined {\n  return getTunnelStore().nodeHandler;\n}\n","import type { Client } from '../client';\nimport { getClient } from '../currentScopes';\nimport { URL_PATH } from '@sentry/conventions/attributes';\nimport type { DsnComponents, DsnLike } from '../types/dsn';\nimport type { IgnoreSpanFilter, ServerTunnelOptions, TunnelInit, TunnelOptions } from '../types/options';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { escapeStringForRegex } from '../vendor/escapeStringForRegex';\nimport { debug } from './debug-logger';\nimport { dsnToString, makeDsn } from './dsn';\nimport { getClientTunnel, setClientTunnel } from './tunnelStore';\nimport { parseUrl } from './url';\n\n/**\n * Forwards a tunnel request to Sentry. Only `serveTunnelIntegration` brings it in, so apps without a tunnel don't bundle it.\n */\nexport type TunnelForwarder = (request: Request, allowedDsns: Array<string>) => Promise<Response>;\n\n/**\n * A server client's tunnel paths, base path, allowed DSNs and forwarder, computed once per client.\n */\nexport interface ServedTunnel extends TunnelMatch {\n  forward: TunnelForwarder;\n  /** Whether the SDK answers tunnel requests itself, see `ServerTunnelOptions.intercept`. */\n  intercept: boolean;\n}\n\n/**\n * Computes a server client's served tunnel from its resolved options, and stores it.\n */\nexport function setServedTunnel(\n  client: Client,\n  tunnelOptions: ServerTunnelOptions,\n  forward: TunnelForwarder,\n): ServedTunnel {\n  const allowedDsns = resolveAllowedDsns(tunnelOptions.allowedDsns, client.getDsn());\n  const servedTunnel = {\n    paths: resolveTunnelPaths(tunnelOptions, allowedDsns),\n    basePath: tunnelOptions.basePath,\n    allowedDsns,\n    forward,\n    intercept: tunnelOptions.intercept !== false,\n  };\n  setClientTunnel(client, { served: servedTunnel });\n\n  return servedTunnel;\n}\n\n/**\n * The active client's served tunnel. It lives in the tunnel store, so a copy of this module that didn't set it up,\n * like the one a bundler gives Next.js's middleware next to its `instrumentation`, still finds it.\n */\nexport function getServedTunnel(client = getClient()): ServedTunnel | undefined {\n  return client && getClientTunnel(client)?.served;\n}\n\n/**\n * Fills in framework defaults (like the base path) for a managed tunnel on the DSN-derived path. User options win.\n * A path the user wrote, as a string or `path`, is used as written, so a tunnel served outside the app keeps working.\n * The base path is normalized, and a root one is no default at all.\n */\nexport function applyBrowserTunnelDefaults(\n  tunnel: TunnelInit | undefined,\n  defaults: TunnelOptions | undefined,\n): TunnelInit | undefined {\n  if (!tunnel || typeof tunnel === 'string' || (tunnel !== true && tunnel.path)) {\n    return tunnel;\n  }\n\n  const { basePath, ...rest } = defaults ?? {};\n  const normalizedBasePath = normalizeTunnelBasePath(basePath);\n  const resolvedDefaults: TunnelOptions = normalizedBasePath ? { ...rest, basePath: normalizedBasePath } : rest;\n  if (!Object.keys(resolvedDefaults).length) {\n    return tunnel;\n  }\n\n  return { ...resolvedDefaults, ...(tunnel === true ? {} : tunnel) };\n}\n\n/**\n * Returns the same-origin tunnel path for a DSN, e.g. `/k3x9q2a`, by default the active client's. Browser and server\n * derive it independently, and as a hash it gives ad-blocker filter lists nothing to match.\n */\nexport function getTunnelPath(dsn?: DsnLike): string | undefined {\n  const components = dsn ? makeDsn(dsn) : getClient()?.getDsn();\n\n  return components ? `/${fnv1a32(dsnToString(components)).toString(36)}` : undefined;\n}\n\n/**\n * The parts of a request the tunnel match reads. Satisfied by a fetch `Request` and Node's `IncomingMessage`.\n */\nexport interface TunnelRequestLike {\n  method?: string;\n  /** Absolute URL or path with query, e.g. Node's `IncomingMessage.url`. */\n  url?: string;\n}\n\n/**\n * Returns the active server client's tunnel paths, relative to its base path. For frameworks that can only register\n * routes; everything else uses {@link handleTunnelRequestIfMatched}.\n */\nexport function getTunnelPaths(): string[] {\n  return getServedTunnel()?.paths ?? [];\n}\n\n/**\n * The paths a managed tunnel is served at: the fixed `path`, or else one per allowed DSN.\n */\nexport function resolveTunnelPaths(tunnelOptions: ServerTunnelOptions, allowedDsns: Array<string>): string[] {\n  // A root path would take over every POST to the app's root, so it falls back to the DSN-derived ones.\n  const fixedPath = tunnelOptions.path?.replace(/\\/$/, '');\n  if (fixedPath) {\n    return [fixedPath];\n  }\n\n  // Differently written DSNs can hash to the same path.\n  const paths = allowedDsns.map(dsn => getTunnelPath(dsn));\n\n  return [...new Set(paths.filter((path): path is string => !!path))];\n}\n\n/**\n * `ignoreSpans` filters for the server spans of tunnel requests. They match `url.path` and the legacy `http.url`,\n * which some framework spans start with (SvelteKit's `sveltekit.handle.root`).\n */\nexport function getTunnelIgnoreSpanFilters(tunnelOptions: TunnelOptions, paths: string[]): IgnoreSpanFilter[] {\n  if (!paths.length) {\n    return [];\n  }\n\n  const basePath = escapeStringForRegex(normalizeTunnelBasePath(tunnelOptions.basePath));\n  const pathPattern = `${basePath}(?:${paths.map(escapeStringForRegex).join('|')})/?`;\n\n  return [\n    // oxlint-disable-next-line sdk/no-regexp-constructor -- built from escaped config values, not end user input\n    { attributes: { [URL_PATH]: new RegExp(`^${pathPattern}$`) } },\n    // oxlint-disable-next-line sdk/no-regexp-constructor -- built from escaped config values, not end user input\n    { attributes: { 'http.url': new RegExp(`^[a-z][a-z\\\\d+.-]*://[^/]+${pathPattern}(?:[?#].*)?$`) } },\n  ];\n}\n\n/**\n * Normalizes a base path to `/app`, or `''` for the root.\n */\nexport function normalizeTunnelBasePath(basePath: string | undefined): string {\n  const path = (basePath?.startsWith('./') ? basePath.slice(1) : (basePath ?? '')).replace(/\\/$/, '');\n\n  return !path || path.startsWith('/') ? path : `/${path}`;\n}\n\n/**\n * The paths, base path and allowed DSNs of a tunnel to match requests against.\n */\ninterface TunnelMatch {\n  paths: string[];\n  basePath?: string;\n  allowedDsns: string[];\n}\n\n/**\n * Resolves the tunnel the public helpers match: `options`, else the one `serveTunnelIntegration` serves, else the\n * path of the active client's own DSN.\n */\nexport function resolveTunnelMatch(options?: ServerTunnelOptions): TunnelMatch {\n  const servedTunnel = !options && getServedTunnel();\n  if (servedTunnel) {\n    return servedTunnel;\n  }\n\n  const allowedDsns = resolveAllowedDsns(options?.allowedDsns, getClient()?.getDsn());\n\n  return { paths: resolveTunnelPaths(options ?? {}, allowedDsns), basePath: options?.basePath, allowedDsns };\n}\n\n/**\n * Returns true if the request is a POST to one of the tunnel's paths.\n */\nexport function matchesTunnel(request: TunnelRequestLike, tunnel: Omit<TunnelMatch, 'allowedDsns'>): boolean {\n  if (request.method !== 'POST' || !request.url) {\n    return false;\n  }\n\n  const path = stripBasePath(parseUrl(request.url).path || '/', tunnel.basePath);\n\n  return path !== undefined && tunnel.paths.includes(path.replace(/\\/$/, ''));\n}\n\n/**\n * Returns true if the request is a POST to the managed tunnel. The tunnel comes from `options`, else from\n * `serveTunnelIntegration`, else it's the path of the active client's own DSN.\n */\nexport function isTunnelRequest(request: TunnelRequestLike, options?: ServerTunnelOptions): boolean {\n  return matchesTunnel(request, resolveTunnelMatch(options));\n}\n\n/**\n * Returns true if the request targets the tunnel `serveTunnelIntegration` serves, whether the SDK answers it or the\n * app does with `intercept: false`. The server SDKs record no session or span for these. Unlike\n * {@link isTunnelRequest}, there's no fallback, so the framework SDKs serve nothing without the integration. `client`\n * defaults to the active one.\n */\nexport function isServedTunnelRequest(request: TunnelRequestLike, client?: Client): boolean {\n  try {\n    return !!matchServedTunnel(request, client);\n  } catch (error) {\n    DEBUG_BUILD && debug.error('Sentry tunnel: failed to match a request', error);\n\n    return false;\n  }\n}\n\n/**\n * The served tunnel, if the SDK answers this request on it. `client` defaults to the active one.\n */\nexport function getServedTunnelMatch(request: TunnelRequestLike, client?: Client): ServedTunnel | undefined {\n  const servedTunnel = matchServedTunnel(request, client);\n\n  return servedTunnel?.intercept ? servedTunnel : undefined;\n}\n\n/**\n * The served tunnel, if this request targets it.\n */\nfunction matchServedTunnel(request: TunnelRequestLike, client?: Client): ServedTunnel | undefined {\n  const servedTunnel = getServedTunnel(client);\n\n  return servedTunnel?.allowedDsns.length && matchesTunnel(request, servedTunnel) ? servedTunnel : undefined;\n}\n\n/**\n * Forwards the request if it targets the tunnel `serveTunnelIntegration` serves, otherwise returns `undefined`. The\n * runtime and framework SDKs answer tunnel requests with it, ahead of the app.\n *\n * It never throws, since a throw here would break the app's own requests. Until a request is claimed, a failure hands\n * it to the app. Once claimed, its body may be read already, so a failure ends in a 502 instead. `client` defaults to\n * the active one.\n */\nexport function handleServedTunnelRequest(request: Request, client?: Client): Promise<Response> | undefined {\n  let servedTunnel: ServedTunnel | undefined | null;\n  try {\n    // An envelope always has a body, so a request without one is never a tunnel request.\n    servedTunnel = request.body && getServedTunnelMatch(request, client);\n    if (!servedTunnel) {\n      return undefined;\n    }\n  } catch (error) {\n    DEBUG_BUILD && debug.error('Sentry tunnel: failed to match a request', error);\n\n    return undefined;\n  }\n\n  // Claimed from here on, so even a `forward` that throws right away ends in a 502.\n  const { forward, allowedDsns } = servedTunnel;\n\n  return Promise.resolve()\n    .then(() => forward(request, allowedDsns))\n    .catch(error => {\n      DEBUG_BUILD && debug.error('Sentry tunnel: failed to forward a request', error);\n\n      return new Response(null, { status: 502 });\n    });\n}\n\n/**\n * `allowedDsns` plus the server's own DSN, which is always allowed.\n */\nexport function resolveAllowedDsns(\n  allowedDsns: Array<string> | undefined,\n  ownDsn: DsnComponents | undefined,\n): Array<string> {\n  // Normalized like the envelope header's DSN, which has no secret key.\n  const dsns = new Set<string>();\n  for (const components of [...(allowedDsns ?? []).map(dsn => makeDsn(dsn)), ownDsn]) {\n    if (components) {\n      dsns.add(dsnToString(components));\n    }\n  }\n\n  return [...dsns];\n}\n\n/**\n * Returns the path below `basePath`, or `undefined` outside it.\n */\nfunction stripBasePath(pathname: string, basePath: string | undefined): string | undefined {\n  const base = normalizeTunnelBasePath(basePath);\n  if (!base) {\n    return pathname;\n  }\n\n  return pathname === base || pathname.startsWith(`${base}/`) ? pathname.slice(base.length) : undefined;\n}\n\n/**\n * 32-bit FNV-1a (https://www.ietf.org/archive/id/draft-eastlake-fnv-22.html#name-fnv32-code): synchronous (the\n * browser needs it in `init`) and dependency free. Changing it breaks mixed SDK versions, since browser and server\n * compute the path separately.\n */\nfunction fnv1a32(input: string): number {\n  let hash = 0x811c9dc5;\n  for (let i = 0; i < input.length; i++) {\n    // eslint-disable-next-line no-bitwise\n    hash ^= input.charCodeAt(i);\n    hash = Math.imul(hash, 0x01000193);\n  }\n\n  // eslint-disable-next-line no-bitwise\n  return hash >>> 0;\n}\n","import type { CoreOptions } from '../types/options';\nimport { SDK_VERSION } from '../utils/version';\n\n/**\n * A builder for the SDK metadata in the options for the SDK initialization.\n *\n * Note: This function is identical to `buildMetadata` in Remix and NextJS and SvelteKit.\n * We don't extract it for bundle size reasons.\n * @see https://github.com/getsentry/sentry-javascript/pull/7404\n * @see https://github.com/getsentry/sentry-javascript/pull/4196\n *\n * If you make changes to this function consider updating the others as well.\n *\n * @param options SDK options object that gets mutated\n * @param names list of package names\n */\nexport function applySdkMetadata(options: CoreOptions, name: string, names = [name], source = 'npm'): void {\n  const sdk = ((options._metadata = options._metadata || {}).sdk = options._metadata.sdk || {});\n\n  if (!sdk.name) {\n    sdk.name = `sentry.javascript.${name}`;\n    sdk.packages = names.map(name => ({\n      name: `${source}:@sentry/${name}`,\n      version: SDK_VERSION,\n    }));\n    sdk.version = SDK_VERSION;\n  }\n}\n","import { getAsyncContextStrategy } from '../asyncContext';\nimport { getMainCarrier } from '../carrier';\nimport type { Client } from '../client';\nimport { getClient, getCurrentScope, hasExternalPropagationContext } from '../currentScopes';\nimport { isEnabled } from '../exports';\nimport type { Scope } from '../scope';\nimport { getDynamicSamplingContextFromScope, getDynamicSamplingContextFromSpan } from '../tracing';\nimport { spanIsNonRecordingSpan } from '../tracing/sentryNonRecordingSpan';\nimport type { Span } from '../types/span';\nimport type { SerializedTraceData } from '../types/tracing';\nimport { dynamicSamplingContextToSentryBaggageHeader } from './baggage';\nimport { debug } from './debug-logger';\nimport { hasSpansEnabled } from './hasSpansEnabled';\nimport { getActiveSpan, spanToTraceHeader, spanToTraceparentHeader } from './spanUtils';\nimport { generateSentryTraceHeader, generateTraceparentHeader, TRACEPARENT_REGEXP } from './tracing';\n\n/**\n * Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation\n * context) and serializes it to `sentry-trace` and `baggage` values. These values can be used to propagate\n * a trace via our tracing Http headers or Html `<meta>` tags.\n *\n * This function also applies some validation to the generated sentry-trace and baggage values to ensure that\n * only valid strings are returned.\n *\n * When an external propagation context is registered (e.g. via the OTLP integration) and there is no active\n * Sentry span, this function returns an empty object to defer outgoing request propagation to the external\n * propagator (e.g. an OpenTelemetry propagator).\n *\n * If (@param options.propagateTraceparent) is `true`, the function will also generate a `traceparent` value,\n * following the W3C traceparent header format.\n *\n * @returns an object with the tracing data values. The object keys are the name of the tracing key to be used as header\n * or meta tag name.\n */\nexport function getTraceData(\n  options: { span?: Span; scope?: Scope; client?: Client; propagateTraceparent?: boolean } = {},\n): SerializedTraceData {\n  const client = options.client || getClient();\n  if (!isEnabled() || !client) {\n    return {};\n  }\n\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  if (acs.getTraceData) {\n    return acs.getTraceData(options);\n  }\n\n  const scope = options.scope || getCurrentScope();\n  const span = options.span || getActiveSpan();\n\n  // In Tracing-without-Performance (TwP) mode, spans are non-recording placeholders that carry no\n  // sampling decision of their own (it's deferred). The scope is the source of truth, so we read\n  // the trace headers from the scope. A non-recording span in *tracing* mode (e.g. an unsampled\n  // child or an ignored span) is different: it represents an explicit negative decision, which\n  // `spanToTraceHeader` correctly encodes as `-0`, so we keep reading those from the span.\n  const isTwpPlaceholder = spanIsNonRecordingSpan(span) && !hasSpansEnabled(client.getOptions());\n\n  // When there's no recording span and an external propagation context is registered (e.g. OTLP\n  // integration), return empty to let the external propagator handle outgoing request propagation.\n  if (!span && hasExternalPropagationContext()) {\n    return {};\n  }\n\n  const sentryTrace = span && !isTwpPlaceholder ? spanToTraceHeader(span) : scopeToTraceHeader(scope);\n  const dsc = span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromScope(client, scope);\n  const baggage = dynamicSamplingContextToSentryBaggageHeader(dsc);\n\n  const isValidSentryTraceHeader = TRACEPARENT_REGEXP.test(sentryTrace);\n  if (!isValidSentryTraceHeader) {\n    debug.warn('Invalid sentry-trace data. Cannot generate trace data');\n    return {};\n  }\n\n  const traceData: SerializedTraceData = {\n    'sentry-trace': sentryTrace,\n    baggage,\n  };\n\n  if (options.propagateTraceparent) {\n    traceData.traceparent = span && !isTwpPlaceholder ? spanToTraceparentHeader(span) : scopeToTraceparentHeader(scope);\n  }\n\n  return traceData;\n}\n\n/**\n * Get a sentry-trace header value for the given scope.\n */\nfunction scopeToTraceHeader(scope: Scope): string {\n  const { traceId, sampled, propagationSpanId } = scope.getPropagationContext();\n  return generateSentryTraceHeader(traceId, propagationSpanId, sampled);\n}\n\nfunction scopeToTraceparentHeader(scope: Scope): string {\n  const { traceId, sampled, propagationSpanId } = scope.getPropagationContext();\n  return generateTraceparentHeader(traceId, propagationSpanId, sampled);\n}\n","/**\n * Return a new array with duplicate values removed, preserving first-occurrence order.\n *\n * @param input the array to deduplicate\n * @returns a new array containing each distinct value once, in the order it first appeared\n */\nexport function uniq<T>(input: T[]): T[] {\n  return Array.from(new Set(input));\n}\n","export type SpanKindNumber = 0 | 1 | 2 | 3 | 4;\nexport type SpanKind = 'server' | 'client' | 'producer' | 'consumer';\n\n/**\n * Map of otel span kind numbers to span kind names.\n */\nconst SPAN_KIND_NUMBER_TO_NAME = {\n  [0]: undefined,\n  [1]: 'server',\n  [2]: 'client',\n  [3]: 'producer',\n  [4]: 'consumer',\n} as const satisfies Record<SpanKindNumber, SpanKind | undefined>;\n\n/**\n * Resolve the string name of a span kind value (e.g. `1` → `'SERVER'`), mirroring the reverse\n * mapping of OpenTelemetry's `SpanKind` enum. Used for the `otel.kind` span attribute, so SDK\n * code doesn't need to import `@opentelemetry/api` just for that reverse lookup.\n */\nexport function spanKindToName(kind: number): SpanKind | undefined {\n  return SPAN_KIND_NUMBER_TO_NAME[kind as SpanKindNumber];\n}\n","import type { ExtendedError } from '../types/error';\nimport type { Event, EventHint } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { StackParser } from '../types/stacktrace';\nimport { isError } from './is';\n\n/**\n * Creates exceptions inside `event.exception.values` for errors that are nested on properties based on the `key` parameter.\n */\nexport function applyAggregateErrorsToEvent(\n  exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n  parser: StackParser,\n  key: string,\n  limit: number,\n  event: Event,\n  hint?: EventHint,\n): void {\n  if (!event.exception?.values || !hint || !isError(hint.originalException)) {\n    return;\n  }\n\n  // Generally speaking the last item in `event.exception.values` is the exception originating from the original Error\n  const originalException: Exception | undefined =\n    event.exception.values.length > 0 ? event.exception.values[event.exception.values.length - 1] : undefined;\n\n  // We only create exception grouping if there is an exception in the event.\n  if (originalException) {\n    event.exception.values = aggregateExceptionsFromError(\n      exceptionFromErrorImplementation,\n      parser,\n      limit,\n      hint.originalException as ExtendedError,\n      key,\n      event.exception.values,\n      originalException,\n      0,\n    );\n  }\n}\n\nfunction aggregateExceptionsFromError(\n  exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n  parser: StackParser,\n  limit: number,\n  error: ExtendedError,\n  key: string,\n  prevExceptions: Exception[],\n  exception: Exception,\n  exceptionId: number,\n): Exception[] {\n  if (prevExceptions.length >= limit + 1) {\n    return prevExceptions;\n  }\n\n  let newExceptions = [...prevExceptions];\n\n  // Recursively call this function in order to walk down a chain of errors\n  if (isError(error[key])) {\n    applyExceptionGroupFieldsForParentException(exception, exceptionId, error);\n    const newException = exceptionFromErrorImplementation(parser, error[key]);\n    const newExceptionId = newExceptions.length;\n    applyExceptionGroupFieldsForChildException(newException, key, newExceptionId, exceptionId);\n    newExceptions = aggregateExceptionsFromError(\n      exceptionFromErrorImplementation,\n      parser,\n      limit,\n      error[key] as ExtendedError,\n      key,\n      [newException, ...newExceptions],\n      newException,\n      newExceptionId,\n    );\n  }\n\n  // This will create exception grouping for AggregateErrors\n  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError\n  if (isExceptionGroup(error)) {\n    error.errors.forEach((childError, i) => {\n      if (newExceptions.length < limit + 1 && isError(childError)) {\n        applyExceptionGroupFieldsForParentException(exception, exceptionId, error);\n        const newException = exceptionFromErrorImplementation(parser, childError);\n        const newExceptionId = newExceptions.length;\n        applyExceptionGroupFieldsForChildException(newException, `errors[${i}]`, newExceptionId, exceptionId);\n        newExceptions = aggregateExceptionsFromError(\n          exceptionFromErrorImplementation,\n          parser,\n          limit,\n          childError as ExtendedError,\n          key,\n          [newException, ...newExceptions],\n          newException,\n          newExceptionId,\n        );\n      }\n    });\n  }\n\n  // SuppressedError (explicit resource management) wraps two errors: `error` (the new one thrown during disposal)\n  // and `suppressed` (the original one it replaced).\n  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SuppressedError\n\n  if (isSuppressedError(error)) {\n    ['error', 'suppressed'].forEach(property => {\n      const childError = error[property];\n      if (newExceptions.length < limit + 1 && isError(childError)) {\n        applyExceptionGroupFieldsForParentException(exception, exceptionId, error);\n        const newException = exceptionFromErrorImplementation(parser, childError);\n        const newExceptionId = newExceptions.length;\n        applyExceptionGroupFieldsForChildException(newException, property, newExceptionId, exceptionId);\n        newExceptions = aggregateExceptionsFromError(\n          exceptionFromErrorImplementation,\n          parser,\n          limit,\n          childError as ExtendedError,\n          key,\n          [newException, ...newExceptions],\n          newException,\n          newExceptionId,\n        );\n      }\n    });\n  }\n\n  return newExceptions;\n}\n\nfunction isExceptionGroup(error: ExtendedError): error is ExtendedError & { errors: unknown[] } {\n  return Array.isArray(error.errors);\n}\n\nfunction isSuppressedError(error: ExtendedError): boolean {\n  return 'error' in error && 'suppressed' in error;\n}\n\nfunction applyExceptionGroupFieldsForParentException(\n  exception: Exception,\n  exceptionId: number,\n  error: ExtendedError,\n): void {\n  exception.mechanism = {\n    handled: true,\n    type: 'auto.core.linked_errors',\n    ...(isExceptionGroup(error) && { is_exception_group: true }),\n    ...exception.mechanism,\n    exception_id: exceptionId,\n  };\n}\n\nfunction applyExceptionGroupFieldsForChildException(\n  exception: Exception,\n  source: string,\n  exceptionId: number,\n  parentId: number | undefined,\n): void {\n  exception.mechanism = {\n    handled: true,\n    ...exception.mechanism,\n    type: 'chained',\n    source,\n    exception_id: exceptionId,\n    parent_id: parentId,\n  };\n}\n","import type { Client } from '../client';\nimport type { Event, EventHint } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { Extras } from '../types/extra';\nimport type { Mechanism } from '../types/mechanism';\nimport type { ParameterizedString } from '../types/parameterize';\nimport type { SeverityLevel } from '../types/severity';\nimport type { StackFrame } from '../types/stackframe';\nimport type { StackParser } from '../types/stacktrace';\nimport { isError, isErrorEvent, isParameterizedString, isPlainObject } from './is';\nimport { addExceptionMechanism, addExceptionTypeValue } from './misc';\nimport { normalizeToSize } from './normalize';\nimport { extractExceptionKeysForMessage } from './object';\n\n/**\n * Extracts stack frames from the error.stack string\n */\nexport function parseStackFrames(stackParser: StackParser, error: Error): StackFrame[] {\n  return stackParser(error.stack || '', 1);\n}\n\nfunction hasSentryFetchUrlHost(error: unknown): error is Error & { __sentry_fetch_url_host__: string } {\n  return isError(error) && '__sentry_fetch_url_host__' in error && typeof error.__sentry_fetch_url_host__ === 'string';\n}\n\n/**\n * Enhances the error message with the hostname for better Sentry error reporting.\n * This allows third-party packages to still match on the original error message,\n * while Sentry gets the enhanced version with context.\n *\n * Only used internally\n * @hidden\n */\nexport function _enhanceErrorWithSentryInfo<T extends Error>(error: T): string {\n  // If the error has a __sentry_fetch_url_host__ property (added by fetch instrumentation),\n  // enhance the error message with the hostname.\n  if (hasSentryFetchUrlHost(error)) {\n    return `${error.message} (${error.__sentry_fetch_url_host__})`;\n  }\n\n  return error.message;\n}\n\n/**\n * Extracts stack frames from the error and builds a Sentry Exception\n */\nexport function exceptionFromError(stackParser: StackParser, error: Error): Exception {\n  const exception: Exception = {\n    type: error.name || error.constructor.name,\n    value: _enhanceErrorWithSentryInfo(error),\n  };\n\n  const frames = parseStackFrames(stackParser, error);\n  if (frames.length) {\n    exception.stacktrace = { frames };\n  }\n\n  return exception;\n}\n\n/** If a plain object has a property that is an `Error`, return this error. */\nfunction getErrorPropertyFromObject(obj: Record<string, unknown>): Error | undefined {\n  for (const prop in obj) {\n    if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n      const value = obj[prop];\n      if (isError(value)) {\n        return value;\n      }\n    }\n  }\n\n  return undefined;\n}\n\nfunction getMessageForObject(exception: Record<string, unknown>): string {\n  if ('name' in exception && typeof exception.name === 'string') {\n    let message = `'${exception.name}' captured as exception`;\n\n    if ('message' in exception && typeof exception.message === 'string') {\n      message += ` with message '${exception.message}'`;\n    }\n\n    return message;\n  } else if ('message' in exception && typeof exception.message === 'string') {\n    return exception.message;\n  }\n\n  const keys = extractExceptionKeysForMessage(exception);\n\n  // Some ErrorEvent instances do not have an `error` property, which is why they are not handled before\n  // We still want to try to get a decent message for these cases\n  if (isErrorEvent(exception)) {\n    return `Event \\`ErrorEvent\\` captured as exception with message \\`${exception.message}\\``;\n  }\n\n  const className = getObjectClassName(exception);\n\n  return `${\n    className && className !== 'Object' ? `'${className}'` : 'Object'\n  } captured as exception with keys: ${keys}`;\n}\n\nfunction getObjectClassName(obj: unknown): string | undefined | void {\n  try {\n    const prototype: unknown | null = Object.getPrototypeOf(obj);\n    return prototype ? prototype.constructor.name : undefined;\n  } catch {\n    // ignore errors here\n  }\n}\n\nfunction getException(\n  client: Client,\n  mechanism: Mechanism,\n  exception: unknown,\n  hint?: EventHint,\n): [Error, Extras | undefined] {\n  if (isError(exception)) {\n    return [exception, undefined];\n  }\n\n  // Mutate this!\n  mechanism.synthetic = true;\n\n  if (isPlainObject(exception)) {\n    const normalizeDepth = client?.getOptions().normalizeDepth;\n    const extras = { ['__serialized__']: normalizeToSize(exception, normalizeDepth) };\n\n    const errorFromProp = getErrorPropertyFromObject(exception);\n    if (errorFromProp) {\n      return [errorFromProp, extras];\n    }\n\n    const message = getMessageForObject(exception);\n    const ex = hint?.syntheticException || new Error(message);\n    ex.message = message;\n\n    return [ex, extras];\n  }\n\n  // This handles when someone does: `throw \"something awesome\";`\n  // We use synthesized Error here so we can extract a (rough) stack trace.\n  const ex = hint?.syntheticException || new Error(exception as string);\n  ex.message = `${exception}`;\n\n  return [ex, undefined];\n}\n\n/**\n * Builds and Event from a Exception\n * @hidden\n */\nexport function eventFromUnknownInput(\n  client: Client,\n  stackParser: StackParser,\n  exception: unknown,\n  hint?: EventHint,\n): Event {\n  const providedMechanism: Mechanism | undefined = hint?.data && (hint.data as { mechanism: Mechanism }).mechanism;\n  const mechanism: Mechanism = providedMechanism || {\n    handled: true,\n    type: 'generic',\n  };\n\n  const [ex, extras] = getException(client, mechanism, exception, hint);\n\n  const event: Event = {\n    exception: {\n      values: [exceptionFromError(stackParser, ex)],\n    },\n  };\n\n  if (extras) {\n    event.extra = extras;\n  }\n\n  addExceptionTypeValue(event, undefined, undefined);\n  addExceptionMechanism(event, mechanism);\n\n  return {\n    ...event,\n    event_id: hint?.event_id,\n  };\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nexport function eventFromMessage(\n  stackParser: StackParser,\n  message: ParameterizedString,\n  level: SeverityLevel = 'info',\n  hint?: EventHint,\n  attachStacktrace?: boolean,\n): Event {\n  const event: Event = {\n    event_id: hint?.event_id,\n    level,\n  };\n\n  if (attachStacktrace && hint?.syntheticException) {\n    const frames = parseStackFrames(stackParser, hint.syntheticException);\n    if (frames.length) {\n      event.exception = {\n        values: [\n          {\n            value: message,\n            stacktrace: { frames },\n          },\n        ],\n      };\n      addExceptionMechanism(event, { synthetic: true });\n    }\n  }\n\n  if (isParameterizedString(message)) {\n    const { __sentry_template_string__, __sentry_template_values__ } = message;\n\n    event.logentry = {\n      message: __sentry_template_string__,\n      params: __sentry_template_values__,\n    };\n    return event;\n  }\n\n  event.message = message;\n  return event;\n}\n","import { defineIntegration } from '../integration';\nimport type { IntegrationFn } from '../types/integration';\nimport { applyAggregateErrorsToEvent } from '../utils/aggregate-errors';\nimport { exceptionFromError } from '../utils/eventbuilder';\n\ninterface LinkedErrorsOptions {\n  key?: string;\n  limit?: number;\n}\n\nconst DEFAULT_KEY = 'cause';\nconst DEFAULT_LIMIT = 5;\n\nconst INTEGRATION_NAME = 'LinkedErrors' as const;\n\nconst _linkedErrorsIntegration = ((options: LinkedErrorsOptions = {}) => {\n  const limit = options.limit || DEFAULT_LIMIT;\n  const key = options.key || DEFAULT_KEY;\n\n  return {\n    name: INTEGRATION_NAME,\n    preprocessEvent(event, hint, client) {\n      const options = client.getOptions();\n\n      applyAggregateErrorsToEvent(exceptionFromError, options.stackParser, key, limit, event, hint);\n    },\n  };\n}) satisfies IntegrationFn;\n\nexport const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);\n","import { DEBUG_BUILD } from '../debug-build';\nimport { defineIntegration } from '../integration';\nimport type { Event } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { IntegrationFn } from '../types/integration';\nimport { debug } from '../utils/debug-logger';\nimport { getFramesFromEvent } from '../utils/stacktrace';\n\nconst INTEGRATION_NAME = 'Dedupe' as const;\n\nconst _dedupeIntegration = (() => {\n  let previousEvent: Event | undefined;\n\n  return {\n    name: INTEGRATION_NAME,\n    processEvent(currentEvent) {\n      // We want to ignore any non-error type events, e.g. transactions or replays\n      // These should never be deduped, and also not be compared against as _previousEvent.\n      if (currentEvent.type) {\n        return currentEvent;\n      }\n\n      // Juuust in case something goes wrong\n      try {\n        if (_shouldDropEvent(currentEvent, previousEvent)) {\n          DEBUG_BUILD && debug.warn('Event dropped due to being a duplicate of previously captured event.');\n          return null;\n        }\n      } catch {} // eslint-disable-line no-empty\n\n      return (previousEvent = currentEvent);\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Drops an error or message event if it is equal to the previous error or message event.\n * Two events are equal if they have the same message (or the same exception type and value),\n * the same stack trace and the same fingerprint.\n *\n * A repeated `captureException` of the same error object is dropped by the client, also without\n * this integration (see `checkOrSetAlreadyCaught`).\n */\nexport const dedupeIntegration = defineIntegration(_dedupeIntegration);\n\n/** only exported for tests. */\nexport function _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean {\n  if (!previousEvent) {\n    return false;\n  }\n\n  if (_isSameMessageEvent(currentEvent, previousEvent)) {\n    return true;\n  }\n\n  if (_isSameExceptionEvent(currentEvent, previousEvent)) {\n    return true;\n  }\n\n  return false;\n}\n\nfunction _isSameMessageEvent(currentEvent: Event, previousEvent: Event): boolean {\n  const currentMessage = currentEvent.message;\n  const previousMessage = previousEvent.message;\n\n  // If neither event has a message property, they were both exceptions, so bail out\n  if (!currentMessage && !previousMessage) {\n    return false;\n  }\n\n  // If only one event has a stacktrace, but not the other one, they are not the same\n  if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n    return false;\n  }\n\n  if (currentMessage !== previousMessage) {\n    return false;\n  }\n\n  if (!_isSameFingerprint(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  if (!_isSameStacktrace(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  return true;\n}\n\nfunction _isSameExceptionEvent(currentEvent: Event, previousEvent: Event): boolean {\n  const previousException = _getExceptionFromEvent(previousEvent);\n  const currentException = _getExceptionFromEvent(currentEvent);\n\n  if (!previousException || !currentException) {\n    return false;\n  }\n\n  if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n    return false;\n  }\n\n  if (!_isSameFingerprint(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  if (!_isSameStacktrace(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  return true;\n}\n\nfunction _isSameStacktrace(currentEvent: Event, previousEvent: Event): boolean {\n  const currentFrames = getFramesFromEvent(currentEvent);\n  const previousFrames = getFramesFromEvent(previousEvent);\n\n  // If either event is missing a stacktrace, they are the same only if neither has one\n  if (!currentFrames || !previousFrames) {\n    return !currentFrames && !previousFrames;\n  }\n\n  // If number of frames differ, they are not the same\n  if (previousFrames.length !== currentFrames.length) {\n    return false;\n  }\n\n  // Otherwise, compare the two\n  for (let i = 0; i < previousFrames.length; i++) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n    const frameA = previousFrames[i]!;\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n    const frameB = currentFrames[i]!;\n\n    if (\n      frameA.filename !== frameB.filename ||\n      frameA.lineno !== frameB.lineno ||\n      frameA.colno !== frameB.colno ||\n      frameA.function !== frameB.function\n    ) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nfunction _isSameFingerprint(currentEvent: Event, previousEvent: Event): boolean {\n  const currentFingerprint = currentEvent.fingerprint;\n  const previousFingerprint = previousEvent.fingerprint;\n\n  // If either event is missing a fingerprint, they are the same only if neither has one\n  if (!currentFingerprint || !previousFingerprint) {\n    return !currentFingerprint && !previousFingerprint;\n  }\n\n  // Otherwise, compare the two\n  try {\n    return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n  } catch {\n    return false;\n  }\n}\n\nfunction _getExceptionFromEvent(event: Event): Exception | undefined {\n  return event.exception?.values?.[0];\n}\n","// Slightly modified (no IE8 support, ES6) and transcribed to TypeScript\n// https://github.com/calvinmetcalf/rollup-plugin-node-builtins/blob/63ab8aacd013767445ca299e468d9a60a95328d7/src/es6/path.js\n//\n// Copyright Joyent, Inc.and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n/** JSDoc */\nfunction normalizeArray(parts: string[], allowAboveRoot?: boolean): string[] {\n  // if the path tries to go above the root, `up` ends up > 0\n  let up = 0;\n  for (let i = parts.length - 1; i >= 0; i--) {\n    const last = parts[i];\n    if (last === '.') {\n      parts.splice(i, 1);\n    } else if (last === '..') {\n      parts.splice(i, 1);\n      up++;\n    } else if (up) {\n      parts.splice(i, 1);\n      up--;\n    }\n  }\n\n  // if the path is allowed to go above the root, restore leading ..s\n  if (allowAboveRoot) {\n    for (; up--; up) {\n      parts.unshift('..');\n    }\n  }\n\n  return parts;\n}\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nconst splitPathRe = /^(\\S+:\\\\|\\/?)([\\s\\S]*?)((?:\\.{1,2}|[^/\\\\]+?|)(\\.[^./\\\\]*|))(?:[/\\\\]*)$/;\n/** JSDoc */\nfunction splitPath(filename: string): string[] {\n  // Truncate files names greater than 1024 characters to avoid regex dos\n  // https://github.com/getsentry/sentry-javascript/pull/8737#discussion_r1285719172\n  const truncated = filename.length > 1024 ? `<truncated>${filename.slice(-1024)}` : filename;\n  const parts = splitPathRe.exec(truncated);\n  return parts ? parts.slice(1) : [];\n}\n\n// path.resolve([from ...], to)\n// posix version\n/** JSDoc */\nexport function resolve(...args: string[]): string {\n  let resolvedPath = '';\n  let resolvedAbsolute = false;\n\n  for (let i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n    const path = i >= 0 ? args[i] : '/';\n\n    // Skip empty entries\n    if (!path) {\n      continue;\n    }\n\n    resolvedPath = `${path}/${resolvedPath}`;\n    resolvedAbsolute = path.charAt(0) === '/';\n  }\n\n  // At this point the path should be resolved to a full absolute path, but\n  // handle relative paths to be safe (might happen when process.cwd() fails)\n\n  // Normalize the path\n  resolvedPath = normalizeArray(\n    resolvedPath.split('/').filter(p => !!p),\n    !resolvedAbsolute,\n  ).join('/');\n\n  return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';\n}\n\n/** JSDoc */\nfunction trim(arr: string[]): string[] {\n  let start = 0;\n  for (; start < arr.length; start++) {\n    if (arr[start] !== '') {\n      break;\n    }\n  }\n\n  let end = arr.length - 1;\n  for (; end >= 0; end--) {\n    if (arr[end] !== '') {\n      break;\n    }\n  }\n\n  if (start > end) {\n    return [];\n  }\n  return arr.slice(start, end - start + 1);\n}\n\n// path.relative(from, to)\n// posix version\n/** JSDoc */\nexport function relative(from: string, to: string): string {\n  /* eslint-disable no-param-reassign */\n  from = resolve(from).slice(1);\n  to = resolve(to).slice(1);\n  /* eslint-enable no-param-reassign */\n\n  const fromParts = trim(from.split('/'));\n  const toParts = trim(to.split('/'));\n\n  const length = Math.min(fromParts.length, toParts.length);\n  let samePartsLength = length;\n  for (let i = 0; i < length; i++) {\n    if (fromParts[i] !== toParts[i]) {\n      samePartsLength = i;\n      break;\n    }\n  }\n\n  let outputParts = [];\n  for (let i = samePartsLength; i < fromParts.length; i++) {\n    outputParts.push('..');\n  }\n\n  outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n  return outputParts.join('/');\n}\n\n// path.normalize(path)\n// posix version\n/** JSDoc */\nexport function normalizePath(path: string): string {\n  const isPathAbsolute = isAbsolute(path);\n  const trailingSlash = path.slice(-1) === '/';\n\n  // Normalize the path\n  let normalizedPath = normalizeArray(\n    path.split('/').filter(p => !!p),\n    !isPathAbsolute,\n  ).join('/');\n\n  if (!normalizedPath && !isPathAbsolute) {\n    normalizedPath = '.';\n  }\n  if (normalizedPath && trailingSlash) {\n    normalizedPath += '/';\n  }\n\n  return (isPathAbsolute ? '/' : '') + normalizedPath;\n}\n\n// posix version\n/** JSDoc */\nexport function isAbsolute(path: string): boolean {\n  return path.charAt(0) === '/';\n}\n\n// posix version\n/** JSDoc */\nexport function join(...args: string[]): string {\n  return normalizePath(args.join('/'));\n}\n\n/** JSDoc */\nexport function dirname(path: string): string {\n  const result = splitPath(path);\n  const root = result[0] || '';\n  let dir = result[1];\n\n  if (!root && !dir) {\n    // No dirname whatsoever\n    return '.';\n  }\n\n  if (dir) {\n    // It has a dirname, strip trailing slash\n    dir = dir.slice(0, dir.length - 1);\n  }\n\n  return root + dir;\n}\n\n/** JSDoc */\nexport function basename(path: string, ext?: string): string {\n  let f = splitPath(path)[2] || '';\n  if (ext && f.slice(ext.length * -1) === ext) {\n    f = f.slice(0, f.length - ext.length);\n  }\n  return f;\n}\n","import { defineIntegration } from '../integration';\nimport type { Event } from '../types/event';\nimport type { StackFrame } from '../types/stackframe';\nimport type { Stacktrace } from '../types/stacktrace';\nimport { basename, relative } from '../utils/path';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\n\ntype StackFrameIteratee = (frame: StackFrame) => StackFrame;\n\nconst INTEGRATION_NAME = 'RewriteFrames' as const;\n\ninterface RewriteFramesOptions {\n  /**\n   * Root path (the beginning of the path) that will be stripped from the frames' filename.\n   *\n   * This option has slightly different behaviour in the browser and on servers:\n   * - In the browser, the value you provide in `root` will be stripped from the beginning stack frames' paths (if the path started with the value).\n   * - On the server, the root value will only replace the beginning of stack frame filepaths, when the path is absolute. If no `root` value is provided and the path is absolute, the frame will be reduced to only the filename and the provided `prefix` option.\n   *\n   * Browser example:\n   * - Original frame: `'http://example.com/my/path/static/asset.js'`\n   * - `root: 'http://example.com/my/path'`\n   * - `assetPrefix: 'app://'`\n   * - Resulting frame: `'app:///static/asset.js'`\n   *\n   * Server example:\n   * - Original frame: `'/User/local/my/path/static/asset.js'`\n   * - `root: '/User/local/my/path'`\n   * - `assetPrefix: 'app://'`\n   * - Resulting frame: `'app:///static/asset.js'`\n   */\n  root?: string;\n\n  /**\n   * A custom prefix that stack frames will be prepended with.\n   *\n   * Default: `'app://'`\n   *\n   * This option has slightly different behaviour in the browser and on servers:\n   * - In the browser, the value you provide in `prefix` will prefix the resulting filename when the value you provided in `root` was applied. Effectively replacing whatever `root` matched in the beginning of the frame with `prefix`.\n   * - On the server, the prefix is applied to all stackframes with absolute paths. On Windows, the drive identifier (e.g. \"C://\") is replaced with the prefix.\n   */\n  prefix?: string;\n\n  /**\n   * Defines an iterator that is used to iterate through all of the stack frames for modification before being sent to Sentry.\n   * Setting this option will effectively disable both the `root` and the `prefix` options.\n   */\n  iteratee?: StackFrameIteratee;\n}\n\n/**\n * Rewrite event frames paths.\n */\nexport const rewriteFramesIntegration = defineIntegration((options: RewriteFramesOptions = {}) => {\n  const root = options.root;\n  const prefix = options.prefix || 'app:///';\n\n  const isBrowser = 'window' in GLOBAL_OBJ && !!GLOBAL_OBJ.window;\n\n  const iteratee: StackFrameIteratee = options.iteratee || generateIteratee({ isBrowser, root, prefix });\n\n  /** Process an exception event. */\n  function _processExceptionsEvent(event: Event): Event {\n    try {\n      return {\n        ...event,\n        exception: {\n          ...event.exception,\n          // The check for this is performed inside `process` call itself, safe to skip here\n          // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n          values: event.exception!.values!.map(value => ({\n            ...value,\n            ...(value.stacktrace && { stacktrace: _processStacktrace(value.stacktrace) }),\n          })),\n        },\n      };\n    } catch {\n      return event;\n    }\n  }\n\n  /** Process a stack trace. */\n  function _processStacktrace(stacktrace?: Stacktrace): Stacktrace {\n    return {\n      ...stacktrace,\n      frames: stacktrace?.frames?.map(f => iteratee(f)),\n    };\n  }\n\n  return {\n    name: INTEGRATION_NAME,\n    processEvent(originalEvent) {\n      let processedEvent = originalEvent;\n\n      if (originalEvent.exception && Array.isArray(originalEvent.exception.values)) {\n        processedEvent = _processExceptionsEvent(processedEvent);\n      }\n\n      return processedEvent;\n    },\n  };\n});\n\n/**\n * Exported only for tests.\n */\nexport function generateIteratee({\n  isBrowser,\n  root,\n  prefix,\n}: {\n  isBrowser: boolean;\n  root?: string;\n  prefix: string;\n}): StackFrameIteratee {\n  return (frame: StackFrame) => {\n    if (!frame.filename) {\n      return frame;\n    }\n\n    // Determine if this is a Windows frame by checking for a Windows-style prefix such as `C:\\`\n    const isWindowsFrame =\n      /^[a-zA-Z]:\\\\/.test(frame.filename) ||\n      // or the presence of a backslash without a forward slash (which are not allowed on Windows)\n      (frame.filename.includes('\\\\') && !frame.filename.includes('/'));\n\n    // Check if the frame filename begins with `/`\n    const startsWithSlash = /^\\//.test(frame.filename);\n\n    if (isBrowser) {\n      if (root) {\n        const oldFilename = frame.filename;\n        if (oldFilename.indexOf(root) === 0) {\n          frame.filename = oldFilename.replace(root, prefix);\n        }\n      }\n    } else {\n      if (isWindowsFrame || startsWithSlash) {\n        const filename = isWindowsFrame\n          ? frame.filename\n              .replace(/^[a-zA-Z]:/, '') // remove Windows-style prefix\n              .replace(/\\\\/g, '/') // replace all `\\\\` instances with `/`\n          : frame.filename;\n        const base = root ? relative(root, filename) : basename(filename);\n        frame.filename = `${prefix}${base}`;\n      }\n    }\n\n    return frame;\n  };\n}\n","import type { Client } from '../client';\nimport { getTraceContextFromScope, withScope } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport {\n  getDynamicSamplingContextFromScope,\n  getDynamicSamplingContextFromSpan,\n} from '../tracing/dynamicSamplingContext';\nimport type { TraceContext } from '../types/context';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport { getActiveSpan, spanToTraceContext } from './spanUtils';\n\n/** Extract trace information from scope */\nexport function _getTraceInfoFromScope(\n  client: Client,\n  scope: Scope | undefined,\n): [dynamicSamplingContext: Partial<DynamicSamplingContext> | undefined, traceContext: TraceContext | undefined] {\n  if (!scope) {\n    return [undefined, undefined];\n  }\n\n  return withScope(scope, () => {\n    const span = getActiveSpan();\n    const traceContext = span ? spanToTraceContext(span) : getTraceContextFromScope(scope);\n    const dynamicSamplingContext = span\n      ? getDynamicSamplingContextFromSpan(span)\n      : getDynamicSamplingContextFromScope(client, scope);\n    return [dynamicSamplingContext, traceContext];\n  });\n}\n","import type { ClientOptions } from '../types/options';\n\n/**\n * Takes the SDK metadata and adds the user-agent header to the transport options.\n * This ensures that the SDK sends the user-agent header with SDK name and version to\n * all requests made by the transport.\n *\n * @see https://develop.sentry.dev/sdk/overview/#user-agent\n */\nexport function addUserAgentToTransportHeaders(options: ClientOptions): void {\n  const sdkMetadata = options._metadata?.sdk;\n  const sdkUserAgent =\n    sdkMetadata?.name && sdkMetadata?.version ? `${sdkMetadata?.name}/${sdkMetadata?.version}` : undefined;\n\n  options.transportOptions = {\n    ...options.transportOptions,\n    headers: {\n      ...(sdkUserAgent && { 'user-agent': sdkUserAgent }),\n      ...options.transportOptions?.headers,\n    },\n  };\n}\n","import type { Client } from '../client';\nimport { getClient } from '../currentScopes';\nimport type { ServerTunnelOptions } from '../types/options';\nimport type { TunnelForwarder } from './tunnel';\nimport { getClientTunnel, getStoredTunnelDefaults, setClientTunnel, setStoredTunnelDefaults } from './tunnelStore';\nimport { getTunnelIgnoreSpanFilters, normalizeTunnelBasePath, setServedTunnel } from './tunnel';\n\n/**\n * Managed tunnel settings a framework SDK knows outside `init`.\n */\nexport interface TunnelDefaults {\n  /**\n   * Enables the managed tunnel when `init` didn't, e.g. from TanStack Start's `tunnelRoute` build option. Its base\n   * path is `basePath`, so it has none of its own.\n   */\n  tunnel?: Omit<ServerTunnelOptions, 'basePath'>;\n  /** Forwards the requests of the tunnel `tunnel` enables. */\n  forward?: TunnelForwarder;\n  /**\n   * The path prefix the app is served under. Applies to the DSN-derived path however the tunnel was enabled, unless\n   * `init` set its own. A fixed `path` is served as written.\n   */\n  basePath?: string;\n}\n\n/**\n * Sets framework-known tunnel settings for the current and every later server client, so per-request clients\n * (Cloudflare) start with them. Settings from `init` win. Framework SDKs call this once at load.\n */\nexport function setTunnelDefaults(defaults: TunnelDefaults): void {\n  setStoredTunnelDefaults({\n    ...getStoredTunnelDefaults(),\n    ...(defaults.tunnel && { tunnel: defaults.tunnel, forward: defaults.forward }),\n    ...(defaults.basePath !== undefined && { basePath: defaults.basePath }),\n  });\n  applyServerTunnelDefaults(getClient());\n}\n\n/**\n * Enables the managed tunnel on a server client, from `serveTunnelIntegration`.\n */\nexport function enableManagedTunnel(\n  client: Client,\n  tunnelOptions: ServerTunnelOptions,\n  forward: TunnelForwarder,\n): void {\n  client.getOptions()._managedTunnel = { ...tunnelOptions };\n  setClientTunnel(client, { forward });\n  applyServerTunnelDefaults(client);\n}\n\n/**\n * Resolves a server client's managed tunnel (from `serveTunnelIntegration` or the defaults), computes its paths and\n * allowed DSNs, and installs its span filters. Runs when a server client is created and from\n * {@link setTunnelDefaults}.\n */\nexport function applyServerTunnelDefaults(client: Client | undefined): void {\n  const tunnelDefaults = getStoredTunnelDefaults();\n  const options = client?.getOptions();\n  const tunnelOptions: ServerTunnelOptions | undefined = options?._managedTunnel ?? tunnelDefaults?.tunnel;\n  const forward = client && (getClientTunnel(client)?.forward ?? tunnelDefaults?.forward);\n  if (!client || !options || !tunnelOptions || !forward) {\n    return;\n  }\n\n  const basePath = normalizeTunnelBasePath(tunnelDefaults?.basePath);\n  const resolved =\n    tunnelOptions.basePath === undefined && !tunnelOptions.path && basePath\n      ? { ...tunnelOptions, basePath }\n      : tunnelOptions;\n  options._managedTunnel = resolved;\n  const { paths } = setServedTunnel(client, resolved, forward);\n\n  const previousFilters = getClientTunnel(client)?.spanFilters ?? [];\n  const spanFilters = getTunnelIgnoreSpanFilters(resolved, paths);\n  options.ignoreSpans = [\n    ...(options.ignoreSpans ?? []).filter(filter => !(previousFilters as unknown[]).includes(filter)),\n    ...spanFilters,\n  ];\n  setClientTunnel(client, { spanFilters });\n}\n\n/**\n * Resets {@link setTunnelDefaults}, for tests.\n *\n * @internal\n */\nexport function _INTERNAL_resetTunnelDefaults(): void {\n  setStoredTunnelDefaults(undefined);\n}\n","import { SERVER_ADDRESS } from '@sentry/conventions/attributes';\nimport { createCheckInEnvelope } from './checkin';\nimport { Client } from './client';\nimport { getIsolationScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport {\n  spanStreamingIntegration,\n  INTEGRATION_NAME as SPAN_STREAMING_INTEGRATION_NAME,\n} from './integrations/spanStreaming';\nimport type { Scope } from './scope';\nimport { DEFAULT_TRANSPORT_BUFFER_SIZE } from './transports/base';\nimport { addUserAgentToTransportHeaders } from './transports/userAgent';\nimport type { CheckIn, MonitorConfig, SerializedCheckIn } from './types/checkin';\nimport type { Event, EventHint } from './types/event';\nimport type { ClientOptions } from './types/options';\nimport type { ParameterizedString } from './types/parameterize';\nimport type { SeverityLevel } from './types/severity';\nimport type { BaseTransportOptions, Transport } from './types/transport';\nimport { debug } from './utils/debug-logger';\nimport { eventFromMessage, eventFromUnknownInput } from './utils/eventbuilder';\nimport { uuid4 } from './utils/misc';\nimport { makePromiseBuffer } from './utils/promisebuffer';\nimport { resolvedSyncPromise } from './utils/syncpromise';\nimport { _getTraceInfoFromScope } from './utils/trace-info';\nimport { applyServerTunnelDefaults } from './utils/tunnelDefaults';\n\nexport interface ServerRuntimeClientOptions extends ClientOptions<BaseTransportOptions> {\n  platform?: string;\n  runtime?: { name: string; version?: string };\n  serverName?: string;\n}\n\ndeclare const __SENTRY_TRACING__: boolean;\n\n/**\n * The Sentry Server Runtime Client SDK.\n */\nexport class ServerRuntimeClient<\n  O extends ClientOptions & ServerRuntimeClientOptions = ServerRuntimeClientOptions,\n> extends Client<O> {\n  private _disposeCallbacks: (() => void)[] = [];\n\n  /**\n   * Creates a new Edge SDK instance.\n   * @param options Configuration options for this SDK.\n   */\n  public constructor(options: O) {\n    addUserAgentToTransportHeaders(options);\n\n    // When span streaming is enabled (`traceLifecycle: 'stream'`), the `spanStreamingIntegration`\n    // is required to flush spans. We add it here so the individual server SDKs don't have to.\n    // A user-provided `spanStreamingIntegration` always takes precedence over the one we add.\n    if (\n      (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) &&\n      options.traceLifecycle !== 'static' &&\n      !options.integrations.some(i => i.name === SPAN_STREAMING_INTEGRATION_NAME)\n    ) {\n      options.integrations.push(spanStreamingIntegration());\n    }\n\n    super(options);\n\n    applyServerTunnelDefaults(this);\n    this._setUpMetricsProcessing();\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public eventFromException(exception: unknown, hint?: EventHint): PromiseLike<Event> {\n    const event = eventFromUnknownInput(this, this._options.stackParser, exception, hint);\n    event.level = 'error';\n\n    return resolvedSyncPromise(event);\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public eventFromMessage(\n    message: ParameterizedString,\n    level: SeverityLevel = 'info',\n    hint?: EventHint,\n  ): PromiseLike<Event> {\n    return resolvedSyncPromise(\n      eventFromMessage(this._options.stackParser, message, level, hint, this._options.attachStacktrace),\n    );\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public captureException(exception: unknown, hint?: EventHint, scope?: Scope): string {\n    setCurrentRequestSessionErroredOrCrashed(hint);\n    return super.captureException(exception, hint, scope);\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public captureEvent(event: Event, hint?: EventHint, scope?: Scope): string {\n    // If the event is of type Exception, then a request session should be captured\n    const isException = !event.type && event.exception?.values && event.exception.values.length > 0;\n    if (isException) {\n      setCurrentRequestSessionErroredOrCrashed(hint);\n    }\n\n    return super.captureEvent(event, hint, scope);\n  }\n\n  /**\n   * Create a cron monitor check in and send it to Sentry.\n   *\n   * @param checkIn An object that describes a check in.\n   * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want\n   * to create a monitor automatically when sending a check in.\n   */\n  public captureCheckIn(checkIn: CheckIn, monitorConfig?: MonitorConfig, scope?: Scope): string {\n    const id = 'checkInId' in checkIn && checkIn.checkInId ? checkIn.checkInId : uuid4();\n    if (!this._isEnabled()) {\n      DEBUG_BUILD && debug.warn('SDK not enabled, will not capture check-in.');\n      return id;\n    }\n\n    const options = this.getOptions();\n    const { release, environment, tunnel } = options;\n\n    const serializedCheckIn: SerializedCheckIn = {\n      check_in_id: id,\n      monitor_slug: checkIn.monitorSlug,\n      status: checkIn.status,\n      release,\n      environment,\n    };\n\n    if ('duration' in checkIn) {\n      serializedCheckIn.duration = checkIn.duration;\n    }\n\n    if (monitorConfig) {\n      serializedCheckIn.monitor_config = {\n        schedule: monitorConfig.schedule,\n        checkin_margin: monitorConfig.checkinMargin,\n        max_runtime: monitorConfig.maxRuntime,\n        timezone: monitorConfig.timezone,\n        failure_issue_threshold: monitorConfig.failureIssueThreshold,\n        recovery_threshold: monitorConfig.recoveryThreshold,\n      };\n    }\n\n    const [dynamicSamplingContext, traceContext] = _getTraceInfoFromScope(this, scope);\n    if (traceContext) {\n      serializedCheckIn.contexts = {\n        trace: traceContext,\n      };\n    }\n\n    const envelope = createCheckInEnvelope(\n      serializedCheckIn,\n      dynamicSamplingContext,\n      this.getSdkMetadata(),\n      tunnel,\n      this.getDsn(),\n    );\n\n    DEBUG_BUILD && debug.log('Sending checkin:', checkIn.monitorSlug, checkIn.status);\n\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.sendEnvelope(envelope);\n\n    return id;\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public override registerCleanup(callback: () => void): void {\n    this._disposeCallbacks.push(callback);\n  }\n\n  /**\n   * Disposes of the client and releases all resources.\n   *\n   * This method clears all internal state to allow the client to be garbage collected.\n   * It clears hooks, event processors, integrations, transport, and other internal references.\n   *\n   * Call this method after flushing to allow the client to be garbage collected.\n   * After calling dispose(), the client should not be used anymore.\n   *\n   * Subclasses should override this method to clean up their own resources and call `super.dispose()`.\n   */\n  public override dispose(): void {\n    DEBUG_BUILD && debug.log('Disposing client...');\n\n    // Run all registered cleanup callbacks\n    for (const callback of this._disposeCallbacks) {\n      try {\n        callback();\n      } catch {\n        // Ignore errors in cleanup callbacks\n      }\n    }\n    this._disposeCallbacks.length = 0;\n\n    for (const hookName of Object.keys(this._hooks)) {\n      this._hooks[hookName]?.clear();\n    }\n\n    this._hooks = {};\n    this._eventProcessors.length = 0;\n    this._integrations = {};\n    this._outcomes = {};\n    (this as unknown as { _transport?: Transport })._transport = undefined;\n    this._promiseBuffer = makePromiseBuffer(DEFAULT_TRANSPORT_BUFFER_SIZE);\n  }\n\n  /**\n   * @inheritDoc\n   */\n  protected _prepareEvent(\n    event: Event,\n    hint: EventHint,\n    currentScope: Scope,\n    isolationScope: Scope,\n  ): PromiseLike<Event | null> {\n    if (this._options.platform) {\n      event.platform = event.platform || this._options.platform;\n    }\n\n    if (this._options.runtime) {\n      event.contexts = {\n        ...event.contexts,\n        runtime: event.contexts?.runtime || this._options.runtime,\n      };\n    }\n\n    if (this._options.serverName) {\n      event.server_name = event.server_name || this._options.serverName;\n    }\n\n    return super._prepareEvent(event, hint, currentScope, isolationScope);\n  }\n\n  /**\n   * Process a server-side metric before it is captured.\n   */\n  private _setUpMetricsProcessing(): void {\n    this.on('processMetric', metric => {\n      if (this._options.serverName) {\n        metric.attributes = {\n          [SERVER_ADDRESS]: this._options.serverName,\n          ...metric.attributes,\n        };\n      }\n    });\n  }\n}\n\nfunction setCurrentRequestSessionErroredOrCrashed(eventHint?: EventHint): void {\n  const requestSession = getIsolationScope().getScopeData().sdkProcessingMetadata.requestSession;\n  if (requestSession) {\n    // We mutate instead of doing `setSdkProcessingMetadata` because the http integration stores away a particular\n    // isolationScope. If that isolation scope is forked, setting the processing metadata here will not mutate the\n    // original isolation scope that the http integration stored away.\n    const isHandledException = eventHint?.mechanism?.handled ?? true;\n    // A request session can go from \"errored\" -> \"crashed\" but not \"crashed\" -> \"errored\".\n    // Crashed (unhandled exception) is worse than errored (handled exception).\n    if (isHandledException && requestSession.status !== 'crashed') {\n      requestSession.status = 'errored';\n    } else if (!isHandledException) {\n      requestSession.status = 'crashed';\n    }\n  }\n}\n","// This code was originally forked from https://github.com/felixge/node-stack-trace\n// Since then it has been highly modified to fit our needs.\n\n// Copyright (c) 2011 Felix Geisendörfer (felix@debuggable.com)//\n//\n//  Permission is hereby granted, free of charge, to any person obtaining a copy\n//  of this software and associated documentation files (the \"Software\"), to deal\n//  in the Software without restriction, including without limitation the rights\n//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n//  copies of the Software, and to permit persons to whom the Software is\n//  furnished to do so, subject to the following conditions://\n//\n//  The above copyright notice and this permission notice shall be included in\n//  all copies or substantial portions of the Software.//\n//\n//  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n//  THE SOFTWARE.\n\nimport type { StackLineParser, StackLineParserFn } from '../types/stacktrace';\nimport { normalizeStackTracePath, UNKNOWN_FUNCTION } from './stacktrace';\n\nexport type GetModuleFn = (filename: string | undefined) => string | undefined;\n\n/**\n * Does this filename look like it's part of the app code?\n */\nexport function filenameIsInApp(filename: string, isNative: boolean = false): boolean {\n  const isInternal =\n    isNative ||\n    (filename &&\n      // It's not internal if it's an absolute linux path\n      !filename.startsWith('/') &&\n      // It's not internal if it's an absolute windows path\n      !filename.match(/^[A-Z]:/) &&\n      // It's not internal if the path is starting with a dot\n      !filename.startsWith('.') &&\n      // It's not internal if the frame has a protocol. In node, this is usually the case if the file got pre-processed with a bundler like webpack\n      !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\\-+])*:\\/\\//)); // Schema from: https://stackoverflow.com/a/3641782\n\n  // in_app is all that's not an internal Node function or a module within node_modules\n  // note that isNative appears to return true even for node core libraries\n  // see https://github.com/getsentry/raven-node/issues/176\n\n  return !isInternal && filename !== undefined && !filename.includes('node_modules/');\n}\n\n/** Node Stack line parser */\nexport function node(getModule?: GetModuleFn): StackLineParserFn {\n  const FILENAME_MATCH = /^\\s*[-]{4,}$/;\n  const FULL_MATCH = /at (?:async )?(?:(?=.*\\)\\s*$)(.+?)\\s+\\()?(?:(.+):(\\d+):(\\d+)?|([^)]+))\\)?/;\n  const DATA_URI_MATCH = /at (?:async )?(.+?) \\(data:(.*?),/;\n\n  return (line: string) => {\n    const dataUriMatch = line.match(DATA_URI_MATCH);\n    if (dataUriMatch) {\n      return {\n        filename: `<data:${dataUriMatch[2]}>`,\n        function: dataUriMatch[1],\n      };\n    }\n\n    const lineMatch = line.match(FULL_MATCH);\n\n    if (lineMatch) {\n      let object: string | undefined;\n      let method: string | undefined;\n      let functionName: string | undefined;\n      let typeName: string | undefined;\n      let methodName: string | undefined;\n\n      if (lineMatch[1]) {\n        functionName = lineMatch[1];\n\n        let methodStart = functionName.lastIndexOf('.');\n        if (functionName[methodStart - 1] === '.') {\n          methodStart--;\n        }\n\n        if (methodStart > 0) {\n          object = functionName.slice(0, methodStart);\n          method = functionName.slice(methodStart + 1);\n          const objectEnd = object.indexOf('.Module');\n          if (objectEnd > 0) {\n            functionName = functionName.slice(objectEnd + 1);\n            object = object.slice(0, objectEnd);\n          }\n        }\n        typeName = undefined;\n      }\n\n      if (method) {\n        typeName = object;\n        methodName = method;\n      }\n\n      if (method === '<anonymous>') {\n        methodName = undefined;\n        functionName = undefined;\n      }\n\n      if (functionName === undefined) {\n        methodName = methodName || UNKNOWN_FUNCTION;\n        functionName = typeName ? `${typeName}.${methodName}` : methodName;\n      }\n\n      let filename = normalizeStackTracePath(lineMatch[2]);\n      const isNative = lineMatch[5] === 'native';\n\n      if (!filename && lineMatch[5] && !isNative) {\n        filename = lineMatch[5];\n      }\n\n      const maybeDecodedFilename = filename ? _safeDecodeURI(filename) : undefined;\n      return {\n        filename: maybeDecodedFilename ?? filename,\n        module: maybeDecodedFilename && getModule?.(maybeDecodedFilename),\n        function: functionName,\n        lineno: _parseIntOrUndefined(lineMatch[3]),\n        colno: _parseIntOrUndefined(lineMatch[4]),\n        in_app: filenameIsInApp(filename || '', isNative),\n      };\n    }\n\n    if (line.match(FILENAME_MATCH)) {\n      return {\n        filename: line,\n      };\n    }\n\n    return undefined;\n  };\n}\n\n/**\n * Node.js stack line parser\n *\n * This is in @sentry/core so it can be used from the Electron SDK in the browser for when `nodeIntegration == true`.\n * This allows it to be used without referencing or importing any node specific code which causes bundlers to complain\n */\nexport function nodeStackLineParser(getModule?: GetModuleFn): StackLineParser {\n  return [90, node(getModule)];\n}\n\nfunction _parseIntOrUndefined(input: string | undefined): number | undefined {\n  return parseInt(input || '', 10) || undefined;\n}\n\nfunction _safeDecodeURI(filename: string): string | undefined {\n  try {\n    return decodeURI(filename);\n  } catch {\n    return undefined;\n  }\n}\n","import { consoleSandbox } from './debug-logger';\n\n/**\n * Environment variables that CI and hosting providers set to the commit being built, in the order\n * release detection checks them. The list is in approximate alpha order, separated into 3 categories:\n * 1. Git providers\n * 2. CI providers with specific environment variables (has the provider name in the variable name)\n * 3. CI providers with generic environment variables (checked for last to prevent possible false positives)\n */\nconst COMMIT_ENV_VARS = [\n  // 1. Git providers\n  // GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables\n  'GITHUB_SHA',\n  // GitLab CI - https://docs.gitlab.com/ee/ci/variables/predefined_variables.html\n  // Woodpecker CI also sets CI_COMMIT_SHA - https://woodpecker-ci.org/docs/usage/environment\n  'CI_MERGE_REQUEST_SOURCE_BRANCH_SHA',\n  'CI_BUILD_REF',\n  'CI_COMMIT_SHA',\n  // Bitbucket - https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/\n  'BITBUCKET_COMMIT',\n\n  // 2. CI providers with specific environment variables\n  // AppVeyor - https://www.appveyor.com/docs/environment-variables/\n  'APPVEYOR_PULL_REQUEST_HEAD_COMMIT',\n  'APPVEYOR_REPO_COMMIT',\n  // AWS CodeBuild - https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html\n  'CODEBUILD_RESOLVED_SOURCE_VERSION',\n  // AWS Amplify - https://docs.aws.amazon.com/amplify/latest/userguide/environment-variables.html\n  'AWS_COMMIT_ID',\n  // Azure Pipelines - https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml\n  'BUILD_SOURCEVERSION',\n  // Bitrise - https://devcenter.bitrise.io/builds/available-environment-variables/\n  'GIT_CLONE_COMMIT_HASH',\n  // Buddy CI - https://buddy.works/docs/pipelines/environment-variables#default-environment-variables\n  'BUDDY_EXECUTION_REVISION',\n  // Builtkite - https://buildkite.com/docs/pipelines/environment-variables\n  'BUILDKITE_COMMIT',\n  // CircleCI - https://circleci.com/docs/variables/\n  'CIRCLE_SHA1',\n  // Cirrus CI - https://cirrus-ci.org/guide/writing-tasks/#environment-variables\n  'CIRRUS_CHANGE_IN_REPO',\n  // Codefresh - https://codefresh.io/docs/docs/codefresh-yaml/variables/\n  'CF_REVISION',\n  // Codemagic - https://docs.codemagic.io/yaml-basic-configuration/environment-variables/\n  'CM_COMMIT',\n  // Cloudflare Pages - https://developers.cloudflare.com/pages/platform/build-configuration/#environment-variables\n  'CF_PAGES_COMMIT_SHA',\n  // Drone - https://docs.drone.io/pipeline/environment/reference/\n  'DRONE_COMMIT_SHA',\n  // Flightcontrol - https://www.flightcontrol.dev/docs/guides/flightcontrol/environment-variables#built-in-environment-variables\n  'FC_GIT_COMMIT_SHA',\n  // Heroku #1 https://devcenter.heroku.com/articles/heroku-ci\n  'HEROKU_TEST_RUN_COMMIT_VERSION',\n  // Heroku #2 https://devcenter.heroku.com/articles/dyno-metadata#dyno-metadata\n  'HEROKU_BUILD_COMMIT',\n  // Heroku #3 (deprecated by Heroku, kept for backward compatibility)\n  'HEROKU_SLUG_COMMIT',\n  // Railway - https://docs.railway.app/reference/variables#git-variables\n  'RAILWAY_GIT_COMMIT_SHA',\n  // Render - https://render.com/docs/environment-variables\n  'RENDER_GIT_COMMIT',\n  // Semaphore CI - https://docs.semaphoreci.com/ci-cd-environment/environment-variables\n  'SEMAPHORE_GIT_SHA',\n  // TravisCI - https://docs.travis-ci.com/user/environment-variables/#default-environment-variables\n  'TRAVIS_PULL_REQUEST_SHA',\n  // Vercel - https://vercel.com/docs/v2/build-step#system-environment-variables\n  'VERCEL_GIT_COMMIT_SHA',\n  'VERCEL_GITHUB_COMMIT_SHA',\n  'VERCEL_GITLAB_COMMIT_SHA',\n  'VERCEL_BITBUCKET_COMMIT_SHA',\n  // Zeit (now known as Vercel)\n  'ZEIT_GITHUB_COMMIT_SHA',\n  'ZEIT_GITLAB_COMMIT_SHA',\n  'ZEIT_BITBUCKET_COMMIT_SHA',\n\n  // 3. CI providers with generic environment variables\n  // CloudBees CodeShip - https://docs.cloudbees.com/docs/cloudbees-codeship/latest/pro-builds-and-configuration/environment-variables\n  'CI_COMMIT_ID',\n  // Coolify - https://coolify.io/docs/knowledge-base/environment-variables\n  'SOURCE_COMMIT',\n  // Heroku #4 https://devcenter.heroku.com/changelog-items/630\n  'SOURCE_VERSION',\n  // Jenkins - https://plugins.jenkins.io/git/#environment-variables\n  'GIT_COMMIT',\n  // Netlify - https://docs.netlify.com/configure-builds/environment-variables/#build-metadata\n  'COMMIT_REF',\n  // TeamCity - https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html\n  'BUILD_VCS_NUMBER',\n] as const;\n\n/** Called with the name of a commit environment variable whose value is its own name. */\nexport type PlaceholderCommitEnvVarHandler = (name: string) => void;\n\nfunction warnAboutPlaceholderCommitEnvVar(name: string): void {\n  consoleSandbox(() => {\n    // eslint-disable-next-line no-console\n    console.warn(\n      `[Sentry] Ignoring the ${name} environment variable as a release name, because its value is its own name. Set the release explicitly, or fix the variable in your build environment.`,\n    );\n  });\n}\n\n/**\n * Reads an environment variable that should hold a commit SHA. A value that is the variable's own\n * name, such as `VERCEL_GIT_COMMIT_SHA=VERCEL_GIT_COMMIT_SHA`, is ignored: it never changes, so as\n * a release name it would put every build into one release. `onPlaceholder` is called for such a\n * value and warns on the console by default.\n */\nexport function readCommitEnvVar(\n  name: string,\n  onPlaceholder: PlaceholderCommitEnvVarHandler = warnAboutPlaceholderCommitEnvVar,\n): string | undefined {\n  if (typeof process === 'undefined') {\n    return undefined;\n  }\n  const value = process.env[name];\n  if (value?.trim() === name) {\n    onPlaceholder(name);\n    return undefined;\n  }\n  return value || undefined;\n}\n\n/**\n * Returns the commit that CI or the hosting provider is building, read from the first of the known\n * commit environment variables that is set. Variables are read in order and only until one is\n * found, so a placeholder value is only reported when it would otherwise have become the release.\n */\nexport function getReleaseFromCommitEnv(\n  onPlaceholder: PlaceholderCommitEnvVarHandler = warnAboutPlaceholderCommitEnvVar,\n): string | undefined {\n  for (const name of COMMIT_ENV_VARS) {\n    const value = readCommitEnvVar(name, onPlaceholder);\n    if (value) {\n      return value;\n    }\n  }\n  return undefined;\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @since 1.0.0\n */\nexport type DiagLogFunction = (message: string, ...args: unknown[]) => void;\n\n/**\n * Defines an internal diagnostic logger interface which is used to log internal diagnostic\n * messages, you can set the default diagnostic logger via the {@link DiagAPI} setLogger function.\n * API provided implementations include :-\n * - a No-Op {@link createNoopDiagLogger}\n * - a {@link DiagLogLevel} filtering wrapper {@link createLogLevelDiagLogger}\n * - a general Console {@link DiagConsoleLogger} version.\n *\n * @since 1.0.0\n */\nexport interface DiagLogger {\n  /** Log an error scenario that was not expected and caused the requested operation to fail. */\n  error: DiagLogFunction;\n\n  /**\n   * Log a warning scenario to inform the developer of an issues that should be investigated.\n   * The requested operation may or may not have succeeded or completed.\n   */\n  warn: DiagLogFunction;\n\n  /**\n   * Log a general informational message, this should not affect functionality.\n   * This is also the default logging level so this should NOT be used for logging\n   * debugging level information.\n   */\n  info: DiagLogFunction;\n\n  /**\n   * Log a general debug message that can be useful for identifying a failure.\n   * Information logged at this level may include diagnostic details that would\n   * help identify a failure scenario.\n   * For example: Logging the order of execution of async operations.\n   */\n  debug: DiagLogFunction;\n\n  /**\n   * Log a detailed (verbose) trace level logging that can be used to identify failures\n   * where debug level logging would be insufficient, this level of tracing can include\n   * input and output parameters and as such may include PII information passing through\n   * the API. As such it is recommended that this level of tracing should not be enabled\n   * in a production environment.\n   */\n  verbose: DiagLogFunction;\n}\n\n/**\n * Defines the available internal logging levels for the diagnostic logger, the numeric values\n * of the levels are defined to match the original values from the initial LogLevel to avoid\n * compatibility/migration issues for any implementation that assume the numeric ordering.\n *\n * @since 1.0.0\n */\nexport enum DiagLogLevel {\n  /** Diagnostic Logging level setting to disable all logging (except and forced logs) */\n  NONE = 0,\n\n  /** Identifies an error scenario */\n  ERROR = 30,\n\n  /** Identifies a warning scenario */\n  WARN = 50,\n\n  /** General informational log message */\n  INFO = 60,\n\n  /** General debug log message */\n  DEBUG = 70,\n\n  /**\n   * Detailed trace level logging should only be used for development, should only be set\n   * in a development environment.\n   */\n  VERBOSE = 80,\n\n  /** Used to set the logging level to include all logging */\n  ALL = 9999,\n}\n\n/**\n * Defines options for ComponentLogger\n *\n * @since 1.0.0\n */\nexport interface ComponentLoggerOptions {\n  namespace: string;\n}\n\n/**\n * @since 1.4.1\n */\nexport interface DiagLoggerOptions {\n  /**\n   * The {@link DiagLogLevel} used to filter logs sent to the logger.\n   *\n   * @defaultValue DiagLogLevel.INFO\n   */\n  logLevel?: DiagLogLevel;\n\n  /**\n   * Setting this value to `true` will suppress the warning message normally emitted when registering a logger when another logger is already registered.\n   */\n  suppressOverrideMessage?: boolean;\n}\n\nexport interface DiagLoggerApi {\n  /**\n   * Set the global DiagLogger and DiagLogLevel.\n   * If a global diag logger is already set, this will override it.\n   *\n   * @param logger - The {@link DiagLogger} instance to set as the default logger.\n   * @param options - A {@link DiagLoggerOptions} object. If not provided, default values will be set.\n   * @returns `true` if the logger was successfully registered, else `false`\n   */\n  setLogger(logger: DiagLogger, options?: DiagLoggerOptions): boolean;\n\n  /**\n   *\n   * @param logger - The {@link DiagLogger} instance to set as the default logger.\n   * @param logLevel - The {@link DiagLogLevel} used to filter logs sent to the logger. If not provided it will default to {@link DiagLogLevel.INFO}.\n   * @returns `true` if the logger was successfully registered, else `false`\n   */\n  setLogger(logger: DiagLogger, logLevel?: DiagLogLevel): boolean;\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '1.10.0';\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { VERSION } from '../version';\n\nconst re = /^(\\d+)\\.(\\d+)\\.(\\d+)(-(.+))?$/;\n\n/**\n * Create a function to test an API version to see if it is compatible with the provided ownVersion.\n *\n * The returned function has the following semantics:\n * - Exact match is always compatible\n * - Major versions must match exactly\n *    - 1.x package cannot use global 2.x package\n *    - 2.x package cannot use global 1.x package\n * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n *    - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n *    - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n * - Patch and build tag differences are not considered at this time\n *\n * @param ownVersion version which should be checked against\n */\nexport function _makeCompatibilityCheck(\n  ownVersion: string\n): (globalVersion: string) => boolean {\n  const acceptedVersions = new Set<string>([ownVersion]);\n  const rejectedVersions = new Set<string>();\n\n  const myVersionMatch = ownVersion.match(re);\n  if (!myVersionMatch) {\n    // we cannot guarantee compatibility so we always return noop\n    return () => false;\n  }\n\n  const ownVersionParsed = {\n    major: +myVersionMatch[1],\n    minor: +myVersionMatch[2],\n    patch: +myVersionMatch[3],\n    prerelease: myVersionMatch[4],\n  };\n\n  // if ownVersion has a prerelease tag, versions must match exactly\n  if (ownVersionParsed.prerelease != null) {\n    return function isExactmatch(globalVersion: string): boolean {\n      return globalVersion === ownVersion;\n    };\n  }\n\n  function _reject(v: string) {\n    rejectedVersions.add(v);\n    return false;\n  }\n\n  function _accept(v: string) {\n    acceptedVersions.add(v);\n    return true;\n  }\n\n  return function isCompatible(globalVersion: string): boolean {\n    if (acceptedVersions.has(globalVersion)) {\n      return true;\n    }\n\n    if (rejectedVersions.has(globalVersion)) {\n      return false;\n    }\n\n    const globalVersionMatch = globalVersion.match(re);\n    if (!globalVersionMatch) {\n      // cannot parse other version\n      // we cannot guarantee compatibility so we always noop\n      return _reject(globalVersion);\n    }\n\n    const globalVersionParsed = {\n      major: +globalVersionMatch[1],\n      minor: +globalVersionMatch[2],\n      patch: +globalVersionMatch[3],\n      prerelease: globalVersionMatch[4],\n    };\n\n    // if globalVersion has a prerelease tag, versions must match exactly\n    if (globalVersionParsed.prerelease != null) {\n      return _reject(globalVersion);\n    }\n\n    // major versions must match\n    if (ownVersionParsed.major !== globalVersionParsed.major) {\n      return _reject(globalVersion);\n    }\n\n    if (ownVersionParsed.major === 0) {\n      if (\n        ownVersionParsed.minor === globalVersionParsed.minor &&\n        ownVersionParsed.patch <= globalVersionParsed.patch\n      ) {\n        return _accept(globalVersion);\n      }\n\n      return _reject(globalVersion);\n    }\n\n    if (ownVersionParsed.minor <= globalVersionParsed.minor) {\n      return _accept(globalVersion);\n    }\n\n    return _reject(globalVersion);\n  };\n}\n\n/**\n * Test an API version to see if it is compatible with this API.\n *\n * - Exact match is always compatible\n * - Major versions must match exactly\n *    - 1.x package cannot use global 2.x package\n *    - 2.x package cannot use global 1.x package\n * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n *    - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n *    - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n * - Patch and build tag differences are not considered at this time\n *\n * @param version version of the API requesting an instance of the global API\n */\nexport const isCompatible = _makeCompatibilityCheck(VERSION);\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { MeterProvider } from '../metrics/MeterProvider';\nimport type { LoggerProvider } from '../logs/LoggerProvider';\nimport type { ContextManager } from '../context/types';\nimport type { DiagLogger } from '../diag/types';\nimport type { TextMapPropagator } from '../propagation/TextMapPropagator';\nimport type { TracerProvider } from '../trace/tracer_provider';\nimport { VERSION } from '../version';\nimport { isCompatible } from './semver';\n\nconst major = VERSION.split('.')[0];\nconst GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(\n  `opentelemetry.js.api.${major}`\n);\n\ndeclare const self: unknown;\ndeclare const window: unknown;\ndeclare const global: unknown;\n\nconst _global = (\n  typeof globalThis === 'object'\n    ? globalThis\n    : typeof self === 'object'\n      ? self\n      : typeof window === 'object'\n        ? window\n        : typeof global === 'object'\n          ? global\n          : {}\n) as OTelGlobal;\n\nfunction _makeGlobalApi(): OTelGlobalAPI {\n  // The version property is sealed (non-writable, non-configurable) so it stays\n  // constant for the api object's lifetime. getGlobal caches its compatibility\n  // check per api-object identity and relies on that invariant.\n  return Object.defineProperty({} as OTelGlobalAPI, 'version', {\n    value: VERSION,\n    enumerable: true,\n    writable: false,\n    configurable: false,\n  });\n}\n\nexport function registerGlobal<Type extends keyof OTelGlobalAPI>(\n  type: Type,\n  instance: OTelGlobalAPI[Type],\n  diag: DiagLogger,\n  allowOverride = false\n): boolean {\n  const api = (_global[GLOBAL_OPENTELEMETRY_API_KEY] =\n    _global[GLOBAL_OPENTELEMETRY_API_KEY] ?? _makeGlobalApi());\n\n  if (!allowOverride && api[type]) {\n    // already registered an API of this type\n    const err = new Error(\n      `@opentelemetry/api: Attempted duplicate registration of API: ${type}`\n    );\n    diag.error(err.stack || err.message);\n    return false;\n  }\n\n  if (api.version !== VERSION) {\n    // All registered APIs must be of the same version exactly\n    const err = new Error(\n      `@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${VERSION}`\n    );\n    diag.error(err.stack || err.message);\n    return false;\n  }\n\n  api[type] = instance;\n  diag.debug(\n    `@opentelemetry/api: Registered a global for ${type} v${VERSION}.`\n  );\n\n  return true;\n}\n\n// The api object whose compatibility has already been verified. Its version is\n// sealed at registerGlobal, so a full compatibility check is only needed when\n// the object identity changes, letting the steady-state hot path skip it.\nlet _compatibleGlobalApi: OTelGlobalAPI | undefined;\n\nexport function getGlobal<Type extends keyof OTelGlobalAPI>(\n  type: Type\n): OTelGlobalAPI[Type] | undefined {\n  const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n  if (api == null) {\n    return;\n  }\n  if (api !== _compatibleGlobalApi) {\n    // A new api object has been registered since the last time we checked, so\n    // verify its compatibility again.\n    if (!api.version || !isCompatible(api.version)) {\n      return;\n    }\n    _compatibleGlobalApi = api;\n  }\n  return api[type];\n}\n\nexport function unregisterGlobal(type: keyof OTelGlobalAPI, diag: DiagLogger) {\n  diag.debug(\n    `@opentelemetry/api: Unregistering a global for ${type} v${VERSION}.`\n  );\n  const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n\n  if (api) {\n    delete api[type];\n  }\n}\n\ntype OTelGlobal = {\n  [GLOBAL_OPENTELEMETRY_API_KEY]?: OTelGlobalAPI;\n};\n\ntype OTelGlobalAPI = {\n  version: string;\n\n  diag?: DiagLogger;\n  trace?: TracerProvider;\n  context?: ContextManager;\n  metrics?: MeterProvider;\n  logs?: LoggerProvider;\n  propagation?: TextMapPropagator;\n};\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getGlobal } from '../internal/global-utils';\nimport type { ComponentLoggerOptions, DiagLogger } from './types';\n\n/**\n * Component Logger which is meant to be used as part of any component which\n * will add automatically additional namespace in front of the log message.\n * It will then forward all message to global diag logger\n * @example\n * const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });\n * cLogger.debug('test');\n * // @opentelemetry/instrumentation-http test\n */\nexport class DiagComponentLogger implements DiagLogger {\n  private _namespace: string;\n\n  constructor(props: ComponentLoggerOptions) {\n    this._namespace = props.namespace || 'DiagComponentLogger';\n  }\n\n  public debug(...args: unknown[]): void {\n    return logProxy('debug', this._namespace, args);\n  }\n\n  public error(...args: unknown[]): void {\n    return logProxy('error', this._namespace, args);\n  }\n\n  public info(...args: unknown[]): void {\n    return logProxy('info', this._namespace, args);\n  }\n\n  public warn(...args: unknown[]): void {\n    return logProxy('warn', this._namespace, args);\n  }\n\n  public verbose(...args: unknown[]): void {\n    return logProxy('verbose', this._namespace, args);\n  }\n}\n\nfunction logProxy(\n  funcName: keyof DiagLogger,\n  namespace: string,\n  args: unknown[]\n): void {\n  const logger = getGlobal('diag');\n  // shortcut if logger not set\n  if (!logger) {\n    return;\n  }\n\n  return logger[funcName](namespace, ...args);\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { DiagLogFunction, DiagLogger } from '../types';\nimport { DiagLogLevel } from '../types';\n\nexport function createLogLevelDiagLogger(\n  maxLevel: DiagLogLevel,\n  logger: DiagLogger\n): DiagLogger {\n  if (maxLevel < DiagLogLevel.NONE) {\n    maxLevel = DiagLogLevel.NONE;\n  } else if (maxLevel > DiagLogLevel.ALL) {\n    maxLevel = DiagLogLevel.ALL;\n  }\n\n  // In case the logger is null or undefined\n  logger = logger || {};\n\n  function _filterFunc(\n    funcName: keyof DiagLogger,\n    theLevel: DiagLogLevel\n  ): DiagLogFunction {\n    const theFunc = logger[funcName];\n\n    if (typeof theFunc === 'function' && maxLevel >= theLevel) {\n      return theFunc.bind(logger);\n    }\n    return function () {};\n  }\n\n  return {\n    error: _filterFunc('error', DiagLogLevel.ERROR),\n    warn: _filterFunc('warn', DiagLogLevel.WARN),\n    info: _filterFunc('info', DiagLogLevel.INFO),\n    debug: _filterFunc('debug', DiagLogLevel.DEBUG),\n    verbose: _filterFunc('verbose', DiagLogLevel.VERBOSE),\n  };\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DiagComponentLogger } from '../diag/ComponentLogger';\nimport { createLogLevelDiagLogger } from '../diag/internal/logLevelLogger';\nimport type {\n  ComponentLoggerOptions,\n  DiagLogFunction,\n  DiagLogger,\n  DiagLoggerApi,\n} from '../diag/types';\nimport { DiagLogLevel } from '../diag/types';\nimport {\n  getGlobal,\n  registerGlobal,\n  unregisterGlobal,\n} from '../internal/global-utils';\n\nconst API_NAME = 'diag';\n\n/**\n * Singleton object which represents the entry point to the OpenTelemetry internal\n * diagnostic API\n *\n * @since 1.0.0\n */\nexport class DiagAPI implements DiagLogger, DiagLoggerApi {\n  private static _instance?: DiagAPI;\n\n  /** Get the singleton instance of the DiagAPI API */\n  public static instance(): DiagAPI {\n    if (!this._instance) {\n      this._instance = new DiagAPI();\n    }\n\n    return this._instance;\n  }\n\n  /**\n   * Private internal constructor\n   * @private\n   */\n  private constructor() {\n    function _logProxy(funcName: keyof DiagLogger): DiagLogFunction {\n      return function (...args) {\n        const logger = getGlobal('diag');\n        // shortcut if logger not set\n        if (!logger) return;\n        return logger[funcName](...args);\n      };\n    }\n\n    // Using self local variable for minification purposes as 'this' cannot be minified\n    const self = this;\n\n    // DiagAPI specific functions\n\n    const setLogger: DiagLoggerApi['setLogger'] = (\n      logger,\n      optionsOrLogLevel = { logLevel: DiagLogLevel.INFO }\n    ) => {\n      if (logger === self) {\n        // There isn't much we can do here.\n        // Logging to the console might break the user application.\n        // Try to log to self. If a logger was previously registered it will receive the log.\n        const err = new Error(\n          'Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation'\n        );\n        self.error(err.stack ?? err.message);\n        return false;\n      }\n\n      if (typeof optionsOrLogLevel === 'number') {\n        optionsOrLogLevel = {\n          logLevel: optionsOrLogLevel,\n        };\n      }\n\n      const oldLogger = getGlobal('diag');\n      const newLogger = createLogLevelDiagLogger(\n        optionsOrLogLevel.logLevel ?? DiagLogLevel.INFO,\n        logger\n      );\n      // There already is an logger registered. We'll let it know before overwriting it.\n      if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {\n        const stack = new Error().stack ?? '<failed to generate stacktrace>';\n        oldLogger.warn(`Current logger will be overwritten from ${stack}`);\n        newLogger.warn(\n          `Current logger will overwrite one already registered from ${stack}`\n        );\n      }\n\n      return registerGlobal('diag', newLogger, self, true);\n    };\n\n    self.setLogger = setLogger;\n\n    self.disable = () => {\n      unregisterGlobal(API_NAME, self);\n    };\n\n    self.createComponentLogger = (options: ComponentLoggerOptions) => {\n      return new DiagComponentLogger(options);\n    };\n\n    self.verbose = _logProxy('verbose');\n    self.debug = _logProxy('debug');\n    self.info = _logProxy('info');\n    self.warn = _logProxy('warn');\n    self.error = _logProxy('error');\n  }\n\n  public setLogger!: DiagLoggerApi['setLogger'];\n  /**\n   *\n   */\n  public createComponentLogger!: (\n    options: ComponentLoggerOptions\n  ) => DiagLogger;\n\n  // DiagLogger implementation\n  public verbose!: DiagLogFunction;\n  public debug!: DiagLogFunction;\n  public info!: DiagLogFunction;\n  public warn!: DiagLogFunction;\n  public error!: DiagLogFunction;\n\n  /**\n   * Unregister the global logger and return to Noop\n   */\n  public disable!: () => void;\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Baggage, BaggageEntry } from '../types';\n\nexport class BaggageImpl implements Baggage {\n  private _entries: Map<string, BaggageEntry>;\n\n  constructor(entries?: Map<string, BaggageEntry>) {\n    this._entries = entries ? new Map(entries) : new Map();\n  }\n\n  getEntry(key: string): BaggageEntry | undefined {\n    const entry = this._entries.get(key);\n    if (!entry) {\n      return undefined;\n    }\n\n    return Object.assign({}, entry);\n  }\n\n  getAllEntries(): [string, BaggageEntry][] {\n    return Array.from(this._entries.entries());\n  }\n\n  setEntry(key: string, entry: BaggageEntry): BaggageImpl {\n    const newBaggage = new BaggageImpl(this._entries);\n    newBaggage._entries.set(key, entry);\n    return newBaggage;\n  }\n\n  removeEntry(key: string): BaggageImpl {\n    const newBaggage = new BaggageImpl(this._entries);\n    newBaggage._entries.delete(key);\n    return newBaggage;\n  }\n\n  removeEntries(...keys: string[]): BaggageImpl {\n    const newBaggage = new BaggageImpl(this._entries);\n    for (const key of keys) {\n      newBaggage._entries.delete(key);\n    }\n    return newBaggage;\n  }\n\n  clear(): BaggageImpl {\n    return new BaggageImpl();\n  }\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DiagAPI } from '../api/diag';\nimport { BaggageImpl } from './internal/baggage-impl';\nimport { baggageEntryMetadataSymbol } from './internal/symbol';\nimport type { Baggage, BaggageEntry, BaggageEntryMetadata } from './types';\n\nconst diag = DiagAPI.instance();\n\n/**\n * Create a new Baggage with optional entries\n *\n * @param entries An array of baggage entries the new baggage should contain\n */\nexport function createBaggage(\n  entries: Record<string, BaggageEntry> = {}\n): Baggage {\n  return new BaggageImpl(new Map(Object.entries(entries)));\n}\n\n/**\n * Create a serializable BaggageEntryMetadata object from a string.\n *\n * @param str string metadata. Format is currently not defined by the spec and has no special meaning.\n *\n * @since 1.0.0\n */\nexport function baggageEntryMetadataFromString(\n  str: string\n): BaggageEntryMetadata {\n  if (typeof str !== 'string') {\n    diag.error(\n      `Cannot create baggage metadata from unknown type: ${typeof str}`\n    );\n    str = '';\n  }\n\n  return {\n    __TYPE__: baggageEntryMetadataSymbol,\n    toString() {\n      return str;\n    },\n  };\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from './types';\n\n/**\n * Get a key to uniquely identify a context value\n *\n * @since 1.0.0\n */\nexport function createContextKey(description: string) {\n  // The specification states that for the same input, multiple calls should\n  // return different keys. Due to the nature of the JS dependency management\n  // system, this creates problems where multiple versions of some package\n  // could hold different keys for the same property.\n  //\n  // Therefore, we use Symbol.for which returns the same key for the same input.\n  return Symbol.for(description);\n}\n\nclass BaseContext implements Context {\n  private _currentContext!: Map<symbol, unknown>;\n\n  /**\n   * Construct a new context which inherits values from an optional parent context.\n   *\n   * @param parentContext a context from which to inherit values\n   */\n  constructor(parentContext?: Map<symbol, unknown>) {\n    // for minification\n    const self = this;\n\n    self._currentContext = parentContext ? new Map(parentContext) : new Map();\n\n    self.getValue = (key: symbol) => self._currentContext.get(key);\n\n    self.setValue = (key: symbol, value: unknown): Context => {\n      const context = new BaseContext(self._currentContext);\n      context._currentContext.set(key, value);\n      return context;\n    };\n\n    self.deleteValue = (key: symbol): Context => {\n      const context = new BaseContext(self._currentContext);\n      context._currentContext.delete(key);\n      return context;\n    };\n  }\n\n  /**\n   * Get a value from the context.\n   *\n   * @param key key which identifies a context value\n   */\n  public getValue!: (key: symbol) => unknown;\n\n  /**\n   * Create a new context which inherits from this context and has\n   * the given key set to the given value.\n   *\n   * @param key context key for which to set the value\n   * @param value value to set for the given key\n   */\n  public setValue!: (key: symbol, value: unknown) => Context;\n\n  /**\n   * Return a new context which inherits from this context but does\n   * not contain a value for the given key.\n   *\n   * @param key context key for which to clear a value\n   */\n  public deleteValue!: (key: symbol) => Context;\n}\n\n/**\n * The root context is used as the default parent context when there is no active context\n *\n * @since 1.0.0\n */\nexport const ROOT_CONTEXT: Context = new BaseContext();\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '../context/types';\n\n/**\n * Injects `Context` into and extracts it from carriers that travel\n * in-band across process boundaries. Encoding is expected to conform to the\n * HTTP Header Field semantics. Values are often encoded as RPC/HTTP request\n * headers.\n *\n * The carrier of propagated data on both the client (injector) and server\n * (extractor) side is usually an object such as http headers. Propagation is\n * usually implemented via library-specific request interceptors, where the\n * client-side injects values and the server-side extracts them.\n *\n * @since 1.0.0\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport interface TextMapPropagator<Carrier = any> {\n  /**\n   * Injects values from a given `Context` into a carrier.\n   *\n   * OpenTelemetry defines a common set of format values (TextMapPropagator),\n   * and each has an expected `carrier` type.\n   *\n   * @param context the Context from which to extract values to transmit over\n   *     the wire.\n   * @param carrier the carrier of propagation fields, such as http request\n   *     headers.\n   * @param setter an optional {@link TextMapSetter}. If undefined, values will be\n   *     set by direct object assignment.\n   */\n  inject(\n    context: Context,\n    carrier: Carrier,\n    setter: TextMapSetter<Carrier>\n  ): void;\n\n  /**\n   * Given a `Context` and a carrier, extract context values from a\n   * carrier and return a new context, created from the old context, with the\n   * extracted values.\n   *\n   * @param context the Context from which to extract values to transmit over\n   *     the wire.\n   * @param carrier the carrier of propagation fields, such as http request\n   *     headers.\n   * @param getter an optional {@link TextMapGetter}. If undefined, keys will be all\n   *     own properties, and keys will be accessed by direct object access.\n   */\n  extract(\n    context: Context,\n    carrier: Carrier,\n    getter: TextMapGetter<Carrier>\n  ): Context;\n\n  /**\n   * Return a list of all fields which may be used by the propagator.\n   */\n  fields(): string[];\n}\n\n/**\n * A setter is specified by the caller to define a specific method\n * to set key/value pairs on the carrier within a propagator\n *\n * @since 1.0.0\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport interface TextMapSetter<Carrier = any> {\n  /**\n   * Callback used to set a key/value pair on an object.\n   *\n   * Should be called by the propagator each time a key/value pair\n   * should be set, and should set that key/value pair on the propagator.\n   *\n   * @param carrier object or class which carries key/value pairs\n   * @param key string key to modify\n   * @param value value to be set to the key on the carrier\n   */\n  set(carrier: Carrier, key: string, value: string): void;\n}\n\n/**\n * A getter is specified by the caller to define a specific method\n * to get the value of a key from a carrier.\n *\n * @since 1.0.0\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport interface TextMapGetter<Carrier = any> {\n  /**\n   * Get a list of all keys available on the carrier.\n   *\n   * @param carrier\n   */\n  keys(carrier: Carrier): string[];\n\n  /**\n   * Get the value of a specific key from the carrier.\n   *\n   * @param carrier\n   * @param key\n   */\n  get(carrier: Carrier, key: string): undefined | string | string[];\n}\n\n/**\n * @since 1.0.0\n */\nexport const defaultTextMapGetter: TextMapGetter = {\n  get(carrier, key) {\n    if (carrier == null) {\n      return undefined;\n    }\n    return carrier[key];\n  },\n\n  keys(carrier) {\n    if (carrier == null) {\n      return [];\n    }\n    return Object.keys(carrier);\n  },\n};\n\n/**\n * @since 1.0.0\n */\nexport const defaultTextMapSetter: TextMapSetter = {\n  set(carrier, key, value) {\n    if (carrier == null) {\n      return;\n    }\n\n    carrier[key] = value;\n  },\n};\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @since 1.0.0\n */\nexport enum TraceFlags {\n  /** Represents no flag set. */\n  NONE = 0x0,\n  /** Bit to represent whether trace is sampled in trace flags. */\n  SAMPLED = 0x1 << 0,\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { SpanContext } from './span_context';\nimport { TraceFlags } from './trace_flags';\n\n/**\n * @since 1.0.0\n */\nexport const INVALID_SPANID = '0000000000000000';\n\n/**\n * @since 1.0.0\n */\nexport const INVALID_TRACEID = '00000000000000000000000000000000';\n\n/**\n * @since 1.0.0\n */\nexport const INVALID_SPAN_CONTEXT: SpanContext = {\n  traceId: INVALID_TRACEID,\n  spanId: INVALID_SPANID,\n  traceFlags: TraceFlags.NONE,\n};\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Exception } from '../common/Exception';\nimport type { TimeInput } from '../common/Time';\nimport type { SpanAttributes } from './attributes';\nimport { INVALID_SPAN_CONTEXT } from './invalid-span-constants';\nimport type { Span } from './span';\nimport type { SpanContext } from './span_context';\nimport type { SpanStatus } from './status';\nimport type { Link } from './link';\n\n/**\n * The NonRecordingSpan is the default {@link Span} that is used when no Span\n * implementation is available. All operations are no-op including context\n * propagation.\n */\nexport class NonRecordingSpan implements Span {\n  private readonly _spanContext: SpanContext;\n\n  constructor(spanContext: SpanContext = INVALID_SPAN_CONTEXT) {\n    this._spanContext = spanContext;\n  }\n\n  // Returns a SpanContext.\n  spanContext(): SpanContext {\n    return this._spanContext;\n  }\n\n  // By default does nothing\n  setAttribute(_key: string, _value: unknown): this {\n    return this;\n  }\n\n  // By default does nothing\n  setAttributes(_attributes: SpanAttributes): this {\n    return this;\n  }\n\n  // By default does nothing\n  addEvent(_name: string, _attributes?: SpanAttributes): this {\n    return this;\n  }\n\n  addLink(_link: Link): this {\n    return this;\n  }\n\n  addLinks(_links: Link[]): this {\n    return this;\n  }\n\n  // By default does nothing\n  setStatus(_status: SpanStatus): this {\n    return this;\n  }\n\n  // By default does nothing\n  updateName(_name: string): this {\n    return this;\n  }\n\n  // By default does nothing\n  end(_endTime?: TimeInput): void {}\n\n  // isRecording always returns false for NonRecordingSpan.\n  isRecording(): boolean {\n    return false;\n  }\n\n  // By default does nothing\n  recordException(_exception: Exception, _time?: TimeInput): void {}\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { INVALID_SPANID, INVALID_TRACEID } from './invalid-span-constants';\nimport { NonRecordingSpan } from './NonRecordingSpan';\nimport type { Span } from './span';\nimport type { SpanContext } from './span_context';\n\n// Valid characters (0-9, a-f, A-F) are marked as 1.\nconst isHex = new Uint8Array([\n  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1,\n  1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,\n  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1,\n]);\n\nfunction isValidHex(id: string, length: number): boolean {\n  // As of 1.9.0 the id was allowed to be a non-string value,\n  // even though it was not possible in the types.\n  if (typeof id !== 'string' || id.length !== length) return false;\n\n  let r = 0;\n  for (let i = 0; i < id.length; i += 4) {\n    r +=\n      (isHex[id.charCodeAt(i)] | 0) +\n      (isHex[id.charCodeAt(i + 1)] | 0) +\n      (isHex[id.charCodeAt(i + 2)] | 0) +\n      (isHex[id.charCodeAt(i + 3)] | 0);\n  }\n\n  return r === length;\n}\n\n/**\n * @since 1.0.0\n */\nexport function isValidTraceId(traceId: string): boolean {\n  return isValidHex(traceId, 32) && traceId !== INVALID_TRACEID;\n}\n\n/**\n * @since 1.0.0\n */\nexport function isValidSpanId(spanId: string): boolean {\n  return isValidHex(spanId, 16) && spanId !== INVALID_SPANID;\n}\n\n/**\n * Returns true if this {@link SpanContext} is valid.\n * @return true if this {@link SpanContext} is valid.\n *\n * @since 1.0.0\n */\nexport function isSpanContextValid(spanContext: SpanContext): boolean {\n  return (\n    isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)\n  );\n}\n\n/**\n * Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n *\n * @param spanContext span context to be wrapped\n * @returns a new non-recording {@link Span} with the provided context\n */\nexport function wrapSpanContext(spanContext: SpanContext): Span {\n  return new NonRecordingSpan(spanContext);\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { ROOT_CONTEXT } from './context';\nimport type * as types from './types';\n\nexport class NoopContextManager implements types.ContextManager {\n  active(): types.Context {\n    return ROOT_CONTEXT;\n  }\n\n  with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(\n    _context: types.Context,\n    fn: F,\n    thisArg?: ThisParameterType<F>,\n    ...args: A\n  ): ReturnType<F> {\n    return fn.call(thisArg, ...args);\n  }\n\n  bind<T>(_context: types.Context, target: T): T {\n    return target;\n  }\n\n  enable(): this {\n    return this;\n  }\n\n  disable(): this {\n    return this;\n  }\n\n  /** @experimental This API is experimental and may change in minor releases without prior notice. */\n  attach(_context: types.Context): types.ContextManagementToken {\n    return { dispose() {} };\n  }\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { NoopContextManager } from '../context/NoopContextManager';\nimport type {\n  Context,\n  ContextManager,\n  ContextManagementToken,\n} from '../context/types';\nimport {\n  getGlobal,\n  registerGlobal,\n  unregisterGlobal,\n} from '../internal/global-utils';\nimport { DiagAPI } from './diag';\n\nconst API_NAME = 'context';\nconst NOOP_CONTEXT_MANAGER = new NoopContextManager();\nconst NOOP_TOKEN: ContextManagementToken = Object.freeze({\n  dispose: () => {},\n});\n\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Context API\n *\n * @since 1.0.0\n */\nexport class ContextAPI {\n  private static _instance?: ContextAPI;\n\n  /**\n   * Tracks whether we have already warned that the active ContextManager does\n   * not implement attach(), so we warn at most once instead of on every call.\n   */\n  private _attachUnsupportedWarned = false;\n\n  /** Empty private constructor prevents end users from constructing a new instance of the API */\n  private constructor() {}\n\n  /** Get the singleton instance of the Context API */\n  public static getInstance(): ContextAPI {\n    if (!this._instance) {\n      this._instance = new ContextAPI();\n    }\n\n    return this._instance;\n  }\n\n  /**\n   * Set the current context manager.\n   *\n   * @returns true if the context manager was successfully registered, else false\n   */\n  public setGlobalContextManager(contextManager: ContextManager): boolean {\n    return registerGlobal(API_NAME, contextManager, DiagAPI.instance());\n  }\n\n  /**\n   * Get the currently active context\n   */\n  public active(): Context {\n    return this._getContextManager().active();\n  }\n\n  /**\n   * Execute a function with an active context\n   *\n   * @param context context to be active during function execution\n   * @param fn function to execute in a context\n   * @param thisArg optional receiver to be used for calling fn\n   * @param args optional arguments forwarded to fn\n   */\n  public with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(\n    context: Context,\n    fn: F,\n    thisArg?: ThisParameterType<F>,\n    ...args: A\n  ): ReturnType<F> {\n    return this._getContextManager().with(context, fn, thisArg, ...args);\n  }\n\n  /**\n   * Bind a context to a target function or event emitter\n   *\n   * @param context context to bind to the event emitter or function. Defaults to the currently active context\n   * @param target function or event emitter to bind\n   */\n  public bind<T>(context: Context, target: T): T {\n    return this._getContextManager().bind(context, target);\n  }\n\n  /**\n   * Imperatively sets `context` as active, returning a {@link ContextManagementToken} whose\n   * {@link ContextManagementToken.dispose} restores the previous context.\n   *\n   * This is a delicate, low-level API - prefer {@link with}/{@link bind}, which\n   * restore context automatically. Use `attach` only to bridge callback\n   * boundaries that `with` cannot wrap. Call `token.dispose()` when the\n   * operation is done.\n   *\n   * **Caveat for async functions:** If called inside an async function before\n   * the first `await`, the context change may leak into the caller's context\n   * and remain active there. Prefer {@link with} for async code.\n   *\n   * Support is best-effort and varies by the active ContextManager (see\n   * {@link ContextManager.attach}); if it does not implement `attach`, this logs\n   * a warning and returns a no-op token.\n   *\n   * @param context The Context to attach\n   * @returns A {@link ContextManagementToken} whose dispose() restores the previous Context\n   * @since 1.10.0\n   * @experimental This API is experimental and may change in minor releases without prior notice.\n   */\n  public attach(context: Context): ContextManagementToken {\n    const contextManager = this._getContextManager();\n    if (contextManager.attach) {\n      return contextManager.attach(context);\n    }\n    if (!this._attachUnsupportedWarned) {\n      this._attachUnsupportedWarned = true;\n      DiagAPI.instance().warn(\n        'The current ContextManager does not implement attach(). The context will not be attached. Use a ContextManager that supports attach() (e.g. AsyncLocalStorageContextManager) or use with()/bind() instead.'\n      );\n    }\n    return NOOP_TOKEN;\n  }\n\n  private _getContextManager(): ContextManager {\n    return getGlobal(API_NAME) || NOOP_CONTEXT_MANAGER;\n  }\n\n  /** Disable and remove the global context manager */\n  public disable() {\n    this._getContextManager().disable();\n    unregisterGlobal(API_NAME, DiagAPI.instance());\n  }\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { createContextKey } from '../context/context';\nimport type { Context } from '../context/types';\nimport type { Span } from './span';\nimport type { SpanContext } from './span_context';\nimport { NonRecordingSpan } from './NonRecordingSpan';\nimport { ContextAPI } from '../api/context';\n\n/**\n * span key\n */\nconst SPAN_KEY = createContextKey('OpenTelemetry Context Key SPAN');\n\n/**\n * Return the span if one exists\n *\n * @param context context to get span from\n */\nexport function getSpan(context: Context): Span | undefined {\n  return (context.getValue(SPAN_KEY) as Span) || undefined;\n}\n\n/**\n * Gets the span from the current context, if one exists.\n */\nexport function getActiveSpan(): Span | undefined {\n  return getSpan(ContextAPI.getInstance().active());\n}\n\n/**\n * Set the span on a context\n *\n * @param context context to use as parent\n * @param span span to set active\n */\nexport function setSpan(context: Context, span: Span): Context {\n  return context.setValue(SPAN_KEY, span);\n}\n\n/**\n * Remove current span stored in the context\n *\n * @param context context to delete span from\n */\nexport function deleteSpan(context: Context): Context {\n  return context.deleteValue(SPAN_KEY);\n}\n\n/**\n * Wrap span context in a NoopSpan and set as span in a new\n * context\n *\n * @param context context to set active span on\n * @param spanContext span context to be wrapped\n */\nexport function setSpanContext(\n  context: Context,\n  spanContext: SpanContext\n): Context {\n  return setSpan(context, new NonRecordingSpan(spanContext));\n}\n\n/**\n * Get the span context of the span if it exists.\n *\n * @param context context to get values from\n */\nexport function getSpanContext(context: Context): SpanContext | undefined {\n  return getSpan(context)?.spanContext();\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { ContextAPI } from '../api/context';\nimport type { Context } from '../context/types';\nimport { getSpanContext, setSpan } from '../trace/context-utils';\nimport { NonRecordingSpan } from './NonRecordingSpan';\nimport type { Span } from './span';\nimport { isSpanContextValid } from './spancontext-utils';\nimport type { SpanOptions } from './SpanOptions';\nimport type { SpanContext } from './span_context';\nimport type { Tracer } from './tracer';\n\nconst contextApi = ContextAPI.getInstance();\n\n/**\n * No-op implementations of {@link Tracer}.\n */\nexport class NoopTracer implements Tracer {\n  // startSpan starts a noop span.\n  startSpan(\n    name: string,\n    options?: SpanOptions,\n    context = contextApi.active()\n  ): Span {\n    const root = Boolean(options?.root);\n    if (root) {\n      return new NonRecordingSpan();\n    }\n\n    const parentFromContext = context && getSpanContext(context);\n\n    if (\n      isSpanContext(parentFromContext) &&\n      isSpanContextValid(parentFromContext)\n    ) {\n      return new NonRecordingSpan(parentFromContext);\n    } else {\n      return new NonRecordingSpan();\n    }\n  }\n\n  startActiveSpan<F extends (span: Span) => ReturnType<F>>(\n    name: string,\n    fn: F\n  ): ReturnType<F>;\n  startActiveSpan<F extends (span: Span) => ReturnType<F>>(\n    name: string,\n    opts: SpanOptions | undefined,\n    fn: F\n  ): ReturnType<F>;\n  startActiveSpan<F extends (span: Span) => ReturnType<F>>(\n    name: string,\n    opts: SpanOptions | undefined,\n    ctx: Context | undefined,\n    fn: F\n  ): ReturnType<F>;\n  startActiveSpan<F extends (span: Span) => ReturnType<F>>(\n    name: string,\n    arg2?: F | SpanOptions,\n    arg3?: F | Context,\n    arg4?: F\n  ): ReturnType<F> | undefined {\n    let opts: SpanOptions | undefined;\n    let ctx: Context | undefined;\n    let fn: F;\n\n    if (arguments.length < 2) {\n      return;\n    } else if (arguments.length === 2) {\n      fn = arg2 as F;\n    } else if (arguments.length === 3) {\n      opts = arg2 as SpanOptions | undefined;\n      fn = arg3 as F;\n    } else {\n      opts = arg2 as SpanOptions | undefined;\n      ctx = arg3 as Context | undefined;\n      fn = arg4 as F;\n    }\n\n    const parentContext = ctx ?? contextApi.active();\n    const span = this.startSpan(name, opts, parentContext);\n    const contextWithSpanSet = setSpan(parentContext, span);\n\n    return contextApi.with(contextWithSpanSet, fn, undefined, span);\n  }\n}\n\nfunction isSpanContext(spanContext: unknown): spanContext is SpanContext {\n  return (\n    spanContext !== null &&\n    typeof spanContext === 'object' &&\n    'spanId' in spanContext &&\n    typeof spanContext['spanId'] === 'string' &&\n    'traceId' in spanContext &&\n    typeof spanContext['traceId'] === 'string' &&\n    'traceFlags' in spanContext &&\n    typeof spanContext['traceFlags'] === 'number'\n  );\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '../context/types';\nimport { NoopTracer } from './NoopTracer';\nimport type { Span } from './span';\nimport type { SpanOptions } from './SpanOptions';\nimport type { Tracer } from './tracer';\nimport type { TracerOptions } from './tracer_options';\n\nconst NOOP_TRACER = new NoopTracer();\n\n/**\n * Proxy tracer provided by the proxy tracer provider\n *\n * @since 1.0.0\n */\nexport class ProxyTracer implements Tracer {\n  // When a real implementation is provided, this will be it\n  private _delegate?: Tracer;\n  private _provider: TracerDelegator;\n  public readonly name: string;\n  public readonly version?: string;\n  /** @since 1.1.0 */\n  public readonly options?: TracerOptions;\n\n  constructor(\n    provider: TracerDelegator,\n    name: string,\n    version?: string,\n    options?: TracerOptions\n  ) {\n    this._provider = provider;\n    this.name = name;\n    this.version = version;\n    this.options = options;\n  }\n\n  startSpan(name: string, options?: SpanOptions, context?: Context): Span {\n    return this._getTracer().startSpan(name, options, context);\n  }\n\n  startActiveSpan<F extends (span: Span) => unknown>(\n    _name: string,\n    _options: F | SpanOptions,\n    _context?: F | Context,\n    _fn?: F\n  ): ReturnType<F> {\n    const tracer = this._getTracer();\n    return Reflect.apply(tracer.startActiveSpan, tracer, arguments);\n  }\n\n  /**\n   * Try to get a tracer from the proxy tracer provider.\n   * If the proxy tracer provider has no delegate, return a noop tracer.\n   */\n  private _getTracer() {\n    if (this._delegate) {\n      return this._delegate;\n    }\n\n    const tracer = this._provider.getDelegateTracer(\n      this.name,\n      this.version,\n      this.options\n    );\n\n    if (!tracer) {\n      return NOOP_TRACER;\n    }\n\n    this._delegate = tracer;\n    return this._delegate;\n  }\n}\n\n/**\n * @since 1.0.3\n */\nexport interface TracerDelegator {\n  getDelegateTracer(\n    name: string,\n    version?: string,\n    options?: TracerOptions\n  ): Tracer | undefined;\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { NoopTracer } from './NoopTracer';\nimport type { Tracer } from './tracer';\nimport type { TracerOptions } from './tracer_options';\nimport type { TracerProvider } from './tracer_provider';\n\n/**\n * An implementation of the {@link TracerProvider} which returns an impotent\n * Tracer for all calls to `getTracer`.\n *\n * All operations are no-op.\n */\nexport class NoopTracerProvider implements TracerProvider {\n  getTracer(\n    _name?: string,\n    _version?: string,\n    _options?: TracerOptions\n  ): Tracer {\n    return new NoopTracer();\n  }\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Tracer } from './tracer';\nimport type { TracerProvider } from './tracer_provider';\nimport { ProxyTracer } from './ProxyTracer';\nimport { NoopTracerProvider } from './NoopTracerProvider';\nimport type { TracerOptions } from './tracer_options';\n\nconst NOOP_TRACER_PROVIDER = new NoopTracerProvider();\n\n/**\n * Tracer provider which provides {@link ProxyTracer}s.\n *\n * Before a delegate is set, tracers provided are NoOp.\n *   When a delegate is set, traces are provided from the delegate.\n *   When a delegate is set after tracers have already been provided,\n *   all tracers already provided will use the provided delegate implementation.\n *\n * @deprecated This will be removed in the next major version.\n * @since 1.0.0\n */\nexport class ProxyTracerProvider implements TracerProvider {\n  private _delegate?: TracerProvider;\n\n  /**\n   * Get a {@link ProxyTracer}\n   */\n  getTracer(name: string, version?: string, options?: TracerOptions): Tracer {\n    return (\n      this.getDelegateTracer(name, version, options) ??\n      new ProxyTracer(this, name, version, options)\n    );\n  }\n\n  getDelegate(): TracerProvider {\n    return this._delegate ?? NOOP_TRACER_PROVIDER;\n  }\n\n  /**\n   * Set the delegate tracer provider\n   */\n  setDelegate(delegate: TracerProvider) {\n    this._delegate = delegate;\n  }\n\n  getDelegateTracer(\n    name: string,\n    version?: string,\n    options?: TracerOptions\n  ): Tracer | undefined {\n    return this._delegate?.getTracer(name, version, options);\n  }\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { ContextAPI } from './api/context';\n/**\n * Entrypoint for context API\n * @since 1.0.0\n */\nexport const context = ContextAPI.getInstance();\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { DiagAPI } from './api/diag';\n/**\n * Entrypoint for Diag API.\n * Defines Diagnostic handler used for internal diagnostic logging operations.\n * The default provides a Noop DiagLogger implementation which may be changed via the\n * diag.setLogger(logger: DiagLogger) function.\n *\n * @since 1.0.0\n */\nexport const diag = DiagAPI.instance();\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '../context/types';\nimport type { TextMapPropagator } from './TextMapPropagator';\n\n/**\n * No-op implementations of {@link TextMapPropagator}.\n */\nexport class NoopTextMapPropagator implements TextMapPropagator {\n  /** Noop inject function does nothing */\n  inject(_context: Context, _carrier: unknown): void {}\n  /** Noop extract function does nothing and returns the input context */\n  extract(context: Context, _carrier: unknown): Context {\n    return context;\n  }\n  fields(): string[] {\n    return [];\n  }\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { ContextAPI } from '../api/context';\nimport { createContextKey } from '../context/context';\nimport type { Context } from '../context/types';\nimport type { Baggage } from './types';\n\n/**\n * Baggage key\n */\nconst BAGGAGE_KEY = createContextKey('OpenTelemetry Baggage Key');\n\n/**\n * Retrieve the current baggage from the given context\n *\n * @param {Context} Context that manage all context values\n * @returns {Baggage} Extracted baggage from the context\n */\nexport function getBaggage(context: Context): Baggage | undefined {\n  return (context.getValue(BAGGAGE_KEY) as Baggage) || undefined;\n}\n\n/**\n * Retrieve the current baggage from the active/current context\n *\n * @returns {Baggage} Extracted baggage from the context\n */\nexport function getActiveBaggage(): Baggage | undefined {\n  return getBaggage(ContextAPI.getInstance().active());\n}\n\n/**\n * Store a baggage in the given context\n *\n * @param {Context} Context that manage all context values\n * @param {Baggage} baggage that will be set in the actual context\n */\nexport function setBaggage(context: Context, baggage: Baggage): Context {\n  return context.setValue(BAGGAGE_KEY, baggage);\n}\n\n/**\n * Delete the baggage stored in the given context\n *\n * @param {Context} Context that manage all context values\n */\nexport function deleteBaggage(context: Context): Context {\n  return context.deleteValue(BAGGAGE_KEY);\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { Context } from '../context/types';\nimport {\n  getGlobal,\n  registerGlobal,\n  unregisterGlobal,\n} from '../internal/global-utils';\nimport { NoopTextMapPropagator } from '../propagation/NoopTextMapPropagator';\nimport type {\n  TextMapGetter,\n  TextMapPropagator,\n  TextMapSetter,\n} from '../propagation/TextMapPropagator';\nimport {\n  defaultTextMapGetter,\n  defaultTextMapSetter,\n} from '../propagation/TextMapPropagator';\nimport {\n  getBaggage,\n  getActiveBaggage,\n  setBaggage,\n  deleteBaggage,\n} from '../baggage/context-helpers';\nimport { createBaggage } from '../baggage/utils';\nimport { DiagAPI } from './diag';\n\nconst API_NAME = 'propagation';\nconst NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator();\n\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Propagation API\n *\n * @since 1.0.0\n */\nexport class PropagationAPI {\n  private static _instance?: PropagationAPI;\n\n  /** Empty private constructor prevents end users from constructing a new instance of the API */\n  private constructor() {}\n\n  /** Get the singleton instance of the Propagator API */\n  public static getInstance(): PropagationAPI {\n    if (!this._instance) {\n      this._instance = new PropagationAPI();\n    }\n\n    return this._instance;\n  }\n\n  /**\n   * Set the current propagator.\n   *\n   * @returns true if the propagator was successfully registered, else false\n   */\n  public setGlobalPropagator(propagator: TextMapPropagator): boolean {\n    return registerGlobal(API_NAME, propagator, DiagAPI.instance());\n  }\n\n  /**\n   * Inject context into a carrier to be propagated inter-process\n   *\n   * @param context Context carrying tracing data to inject\n   * @param carrier carrier to inject context into\n   * @param setter Function used to set values on the carrier\n   */\n  public inject<Carrier>(\n    context: Context,\n    carrier: Carrier,\n    setter: TextMapSetter<Carrier> = defaultTextMapSetter\n  ): void {\n    return this._getGlobalPropagator().inject(context, carrier, setter);\n  }\n\n  /**\n   * Extract context from a carrier\n   *\n   * @param context Context which the newly created context will inherit from\n   * @param carrier Carrier to extract context from\n   * @param getter Function used to extract keys from a carrier\n   */\n  public extract<Carrier>(\n    context: Context,\n    carrier: Carrier,\n    getter: TextMapGetter<Carrier> = defaultTextMapGetter\n  ): Context {\n    return this._getGlobalPropagator().extract(context, carrier, getter);\n  }\n\n  /**\n   * Return a list of all fields which may be used by the propagator.\n   */\n  public fields(): string[] {\n    return this._getGlobalPropagator().fields();\n  }\n\n  /** Remove the global propagator */\n  public disable() {\n    unregisterGlobal(API_NAME, DiagAPI.instance());\n  }\n\n  public createBaggage = createBaggage;\n\n  public getBaggage = getBaggage;\n\n  /** @since 1.4.0 */\n  public getActiveBaggage = getActiveBaggage;\n\n  public setBaggage = setBaggage;\n\n  public deleteBaggage = deleteBaggage;\n\n  private _getGlobalPropagator(): TextMapPropagator {\n    return getGlobal(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR;\n  }\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { PropagationAPI } from './api/propagation';\n/**\n * Entrypoint for propagation API\n *\n * @since 1.0.0\n */\nexport const propagation = PropagationAPI.getInstance();\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {\n  getGlobal,\n  registerGlobal,\n  unregisterGlobal,\n} from '../internal/global-utils';\nimport { ProxyTracerProvider } from '../trace/ProxyTracerProvider';\nimport {\n  isSpanContextValid,\n  wrapSpanContext,\n} from '../trace/spancontext-utils';\nimport type { Tracer } from '../trace/tracer';\nimport type { TracerProvider } from '../trace/tracer_provider';\nimport {\n  deleteSpan,\n  getActiveSpan,\n  getSpan,\n  getSpanContext,\n  setSpan,\n  setSpanContext,\n} from '../trace/context-utils';\nimport { DiagAPI } from './diag';\n\nconst API_NAME = 'trace';\n\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Tracing API\n *\n * @since 1.0.0\n */\nexport class TraceAPI {\n  private static _instance?: TraceAPI;\n\n  private _proxyTracerProvider = new ProxyTracerProvider();\n\n  /** Empty private constructor prevents end users from constructing a new instance of the API */\n  private constructor() {}\n\n  /** Get the singleton instance of the Trace API */\n  public static getInstance(): TraceAPI {\n    if (!this._instance) {\n      this._instance = new TraceAPI();\n    }\n\n    return this._instance;\n  }\n\n  /**\n   * Set the current global tracer.\n   *\n   * @returns true if the tracer provider was successfully registered, else false\n   */\n  public setGlobalTracerProvider(provider: TracerProvider): boolean {\n    const success = registerGlobal(\n      API_NAME,\n      this._proxyTracerProvider,\n      DiagAPI.instance()\n    );\n    if (success) {\n      this._proxyTracerProvider.setDelegate(provider);\n    }\n    return success;\n  }\n\n  /**\n   * Returns the global tracer provider.\n   */\n  public getTracerProvider(): TracerProvider {\n    return getGlobal(API_NAME) || this._proxyTracerProvider;\n  }\n\n  /**\n   * Returns a tracer from the global tracer provider.\n   */\n  public getTracer(name: string, version?: string): Tracer {\n    return this.getTracerProvider().getTracer(name, version);\n  }\n\n  /** Remove the global tracer provider */\n  public disable() {\n    unregisterGlobal(API_NAME, DiagAPI.instance());\n    this._proxyTracerProvider = new ProxyTracerProvider();\n  }\n\n  public wrapSpanContext = wrapSpanContext;\n\n  public isSpanContextValid = isSpanContextValid;\n\n  public deleteSpan = deleteSpan;\n\n  public getSpan = getSpan;\n\n  /** @since 1.2.0 */\n  public getActiveSpan = getActiveSpan;\n\n  public getSpanContext = getSpanContext;\n\n  public setSpan = setSpan;\n\n  public setSpanContext = setSpanContext;\n}\n","/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { TraceAPI } from './api/trace';\n\n/**\n * Entrypoint for trace API\n *\n * @since 1.0.0\n */\nexport const trace = TraceAPI.getInstance();\n","import { AsyncLocalStorage } from 'node:async_hooks';\nimport type { Scope } from '@sentry/core';\nimport {\n  getAsyncContextStrategy,\n  _INTERNAL_safeMathRandom,\n  generateTraceId,\n  getDefaultCurrentScope,\n  getDefaultIsolationScope,\n  getMainCarrier,\n  isContinuingTrace,\n  setAsyncContextStrategy,\n} from '@sentry/core';\n\ntype ScopeStore = { scope: Scope; isolationScope: Scope };\n\n/**\n * Sets the async context strategy to use AsyncLocalStorage.\n *\n * Returns the underlying `AsyncLocalStorage` whose store is the `{ scope, isolationScope }` object, so\n * callers (e.g. `@sentry/node-native`) can read scope out of it from a native thread.\n */\nexport function setAsyncLocalStorageAsyncContextStrategy(): AsyncLocalStorage<ScopeStore> {\n  // Re-use the AsyncLocalStorage of an already-installed strategy, if any. Otherwise a repeated\n  // setup (e.g. a second `Sentry.init()`) would swap in a new store while integrations that captured\n  // the previous one (via `getTracingChannelBinding().asyncLocalStorage`) keep reading the old one,\n  // breaking scope propagation across async boundaries.\n  const existingAsyncStorage = getAsyncContextStrategy(getMainCarrier()).getTracingChannelBinding?.()\n    ?.asyncLocalStorage as AsyncLocalStorage<ScopeStore> | undefined;\n\n  const asyncStorage = existingAsyncStorage ?? new AsyncLocalStorage<ScopeStore>();\n\n  function getScopes(): { scope: Scope; isolationScope: Scope } {\n    const scopes = asyncStorage.getStore();\n\n    if (scopes) {\n      return scopes;\n    }\n\n    // fallback behavior:\n    // if, for whatever reason, we can't find scopes on the context here, we have to fix this somehow\n    return {\n      scope: getDefaultCurrentScope(),\n      isolationScope: getDefaultIsolationScope(),\n    };\n  }\n\n  function withScope<T>(callback: (scope: Scope) => T): T {\n    const scope = getScopes().scope.clone();\n    const isolationScope = getScopes().isolationScope;\n    return asyncStorage.run({ scope, isolationScope }, () => {\n      return callback(scope);\n    });\n  }\n\n  // The isolation scope is shared, not forked, matching `withScope` above and the OpenTelemetry\n  // strategy. Forking it would silently discard `setUser`/`setTag`/`setContext` calls made inside\n  // the callback, as those write to the isolation scope.\n  function withSetScope<T>(scope: Scope, callback: (scope: Scope) => T): T {\n    const isolationScope = getScopes().isolationScope;\n    return asyncStorage.run({ scope, isolationScope }, () => {\n      return callback(scope);\n    });\n  }\n\n  // The current scope is forked alongside the isolation scope, matching the OpenTelemetry strategy\n  // (`buildContextWithSentryScopes` clones it on every fork). Sharing it by reference would let\n  // current-scope mutations inside the callback leak back out to the caller.\n  function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T {\n    const scope = getScopes().scope.clone();\n    const isolationScope = getScopes().isolationScope.clone();\n\n    // When forking an isolation scope, unless we are continuing an incoming\n    // trace, we give the freshly forked scope its own trace. This way, new\n    // root spans in an isolation scope will get separate traces. The previous\n    // trace's `sampled` and `propagationSpanId` are dropped on purpose.\n    // Carrying them over would apply the old trace's sampling decision to the\n    // new one and propagate a span id from a different trace.\n    if (!isContinuingTrace(scope.getPropagationContext())) {\n      scope.setPropagationContext({\n        traceId: generateTraceId(),\n        sampleRand: _INTERNAL_safeMathRandom(),\n      });\n    }\n\n    return asyncStorage.run({ scope, isolationScope }, () => {\n      return callback(isolationScope);\n    });\n  }\n\n  function withSetIsolationScope<T>(isolationScope: Scope, callback: (isolationScope: Scope) => T): T {\n    const scope = getScopes().scope.clone();\n    return asyncStorage.run({ scope, isolationScope }, () => {\n      return callback(isolationScope);\n    });\n  }\n\n  setAsyncContextStrategy({\n    withScope,\n    withSetScope,\n    withIsolationScope,\n    withSetIsolationScope,\n    getCurrentScope: () => getScopes().scope,\n    getIsolationScope: () => getScopes().isolationScope,\n    getTracingChannelBinding: () => {\n      return {\n        asyncLocalStorage: asyncStorage,\n      };\n    },\n  });\n\n  return asyncStorage;\n}\n","import { GLOBAL_OBJ } from '@sentry/core';\n\nconst globalWithRuntimes = GLOBAL_OBJ as typeof GLOBAL_OBJ & { Bun?: unknown; Deno?: unknown };\n\n/** Whether the SDK runs in Bun. */\nexport function isBun(): boolean {\n  return typeof globalWithRuntimes.Bun !== 'undefined';\n}\n\n/** Whether the SDK runs in Deno. */\nexport function isDeno(): boolean {\n  return typeof globalWithRuntimes.Deno !== 'undefined';\n}\n\n/** Whether the SDK runs in Cloudflare Workers. */\nexport function isCloudflareWorkers(): boolean {\n  return GLOBAL_OBJ.navigator?.userAgent === 'Cloudflare-Workers';\n}\n","import { consoleSandbox, debug, GLOBAL_OBJ } from '@sentry/core';\nimport { isBun } from '../utils/runtime';\n\n/**\n * The module names (e.g. `mysql`, `@hapi/hapi`) orchestrion has already injected\n * into this process — from the runtime `--import` hook (`runtime`) and/or the\n * snippets a bundler transform spliced into each transformed module (`bundler`).\n * Channel-based integrations use it to decide whether to subscribe now (their\n * module is already loaded) or wait for the module-injected event.\n *\n * The `instanceof Set` guard is runtime safety, not typing: a banner from\n * another SDK copy or version may have written a non-Set flag here.\n */\nexport function getOrchestrionInjectedModules(): string[] {\n  const { runtime, bundler } = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};\n  return [...(runtime ?? []), ...(bundler instanceof Set ? bundler : [])];\n}\n\n/**\n * Verifies that the diagnostics channels have been injected either by the\n * runtime `--import` hook (or init-time registration), a bundler plugin, or\n * both, and warns if not. When at least one injector is active, logs for each\n * mechanism whether it hooked (a defined list, even empty, means it did) and\n * which libraries it injected. For the bundler path, the entry banner ensures\n * an empty `Set` at boot; module names arrive as each transformed module is\n * evaluated, so an empty set can also just mean none has loaded yet.\n *\n * Both injectors being active at once is fine: they operate on disjoint module\n * sets (a module is either loaded through Node's loader and transformed by the\n * runtime hook, or inlined by the bundler and transformed by the plugin), so\n * a single module can't be double-wrapped. A hybrid setup, with some deps\n * external and runtime-instrumented, others bundled and plugin-instrumented,\n * is fine.\n */\nexport function detectOrchestrionSetup(): void {\n  const marker = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};\n  const { runtime, bundler, channelIntegrations } = marker;\n\n  if (!runtime && !bundler) {\n    if (channelIntegrations && isBun()) {\n      if (!marker.warnedBunRunNotInjected) {\n        marker.warnedBunRunNotInjected = true;\n        consoleSandbox(() => {\n          // oxlint-disable-next-line no-console\n          console.warn(\n            '[Sentry] No diagnostics-channel injection detected. Channel-based integrations will not record ' +\n              'spans or capture errors, because Bun cannot instrument modules at runtime. Build your app with ' +\n              '`@sentry/bun/plugin` to enable them.',\n          );\n        });\n      }\n      return;\n    }\n\n    debug.warn(\n      '[Sentry] No diagnostics-channel injection detected. Channel-based integrations ' +\n        'will not record spans. Make sure the diagnostics channels are injected ' +\n        'via the runtime `--import` hook or a bundler plugin before the instrumented modules load.',\n    );\n    return;\n  }\n\n  debug.log(\n    runtime\n      ? `[Sentry] Runtime hook registered, injected libraries=${JSON.stringify(runtime)}`\n      : '[Sentry] Runtime hook not registered',\n  );\n  debug.log(\n    bundler\n      ? `[Sentry] Bundler plugin ran, injected libraries=${JSON.stringify(\n          bundler instanceof Set ? [...bundler] : bundler,\n        )}`\n      : '[Sentry] Bundler plugin did not run',\n  );\n}\n","// oxlint-disable-next-line no-restricted-imports\nimport * as nodeDiagnosticsChannel from 'node:diagnostics_channel';\nimport { isBun } from './runtime';\n\n// Bun garbage-collects a diagnostics channel that no code references, together with its\n// subscribers, so a subscription made at `init()` can stop receiving messages after the next GC.\n// Node and Deno keep a channel alive while it has subscribers. On Bun these wrappers of the\n// `node:diagnostics_channel` functions keep a reference to every channel they return, so the SDK's\n// subscriptions stay active. Other runtimes get the original functions.\n// See https://github.com/oven-sh/bun/issues/43086\nconst keepChannelsReferenced = isBun();\n\nconst channelsByName = new Map<string | symbol, nodeDiagnosticsChannel.Channel>();\nconst tracingChannelsByName = new Map<string, nodeDiagnosticsChannel.TracingChannel>();\n\n/** `diagnostics_channel.channel()`, with the returned channel kept referenced on Bun. */\nexport const channel: typeof nodeDiagnosticsChannel.channel = keepChannelsReferenced\n  ? name => {\n      let result = channelsByName.get(name);\n      if (!result) {\n        result = nodeDiagnosticsChannel.channel(name);\n        channelsByName.set(name, result);\n      }\n      return result;\n    }\n  : nodeDiagnosticsChannel.channel;\n\n/** `diagnostics_channel.subscribe()`, on Bun on a channel kept referenced by {@link channel}. */\nexport const subscribe: typeof nodeDiagnosticsChannel.subscribe = keepChannelsReferenced\n  ? (name, onMessage) => {\n      channel(name).subscribe(onMessage);\n    }\n  : nodeDiagnosticsChannel.subscribe;\n\n/**\n * `diagnostics_channel.tracingChannel()`, with the returned tracing channel (and so its five\n * channels) kept referenced on Bun when it is created by name. `undefined` where the runtime has\n * no `tracingChannel` (Node < 18.19), like the original export.\n */\nexport const tracingChannel: typeof nodeDiagnosticsChannel.tracingChannel =\n  keepChannelsReferenced && nodeDiagnosticsChannel.tracingChannel\n    ? (((nameOrChannels: Parameters<typeof nodeDiagnosticsChannel.tracingChannel>[0]) => {\n        if (typeof nameOrChannels !== 'string') {\n          return nodeDiagnosticsChannel.tracingChannel(nameOrChannels);\n        }\n        let result = tracingChannelsByName.get(nameOrChannels);\n        if (!result) {\n          result = nodeDiagnosticsChannel.tracingChannel(nameOrChannels);\n          tracingChannelsByName.set(nameOrChannels, result);\n        }\n        return result;\n      }) as typeof nodeDiagnosticsChannel.tracingChannel)\n    : nodeDiagnosticsChannel.tracingChannel;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * The distinct instrumented package names (`module.name`) across a library's\n * channel configs. Integrations pass this to `invokeOrchestrionInstrumentation`\n * so they subscribe only once one of their packages is actually injected.\n */\nexport function getModuleNames(configs: readonly InstrumentationConfig[]): string[] {\n  return [...new Set(configs.map(config => config.module.name))];\n}\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// The AWS SDK (v3) routes every command through the smithy `Client.prototype.send` method. Which\n// package hosts that `Client` class changed across versions, so we target all of them; only the one\n// the app's client actually extends is ever invoked.\n//\n// - `@smithy/core` >= 3.24.0: the `Client` class moved into the `client` submodule bundle.\n// - `@smithy/smithy-client`: the `Client` class for aws-sdk v3.363.0+ (pre-`@smithy/core` stack).\n// - `@aws-sdk/smithy-client`: the `Client` class for older aws-sdk v3 releases.\n//\n// `send` is `async send(command, options)` (returns a promise), so `kind: 'Async'`.\nexport const awsSdkConfig = [\n  {\n    channelName: 'send',\n    module: { name: '@smithy/core', versionRange: '>=3.24.0 <4', filePath: 'dist-cjs/submodules/client/index.js' },\n    functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n  },\n  {\n    channelName: 'send',\n    module: { name: '@smithy/smithy-client', versionRange: '>=1.0.3 <5', filePath: 'dist-cjs/index.js' },\n    functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n  },\n  {\n    channelName: 'send',\n    module: { name: '@aws-sdk/smithy-client', versionRange: '^3.1.0', filePath: 'dist-cjs/index.js' },\n    functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const awsSdkModuleNames = getModuleNames(awsSdkConfig);\n\nexport const awsSdkChannels = {\n  AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send',\n  AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send',\n  AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `amqplib` splits its API across these files:\n// - `lib/channel_model.js` (promise API) and `lib/callback_model.js` (callback API) each hold a\n//   `class Channel` (publish/consume/ack/nack/reject/…) and a `class ConfirmChannel extends Channel`\n//   (a `publish` that takes a broker-confirm callback). The method signatures match, so both files\n//   publish to the same channels.\n// - `lib/channel.js` holds `class BaseChannel` whose `dispatchMessage` invokes the registered\n//   consumer callback once per delivered message — the natural per-message hook for consumer spans\n//   (`Channel.consume` itself only registers the callback, it isn't called per message).\n// - `lib/connect.js` holds the `connect` function whose callback receives the open connection, used\n//   to capture connection attributes.\n//\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'amqplib', versionRange: '>=0.5.5 <3' } as const;\n\nexport const amqplibConfig = [\n  ...['lib/channel_model.js', 'lib/callback_model.js'].flatMap((filePath): InstrumentationConfig[] => [\n    // Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.\n    {\n      channelName: 'publish',\n      module: { ...module, filePath },\n      functionQuery: { className: 'Channel', methodName: 'publish', kind: 'Sync' },\n    },\n    // Confirm-channel producer span; the trailing broker-confirm callback ends the span when the\n    // broker acks/nacks. It internally calls the base `publish`, so the subscriber skips that nested call.\n    {\n      channelName: 'confirmPublish',\n      module: { ...module, filePath },\n      functionQuery: { className: 'ConfirmChannel', methodName: 'publish', kind: 'Callback' },\n    },\n    // `consume` knows the queue and `noAck`, and `registerConsumer` knows the tag. Together they tell the\n    // dispatch hook how to name the consumer span and when to end it. `Sync`, because the callback API\n    // returns the channel and only a synchronous throw leaves the channel open.\n    {\n      channelName: 'consume',\n      module: { ...module, filePath },\n      functionQuery: { className: 'Channel', methodName: 'consume', kind: 'Sync' },\n    },\n    // End the consumer span when the user settles the message.\n    {\n      channelName: 'ack',\n      module: { ...module, filePath },\n      functionQuery: { className: 'Channel', methodName: 'ack', kind: 'Sync' },\n    },\n    {\n      channelName: 'nack',\n      module: { ...module, filePath },\n      functionQuery: { className: 'Channel', methodName: 'nack', kind: 'Sync' },\n    },\n    {\n      channelName: 'reject',\n      module: { ...module, filePath },\n      functionQuery: { className: 'Channel', methodName: 'reject', kind: 'Sync' },\n    },\n    {\n      channelName: 'ackAll',\n      module: { ...module, filePath },\n      functionQuery: { className: 'Channel', methodName: 'ackAll', kind: 'Sync' },\n    },\n    {\n      channelName: 'nackAll',\n      module: { ...module, filePath },\n      functionQuery: { className: 'Channel', methodName: 'nackAll', kind: 'Sync' },\n    },\n  ]),\n  {\n    channelName: 'registerConsumer',\n    module: { ...module, filePath: 'lib/channel.js' },\n    functionQuery: { className: 'BaseChannel', methodName: 'registerConsumer', kind: 'Sync' },\n  },\n  // Per delivered message: creates the consumer span and runs the user callback under it.\n  {\n    channelName: 'dispatch',\n    module: { ...module, filePath: 'lib/channel.js' },\n    functionQuery: { className: 'BaseChannel', methodName: 'dispatchMessage', kind: 'Sync' },\n  },\n  // Stashes connection attributes (url/host/port/protocol/server product) on the connection object\n  // for span-time reads via `channel.connection`.\n  {\n    channelName: 'connect',\n    module: { ...module, filePath: 'lib/connect.js' },\n    functionQuery: { functionName: 'connect', kind: 'Callback' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const amqplibModuleNames = getModuleNames(amqplibConfig);\n\nexport const amqplibChannels = {\n  AMQPLIB_PUBLISH: 'orchestrion:amqplib:publish',\n  AMQPLIB_CONFIRM_PUBLISH: 'orchestrion:amqplib:confirmPublish',\n  AMQPLIB_CONSUME: 'orchestrion:amqplib:consume',\n  AMQPLIB_REGISTER_CONSUMER: 'orchestrion:amqplib:registerConsumer',\n  AMQPLIB_DISPATCH: 'orchestrion:amqplib:dispatch',\n  AMQPLIB_ACK: 'orchestrion:amqplib:ack',\n  AMQPLIB_NACK: 'orchestrion:amqplib:nack',\n  AMQPLIB_REJECT: 'orchestrion:amqplib:reject',\n  AMQPLIB_ACK_ALL: 'orchestrion:amqplib:ackAll',\n  AMQPLIB_NACK_ALL: 'orchestrion:amqplib:nackAll',\n  AMQPLIB_CONNECT: 'orchestrion:amqplib:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const anthropicAiConfig = [\n  // One entry each for CJS/ESM\n  ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n    channelName: 'chat',\n    module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n    functionQuery: { className: 'Messages', methodName: 'create', kind: 'Sync' as const },\n  })),\n  // Removed in 1.0.\n  ...['resources/completions.js', 'resources/completions.mjs'].map(filePath => ({\n    channelName: 'chat',\n    module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n    functionQuery: { className: 'Completions', methodName: 'create', kind: 'Sync' as const },\n  })),\n  ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n    channelName: 'chat',\n    module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n    functionQuery: { className: 'Messages', methodName: 'create', kind: 'Sync' as const },\n  })),\n  // `messages.stream()` returns a synchronous emitter, not a promise, so `kind: 'Sync'` is required:\n  // `Auto`'s promise wrapper never publishes `end` for a non-thenable return, so the span would never end.\n  ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n    channelName: 'messages-stream',\n    module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n    functionQuery: { className: 'Messages', methodName: 'stream', kind: 'Sync' as const },\n  })),\n  ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n    channelName: 'tool-runner',\n    module: { name: '@anthropic-ai/sdk', versionRange: '>=0.63.0 <2', filePath },\n    functionQuery: { className: 'Messages', methodName: 'toolRunner', kind: 'Sync' as const },\n  })),\n  // The constructor, not `sessions.events.toolRunner()`, so runners built directly (e.g. by `EnvironmentWorker`) are covered.\n  ...['lib/tools/SessionToolRunner.js', 'lib/tools/SessionToolRunner.mjs'].map(filePath => ({\n    channelName: 'session-tool-runner',\n    module: { name: '@anthropic-ai/sdk', versionRange: '>=0.97.0 <2', filePath },\n    functionQuery: { className: 'SessionToolRunner' },\n  })),\n] satisfies InstrumentationConfig[];\n\nexport const anthropicAiModuleNames = getModuleNames(anthropicAiConfig);\n\nexport const anthropicAiChannels = {\n  ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat',\n  ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream',\n  ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner',\n  ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// `CronJob.from()` calls the constructor. Job names were added in 4.3.0.\nexport const cronConfig = [\n  {\n    channelName: 'cronJobConstructor',\n    module: { name: 'cron', versionRange: '>=4.3.0 <5', filePath: 'dist/job.js' },\n    functionQuery: { className: 'CronJob' },\n  },\n  {\n    channelName: 'cronJobSetTime',\n    module: { name: 'cron', versionRange: '>=4.3.0 <5', filePath: 'dist/job.js' },\n    functionQuery: { className: 'CronJob', methodName: 'setTime', kind: 'Sync' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const cronModuleNames = getModuleNames(cronConfig);\n\nexport const cronChannels = {\n  CRON_JOB_CONSTRUCTOR: 'orchestrion:cron:cronJobConstructor',\n  CRON_JOB_SET_TIME: 'orchestrion:cron:cronJobSetTime',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// `dataloader` ships a single transpiled CommonJS `index.js`. Its class methods are emitted as\n// `_proto.<name> = function <name>() {}` (named function *expressions*), so they match on\n// `expressionName` rather than `methodName`. The constructor is a named function declaration.\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'dataloader', versionRange: '>=2.0.0 <3', filePath: 'index.js' } as const;\n\nexport const dataloaderConfig = [\n  // Wrap the constructor so the subscriber can wrap the user's `batchLoadFn` (arg 0). The batch span\n  // is opened when that wrapped function actually runs (on the deferred dispatch tick), mirroring the\n  // vendored OTel instrumentation which also wraps `batchLoadFn` at construction time.\n  {\n    channelName: 'construct',\n    module,\n    functionQuery: { functionName: 'DataLoader', kind: 'Sync' },\n  },\n  // `load`/`loadMany` return Promises, so they're `Async`: the span ends on `asyncEnd` (when the\n  // load resolves), capturing the real latency and enclosing the deferred `batch` span — matching the\n  // vendored OTel `startSpan`. `prime`/`clear`/`clearAll` return `this` synchronously, so they stay `Sync`.\n  {\n    channelName: 'load',\n    module,\n    functionQuery: { expressionName: 'load', kind: 'Async' },\n  },\n  {\n    channelName: 'loadMany',\n    module,\n    functionQuery: { expressionName: 'loadMany', kind: 'Async' },\n  },\n  {\n    channelName: 'prime',\n    module,\n    functionQuery: { expressionName: 'prime', kind: 'Sync' },\n  },\n  {\n    channelName: 'clear',\n    module,\n    functionQuery: { expressionName: 'clear', kind: 'Sync' },\n  },\n  {\n    channelName: 'clearAll',\n    module,\n    functionQuery: { expressionName: 'clearAll', kind: 'Sync' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const dataloaderChannels = {\n  DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct',\n  DATALOADER_LOAD: 'orchestrion:dataloader:load',\n  DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany',\n  DATALOADER_PRIME: 'orchestrion:dataloader:prime',\n  DATALOADER_CLEAR: 'orchestrion:dataloader:clear',\n  DATALOADER_CLEAR_ALL: 'orchestrion:dataloader:clearAll',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const expressConfig = [\n  // Express funnels every middleware/route handler through a single method on\n  // its routing `Layer`, so instrumenting that one method covers the whole\n  // request pipeline. The `expressIntegration` opens one span per layer\n  // invocation. Both are `Layer.prototype.<method> = function <fn>(req, res, next)`\n  // prototype assignments (not `class` methods), so `expressionName` (matching\n  // the assignment's `left.property.name`) is used. `Callback`: the handler's\n  // last argument is `next`, so the transform ends the traced operation when\n  // `next` is invoked (and publishes `error` when it's called with an error).\n  //\n  // Express v4 ships its own router in `express/lib/router/layer.js`.\n  {\n    channelName: 'handle',\n    module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/layer.js' },\n    // v4's method is `Layer.prototype.handle_request = function handle(...)` —\n    // match the assigned property name, not the function name.\n    functionQuery: { expressionName: 'handle_request', kind: 'Callback' },\n  },\n  // Express v5 delegates routing to the standalone `router` package.\n  {\n    channelName: 'handle',\n    module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'lib/layer.js' },\n    functionQuery: { expressionName: 'handleRequest', kind: 'Callback' },\n  },\n  // Layer *registration* methods. `Router.prototype.route`/`.use` are called\n  // once per registered route/middleware (including internally by `app.get`/\n  // `app.use`), so subscribing here lets us record each layer's registered path\n  // *pattern* — which the handler path (`req.baseUrl`) can't recover for\n  // parameterized mounts. `Sync`: these return synchronously and, unlike a\n  // handler, `use`'s trailing function argument is a registration payload, not a\n  // callback — so `Callback` would misclassify it and never fire `end`.\n  //\n  // `route` and `use` share one `register` channel because the subscriber handles\n  // them identically, saving a channel per module.\n  //\n  // Express v4 ships its own router in `express/lib/router/index.js`.\n  {\n    channelName: 'register',\n    module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n    functionQuery: { expressionName: 'route', kind: 'Sync' },\n  },\n  {\n    channelName: 'register',\n    module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n    functionQuery: { expressionName: 'use', kind: 'Sync' },\n  },\n  // Express v5 delegates routing to the standalone `router` package.\n  {\n    channelName: 'register',\n    module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n    functionQuery: { expressionName: 'route', kind: 'Sync' },\n  },\n  {\n    channelName: 'register',\n    module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n    functionQuery: { expressionName: 'use', kind: 'Sync' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const expressModuleNames = getModuleNames(expressConfig);\n\nexport const expressChannels = {\n  // Express v4 runs each layer's handler through `Layer.prototype.handle_request`\n  // in the `express` module.\n  EXPRESS_HANDLE: 'orchestrion:express:handle',\n  // Express v5 delegates routing to the standalone `router` package, where the\n  // equivalent method is `Layer.prototype.handleRequest`.\n  ROUTER_HANDLE: 'orchestrion:router:handle',\n  // Layer *registration* (`Router.prototype.route`/`.use`), used to capture each\n  // layer's registered path pattern so the matched route can be reconstructed\n  // with its parameters intact (`req.baseUrl` only exposes the resolved prefix).\n  EXPRESS_REGISTER: 'orchestrion:express:register',\n  ROUTER_REGISTER: 'orchestrion:router:register',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// firebase 9+ ships firestore as `@firebase/firestore` (matches the OTel integration's range). Only the\n// `lite` SDK exposes the free `addDoc`/`getDocs`/`setDoc`/`deleteDoc` functions we trace, and only the\n// `node` entry points (CJS `require`, ESM `import`) are reachable from `@sentry/node`; the\n// browser/react-native builds are irrelevant here. `addDoc` & co. are top-level `function <name>`\n// declarations, so `functionName` matches; they return promises, so `Auto` settles the span on\n// `asyncEnd`. firebase <12.8 declares them in `index.node.{cjs.js,mjs}`; firebase >=12.8 (firestore\n// >=4.10) moved them into a hash-named shared chunk `common-<hash>.node.{cjs.js,mjs}` — the RegExp\n// matches both, so injection keeps working across the version range without pinning a build hash.\nconst FIRESTORE_VERSION_RANGE = '>=3.0.0 <5';\nconst FIRESTORE_FILE = /dist\\/lite\\/(index|common-[^/]+)\\.node\\.(cjs\\.js|mjs)$/;\nconst FIRESTORE_OPERATIONS = [\n  { functionName: 'addDoc', channelName: 'add-doc' },\n  { functionName: 'getDocs', channelName: 'get-docs' },\n  { functionName: 'setDoc', channelName: 'set-doc' },\n  { functionName: 'deleteDoc', channelName: 'delete-doc' },\n] as const;\n\n// firebase-functions v2 (CJS-only). The `onX` provider functions *register* a handler and return a\n// synchronous cloud function, so `Sync` is required — the span itself is opened later, when the handler\n// runs, by rewrapping the handler argument in the channel's `start` (see `./firebase/functions`). One\n// channel per faas trigger so the subscriber knows the trigger type without inspecting arguments.\nconst FUNCTIONS_VERSION_RANGE = '>=6.0.0 <7';\nconst FUNCTIONS_TRIGGERS = [\n  { file: 'lib/v2/providers/https.js', functionName: 'onRequest', channelName: 'http-request' },\n  { file: 'lib/v2/providers/https.js', functionName: 'onCall', channelName: 'http-call' },\n  { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentCreated', channelName: 'firestore-created' },\n  {\n    file: 'lib/v2/providers/firestore.js',\n    functionName: 'onDocumentCreatedWithAuthContext',\n    channelName: 'firestore-created',\n  },\n  { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentUpdated', channelName: 'firestore-updated' },\n  {\n    file: 'lib/v2/providers/firestore.js',\n    functionName: 'onDocumentUpdatedWithAuthContext',\n    channelName: 'firestore-updated',\n  },\n  { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentDeleted', channelName: 'firestore-deleted' },\n  {\n    file: 'lib/v2/providers/firestore.js',\n    functionName: 'onDocumentDeletedWithAuthContext',\n    channelName: 'firestore-deleted',\n  },\n  { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentWritten', channelName: 'firestore-written' },\n  {\n    file: 'lib/v2/providers/firestore.js',\n    functionName: 'onDocumentWrittenWithAuthContext',\n    channelName: 'firestore-written',\n  },\n  { file: 'lib/v2/providers/scheduler.js', functionName: 'onSchedule', channelName: 'scheduler' },\n  { file: 'lib/v2/providers/storage.js', functionName: 'onObjectFinalized', channelName: 'storage-finalized' },\n  { file: 'lib/v2/providers/storage.js', functionName: 'onObjectArchived', channelName: 'storage-archived' },\n  { file: 'lib/v2/providers/storage.js', functionName: 'onObjectDeleted', channelName: 'storage-deleted' },\n  {\n    file: 'lib/v2/providers/storage.js',\n    functionName: 'onObjectMetadataUpdated',\n    channelName: 'storage-metadata-updated',\n  },\n] as const;\n\nexport const firebaseConfig = [\n  ...FIRESTORE_OPERATIONS.map(({ functionName, channelName }) => ({\n    channelName,\n    module: { name: '@firebase/firestore', versionRange: FIRESTORE_VERSION_RANGE, filePath: FIRESTORE_FILE },\n    functionQuery: { functionName, kind: 'Auto' as const },\n  })),\n  ...FUNCTIONS_TRIGGERS.map(({ file, functionName, channelName }) => ({\n    channelName,\n    module: { name: 'firebase-functions', versionRange: FUNCTIONS_VERSION_RANGE, filePath: file },\n    functionQuery: { functionName, kind: 'Sync' as const },\n  })),\n] satisfies InstrumentationConfig[];\n\nexport const firebaseModuleNames = getModuleNames(firebaseConfig);\n\nexport const firebaseChannels = {\n  FIREBASE_FIRESTORE_ADD_DOC: 'orchestrion:@firebase/firestore:add-doc',\n  FIREBASE_FIRESTORE_GET_DOCS: 'orchestrion:@firebase/firestore:get-docs',\n  FIREBASE_FIRESTORE_SET_DOC: 'orchestrion:@firebase/firestore:set-doc',\n  FIREBASE_FIRESTORE_DELETE_DOC: 'orchestrion:@firebase/firestore:delete-doc',\n  FIREBASE_FUNCTIONS_HTTP_REQUEST: 'orchestrion:firebase-functions:http-request',\n  FIREBASE_FUNCTIONS_HTTP_CALL: 'orchestrion:firebase-functions:http-call',\n  FIREBASE_FUNCTIONS_FIRESTORE_CREATED: 'orchestrion:firebase-functions:firestore-created',\n  FIREBASE_FUNCTIONS_FIRESTORE_UPDATED: 'orchestrion:firebase-functions:firestore-updated',\n  FIREBASE_FUNCTIONS_FIRESTORE_DELETED: 'orchestrion:firebase-functions:firestore-deleted',\n  FIREBASE_FUNCTIONS_FIRESTORE_WRITTEN: 'orchestrion:firebase-functions:firestore-written',\n  FIREBASE_FUNCTIONS_SCHEDULER: 'orchestrion:firebase-functions:scheduler',\n  FIREBASE_FUNCTIONS_STORAGE_FINALIZED: 'orchestrion:firebase-functions:storage-finalized',\n  FIREBASE_FUNCTIONS_STORAGE_ARCHIVED: 'orchestrion:firebase-functions:storage-archived',\n  FIREBASE_FUNCTIONS_STORAGE_DELETED: 'orchestrion:firebase-functions:storage-deleted',\n  FIREBASE_FUNCTIONS_STORAGE_METADATA_UPDATED: 'orchestrion:firebase-functions:storage-metadata-updated',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// Two shapes of `acquire`, both publishing to the same `orchestrion:generic-pool:acquire` channel:\n// - v3+: `class Pool { acquire(priority) }` returns a promise, so `kind: 'Auto'` resolves to `wrapPromise`.\n// - v2.4–v3: `Pool.prototype.acquire = function acquire(callback, priority)` is callback-based.\n// Versions before 2.4 assigned an anonymous `acquire` per pool instance (a factory), which a static\n// transform can't target, so they're out of scope (matching how the OTel instrumentation split them).\nexport const genericPoolConfig = [\n  {\n    channelName: 'acquire',\n    module: { name: 'generic-pool', versionRange: '>=3.0.0 <4', filePath: 'lib/Pool.js' },\n    functionQuery: { className: 'Pool', methodName: 'acquire', kind: 'Auto' },\n  },\n  {\n    channelName: 'acquire',\n    module: { name: 'generic-pool', versionRange: '>=2.4.0 <3', filePath: 'lib/generic-pool.js' },\n    functionQuery: { expressionName: 'acquire', kind: 'Callback' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const genericPoolModuleNames = getModuleNames(genericPoolConfig);\n\nexport const genericPoolChannels = {\n  GENERIC_POOL_ACQUIRE: 'orchestrion:generic-pool:acquire',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@google/genai` ships one bundled file per module format and the matcher compares `filePath` exactly,\n// so we list every file the `node` export condition resolves to across the supported range: `index.js`\n// (ESM+CJS for <0.15.0, CJS for <1.1.0), `index.mjs` (ESM for >=0.15.0), and `index.cjs` (CJS for >=1.1.0).\n// A file that doesn't exist in a given version simply never matches, so listing all three is safe.\nconst NODE_DIST_FILES = ['dist/node/index.js', 'dist/node/index.mjs', 'dist/node/index.cjs'];\n\nexport const googleGenAiConfig = [\n  // `generateContent`/`generateContentStream` are arrow properties assigned in the constructor, not class\n  // methods, so they need `expressionName` rather than `className`/`methodName`.\n  ...NODE_DIST_FILES.flatMap(filePath =>\n    (['generateContent', 'generateContentStream'] as const).map(expressionName => ({\n      channelName: 'generate-content',\n      module: { name: '@google/genai', versionRange: '>=0.10.0 <3', filePath },\n      functionQuery: { expressionName, kind: 'Auto' as const },\n    })),\n  ),\n  // `embedContent` is a real class method in v1 but a constructor-assigned arrow in v2; the\n  // `className`/`methodName` selector matches both shapes.\n  ...NODE_DIST_FILES.map(filePath => ({\n    channelName: 'embed-content',\n    module: { name: '@google/genai', versionRange: '>=0.10.0 <3', filePath },\n    functionQuery: { className: 'Models', methodName: 'embedContent', kind: 'Auto' as const },\n  })),\n  // `sendMessage`/`sendMessageStream` internally delegate to `Models.generateContent(Stream)`; the\n  // subscriber suppresses that nested `generate-content` event so a chat call yields a single span.\n  ...NODE_DIST_FILES.flatMap(filePath =>\n    (['sendMessage', 'sendMessageStream'] as const).map(methodName => ({\n      channelName: 'chat',\n      module: { name: '@google/genai', versionRange: '>=0.10.0 <3', filePath },\n      functionQuery: { className: 'Chat', methodName, kind: 'Auto' as const },\n    })),\n  ),\n] satisfies InstrumentationConfig[];\n\nexport const googleGenAiModuleNames = getModuleNames(googleGenAiConfig);\n\nexport const googleGenAiChannels = {\n  GOOGLE_GENAI_GENERATE_CONTENT: 'orchestrion:@google/genai:generate-content',\n  GOOGLE_GENAI_EMBED_CONTENT: 'orchestrion:@google/genai:embed-content',\n  GOOGLE_GENAI_CHAT: 'orchestrion:@google/genai:chat',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `parse`/`validate`/`execute` are top-level named `function` declarations in graphql's compiled\n// files, stable across the supported majors, so `functionName` matches. `execute` returns\n// `PromiseOrValue`, so `Auto` covers both async (settles on `asyncEnd`) and sync (`end`) schemas.\n// graphql ships dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built\n// file (`.js` for `require`, `.mjs` for `import`) — a bundler resolving the ESM build (e.g. webpack\n// with `outputModule`) would otherwise never be transformed.\nexport const graphqlConfig = [\n  ...['language/parser.js', 'language/parser.mjs'].map(filePath => ({\n    channelName: 'parse',\n    module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n    functionQuery: { functionName: 'parse', kind: 'Sync' as const },\n  })),\n  ...['validation/validate.js', 'validation/validate.mjs'].map(filePath => ({\n    channelName: 'validate',\n    module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n    functionQuery: { functionName: 'validate', kind: 'Sync' as const },\n  })),\n  ...['execution/execute.js', 'execution/execute.mjs'].map(filePath => ({\n    channelName: 'execute',\n    module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n    functionQuery: { functionName: 'execute', kind: 'Auto' as const },\n  })),\n] satisfies InstrumentationConfig[];\n\nexport const graphqlChannels = {\n  GRAPHQL_PARSE: 'orchestrion:graphql:parse',\n  GRAPHQL_VALIDATE: 'orchestrion:graphql:validate',\n  GRAPHQL_EXECUTE: 'orchestrion:graphql:execute',\n} as const;\n\nexport const graphqlModuleNames = getModuleNames(graphqlConfig);\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * Many providers (Groq, Together, ...) ship a Stainless-generated SDK that mirrors the classic `openai`\n * file layout: `resources/chat/completions.{js,mjs}` (class `Completions`) and\n * `resources/embeddings.{js,mjs}` (class `Embeddings`), each with a `create(body, options)` that returns\n * a thenable `APIPromise`. Sync tracing preserves its lazy body parsing; Auto would trigger it via `.then()`.\n * A streaming call resolves to the same OpenAI-style async-iterable `Stream` the openai integration consumes. These\n * SDKs ship dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built file.\n * `classNames` covers SDKs that moved `create` onto a base class while keeping this layout.\n *\n * Because the wire format is OpenAI-compatible, the span building, streaming and response parsing are all\n * reused from `ai/openai`; only the module name, channels and `gen_ai.provider.name` differ per provider.\n */\nexport function openAiCompatibleConfig(\n  module: { name: string; versionRange: string },\n  classNames = { chat: 'Completions', embeddings: 'Embeddings' },\n): InstrumentationConfig[] {\n  return [\n    ...['resources/chat/completions.js', 'resources/chat/completions.mjs'].map(filePath => ({\n      channelName: 'chat',\n      module: { ...module, filePath },\n      functionQuery: { className: classNames.chat, methodName: 'create', kind: 'Sync' as const },\n    })),\n    ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n      channelName: 'embeddings',\n      module: { ...module, filePath },\n      functionQuery: { className: classNames.embeddings, methodName: 'create', kind: 'Sync' as const },\n    })),\n  ];\n}\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { openAiCompatibleConfig } from './openai-compatible';\n\n// `groq-sdk` is a Stainless-generated, OpenAI-compatible SDK — see `openAiCompatibleConfig`.\nexport const groqConfig = openAiCompatibleConfig({\n  name: 'groq-sdk',\n  versionRange: '>=0.3.0 <2',\n}) satisfies InstrumentationConfig[];\n\nexport const groqModuleNames = getModuleNames(groqConfig);\n\nexport const groqChannels = {\n  GROQ_CHAT: 'orchestrion:groq-sdk:chat',\n  GROQ_EMBEDDINGS: 'orchestrion:groq-sdk:embeddings',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const hapiConfig = [\n  // hapi's `route`/`ext` live on an anonymous class (`internals.Server = class {}`),\n  // so `{className}` can't match — `{methodName}` targets them in lib/server.js. Both\n  // are synchronous void methods, so `Sync` suffices: we only use `start` to swap\n  // handlers in `ctx.arguments`. Shape verified across the whole range.\n  {\n    channelName: 'route',\n    module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n    functionQuery: { methodName: 'route', kind: 'Sync' },\n  },\n  {\n    channelName: 'ext',\n    module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n    functionQuery: { methodName: 'ext', kind: 'Sync' },\n  },\n  // `start`/`initialize` give us the live server via `ctx.self` so we can attach\n  // the error listener automatically. We hook both because `start()` calls the\n  // private `_core._start()` (never the public `initialize` method), while\n  // test/serverless flows may only call `initialize()`. Only the synchronous\n  // `start` event is used — to read `ctx.self` — so `Sync` suffices even though\n  // both methods return a promise.\n  {\n    channelName: 'start',\n    module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n    functionQuery: { methodName: 'start', kind: 'Sync' },\n  },\n  {\n    channelName: 'initialize',\n    module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n    functionQuery: { methodName: 'initialize', kind: 'Sync' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const hapiModuleNames = getModuleNames(hapiConfig);\n\nexport const hapiChannels = {\n  HAPI_ROUTE: 'orchestrion:@hapi/hapi:route',\n  HAPI_EXT: 'orchestrion:@hapi/hapi:ext',\n  HAPI_START: 'orchestrion:@hapi/hapi:start',\n  HAPI_INITIALIZE: 'orchestrion:@hapi/hapi:initialize',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// Hono is hooked through per-request internals only — never at module scope — which is what lets the\n// same config run on Cloudflare Workers, where workerd forbids `diagnostics_channel` at module scope.\n// The subscribers live in `honoIntegration`.\nconst honoInstrumentationConfig: InstrumentationConfig[] = [\n  {\n    // `new Context()` runs once per request: where the Sentry middleware is injected and matched\n    // middleware handlers are wrapped for spans.\n    // TODO(v12): Raise the minimum Hono version to 4.4.9, here and in the `@sentry/hono` peer range.\n    // Before 4.4.9, Hono passes `matchResult` to `new HonoRequest()`, so this hook does nothing.\n    channelName: 'context',\n    module: { name: 'hono', versionRange: '>=4.0.0 <5', filePath: /^dist\\/(?:cjs\\/)?context\\.js$/ },\n    functionQuery: { className: 'Context' },\n  },\n  {\n    // `app.request(...)` — Hono's internal dispatch for sub-app-to-sub-app fetches. A class-field\n    // arrow, hence `astQuery` instead of `methodName`.\n    channelName: 'request',\n    module: { name: 'hono', versionRange: '>=4.0.0 <5', filePath: /^dist\\/(?:cjs\\/)?hono-base\\.js$/ },\n    astQuery: \"PropertyDefinition[key.name='request'] > ArrowFunctionExpression\",\n    functionQuery: { kind: 'Auto' },\n  },\n];\n\nexport const honoConfig = honoInstrumentationConfig satisfies InstrumentationConfig[];\n\nexport const honoModuleNames = getModuleNames(honoConfig);\n\nexport const honoChannels = {\n  HONO_CONTEXT: 'orchestrion:hono:context',\n  HONO_REQUEST: 'orchestrion:hono:request',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * Name of the custom transform (see `bundler/moduleInjectedTransform.ts`) that\n * splices only the module-injected registration snippet — no channel machinery.\n * Prefixed so it can never shadow a built-in operator (`traceSync`,\n * `tracingChannelImport`, ...), which the custom-transforms map overrides by\n * name.\n */\nexport const MODULE_REGISTRATION_TRANSFORM = 'sentryModuleRegistration';\n\n/**\n * Build a registration-only config for one file of a library whose tracing\n * channels are native (published by the library itself): no channels are\n * injected, but transforming the file registers the module's channel-subscriber\n * integration at evaluation time. `astQuery: 'Program'` matches the file root\n * unconditionally, so no anchor function inside the library needs to exist.\n */\nexport function registrationOnly(module: {\n  name: string;\n  versionRange: string;\n  filePath: string;\n}): InstrumentationConfig {\n  return {\n    channelName: 'module-registration',\n    module,\n    astQuery: 'Program',\n    transform: MODULE_REGISTRATION_TRANSFORM,\n  };\n}\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const ioredisConfig = [\n  registrationOnly({ name: 'ioredis', versionRange: '>=5.11.0', filePath: 'built/Redis.js' }),\n  // ioredis `<5.11.0` (>=5.11.0 publishes its own `ioredis:*` diagnostics_channel)\n  ...['lib/redis.js', 'built/redis.js', 'built/redis/index.js'].flatMap((filePath): InstrumentationConfig[] => [\n    {\n      channelName: 'command',\n      module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n      functionQuery: { expressionName: 'sendCommand', kind: 'Async' },\n    },\n    {\n      channelName: 'connect',\n      module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n      functionQuery: { expressionName: 'connect', kind: 'Async' },\n    },\n  ]),\n  {\n    channelName: 'command',\n    module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n    functionQuery: { className: 'Redis', methodName: 'sendCommand', kind: 'Async' },\n  },\n  {\n    channelName: 'connect',\n    module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n    functionQuery: { className: 'Redis', methodName: 'connect', kind: 'Async' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const ioredisModuleNames = getModuleNames(ioredisConfig);\n\nexport const ioredisChannels = {\n  IOREDIS_COMMAND: 'orchestrion:ioredis:command',\n  IOREDIS_CONNECT: 'orchestrion:ioredis:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const kafkajsConfig = [\n  {\n    channelName: 'send_batch',\n    module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/producer/messageProducer.js' },\n    // `const sendBatch = async (...) => {...}` — `expressionName` matches the `const` assignment.\n    // We instrument ONLY `sendBatch`: `send` funnels into it internally, so `producer.send`,\n    // `producer.sendBatch` and their transactional variants all flow through this one channel.\n    // Instrumenting `send` too would double-count spans.\n    functionQuery: { expressionName: 'sendBatch', kind: 'Async' },\n  },\n  {\n    channelName: 'consumer_run',\n    module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/consumer/index.js' },\n    // `const run = async (config) => {...}` — matched by `expressionName`. We don't span `run` itself:\n    // the `start` subscriber swaps `config.eachMessage`/`eachBatch` (on `ctx.arguments[0]`) for\n    // span-creating wrappers before the original runs. This works because the transform re-reads\n    // `ctx.arguments` when invoking the original.\n    functionQuery: { expressionName: 'run', kind: 'Async' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const kafkajsModuleNames = getModuleNames(kafkajsConfig);\n\nexport const kafkajsChannels = {\n  KAFKAJS_SEND_BATCH: 'orchestrion:kafkajs:send_batch',\n  KAFKAJS_CONSUMER_RUN: 'orchestrion:kafkajs:consumer_run',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nconst MODULE_NAME = 'knex';\n\n// knex ships different file layouts across versions (see `SUPPORTED_VERSIONS` in the vendored OTel\n// instrumentation). Modern builds keep the runner under `lib/execution`, older ones under `lib`, and\n// the source-tree build under `src`. A file that doesn't exist for a given version simply never\n// matches, so overlapping ranges are safe.\nconst RUNNER_FILES = [\n  { filePath: 'lib/execution/runner.js', versionRange: '>=0.22.0 <4' },\n  { filePath: 'lib/runner.js', versionRange: '>=0.10.0 <0.22.0' },\n  { filePath: 'src/runner.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\nconst CLIENT_FILES = [\n  { filePath: 'lib/client.js', versionRange: '>=0.10.0 <4' },\n  { filePath: 'src/client.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\n// The three `Client` methods that create a builder. Wrapping them lets the subscriber capture the\n// span active at builder-creation time, which is reused as the parent when the query runs later\n// (often in a different async context).\nconst CLIENT_METHODS = ['queryBuilder', 'schemaBuilder', 'raw'] as const;\n\nfunction runnerQuery(filePath: string, versionRange: string): InstrumentationConfig {\n  return {\n    channelName: 'query',\n    module: { name: MODULE_NAME, versionRange, filePath },\n    functionQuery: { className: 'Runner', methodName: 'query', kind: 'Async' },\n  };\n}\n\nfunction clientMethod(methodName: string, filePath: string, versionRange: string): InstrumentationConfig {\n  return {\n    channelName: methodName,\n    module: { name: MODULE_NAME, versionRange, filePath },\n    functionQuery: { className: 'Client', methodName, kind: 'Sync' },\n  };\n}\n\nexport const knexConfig: InstrumentationConfig[] = [\n  ...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)),\n  ...CLIENT_FILES.flatMap(({ filePath, versionRange }) =>\n    CLIENT_METHODS.map(methodName => clientMethod(methodName, filePath, versionRange)),\n  ),\n];\n\nexport const knexChannels = {\n  KNEX_QUERY: 'orchestrion:knex:query',\n  KNEX_QUERY_BUILDER: 'orchestrion:knex:queryBuilder',\n  KNEX_SCHEMA_BUILDER: 'orchestrion:knex:schemaBuilder',\n  KNEX_RAW: 'orchestrion:knex:raw',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\nexport const koaConfig = [\n  {\n    channelName: 'use',\n    module: { name: 'koa', versionRange: '>=2.0.0 <4', filePath: 'lib/application.js' },\n    functionQuery: { className: 'Application', methodName: 'use', kind: 'Sync' },\n  },\n  // `callback()` gives us the live app via `ctx.self` so we can auto-register the\n  // error listener. We act on the channel's `end` (after the method body runs):\n  // koa registers its own default `error` listener inside `callback()` only when\n  // none exist yet, so attaching before that would suppress koa's default error\n  // logging. `app.listen()` funnels through `callback()`, so this covers both\n  // `app.listen()` and `http.createServer(app.callback())`.\n  {\n    channelName: 'callback',\n    module: { name: 'koa', versionRange: '>=2.0.0 <4', filePath: 'lib/application.js' },\n    functionQuery: { className: 'Application', methodName: 'callback', kind: 'Sync' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const koaModuleNames = getModuleNames(koaConfig);\n\nexport const koaChannels = {\n  KOA_USE: 'orchestrion:koa:use',\n  KOA_CALLBACK: 'orchestrion:koa:callback',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@langchain/*` packages ship dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file.\n\n// LangChain's chat model methods live on `BaseChatModel` in `@langchain/core` and are inherited by\n// every provider class (`ChatAnthropic`, `ChatOpenAI`, …), so a single hook there covers all\n// providers. `invoke` also backs `.batch()` (which calls `invoke` per item); `_streamIterator`\n// backs `.stream()`. The vendored OTel instrumentation instead patched each provider package to\n// dodge `@langchain/core` being bundled, but orchestrion transforms its source directly regardless\n// of bundling.\nconst chatModelConfig = ['dist/language_models/chat_models.cjs', 'dist/language_models/chat_models.js'].flatMap(\n  filePath => {\n    const module = { name: '@langchain/core', versionRange: '>=0.1.0 <2.0.0', filePath };\n\n    return [\n      {\n        channelName: 'chatModelInvoke',\n        module,\n        functionQuery: { className: 'BaseChatModel', methodName: 'invoke', kind: 'Async' as const },\n      },\n      {\n        channelName: 'chatModelStream',\n        module,\n        functionQuery: { className: 'BaseChatModel', methodName: '_streamIterator', kind: 'Async' as const },\n      },\n    ];\n  },\n);\n\n// Embeddings have no shared concrete method on the base class (each provider implements\n// `embedQuery`/`embedDocuments`), so they're hooked per package. These are the provider packages the\n// vendored OTel instrumentation covered that actually ship an `Embeddings` subclass: `@langchain/openai`,\n// `@langchain/google-genai` and `@langchain/mistralai` define the two methods on their own class, while\n// `@langchain/google-vertexai` inherits them from the shared `@langchain/google-common` base, so that base\n// is the module hooked for it. (anthropic and groq are chat-only — they ship no embeddings class.) The\n// `embedQuery`/`embedDocuments` channel names are per-method; orchestrion prefixes them with the module\n// name, so the full channel strings stay distinct across packages.\nconst EMBED_QUERY = 'embedQuery';\nconst EMBED_DOCUMENTS = 'embedDocuments';\n\nconst EMBEDDINGS_PROVIDERS = [\n  { name: '@langchain/openai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n  { name: '@langchain/google-genai', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n  { name: '@langchain/mistralai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n  // `@langchain/google-vertexai` inherits its embed methods from this shared base. The base's\n  // `embedQuery` delegates to `embedDocuments`, so hooking only `embedDocuments` still traces both\n  // entry points as a single span each, instead of emitting a nested duplicate for `embedQuery`.\n  { name: '@langchain/google-common', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_DOCUMENTS] },\n];\n\nconst embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(({ name, versionRange, methods }) =>\n  ['dist/embeddings.cjs', 'dist/embeddings.js'].flatMap(filePath =>\n    methods.map(method => ({\n      channelName: method,\n      module: { name, versionRange, filePath },\n      functionQuery: { methodName: method, kind: 'Async' as const },\n    })),\n  ),\n);\n\n// `TypeSafeClassifier` (`@langchain/typesafe`) is a plain `Runnable`, not a chat model, so the chat-model\n// hooks never add the Sentry callback handler to its runs.\nconst typesafeClassifierConfig = ['dist/classifier.cjs', 'dist/classifier.js'].map(filePath => ({\n  channelName: 'typesafeClassifierInvoke',\n  module: { name: '@langchain/typesafe', versionRange: '>=0.0.1 <1.0.0', filePath },\n  functionQuery: { className: 'TypeSafeClassifier', methodName: 'invoke', kind: 'Async' as const },\n}));\n\nexport const langchainConfig = [\n  ...chatModelConfig,\n  ...embeddingsConfig,\n  ...typesafeClassifierConfig,\n] satisfies InstrumentationConfig[];\n\n// The embeddings channel strings the subscriber binds to, derived from the provider list above so that\n// adding a provider is a single edit that both instruments it and subscribes the listener to it.\nexport const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(({ name, methods }) =>\n  methods.map(method => `orchestrion:${name}:${method}`),\n);\n\nexport const langchainModuleNames = getModuleNames(langchainConfig);\n\nexport const langchainChannels = {\n  LANGCHAIN_CHAT_MODEL_INVOKE: 'orchestrion:@langchain/core:chatModelInvoke',\n  LANGCHAIN_CHAT_MODEL_STREAM: 'orchestrion:@langchain/core:chatModelStream',\n  LANGCHAIN_TYPESAFE_CLASSIFIER_INVOKE: 'orchestrion:@langchain/typesafe:typesafeClassifierInvoke',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@langchain/langgraph` ships dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file. `StateGraph.compile`\n// and `createReactAgent` both return synchronously; the subscriber wraps the returned compiled graph's\n// `invoke` (mirroring the vendored OTel instrumentation, which patched these on the module exports).\nconst module = (filePath: string): InstrumentationConfig['module'] => ({\n  name: '@langchain/langgraph',\n  versionRange: '>=0.0.0 <2.0.0',\n  filePath,\n});\n\nconst compileConfig = ['dist/graph/state.cjs', 'dist/graph/state.js'].map(filePath => ({\n  channelName: 'stateGraphCompile',\n  module: module(filePath),\n  functionQuery: { className: 'StateGraph', methodName: 'compile', kind: 'Sync' as const },\n}));\n\n// `createReactAgent` is a single function declaration re-exported from both `@langchain/langgraph` and\n// `@langchain/langgraph/prebuilt`; hooking its definition file covers every import path.\nconst createReactAgentConfig = ['dist/prebuilt/react_agent_executor.cjs', 'dist/prebuilt/react_agent_executor.js'].map(\n  filePath => ({\n    channelName: 'createReactAgent',\n    module: module(filePath),\n    functionQuery: { functionName: 'createReactAgent', kind: 'Sync' as const },\n  }),\n);\n\nexport const langgraphConfig = [...compileConfig, ...createReactAgentConfig] satisfies InstrumentationConfig[];\n\nexport const langgraphModuleNames = getModuleNames(langgraphConfig);\n\nexport const langgraphChannels = {\n  LANGGRAPH_STATE_GRAPH_COMPILE: 'orchestrion:@langchain/langgraph:stateGraphCompile',\n  LANGGRAPH_CREATE_REACT_AGENT: 'orchestrion:@langchain/langgraph:createReactAgent',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const lruMemoizerConfig = [\n  {\n    channelName: 'load',\n    // `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0\n    module: { name: 'lru-memoizer', versionRange: '>=2.1.0 <4', filePath: 'lib/async.js' },\n    functionQuery: { functionName: 'memoizedFunction', kind: 'Callback' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const lruMemoizerModuleNames = getModuleNames(lruMemoizerConfig);\n\nexport const lruMemoizerChannels = {\n  LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { registrationOnly } from './registration-only';\n\n/**\n * Flue publishes no diagnostics channels and needs none: it is instrumented by registering with\n * `instrument()`, not by patching call sites. Transforming the entry is only how the module's\n * integration gets registered at evaluation time, which is what installs it on a bundler-only SDK\n * like `@sentry/cloudflare`.\n */\nexport const flueConfig = [\n  registrationOnly({ name: '@flue/runtime', versionRange: '>=2.0.0 <3.0.0', filePath: 'dist/index.mjs' }),\n] satisfies InstrumentationConfig[];\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `class Mastra` lives only in tsdown's content-hashed chunk (`dist/mastra-RpLTNzL-.js` and\n// `dist/mastra-Dzmadbjh.cjs` in 1.63.2). The stable files (`dist/index.js`, `dist/mastra/index.js`)\n// are one-line re-exports, so an exact `filePath` cannot wrap the constructor.\n// The pattern therefore matches any `mastra*` chunk, in `dist/` or one level below, so a rename or\n// relocation within the supported range does not silently stop the instrumentation. `className`\n// remains the real selector, and `attachExporter` rejects anything without `registerExporter`.\n// `registerExporter()` exists since 1.63.2.\nconst mastraConstructorConfig: InstrumentationConfig[] = [\n  {\n    channelName: 'mastraConstructor',\n    module: {\n      name: '@mastra/core',\n      versionRange: '>=1.63.2 <2.0.0',\n      filePath: /^dist\\/(?:[\\w.-]+\\/)?mastra[\\w.-]*\\.(?:cjs|mjs|js)$/,\n    },\n    // No `methodName` → class constructor. The `end` message's `self` is the instance.\n    functionQuery: { className: 'Mastra' },\n  },\n];\n\n// Mastra runs each operation's work inside `executeWithContext({ span, fn })` /\n// `executeWithContextSync` (its own async-context helper: `spanContextStorage.run(span, fn)`), passing\n// the operation's AISpan. Wrapping these lets us make the *exporter's* matching Sentry span active for\n// the duration, so work Mastra does inside — an outgoing model `fetch`, a `dataloader.load` in a tool —\n// nests under it. Both live in the stable, unhashed `observability/context-storage` entry (a real\n// package export, not a content-hashed chunk), so an exact-ish path match is safe. `functionName`\n// selects the exported functions.\nconst mastraContextConfig: InstrumentationConfig[] = ['executeWithContext', 'executeWithContextSync'].map(\n  functionName => ({\n    channelName: 'mastraExecuteWithContext',\n    module: {\n      name: '@mastra/core',\n      versionRange: '>=1.63.2 <2.0.0',\n      filePath: /^dist\\/observability\\/context-storage\\.(?:cjs|mjs|js)$/,\n    },\n    functionQuery: { functionName, kind: 'Auto' as const },\n  }),\n);\n\n// Mastra's `classifier_evaluation` span carries no input or output, so we read them from the\n// `Classifier.evaluate()` call. `Classifier` lives in the stable, unhashed `classifier` entry.\nconst mastraClassifierConfig: InstrumentationConfig[] = [\n  {\n    channelName: 'mastraClassifierEvaluate',\n    module: {\n      name: '@mastra/core',\n      versionRange: '>=1.63.2 <2.0.0',\n      filePath: /^dist\\/classifier\\/index\\.(?:cjs|mjs|js)$/,\n    },\n    functionQuery: { className: 'Classifier', methodName: 'evaluate', kind: 'Async' },\n  },\n];\n\nexport const mastraConfig = [\n  ...mastraConstructorConfig,\n  ...mastraContextConfig,\n  ...mastraClassifierConfig,\n] satisfies InstrumentationConfig[];\n\nexport const mastraModuleNames = getModuleNames(mastraConfig);\n\nexport const mastraChannels = {\n  MASTRA_CONSTRUCTOR: 'orchestrion:@mastra/core:mastraConstructor',\n  MASTRA_EXECUTE_WITH_CONTEXT: 'orchestrion:@mastra/core:mastraExecuteWithContext',\n  MASTRA_CLASSIFIER_EVALUATE: 'orchestrion:@mastra/core:mastraClassifierEvaluate',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nconst module = { name: '@earendil-works/pi-durable', versionRange: '>=1.0.0 <2.0.0' };\n\n// `Harness.open(storage, options, context)` is a method of the exported `Harness` object literal, the\n// one entry point to a Harness. Its `options` carry the `models` and `registry` every model request\n// and task phase goes through, so wrapping them at `start` covers the whole Harness.\nexport const piDurableConfig = [\n  {\n    channelName: 'harnessOpen',\n    module: { ...module, filePath: 'dist/harness/harness.js' },\n    functionQuery: { methodName: 'open', kind: 'Async' as const },\n  },\n  // The factories of the built-in coding tools. Their tools throw to report expected failures to the\n  // model, so the integration must know them wherever an app registers them.\n  ...[\n    ['bash', 'createBashTool'],\n    ['read', 'createReadTool'],\n    ['edit', 'createEditTool'],\n    ['write', 'createWriteTool'],\n  ].map(([file, functionName]) => ({\n    channelName: 'codingTool',\n    module: { ...module, filePath: `dist/tools/${file}.js` },\n    functionQuery: { functionName: functionName as string, kind: 'Sync' as const },\n  })),\n] satisfies InstrumentationConfig[];\n\nexport const piDurableModuleNames = getModuleNames(piDurableConfig);\n\nexport const piDurableChannels = {\n  PI_DURABLE_HARNESS_OPEN: 'orchestrion:@earendil-works/pi-durable:harnessOpen',\n  PI_DURABLE_CODING_TOOL: 'orchestrion:@earendil-works/pi-durable:codingTool',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@modelcontextprotocol/server` v2 ships pre-bundled (tsdown) in content-hashed chunks:\n// `class McpServer` lives only in `dist/mcp-<hash>.{mjs,cjs}` (2.0.0: `mcp-DXXb3Vv3.mjs`,\n// `mcp-D7GmuPnv.cjs`), while the stable `dist/index.mjs` is a pure re-export. An exact\n// `filePath` therefore cannot target the constructor, so the pattern matches any `mcp-*`\n// chunk in `dist/` and `className: 'McpServer'` stays the real selector — the same shape\n// `mastra.ts` uses for its hashed `Mastra` chunk. `McpServer.connect()` delegates to the\n// underlying `Server`/`Protocol`, so hooking the constructor is enough to reach everything.\nconst mcpServerV2Config: InstrumentationConfig[] = [\n  {\n    channelName: 'mcpServerConstructor',\n    module: {\n      name: '@modelcontextprotocol/server',\n      versionRange: '>=2.0.0 <3',\n      filePath: /^dist\\/mcp-[\\w-]+\\.(?:cjs|mjs)$/,\n    },\n    // No `methodName` → class constructor. The `end` message's `self` is the new instance.\n    functionQuery: { className: 'McpServer' },\n  },\n];\n\n// `@modelcontextprotocol/sdk` v1 ships unbundled, so `McpServer` sits at a stable path — the\n// subpath export `.../server/mcp.js` resolves to `dist/{cjs,esm}/server/mcp.js`. The regex\n// matches both build flavors from the module root without hard-coding the `dist/esm` vs\n// `dist/cjs` prefix, and `className: 'McpServer'` stays the real selector.\nconst mcpServerV1Config: InstrumentationConfig[] = [\n  {\n    channelName: 'mcpServerConstructor',\n    module: {\n      name: '@modelcontextprotocol/sdk',\n      versionRange: '>=1.9.0 <2',\n      filePath: /(?:^|\\/)server\\/mcp\\.js$/,\n    },\n    functionQuery: { className: 'McpServer' },\n  },\n];\n\nexport const mcpServerConfig = [...mcpServerV2Config, ...mcpServerV1Config] satisfies InstrumentationConfig[];\n\nexport const mcpServerModuleNames = getModuleNames(mcpServerConfig);\n\nexport const mcpServerChannels = {\n  // Orchestrion prefixes each `channelName` with `orchestrion:${module.name}:`, so v1 and v2\n  // publish to distinct channels even though the suffix is shared — the integration subscribes\n  // to both.\n  MCP_SERVER_V2_CONSTRUCTOR: 'orchestrion:@modelcontextprotocol/server:mcpServerConstructor',\n  MCP_SERVER_V1_CONSTRUCTOR: 'orchestrion:@modelcontextprotocol/sdk:mcpServerConstructor',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@mistralai/mistralai` v2+ is ESM-only, so there is a single built file per resource (no dual CJS/ESM\n// variants). Each SDK resource class exposes async methods that return a thenable, so `kind: 'Auto'`\n// resolves to `wrapPromise`; the `.stream` methods resolve to an async-iterable `EventStream`.\nconst MODULE = { name: '@mistralai/mistralai', versionRange: '>=2.0.0 <4' } as const;\n\nconst CHAT_FILE = { ...MODULE, filePath: 'esm/sdk/chat.js' } as const;\nconst AGENTS_FILE = { ...MODULE, filePath: 'esm/sdk/agents.js' } as const;\n\n// Streaming methods get their own channel so both the span attributes and the stream handling can be\n// driven by the method that fired, instead of duck-typing the resolved value.\nexport const mistralConfig = [\n  {\n    channelName: 'chat',\n    module: CHAT_FILE,\n    functionQuery: { className: 'Chat', methodName: 'complete', kind: 'Auto' as const },\n  },\n  {\n    channelName: 'chat',\n    module: CHAT_FILE,\n    functionQuery: { className: 'Chat', methodName: 'parse', kind: 'Auto' as const },\n  },\n  {\n    channelName: 'chat-stream',\n    module: CHAT_FILE,\n    functionQuery: { className: 'Chat', methodName: 'stream', kind: 'Auto' as const },\n  },\n  {\n    channelName: 'chat-stream',\n    module: CHAT_FILE,\n    functionQuery: { className: 'Chat', methodName: 'parseStream', kind: 'Auto' as const },\n  },\n  {\n    channelName: 'embeddings',\n    module: { ...MODULE, filePath: 'esm/sdk/embeddings.js' },\n    functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Auto' as const },\n  },\n  {\n    channelName: 'agents',\n    module: AGENTS_FILE,\n    functionQuery: { className: 'Agents', methodName: 'complete', kind: 'Auto' as const },\n  },\n  {\n    channelName: 'agents-stream',\n    module: AGENTS_FILE,\n    functionQuery: { className: 'Agents', methodName: 'stream', kind: 'Auto' as const },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const mistralModuleNames = getModuleNames(mistralConfig);\n\nexport const mistralChannels = {\n  MISTRAL_CHAT: 'orchestrion:@mistralai/mistralai:chat',\n  MISTRAL_CHAT_STREAM: 'orchestrion:@mistralai/mistralai:chat-stream',\n  MISTRAL_EMBEDDINGS: 'orchestrion:@mistralai/mistralai:embeddings',\n  MISTRAL_AGENTS: 'orchestrion:@mistralai/mistralai:agents',\n  MISTRAL_AGENTS_STREAM: 'orchestrion:@mistralai/mistralai:agents-stream',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// The mongodb driver's command architecture changed across majors, mirrored in the vendored OTel\n// instrumentation's version bands:\n//   - >= 6.4: promise-based `Connection.prototype.command`\n//   - >= 4.0 < 6.4: callback-based `Connection.prototype.command` + `ConnectionPool.checkOut`\n//     (the pool runs the checkout callback in a detached context, so the channel re-propagates the\n//     caller's async context to it — see the subscriber)\n//   - >= 3.3 < 4: the `lib/core/wireprotocol` module functions\nconst module = { name: 'mongodb' } as const;\n\nexport const mongodbConfig = [\n  // Band 1: mongodb >= 6.4 — promise-based command.\n  // `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes\n  // containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see\n  // `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.\n  {\n    channelName: 'command',\n    module: { ...module, versionRange: '>=6.4.0 <8', filePath: 'lib/cmap/connection.js' },\n    functionQuery: { methodName: 'command', kind: 'Async' },\n  },\n  // Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).\n  {\n    channelName: 'command',\n    module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection.js' },\n    functionQuery: { methodName: 'command', kind: 'Callback' },\n  },\n  // Band 2: the pool runs the checkout callback in a detached async context, so the operation's\n  // `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates\n  // that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).\n  // Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.\n  {\n    channelName: 'checkout',\n    module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection_pool.js' },\n    functionQuery: { methodName: 'checkOut', kind: 'Callback' },\n  },\n  // Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate\n  // `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named\n  // function expressions in the `index.js` `module.exports` object (matched by `expressionName`);\n  // `command`/`query`/`getMore` are single-function modules (matched by `functionName`).\n  ...(['insert', 'update', 'remove'] as const).map(op => ({\n    channelName: `v3_${op}`,\n    module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/index.js' },\n    functionQuery: { expressionName: op, kind: 'Callback' as const },\n  })),\n  {\n    channelName: 'v3_command',\n    module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/command.js' },\n    functionQuery: { functionName: 'command', kind: 'Callback' },\n  },\n  {\n    channelName: 'v3_query',\n    module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/query.js' },\n    functionQuery: { functionName: 'query', kind: 'Callback' },\n  },\n  {\n    channelName: 'v3_get_more',\n    module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/get_more.js' },\n    functionQuery: { functionName: 'getMore', kind: 'Callback' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const mongodbModuleNames = getModuleNames(mongodbConfig);\n\nexport const mongodbChannels = {\n  MONGODB_COMMAND: 'orchestrion:mongodb:command',\n  MONGODB_CHECKOUT: 'orchestrion:mongodb:checkout',\n  MONGODB_V3_INSERT: 'orchestrion:mongodb:v3_insert',\n  MONGODB_V3_UPDATE: 'orchestrion:mongodb:v3_update',\n  MONGODB_V3_REMOVE: 'orchestrion:mongodb:v3_remove',\n  MONGODB_V3_COMMAND: 'orchestrion:mongodb:v3_command',\n  MONGODB_V3_QUERY: 'orchestrion:mongodb:v3_query',\n  MONGODB_V3_GET_MORE: 'orchestrion:mongodb:v3_get_more',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// mongoose >= 9.7.0 publishes via its own `node:diagnostics_channel` tracing channels (handled by\n// `subscribeMongooseDiagnosticChannels`), so this transform is gated to `< 9.7.0` to avoid emitting\n// two spans per operation. The lower bound mirrors the vendored OTel IITM patcher's supported range.\nconst module = { name: 'mongoose', versionRange: '>=5.9.7 <9.7.0' } as const;\n\n// mongoose defines its prototype/static methods as assignments\n// (`Query.prototype.find = function(...)`, most of them anonymous), so the\n// transform matches the assigned property name via `expressionName`\n// rather than the function name. Entries whose method does not exist in a\n// given major are simply inert.\n\n// Builder methods that run synchronously and return a `Query`/`Aggregate`.\n// They don't get their own span; the subscriber only reads the active span\n// at build time and stashes it on the query so the later `exec()` can parent\n// to where the query was *built*, not where it is awaited. `kind: 'Sync'`\n// so the returned thenable isn't mistaken for the traced operation's result.\nconst CONTEXT_CAPTURE_QUERY_METHODS = [\n  'find',\n  'findOne',\n  'deleteOne',\n  'deleteMany',\n  'estimatedDocumentCount',\n  'countDocuments',\n  'distinct',\n  'where',\n  '$where',\n  'findOneAndUpdate',\n  'findOneAndDelete',\n  'findOneAndReplace',\n  // 5/6/7 only (removed in 8), inert in recent versions\n  'remove',\n  'count',\n  'findOneAndRemove',\n] as const;\n\nexport const mongooseConfig = [\n  registrationOnly({ name: 'mongoose', versionRange: '>=9.7.0', filePath: 'lib/query.js' }),\n  // Query execution\n  // the span for most read/write operations. `op`, collection and model are\n  // read off the `Query` at exec time.\n  {\n    channelName: 'query_exec',\n    module: { ...module, filePath: 'lib/query.js' },\n    functionQuery: { expressionName: 'exec', kind: 'Auto' },\n  },\n  // Aggregation pipeline execution.\n  {\n    channelName: 'aggregate_exec',\n    module: { ...module, filePath: 'lib/aggregate.js' },\n    functionQuery: { expressionName: 'exec', kind: 'Auto' },\n  },\n  // `doc.save()` (and its `$save` alias, which mongoose points at `save` on\n  // require. the alias picks up the transformed body automatically, so no\n  // separate entry is needed).\n  {\n    channelName: 'model_save',\n    module: { ...module, filePath: 'lib/model.js' },\n    functionQuery: { expressionName: 'save', kind: 'Auto' },\n  },\n  // Static batch operations.\n  {\n    channelName: 'model_insert_many',\n    module: { ...module, filePath: 'lib/model.js' },\n    functionQuery: { expressionName: 'insertMany', kind: 'Auto' },\n  },\n  {\n    channelName: 'model_bulk_write',\n    module: { ...module, filePath: 'lib/model.js' },\n    functionQuery: { expressionName: 'bulkWrite', kind: 'Auto' },\n  },\n  // `doc.remove()` (a document method, deprecated in 6 and removed in 7)\n  // `expressionName: 'remove'` also matches the sibling `Model.remove`\n  // *static* in this file, which no matcher can tell apart from the prototype\n  // method; that static is deprecated and would just produce a redundant span\n  // so the collision is accepted rather than dropping the doc-method span.\n  {\n    channelName: 'model_remove',\n    module: { ...module, filePath: 'lib/model.js' },\n    functionQuery: { expressionName: 'remove', kind: 'Auto' },\n  },\n  // NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately\n  // NOT hooked here. The vendored OTel/IITM patcher wraps\n  // `Model.prototype.updateOne`/`deleteOne`, but those delegate to\n  // `Query.exec`, which the `query_exec` channel above already instruments\n  // (its `this.op` is the right operation). Verified by the `mongoose-v8`\n  // suite against a real mongoose 8.21+ under orchestrion. A dedicated hook\n  // is also not possible cleanly: `expressionName: 'updateOne'` in\n  // `lib/model.js` can't be told apart from the same-named `Model.updateOne`\n  // *static* (the common query-builder form), so hooking it would double-span\n  // every `Model.updateOne(...)` call.\n  //\n  // `Model.aggregate()` builds an `Aggregate` with no method to hook for\n  // context capture, so hook the static itself and stash the active span\n  // on the returned aggregate. `Sync`: it returns the aggregate.\n  {\n    channelName: 'model_aggregate',\n    module: { ...module, filePath: 'lib/model.js' },\n    functionQuery: { expressionName: 'aggregate', kind: 'Sync' },\n  },\n  ...CONTEXT_CAPTURE_QUERY_METHODS.map(methodName => ({\n    channelName: `ctx_${methodName}`,\n    module: { ...module, filePath: 'lib/query.js' },\n    functionQuery: { expressionName: methodName, kind: 'Sync' as const },\n  })),\n] satisfies InstrumentationConfig[];\n\nexport const mongooseModuleNames = getModuleNames(mongooseConfig);\n\nexport const mongooseChannels = {\n  MONGOOSE_QUERY_EXEC: 'orchestrion:mongoose:query_exec',\n  MONGOOSE_AGGREGATE_EXEC: 'orchestrion:mongoose:aggregate_exec',\n  MONGOOSE_MODEL_SAVE: 'orchestrion:mongoose:model_save',\n  MONGOOSE_MODEL_INSERT_MANY: 'orchestrion:mongoose:model_insert_many',\n  MONGOOSE_MODEL_BULK_WRITE: 'orchestrion:mongoose:model_bulk_write',\n  MONGOOSE_MODEL_REMOVE: 'orchestrion:mongoose:model_remove',\n  MONGOOSE_MODEL_AGGREGATE: 'orchestrion:mongoose:model_aggregate',\n} as const;\n\n/**\n * Fully-qualified names of the context-capture channels, derived from the\n * same method list the transform config uses so the two can't drift. The\n * subscriber subscribes to all of them uniformly to stash the build-time\n * parent span (see `mongooseChannels` for the span-creating channels).\n */\nexport const MONGOOSE_CONTEXT_CAPTURE_CHANNELS: string[] = CONTEXT_CAPTURE_QUERY_METHODS.map(\n  methodName => `orchestrion:mongoose:ctx_${methodName}`,\n);\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// Ports `@opentelemetry/instrumentation-mysql2` (which patches `query`/`execute` on the connection\n// prototype) to orchestrion channel injection.\n//\n// Two file layouts across the supported range:\n//   - `< 3.11.5`  → `class Connection` with `query`/`execute` in `lib/connection.js`\n//   - `>= 3.11.5` → the methods moved to `class BaseConnection` in `lib/base/connection.js`\n//\n// Gated to `< 3.20.0`: from 3.20.0 mysql2 publishes to `node:diagnostics_channel` natively, and\n// that path is instrumented by `subscribeMysql2DiagnosticChannels` instead. Injecting there too\n// would emit two spans per query.\n//\n// `Callback` traces the callback shapes: `query(sql, cb)`, `query(sql, values, cb)`, and — since the\n// promise API funnels through the callback form — `await connection.query(sql)`. `execute` never\n// delegates to `query` internally, so instrumenting both is safe.\n//\n// NOT `Auto`: `Auto`'s no-callback branch probes the return value for `.then`, but mysql2's callback-\n// less `query(sql)` returns a `Query` whose `.then()` throws (mysql2's \"use the promise wrapper\"\n// guard) — so `Auto` would crash streamed queries. `Callback` leaves that shape untouched (a rare,\n// row-streaming use that consumes the emitter's events), the tradeoff being it isn't traced.\nexport const mysql2Config = [\n  registrationOnly({ name: 'mysql2', versionRange: '>=3.20.0', filePath: 'lib/base/connection.js' }),\n  {\n    channelName: 'query',\n    module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n    functionQuery: { className: 'Connection', methodName: 'query', kind: 'Callback' },\n  },\n  {\n    channelName: 'execute',\n    module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n    functionQuery: { className: 'Connection', methodName: 'execute', kind: 'Callback' },\n  },\n  {\n    channelName: 'query',\n    module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n    functionQuery: { className: 'BaseConnection', methodName: 'query', kind: 'Callback' },\n  },\n  {\n    channelName: 'execute',\n    module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n    functionQuery: { className: 'BaseConnection', methodName: 'execute', kind: 'Callback' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const mysql2ModuleNames = getModuleNames(mysql2Config);\n\nexport const mysql2Channels = {\n  MYSQL2_QUERY: 'orchestrion:mysql2:query',\n  MYSQL2_EXECUTE: 'orchestrion:mysql2:execute',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const mysqlConfig = [\n  {\n    channelName: 'query',\n    module: { name: 'mysql', versionRange: '>=2.0.0 <3', filePath: 'lib/Connection.js' },\n    functionQuery: { expressionName: 'query', kind: 'Auto' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const mysqlModuleNames = getModuleNames(mysqlConfig);\n\nexport const mysqlChannels = {\n  MYSQL_QUERY: 'orchestrion:mysql:query',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@neondatabase/serverless` ships as two minified esbuild bundles (`index.js` for CJS,\n// `index.mjs` for ESM) that inline their own copy of `pg`. Class and function identifiers are\n// mangled and differ between the two builds, so the name-based `functionQuery` matchers can't\n// find anything. Every selector below keys on property names and string literals, which survive\n// minification and are identical in both bundles.\nconst module = { name: '@neondatabase/serverless', versionRange: '>=1.0.0 <2', filePath: /^index\\.m?js$/ };\n\nexport const neonConfig = [\n  // The bundled pg `Client.prototype.query` (WebSocket driver). `_pulseQueryQueue` is a pg\n  // internal that only `Client` defines, which keeps the pool and wire-protocol `query` methods\n  // out. `methodName` is ignored for matching (`astQuery` wins) but makes the transformer emit a\n  // method wrapper that exposes `self`, which carries `connectionParameters`.\n  {\n    channelName: 'query',\n    module,\n    astQuery:\n      'ClassBody:has(MethodDefinition[key.name=\"_pulseQueryQueue\"]) > MethodDefinition[key.name=\"query\"] > FunctionExpression',\n    functionQuery: { methodName: 'query', kind: 'Auto' },\n  },\n  // The HTTP executor nested inside `neon()`. Every HTTP query funnels through it: lazy\n  // `NeonQueryPromise`s call it from `then`/`catch`/`finally`, and `transaction()` calls it once\n  // with the whole batch, so wrapping it gives one span per request with no double counting.\n  {\n    channelName: 'http-query',\n    module,\n    astQuery: 'FunctionDeclaration[async=true]:has(Literal[value=\"Neon-Connection-String\"])',\n    functionQuery: { kind: 'Async' },\n  },\n  // `resolveConnectionParams`, awaited by the HTTP executor. The connection string lives in the\n  // `neon()` closure and never reaches the executor's channel context, so the subscriber reads\n  // `server.address`/`db.namespace` from this call's result instead, inside the query span.\n  {\n    channelName: 'resolve-connection',\n    module,\n    astQuery:\n      'FunctionDeclaration[async=true]:has(ReturnStatement > ObjectExpression > Property[key.name=\"resolvedURL\"])',\n    functionQuery: { kind: 'Async' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const neonModuleNames = getModuleNames(neonConfig);\n\nexport const neonChannels = {\n  NEON_QUERY: 'orchestrion:@neondatabase/serverless:query',\n  NEON_HTTP_QUERY: 'orchestrion:@neondatabase/serverless:http-query',\n  NEON_RESOLVE_CONNECTION: 'orchestrion:@neondatabase/serverless:resolve-connection',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * Wrap an instrumentation that targets nodes via a raw esquery selector\n * (`NstQuery`) rather than the structured `functionQuery`. Needed when the\n * target can't be named, e.g. the anonymous arrow a decorator factory returns\n * The transformer supports `astQuery` at runtime (it takes precedence over\n * `functionQuery`, which then only supplies `kind`), but it isn't in the\n * published `InstrumentationConfig` type. Hence the cast.\n */\nfunction astQueryInstrumentation(config: {\n  channelName: string;\n  module: InstrumentationConfig['module'];\n  astQuery: string;\n  functionQuery: { kind: 'Sync' | 'Async' | 'Callback' | 'Auto' };\n}): InstrumentationConfig {\n  return config;\n}\n\n/**\n * NestJS is different from the other instrumentations here. It's a standalone\n * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that\n * package rather than in `server-utils`. Only the code-transform config (and\n * the channel names below) live here, so `@nestjs/*` is transformed whenever\n * orchestrion is enabled, same as every other library.\n *\n * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the\n * channel-vs-OTel path based on the global injection flag.\n */\nexport const nestjsConfig = [\n  {\n    channelName: 'nestFactoryCreate',\n    module: { name: '@nestjs/core', versionRange: '>=8.0.0 <13', filePath: 'nest-factory.js' },\n    functionQuery: { className: 'NestFactoryStatic', methodName: 'create', kind: 'Async' },\n  },\n  {\n    channelName: 'routerExecutionContextCreate',\n    module: { name: '@nestjs/core', versionRange: '>=8.0.0 <13', filePath: 'router/router-execution-context.js' },\n    functionQuery: { className: 'RouterExecutionContext', methodName: 'create', kind: 'Sync' },\n  },\n  astQueryInstrumentation({\n    // `@nestjs/common/decorators/core/injectable.decorator.js`:\n    //   `function Injectable(options) { return (target) => { ... }; }`\n    // The inner decorator arrow is anonymous + returned, so only a raw\n    // `astQuery` can target it. The subscriber's `start` receives the\n    // decorated class as `arguments[0]` and patches its prototype\n    // use/canActivate/transform/intercept methods, reproducing the\n    // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor\n    // spans. No span on the decorator itself, so `kind: 'Sync'`.\n    channelName: 'injectableDecorator',\n    module: {\n      name: '@nestjs/common',\n      versionRange: '>=8.0.0 <13',\n      filePath: 'decorators/core/injectable.decorator.js',\n    },\n    astQuery: 'FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression',\n    functionQuery: { kind: 'Sync' },\n  }),\n  astQueryInstrumentation({\n    // `@nestjs/common/decorators/core/catch.decorator.js`:\n    //   `function Catch(...exceptions) { return (target) => { ... }; }`\n    // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's\n    // `start` patches the exception filter's prototype `catch` method to\n    // open an `exception_filter` span.\n    //\n    // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.\n    channelName: 'catchDecorator',\n    module: { name: '@nestjs/common', versionRange: '>=8.0.0 <13', filePath: 'decorators/core/catch.decorator.js' },\n    astQuery: 'FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression',\n    functionQuery: { kind: 'Sync' },\n  }),\n  // @nestjs/schedule @Cron/@Interval/@Timeout:\n  // `function Cron(...) { return applyDecorators(...); }`\n  // The returned decorator has no inline arrow to target, so we match the\n  // factory function and reassign `data.result` in `end` to wrap the\n  // decorator it returns (which rewrites the user handler `descriptor.value`\n  // with isolation-scope + error capture).\n  // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we\n  // match so opting in doesn't drop coverage the OTel path had. The compiled\n  // `function Cron(...)` declaration is unchanged across 2.x–5.x.\n  {\n    channelName: 'cronDecorator',\n    module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/cron.decorator.js' },\n    functionQuery: { functionName: 'Cron', kind: 'Sync' },\n  },\n  {\n    channelName: 'intervalDecorator',\n    module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/interval.decorator.js' },\n    functionQuery: { functionName: 'Interval', kind: 'Sync' },\n  },\n  {\n    channelName: 'timeoutDecorator',\n    module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/timeout.decorator.js' },\n    functionQuery: { functionName: 'Timeout', kind: 'Sync' },\n  },\n  {\n    // The function `ScheduleExplorer` returns here is what `@nestjs/schedule` passes to `CronJob` as `onTick`.\n    // From 6.0.0 it uses `cron` 4.3+, whose jobs have names.\n    channelName: 'scheduleExplorerWrap',\n    module: { name: '@nestjs/schedule', versionRange: '>=6.0.0', filePath: 'dist/schedule.explorer.js' },\n    functionQuery: { className: 'ScheduleExplorer', methodName: 'wrapFunctionInTryCatchBlocks', kind: 'Sync' },\n  },\n  {\n    // @nestjs/event-emitter @OnEvent:\n    // `const OnEvent = (event, options) => {\n    //   const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;\n    // }`\n    // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`\n    // reassigns `data.result` to wrap the returned decorator, which rewrites\n    // the handler to open an `event.nestjs` span.\n    // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`\n    // shape is unchanged across 2.x–3.x.\n    channelName: 'onEventDecorator',\n    module: {\n      name: '@nestjs/event-emitter',\n      versionRange: '>=2.0.0',\n      filePath: 'dist/decorators/on-event.decorator.js',\n    },\n    functionQuery: { expressionName: 'OnEvent', kind: 'Sync' },\n  },\n  {\n    // @nestjs/bullmq @Processor:\n    // `function Processor(...) { return (target) => {...}; }`\n    // The factory arg carries the queue name, so we match the factory and\n    // reassign `data.result` in `end` to wrap the returned class decorator\n    // (which patches `target.prototype.process`).\n    // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`\n    // declaration is unchanged across\n    // 10.x–11.x.\n    channelName: 'processorDecorator',\n    module: {\n      name: '@nestjs/bullmq',\n      versionRange: '>=10.0.0',\n      filePath: 'dist/decorators/processor.decorator.js',\n    },\n    functionQuery: { functionName: 'Processor', kind: 'Sync' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const nestjsChannels = {\n  NESTJS_APP_CREATION: 'orchestrion:@nestjs/core:nestFactoryCreate',\n  NESTJS_ROUTER_CONTEXT: 'orchestrion:@nestjs/core:routerExecutionContextCreate',\n  NESTJS_INJECTABLE: 'orchestrion:@nestjs/common:injectableDecorator',\n  NESTJS_CATCH: 'orchestrion:@nestjs/common:catchDecorator',\n  NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator',\n  NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator',\n  NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator',\n  NESTJS_SCHEDULE_EXPLORER_WRAP: 'orchestrion:@nestjs/schedule:scheduleExplorerWrap',\n  NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator',\n  NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { registrationOnly } from './registration-only';\n\n/**\n * Nitro's instrumentation consumes tracing channels that h3, srvx and unstorage publish natively, so\n * no channels are injected: transforming h3's entry file only registers `nitroIntegration` at\n * evaluation time, which is what installs it on a bundler-only SDK like `@sentry/cloudflare`. On\n * `@sentry/node` (and deno/bun) the integration is registered statically, so this is a no-op there.\n *\n * Anchored on `h3` because every HTTP-serving Nitro app loads it. The anchor only triggers\n * registration; the integration then subscribes to all of its channels (including unstorage's),\n * independent of which module loaded it.\n *\n * The `-0` in the version range matters: h3 ships the version Nitro 3 uses as a prerelease\n * (`2.0.1-rc.*`). The orchestrion matcher is the vendored `semifies` (used by both the runtime loader\n * and the bundler plugins), where a range carrying a prerelease tag enables prerelease matching\n * across patch tuples — so `>=2.0.0-0` matches `2.0.1-rc.*`. (Plain node-semver would not: it drops\n * prereleases of a higher patch tuple.)\n */\nexport const nitroConfig = [\n  registrationOnly({ name: 'h3', versionRange: '>=2.0.0-0', filePath: 'dist/h3.mjs' }),\n] satisfies InstrumentationConfig[];\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\nconst createTask = { functionName: 'createTask', kind: 'Sync' } as const;\n\n// `schedule()` calls `createTask(expression, func, options)`, so wrapping `createTask` covers both.\n// Before 4.6, node-cron reads weekday ranges like `sat-sun` differently, so those versions get their own channel.\nexport const nodeCronConfig = [\n  {\n    channelName: 'createTask',\n    module: { name: 'node-cron', versionRange: '>=4.6.0 <5', filePath: 'dist/node-cron.cjs' },\n    functionQuery: createTask,\n  },\n  {\n    channelName: 'createTask',\n    module: { name: 'node-cron', versionRange: '>=4.6.0 <5', filePath: 'dist/node-cron.js' },\n    functionQuery: createTask,\n  },\n  {\n    channelName: 'v4_createTask',\n    module: { name: 'node-cron', versionRange: '>=4.3.0 <4.6.0', filePath: 'dist/node-cron.cjs' },\n    functionQuery: createTask,\n  },\n  {\n    channelName: 'v4_createTask',\n    module: { name: 'node-cron', versionRange: '>=4.0.0 <4.6.0', filePath: 'dist/node-cron.js' },\n    functionQuery: createTask,\n  },\n  {\n    channelName: 'v4_createTask',\n    module: { name: 'node-cron', versionRange: '>=4.0.0 <4.3.0', filePath: 'dist/cjs/node-cron.js' },\n    functionQuery: createTask,\n  },\n  {\n    channelName: 'v4_createTask',\n    module: { name: 'node-cron', versionRange: '>=4.0.0 <4.3.0', filePath: 'dist/esm/node-cron.js' },\n    functionQuery: createTask,\n  },\n  {\n    channelName: 'v3_createTask',\n    module: { name: 'node-cron', versionRange: '>=3.0.0 <4', filePath: 'src/node-cron.js' },\n    functionQuery: createTask,\n  },\n] satisfies InstrumentationConfig[];\n\nexport const nodeCronModuleNames = getModuleNames(nodeCronConfig);\n\nexport const nodeCronChannels = {\n  NODE_CRON_CREATE_TASK: 'orchestrion:node-cron:createTask',\n  NODE_CRON_V4_CREATE_TASK: 'orchestrion:node-cron:v4_createTask',\n  NODE_CRON_V3_CREATE_TASK: 'orchestrion:node-cron:v3_createTask',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// `scheduleJob`, `rescheduleJob` and `job.reschedule` all call `job.schedule(spec)`. `Job` moved from\n// `lib/schedule.js` to `lib/Job.js` in 2.0.0.\nconst schedule = {\n  channelName: 'schedule',\n  astQuery:\n    \"AssignmentExpression[left.object.property.name='prototype'][left.property.name='schedule'] > FunctionExpression\",\n  // `methodName` gives subscribers `self` before the call, not just after. `astQuery` still picks the function.\n  functionQuery: { methodName: 'schedule', kind: 'Sync' },\n} as const;\n\nexport const nodeScheduleConfig = [\n  {\n    ...schedule,\n    module: { name: 'node-schedule', versionRange: '>=1.3.0 <2', filePath: 'lib/schedule.js' },\n  },\n  {\n    ...schedule,\n    module: { name: 'node-schedule', versionRange: '>=2.0.0 <3', filePath: 'lib/Job.js' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const nodeScheduleModuleNames = getModuleNames(nodeScheduleConfig);\n\nexport const nodeScheduleChannels = {\n  NODE_SCHEDULE_SCHEDULE: 'orchestrion:node-schedule:schedule',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const openaiConfig = [\n  // Sync tracing preserves APIPromise's lazy body parsing; Auto would trigger it via .then().\n  ...['resources/chat/completions/completions.js', 'resources/chat/completions/completions.mjs'].map(filePath => ({\n    channelName: 'chat',\n    module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n    functionQuery: { className: 'Completions', methodName: 'create', kind: 'Sync' as const },\n  })),\n  // OpenAI responses API — same `create(body, options)` shape as chat completions.\n  ...['resources/responses/responses.js', 'resources/responses/responses.mjs'].map(filePath => ({\n    channelName: 'chat',\n    module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n    functionQuery: { className: 'Responses', methodName: 'create', kind: 'Sync' as const },\n  })),\n  // OpenAI embeddings API — same `create(body, options)` shape as chat completions.\n  ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n    channelName: 'embeddings',\n    module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n    functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Sync' as const },\n  })),\n  // OpenAI conversations API — same `create(body, options)` shape as chat completions.\n  ...['resources/conversations/conversations.js', 'resources/conversations/conversations.mjs'].map(filePath => ({\n    channelName: 'chat',\n    module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n    functionQuery: { className: 'Conversations', methodName: 'create', kind: 'Sync' as const },\n  })),\n  // OpenAI decisions API (`openai` >= 7.30.0), which returns typed answers rather than generated text.\n  ...['resources/decisions.js', 'resources/decisions.mjs'].map(filePath => ({\n    channelName: 'decide',\n    module: { name: 'openai', versionRange: '>=7.30.0 <8', filePath },\n    functionQuery: { className: 'Decisions', methodName: 'create', kind: 'Sync' as const },\n  })),\n] satisfies InstrumentationConfig[];\n\nexport const openaiModuleNames = getModuleNames(openaiConfig);\n\nexport const openaiChannels = {\n  // Chat completions, the responses API, and the conversations API all report a `chat` operation with\n  // identical span handling, so they share one channel.\n  OPENAI_CHAT: 'orchestrion:openai:chat',\n  OPENAI_EMBEDDINGS: 'orchestrion:openai:embeddings',\n  OPENAI_DECIDE: 'orchestrion:openai:decide',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const pgConfig = [\n  // `pg` (node-postgres).\n  // instruments `Client.prototype.query`/`connect` (both the JS and native\n  // clients) plus `pg-pool`'s `Pool.prototype.connect`.\n  // `Auto` covers the callback, promise, and streamable-`Submittable`\n  // call shapes (like mysql).\n  // `pg/lib/client.js` is `class Client { query() {...} connect() {...} }`,\n  // so `className`+`methodName` matches directly.\n  {\n    channelName: 'query',\n    module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n    functionQuery: { className: 'Client', methodName: 'query', kind: 'Auto' },\n  },\n  {\n    channelName: 'connect',\n    module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n    functionQuery: { className: 'Client', methodName: 'connect', kind: 'Auto' },\n  },\n  // The native client (`pg/lib/native/client.js`) is a constructor function,\n  // not a class.\n  // `Client.prototype.query = function (config, values, callback) {...}`\n  // so it needs `expressionName` (the mysql shape), publishing to the SAME\n  // `orchestrion:pg:query`/`:connect` channels as the JS client.\n  {\n    channelName: 'query',\n    module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n    functionQuery: { expressionName: 'query', kind: 'Auto' },\n  },\n  {\n    channelName: 'connect',\n    module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n    functionQuery: { expressionName: 'connect', kind: 'Auto' },\n  },\n  // `pg-pool` is `class Pool extends EventEmitter { connect(cb) {...} }`.\n  {\n    channelName: 'connect',\n    module: { name: 'pg-pool', versionRange: '>=2.0.0 <4', filePath: 'index.js' },\n    functionQuery: { className: 'Pool', methodName: 'connect', kind: 'Auto' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const pgModuleNames = getModuleNames(pgConfig);\n\nexport const pgChannels = {\n  PG_QUERY: 'orchestrion:pg:query',\n  PG_CONNECT: 'orchestrion:pg:connect',\n  PGPOOL_CONNECT: 'orchestrion:pg-pool:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// postgres.js (`postgres` npm package). Named after the npm package;\n// `postgres` doesn't collide with `pg.ts` (that file instruments `pg`/`pg-pool`).\n//\n// The ESM build lives under `src/*`, the CJS build under `cjs/src/*` (the\n// `cf/*` workerd build has no channel subscribers, see the integration).\n// Both builds share the same class/function shapes, so a single `flatMap`\n// over the two dirs emits one entry per (dir, target).\nconst postgresJsInstrumentationConfig = (dir: string): InstrumentationConfig[] => [\n  // `Query.prototype.handle` (`class Query extends Promise`) is the single\n  // funnel every query passes through (`then`/`catch`/`finally`/`.execute()`/\n  // `.forEach()`/cursor all call it), guarded by `this.executed`. `Async`\n  // because `handle` is `async`.\n  {\n    channelName: 'handle',\n    module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/query.js` },\n    functionQuery: { className: 'Query', methodName: 'handle', kind: 'Async' },\n  },\n  // `function Connection(options, ...)` (default export of `connection.js`)\n  // returns the connection object; used to build the endpoint registry that\n  // resolves `server.address`/`server.port`/`db.namespace`.\n  {\n    channelName: 'connection',\n    module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n    functionQuery: { functionName: 'Connection', kind: 'Sync' },\n  },\n  // The nested `function execute(q)` inside `Connection`; the per-connection\n  // hook that attaches connection attributes to the query's span.\n  {\n    channelName: 'execute',\n    module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n    functionQuery: { functionName: 'execute', kind: 'Sync' },\n  },\n  // The connection object's `connect(query)` method. Matched by `methodName`\n  // (an object-literal method): `functionName` would hit the unrelated\n  // socket-level `async function connect()` in the same file. `self` is the\n  // connection object and `arguments[0]` the query, so the first query that\n  // opens a connection (dispatched via a bare `execute` with no `self`) still\n  // gets connection attributes in multi-endpoint apps.\n  {\n    channelName: 'connect',\n    module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n    functionQuery: { methodName: 'connect', kind: 'Sync' },\n  },\n];\n\n// Gated to `< 4`: from 4.0.0 postgres publishes `postgres:query` natively, which\n// `subscribePostgresJsDiagnosticChannels` instruments. The registration-only entry\n// lets bundler-only SDKs detect v4 and register the integration.\nexport const postgresJsConfig = [\n  registrationOnly({ name: 'postgres', versionRange: '>=4.0.0', filePath: 'src/query.js' }),\n  ...['src', 'cjs/src'].flatMap(postgresJsInstrumentationConfig),\n];\n\nexport const postgresJsModuleNames = getModuleNames(postgresJsConfig);\n\nexport const postgresJsChannels = {\n  POSTGRESJS_HANDLE: 'orchestrion:postgres:handle',\n  POSTGRESJS_CONNECTION: 'orchestrion:postgres:connection',\n  POSTGRESJS_EXECUTE: 'orchestrion:postgres:execute',\n  POSTGRESJS_CONNECT: 'orchestrion:postgres:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// Prisma 8 has no tracing surface, so its ORM terminals are wrapped directly. Apps install\n// `@prisma/orm-postgres`, but `CollectionBase` lives in the transitive `@prisma/orm-family-sql`.\nconst MODULE_NAME = '@prisma/orm-family-sql';\nconst ORM_CLIENT_FILE = 'dist/orm-client.mjs';\n\nconst VERSION_RANGE = '>=8.0.0-rc.15 <9';\n\nexport const PRISMA_ASYNC_TERMINALS = [\n  'aggregate',\n  'first',\n  'create',\n  'createAndCount',\n  'upsert',\n  'update',\n  'updateAndCount',\n  'delete',\n  'deleteAndCount',\n] as const;\n\n// These return a single-use thenable whose query runs on consumption. `Sync` on purpose: the `Async`/`Auto`\n// wrapper calls `.then()` on non-native thenables and would consume the result before the app does.\nexport const PRISMA_LAZY_TERMINALS = ['all', 'createAll', 'updateAll', 'deleteAll'] as const;\n\ntype PrismaTerminal = (typeof PRISMA_ASYNC_TERMINALS)[number] | (typeof PRISMA_LAZY_TERMINALS)[number];\n\nfunction terminalConfig(methodName: PrismaTerminal, kind: 'Async' | 'Sync'): InstrumentationConfig {\n  return {\n    channelName: methodName,\n    module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: ORM_CLIENT_FILE },\n    functionQuery: { className: 'CollectionBase', methodName, kind },\n  };\n}\n\nexport const prismaConfig: InstrumentationConfig[] = [\n  ...PRISMA_ASYNC_TERMINALS.map(methodName => terminalConfig(methodName, 'Async')),\n  ...PRISMA_LAZY_TERMINALS.map(methodName => terminalConfig(methodName, 'Sync')),\n];\n\nexport const prismaModuleNames = getModuleNames(prismaConfig);\n\nexport const prismaChannels = {\n  PRISMA_AGGREGATE: 'orchestrion:@prisma/orm-family-sql:aggregate',\n  PRISMA_FIRST: 'orchestrion:@prisma/orm-family-sql:first',\n  PRISMA_CREATE: 'orchestrion:@prisma/orm-family-sql:create',\n  PRISMA_CREATE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:createAndCount',\n  PRISMA_UPSERT: 'orchestrion:@prisma/orm-family-sql:upsert',\n  PRISMA_UPDATE: 'orchestrion:@prisma/orm-family-sql:update',\n  PRISMA_UPDATE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:updateAndCount',\n  PRISMA_DELETE: 'orchestrion:@prisma/orm-family-sql:delete',\n  PRISMA_DELETE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:deleteAndCount',\n  PRISMA_ALL: 'orchestrion:@prisma/orm-family-sql:all',\n  PRISMA_CREATE_ALL: 'orchestrion:@prisma/orm-family-sql:createAll',\n  PRISMA_UPDATE_ALL: 'orchestrion:@prisma/orm-family-sql:updateAll',\n  PRISMA_DELETE_ALL: 'orchestrion:@prisma/orm-family-sql:deleteAll',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const redisConfig = [\n  registrationOnly({ name: '@redis/client', versionRange: '>=5.12.0', filePath: 'dist/lib/client/index.js' }),\n  // redis `>=2.6.0 <4` (standalone `redis`). `internal_send_command` is an\n  // anonymous prototype assignment (`expressionName`); it settles via the nested\n  // `command_obj.callback`, so `kind: 'Sync'` and the subscriber wraps that callback.\n  {\n    channelName: 'command',\n    module: { name: 'redis', versionRange: '>=2.6.0 <4', filePath: 'index.js' },\n    functionQuery: { expressionName: 'internal_send_command', kind: 'Sync' },\n  },\n  // node-redis v4 (`@redis/client` v1). The real chokepoint (private `#sendCommand`)\n  // isn't matchable, so wrap both public entry points: `commandsExecutor` (friendly\n  // commands) and `sendCommand` (direct calls). They never overlap, so no double span.\n  {\n    channelName: 'executor',\n    module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: 'commandsExecutor', kind: 'Async' },\n  },\n  {\n    channelName: 'command',\n    module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: 'sendCommand', kind: 'Async' },\n  },\n  {\n    channelName: 'connect',\n    module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: 'connect', kind: 'Async' },\n  },\n  // node-redis `>=5.0.0 <5.12.0` (`@redis/client` v5; >=5.12.0 has its own\n  // `node-redis:*` diagnostics_channel, see `redis-dc-subscriber.ts`). Friendly\n  // commands route through the public `sendCommand`, so it covers them all — no\n  // `executor` entry (would double-count).\n  {\n    channelName: 'command',\n    module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: 'sendCommand', kind: 'Async' },\n  },\n  {\n    channelName: 'connect',\n    module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: 'connect', kind: 'Async' },\n  },\n  // Batch (multi/pipeline) — one span per `exec`. Batched commands bypass `sendCommand`,\n  // so they go through the client's batch executors, which receive the queued commands\n  // array (→ batch size). v5 splits MULTI/PIPELINE into two methods; v4's single\n  // `multiExecutor` is MULTI when a `chainId` arg is present, PIPELINE otherwise.\n  {\n    channelName: 'multi',\n    module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: '_executeMulti', kind: 'Async' },\n  },\n  {\n    channelName: 'pipeline',\n    module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: '_executePipeline', kind: 'Async' },\n  },\n  {\n    channelName: 'batch',\n    module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n    functionQuery: { className: 'RedisClient', methodName: 'multiExecutor', kind: 'Async' },\n  },\n] satisfies InstrumentationConfig[];\n\nexport const redisModuleNames = getModuleNames(redisConfig);\n\nexport const redisChannels = {\n  REDIS_COMMAND: 'orchestrion:redis:command',\n  NODE_REDIS_COMMAND: 'orchestrion:@redis/client:command',\n  NODE_REDIS_EXECUTOR: 'orchestrion:@redis/client:executor',\n  NODE_REDIS_CONNECT: 'orchestrion:@redis/client:connect',\n  NODE_REDIS_MULTI: 'orchestrion:@redis/client:multi',\n  NODE_REDIS_PIPELINE: 'orchestrion:@redis/client:pipeline',\n  NODE_REDIS_BATCH: 'orchestrion:@redis/client:batch',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// Four concepts, one channel each:\n//   - `requestHandler`    → the async handler returned by `createRequestHandler` (the server span)\n//   - `matchServerRoutes` → sync route match; enriches the active span (creates no span of its own)\n//   - `callRouteLoader`   → LOADER span. Remix 2.0–2.8 named it `callRouteLoaderRR`\n//   - `callRouteAction`   → ACTION span. Remix 2.0–2.8 named it `callRouteActionRR`\n//\n// Emitted for both the CJS (`dist/*`) and ESM (`dist/esm/*`) builds, which share function shapes.\nconst remixInstrumentationConfig = (dir: string): InstrumentationConfig[] => [\n  // `createRequestHandler` returns `async function requestHandler(request, loadContext)` — the main\n  // server span. We target the returned handler (so the span wraps each request, not the one-time\n  // handler construction). It's a *named function expression*, which name-based `functionQuery`\n  // can't match (that only sees declarations), so we select it with `astQuery`; `functionQuery`\n  // then just carries the behaviour (`kind: 'Async'`).\n  {\n    channelName: 'requestHandler',\n    module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <3', filePath: `${dir}/server.js` },\n    astQuery: 'FunctionExpression[id.name=\"requestHandler\"]',\n    functionQuery: { kind: 'Async' },\n  },\n  // Sync; the subscriber reads its result to set `http.route` on the active request span.\n  {\n    channelName: 'matchServerRoutes',\n    module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <3', filePath: `${dir}/routeMatching.js` },\n    functionQuery: { functionName: 'matchServerRoutes', kind: 'Sync' },\n  },\n  // Remix >= 2.9.0\n  {\n    channelName: 'callRouteLoader',\n    module: { name: '@remix-run/server-runtime', versionRange: '>=2.9.0 <3', filePath: `${dir}/data.js` },\n    functionQuery: { functionName: 'callRouteLoader', kind: 'Async' },\n  },\n  {\n    channelName: 'callRouteAction',\n    module: { name: '@remix-run/server-runtime', versionRange: '>=2.9.0 <3', filePath: `${dir}/data.js` },\n    functionQuery: { functionName: 'callRouteAction', kind: 'Async' },\n  },\n  // Remix 2.0.0 – 2.8.x: the same functions were suffixed `…RR`. Same channels as above.\n  {\n    channelName: 'callRouteLoader',\n    module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <2.9.0', filePath: `${dir}/data.js` },\n    functionQuery: { functionName: 'callRouteLoaderRR', kind: 'Async' },\n  },\n  {\n    channelName: 'callRouteAction',\n    module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <2.9.0', filePath: `${dir}/data.js` },\n    functionQuery: { functionName: 'callRouteActionRR', kind: 'Async' },\n  },\n];\n\nexport const remixConfig = ['dist', 'dist/esm'].flatMap(remixInstrumentationConfig);\n\nexport const remixChannels = {\n  REMIX_REQUEST_HANDLER: 'orchestrion:@remix-run/server-runtime:requestHandler',\n  REMIX_MATCH_SERVER_ROUTES: 'orchestrion:@remix-run/server-runtime:matchServerRoutes',\n  REMIX_CALL_ROUTE_LOADER: 'orchestrion:@remix-run/server-runtime:callRouteLoader',\n  REMIX_CALL_ROUTE_ACTION: 'orchestrion:@remix-run/server-runtime:callRouteAction',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// Remix 3 is a ground up rewrite sharing no modules with Remix 2, so it gets its own config rather\n// than a widened `versionRange` on `./remix.ts`. The two never collide: this matches the\n// `@remix-run/*` packages, that one `@remix-run/server-runtime`. Ranges start at the release\n// candidates and end before 2.0.0, because the packages went 0.x to 1.0.0 with Remix 3.0.0.\n//\n// `remix/router` is a one line `export * from '@remix-run/fetch-router'`, so matching the real module\n// covers both import styles.\nexport const remixV3Config: InstrumentationConfig[] = [\n  // The only construction point routing needs: `router.mount()` does not create a sub-router, it\n  // builds a prefixed route builder over the same matcher and dispatch.\n  {\n    channelName: 'createRouter',\n    module: {\n      name: '@remix-run/fetch-router',\n      versionRange: '>=0.21.0 <2',\n      filePath: 'dist/lib/router.js',\n    },\n    functionQuery: { functionName: 'createRouter', kind: 'Sync' },\n  },\n  // The subscriber rewrites the options before the asset server reads them and wraps the server it\n  // returns, so browser modules carry debug IDs without any config from the app.\n  {\n    channelName: 'createAssetServer',\n    module: { name: '@remix-run/assets', versionRange: '>=0.6.0 <2', filePath: 'dist/lib/asset-server.js' },\n    functionQuery: { functionName: 'createAssetServer', kind: 'Sync' },\n  },\n  // The only error hook that covers an app whose fetch handler is not a router.\n  {\n    channelName: 'createRequestListener',\n    module: {\n      name: '@remix-run/node-fetch-server',\n      versionRange: '>=0.14.0 <2',\n      filePath: 'dist/lib/request-listener.js',\n    },\n    functionQuery: { functionName: 'createRequestListener', kind: 'Sync' },\n  },\n  // Browser side, applied by the asset server's loader chain. The only way to see component render\n  // errors without application code. `@remix-run/ui` was renamed to `@remix-run/component` in 1.0.0.\n  {\n    channelName: 'run',\n    module: { name: '@remix-run/ui', versionRange: '>=0.8.0 <1', filePath: 'dist/runtime/run.js' },\n    functionQuery: { functionName: 'run', kind: 'Sync' },\n  },\n  {\n    channelName: 'run',\n    module: { name: '@remix-run/component', versionRange: '>=1.0.0 <2', filePath: 'dist/runtime/run.js' },\n    functionQuery: { functionName: 'run', kind: 'Sync' },\n  },\n];\n\nexport const remixV3Channels = {\n  REMIX_V3_CREATE_ROUTER: 'orchestrion:@remix-run/fetch-router:createRouter',\n  REMIX_V3_CREATE_ASSET_SERVER: 'orchestrion:@remix-run/assets:createAssetServer',\n  REMIX_V3_CREATE_REQUEST_LISTENER: 'orchestrion:@remix-run/node-fetch-server:createRequestListener',\n  REMIX_V3_UI_RUN: 'orchestrion:@remix-run/ui:run',\n  REMIX_V3_COMPONENT_RUN: 'orchestrion:@remix-run/component:run',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nconst MODULE_NAME = 'tedious';\n\n// `Connection` has lived in `lib/connection.js` across the whole supported range (matches the vendored\n// OTel `supportedVersions`). Orchestrion never matches a file that doesn't exist, so a single entry is\n// safe even for versions that shipped extra layouts.\nconst FILE_PATH = 'lib/connection.js';\nconst VERSION_RANGE = '>=1.11.0 <21';\n\n// `Connection` methods that dispatch a request (each traced as one db span) plus `connect`, which the\n// subscriber wraps for bookkeeping only (tracking the connection's active database, read into `db.name`).\n// All return synchronously; the request completes later via its callback/events, so the subscriber owns\n// span-ending rather than the channel lifecycle.\nconst METHODS = ['connect', 'execSql', 'execSqlBatch', 'callProcedure', 'execBulkLoad', 'prepare', 'execute'] as const;\n\nexport const tediousConfig: InstrumentationConfig[] = METHODS.map(methodName => ({\n  channelName: methodName,\n  module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: FILE_PATH },\n  functionQuery: { className: 'Connection', methodName, kind: 'Sync' },\n}));\n\nexport const tediousModuleNames = getModuleNames(tediousConfig);\n\nexport const tediousChannels = {\n  TEDIOUS_CONNECT: 'orchestrion:tedious:connect',\n  TEDIOUS_EXEC_SQL: 'orchestrion:tedious:execSql',\n  TEDIOUS_EXEC_SQL_BATCH: 'orchestrion:tedious:execSqlBatch',\n  TEDIOUS_CALL_PROCEDURE: 'orchestrion:tedious:callProcedure',\n  TEDIOUS_EXEC_BULK_LOAD: 'orchestrion:tedious:execBulkLoad',\n  TEDIOUS_PREPARE: 'orchestrion:tedious:prepare',\n  TEDIOUS_EXECUTE: 'orchestrion:tedious:execute',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { openAiCompatibleConfig } from './openai-compatible';\n\n// `together-ai` is a Stainless-generated, OpenAI-compatible SDK — see `openAiCompatibleConfig`.\nexport const togetherAiConfig = [\n  ...openAiCompatibleConfig({ name: 'together-ai', versionRange: '>=0.6.0 <1' }),\n  // 1.x defines `create` on `BaseCompletions`/`BaseEmbeddings`; `Completions`/`Embeddings` are empty subclasses.\n  ...openAiCompatibleConfig(\n    { name: 'together-ai', versionRange: '>=1.0.0 <2' },\n    { chat: 'BaseCompletions', embeddings: 'BaseEmbeddings' },\n  ),\n] satisfies InstrumentationConfig[];\n\nexport const togetherAiModuleNames = getModuleNames(togetherAiConfig);\n\nexport const togetherAiChannels = {\n  TOGETHER_CHAT: 'orchestrion:together-ai:chat',\n  TOGETHER_EMBEDDINGS: 'orchestrion:together-ai:embeddings',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `systemOne` returns a lazy `APIPromise` whose body is parsed on the first `.then()`. `kind: 'Sync'`\n// keeps orchestrion from calling `.then()` on it (which `Auto` would), so a caller's `asResponse()`\n// still gets an unread body. The SDK ships one bundled file per module format.\nexport const typesafeConfig = ['dist/index.mjs', 'dist/index.cjs'].map(filePath => ({\n  channelName: 'system-one',\n  module: { name: '@typesafe-ai/sdk', versionRange: '>=0.5.0 <1', filePath },\n  functionQuery: { className: 'TypeSafeClient', methodName: 'systemOne', kind: 'Sync' as const },\n})) satisfies InstrumentationConfig[];\n\nexport const typesafeModuleNames = getModuleNames(typesafeConfig);\n\nexport const typesafeChannels = {\n  TYPESAFE_SYSTEM_ONE: 'orchestrion:@typesafe-ai/sdk:system-one',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const vercelAiConfig = [\n  ...['dist/index.js', 'dist/index.mjs'].map(filePath =>\n    registrationOnly({ name: 'ai', versionRange: '>=7.0.0', filePath }),\n  ),\n  // Vercel AI v6: mirror the v7 native `ai:telemetry` channel by injecting\n  // channels into the top-level entry points. `resolveLanguageModel` is wrapped\n  // not to span it, but so the subscriber can monkey-patch `doGenerate`/\n  // `doStream` on the returned model (the only way to span the model call,\n  // which is an inline call with no injectable definition in `ai`).\n  // `streamText` returns its result synchronously (streaming is lazy), so it's\n  // `Sync`; the subscriber binds the span via `bindTracingChannelToSpan`, which\n  // ends it when the (synchronous) call returns.\n\n  // The majority of entrypoints are present in all versions we support\n  ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateText', 'generateText', 'Async'),\n  ...vercelAiEntries('>=4.0.0 <7.0.0', 'streamText', 'streamText', 'Sync'),\n  ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateObject', 'generateObject', 'Async'),\n  ...vercelAiEntries('>=4.0.0 <7.0.0', 'embed', 'embed', 'Async'),\n  ...vercelAiEntries('>=4.0.0 <7.0.0', 'embedMany', 'embedMany', 'Async'),\n\n  // The following entry is only present in v5 and later\n  ...vercelAiEntries('>=5.0.0 <7.0.0', 'resolveLanguageModel', 'resolveLanguageModel', 'Sync'),\n\n  // The following entry is only present in v6 and later\n  ...vercelAiEntries('>=6.0.0 <7.0.0', 'executeToolCall', 'executeToolCall', 'Async'),\n] satisfies InstrumentationConfig[];\n\nexport const vercelAiChannels = {\n  // Vercel AI (`ai`): orchestrion injects these so the same channel-based\n  // integration that consumes `ai`'s native `ai:telemetry` channel (v7) can\n  // also instrument v4/v5/v6. Each maps to a top-level function in `ai`'s bundle.\n  // All three versions share the same channel names (the subscriber is version-agnostic);\n  // `VERCEL_AI_EXECUTE_TOOL_CALL` is v6-only (v4/v5 have no `executeToolCall` export) and\n  // `VERCEL_AI_RESOLVE_LANGUAGE_MODEL` is v5/v6-only (v4 has no such chokepoint).\n  VERCEL_AI_GENERATE_TEXT: 'orchestrion:ai:generateText',\n  VERCEL_AI_STREAM_TEXT: 'orchestrion:ai:streamText',\n  VERCEL_AI_GENERATE_OBJECT: 'orchestrion:ai:generateObject',\n  VERCEL_AI_EMBED: 'orchestrion:ai:embed',\n  VERCEL_AI_EMBED_MANY: 'orchestrion:ai:embedMany',\n  VERCEL_AI_EXECUTE_TOOL_CALL: 'orchestrion:ai:executeToolCall',\n  VERCEL_AI_RESOLVE_LANGUAGE_MODEL: 'orchestrion:ai:resolveLanguageModel',\n} as const;\n\n/**\n * The central list of channel injections orchestrion should perform.\n *\n * This module has NO side effects — it's the only thing both the runtime hook\n * (`runtime/import-hook.mjs`) and the bundler plugins (`bundler/vite.ts`, …)\n * import from. Adding a new instrumented method is one entry here plus one\n * subscriber in `integrations/<lib>/tracing-channel.ts`.\n *\n * `channelName` here is the unprefixed suffix; the actual diagnostics_channel\n * name is `orchestrion:${module.name}:${channelName}` (see `channels.ts`).\n */\n/**\n * `ai` ships a single bundled entry per module system, so each instrumented\n * function needs one config entry per file (the app loads whichever matches its\n * module system). This expands a single target into both.\n */\nfunction vercelAiEntries(\n  versionRange: string,\n  channelName: string,\n  functionName: string,\n  kind: 'Async' | 'Sync',\n): InstrumentationConfig[] {\n  return ['dist/index.js', 'dist/index.mjs'].map(filePath => ({\n    channelName,\n    module: { name: 'ai', versionRange, filePath },\n    functionQuery: { functionName, kind },\n  }));\n}\n\nexport const vercelAiModuleNames = getModuleNames(vercelAiConfig);\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { uniq } from '@sentry/core';\n\nimport { awsSdkConfig } from './aws-sdk';\nimport { amqplibConfig } from './amqplib';\nimport { anthropicAiConfig } from './anthropic-ai';\nimport { cronConfig } from './cron';\nimport { dataloaderConfig } from './dataloader';\nimport { expressConfig } from './express';\nimport { firebaseConfig } from './firebase';\nimport { genericPoolConfig } from './generic-pool';\nimport { googleGenAiConfig } from './google-genai';\nimport { graphqlConfig } from './graphql';\nimport { groqConfig } from './groq';\nimport { hapiConfig } from './hapi';\nimport { honoConfig } from './hono';\nimport { ioredisConfig } from './ioredis';\nimport { kafkajsConfig } from './kafkajs';\nimport { knexConfig } from './knex';\nimport { koaConfig } from './koa';\nimport { langchainConfig } from './langchain';\nimport { langgraphConfig } from './langgraph';\nimport { lruMemoizerConfig } from './lru-memoizer';\nimport { flueConfig } from './flue';\nimport { mastraConfig } from './mastra';\nimport { piDurableConfig } from './pi-durable';\nimport { mcpServerConfig } from './mcp-server';\nimport { mistralConfig } from './mistral';\nimport { mongodbConfig } from './mongodb';\nimport { mongooseConfig } from './mongoose';\nimport { mysql2Config } from './mysql2';\nimport { mysqlConfig } from './mysql';\nimport { neonConfig } from './neon';\nimport { nestjsConfig } from './nestjs';\nimport { nitroConfig } from './nitro';\nimport { nodeCronConfig } from './node-cron';\nimport { nodeScheduleConfig } from './node-schedule';\nimport { openaiConfig } from './openai';\nimport { pgConfig } from './pg';\nimport { postgresJsConfig } from './postgres';\nimport { prismaConfig } from './prisma';\nimport { redisConfig } from './redis';\nimport { remixConfig } from './remix';\nimport { remixV3Config } from './remix-v3';\nimport { tediousConfig } from './tedious';\nimport { togetherAiConfig } from './together-ai';\nimport { typesafeConfig } from './typesafe';\nimport { vercelAiConfig } from './vercel-ai';\n// Kept sorted alphabetically by module so concurrent additions insert at different\n// points rather than all appending to the end (fewer merge conflicts).\n\n/**\n * The orchestrion code-transform configs. Every instrumentable library is here\n * so the transform is all-or-nothing: whenever orchestrion is enabled, all of\n * these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS\n * one lives in `@sentry/nestjs`), but the config that decides what gets\n * transformed is centralized here.\n *\n * This module MUST stay pure, stateless data. It is loaded in more than one realm\n * at once — the build-time bundler plugin inlines it into the server chunk, while\n * `@sentry/server-runtime-injection`'s external `register` loads its own copy from\n * `node_modules` at runtime. Two identical, side-effect-free arrays are harmless;\n * any module-level mutable state here would silently diverge between those copies.\n */\nexport const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[] = [\n  ...amqplibConfig,\n  ...anthropicAiConfig,\n  ...awsSdkConfig,\n  ...cronConfig,\n  ...dataloaderConfig,\n  ...expressConfig,\n  ...firebaseConfig,\n  ...genericPoolConfig,\n  ...googleGenAiConfig,\n  ...graphqlConfig,\n  ...groqConfig,\n  ...hapiConfig,\n  ...honoConfig,\n  ...ioredisConfig,\n  ...kafkajsConfig,\n  ...knexConfig,\n  ...koaConfig,\n  ...langchainConfig,\n  ...langgraphConfig,\n  ...lruMemoizerConfig,\n  ...flueConfig,\n  ...mastraConfig,\n  ...mcpServerConfig,\n  ...mistralConfig,\n  ...mongodbConfig,\n  ...mongooseConfig,\n  ...mysql2Config,\n  ...mysqlConfig,\n  ...neonConfig,\n  ...nestjsConfig,\n  ...nitroConfig,\n  ...nodeCronConfig,\n  ...nodeScheduleConfig,\n  ...openaiConfig,\n  ...pgConfig,\n  ...piDurableConfig,\n  ...postgresJsConfig,\n  ...prismaConfig,\n  ...redisConfig,\n  ...remixConfig,\n  ...remixV3Config,\n  ...tediousConfig,\n  ...togetherAiConfig,\n  ...typesafeConfig,\n  ...vercelAiConfig,\n];\n\n/**\n * The subset of {@link SENTRY_INSTRUMENTATIONS} the RUNTIME loader\n * (`@sentry/server-runtime-injection`'s `register`, reached via `--import` or\n * `Sentry.init()`) can actually apply.\n *\n * Registration-only configs (native-channel libraries such as `ai` v7,\n * `ioredis`, `@redis/client`, `mysql2`, `mongoose`) carry the custom\n * `MODULE_REGISTRATION_TRANSFORM` operator. That operator is wired into the\n * BUNDLER plugins only (see `orchestrion/bundler/moduleInjectedTransform.ts`,\n * applied via `bundler/options.ts`'s `customTransforms`); the runtime loader's\n * `initialize()` receives no custom transforms. Attempting one of these at\n * runtime therefore throws `TypeError: transform is not a function`, which the\n * loader misreports as the always-on \"`@sentry/server-runtime-injection` was\n * bundled ... loads uninstrumented\" warning even though nothing is wrong.\n *\n * Excluding them at runtime is correct, not just a way to silence the warning:\n * these libraries publish their own tracing channels, and their integrations\n * subscribe through `setupOnce()` / `waitForTracingChannelBinding`,\n * independently of the module-injected snippet. That snippet only fires\n * `orchestrion.module-injected`, which drives the `setup()` /\n * `invokeOrchestrionInstrumentation` path; for a native-channel version that\n * path subscribes to the injected `orchestrion:*` channels the library never\n * publishes — a no-op. So running these at runtime would add no spans. The\n * snippet earns its keep only on the BUNDLER path — notably bundler-only SDKs\n * (e.g. `@sentry/cloudflare`) that discover a loaded module via that event to\n * instantiate its integration factory. `@sentry/node` registers its\n * integrations statically, so it does not need it.\n */\nexport const SENTRY_RUNTIME_INSTRUMENTATIONS: InstrumentationConfig[] = SENTRY_INSTRUMENTATIONS.filter(\n  config => !config.transform,\n);\n\n/**\n * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`\n * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).\n *\n * Bundler plugins MUST ensure these are actually bundled rather than\n * externalized: an externalized dependency is resolved from `node_modules` at\n * runtime and never passes through the code transform's `onLoad`, so its\n * diagnostics_channel calls are silently never injected. This includes a\n * plugin's custom `instrumentations`, otherwise those extra packages can stay\n * externalized and their transform never runs.\n */\nexport function instrumentedModuleNames(instrumentations: InstrumentationConfig[] = []): string[] {\n  return [\n    ...uniq([...SENTRY_INSTRUMENTATIONS, ...instrumentations].map(i => i.module.name)),\n    // Additional things that need to be bundled but are not covered by the above\n    // Remix needs to bundle this so @remix-run/server-runtime is _also_ bundled\n    '@remix-run/node',\n  ];\n}\n\n/** The instrumented module names from the default Sentry config, with no custom additions. */\nexport const INSTRUMENTED_MODULE_NAMES: string[] = instrumentedModuleNames();\n\n/**\n * The package names the SDK instruments through the orchestrion module transform (its\n * diagnostics-channel injection). Pass these to a server bundler's \"keep external\" option so the\n * packages load through Node's module loader — the only path the transform can hook — instead of\n * being inlined into the server bundle. A framework that has no Sentry bundler plugin (e.g. eve, via\n * `build.externalDependencies`) is the main caller; a listed package the app doesn't use is simply\n * ignored by the bundler.\n *\n * Unlike {@link INSTRUMENTED_MODULE_NAMES}, this is the plain instrumented set with no bundler-only\n * additions — those force a helper package to be *bundled*, the opposite of keeping it external.\n */\nexport function getInstrumentedModuleNames(): string[] {\n  return uniq(SENTRY_INSTRUMENTATIONS.map(instrumentation => instrumentation.module.name));\n}\n\n/**\n * Returns `external` with any instrumented packages removed, so a bundler that\n * uses an \"external\" denylist (esbuild, Bun, Rollup) still bundles — and thus\n * transforms — them. Matches an exact package name (`'mysql'`) or a subpath\n * (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`\n * is returned unchanged.\n *\n * Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so\n * custom instrumentations are stripped too; it defaults to the Sentry config\n * list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes\n * `instrumentedModuleNames` directly rather than this helper.)\n */\nexport function withoutInstrumentedExternals(\n  external: readonly string[] | undefined,\n  moduleNames: string[] = INSTRUMENTED_MODULE_NAMES,\n): string[] | undefined {\n  if (!external) {\n    return undefined;\n  }\n  return external.filter(entry => !moduleNames.some(name => entry === name || entry.startsWith(`${name}/`)));\n}\n\n// This is exported so that the nestjs package can use it to subscribe to the channels.\nexport { nestjsChannels } from './nestjs';\n// This is exported so that the remix package can use it to subscribe to the channels.\nexport { remixChannels } from './remix';\n// Exported so the remix package can subscribe to the Remix 3 channels, and hand only these configs to\n// the browser transform.\nexport { remixV3Channels, remixV3Config } from './remix-v3';\n","declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n","import * as http from 'node:http';\nimport type { Client, Envelope, IntegrationFn } from '@sentry/core';\nimport { debug, defineIntegration, serializeEnvelope, suppressTracing } from '@sentry/core';\n\ntype SpotlightConnectionOptions = {\n  /**\n   * Set this if the Spotlight Sidecar is not running on localhost:8969\n   * By default, the Url is set to http://localhost:8969/stream\n   */\n  sidecarUrl?: string;\n};\n\nexport const INTEGRATION_NAME = 'Spotlight' as const;\n\nconst _spotlightIntegration = ((options: Partial<SpotlightConnectionOptions> = {}) => {\n  const _options = {\n    sidecarUrl: options.sidecarUrl || 'http://localhost:8969/stream',\n  };\n\n  return {\n    name: INTEGRATION_NAME,\n    setup(client) {\n      try {\n        if (process.env.NODE_ENV && process.env.NODE_ENV !== 'development') {\n          debug.warn(\"[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?\");\n        }\n      } catch {\n        // ignore\n      }\n      connectToSpotlight(client, _options);\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Use this integration to send errors and transactions to Spotlight.\n *\n * Learn more about spotlight at https://spotlightjs.com\n */\nexport const spotlightIntegration = defineIntegration(_spotlightIntegration);\n\nfunction connectToSpotlight(client: Client, options: Required<SpotlightConnectionOptions>): void {\n  const spotlightUrl = parseSidecarUrl(options.sidecarUrl);\n  if (!spotlightUrl) {\n    return;\n  }\n\n  let failedRequests = 0;\n\n  client.on('beforeEnvelope', (envelope: Envelope) => {\n    if (failedRequests > 3) {\n      debug.warn('[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests');\n      return;\n    }\n\n    const serializedEnvelope = serializeEnvelope(envelope);\n    suppressTracing(() => {\n      const req = http.request(\n        {\n          method: 'POST',\n          path: spotlightUrl.pathname,\n          hostname: spotlightUrl.hostname,\n          port: spotlightUrl.port,\n          headers: {\n            'Content-Type': 'application/x-sentry-envelope',\n          },\n        },\n        res => {\n          if (res.statusCode && res.statusCode >= 200 && res.statusCode < 400) {\n            // Reset failed requests counter on success\n            failedRequests = 0;\n          }\n          res.on('data', () => {\n            // Drain socket\n          });\n\n          res.on('end', () => {\n            // Drain socket\n          });\n          res.setEncoding('utf8');\n        },\n      );\n\n      req.on('error', () => {\n        failedRequests++;\n        debug.warn('[Spotlight] Failed to send envelope to Spotlight Sidecar');\n      });\n      req.write(serializedEnvelope);\n      req.end();\n    });\n  });\n}\n\nfunction parseSidecarUrl(url: string): URL | undefined {\n  try {\n    return new URL(`${url}`);\n  } catch {\n    debug.warn(`[Spotlight] Invalid sidecar URL: ${url}`);\n    return undefined;\n  }\n}\n","/**\n * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n * With the following LICENSE:\n *\n * (The MIT License)\n *\n * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:*\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.*\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* eslint-disable @typescript-eslint/explicit-member-accessibility */\n/* eslint-disable @typescript-eslint/member-ordering */\n/* eslint-disable jsdoc/require-jsdoc */\nimport * as http from 'node:http';\nimport type * as net from 'node:net';\nimport type { Duplex } from 'node:stream';\nimport type * as tls from 'node:tls';\n\nexport * from './helpers';\n\ninterface HttpConnectOpts extends net.TcpNetConnectOpts {\n  secureEndpoint: false;\n  protocol?: string;\n}\n\ninterface HttpsConnectOpts extends tls.ConnectionOptions {\n  secureEndpoint: true;\n  protocol?: string;\n  port: number;\n}\n\nexport type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;\n\nconst INTERNAL = Symbol('AgentBaseInternalState');\n\ninterface InternalState {\n  defaultPort?: number;\n  protocol?: string;\n  currentSocket?: Duplex;\n}\n\nexport abstract class Agent extends http.Agent {\n  private [INTERNAL]: InternalState;\n\n  // Set by `http.Agent` - missing from `@types/node`\n  options!: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;\n  keepAlive!: boolean;\n\n  constructor(opts?: http.AgentOptions) {\n    super(opts);\n    this[INTERNAL] = {};\n  }\n\n  abstract connect(\n    req: http.ClientRequest,\n    options: AgentConnectOpts,\n  ): Promise<Duplex | http.Agent> | Duplex | http.Agent;\n\n  /**\n   * Determine whether this is an `http` or `https` request.\n   */\n  isSecureEndpoint(options?: AgentConnectOpts): boolean {\n    if (options) {\n      // First check the `secureEndpoint` property explicitly, since this\n      // means that a parent `Agent` is \"passing through\" to this instance.\n      if (typeof (options as Partial<typeof options>).secureEndpoint === 'boolean') {\n        return options.secureEndpoint;\n      }\n\n      // If no explicit `secure` endpoint, check if `protocol` property is\n      // set. This will usually be the case since using a full string URL\n      // or `URL` instance should be the most common usage.\n      if (typeof options.protocol === 'string') {\n        return options.protocol === 'https:';\n      }\n    }\n\n    // Finally, if no `protocol` property was set, then fall back to\n    // checking the stack trace of the current call stack, and try to\n    // detect the \"https\" module.\n    const { stack } = new Error();\n    if (typeof stack !== 'string') return false;\n    return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n  }\n\n  createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void {\n    const connectOpts = {\n      ...options,\n      secureEndpoint: this.isSecureEndpoint(options),\n    };\n    Promise.resolve()\n      .then(() => this.connect(req, connectOpts))\n      .then(socket => {\n        if (socket instanceof http.Agent) {\n          // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n          return socket.addRequest(req, connectOpts);\n        }\n        this[INTERNAL].currentSocket = socket;\n        // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n        super.createSocket(req, options, cb);\n      }, cb);\n  }\n\n  createConnection(): Duplex {\n    const socket = this[INTERNAL].currentSocket;\n    this[INTERNAL].currentSocket = undefined;\n    if (!socket) {\n      throw new Error('No socket was returned in the `connect()` function');\n    }\n    return socket;\n  }\n\n  get defaultPort(): number {\n    return this[INTERNAL].defaultPort ?? (this.protocol === 'https:' ? 443 : 80);\n  }\n\n  set defaultPort(v: number) {\n    if (this[INTERNAL]) {\n      this[INTERNAL].defaultPort = v;\n    }\n  }\n\n  get protocol(): string {\n    return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? 'https:' : 'http:');\n  }\n\n  set protocol(v: string) {\n    if (this[INTERNAL]) {\n      this[INTERNAL].protocol = v;\n    }\n  }\n}\n","/**\n * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n * With the following LICENSE:\n *\n * (The MIT License)\n *\n * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:*\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.*\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable jsdoc/require-jsdoc */\nimport type { IncomingHttpHeaders } from 'node:http';\nimport type { Readable } from 'node:stream';\nimport { debug } from '@sentry/core';\n\nfunction debugLog(...args: unknown[]): void {\n  debug.log('[https-proxy-agent:parse-proxy-response]', ...args);\n}\n\nexport interface ConnectResponse {\n  statusCode: number;\n  statusText: string;\n  headers: IncomingHttpHeaders;\n}\n\nexport function parseProxyResponse(socket: Readable): Promise<{ connect: ConnectResponse; buffered: Buffer }> {\n  return new Promise((resolve, reject) => {\n    // we need to buffer any HTTP traffic that happens with the proxy before we get\n    // the CONNECT response, so that if the response is anything other than an \"200\"\n    // response code, then we can re-play the \"data\" events on the socket once the\n    // HTTP parser is hooked up...\n    let buffersLength = 0;\n    const buffers: Buffer[] = [];\n\n    function read() {\n      const b = socket.read();\n      if (b) ondata(b);\n      else socket.once('readable', read);\n    }\n\n    function cleanup() {\n      socket.removeListener('end', onend);\n      socket.removeListener('error', onerror);\n      socket.removeListener('readable', read);\n    }\n\n    function onend() {\n      cleanup();\n      debugLog('onend');\n      reject(new Error('Proxy connection ended before receiving CONNECT response'));\n    }\n\n    function onerror(err: Error) {\n      cleanup();\n      debugLog('onerror %o', err);\n      reject(err);\n    }\n\n    function ondata(b: Buffer) {\n      buffers.push(b);\n      buffersLength += b.length;\n\n      const buffered = Buffer.concat(buffers, buffersLength);\n      const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n\n      if (endOfHeaders === -1) {\n        // keep buffering\n        debugLog('have not received end of HTTP headers yet...');\n        read();\n        return;\n      }\n\n      const headerParts = buffered.subarray(0, endOfHeaders).toString('ascii').split('\\r\\n');\n      const firstLine = headerParts.shift();\n      if (!firstLine) {\n        socket.destroy();\n        return reject(new Error('No header received from proxy CONNECT response'));\n      }\n      const firstLineParts = firstLine.split(' ');\n      const statusCode = +(firstLineParts[1] || 0);\n      const statusText = firstLineParts.slice(2).join(' ');\n      const headers: IncomingHttpHeaders = {};\n      for (const header of headerParts) {\n        if (!header) continue;\n        const firstColon = header.indexOf(':');\n        if (firstColon === -1) {\n          socket.destroy();\n          return reject(new Error(`Invalid header from proxy CONNECT response: \"${header}\"`));\n        }\n        const key = header.slice(0, firstColon).toLowerCase();\n        const value = header.slice(firstColon + 1).trimStart();\n        const current = headers[key];\n        if (typeof current === 'string') {\n          headers[key] = [current, value];\n        } else if (Array.isArray(current)) {\n          current.push(value);\n        } else {\n          headers[key] = value;\n        }\n      }\n      debugLog('got proxy server response: %o %o', firstLine, headers);\n      cleanup();\n      resolve({\n        connect: {\n          statusCode,\n          statusText,\n          headers,\n        },\n        buffered,\n      });\n    }\n\n    socket.on('error', onerror);\n    socket.on('end', onend);\n\n    read();\n  });\n}\n","/**\n * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n * With the following LICENSE:\n *\n * (The MIT License)\n *\n * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:*\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.*\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* eslint-disable @typescript-eslint/explicit-member-accessibility */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// eslint-disable-next-line import/no-duplicates\nimport type * as http from 'node:http';\n// eslint-disable-next-line import/no-duplicates\nimport type { OutgoingHttpHeaders } from 'node:http';\nimport * as net from 'node:net';\nimport * as tls from 'node:tls';\nimport { debug } from '@sentry/core';\nimport type { AgentConnectOpts } from './base';\nimport { Agent } from './base';\nimport { parseProxyResponse } from './parse-proxy-response';\n\nfunction debugLog(...args: unknown[]): void {\n  debug.log('[https-proxy-agent]', ...args);\n}\n\ntype Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;\n\ntype ConnectOptsMap = {\n  http: Omit<net.TcpNetConnectOpts, 'host' | 'port'>;\n  https: Omit<tls.ConnectionOptions, 'host' | 'port'>;\n};\n\ntype ConnectOpts<T> = {\n  [P in keyof ConnectOptsMap]: Protocol<T> extends P ? ConnectOptsMap[P] : never;\n}[keyof ConnectOptsMap];\n\nexport type HttpsProxyAgentOptions<T> = ConnectOpts<T> &\n  http.AgentOptions & {\n    headers?: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);\n  };\n\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nexport class HttpsProxyAgent<Uri extends string> extends Agent {\n  static protocols = ['http', 'https'] as const;\n\n  readonly proxy: URL;\n  proxyHeaders: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);\n  connectOpts: net.TcpNetConnectOpts & tls.ConnectionOptions;\n\n  constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>) {\n    super(opts);\n    this.options = {};\n    this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;\n    this.proxyHeaders = opts?.headers ?? {};\n    debugLog('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n\n    // Trim off the brackets from IPv6 addresses\n    const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n    const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === 'https:' ? 443 : 80;\n    this.connectOpts = {\n      // Attempt to negotiate http/1.1 for proxy servers that support http/2\n      ALPNProtocols: ['http/1.1'],\n      ...(opts ? omit(opts, 'headers') : null),\n      host,\n      port,\n    };\n  }\n\n  /**\n   * Called when the HTTP client library is creating a\n   * new HTTP request.\n   */\n  async connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<net.Socket> {\n    const { proxy } = this;\n\n    if (!opts.host) {\n      throw new TypeError('No \"host\" provided');\n    }\n\n    // Create a socket connection to the proxy server.\n    let socket: net.Socket;\n    if (proxy.protocol === 'https:') {\n      debugLog('Creating `tls.Socket`: %o', this.connectOpts);\n      const servername = this.connectOpts.servername || this.connectOpts.host;\n      socket = tls.connect({\n        ...this.connectOpts,\n        servername: servername && net.isIP(servername) ? undefined : servername,\n      });\n    } else {\n      debugLog('Creating `net.Socket`: %o', this.connectOpts);\n      socket = net.connect(this.connectOpts);\n    }\n\n    const headers: OutgoingHttpHeaders =\n      typeof this.proxyHeaders === 'function' ? this.proxyHeaders() : { ...this.proxyHeaders };\n    const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n    let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n\n    // Inject the `Proxy-Authorization` header if necessary.\n    if (proxy.username || proxy.password) {\n      const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n      headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n    }\n\n    headers.Host = `${host}:${opts.port}`;\n\n    if (!headers['Proxy-Connection']) {\n      headers['Proxy-Connection'] = this.keepAlive ? 'Keep-Alive' : 'close';\n    }\n    for (const name of Object.keys(headers)) {\n      payload += `${name}: ${headers[name]}\\r\\n`;\n    }\n\n    const proxyResponsePromise = parseProxyResponse(socket);\n\n    socket.write(`${payload}\\r\\n`);\n\n    const { connect, buffered } = await proxyResponsePromise;\n    req.emit('proxyConnect', connect);\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore Not EventEmitter in Node types\n    this.emit('proxyConnect', connect, req);\n\n    if (connect.statusCode === 200) {\n      req.once('socket', resume);\n\n      if (opts.secureEndpoint) {\n        // The proxy is connecting to a TLS server, so upgrade\n        // this socket connection to a TLS connection.\n        debugLog('Upgrading socket connection to TLS');\n        const servername = opts.servername || opts.host;\n        return tls.connect({\n          ...omit(opts, 'host', 'path', 'port'),\n          socket,\n          servername: net.isIP(servername) ? undefined : servername,\n        });\n      }\n\n      return socket;\n    }\n\n    // Some other status code that's not 200... need to re-play the HTTP\n    // header \"data\" events onto the socket once the HTTP machinery is\n    // attached so that the node core `http` can parse and handle the\n    // error status code.\n\n    // Close the original socket, and a new \"fake\" socket is returned\n    // instead, so that the proxy doesn't get the HTTP request\n    // written to it (which may contain `Authorization` headers or other\n    // sensitive data).\n    //\n    // See: https://hackerone.com/reports/541502\n    socket.destroy();\n\n    const fakeSocket = new net.Socket({ writable: false });\n    fakeSocket.readable = true;\n\n    // Need to wait for the \"socket\" event to re-play the \"data\" events.\n    req.once('socket', (s: net.Socket) => {\n      debugLog('Replaying proxy buffer for failed request');\n      // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n      // this point the HTTP module machinery has been hooked up for\n      // the user.\n      s.push(buffered);\n      s.push(null);\n    });\n\n    return fakeSocket;\n  }\n}\n\nfunction resume(socket: net.Socket | tls.TLSSocket): void {\n  socket.resume();\n}\n\nfunction omit<T extends object, K extends [...(keyof T)[]]>(\n  obj: T,\n  ...keys: K\n): {\n  [K2 in Exclude<keyof T, K[number]>]: T[K2];\n} {\n  const ret = {} as {\n    [K in keyof typeof obj]: (typeof obj)[K];\n  };\n  let key: keyof typeof obj;\n  for (key in obj) {\n    if (!keys.includes(key)) {\n      ret[key] = obj[key];\n    }\n  }\n  return ret;\n}\n","import * as http from 'node:http';\nimport * as https from 'node:https';\nimport { Readable } from 'node:stream';\nimport { createGzip } from 'node:zlib';\nimport type {\n  BaseTransportOptions,\n  Transport,\n  TransportMakeRequestResponse,\n  TransportRequest,\n  TransportRequestExecutor,\n} from '@sentry/core';\nimport { consoleSandbox, createTransport, suppressTracing } from '@sentry/core';\nimport { HttpsProxyAgent } from '../proxy';\nimport type { HTTPModule } from './http-module';\n\nexport interface NodeTransportOptions extends BaseTransportOptions {\n  /** Set a proxy that should be used for outbound requests. */\n  proxy?: string;\n  /** HTTPS proxy CA certificates */\n  caCerts?: string | Buffer | Array<string | Buffer>;\n  /** Custom HTTP module. Defaults to the native 'http' and 'https' modules. */\n  httpModule?: HTTPModule;\n  /** Allow overriding connection keepAlive, defaults to true */\n  keepAlive?: boolean;\n}\n\n// Estimated maximum size for reasonable standalone event\nconst GZIP_THRESHOLD = 1024 * 32;\n\n/**\n * Gets a stream from a Uint8Array or string\n * Readable.from is ideal but was added in node.js v12.3.0 and v10.17.0\n */\nfunction streamFromBody(body: Uint8Array | string): Readable {\n  return new Readable({\n    read() {\n      this.push(body);\n      this.push(null);\n    },\n  });\n}\n\n/**\n * Creates a Transport that uses native the native 'http' and 'https' modules to send events to Sentry.\n */\nexport function makeNodeTransport(options: NodeTransportOptions): Transport {\n  let urlSegments: URL;\n\n  try {\n    urlSegments = new URL(options.url);\n  } catch {\n    consoleSandbox(() => {\n      // eslint-disable-next-line no-console\n      console.warn(\n        '[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.',\n      );\n    });\n    return createTransport(options, () => Promise.resolve({}));\n  }\n\n  const isHttps = urlSegments.protocol === 'https:';\n\n  // Proxy prioritization: http => `options.proxy` | `process.env.http_proxy`\n  // Proxy prioritization: https => `options.proxy` | `process.env.https_proxy` | `process.env.http_proxy`\n  const proxy = applyNoProxyOption(\n    urlSegments,\n    options.proxy || (isHttps ? process.env.https_proxy : undefined) || process.env.http_proxy,\n  );\n\n  const nativeHttpModule = isHttps ? https : http;\n  const keepAlive = options.keepAlive ?? true;\n  const agent = proxy\n    ? (new HttpsProxyAgent(proxy) as http.Agent)\n    : new nativeHttpModule.Agent({ keepAlive, maxSockets: 30, timeout: 2000 });\n\n  const requestExecutor = createRequestExecutor(options, options.httpModule ?? nativeHttpModule, agent);\n  return createTransport(options, requestExecutor);\n}\n\n/**\n * Honors the `no_proxy` env variable with the highest priority to allow for hosts exclusion.\n *\n * @param transportUrl The URL the transport intends to send events to.\n * @param proxy The client configured proxy.\n * @returns A proxy the transport should use.\n */\nfunction applyNoProxyOption(transportUrlSegments: URL, proxy: string | undefined): string | undefined {\n  const { no_proxy } = process.env;\n\n  const urlIsExemptFromProxy = no_proxy\n    ?.split(',')\n    .some(\n      exemption => transportUrlSegments.host.endsWith(exemption) || transportUrlSegments.hostname.endsWith(exemption),\n    );\n\n  if (urlIsExemptFromProxy) {\n    return undefined;\n  } else {\n    return proxy;\n  }\n}\n\n/**\n * Creates a RequestExecutor to be used with `createTransport`.\n */\nfunction createRequestExecutor(\n  options: NodeTransportOptions,\n  httpModule: HTTPModule,\n  agent: http.Agent,\n): TransportRequestExecutor {\n  const { hostname, pathname, port, protocol, search } = new URL(options.url);\n  return function makeRequest(request: TransportRequest): Promise<TransportMakeRequestResponse> {\n    const sendRequest = (canRetry: boolean): Promise<TransportMakeRequestResponse> =>\n      new Promise((resolve, reject) => {\n        // This ensures we do not generate any spans in OpenTelemetry for the transport\n        suppressTracing(() => {\n          // Recreate the body on each attempt so a retry is not piping a consumed stream.\n          let body = streamFromBody(request.body);\n\n          const headers: Record<string, string> = { ...options.headers };\n\n          if (request.body.length > GZIP_THRESHOLD) {\n            headers['content-encoding'] = 'gzip';\n            body = body.pipe(createGzip());\n          }\n\n          const hostnameIsIPv6 = hostname.startsWith('[');\n\n          const req = httpModule.request(\n            {\n              method: 'POST',\n              agent,\n              headers,\n              // Remove \"[\" and \"]\" from IPv6 hostnames\n              hostname: hostnameIsIPv6 ? hostname.slice(1, -1) : hostname,\n              path: `${pathname}${search}`,\n              port,\n              protocol,\n              ca: options.caCerts,\n            },\n            res => {\n              res.on('data', () => {\n                // Drain socket\n              });\n\n              res.on('end', () => {\n                // Drain socket\n              });\n\n              res.setEncoding('utf8');\n\n              // \"Key-value pairs of header names and values. Header names are lower-cased.\"\n              // https://nodejs.org/api/http.html#http_message_headers\n              const retryAfterHeader = res.headers['retry-after'] ?? null;\n              const rateLimitsHeader = res.headers['x-sentry-rate-limits'] ?? null;\n\n              resolve({\n                statusCode: res.statusCode,\n                headers: {\n                  'retry-after': retryAfterHeader,\n                  'x-sentry-rate-limits': Array.isArray(rateLimitsHeader)\n                    ? rateLimitsHeader[0] || null\n                    : rateLimitsHeader,\n                },\n              });\n            },\n          );\n\n          req.on('error', error => {\n            // Keep-alive sockets can go stale while a serverless isolate is frozen.\n            // Node recommends a single retry when the reused socket resets.\n            if (canRetry && req.reusedSocket && (error as NodeJS.ErrnoException).code === 'ECONNRESET') {\n              resolve(sendRequest(false));\n            } else {\n              reject(error);\n            }\n          });\n          body.pipe(req);\n        });\n      });\n\n    return sendRequest(true);\n  };\n}\n","import { posix, sep } from 'node:path';\nimport { dirname } from '@sentry/core';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path: string): string {\n  return path\n    .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n    .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nexport function createGetModuleFromFilename(\n  basePath: string = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n  isWindows: boolean = sep === '\\\\',\n): (filename: string | undefined) => string | undefined {\n  const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n  return (filename: string | undefined) => {\n    if (!filename) {\n      return;\n    }\n\n    const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n    // eslint-disable-next-line prefer-const\n    let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n    if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n      file = file.slice(0, ext.length * -1);\n    }\n\n    // The file name might be URI-encoded which we want to decode to\n    // the original file name.\n    const decodedFile = decodeURIComponent(file);\n\n    if (!dir) {\n      // No dirname whatsoever\n      dir = '.';\n    }\n\n    const n = dir.lastIndexOf('/node_modules');\n    if (n > -1) {\n      return `${dir.slice(n + 14).replace(/\\//g, '.')}:${decodedFile}`;\n    }\n\n    // Let's see if it's a part of the main module\n    // To be a part of main module, it has to share the same base\n    if (dir.startsWith(normalizedBase)) {\n      const moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n      return moduleName ? `${moduleName}:${decodedFile}` : decodedFile;\n    }\n\n    return decodedFile;\n  };\n}\n","// PUBLIC APIS\n\nimport type { StackParser } from '@sentry/core';\nimport { createStackParser, GLOBAL_OBJ } from '@sentry/core';\nimport { _INTERNAL_getReleaseFromCommitEnv as getReleaseFromCommitEnv, nodeStackLineParser } from '@sentry/core/server';\nimport { createGetModuleFromFilename } from '../utils/module';\n\n/**\n * Returns a release dynamically from environment variables.\n */\nexport function getSentryRelease(fallback?: string): string | undefined {\n  // Always read first as Sentry takes this as precedence\n  if (process.env.SENTRY_RELEASE) {\n    return process.env.SENTRY_RELEASE;\n  }\n\n  // This supports the variable that sentry-webpack-plugin injects\n  if (GLOBAL_OBJ.SENTRY_RELEASE?.id) {\n    return GLOBAL_OBJ.SENTRY_RELEASE.id;\n  }\n\n  return getReleaseFromCommitEnv() || fallback;\n}\n\n/** Node.js stack parser */\nexport const defaultStackParser: StackParser = createStackParser(nodeStackLineParser(createGetModuleFromFilename()));\n","import { resolve } from 'node:path';\nimport { defaultStackParser } from '../sdk/api';\n\nexport interface ProcessInterface {\n  execArgv: string[];\n  argv: string[];\n  cwd: () => string;\n}\n\nexport interface ProcessArgs {\n  appPath: string;\n  importPaths: string[];\n  requirePaths: string[];\n}\n\n/**\n * Parses the process arguments to determine the app path, import paths, and require paths.\n */\nexport function parseProcessPaths(proc: ProcessInterface): ProcessArgs {\n  const { execArgv, argv, cwd: getCwd } = proc;\n  const cwd = getCwd();\n  const appPath = resolve(cwd, argv[1] || '');\n\n  const joinedArgs = execArgv.join(' ');\n  const importPaths = Array.from(joinedArgs.matchAll(/--import[ =](\\S+)/g)).map(e => resolve(cwd, e[1] || ''));\n  const requirePaths = Array.from(joinedArgs.matchAll(/(?:--require|-r)[ =](\\S+)/g)).map(e => resolve(cwd, e[1] || ''));\n\n  return { appPath, importPaths, requirePaths };\n}\n\n/**\n * Gets the current entry point type.\n *\n * `app` means this function was most likely called via the app entry point.\n * `import` means this function was most likely called from an --import cli arg.\n * `require` means this function was most likely called from a --require cli arg.\n * `unknown` means we couldn't determine for sure.\n */\nexport function getEntryPointType(proc: ProcessInterface = process): 'import' | 'require' | 'app' | 'unknown' {\n  const filenames = defaultStackParser(new Error().stack || '')\n    .map(f => f.filename)\n    .filter(Boolean) as string[];\n\n  const { appPath, importPaths, requirePaths } = parseProcessPaths(proc);\n\n  const output = [];\n\n  if (appPath && filenames.includes(appPath)) {\n    output.push('app');\n  }\n\n  if (importPaths.some(p => filenames.includes(p))) {\n    output.push('import');\n  }\n\n  if (requirePaths.some(p => filenames.includes(p))) {\n    output.push('require');\n  }\n\n  // We only only return anything other than 'unknown' if we only got one match.\n  if (output.length === 1) {\n    return output[0] as 'import' | 'require' | 'app';\n  }\n\n  return 'unknown';\n}\n","import { envToBool } from '@sentry/core';\n\n/**\n * Parse the spotlight option with proper precedence:\n * - `false` or explicit string from options: use as-is\n * - `true`: enable spotlight, but prefer a custom URL from the env var if set\n * - `undefined`: defer entirely to the env var (bool or URL)\n */\nexport function getSpotlightConfig(optionsSpotlight: boolean | string | undefined): boolean | string | undefined {\n  if (optionsSpotlight === false) {\n    return false;\n  }\n\n  if (typeof optionsSpotlight === 'string') {\n    return optionsSpotlight;\n  }\n\n  // optionsSpotlight is true or undefined\n  const envBool = envToBool(process.env.SENTRY_SPOTLIGHT, { strict: true });\n  const envUrl = envBool === null && process.env.SENTRY_SPOTLIGHT ? process.env.SENTRY_SPOTLIGHT : undefined;\n\n  return optionsSpotlight === true\n    ? (envUrl ?? true) // true: use env URL if present, otherwise true\n    : (envBool ?? envUrl); // undefined: use env var (bool or URL)\n}\n","import { createContextKey } from '@opentelemetry/api';\n\nexport const SENTRY_TRACE_HEADER = 'sentry-trace';\nexport const SENTRY_BAGGAGE_HEADER = 'baggage';\n\nexport const SENTRY_TRACE_STATE_DSC = 'sentry.dsc';\nexport const SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING = 'sentry.sampled_not_recording';\n\nexport const SENTRY_SCOPES_CONTEXT_KEY = createContextKey('sentry_scopes');\n\nexport const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY = createContextKey('sentry_fork_isolation_scope');\n\nexport const SENTRY_FORK_SET_SCOPE_CONTEXT_KEY = createContextKey('sentry_fork_set_scope');\n\nexport const SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY = createContextKey('sentry_fork_set_isolation_scope');\n","import type { Context } from '@opentelemetry/api';\nimport type { Scope } from '@sentry/core';\nimport { derefWeakRef, makeWeakRef, type MaybeWeakRef } from '@sentry/core';\nimport { SENTRY_SCOPES_CONTEXT_KEY } from '../constants';\nimport type { CurrentScopes } from '../types';\n\nconst SCOPE_CONTEXT_FIELD = 'context';\n\n/**\n * Try to get the current scopes from the given OTEL context.\n * This requires a Context Manager that was wrapped with getWrappedContextManager.\n */\nexport function getScopesFromContext(context: Context): CurrentScopes | undefined {\n  return context.getValue(SENTRY_SCOPES_CONTEXT_KEY) as CurrentScopes | undefined;\n}\n\n/**\n * Set the current scopes on an OTEL context.\n * This will return a forked context with the Propagation Context set.\n */\nexport function setScopesOnContext(context: Context, scopes: CurrentScopes): Context {\n  return context.setValue(SENTRY_SCOPES_CONTEXT_KEY, scopes);\n}\n\n/**\n * Set the context on the scope so we can later look it up.\n * We need this to get the context from the scope in the `trace` functions.\n *\n * We use WeakRef to avoid a circular reference between the scope and the context.\n * The context holds scopes (via SENTRY_SCOPES_CONTEXT_KEY), and if the scope held\n * a strong reference back to the context, neither could be garbage collected even\n * when the context is no longer reachable from application code (e.g., after a\n * request completes but pooled connections retain patched callbacks).\n */\nexport function setContextOnScope(scope: Scope, context: Context): void {\n  scope.refs[SCOPE_CONTEXT_FIELD] = makeWeakRef(context);\n}\n\n/**\n * Get the context related to a scope.\n * Returns undefined if the context has been garbage collected (when WeakRef is used).\n */\nexport function getContextFromScope(scope: Scope): Context | undefined {\n  return derefWeakRef(scope.refs[SCOPE_CONTEXT_FIELD] as MaybeWeakRef<Context> | undefined);\n}\n","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * NOTICE from the Sentry authors:\n * - Minimal vendored implementation of `TraceState` from `@opentelemetry/core`\n *   to avoid pulling in that dependency for a single class.\n * - Drops raw-string parsing and key/value validation, neither of which are\n *   used by the SDK — the W3C `tracestate` header is parsed by OTel's own\n *   propagators (which use their own `TraceState`), and every key we `set`\n *   is a known constant.\n */\nimport type { TraceState as TraceStateInterface } from '@opentelemetry/api';\n\n/**\n * Minimal implementation of the W3C `tracestate` field as a `@opentelemetry/api`\n * `TraceState`. New entries are inserted at the front of the list, and updating\n * an existing key moves it to the front.\n *\n * See https://www.w3.org/TR/trace-context/#tracestate-field for the field spec.\n */\nexport class TraceState implements TraceStateInterface {\n  private _internalState: Map<string, string> = new Map();\n\n  /** @inheritDoc */\n  public set(key: string, value: string): TraceState {\n    const next = this._clone();\n    if (next._internalState.has(key)) {\n      next._internalState.delete(key);\n    }\n    next._internalState.set(key, value);\n    return next;\n  }\n\n  /** @inheritDoc */\n  public unset(key: string): TraceState {\n    const next = this._clone();\n    next._internalState.delete(key);\n    return next;\n  }\n\n  /** @inheritDoc */\n  public get(key: string): string | undefined {\n    return this._internalState.get(key);\n  }\n\n  /** @inheritDoc */\n  public serialize(): string {\n    return Array.from(this._internalState.keys())\n      .reverse()\n      .map(key => `${key}=${this._internalState.get(key)}`)\n      .join(',');\n  }\n\n  private _clone(): TraceState {\n    const next = new TraceState();\n    next._internalState = new Map(this._internalState);\n    return next;\n  }\n}\n","import type { DynamicSamplingContext } from '@sentry/core';\nimport { dynamicSamplingContextToSentryBaggageHeader } from '@sentry/core';\nimport { SENTRY_TRACE_STATE_DSC, SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING } from '../constants';\nimport { TraceState } from './TraceState';\n\n/**\n * Generate a TraceState for the given data.\n */\nexport function makeTraceState({\n  dsc,\n  sampled,\n}: {\n  dsc?: Partial<DynamicSamplingContext>;\n  sampled?: boolean;\n}): TraceState {\n  // We store the DSC as OTEL trace state on the span context\n  const dscString = dsc ? dynamicSamplingContextToSentryBaggageHeader(dsc) : undefined;\n\n  const traceStateBase = new TraceState();\n\n  const traceStateWithDsc = dscString ? traceStateBase.set(SENTRY_TRACE_STATE_DSC, dscString) : traceStateBase;\n\n  // We also specifically want to store if this is sampled to be not recording,\n  // or unsampled (=could be either sampled or not)\n  return sampled === false ? traceStateWithDsc.set(SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING, '1') : traceStateWithDsc;\n}\n","import type { Context, SpanContext, TextMapGetter, TextMapPropagator, TextMapSetter } from '@opentelemetry/api';\nimport { context, trace, TraceFlags } from '@opentelemetry/api';\nimport type { continueTrace, DynamicSamplingContext } from '@sentry/core';\nimport {\n  _INTERNAL_safeMathRandom,\n  baggageHeaderToDynamicSamplingContext,\n  consoleSandbox,\n  generateTraceId,\n  getClient,\n  getCurrentScope,\n  getIsolationScope,\n  getTraceData,\n  isTracingSuppressed,\n  propagationContextFromHeaders,\n  shouldContinueTrace,\n} from '@sentry/core';\nimport { getScopesFromContext, setScopesOnContext } from './utils/contextData';\nimport { makeTraceState } from './utils/makeTraceState';\n\nconst SENTRY_TRACE_HEADER = 'sentry-trace';\nconst SENTRY_BAGGAGE_HEADER = 'baggage';\nconst W3C_TRACEPARENT_HEADER = 'traceparent';\n\n/**\n * A minimal OpenTelemetry `TextMapPropagator` that injects and extracts Sentry trace data.\n *\n * This propagator only supports injecting/extracting from current context, for simplicity sake.\n * It will bail and do nothing if using a different context.\n */\nexport class SentryPropagator implements TextMapPropagator {\n  /** @inheritDoc */\n  public inject(ctx: Context, carrier: unknown, setter: TextMapSetter): void {\n    if (ctx !== context.active()) {\n      consoleSandbox(() => {\n        // oxlint-disable-next-line no-console\n        console.warn(\n          'SentryPropagator: Injecting trace data of a different context than the active one is not supported. Skipping injection.',\n        );\n      });\n      return;\n    }\n\n    if (isTracingSuppressed()) {\n      return;\n    }\n\n    const { propagateTraceparent } = getClient()?.getOptions() ?? {};\n\n    // Pick trace data from the current scope\n    const { 'sentry-trace': sentryTrace, baggage, traceparent } = getTraceData({ propagateTraceparent });\n\n    if (sentryTrace) {\n      setter.set(carrier, SENTRY_TRACE_HEADER, sentryTrace);\n    }\n    if (baggage) {\n      setter.set(carrier, SENTRY_BAGGAGE_HEADER, baggage);\n    }\n    if (traceparent) {\n      setter.set(carrier, W3C_TRACEPARENT_HEADER, traceparent);\n    }\n  }\n\n  /** @inheritDoc */\n  public extract(ctx: Context, carrier: unknown, getter: TextMapGetter): Context {\n    const maybeSentryTraceHeader: string | string[] | undefined = getter.get(carrier, SENTRY_TRACE_HEADER);\n    const baggage = getter.get(carrier, SENTRY_BAGGAGE_HEADER);\n\n    const sentryTrace = Array.isArray(maybeSentryTraceHeader) ? maybeSentryTraceHeader[0] : maybeSentryTraceHeader;\n\n    // Add remote parent span context. If there is no incoming trace, this returns the context as-is.\n    return getContextWithRemoteActiveSpanAndScopes(ctx, { sentryTrace, baggage });\n  }\n\n  /** @inheritDoc */\n  public fields(): string[] {\n    return [SENTRY_TRACE_HEADER, SENTRY_BAGGAGE_HEADER, W3C_TRACEPARENT_HEADER];\n  }\n}\n\nfunction getContextWithRemoteActiveSpan(\n  ctx: Context,\n  { sentryTrace, baggage }: Parameters<typeof continueTrace>[0],\n): Context {\n  const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);\n\n  const { traceId, parentSpanId, sampled, dsc } = propagationContext;\n\n  const client = getClient();\n  const incomingDsc = baggageHeaderToDynamicSamplingContext(baggage);\n\n  // We only want to set the virtual span if we are continuing a concrete trace\n  // Otherwise, we ignore the incoming trace here, e.g. if we have no trace headers\n  if (!parentSpanId || (client && !shouldContinueTrace(client, incomingDsc?.org_id))) {\n    return ctx;\n  }\n\n  const spanContext = generateRemoteSpanContext({\n    traceId,\n    spanId: parentSpanId,\n    sampled,\n    dsc,\n  });\n\n  return trace.setSpanContext(ctx, spanContext);\n}\n\n/**\n * Build a context that continues an incoming trace as a remote active span, with scopes ensured.\n * Returns the context so it can be used to implement an OpenTelemetry propagator's `extract`.\n */\nfunction getContextWithRemoteActiveSpanAndScopes(ctx: Context, options: Parameters<typeof continueTrace>[0]): Context {\n  const ctxWithRemoteSpan = getContextWithRemoteActiveSpan(ctx, options);\n  // If a remote active span was set, we are continuing an incoming trace, so the trace id is fixed.\n  // Otherwise there was no (valid) incoming trace and we are the head of a new trace.\n  const isContinuingTrace = trace.getSpanContext(ctxWithRemoteSpan) !== undefined;\n  return ensureScopesOnContext(ctxWithRemoteSpan, isContinuingTrace);\n}\n\nfunction ensureScopesOnContext(ctx: Context, isContinuingTrace: boolean): Context {\n  // If there are no scopes yet on the context, ensure we have them\n  const scopes = getScopesFromContext(ctx);\n\n  // If we have no scope here, this is most likely either the root context or a context manually derived from it\n  // In this case, we want to fork the current scope, to ensure we do not pollute the root scope\n  const scope = scopes ? scopes.scope : getCurrentScope().clone();\n\n  // When we forked a fresh scope and are not continuing an incoming trace, we give it its own trace.\n  // Without this, concurrent header-less requests (e.g. edge middleware, whose root span is created by\n  // upstream OTEL instrumentation rather than through `continueTrace`) would all inherit the forked\n  // scope's trace id and collapse into a single trace. Mirrors `continueTrace` in the core HTTP server.\n  if (!scopes && !isContinuingTrace) {\n    const propagationContext = scope.getPropagationContext();\n    scope.setPropagationContext({\n      ...propagationContext,\n      traceId: generateTraceId(),\n      sampleRand: _INTERNAL_safeMathRandom(),\n    });\n  }\n\n  const newScopes = {\n    scope,\n    isolationScope: scopes ? scopes.isolationScope : getIsolationScope(),\n  };\n\n  return setScopesOnContext(ctx, newScopes);\n}\n\nfunction generateRemoteSpanContext({\n  spanId,\n  traceId,\n  sampled,\n  dsc,\n}: {\n  spanId: string;\n  traceId: string;\n  sampled: boolean | undefined;\n  dsc?: Partial<DynamicSamplingContext>;\n}): SpanContext {\n  // We store the DSC as OTEL trace state on the span context\n  const traceState = makeTraceState({\n    dsc,\n    sampled,\n  });\n\n  const spanContext: SpanContext = {\n    traceId,\n    spanId,\n    isRemote: true,\n    traceFlags: sampled ? TraceFlags.SAMPLED : TraceFlags.NONE,\n    traceState,\n  };\n\n  return spanContext;\n}\n","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * NOTICE from the Sentry authors:\n * - Minimal vendored implementation of the tracing-suppression helpers from\n *   `@opentelemetry/core` to avoid pulling in that dependency.\n * - The context key string must stay byte-identical to OTel's, since other\n *   OpenTelemetry instrumentation (e.g. `@opentelemetry/instrumentation-http`)\n *   writes to the same key and our tracer reads it back to suppress spans.\n * - `unsuppressTracing` is dropped, as the SDK never removes the flag.\n */\nimport type { Context } from '@opentelemetry/api';\nimport { createContextKey } from '@opentelemetry/api';\n\nconst SUPPRESS_TRACING_KEY = createContextKey('OpenTelemetry SDK Context Key SUPPRESS_TRACING');\n\n/** Returns a new context with tracing suppressed, so no spans are created within it. */\nexport function suppressTracing(context: Context): Context {\n  return context.setValue(SUPPRESS_TRACING_KEY, true);\n}\n\n/** Whether tracing is suppressed in the given context. */\nexport function isTracingSuppressed(context: Context): boolean {\n  return context.getValue(SUPPRESS_TRACING_KEY) === true;\n}\n","import type { Link } from '@opentelemetry/api';\nimport type { SpanLink } from '@sentry/core';\n\n/**\n * Converts OpenTelemetry span links to Sentry span links.\n *\n * Since `@opentelemetry/api` 1.10.0, link attribute values are typed as `unknown`.\n * Sentry's `SpanLink` only accepts strings, numbers, booleans and arrays of these as attribute values,\n * so OTel links do not match its type.\n */\nexport function convertSpanLinkType(links: Link[] | undefined): SpanLink[] | undefined {\n  return links as SpanLink[] | undefined;\n}\n","import type { Context, Span as OpenTelemetrySpan, SpanOptions, Tracer } from '@opentelemetry/api';\nimport { context, isSpanContextValid, trace } from '@opentelemetry/api';\nimport { isTracingSuppressed } from './utils/suppressTracing';\nimport {\n  _INTERNAL_setSpanForScope,\n  startInactiveSpan,\n  addChildSpanToSpan,\n  getActiveSpan,\n  getCapturedScopesOnSpan,\n  getCurrentScope,\n  getIsolationScope,\n  markSpanAsTracerProviderSpan,\n  SentryNonRecordingSpan,\n  setCapturedScopesOnSpan,\n  spanIsIgnored,\n  spanKindToName,\n  otelTimeInputToSeconds,\n  startNewTrace,\n  withScope,\n} from '@sentry/core';\nimport type { Span, SpanAttributes } from '@sentry/core';\nimport { SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY } from './constants';\nimport { convertSpanLinkType } from './utils/convertSpanLinkType';\nimport { SENTRY_KIND } from '@sentry/conventions/attributes';\n\nexport class SentryTracer implements Tracer {\n  /** @inheritdoc */\n  public startSpan(name: string, options: SpanOptions = {}, ctx?: Context): OpenTelemetrySpan {\n    const parentContext = ctx || context.active();\n    const parentSpanCandidate = options.root ? undefined : trace.getSpan(parentContext);\n    // Ignore an invalid parent (e.g. a malformed incoming trace/span id) and start a fresh trace,\n    // matching the OTel SDK sampler's `getValidSpan` behaviour.\n    const parentSpan =\n      parentSpanCandidate && isSpanContextValid(parentSpanCandidate.spanContext()) ? parentSpanCandidate : undefined;\n\n    if (isTracingSuppressed(parentContext)) {\n      return this._createNonRecordingSpan(parentSpan);\n    }\n\n    const span = this._startSentrySpan(name, options, parentSpan, ctx !== undefined);\n\n    // Mark the span as provider-created so it becomes immutable after `end()` like an OTel SDK span\n    // (see `SentrySpan.end()`). Spans created directly through the core API (e.g. the browser SDK)\n    // are not marked and keep their mutable behavior.\n    markSpanAsTracerProviderSpan(span);\n\n    return span;\n  }\n\n  /** @inheritdoc */\n  public startActiveSpan<F extends (span: OpenTelemetrySpan) => unknown>(name: string, fn: F): ReturnType<F>;\n  public startActiveSpan<F extends (span: OpenTelemetrySpan) => unknown>(\n    name: string,\n    options: SpanOptions,\n    fn: F,\n  ): ReturnType<F>;\n  public startActiveSpan<F extends (span: OpenTelemetrySpan) => unknown>(\n    name: string,\n    options: SpanOptions,\n    ctx: Context,\n    fn: F,\n  ): ReturnType<F>;\n  public startActiveSpan<F extends (span: OpenTelemetrySpan) => unknown>(\n    name: string,\n    optionsOrFn: SpanOptions | F,\n    contextOrFn?: Context | F,\n    fn?: F,\n  ): ReturnType<F> {\n    const options = typeof optionsOrFn === 'function' ? {} : optionsOrFn;\n    const explicitCtx = typeof contextOrFn === 'function' || contextOrFn === undefined ? undefined : contextOrFn;\n    const ctx = explicitCtx ?? context.active();\n    const callback = (\n      typeof optionsOrFn === 'function' ? optionsOrFn : typeof contextOrFn === 'function' ? contextOrFn : fn\n    ) as F;\n\n    // Only forward a context the caller actually passed. Forwarding the resolved `context.active()`\n    // instead would read as an explicit root request on runtimes without an OTel context manager\n    // (e.g. Cloudflare), where `context.active()` is always `ROOT_CONTEXT`, detaching every span\n    // from the Sentry active span instead of nesting under it.\n    const span = this.startSpan(name, options, explicitCtx);\n\n    // Run the span's callback under the isolation scope captured when the span was created, so scope state\n    // used or set during the span (tags, breadcrumbs, captured errors) belongs to that span and stays\n    // isolated from other concurrent work. Without this it can land on a different isolation scope. This\n    // holds for ignored spans too, which run the callback without ever becoming the active span.\n    const capturedIsolationScope = getCapturedScopesOnSpan(span).isolationScope;\n    const withCapturedIsolationScope = (contextToFork: Context): Context =>\n      capturedIsolationScope\n        ? contextToFork.setValue(SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY, capturedIsolationScope)\n        : contextToFork;\n\n    // Mirror core's `startSpan`: an ignored (`ignoreSpans`) span that has a parent must not become the\n    // active span. Otherwise its children would attach to it and, since it's non-recording, be dropped\n    // along with it (cascading the drop down the whole subtree). Leaving the parent active lets the\n    // children attach to it and get re-parented instead. An ignored root span has no parent and still\n    // becomes active, so its subtree is dropped as intended.\n    if (spanIsIgnored(span) && this._hasParentSpan(options, explicitCtx)) {\n      return context.with(withCapturedIsolationScope(ctx), () => callback(span)) as ReturnType<F>;\n    }\n\n    return context.with(withCapturedIsolationScope(trace.setSpan(ctx, span)), () => {\n      // Without an OTel context manager (e.g. Cloudflare) `context.with` runs the callback directly and\n      // nothing forks the scope, so setting the span on the current scope would leak it past the callback.\n      // Fork explicitly in that case so the previously active span is restored afterwards.\n      if (trace.getSpan(context.active()) !== span) {\n        return withScope(scope => {\n          _INTERNAL_setSpanForScope(scope, span);\n          return callback(span) as ReturnType<F>;\n        });\n      }\n\n      _INTERNAL_setSpanForScope(getCurrentScope(), span);\n      return callback(span) as ReturnType<F>;\n    });\n  }\n\n  /**\n   * Whether a span started with these arguments gets a parent. Mirrors the parent lookup in `startSpan`\n   * plus core's fallback to the scope's active span, which is what parents the span on runtimes without an\n   * OTel context manager.\n   */\n  private _hasParentSpan(options: SpanOptions, explicitCtx: Context | undefined): boolean {\n    if (options.root) {\n      return false;\n    }\n    const parentSpan = explicitCtx ? trace.getSpan(explicitCtx) : getActiveSpan();\n    return !!parentSpan && isSpanContextValid(parentSpan.spanContext());\n  }\n\n  private _startSentrySpan(\n    name: string,\n    options: SpanOptions,\n    parentSpan: OpenTelemetrySpan | undefined,\n    hasExplicitContext: boolean,\n  ): Span {\n    const sentryOptions = {\n      name,\n      attributes: (options.attributes as SpanAttributes) || {},\n      links: convertSpanLinkType(options.links),\n      startTime: options.startTime != null ? otelTimeInputToSeconds(options.startTime) : undefined,\n    };\n\n    // Convert otel kind to our sentry.kind attribtue\n    if (options.kind) {\n      sentryOptions.attributes[SENTRY_KIND] = spanKindToName(options.kind);\n    }\n\n    if (options.root) {\n      return startNewTrace(() => startInactiveSpan({ ...sentryOptions, parentSpan: null }));\n    }\n\n    if (parentSpan) {\n      // Remote parents are handled by core: it continues their trace and starts a root span.\n      return startInactiveSpan({ ...sentryOptions, parentSpan: parentSpan });\n    }\n\n    // No parent span and no remote parent: this is a fresh root span.\n    return startInactiveSpan({\n      ...sentryOptions,\n      parentSpan: hasExplicitContext ? null : undefined,\n    });\n  }\n\n  private _createNonRecordingSpan(parentSpan: OpenTelemetrySpan | undefined): OpenTelemetrySpan {\n    // Without a parent, fall back to the current scope's propagation context trace id, so that\n    // non-recording spans (TwP mode) stay on the trace set by `startNewTrace`/`continueTrace`\n    // instead of minting a fresh random trace id. Mirrors core's `createChildOrRootSpan` TwP branch.\n    const traceId = parentSpan?.spanContext().traceId ?? getCurrentScope().getPropagationContext().traceId;\n    const span = new SentryNonRecordingSpan({ traceId });\n    // Link to the parent (like core's `createChildOrRootSpan`) so `getRootSpan` and DSC\n    // resolution reach the parent. Non-recording spans no longer carry a `parentSpanId`.\n    if (parentSpan) {\n      addChildSpanToSpan(parentSpan, span);\n    }\n    // Capture the scopes (mirroring `createChildOrRootSpan`) so `startActiveSpan` can\n    // fork the isolation scope onto the OTel context for work inside a suppressed span.\n    setCapturedScopesOnSpan(span, getCurrentScope(), getIsolationScope());\n    return span;\n  }\n}\n","import type { Tracer, TracerOptions, TracerProvider } from '@opentelemetry/api';\nimport { SentryTracer } from './tracer';\n\n/**\n * A minimal OpenTelemetry TracerProvider which creates native Sentry spans.\n */\nexport class SentryTracerProvider implements TracerProvider {\n  private readonly _tracers = new Map<string, SentryTracer>();\n\n  /** @inheritdoc */\n  public getTracer(name: string, version?: string, options?: TracerOptions): Tracer {\n    const key = JSON.stringify([name, version, options]);\n    const cachedTracer = this._tracers.get(key);\n    if (cachedTracer) {\n      return cachedTracer;\n    }\n\n    const tracer = new SentryTracer();\n    this._tracers.set(key, tracer);\n    return tracer;\n  }\n\n  /** Compatibility with SDK tracer providers. */\n  public forceFlush(): Promise<void> {\n    return Promise.resolve();\n  }\n\n  /** Compatibility with SDK tracer providers. */\n  public shutdown(): Promise<void> {\n    return Promise.resolve();\n  }\n}\n","import type { Span } from '@opentelemetry/api';\nimport { context, trace } from '@opentelemetry/api';\nimport type { Scope } from '@sentry/core';\nimport { _INTERNAL_setSpanForScope, getCurrentScope } from '@sentry/core';\n\n/**\n * Forks the current scope and sets the provided span as active span in the context of the provided callback. Can be\n * passed `null` to start an entirely new span tree.\n *\n * @param span Spans started in the context of the provided callback will be children of this span. If `null` is passed,\n * spans started within the callback will be root spans.\n * @param callback Execution context in which the provided span will be active. Is passed the newly forked scope.\n * @returns the value returned from the provided callback function.\n */\nexport function withActiveSpan<T>(span: Span | null, callback: (scope: Scope) => T): T {\n  const newContextWithActiveSpan = span ? trace.setSpan(context.active(), span) : trace.deleteSpan(context.active());\n\n  return context.with(newContextWithActiveSpan, () => {\n    const scope = getCurrentScope();\n    // Keep the scope's span in sync with the context, like `SentryTracer.startActiveSpan` does.\n    _INTERNAL_setSpanForScope(scope, span ?? undefined);\n    return callback(scope);\n  });\n}\n","import type { Span } from '@opentelemetry/api';\nimport { isSpanContextValid, trace } from '@opentelemetry/api';\nimport type { Scope } from '@sentry/core';\nimport { getContextFromScope } from './contextData';\n\n/**\n * Returns the currently active span, or the active span of the given scope's context.\n *\n * Spans with an invalid span context (e.g. a malformed incoming trace/span id put on the context by\n * a propagator) are ignored, matching the OTel SDK tracer, so consumers start a fresh trace instead\n * of continuing a broken one.\n */\nexport function getActiveSpan(scope?: Scope): Span | undefined {\n  const span = scope ? getSpanFromScope(scope) : trace.getActiveSpan();\n  return span && isSpanContextValid(span.spanContext()) ? span : undefined;\n}\n\nfunction getSpanFromScope(scope: Scope): Span | undefined {\n  const ctx = getContextFromScope(scope);\n  // If no context can be picked from the scope, there is no span for it\n  return ctx ? trace.getSpan(ctx) : undefined;\n}\n","import type { Context } from '@opentelemetry/api';\nimport type { Scope } from '@sentry/core';\nimport { getCurrentScope, getIsolationScope } from '@sentry/core';\nimport {\n  SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY,\n  SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY,\n  SENTRY_FORK_SET_SCOPE_CONTEXT_KEY,\n} from '../constants';\nimport { getScopesFromContext, setContextOnScope, setScopesOnContext } from './contextData';\n\n/**\n * Merge Sentry scopes into an OpenTelemetry {@link Context} and apply trace-context adjustments\n * used by Sentry OpenTelemetry context manager(s).\n *\n * @param context - Context passed into `ContextManager.with`.\n * @param activeContext - Context that was active before entering `with` (e.g. `this.active()`), used\n *   to restore the parent span when the incoming span is marked ignored for children.\n * @returns A new context ready for `super.with` / `AsyncLocalStorage.run`.\n */\nexport function buildContextWithSentryScopes(context: Context): Context {\n  const currentScopes = getScopesFromContext(context);\n  const currentScope = currentScopes?.scope || getCurrentScope();\n  const currentIsolationScope = currentScopes?.isolationScope || getIsolationScope();\n\n  const shouldForkIsolationScope = context.getValue(SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY) === true;\n  const scope = context.getValue(SENTRY_FORK_SET_SCOPE_CONTEXT_KEY) as Scope | undefined;\n  const isolationScope = context.getValue(SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY) as Scope | undefined;\n\n  const newCurrentScope = scope || currentScope.clone();\n  const newIsolationScope =\n    isolationScope || (shouldForkIsolationScope ? currentIsolationScope.clone() : currentIsolationScope);\n  const scopes = { scope: newCurrentScope, isolationScope: newIsolationScope };\n\n  const ctx1 = setScopesOnContext(context, scopes);\n\n  const ctx2 = ctx1\n    .deleteValue(SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY)\n    .deleteValue(SENTRY_FORK_SET_SCOPE_CONTEXT_KEY)\n    .deleteValue(SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY);\n\n  setContextOnScope(newCurrentScope, ctx2);\n\n  return ctx2;\n}\n","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * NOTICE from the Sentry authors:\n * This implementation follows the behavior of OpenTelemetry’s `@opentelemetry/context-async-hooks`\n * package, combining logic that upstream splits across:\n * - https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-context-async-hooks/src/AbstractAsyncHooksContextManager.ts\n * - https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-context-async-hooks/src/AsyncLocalStorageContextManager.ts\n * It is a single-class re-implementation for Sentry (not a verbatim copy of those files).\n */\n\nimport type { Context, ContextManager } from '@opentelemetry/api';\nimport { ROOT_CONTEXT } from '@opentelemetry/api';\nimport type { AsyncLocalStorage } from 'node:async_hooks';\nimport type { EventEmitter } from 'node:events';\nimport { SENTRY_SCOPES_CONTEXT_KEY } from './constants';\nimport { buildContextWithSentryScopes } from './utils/buildContextWithSentryScopes';\n\nexport type AsyncLocalStorageLookup = {\n  asyncLocalStorage: AsyncLocalStorage<unknown>;\n  /**\n   * The OpenTelemetry context key under which the `{ scope, isolationScope }` object is stored, for\n   * native threads that read scope out of the AsyncLocalStorage (e.g. `@sentry/node-native`). Omitted\n   * for the pure AsyncLocalStorage strategy, whose store already is that object.\n   */\n  contextSymbol?: symbol;\n};\ntype ListenerFn = (...args: unknown[]) => unknown;\n\n/**\n * Per-event map from user listeners to context-bound listeners.\n */\ntype PatchMap = Record<string, WeakMap<ListenerFn, ListenerFn>>;\n\nconst ADD_LISTENER_METHODS = ['addListener', 'on', 'once', 'prependListener', 'prependOnceListener'] as const;\n\n/**\n * OpenTelemetry-compatible context manager using Node.js `AsyncLocalStorage`.\n */\nexport class SentryAsyncLocalStorageContextManager implements ContextManager {\n  protected readonly _asyncLocalStorage: AsyncLocalStorage<Context>;\n\n  private readonly _kOtListeners = Symbol('OtListeners');\n  private _wrapped = false;\n\n  public constructor(asyncLocalStorage: AsyncLocalStorage<Context>) {\n    this._asyncLocalStorage = asyncLocalStorage;\n  }\n\n  public active(): Context {\n    return this._asyncLocalStorage.getStore() ?? ROOT_CONTEXT;\n  }\n\n  public with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(\n    context: Context,\n    fn: F,\n    thisArg?: ThisParameterType<F>,\n    ...args: A\n  ): ReturnType<F> {\n    const ctx2 = buildContextWithSentryScopes(context);\n    const cb = thisArg == null ? fn : fn.bind(thisArg);\n    return this._asyncLocalStorage.run(ctx2, cb as never, ...args);\n  }\n\n  public enable(): this {\n    return this;\n  }\n\n  public disable(): this {\n    try {\n      this._asyncLocalStorage.disable();\n    } catch {\n      // we don't care if something goes wrong here\n    }\n    return this;\n  }\n\n  public bind<T>(context: Context, target: T): T {\n    if (isEventEmitter(target)) {\n      return this._bindEventEmitter(context, target);\n    }\n    if (typeof target === 'function') {\n      return this._bindFunction(context, target as unknown as ListenerFn) as T;\n    }\n    return target;\n  }\n\n  /**\n   * Gets underlying AsyncLocalStorage and symbol to allow lookup of scope.\n   * This is Sentry-specific.\n   */\n  public getAsyncLocalStorageLookup(): AsyncLocalStorageLookup {\n    return {\n      asyncLocalStorage: this._asyncLocalStorage,\n      contextSymbol: SENTRY_SCOPES_CONTEXT_KEY,\n    };\n  }\n\n  private _bindFunction(context: Context, target: ListenerFn): ListenerFn {\n    const managerWith = this.with.bind(this);\n    const contextWrapper = function (this: never, ...args: unknown[]) {\n      return managerWith(context, () => target.apply(this, args));\n    };\n    Object.defineProperty(contextWrapper, 'length', {\n      enumerable: false,\n      configurable: true,\n      writable: false,\n      value: target.length,\n    });\n    return contextWrapper;\n  }\n\n  private _bindEventEmitter<T extends EventEmitter>(context: Context, ee: T): T {\n    if (this._getPatchMap(ee) !== undefined) {\n      return ee;\n    }\n    if (this._createPatchMap(ee) === undefined) {\n      return ee;\n    }\n\n    for (const methodName of ADD_LISTENER_METHODS) {\n      const original = getMethod(ee, methodName);\n      if (!original) continue;\n      trySetMethod(ee, methodName, this._patchAddListener(ee, original, context));\n    }\n    for (const methodName of ['removeListener', 'off'] as const) {\n      const original = getMethod(ee, methodName);\n      if (!original) continue;\n      trySetMethod(ee, methodName, this._patchRemoveListener(ee, original));\n    }\n    const removeAllListeners = getMethod(ee, 'removeAllListeners');\n    if (removeAllListeners) {\n      trySetMethod(ee, 'removeAllListeners', this._patchRemoveAllListeners(ee, removeAllListeners));\n    }\n    return ee;\n  }\n\n  private _patchRemoveListener(ee: EventEmitter, original: (...args: unknown[]) => unknown) {\n    // oxlint-disable-next-line @typescript-eslint/no-this-alias\n    const contextManager = this;\n    return function (this: unknown, event: string, listener: ListenerFn) {\n      const events = contextManager._getPatchMap(ee)?.[event];\n      if (events === undefined) {\n        return original.call(this, event, listener);\n      }\n      const patchedListener = events.get(listener);\n      return original.call(this, event, patchedListener || listener);\n    };\n  }\n\n  private _patchRemoveAllListeners(ee: EventEmitter, original: (...args: unknown[]) => unknown) {\n    // oxlint-disable-next-line @typescript-eslint/no-this-alias\n    const contextManager = this;\n    return function (this: unknown, event?: string) {\n      const map = contextManager._getPatchMap(ee);\n      if (map !== undefined) {\n        if (arguments.length === 0) {\n          // Best-effort reset: if the emitter was frozen after binding, this cannot replace the map\n          // (and the map itself could not be cleared in place either). A stale map is harmless though —\n          // `_patchAddListener` overwrites entries when a listener is re-added, and `_patchRemoveListener`\n          // passing an already-unregistered wrapper to `original` is a no-op.\n          contextManager._createPatchMap(ee);\n        } else if (event !== undefined && map[event] !== undefined) {\n          // oxlint-disable-next-line @typescript-eslint/no-dynamic-delete -- event-keyed listener map\n          delete map[event];\n        }\n      }\n      return original.apply(this, arguments);\n    };\n  }\n\n  private _patchAddListener(ee: EventEmitter, original: (...args: unknown[]) => unknown, context: Context) {\n    // oxlint-disable-next-line @typescript-eslint/no-this-alias\n    const contextManager = this;\n    return function (this: unknown, event: string, listener: ListenerFn) {\n      if (contextManager._wrapped) {\n        return original.call(this, event, listener);\n      }\n      const map = contextManager._getPatchMap(ee) ?? contextManager._createPatchMap(ee);\n      if (map === undefined) {\n        return original.call(this, event, listener);\n      }\n      let listeners = map[event];\n      if (listeners === undefined) {\n        listeners = new WeakMap();\n        map[event] = listeners;\n      }\n      const patchedListener = contextManager.bind(context, listener);\n      listeners.set(listener, patchedListener);\n\n      contextManager._wrapped = true;\n      try {\n        return original.call(this, event, patchedListener);\n      } finally {\n        contextManager._wrapped = false;\n      }\n    };\n  }\n\n  /**\n   * Attach a fresh patch map to the emitter. Returns `undefined` if the emitter does not accept the\n   * property (e.g. it is frozen or sealed), in which case the emitter must not be patched at all —\n   * without a patch map the remove-listener patches could not resolve their wrapped listeners.\n   */\n  private _createPatchMap(ee: EventEmitter): PatchMap | undefined {\n    const map = Object.create(null) as PatchMap;\n    try {\n      (ee as unknown as Record<symbol, PatchMap>)[this._kOtListeners] = map;\n    } catch {\n      return undefined;\n    }\n    return this._getPatchMap(ee) === map ? map : undefined;\n  }\n\n  private _getPatchMap(ee: EventEmitter): PatchMap | undefined {\n    return (ee as unknown as Record<symbol, PatchMap | undefined>)[this._kOtListeners];\n  }\n}\n\n/**\n * Duck-typed `EventEmitter` check.\n *\n * We use this instead of `instanceof EventEmitter` so it also works in non-Node.js environments (e.g. vercel-edge)\n * and across realms. Both `on` and `emit` must be callable — checking only for the presence of an `on` property\n * would classify plain objects like `{ on: true }` as emitters and later try to call a non-function.\n */\nfunction isEventEmitter(target: unknown): target is EventEmitter {\n  if (typeof target !== 'object' || !target) {\n    return false;\n  }\n  const candidate = target as Partial<Record<'on' | 'emit', unknown>>;\n  return typeof candidate.on === 'function' && typeof candidate.emit === 'function';\n}\n\n/**\n * Read a method off an emitter, ignoring inherited or own properties that are not callable.\n */\nfunction getMethod<T extends EventEmitter>(ee: T, methodName: keyof EventEmitter): ListenerFn | undefined {\n  const value = (ee as unknown as Record<string, unknown>)[methodName as string];\n  return typeof value === 'function' ? (value as ListenerFn) : undefined;\n}\n\n/**\n * Assign a patched method back onto the emitter. Emitters may be frozen or expose getter-only methods,\n * in which case we leave the original method in place instead of throwing.\n */\nfunction trySetMethod<T extends EventEmitter>(\n  ee: T,\n  methodName: keyof EventEmitter,\n  patched: (...args: never[]) => unknown,\n): void {\n  try {\n    (ee as unknown as Record<string, unknown>)[methodName as string] = patched;\n  } catch {\n    // Nothing to do, the emitter keeps its unpatched method\n  }\n}\n","import * as api from '@opentelemetry/api';\nimport type { Scope, TracingChannelBinding } from '@sentry/core';\nimport {\n  getAsyncContextStrategy,\n  _INTERNAL_safeMathRandom,\n  generateTraceId,\n  getDefaultCurrentScope,\n  getDefaultIsolationScope,\n  getMainCarrier,\n  isContinuingTrace,\n  setAsyncContextStrategy,\n} from '@sentry/core';\nimport {\n  SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY,\n  SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY,\n  SENTRY_FORK_SET_SCOPE_CONTEXT_KEY,\n} from './constants';\nimport { withActiveSpan } from './trace';\nimport type { CurrentScopes } from './types';\nimport { getContextFromScope, getScopesFromContext } from './utils/contextData';\nimport { getActiveSpan } from './utils/getActiveSpan';\nimport { AsyncLocalStorage } from 'node:async_hooks';\nimport type { AsyncLocalStorageLookup } from './asyncLocalStorageContextManager';\nimport { SentryAsyncLocalStorageContextManager } from './asyncLocalStorageContextManager';\n\n/**\n * Sets the async context strategy to use follow the OTEL context under the hood.\n * We handle forking a hub inside of our custom OTEL Context Manager (./otelContextManager.ts)\n */\nexport function setOpenTelemetryContextAsyncContextStrategy(): AsyncLocalStorageLookup {\n  // Re-use the AsyncLocalStorage of an already-installed strategy, if any. Otherwise a repeated\n  // setup would swap in a new store while integrations that captured the previous one (via\n  // `getTracingChannelBinding().asyncLocalStorage`) keep reading the old one, breaking scope\n  // propagation across async boundaries.\n  const existingAsyncLocalStorage = getAsyncContextStrategy(getMainCarrier()).getTracingChannelBinding?.()\n    ?.asyncLocalStorage as AsyncLocalStorage<api.Context> | undefined;\n\n  const asyncLocalStorage = existingAsyncLocalStorage ?? new AsyncLocalStorage<api.Context>();\n\n  function getScopes(): CurrentScopes {\n    const ctx = api.context.active();\n    const scopes = getScopesFromContext(ctx);\n\n    if (scopes) {\n      return scopes;\n    }\n\n    // fallback behavior:\n    // if, for whatever reason, we can't find scopes on the context here, we have to fix this somehow\n    return {\n      scope: getDefaultCurrentScope(),\n      isolationScope: getDefaultIsolationScope(),\n    };\n  }\n\n  function withScope<T>(callback: (scope: Scope) => T): T {\n    const ctx = api.context.active();\n\n    // We depend on the otelContextManager to handle the context/hub\n    // We set the `SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY` context value, which is picked up by\n    // the OTEL context manager, which uses the presence of this key to determine if it should\n    // fork the isolation scope, or not\n    // as by default, we don't want to fork this, unless triggered explicitly by `withScope`\n    return api.context.with(ctx, () => {\n      return callback(getCurrentScope());\n    });\n  }\n\n  function withSetScope<T>(scope: Scope, callback: (scope: Scope) => T): T {\n    const ctx = getContextFromScope(scope) || api.context.active();\n\n    // We depend on the otelContextManager to handle the context/hub\n    // We set the `SENTRY_FORK_SET_SCOPE_CONTEXT_KEY` context value, which is picked up by\n    // the OTEL context manager, which picks up this scope as the current scope\n    return api.context.with(ctx.setValue(SENTRY_FORK_SET_SCOPE_CONTEXT_KEY, scope), () => {\n      return callback(scope);\n    });\n  }\n\n  function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T {\n    const ctx = api.context.active();\n\n    // We depend on the otelContextManager to handle the context/hub\n    // We set the `SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY` context value, which is picked up by\n    // the OTEL context manager, which uses the presence of this key to determine if it should\n    // fork the isolation scope, or not\n    return api.context.with(ctx.setValue(SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY, true), () => {\n      // When forking an isolation scope, unless we are continuing an incoming\n      // trace, we give the freshly forked scope its own trace. This way, new\n      // root spans in an isolation scope will get separate traces. The\n      // previous trace's `sampled` and `propagationSpanId` are dropped on\n      // purpose. Carrying them over would apply the old trace's sampling\n      // decision to the new one and propagate a span id from a different trace.\n      const scope = getCurrentScope();\n      if (!isContinuingTrace(scope.getPropagationContext())) {\n        scope.setPropagationContext({\n          traceId: generateTraceId(),\n          sampleRand: _INTERNAL_safeMathRandom(),\n        });\n      }\n      return callback(getIsolationScope());\n    });\n  }\n\n  function withSetIsolationScope<T>(isolationScope: Scope, callback: (isolationScope: Scope) => T): T {\n    const ctx = api.context.active();\n\n    // We depend on the otelContextManager to handle the context/hub\n    // We set the `SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY` context value, which is picked up by\n    // the OTEL context manager, which uses the presence of this key to determine if it should\n    // fork the isolation scope, or not\n    return api.context.with(ctx.setValue(SENTRY_FORK_SET_ISOLATION_SCOPE_CONTEXT_KEY, isolationScope), () => {\n      return callback(getIsolationScope());\n    });\n  }\n\n  function getCurrentScope(): Scope {\n    return getScopes().scope;\n  }\n\n  function getIsolationScope(): Scope {\n    return getScopes().isolationScope;\n  }\n\n  function getTracingChannelBinding(): TracingChannelBinding {\n    return {\n      asyncLocalStorage,\n    };\n  }\n\n  setAsyncContextStrategy({\n    withScope,\n    withSetScope,\n    withSetIsolationScope,\n    withIsolationScope,\n    getCurrentScope,\n    getIsolationScope,\n    getActiveSpan,\n    // The types here don't fully align, because our own `Span` type is narrower\n    // than the OTEL one - but this is OK for here, as we now we'll only have OTEL spans passed around\n    withActiveSpan: withActiveSpan,\n    getTracingChannelBinding,\n  });\n\n  const ctxManager = new SentryAsyncLocalStorageContextManager(asyncLocalStorage);\n  api.context.setGlobalContextManager(ctxManager);\n\n  return ctxManager.getAsyncLocalStorageLookup();\n}\n","import type { SpanContext } from '@opentelemetry/api';\nimport { TraceFlags } from '@opentelemetry/api';\nimport { baggageHeaderToDynamicSamplingContext } from '@sentry/core';\nimport { SENTRY_TRACE_STATE_DSC, SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING } from '../constants';\n\n/**\n * OpenTelemetry only knows about SAMPLED or NONE decision,\n * but for us it is important to differentiate between unset and unsampled.\n *\n * Both of these are identified as `traceFlags === TracegFlags.NONE`,\n * but we additionally look at a special trace state to differentiate between them.\n */\nexport function getSamplingDecision(spanContext: SpanContext): boolean | undefined {\n  const { traceFlags, traceState } = spanContext;\n\n  const sampledNotRecording = traceState ? traceState.get(SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING) === '1' : false;\n\n  // If trace flag is `SAMPLED`, we interpret this as sampled\n  // If it is `NONE`, it could mean either it was sampled to be not recorder, or that it was not sampled at all\n  // For us this is an important difference, sow e look at the SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING\n  // to identify which it is\n  if (traceFlags === TraceFlags.SAMPLED) {\n    return true;\n  }\n\n  if (sampledNotRecording) {\n    return false;\n  }\n\n  // Fall back to DSC as a last resort, that may also contain `sampled`...\n  const dscString = traceState ? traceState.get(SENTRY_TRACE_STATE_DSC) : undefined;\n  const dsc = dscString ? baggageHeaderToDynamicSamplingContext(dscString) : undefined;\n\n  if (dsc?.sampled === 'true') {\n    return true;\n  }\n  if (dsc?.sampled === 'false') {\n    return false;\n  }\n\n  return undefined;\n}\n","import type { Client } from '@sentry/core';\nimport { _INTERNAL_safeMathRandom, _INTERNAL_setSpanForScope, getDynamicSamplingContextFromSpan } from '@sentry/core';\nimport { SENTRY_TRACE_STATE_DSC } from './constants';\nimport { getSamplingDecision } from './utils/getSamplingDecision';\n\n/**\n * Registers the `prepareSpanScope` hook on the client.\n *\n * A remote parent is an incoming trace on the ambient OTel context, set by the propagator. It\n * cannot be used as a local parent span. The hook continues its trace through the propagation\n * context of a forked scope instead, so the span is created as a root span of the incoming trace,\n * like the OpenTelemetry SDK does for remote parents.\n */\nexport function registerPrepareSpanScope(client: Client): void {\n  client.on('prepareSpanScope', spanScope => {\n    const { scope, parentSpan } = spanScope;\n    if (!parentSpan?.spanContext().isRemote) {\n      return;\n    }\n\n    const { spanId, traceId, traceState } = parentSpan.spanContext();\n    const dsc = getDynamicSamplingContextFromSpan(parentSpan);\n    const sampleRand = typeof dsc.sample_rand === 'string' ? Number(dsc.sample_rand) : undefined;\n\n    // Only freeze the DSC when the remote parent actually carried one (i.e. there was incoming\n    // baggage). Otherwise leave it unset so it is derived dynamically from the span.\n    const hasIncomingDsc = !!traceState?.get(SENTRY_TRACE_STATE_DSC);\n\n    const forkedScope = scope.clone();\n    forkedScope.setPropagationContext({\n      traceId,\n      parentSpanId: spanId,\n      sampled: getSamplingDecision(parentSpan.spanContext()),\n      dsc: hasIncomingDsc ? dsc : undefined,\n      sampleRand: typeof sampleRand === 'number' && !Number.isNaN(sampleRand) ? sampleRand : _INTERNAL_safeMathRandom(),\n    });\n    _INTERNAL_setSpanForScope(forkedScope, undefined);\n\n    spanScope.scope = forkedScope;\n    spanScope.parentSpan = undefined;\n  });\n}\n","function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nfunction getDefaultExportFromNamespaceIfNotNamed (n) {\n\treturn n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;\n}\n\nexport { getDefaultExportFromCjs, getDefaultExportFromNamespaceIfNotNamed };\n//# sourceMappingURL=_commonjsHelpers.js.map\n","module.exports = satisfies\n\nfunction satisfies (v, t) {\n  const [version] = parse(v, '')\n\n  for (const checks of compile(t)) {\n    if (checkAll(checks, version)) return true\n  }\n\n  return false\n}\n\nfunction checkAll (checks, v) {\n  for (const [ok, t] of checks) {\n    if (!test(v, t, ok)) return false\n  }\n  return true\n}\n\nfunction match (t) {\n  if (t === 'latest') t = '>=0'\n  return t.match(/^([^\\d+]*)(\\d.*)$/) || [null, '', '*.*.*']\n}\n\nfunction compile (t) {\n  const result = []\n\n  let checks = []\n\n  const tokens = t.trim().split(/\\s+/)\n\n  for (let i = 0; i < tokens.length; i++) {\n    const t = tokens[i]\n\n    if (t === '-') continue\n\n    if (t === '||') {\n      result.push(checks)\n      checks = []\n      continue\n    }\n\n    // untrim whitespace if this is a range spec\n    if (/^[<>=~v^]+$/.test(t) && i + 1 < tokens.length) {\n      tokens[i + 1] = t + tokens[i + 1]\n      continue\n    }\n\n    const res = match(t)\n\n    let cmp = res[1] || '='\n    if (cmp.endsWith('v')) cmp = cmp.slice(0, -1)\n\n    let [v, c] = parse(res[2], cmp)\n\n    if (i + 2 < tokens.length && tokens[i + 1] === '-') {\n      const m = match(tokens[i + 2])\n      tokens[i + 2] = '<=' + (m[2].indexOf('-') === -1 ? m[2] + '.*.*' : m[2])\n      c = '>='\n    }\n\n    if (c[0] === '~') {\n      const digs = res[2].split('-')[0].split('.').length\n      checks.push(['>=', v])\n      checks.push(['<', digs === 1 ? inc(v, 0) : digs === 2 ? inc(v, 1) : inc(v, 1)])\n    } else if (c[0] === '^') {\n      const digs = v[0] !== 0 ? 0 : v[1] !== 0 ? 1 : 2\n      checks.push(['>=', v])\n      checks.push(['<', digs === 0 ? inc(v, 0) : digs === 1 ? inc(v, 1) : inc(v, 2)])\n    } else {\n      checks.push([c.replace('~', '').replace('^', ''), v])\n    }\n  }\n\n  if (checks.length) result.push(checks)\n  return result\n}\n\nfunction inc (v, n) {\n  const cpy = v.slice(0)\n  if (v[n] === -1) return cpy\n  cpy[n++]++\n  for (; n < 3; n++) cpy[n] = 0\n  return cpy\n}\n\nfunction num (n) {\n  return n === 'x' || n === 'X' || n === '*' || n === 'latest' ? -1 : Number(n)\n}\n\nfunction numOrString (s) {\n  return /^\\d+$/.test(s) ? Number(s) : s\n}\n\nfunction ok (c, a, b) {\n  return b === -1 // -1 means x\n    ? c !== '<'\n    : (c === '=' ? a === b : c === '>' ? a > b : c === '>=' ? a >= b : c === '<' ? a < b : c === '<=' ? a <= b : false)\n}\n\nfunction parse (v, c) {\n  v = v.split('+')[0] // strip build\n  const [a, b] = v.split('-')\n  const nums = a.split('.').map(num).slice(0, 3)\n  const last = Math.max(nums.length - 1, 0)\n\n  if (c === '>') { // coerce to >=\n    c = '>='\n    nums.push(0, 0, 0)\n    nums[last]++\n  } else if (c === '') { // no comparision, just zero fill\n    nums.push(0, 0, 0)\n  } else { // anything else just wilcard\n    nums.push(-1, -1, -1)\n  }\n\n  if (!b) return [nums.slice(0, 3), c]\n  return [nums.slice(0, 3).concat(b.split('.').map(numOrString)), c]\n}\n\nfunction test (v, t, c) {\n  if (!ok('=', v[0], t[0])) return ok(c, v[0], t[0])\n  if (!ok('=', v[1], t[1])) return ok(c, v[1], t[1])\n  if (!ok('=', v[2], t[2])) return ok(c, v[2], t[2])\n\n  // no prerelease - final compare\n  if (v.length === 3 && t.length === 3) return ok(c, v[2], t[2])\n\n  // can never be less when comparing to a prerelease\n  if (c[0] === '<' && (t.length === 3 || v.length === 3)) return false\n\n  // can sometimes be higher\n  if (c[0] === '>') {\n    if (v.length === 3) return true\n    if (t.length === 3) return false\n  }\n\n  for (let i = 3; i < Math.max(v.length, t.length); i++) {\n    if (ok(c, v[i] || '', t[i] || '')) return true\n  }\n\n  return false\n}\n","function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=r){var n,o,a,i,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||o(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function r(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(t)||o(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function o(t,r){if(t){if(\"string\"==typeof t)return e(t,r);var n={}.toString.call(t).slice(8,-1);return\"Object\"===n&&t.constructor&&(n=t.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(t):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self&&self;function a(e,t){return e(t={exports:{}},t.exports),t.exports}var i=a((function(e,t){!function e(t){var r,n,o,a,i,s;function u(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]=\"object\"==typeof r&&null!==r?u(r):r);return n}function l(e,t){this.parent=e,this.key=t}function c(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function f(){}function p(e){return null!=e&&(\"object\"==typeof e&&\"string\"==typeof e.type)}function h(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&\"properties\"===t}function y(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function d(e,t){return(new f).traverse(e,t)}function m(e,t){var r;return r=function(e,t){var r,n,o,a;for(n=e.length,o=0;n;)t(e[a=o+(r=n>>>1)])?n=r:(o=a+1,n-=r+1);return o}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:\"AssignmentExpression\",AssignmentPattern:\"AssignmentPattern\",ArrayExpression:\"ArrayExpression\",ArrayPattern:\"ArrayPattern\",ArrowFunctionExpression:\"ArrowFunctionExpression\",AwaitExpression:\"AwaitExpression\",BlockStatement:\"BlockStatement\",BinaryExpression:\"BinaryExpression\",BreakStatement:\"BreakStatement\",CallExpression:\"CallExpression\",CatchClause:\"CatchClause\",ChainExpression:\"ChainExpression\",ClassBody:\"ClassBody\",ClassDeclaration:\"ClassDeclaration\",ClassExpression:\"ClassExpression\",ComprehensionBlock:\"ComprehensionBlock\",ComprehensionExpression:\"ComprehensionExpression\",ConditionalExpression:\"ConditionalExpression\",ContinueStatement:\"ContinueStatement\",DebuggerStatement:\"DebuggerStatement\",DirectiveStatement:\"DirectiveStatement\",DoWhileStatement:\"DoWhileStatement\",EmptyStatement:\"EmptyStatement\",ExportAllDeclaration:\"ExportAllDeclaration\",ExportDefaultDeclaration:\"ExportDefaultDeclaration\",ExportNamedDeclaration:\"ExportNamedDeclaration\",ExportSpecifier:\"ExportSpecifier\",ExpressionStatement:\"ExpressionStatement\",ForStatement:\"ForStatement\",ForInStatement:\"ForInStatement\",ForOfStatement:\"ForOfStatement\",FunctionDeclaration:\"FunctionDeclaration\",FunctionExpression:\"FunctionExpression\",GeneratorExpression:\"GeneratorExpression\",Identifier:\"Identifier\",IfStatement:\"IfStatement\",ImportExpression:\"ImportExpression\",ImportDeclaration:\"ImportDeclaration\",ImportDefaultSpecifier:\"ImportDefaultSpecifier\",ImportNamespaceSpecifier:\"ImportNamespaceSpecifier\",ImportSpecifier:\"ImportSpecifier\",Literal:\"Literal\",LabeledStatement:\"LabeledStatement\",LogicalExpression:\"LogicalExpression\",MemberExpression:\"MemberExpression\",MetaProperty:\"MetaProperty\",MethodDefinition:\"MethodDefinition\",ModuleSpecifier:\"ModuleSpecifier\",NewExpression:\"NewExpression\",ObjectExpression:\"ObjectExpression\",ObjectPattern:\"ObjectPattern\",PrivateIdentifier:\"PrivateIdentifier\",Program:\"Program\",Property:\"Property\",PropertyDefinition:\"PropertyDefinition\",RestElement:\"RestElement\",ReturnStatement:\"ReturnStatement\",SequenceExpression:\"SequenceExpression\",SpreadElement:\"SpreadElement\",Super:\"Super\",SwitchStatement:\"SwitchStatement\",SwitchCase:\"SwitchCase\",TaggedTemplateExpression:\"TaggedTemplateExpression\",TemplateElement:\"TemplateElement\",TemplateLiteral:\"TemplateLiteral\",ThisExpression:\"ThisExpression\",ThrowStatement:\"ThrowStatement\",TryStatement:\"TryStatement\",UnaryExpression:\"UnaryExpression\",UpdateExpression:\"UpdateExpression\",VariableDeclaration:\"VariableDeclaration\",VariableDeclarator:\"VariableDeclarator\",WhileStatement:\"WhileStatement\",WithStatement:\"WithStatement\",YieldExpression:\"YieldExpression\"},o={AssignmentExpression:[\"left\",\"right\"],AssignmentPattern:[\"left\",\"right\"],ArrayExpression:[\"elements\"],ArrayPattern:[\"elements\"],ArrowFunctionExpression:[\"params\",\"body\"],AwaitExpression:[\"argument\"],BlockStatement:[\"body\"],BinaryExpression:[\"left\",\"right\"],BreakStatement:[\"label\"],CallExpression:[\"callee\",\"arguments\"],CatchClause:[\"param\",\"body\"],ChainExpression:[\"expression\"],ClassBody:[\"body\"],ClassDeclaration:[\"id\",\"superClass\",\"body\"],ClassExpression:[\"id\",\"superClass\",\"body\"],ComprehensionBlock:[\"left\",\"right\"],ComprehensionExpression:[\"blocks\",\"filter\",\"body\"],ConditionalExpression:[\"test\",\"consequent\",\"alternate\"],ContinueStatement:[\"label\"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:[\"body\",\"test\"],EmptyStatement:[],ExportAllDeclaration:[\"source\"],ExportDefaultDeclaration:[\"declaration\"],ExportNamedDeclaration:[\"declaration\",\"specifiers\",\"source\"],ExportSpecifier:[\"exported\",\"local\"],ExpressionStatement:[\"expression\"],ForStatement:[\"init\",\"test\",\"update\",\"body\"],ForInStatement:[\"left\",\"right\",\"body\"],ForOfStatement:[\"left\",\"right\",\"body\"],FunctionDeclaration:[\"id\",\"params\",\"body\"],FunctionExpression:[\"id\",\"params\",\"body\"],GeneratorExpression:[\"blocks\",\"filter\",\"body\"],Identifier:[],IfStatement:[\"test\",\"consequent\",\"alternate\"],ImportExpression:[\"source\"],ImportDeclaration:[\"specifiers\",\"source\"],ImportDefaultSpecifier:[\"local\"],ImportNamespaceSpecifier:[\"local\"],ImportSpecifier:[\"imported\",\"local\"],Literal:[],LabeledStatement:[\"label\",\"body\"],LogicalExpression:[\"left\",\"right\"],MemberExpression:[\"object\",\"property\"],MetaProperty:[\"meta\",\"property\"],MethodDefinition:[\"key\",\"value\"],ModuleSpecifier:[],NewExpression:[\"callee\",\"arguments\"],ObjectExpression:[\"properties\"],ObjectPattern:[\"properties\"],PrivateIdentifier:[],Program:[\"body\"],Property:[\"key\",\"value\"],PropertyDefinition:[\"key\",\"value\"],RestElement:[\"argument\"],ReturnStatement:[\"argument\"],SequenceExpression:[\"expressions\"],SpreadElement:[\"argument\"],Super:[],SwitchStatement:[\"discriminant\",\"cases\"],SwitchCase:[\"test\",\"consequent\"],TaggedTemplateExpression:[\"tag\",\"quasi\"],TemplateElement:[],TemplateLiteral:[\"quasis\",\"expressions\"],ThisExpression:[],ThrowStatement:[\"argument\"],TryStatement:[\"block\",\"handler\",\"finalizer\"],UnaryExpression:[\"argument\"],UpdateExpression:[\"argument\"],VariableDeclaration:[\"declarations\"],VariableDeclarator:[\"id\",\"init\"],WhileStatement:[\"test\",\"body\"],WithStatement:[\"object\",\"body\"],YieldExpression:[\"argument\"]},n={Break:a={},Skip:i={},Remove:s={}},l.prototype.replace=function(e){this.parent[this.key]=e},l.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var e,t,r,n,o;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(o=[],e=2,t=this.__leavelist.length;e<t;++e)a(o,this.__leavelist[e].path);return a(o,this.__current.path),o},f.prototype.type=function(){return this.current().type||this.__current.wrap},f.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},f.prototype.current=function(){return this.__current.node},f.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},f.prototype.notify=function(e){this.__state=e},f.prototype.skip=function(){this.notify(i)},f.prototype.break=function(){this.notify(a)},f.prototype.remove=function(){this.notify(s)},f.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,\"iteration\"===t.fallback?this.__fallback=Object.keys:\"function\"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=o,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},f.prototype.traverse=function(e,t){var r,n,o,s,u,l,f,d,m,x,v,g;for(this.__initialize(e,t),g={},r=this.__worklist,n=this.__leavelist,r.push(new c(e,null,null,null)),n.push(new c(null,null,null,null));r.length;)if((o=r.pop())!==g){if(o.node){if(l=this.__execute(t.enter,o),this.__state===a||l===a)return;if(r.push(g),n.push(o),this.__state===i||l===i)continue;if(u=(s=o.node).type||o.wrap,!(x=this.__keys[u])){if(!this.__fallback)throw new Error(\"Unknown node type \"+u+\".\");x=this.__fallback(s)}for(d=x.length;(d-=1)>=0;)if(v=s[f=x[d]])if(Array.isArray(v)){for(m=v.length;(m-=1)>=0;)if(v[m]&&!y(n,v[m])){if(h(u,x[d]))o=new c(v[m],[f,m],\"Property\",null);else{if(!p(v[m]))continue;o=new c(v[m],[f,m],null,null)}r.push(o)}}else if(p(v)){if(y(n,v))continue;r.push(new c(v,f,null,null))}}}else if(o=n.pop(),l=this.__execute(t.leave,o),this.__state===a||l===a)return},f.prototype.replace=function(e,t){var r,n,o,u,f,y,d,m,x,v,g,A,E;function b(e){var t,n,o,a;if(e.ref.remove())for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((o=r[t]).ref&&o.ref.parent===a){if(o.ref.key<n)break;--o.ref.key}}for(this.__initialize(e,t),g={},r=this.__worklist,n=this.__leavelist,y=new c(e,null,null,new l(A={root:e},\"root\")),r.push(y),n.push(y);r.length;)if((y=r.pop())!==g){if(void 0!==(f=this.__execute(t.enter,y))&&f!==a&&f!==i&&f!==s&&(y.ref.replace(f),y.node=f),this.__state!==s&&f!==s||(b(y),y.node=null),this.__state===a||f===a)return A.root;if((o=y.node)&&(r.push(g),n.push(y),this.__state!==i&&f!==i)){if(u=o.type||y.wrap,!(x=this.__keys[u])){if(!this.__fallback)throw new Error(\"Unknown node type \"+u+\".\");x=this.__fallback(o)}for(d=x.length;(d-=1)>=0;)if(v=o[E=x[d]])if(Array.isArray(v)){for(m=v.length;(m-=1)>=0;)if(v[m]){if(h(u,x[d]))y=new c(v[m],[E,m],\"Property\",new l(v,m));else{if(!p(v[m]))continue;y=new c(v[m],[E,m],null,new l(v,m))}r.push(y)}}else p(v)&&r.push(new c(v,E,null,new l(o,E)))}}else if(y=n.pop(),void 0!==(f=this.__execute(t.leave,y))&&f!==a&&f!==i&&f!==s&&y.ref.replace(f),this.__state!==s&&f!==s||b(y),this.__state===a||f===a)return A.root;return A.root},t.Syntax=r,t.traverse=d,t.replace=function(e,t){return(new f).replace(e,t)},t.attachComments=function(e,t,r){var o,a,i,s,l=[];if(!e.range)throw new Error(\"attachComments needs range information\");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(o=u(t[i])).extendedRange=[0,e.range[0]],l.push(o);e.leadingComments=l}return e}for(i=0,a=t.length;i<a;i+=1)l.push(m(u(t[i]),r));return s=0,d(e,{enter:function(e){for(var t;s<l.length&&!((t=l[s]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?n.Break:l[s].extendedRange[0]>e.range[1]?n.Skip:void 0}}),s=0,d(e,{leave:function(e){for(var t;s<l.length&&(t=l[s],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?n.Break:l[s].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=o,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t}(t)})),s=a((function(e){e.exports&&(e.exports=function(){function e(t,r,n,o){this.message=t,this.expected=r,this.found=n,this.location=o,this.name=\"SyntaxError\",\"function\"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'\"'+o(e.text)+'\"'},class:function(e){var t,r=\"\";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+\"-\"+a(e.parts[t][1]):a(e.parts[t]);return\"[\"+(e.inverted?\"^\":\"\")+r+\"]\"},any:function(e){return\"any character\"},end:function(e){return\"end of input\"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"').replace(/\\0/g,\"\\\\0\").replace(/\\t/g,\"\\\\t\").replace(/\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\r\").replace(/[\\x00-\\x0F]/g,(function(e){return\"\\\\x0\"+n(e)})).replace(/[\\x10-\\x1F\\x7F-\\x9F]/g,(function(e){return\"\\\\x\"+n(e)}))}function a(e){return e.replace(/\\\\/g,\"\\\\\\\\\").replace(/\\]/g,\"\\\\]\").replace(/\\^/g,\"\\\\^\").replace(/-/g,\"\\\\-\").replace(/\\0/g,\"\\\\0\").replace(/\\t/g,\"\\\\t\").replace(/\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\r\").replace(/[\\x00-\\x0F]/g,(function(e){return\"\\\\x0\"+n(e)})).replace(/[\\x10-\\x1F\\x7F-\\x9F]/g,(function(e){return\"\\\\x\"+n(e)}))}return\"Expected \"+function(e){var t,n,o,a=new Array(e.length);for(t=0;t<e.length;t++)a[t]=(o=e[t],r[o.type](o));if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+\" or \"+a[1];default:return a.slice(0,-1).join(\", \")+\", or \"+a[a.length-1]}}(e)+\" but \"+function(e){return e?'\"'+o(e)+'\"':\"end of input\"}(t)+\" found.\"},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,o,a,i,s={},u={start:Ae},l=Ae,c=de(\" \",!1),f=/^[^ [\\],():#!=><~+.]/,p=me([\" \",\"[\",\"]\",\",\",\"(\",\")\",\":\",\"#\",\"!\",\"=\",\">\",\"<\",\"~\",\"+\",\".\"],!0,!1),h=de(\">\",!1),y=de(\"~\",!1),d=de(\"+\",!1),m=de(\",\",!1),x=function(e,t){return[e].concat(t.map((function(e){return e[3]})))},v=de(\"!\",!1),g=de(\"*\",!1),A=de(\"#\",!1),E=de(\"[\",!1),b=de(\"]\",!1),S=/^[><!]/,_=me([\">\",\"<\",\"!\"],!1,!1),C=de(\"=\",!1),P=function(e){return(e||\"\")+\"=\"},w=/^[><]/,k=me([\">\",\"<\"],!1,!1),D=de(\".\",!1),I=function(e,t,r){return{type:\"attribute\",name:e,operator:t,value:r}},j=de('\"',!1),T=/^[^\\\\\"]/,F=me([\"\\\\\",'\"'],!0,!1),R=de(\"\\\\\",!1),O={type:\"any\"},L=function(e,t){return e+t},M=function(e){return{type:\"literal\",value:(t=e.join(\"\"),t.replace(/\\\\(.)/g,(function(e,t){switch(t){case\"b\":return\"\\b\";case\"f\":return\"\\f\";case\"n\":return\"\\n\";case\"r\":return\"\\r\";case\"t\":return\"\\t\";case\"v\":return\"\\v\";default:return t}})))};var t},B=de(\"'\",!1),U=/^[^\\\\']/,K=me([\"\\\\\",\"'\"],!0,!1),N=/^[0-9]/,W=me([[\"0\",\"9\"]],!1,!1),V=de(\"type(\",!1),q=/^[^ )]/,G=me([\" \",\")\"],!0,!1),z=de(\")\",!1),H=/^[imsu]/,Y=me([\"i\",\"m\",\"s\",\"u\"],!1,!1),$=de(\"/\",!1),J=/^[^\\]\\\\]/,Q=me([\"]\",\"\\\\\"],!0,!1),X=/^[^\\/\\\\[]/,Z=me([\"/\",\"\\\\\",\"[\"],!0,!1),ee=de(\":not(\",!1),te=de(\":matches(\",!1),re=function(e){return{type:\"matches\",selectors:e}},ne=de(\":is(\",!1),oe=de(\":has(\",!1),ae=de(\":first-child\",!1),ie=de(\":last-child\",!1),se=de(\":nth-child(\",!1),ue=de(\":nth-last-child(\",!1),le=de(\":\",!1),ce=0,fe=[{line:1,column:1}],pe=0,he=[],ye={};if(\"startRule\"in r){if(!(r.startRule in u))throw new Error(\"Can't start parsing from rule \\\"\"+r.startRule+'\".');l=u[r.startRule]}function de(e,t){return{type:\"literal\",text:e,ignoreCase:t}}function me(e,t,r){return{type:\"class\",parts:e,inverted:t,ignoreCase:r}}function xe(e){var r,n=fe[e];if(n)return n;for(r=e-1;!fe[r];)r--;for(n={line:(n=fe[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return fe[e]=n,n}function ve(e,t){var r=xe(e),n=xe(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function ge(e){ce<pe||(ce>pe&&(pe=ce,he=[]),he.push(e))}function Ae(){var e,t,r,n,o=36*ce+0,a=ye[o];return a?(ce=a.nextPos,a.result):(e=ce,(t=Ee())!==s&&(r=_e())!==s&&Ee()!==s?e=t=1===(n=r).length?n[0]:{type:\"matches\",selectors:n}:(ce=e,e=s),e===s&&(e=ce,(t=Ee())!==s&&(t=void 0),e=t),ye[o]={nextPos:ce,result:e},e)}function Ee(){var e,r,n=36*ce+1,o=ye[n];if(o)return ce=o.nextPos,o.result;for(e=[],32===t.charCodeAt(ce)?(r=\" \",ce++):(r=s,ge(c));r!==s;)e.push(r),32===t.charCodeAt(ce)?(r=\" \",ce++):(r=s,ge(c));return ye[n]={nextPos:ce,result:e},e}function be(){var e,r,n,o=36*ce+2,a=ye[o];if(a)return ce=a.nextPos,a.result;if(r=[],f.test(t.charAt(ce))?(n=t.charAt(ce),ce++):(n=s,ge(p)),n!==s)for(;n!==s;)r.push(n),f.test(t.charAt(ce))?(n=t.charAt(ce),ce++):(n=s,ge(p));else r=s;return r!==s&&(r=r.join(\"\")),e=r,ye[o]={nextPos:ce,result:e},e}function Se(){var e,r,n,o=36*ce+3,a=ye[o];return a?(ce=a.nextPos,a.result):(e=ce,(r=Ee())!==s?(62===t.charCodeAt(ce)?(n=\">\",ce++):(n=s,ge(h)),n!==s&&Ee()!==s?e=r=\"child\":(ce=e,e=s)):(ce=e,e=s),e===s&&(e=ce,(r=Ee())!==s?(126===t.charCodeAt(ce)?(n=\"~\",ce++):(n=s,ge(y)),n!==s&&Ee()!==s?e=r=\"sibling\":(ce=e,e=s)):(ce=e,e=s),e===s&&(e=ce,(r=Ee())!==s?(43===t.charCodeAt(ce)?(n=\"+\",ce++):(n=s,ge(d)),n!==s&&Ee()!==s?e=r=\"adjacent\":(ce=e,e=s)):(ce=e,e=s),e===s&&(e=ce,32===t.charCodeAt(ce)?(r=\" \",ce++):(r=s,ge(c)),r!==s&&(n=Ee())!==s?e=r=\"descendant\":(ce=e,e=s)))),ye[o]={nextPos:ce,result:e},e)}function _e(){var e,r,n,o,a,i,u,l,c=36*ce+5,f=ye[c];if(f)return ce=f.nextPos,f.result;if(e=ce,(r=Pe())!==s){for(n=[],o=ce,(a=Ee())!==s?(44===t.charCodeAt(ce)?(i=\",\",ce++):(i=s,ge(m)),i!==s&&(u=Ee())!==s&&(l=Pe())!==s?o=a=[a,i,u,l]:(ce=o,o=s)):(ce=o,o=s);o!==s;)n.push(o),o=ce,(a=Ee())!==s?(44===t.charCodeAt(ce)?(i=\",\",ce++):(i=s,ge(m)),i!==s&&(u=Ee())!==s&&(l=Pe())!==s?o=a=[a,i,u,l]:(ce=o,o=s)):(ce=o,o=s);n!==s?e=r=x(r,n):(ce=e,e=s)}else ce=e,e=s;return ye[c]={nextPos:ce,result:e},e}function Ce(){var e,t,r,n,o,a=36*ce+6,i=ye[a];return i?(ce=i.nextPos,i.result):(e=ce,(t=Se())===s&&(t=null),t!==s&&(r=Pe())!==s?(o=r,e=t=(n=t)?{type:n,left:{type:\"exactNode\"},right:o}:o):(ce=e,e=s),ye[a]={nextPos:ce,result:e},e)}function Pe(){var e,t,r,n,o,a,i,u=36*ce+7,l=ye[u];if(l)return ce=l.nextPos,l.result;if(e=ce,(t=we())!==s){for(r=[],n=ce,(o=Se())!==s&&(a=we())!==s?n=o=[o,a]:(ce=n,n=s);n!==s;)r.push(n),n=ce,(o=Se())!==s&&(a=we())!==s?n=o=[o,a]:(ce=n,n=s);r!==s?(i=t,e=t=r.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),i)):(ce=e,e=s)}else ce=e,e=s;return ye[u]={nextPos:ce,result:e},e}function we(){var e,r,n,o,a,i,u,l=36*ce+8,c=ye[l];if(c)return ce=c.nextPos,c.result;if(e=ce,33===t.charCodeAt(ce)?(r=\"!\",ce++):(r=s,ge(v)),r===s&&(r=null),r!==s){if(n=[],(o=ke())!==s)for(;o!==s;)n.push(o),o=ke();else n=s;n!==s?(a=r,u=1===(i=n).length?i[0]:{type:\"compound\",selectors:i},a&&(u.subject=!0),e=r=u):(ce=e,e=s)}else ce=e,e=s;return ye[l]={nextPos:ce,result:e},e}function ke(){var e,r=36*ce+9,n=ye[r];return n?(ce=n.nextPos,n.result):((e=function(){var e,r,n=36*ce+10,o=ye[n];return o?(ce=o.nextPos,o.result):(42===t.charCodeAt(ce)?(r=\"*\",ce++):(r=s,ge(g)),r!==s&&(r={type:\"wildcard\",value:r}),e=r,ye[n]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n,o=36*ce+11,a=ye[o];return a?(ce=a.nextPos,a.result):(e=ce,35===t.charCodeAt(ce)?(r=\"#\",ce++):(r=s,ge(A)),r===s&&(r=null),r!==s&&(n=be())!==s?e=r={type:\"identifier\",value:n}:(ce=e,e=s),ye[o]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=36*ce+12,i=ye[a];return i?(ce=i.nextPos,i.result):(e=ce,91===t.charCodeAt(ce)?(r=\"[\",ce++):(r=s,ge(E)),r!==s&&Ee()!==s&&(n=function(){var e,r,n,o,a=36*ce+16,i=ye[a];return i?(ce=i.nextPos,i.result):(e=ce,(r=De())!==s&&Ee()!==s&&(n=function(){var e,r,n,o=36*ce+14,a=ye[o];return a?(ce=a.nextPos,a.result):(e=ce,33===t.charCodeAt(ce)?(r=\"!\",ce++):(r=s,ge(v)),r===s&&(r=null),r!==s?(61===t.charCodeAt(ce)?(n=\"=\",ce++):(n=s,ge(C)),n!==s?(r=P(r),e=r):(ce=e,e=s)):(ce=e,e=s),ye[o]={nextPos:ce,result:e},e)}())!==s&&Ee()!==s?((o=function(){var e,r,n,o,a,i=36*ce+20,u=ye[i];if(u)return ce=u.nextPos,u.result;if(e=ce,\"type(\"===t.substr(ce,5)?(r=\"type(\",ce+=5):(r=s,ge(V)),r!==s)if(Ee()!==s){if(n=[],q.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(G)),o!==s)for(;o!==s;)n.push(o),q.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(G));else n=s;n!==s&&(o=Ee())!==s?(41===t.charCodeAt(ce)?(a=\")\",ce++):(a=s,ge(z)),a!==s?(r={type:\"type\",value:n.join(\"\")},e=r):(ce=e,e=s)):(ce=e,e=s)}else ce=e,e=s;else ce=e,e=s;return ye[i]={nextPos:ce,result:e},e}())===s&&(o=function(){var e,r,n,o,a,i,u=36*ce+22,l=ye[u];if(l)return ce=l.nextPos,l.result;if(e=ce,47===t.charCodeAt(ce)?(r=\"/\",ce++):(r=s,ge($)),r!==s){if(n=[],(o=Ie())===s&&(o=je())===s&&(o=Te()),o!==s)for(;o!==s;)n.push(o),(o=Ie())===s&&(o=je())===s&&(o=Te());else n=s;n!==s?(47===t.charCodeAt(ce)?(o=\"/\",ce++):(o=s,ge($)),o!==s?((a=function(){var e,r,n=36*ce+21,o=ye[n];if(o)return ce=o.nextPos,o.result;if(e=[],H.test(t.charAt(ce))?(r=t.charAt(ce),ce++):(r=s,ge(Y)),r!==s)for(;r!==s;)e.push(r),H.test(t.charAt(ce))?(r=t.charAt(ce),ce++):(r=s,ge(Y));else e=s;return ye[n]={nextPos:ce,result:e},e}())===s&&(a=null),a!==s?(i=a,r={type:\"regexp\",value:new RegExp(n.join(\"\"),i?i.join(\"\"):\"\")},e=r):(ce=e,e=s)):(ce=e,e=s)):(ce=e,e=s)}else ce=e,e=s;return ye[u]={nextPos:ce,result:e},e}()),o!==s?(r=I(r,n,o),e=r):(ce=e,e=s)):(ce=e,e=s),e===s&&(e=ce,(r=De())!==s&&Ee()!==s&&(n=function(){var e,r,n,o=36*ce+13,a=ye[o];return a?(ce=a.nextPos,a.result):(e=ce,S.test(t.charAt(ce))?(r=t.charAt(ce),ce++):(r=s,ge(_)),r===s&&(r=null),r!==s?(61===t.charCodeAt(ce)?(n=\"=\",ce++):(n=s,ge(C)),n!==s?(r=P(r),e=r):(ce=e,e=s)):(ce=e,e=s),e===s&&(w.test(t.charAt(ce))?(e=t.charAt(ce),ce++):(e=s,ge(k))),ye[o]={nextPos:ce,result:e},e)}())!==s&&Ee()!==s?((o=function(){var e,r,n,o,a,i,u=36*ce+17,l=ye[u];if(l)return ce=l.nextPos,l.result;if(e=ce,34===t.charCodeAt(ce)?(r='\"',ce++):(r=s,ge(j)),r!==s){for(n=[],T.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(F)),o===s&&(o=ce,92===t.charCodeAt(ce)?(a=\"\\\\\",ce++):(a=s,ge(R)),a!==s?(t.length>ce?(i=t.charAt(ce),ce++):(i=s,ge(O)),i!==s?(a=L(a,i),o=a):(ce=o,o=s)):(ce=o,o=s));o!==s;)n.push(o),T.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(F)),o===s&&(o=ce,92===t.charCodeAt(ce)?(a=\"\\\\\",ce++):(a=s,ge(R)),a!==s?(t.length>ce?(i=t.charAt(ce),ce++):(i=s,ge(O)),i!==s?(a=L(a,i),o=a):(ce=o,o=s)):(ce=o,o=s));n!==s?(34===t.charCodeAt(ce)?(o='\"',ce++):(o=s,ge(j)),o!==s?(r=M(n),e=r):(ce=e,e=s)):(ce=e,e=s)}else ce=e,e=s;if(e===s)if(e=ce,39===t.charCodeAt(ce)?(r=\"'\",ce++):(r=s,ge(B)),r!==s){for(n=[],U.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(K)),o===s&&(o=ce,92===t.charCodeAt(ce)?(a=\"\\\\\",ce++):(a=s,ge(R)),a!==s?(t.length>ce?(i=t.charAt(ce),ce++):(i=s,ge(O)),i!==s?(a=L(a,i),o=a):(ce=o,o=s)):(ce=o,o=s));o!==s;)n.push(o),U.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(K)),o===s&&(o=ce,92===t.charCodeAt(ce)?(a=\"\\\\\",ce++):(a=s,ge(R)),a!==s?(t.length>ce?(i=t.charAt(ce),ce++):(i=s,ge(O)),i!==s?(a=L(a,i),o=a):(ce=o,o=s)):(ce=o,o=s));n!==s?(39===t.charCodeAt(ce)?(o=\"'\",ce++):(o=s,ge(B)),o!==s?(r=M(n),e=r):(ce=e,e=s)):(ce=e,e=s)}else ce=e,e=s;return ye[u]={nextPos:ce,result:e},e}())===s&&(o=function(){var e,r,n,o,a,i,u,l=36*ce+18,c=ye[l];if(c)return ce=c.nextPos,c.result;for(e=ce,r=ce,n=[],N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W));o!==s;)n.push(o),N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W));if(n!==s?(46===t.charCodeAt(ce)?(o=\".\",ce++):(o=s,ge(D)),o!==s?r=n=[n,o]:(ce=r,r=s)):(ce=r,r=s),r===s&&(r=null),r!==s){if(n=[],N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W));else n=s;n!==s?(i=n,u=(a=r)?[].concat.apply([],a).join(\"\"):\"\",r={type:\"literal\",value:parseFloat(u+i.join(\"\"))},e=r):(ce=e,e=s)}else ce=e,e=s;return ye[l]={nextPos:ce,result:e},e}())===s&&(o=function(){var e,t,r=36*ce+19,n=ye[r];return n?(ce=n.nextPos,n.result):((t=be())!==s&&(t={type:\"literal\",value:t}),e=t,ye[r]={nextPos:ce,result:e},e)}()),o!==s?(r=I(r,n,o),e=r):(ce=e,e=s)):(ce=e,e=s),e===s&&(e=ce,(r=De())!==s&&(r={type:\"attribute\",name:r}),e=r)),ye[a]={nextPos:ce,result:e},e)}())!==s&&Ee()!==s?(93===t.charCodeAt(ce)?(o=\"]\",ce++):(o=s,ge(b)),o!==s?e=r=n:(ce=e,e=s)):(ce=e,e=s),ye[a]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n,o,a,i,u,l,c=36*ce+26,f=ye[c];if(f)return ce=f.nextPos,f.result;if(e=ce,46===t.charCodeAt(ce)?(r=\".\",ce++):(r=s,ge(D)),r!==s)if((n=be())!==s){for(o=[],a=ce,46===t.charCodeAt(ce)?(i=\".\",ce++):(i=s,ge(D)),i!==s&&(u=be())!==s?a=i=[i,u]:(ce=a,a=s);a!==s;)o.push(a),a=ce,46===t.charCodeAt(ce)?(i=\".\",ce++):(i=s,ge(D)),i!==s&&(u=be())!==s?a=i=[i,u]:(ce=a,a=s);o!==s?(l=n,r={type:\"field\",name:o.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=r):(ce=e,e=s)}else ce=e,e=s;else ce=e,e=s;return ye[c]={nextPos:ce,result:e},e}())===s&&(e=function(){var e,r,n,o,a=36*ce+27,i=ye[a];return i?(ce=i.nextPos,i.result):(e=ce,\":not(\"===t.substr(ce,5)?(r=\":not(\",ce+=5):(r=s,ge(ee)),r!==s&&Ee()!==s&&(n=_e())!==s&&Ee()!==s?(41===t.charCodeAt(ce)?(o=\")\",ce++):(o=s,ge(z)),o!==s?e=r={type:\"not\",selectors:n}:(ce=e,e=s)):(ce=e,e=s),ye[a]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=36*ce+28,i=ye[a];return i?(ce=i.nextPos,i.result):(e=ce,\":matches(\"===t.substr(ce,9)?(r=\":matches(\",ce+=9):(r=s,ge(te)),r!==s&&Ee()!==s&&(n=_e())!==s&&Ee()!==s?(41===t.charCodeAt(ce)?(o=\")\",ce++):(o=s,ge(z)),o!==s?(r=re(n),e=r):(ce=e,e=s)):(ce=e,e=s),ye[a]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=36*ce+29,i=ye[a];return i?(ce=i.nextPos,i.result):(e=ce,\":is(\"===t.substr(ce,4)?(r=\":is(\",ce+=4):(r=s,ge(ne)),r!==s&&Ee()!==s&&(n=_e())!==s&&Ee()!==s?(41===t.charCodeAt(ce)?(o=\")\",ce++):(o=s,ge(z)),o!==s?(r=re(n),e=r):(ce=e,e=s)):(ce=e,e=s),ye[a]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n,o,a=36*ce+30,i=ye[a];return i?(ce=i.nextPos,i.result):(e=ce,\":has(\"===t.substr(ce,5)?(r=\":has(\",ce+=5):(r=s,ge(oe)),r!==s&&Ee()!==s&&(n=function(){var e,r,n,o,a,i,u,l,c=36*ce+4,f=ye[c];if(f)return ce=f.nextPos,f.result;if(e=ce,(r=Ce())!==s){for(n=[],o=ce,(a=Ee())!==s?(44===t.charCodeAt(ce)?(i=\",\",ce++):(i=s,ge(m)),i!==s&&(u=Ee())!==s&&(l=Ce())!==s?o=a=[a,i,u,l]:(ce=o,o=s)):(ce=o,o=s);o!==s;)n.push(o),o=ce,(a=Ee())!==s?(44===t.charCodeAt(ce)?(i=\",\",ce++):(i=s,ge(m)),i!==s&&(u=Ee())!==s&&(l=Ce())!==s?o=a=[a,i,u,l]:(ce=o,o=s)):(ce=o,o=s);n!==s?e=r=x(r,n):(ce=e,e=s)}else ce=e,e=s;return ye[c]={nextPos:ce,result:e},e}())!==s&&Ee()!==s?(41===t.charCodeAt(ce)?(o=\")\",ce++):(o=s,ge(z)),o!==s?e=r={type:\"has\",selectors:n}:(ce=e,e=s)):(ce=e,e=s),ye[a]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n=36*ce+31,o=ye[n];return o?(ce=o.nextPos,o.result):(\":first-child\"===t.substr(ce,12)?(r=\":first-child\",ce+=12):(r=s,ge(ae)),r!==s&&(r=Fe(1)),e=r,ye[n]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n=36*ce+32,o=ye[n];return o?(ce=o.nextPos,o.result):(\":last-child\"===t.substr(ce,11)?(r=\":last-child\",ce+=11):(r=s,ge(ie)),r!==s&&(r=Re(1)),e=r,ye[n]={nextPos:ce,result:e},e)}())===s&&(e=function(){var e,r,n,o,a,i=36*ce+33,u=ye[i];if(u)return ce=u.nextPos,u.result;if(e=ce,\":nth-child(\"===t.substr(ce,11)?(r=\":nth-child(\",ce+=11):(r=s,ge(se)),r!==s)if(Ee()!==s){if(n=[],N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W));else n=s;n!==s&&(o=Ee())!==s?(41===t.charCodeAt(ce)?(a=\")\",ce++):(a=s,ge(z)),a!==s?(r=Fe(parseInt(n.join(\"\"),10)),e=r):(ce=e,e=s)):(ce=e,e=s)}else ce=e,e=s;else ce=e,e=s;return ye[i]={nextPos:ce,result:e},e}())===s&&(e=function(){var e,r,n,o,a,i=36*ce+34,u=ye[i];if(u)return ce=u.nextPos,u.result;if(e=ce,\":nth-last-child(\"===t.substr(ce,16)?(r=\":nth-last-child(\",ce+=16):(r=s,ge(ue)),r!==s)if(Ee()!==s){if(n=[],N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W)),o!==s)for(;o!==s;)n.push(o),N.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(W));else n=s;n!==s&&(o=Ee())!==s?(41===t.charCodeAt(ce)?(a=\")\",ce++):(a=s,ge(z)),a!==s?(r=Re(parseInt(n.join(\"\"),10)),e=r):(ce=e,e=s)):(ce=e,e=s)}else ce=e,e=s;else ce=e,e=s;return ye[i]={nextPos:ce,result:e},e}())===s&&(e=function(){var e,r,n,o=36*ce+35,a=ye[o];return a?(ce=a.nextPos,a.result):(e=ce,58===t.charCodeAt(ce)?(r=\":\",ce++):(r=s,ge(le)),r!==s&&(n=be())!==s?e=r={type:\"class\",name:n}:(ce=e,e=s),ye[o]={nextPos:ce,result:e},e)}()),ye[r]={nextPos:ce,result:e},e)}function De(){var e,r,n,o,a,i,u,l,c=36*ce+15,f=ye[c];if(f)return ce=f.nextPos,f.result;if(e=ce,(r=be())!==s){for(n=[],o=ce,46===t.charCodeAt(ce)?(a=\".\",ce++):(a=s,ge(D)),a!==s&&(i=be())!==s?o=a=[a,i]:(ce=o,o=s);o!==s;)n.push(o),o=ce,46===t.charCodeAt(ce)?(a=\".\",ce++):(a=s,ge(D)),a!==s&&(i=be())!==s?o=a=[a,i]:(ce=o,o=s);n!==s?(u=r,l=n,e=r=[].concat.apply([u],l).join(\"\")):(ce=e,e=s)}else ce=e,e=s;return ye[c]={nextPos:ce,result:e},e}function Ie(){var e,r,n,o,a=36*ce+23,i=ye[a];if(i)return ce=i.nextPos,i.result;if(e=ce,91===t.charCodeAt(ce)?(r=\"[\",ce++):(r=s,ge(E)),r!==s){if(n=[],J.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(Q)),o===s&&(o=je()),o!==s)for(;o!==s;)n.push(o),J.test(t.charAt(ce))?(o=t.charAt(ce),ce++):(o=s,ge(Q)),o===s&&(o=je());else n=s;n!==s?(93===t.charCodeAt(ce)?(o=\"]\",ce++):(o=s,ge(b)),o!==s?e=r=\"[\"+n.join(\"\")+\"]\":(ce=e,e=s)):(ce=e,e=s)}else ce=e,e=s;return ye[a]={nextPos:ce,result:e},e}function je(){var e,r,n,o=36*ce+24,a=ye[o];return a?(ce=a.nextPos,a.result):(e=ce,92===t.charCodeAt(ce)?(r=\"\\\\\",ce++):(r=s,ge(R)),r!==s?(t.length>ce?(n=t.charAt(ce),ce++):(n=s,ge(O)),n!==s?e=r=\"\\\\\"+n:(ce=e,e=s)):(ce=e,e=s),ye[o]={nextPos:ce,result:e},e)}function Te(){var e,r,n,o=36*ce+25,a=ye[o];if(a)return ce=a.nextPos,a.result;if(r=[],X.test(t.charAt(ce))?(n=t.charAt(ce),ce++):(n=s,ge(Z)),n!==s)for(;n!==s;)r.push(n),X.test(t.charAt(ce))?(n=t.charAt(ce),ce++):(n=s,ge(Z));else r=s;return r!==s&&(r=r.join(\"\")),e=r,ye[o]={nextPos:ce,result:e},e}function Fe(e){return{type:\"nth-child\",index:{type:\"literal\",value:e}}}function Re(e){return{type:\"nth-last-child\",index:{type:\"literal\",value:e}}}if((n=l())!==s&&ce===t.length)return n;throw n!==s&&ce<t.length&&ge({type:\"end\"}),o=he,a=pe<t.length?t.charAt(pe):null,i=pe<t.length?ve(pe,pe+1):ve(pe,pe),new e(e.buildMessage(o,a),o,a,i)}}}())}));function u(e,t){for(var r=0;r<t.length;++r){if(null==e)return e;e=e[t[r]]}return e}var l=\"function\"==typeof WeakMap?new WeakMap:null;function c(e){if(null==e)return function(){return!0};if(null!=l){var t=l.get(e);return null!=t||(t=f(e),l.set(e,t)),t}return f(e)}function f(e){switch(e.type){case\"wildcard\":return function(){return!0};case\"identifier\":var t=e.value.toLowerCase();return function(e,r,n){var o=n&&n.nodeTypeKey||\"type\";return t===e[o].toLowerCase()};case\"exactNode\":return function(e,t){return 0===t.length};case\"field\":var r=e.name.split(\".\");return function(e,t){return function e(t,r,n,o){for(var a=r,i=o;i<n.length;++i){if(null==a)return!1;var s=a[n[i]];if(Array.isArray(s)){for(var u=0;u<s.length;++u)if(e(t,s[u],n,i+1))return!0;return!1}a=s}return t===a}(e,t[r.length-1],r,0)};case\"matches\":var o=e.selectors.map(c);return function(e,t,r){for(var n=0;n<o.length;++n)if(o[n](e,t,r))return!0;return!1};case\"compound\":var a=e.selectors.map(c);return function(e,t,r){for(var n=0;n<a.length;++n)if(!a[n](e,t,r))return!1;return!0};case\"not\":var s=e.selectors.map(c);return function(e,t,r){for(var n=0;n<s.length;++n)if(s[n](e,t,r))return!1;return!0};case\"has\":var l=e.selectors.map(c);return function(e,t,r){var n=!1,o=[];return i.traverse(e,{enter:function(e,t){null!=t&&o.unshift(t);for(var a=0;a<l.length;++a)if(l[a](e,o,r))return n=!0,void this.break()},leave:function(){o.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||\"iteration\"}),n};case\"child\":var f=c(e.left),p=c(e.right);return function(e,t,r){return!!(t.length>0&&p(e,t,r))&&f(t[0],t.slice(1),r)};case\"descendant\":var h=c(e.left),x=c(e.right);return function(e,t,r){if(x(e,t,r))for(var n=0,o=t.length;n<o;++n)if(h(t[n],t.slice(n+1),r))return!0;return!1};case\"attribute\":var v=e.name.split(\".\");switch(e.operator){case void 0:return function(e){return null!=u(e,v)};case\"=\":switch(e.value.type){case\"regexp\":return function(t){var r=u(t,v);return\"string\"==typeof r&&e.value.value.test(r)};case\"literal\":var g=\"\".concat(e.value.value);return function(e){return g===\"\".concat(u(e,v))};case\"type\":return function(t){return e.value.value===n(u(t,v))}}throw new Error(\"Unknown selector value type: \".concat(e.value.type));case\"!=\":switch(e.value.type){case\"regexp\":return function(t){return!e.value.value.test(u(t,v))};case\"literal\":var A=\"\".concat(e.value.value);return function(e){return A!==\"\".concat(u(e,v))};case\"type\":return function(t){return e.value.value!==n(u(t,v))}}throw new Error(\"Unknown selector value type: \".concat(e.value.type));case\"<=\":return function(t){return u(t,v)<=e.value.value};case\"<\":return function(t){return u(t,v)<e.value.value};case\">\":return function(t){return u(t,v)>e.value.value};case\">=\":return function(t){return u(t,v)>=e.value.value}}throw new Error(\"Unknown operator: \".concat(e.operator));case\"sibling\":var E=c(e.left),b=c(e.right);return function(t,r,n){return b(t,r,n)&&y(t,E,r,\"LEFT_SIDE\",n)||e.left.subject&&E(t,r,n)&&y(t,b,r,\"RIGHT_SIDE\",n)};case\"adjacent\":var S=c(e.left),_=c(e.right);return function(t,r,n){return _(t,r,n)&&d(t,S,r,\"LEFT_SIDE\",n)||e.right.subject&&S(t,r,n)&&d(t,_,r,\"RIGHT_SIDE\",n)};case\"nth-child\":var C=e.index.value,P=c(e.right);return function(e,t,r){return P(e,t,r)&&m(e,t,C,r)};case\"nth-last-child\":var w=-e.index.value,k=c(e.right);return function(e,t,r){return k(e,t,r)&&m(e,t,w,r)};case\"class\":var D=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(D){case\"statement\":if(\"Statement\"===t.type.slice(-9))return!0;case\"declaration\":return\"Declaration\"===t.type.slice(-11);case\"pattern\":if(\"Pattern\"===t.type.slice(-7))return!0;case\"expression\":return\"Expression\"===t.type.slice(-10)||\"Literal\"===t.type.slice(-7)||\"Identifier\"===t.type&&(0===r.length||\"MetaProperty\"!==r[0].type)||\"MetaProperty\"===t.type;case\"function\":return\"FunctionDeclaration\"===t.type||\"FunctionExpression\"===t.type||\"ArrowFunctionExpression\"===t.type}throw new Error(\"Unknown class name: \".concat(e.name))}}throw new Error(\"Unknown selector type: \".concat(e.type))}function p(e,t){var r=t&&t.nodeTypeKey||\"type\",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:i.VisitorKeys[n]?i.VisitorKeys[n]:t&&\"function\"==typeof t.fallback?t.fallback(e):Object.keys(e).filter((function(e){return e!==r}))}function h(e,t){var r=t&&t.nodeTypeKey||\"type\";return null!==e&&\"object\"===n(e)&&\"string\"==typeof e[r]}function y(e,r,n,o,a){var i=t(n,1)[0];if(!i)return!1;for(var s=p(i,a),u=0;u<s.length;++u){var l=i[s[u]];if(Array.isArray(l)){var c=l.indexOf(e);if(c<0)continue;var f=void 0,y=void 0;\"LEFT_SIDE\"===o?(f=0,y=c):(f=c+1,y=l.length);for(var d=f;d<y;++d)if(h(l[d],a)&&r(l[d],n,a))return!0}}return!1}function d(e,r,n,o,a){var i=t(n,1)[0];if(!i)return!1;for(var s=p(i,a),u=0;u<s.length;++u){var l=i[s[u]];if(Array.isArray(l)){var c=l.indexOf(e);if(c<0)continue;if(\"LEFT_SIDE\"===o&&c>0&&h(l[c-1],a)&&r(l[c-1],n,a))return!0;if(\"RIGHT_SIDE\"===o&&c<l.length-1&&h(l[c+1],a)&&r(l[c+1],n,a))return!0}}return!1}function m(e,r,n,o){if(0===n)return!1;var a=t(r,1)[0];if(!a)return!1;for(var i=p(a,o),s=0;s<i.length;++s){var u=a[i[s]];if(Array.isArray(u)){var l=n<0?u.length+n:n-1;if(l>=0&&l<u.length&&u[l]===e)return!0}}return!1}function x(e,t,o,a){if(t){var s=[],u=c(t),l=function e(t,o){if(null==t||\"object\"!=n(t))return[];null==o&&(o=t);for(var a=t.subject?[o]:[],i=Object.keys(t),s=0;s<i.length;++s){var u=i[s],l=t[u];a.push.apply(a,r(e(l,\"left\"===u?l:o)))}return a}(t).map(c);i.traverse(e,{enter:function(e,t){if(null!=t&&s.unshift(t),u(e,s,a))if(l.length)for(var r=0,n=l.length;r<n;++r){l[r](e,s,a)&&o(e,t,s);for(var i=0,c=s.length;i<c;++i){var f=s.slice(i+1);l[r](s[i],f,a)&&o(s[i],t,f)}}else o(e,t,s)},leave:function(){s.shift()},keys:a&&a.visitorKeys,fallback:a&&a.fallback||\"iteration\"})}}function v(e,t,r){var n=[];return x(e,t,(function(e){n.push(e)}),r),n}function g(e){return s.parse(e)}function A(e,t,r){return v(e,g(t),r)}A.parse=g,A.match=v,A.traverse=x,A.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),c(t)(e,r,n))},A.query=A;export default A;\n//# sourceMappingURL=esquery.esm.min.js.map\n","var meriyah = {};\n\nexport { meriyah as __exports };\n//# sourceMappingURL=meriyah.js.map\n","var astring = {};\n\nexport { astring as __exports };\n//# sourceMappingURL=astring.js.map\n","'use strict'\n\nconst esquery = require('esquery')\nconst { parse } = require('meriyah')\n\n/**\n * Returns `true` if `node` is already a `tracingChannel` import/require statement,\n * used to avoid duplicate injections.\n *\n * @param {import('estree').Node} node\n * @returns {boolean}\n */\nconst tracingChannelPredicate = (node) => (\n  node.declarations?.[0]?.id?.properties?.[0]?.value?.name === 'tr_ch_apm_tracingChannel'\n)\n\nconst CHANNEL_REGEX = /[^\\w]/g\n/**\n * Formats the channel variable name by replacing any non-whitespace characters with `_`\n *\n * @param {string} channelName\n */\nconst formatChannelVariable = (channelName) => `tr_ch_apm$${channelName.replace(CHANNEL_REGEX, '_')}`\n\nmodule.exports = {\n  /**\n   * Injects a `tracingChannel` import/require into the program body if one is not\n   * already present.\n   *\n   * @param {{ dcModule: string, sourceType: 'module'|'script' }} state\n   * @param {import('estree').Program} node - The program root node.\n   */\n  tracingChannelImport ({ dcModule, moduleType }, node) {\n    if (node.body.some(tracingChannelPredicate)) return\n\n    const options = { module: moduleType === 'esm' }\n    const index = node.body.findIndex(child => child.directive === 'use strict')\n    const dc = moduleType === 'esm'\n      ? `import tr_ch_apm_dc from \"${dcModule}\"`\n      : `const tr_ch_apm_dc = require(\"${dcModule}\")`\n    const tracingChannel = 'const { tracingChannel: tr_ch_apm_tracingChannel } = tr_ch_apm_dc'\n    const hasSubscribers = `const tr_ch_apm_hasSubscribers = ch => ch.start.hasSubscribers\n      || ch.end.hasSubscribers\n      || ch.asyncStart.hasSubscribers\n      || ch.asyncEnd.hasSubscribers\n      || ch.error.hasSubscribers`\n\n    node.body.splice(\n      index + 1,\n      0,\n      parse(dc, options).body[0],\n      parse(tracingChannel, options).body[0],\n      parse(hasSubscribers, options).body[0]\n    )\n  },\n\n  /**\n   * Injects a `tracingChannel(...)` variable declaration for the config's channel\n   * into the program body, also ensuring the import is present.\n   *\n   * @param {{ channelName: string, module: { name: string }, dcModule: string, sourceType: 'module'|'script', transforms: Record<string, Function> }} state\n   * @param {import('estree').Program} node - The program root node.\n   */\n  tracingChannelDeclaration (state, node) {\n    const { channelName, module: { name } } = state\n    const channelVariable = formatChannelVariable(channelName)\n\n    if (node.body.some(child => child.declarations?.[0]?.id?.name === channelVariable)) return\n\n    state.transforms.tracingChannelImport(state, node)\n\n    const index = node.body.findIndex(tracingChannelPredicate)\n    const code = `\n      const ${channelVariable} = tr_ch_apm_tracingChannel(\"orchestrion:${name}:${channelName}\")\n    `\n\n    node.body.splice(index + 1, 0, parse(code).body[0])\n  },\n\n  traceCallback: traceAny,\n  tracePromise: traceAny,\n  traceSync: traceAny,\n  traceAuto: traceAny,\n}\n\n/**\n * Replaces a function's params with numbered placeholders (`__apm$arg0`,\n * `__apm$arg1`, ...) plus a rest element (`...__apm$args`) to capture overflow.\n * This preserves the function's `.length` while giving the preamble a uniform\n * way to reconstruct all call-site arguments. `RestElement` and\n * `AssignmentPattern` params are excluded from the count since they do not\n * contribute to `.length`.\n *\n * @param {import('estree').Pattern[]} params - The original function params.\n * @returns {import('estree').Pattern[]} The replacement params.\n */\nfunction wrapParams (params) {\n  const originalParams = params || []\n  const numberedParams = originalParams\n    .filter(param => param.type !== 'RestElement' && param.type !== 'AssignmentPattern')\n    .map((_, i) => ({ type: 'Identifier', name: `__apm$arg${i}` }))\n\n  return [\n    ...numberedParams,\n    { type: 'RestElement', argument: { type: 'Identifier', name: '__apm$args' } }\n  ]\n}\n/**\n * Generic trace entry point. Dispatches to {@link traceInstanceMethod} for class\n * nodes or {@link traceFunction} for all other function nodes.\n *\n * @param {object} state - Merged instrumentation + runtime state.\n * @param {import('estree').Node} node - Matched AST node.\n * @param {import('estree').Node} _parent\n * @param {import('estree').Node[]} ancestry - Full ancestor chain, root last.\n */\nfunction traceAny (state, node, _parent, ancestry) {\n  const program = ancestry[ancestry.length - 1]\n\n  if (node.type === 'ClassDeclaration' || node.type === 'ClassExpression') {\n    traceInstanceMethod(state, node, program)\n  } else {\n    traceFunction(state, node, program)\n  }\n}\n\n/**\n * Returns `true` if `stmt` is a `return <channelVariable>.start.runStores(...)`\n * statement, the shape every wrapper template\n * (`wrapSync`/`wrapPromise`/`wrapCallback`/`wrapAuto`) ends with.\n *\n * @param {import('estree').Node} stmt\n * @param {string} channelVariable\n * @returns {boolean}\n */\nfunction isChannelRunStoresReturn (stmt, channelVariable) {\n  if (stmt.type !== 'ReturnStatement') return false\n  const callee = stmt.argument?.type === 'CallExpression' ? stmt.argument.callee : null\n  return callee?.type === 'MemberExpression' &&\n    callee.property?.name === 'runStores' &&\n    callee.object?.type === 'MemberExpression' &&\n    callee.object.property?.name === 'start' &&\n    callee.object.object?.type === 'Identifier' &&\n    callee.object.object.name === channelVariable\n}\n\n/**\n * Given the body statements of a wrapper function, returns the function that was\n * moved into its `__apm$traced` closure as `const __apm$wrapped = <fn>` (i.e. the\n * next layer down: either an inner wrapper or the original function). Returns\n * `null` when there is no such closure, which marks the bottom of the stack (the\n * original, un-wrapped body).\n *\n * @param {import('estree').Statement[]} body\n * @returns {import('estree').Function|null}\n */\nfunction nextWrappedFunction (body) {\n  const declInit = (stmts, name) => {\n    const decl = stmts?.find(stmt =>\n      stmt.type === 'VariableDeclaration' &&\n      stmt.declarations.some(d => d.id?.name === name)\n    )\n    return decl?.declarations.find(d => d.id?.name === name)?.init ?? null\n  }\n\n  const traced = declInit(body, '__apm$traced')\n  const wrapped = declInit(traced?.body?.body, '__apm$wrapped')\n  const type = wrapped?.type\n  return type === 'FunctionExpression' || type === 'ArrowFunctionExpression' || type === 'FunctionDeclaration'\n    ? wrapped\n    : null\n}\n\n/**\n * Returns `true` if `node` is already wrapped for `channelVariable` at any layer\n * of the wrapper stack this transform builds.\n *\n * The check is scoped to the specific channel (not just \"is this instrumented at\n * all\") on purpose: re-wrapping the same function on the *same* channel\n * double-publishes to one channel and is the double-instrumentation bug we skip,\n * whereas wrapping it on a *different* channel is a second, independent APM whose\n * instrumentation must not be silently dropped.\n *\n * It walks down the `__apm$wrapped` closure chain rather than only inspecting the\n * outermost layer, so an already-wrapped channel is still detected after a\n * different channel has been wrapped on top of it. The walk only follows this\n * transform's own scaffolding, so unrelated nested functions in the original body\n * are never mistaken for a wrapper.\n *\n * @param {import('estree').Node} node - A function-like node.\n * @param {string} channelVariable - The channel variable name for this config.\n * @returns {boolean}\n */\nfunction isWrappedForChannel (node, channelVariable) {\n  const visited = new Set()\n  let fn = node\n  while (fn && !visited.has(fn)) {\n    visited.add(fn)\n    const body = fn.body?.body\n    if (!Array.isArray(body)) return false\n    if (body.some(stmt => isChannelRunStoresReturn(stmt, channelVariable))) return true\n    fn = nextWrappedFunction(body)\n  }\n  return false\n}\n\n/**\n * Returns `true` if `ctor` already declares `bindingName`, the per-channel\n * `const <channelVar>$<method> = this[\"<method>\"]` binding injected by\n * {@link traceInstanceMethod}. Used to keep re-transforming already instrumented\n * output idempotent for instance methods wrapped at runtime inside the\n * constructor, without dropping a different channel's patch.\n *\n * @param {import('estree').MethodDefinition} ctor - The class constructor node.\n * @param {string} bindingName - The channel-namespaced saved-original binding.\n * @returns {boolean}\n */\nfunction constructorPatchesMethod (ctor, bindingName) {\n  const body = ctor?.value?.body?.body\n  if (!Array.isArray(body)) return false\n  return body.some(stmt =>\n    stmt.type === 'VariableDeclaration' &&\n    stmt.declarations.some(decl => decl.id?.name === bindingName)\n  )\n}\n\n/**\n * Wraps a function node's body with diagnostics_channel tracing.\n *\n * Injects the channel declaration, wraps the original body in an inner function,\n * and rewrites `super` references if needed.\n *\n * @param {object} state\n * @param {import('estree').Function} node - The function node to instrument.\n * @param {import('estree').Program} program\n */\nfunction traceFunction (state, node, program) {\n  // Idempotency guard: the name-based esquery selectors re-match the outer\n  // wrapper function on a second pass (the `[async]` token is structural, and\n  // the wrapper keeps the target's name), so bail out if this node is already\n  // wrapped for this channel instead of double-publishing to it. A different\n  // channel (a second, independent APM) is intentionally allowed to wrap it.\n  if (isWrappedForChannel(node, formatChannelVariable(state.channelName))) return\n\n  state.transforms.tracingChannelDeclaration(state, program)\n\n  const { functionQuery: { methodName, privateMethodName, functionName, expressionName, propertyName } } = state\n  const isConstructor = methodName === 'constructor' ||\n  (!methodName && !privateMethodName && !functionName && !expressionName && !propertyName)\n  const type = isConstructor ? 'ArrowFunctionExpression' : node.type\n  const params = node.params\n\n  // A derived constructor cannot read `this` in the wrapper, so record it at\n  // the `super()` call sites and point the wrapper at that binding instead.\n  // The name is namespaced by channel so that a second channel wrapping the\n  // same constructor writes to its own binding rather than shadowing ours.\n  const selfBinding = `${formatChannelVariable(state.channelName)}$self`\n  state.selfBinding = isConstructor && captureSelfAtSuper(node, selfBinding)\n    ? selfBinding\n    : null\n\n  node.body = wrap(state, {\n    type,\n    params,\n    body: node.body,\n    async: node.async,\n    expression: false,\n    generator: node.generator,\n  }, program)\n\n  node.params = wrapParams(params)\n\n  // The original function no longer contains any calls to `await` or `yield` as\n  // the function body is copied to the internal wrapped function, so we set\n  // these to false to avoid altering the return value of the wrapper. The old\n  // values are instead copied to the new AST node above.\n  node.generator = false\n  node.async = false\n\n  // An arrow function inherits `super` from its enclosing method, so a body\n  // moved into one keeps working and needs no rewrite. Rewriting it there is\n  // in fact wrong for a constructor: the capture it hoists reads `super.x`\n  // with `this` as the receiver, above the body's own `super()` call, where\n  // `this` is still unbound. Only the real `function` wrapper, which\n  // generators need, loses the binding.\n  if (type !== 'ArrowFunctionExpression') wrapSuper(state, node)\n}\n\n/**\n * Instruments an instance method that may not exist on the class at definition\n * time by patching it inside the constructor.\n *\n * If the method is already defined on the class body it is skipped (it will be\n * handled via {@link traceFunction} when the child node is visited). Otherwise a\n * constructor is synthesised (or extended) to wrap `this[methodName]` at runtime.\n *\n * @param {object} state\n * @param {import('estree').ClassDeclaration|import('estree').ClassExpression} node\n * @param {import('estree').Program} program\n */\nfunction traceInstanceMethod (state, node, program) {\n  const { functionQuery, operator, channelName } = state\n  const { methodName } = functionQuery\n\n  // No methodName means a constructor-only config — the constructor FunctionExpression\n  // is matched directly by the other queries and handled via traceFunction instead.\n  if (!methodName) return\n\n  const classBody = node.body\n\n  // If the method exists on the class, we return as it will be patched later\n  // while traversing child nodes later on.\n  // `key` is absent on members without one (e.g. ES2022 `static {}` blocks),\n  // so guard against reading `.name` on undefined.\n  if (classBody.body.some(({ key }) => key?.name === methodName)) return\n\n  // Method doesn't exist on the class so we assume an instance method and\n  // wrap it in the constructor instead.\n  let ctor = classBody.body.find(({ kind }) => kind === 'constructor')\n\n  // The binding that captures the previous `this[method]` is namespaced by\n  // channel so that patches for different channels stack in the constructor\n  // (each wraps the previous one) rather than colliding on one `const`.\n  const savedBinding = `${formatChannelVariable(channelName)}$${methodName}`\n\n  // Idempotency guard: skip if this channel has already patched this method into\n  // the constructor. Scoped per channel (not per method) so a re-run of the same\n  // config is a no-op while a different channel is still allowed to add its own\n  // patch, keeping this path consistent with `traceFunction`.\n  if (ctor && constructorPatchesMethod(ctor, savedBinding)) return\n\n  state.transforms.tracingChannelDeclaration(state, program)\n\n  if (!ctor) {\n    ctor = parse(\n      node.superClass\n        ? 'class A extends Object { constructor (...args) { super(...args) } }'\n        : 'class A { constructor () {} }'\n    ).body[0].body.body[0] // Extract constructor from dummy class body.\n\n    classBody.body.unshift(ctor)\n  }\n\n  const ctorBody = parse(`\n    const ${savedBinding} = this[\"${methodName}\"]\n    this[\"${methodName}\"] = function () {}\n    if (typeof ${savedBinding} === 'function') {\n      Object.defineProperty(this[\"${methodName}\"], 'length', {\n        value: ${savedBinding}.length,\n        configurable: true\n      })\n    }\n  `).body\n\n  // Extract only right-hand side function of line 2.\n  const fn = ctorBody[1].expression.right\n  fn.params = [{ type: 'RestElement', argument: { type: 'Identifier', name: '__apm$args' } }]\n\n  fn.async = operator === 'tracePromise'\n  state.selfBinding = null\n  fn.body = wrap(state, { type: 'Identifier', name: savedBinding }, program)\n  wrapSuper(state, fn)\n\n  ctor.value.body.body.push(...ctorBody)\n}\n\n/**\n * Builds the replacement block statement for a function body.\n *\n * Selects the appropriate wrapper template (`wrapSync`, `wrapPromise`, etc.) and\n * prepends the shared `__apm$ctx` / `__apm$traced` preamble before returning the\n * resulting block statement body.\n *\n * @param {object} state\n * @param {import('estree').Node} node - The original function (or identifier for instance methods).\n * @param {import('estree').Program} program\n * @returns {import('estree').BlockStatement['body']}\n */\nfunction wrap (state, node, program) {\n  const { operator, moduleVersion, selfBinding } = state\n  const { returnKind } = state.functionQuery\n\n  const iterPatch = returnKind ? generateIterPatch(state, returnKind, program) : ''\n\n  let wrapper\n\n  if (operator === 'traceCallback') wrapper = wrapCallback(state, node, iterPatch)\n  if (operator === 'tracePromise') wrapper = wrapPromise(state, node, iterPatch)\n  if (operator === 'traceSync') wrapper = wrapSync(state, node, iterPatch)\n  if (operator === 'traceAuto') wrapper = wrapAuto(state, node, iterPatch)\n\n  const args = (node.params || [])\n    .filter(param => param.type !== 'RestElement' && param.type !== 'AssignmentPattern')\n    .map((_, i) => `__apm$arg${i}`).concat('...__apm$args').join(', ')\n\n  const block = wrapper.body[0].body // Extract only block statement of function body.\n  // Declared in the outer function scope so that the `super()` call sites in\n  // the moved body can write to it and the `finally` block can read it back.\n  const declareSelf = selfBinding ? `let ${selfBinding};` : ''\n  const common = parse(declareSelf + (node.type === 'ArrowFunctionExpression'\n    ? `\n    const __apm$arguments = [${args}];\n    const __apm$ctx = {\n      arguments: __apm$arguments,\n      moduleVersion: ${JSON.stringify(moduleVersion)}\n    };\n    const __apm$traced = () => {\n      const __apm$wrapped = () => {};\n      return __apm$wrapped(...__apm$arguments);\n    };\n  `\n    : `\n    const __apm$arguments = [${args}].slice(0, arguments.length);\n    const __apm$ctx = {\n      arguments: __apm$arguments,\n      self: this,\n      moduleVersion: ${JSON.stringify(moduleVersion)}\n    };\n    const __apm$traced = () => {\n      const __apm$wrapped = () => {};\n      return __apm$wrapped.apply(this, __apm$arguments);\n    };\n  `)).body\n\n  block.body.unshift(...common)\n\n  // Replace the right-hand side assignment of `const __apm$wrapped = () => {}`.\n  esquery.query(block, '[id.name=__apm$wrapped]')[0].init = node\n\n  return block\n}\n\n/**\n * The expression a wrapper's `finally` block uses to fill in `message.self`.\n *\n * Most functions read `this` directly. A derived constructor cannot, so\n * {@link captureSelfAtSuper} records `this` in a variable and the wrapper\n * reads that variable instead.\n *\n * @param {{ selfBinding?: string|null }} state\n * @returns {string}\n */\nconst selfExpression = ({ selfBinding }) => selfBinding || 'this'\n\n/**\n * Rewrites each `super(...)` call in a constructor body so that it also\n * records `this` in `binding`.\n *\n * A derived constructor's `this` stays unbound until `super()` returns, and\n * the wrapper moves the original body into a nested arrow, so `super()` now\n * runs while the wrapper's own `runStores` callback is on the stack.\n * JavaScriptCore (Bun) loads `this` once, when a closure is entered, so that\n * callback keeps the unbound value and throws when the `finally` block reads\n * it. Assigning at the call site puts the read immediately after `super()`,\n * where every engine agrees `this` is bound.\n *\n * `super(...)` already evaluates to the newly bound `this`, so the sequence\n * expression returns the same value the call did.\n *\n * Nested classes and nested non-arrow functions are skipped: a `super()` call\n * inside one of those belongs to that function, not to this constructor.\n *\n * @param {import('estree').Function} node - The constructor being wrapped.\n * @param {string} binding - Name of the variable to record `this` in.\n * @returns {boolean} `true` if at least one call was rewritten.\n */\nfunction captureSelfAtSuper (node, binding) {\n  let found = false\n\n  const visit = (parent, key) => {\n    const child = parent[key]\n\n    if (child === null || typeof child !== 'object') return\n\n    if (Array.isArray(child)) {\n      for (let i = 0; i < child.length; i++) visit(child, i)\n      return\n    }\n\n    if (typeof child.type !== 'string') return\n\n    if (child.type === 'ClassBody' ||\n      child.type === 'FunctionExpression' ||\n      child.type === 'FunctionDeclaration') return\n\n    if (child.type === 'CallExpression' && child.callee.type === 'Super') {\n      const sequence = parse(`(0, ${binding} = this)`).body[0].expression\n      sequence.expressions[0] = child\n      parent[key] = sequence\n      found = true\n      return\n    }\n\n    for (const name of Object.keys(child)) visit(child, name)\n  }\n\n  visit(node, 'body')\n\n  return found\n}\n\n/**\n * Rewrites `super.method(...)` calls inside a moved function body.\n *\n * Because the original body is copied into a nested arrow/function, `super` would\n * no longer be in scope. Each unique `super.x` reference is replaced with\n * `__apm$super['x']` and a preamble that captures the super-binding in the\n * outermost method scope is prepended.\n *\n * @param {object} _state\n * @param {import('estree').Function} node - The outer (wrapper) function node.\n */\nfunction wrapSuper (_state, node) {\n  const members = new Set()\n\n  esquery.traverse(\n    node.body,\n    esquery.parse('[object.type=Super]'),\n    (node, parent) => {\n      const { name } = node.property\n\n      let child\n\n      if (parent.callee) {\n        // This is needed because for generator functions we have to move the\n        // original function to a nested wrapped function, but we can't use an\n        // arrow function because arrow function cannot be generator functions,\n        // and `super` cannot be called from a nested function, so we have to\n        // rewrite any `super` call to not use the keyword.\n        const { expression } = parse(`__apm$super['${name}'].call(this)`).body[0]\n\n        parent.callee = child = expression.callee\n        parent.arguments.unshift(...expression.arguments)\n      } else {\n        parent.expression = child = parse(`__apm$super['${name}']`).body[0]\n      }\n\n      child.computed = parent.callee.computed\n      child.optional = parent.callee.optional\n\n      members.add(name)\n    }\n  )\n\n  for (const name of members) {\n    const member = parse(`\n      class Wrapper {\n        wrapper () {\n          __apm$super['${name}'] = super['${name}']\n        }\n      }\n    `).body[0].body.body[0].value.body.body[0]\n\n    node.body.body.unshift(member)\n  }\n\n  if (members.size > 0) {\n    node.body.body.unshift(parse('const __apm$super = {}').body[0])\n  }\n}\n\n/**\n * Builds a composite wrapper AST that detects at runtime whether to use callback\n * or promise tracing: if the argument at `callbackIndex` is a function, the\n * callback path is taken; otherwise the promise path is used as the fallback.\n *\n * @param {object} state\n * @param {import('estree').Node} node\n * @param {import('estree').Program} program\n * @returns {import('estree').Program} Parsed wrapper function program.\n */\nfunction wrapAuto (state, node, iterPatch = '') {\n  const cbWrapperAST = wrapCallback(state, node, iterPatch)\n  const promiseWrapperAST = wrapPromise(state, node, iterPatch)\n\n  const [\n    getCbArg,\n    checkHasSubscribers,\n    defineWrappedCb,\n    checkCbIsFunction,\n    spliceCbArg,\n    runStores,\n  ] = cbWrapperAST.body[0].body.body\n\n  const fallbackToPromise = {\n    type: 'IfStatement',\n    test: checkCbIsFunction.test,\n    consequent: { type: 'BlockStatement', body: promiseWrapperAST.body[0].body.body },\n    alternate: null,\n  }\n\n  cbWrapperAST.body[0].body.body = [\n    getCbArg,\n    fallbackToPromise,\n    checkHasSubscribers,\n    defineWrappedCb,\n    spliceCbArg,\n    runStores,\n  ]\n\n  return cbWrapperAST\n}\n\n/**\n * Builds the wrapper AST for a callback-style function.\n *\n * Replaces the callback argument (at `callbackIndex`) with a wrapped version that\n * publishes to the tracing channel on completion or error.\n *\n * @param {{ channelName: string, functionQuery: { callbackIndex?: number } }} state\n * @param {import('estree').Node} node - The original function node (unused; replaced by preamble).\n * @returns {import('estree').Program} Parsed wrapper function program.\n */\nfunction wrapCallback (state, node, iterPatch = '') {\n  const { channelName, functionQuery: { callbackIndex = -1 } } = state\n  const channelVariable = formatChannelVariable(channelName)\n\n  return parse(`\n    function wrapper () {\n      const __apm$cb = Array.prototype.at.call(__apm$arguments, ${callbackIndex});\n\n      if (!${channelVariable}.start.hasSubscribers) return __apm$traced();\n\n      function __apm$wrappedCb(err, res) {\n        if (err) {\n          __apm$ctx.error = err;\n          ${channelVariable}.error.publish(__apm$ctx);\n        } else {\n          __apm$ctx.result = res;\n          ${iterPatch}\n        }\n\n        ${channelVariable}.asyncStart.runStores(__apm$ctx, () => {\n          try {\n            if (__apm$cb) {\n              return __apm$cb.apply(this, arguments);\n            }\n          } finally {\n            ${channelVariable}.asyncEnd.publish(__apm$ctx);\n          }\n        });\n      }\n\n      if (typeof __apm$cb !== 'function') {\n        return __apm$traced();\n      }\n      Array.prototype.splice.call(__apm$arguments, ${callbackIndex}, 1, __apm$wrappedCb);\n\n      return ${channelVariable}.start.runStores(__apm$ctx, () => {\n        try {\n          return __apm$traced();\n        } catch (err) {\n          __apm$ctx.error = err;\n          ${channelVariable}.error.publish(__apm$ctx);\n          throw err;\n        } finally {\n         __apm$ctx.self ??= ${selfExpression(state)};\n          ${channelVariable}.end.publish(__apm$ctx);\n        }\n      });\n    }\n  `)\n}\n\n/**\n * Builds the wrapper AST for a Promise-returning function.\n *\n * Uses `runStores` to propagate async context and publishes\n * `asyncStart`/`asyncEnd`/`error` channel events on settlement.\n *\n * @param {{ channelName: string }} state\n * @param {import('estree').Node} node\n * @returns {import('estree').Program} Parsed wrapper function program.\n */\nfunction wrapPromise (state, node, iterPatch = '') {\n  const { channelName } = state\n  const channelVariable = formatChannelVariable(channelName)\n\n  // A subscriber can substitute the resolved value by reassigning\n  // `message.result` in `asyncEnd` (the wrapper returns `__apm$ctx.result`),\n  // but ONLY for native `Promise` instances. For Promise subclasses and other\n  // thenables we side-chain the callbacks and return the original object so\n  // that any subclass-specific methods (e.g. `APIPromise.withResponse()`)\n  // remain accessible to the caller; that means their resolved value cannot be\n  // mutated.\n  return parse(`\n    function wrapper () {\n      if (!tr_ch_apm_hasSubscribers(${channelVariable})) return __apm$traced();\n\n      return ${channelVariable}.start.runStores(__apm$ctx, () => {\n        try {\n          let promise = __apm$traced();\n          if (typeof promise?.then !== 'function') {\n            __apm$ctx.result = promise;\n            ${iterPatch}\n            return __apm$ctx.result;\n          }\n          // Mirror Node.js core diagnostics_channel behaviour: for native Promise\n          // instances, chain normally (safe since there is no subclass API to\n          // preserve). For Promise subclasses and other thenables, side-chain the\n          // callbacks for event publishing and return the original so that any\n          // subclass-specific methods (e.g. APIPromise.withResponse()) remain\n          // accessible to the caller.\n          if (promise instanceof Promise && promise.constructor === Promise) {\n            return promise.then(\n              result => {\n                __apm$ctx.result = result;\n                ${iterPatch}\n                ${channelVariable}.asyncStart.publish(__apm$ctx);\n                ${channelVariable}.asyncEnd.publish(__apm$ctx);\n                return __apm$ctx.result;\n              },\n              err => {\n                __apm$ctx.error = err;\n                ${channelVariable}.error.publish(__apm$ctx);\n                ${channelVariable}.asyncStart.publish(__apm$ctx);\n                ${channelVariable}.asyncEnd.publish(__apm$ctx);\n                throw err;\n              }\n            );\n          }\n          promise.then(\n            result => {\n              __apm$ctx.result = result;\n              ${iterPatch}\n              ${channelVariable}.asyncStart.publish(__apm$ctx);\n              ${channelVariable}.asyncEnd.publish(__apm$ctx);\n            },\n            err => {\n              __apm$ctx.error = err;\n              ${channelVariable}.error.publish(__apm$ctx);\n              ${channelVariable}.asyncStart.publish(__apm$ctx);\n              ${channelVariable}.asyncEnd.publish(__apm$ctx);\n            }\n          );\n          return promise;\n        } catch (err) {\n          __apm$ctx.error = err;\n          ${channelVariable}.error.publish(__apm$ctx);\n          throw err;\n        } finally {\n          __apm$ctx.self ??= ${selfExpression(state)};\n          ${channelVariable}.end.publish(__apm$ctx);\n        }\n      });\n    }\n  `)\n}\n\n/**\n * Builds the wrapper AST for a synchronous function.\n *\n * Uses `runStores` for context propagation and publishes `error` channel events\n * on throw. The result is stored in `__apm$ctx.result` on success, and the\n * wrapper returns whatever `__apm$ctx.result` holds after `end` publishes, so a\n * subscriber's `end` handler can substitute the return value via `message.result`.\n *\n * @param {{ channelName: string }} state\n * @param {import('estree').Node} node\n * @returns {import('estree').Program} Parsed wrapper function program.\n */\nfunction wrapSync (state, node, iterPatch = '') {\n  const { channelName } = state\n  const channelVariable = formatChannelVariable(channelName)\n\n  // The return value is whatever `__apm$ctx.result` holds *after* `end` has\n  // published, so a subscriber's `end` handler can reassign `message.result`\n  // to substitute it (e.g. to wrap a returned handler). The `return`\n  // therefore sits below the `try`/`finally`: on the throw path the `catch`\n  // re-throws, so the trailing `return` is unreachable.\n  return parse(`\n    function wrapper () {\n      if (!tr_ch_apm_hasSubscribers(${channelVariable})) return __apm$traced();\n\n      return ${channelVariable}.start.runStores(__apm$ctx, () => {\n        try {\n          __apm$ctx.result = __apm$traced();\n          ${iterPatch}\n        } catch (err) {\n          __apm$ctx.error = err;\n          ${channelVariable}.error.publish(__apm$ctx);\n          throw err;\n        } finally {\n         __apm$ctx.self ??= ${selfExpression(state)};\n          ${channelVariable}.end.publish(__apm$ctx);\n        }\n        return __apm$ctx.result;\n      });\n    }\n  `)\n}\n\n/**\n * Injects a `:next` tracing channel declaration (for iterator method tracing) into\n * the program body, inserting it immediately after the main channel declaration.\n *\n * @param {object} state\n * @param {import('estree').Program} program\n */\nfunction declareIteratorChannel (state, program) {\n  const { channelName, module: { name } } = state\n  const iterChannelVariable = formatChannelVariable(channelName + ':next')\n\n  if (program.body.some(child => child.declarations?.[0]?.id?.name === iterChannelVariable)) return\n\n  const channelVariable = formatChannelVariable(channelName)\n  const index = program.body.findIndex(child =>\n    child.declarations?.[0]?.id?.name === channelVariable\n  )\n  const code = `const ${iterChannelVariable} = tr_ch_apm_tracingChannel(\"orchestrion:${name}:${channelName}:next\")`\n  program.body.splice(index + 1, 0, parse(code).body[0])\n}\n\n/**\n * Generates the iterator-patching code string for injection into an existing\n * wrapper. Patches `next`, `throw`, and `return` on the iterator held in\n * `__apm$ctx.result`, publishing to the `:next` tracing channel via\n * `traceSync` or `tracePromise` depending on `returnKind`.\n *\n * @param {object} state\n * @param {'Iterator'|'AsyncIterator'} returnKind\n * @param {import('estree').Program} program\n * @returns {string}\n */\nfunction generateIterPatch (state, returnKind, program) {\n  const { channelName } = state\n  const traceMethod = returnKind === 'Iterator' ? 'traceSync' : 'tracePromise'\n  const iterChannelVariable = formatChannelVariable(channelName + ':next')\n\n  declareIteratorChannel(state, program)\n\n  return `\n    const __apm$iter = __apm$ctx.result;\n    if (__apm$iter != null && typeof __apm$iter.next === 'function') {\n      const __apm$patchIter = function (method) {\n        const __apm$orig = __apm$iter[method];\n        if (typeof __apm$orig !== 'function') return;\n        __apm$iter[method] = function () {\n          const __apm$iterArgs = Array.prototype.slice.call(arguments);\n          if (!tr_ch_apm_hasSubscribers(${iterChannelVariable})) return __apm$orig.apply(this, __apm$iterArgs);\n          __apm$ctx.method = method;\n          __apm$ctx.arguments = __apm$iterArgs;\n          return ${iterChannelVariable}.${traceMethod}(__apm$orig, __apm$ctx, this, ...__apm$iterArgs);\n        };\n      };\n      __apm$patchIter('next');\n      __apm$patchIter('throw');\n      __apm$patchIter('return');\n    }\n  `\n}\n","var sourceMap = {};\n\nexport { sourceMap as __exports };\n//# sourceMappingURL=source-map.js.map\n","'use strict'\n\nconst esquery = require('esquery')\nconst { parse } = require('meriyah')\nconst { generate } = require('astring')\nconst transforms = require('./transforms')\n\nlet SourceMapConsumer\nlet SourceMapGenerator\n\n/**\n * Applies a set of instrumentation configs to JavaScript source code by parsing\n * it into an AST, locating the target functions via esquery selectors, injecting\n * diagnostics_channel tracing wrappers, and regenerating the source.\n */\nclass Transformer {\n  #moduleName = null\n  #version = null\n  #filePath = null\n  #configs = []\n  #dcModule = null\n  #customTransforms = {}\n\n  /**\n   * @param {string} moduleName - The npm package name being instrumented.\n   * @param {string} version - The installed semver version string.\n   * @param {string} filePath - The relative file path within the package.\n   * @param {object[]} configs - Instrumentation configuration objects for this file.\n   * @param {string} dcModule - The diagnostics_channel module specifier to inject.\n   * @param {Record<string, Function>} [customTransforms] - Optional custom operator overrides.\n   */\n  constructor (moduleName, version, filePath, configs, dcModule, customTransforms = {}) {\n    this.#moduleName = moduleName // TODO: moduleName false for user module\n    this.#version = version\n    this.#filePath = filePath\n    this.#configs = configs\n    this.#dcModule = dcModule\n    this.#customTransforms = customTransforms\n  }\n\n  /** No-op — freeing resources is not needed for the JavaScript implementation. */\n  free () {}\n\n  /**\n   * The npm package name being instrumented.\n   *\n   * @returns {string}\n   */\n  get moduleName () {\n    return this.#moduleName\n  }\n\n  /**\n   * The relative file path within the npm package being instrumented.\n   *\n   * @returns {string}\n   */\n  get filePath () {\n    return this.#filePath\n  }\n\n  /**\n   * Instruments `code` by injecting diagnostics_channel tracing around the\n   * target functions defined by this transformer's configs.\n   *\n   * @param {string|Buffer} code - Original JavaScript source, or a Buffer containing UTF-8 source.\n   * @param {'esm'|'cjs'|'unknown'} moduleType - Whether the source is an ES module or CommonJS.\n   * @param {string|object|null} [sourcemap] - Existing source map (raw string or object) to chain from.\n   * @param {object} [options]\n   * @param {string} [options.sourceFile] - Path of the file being transformed, used as the source\n   *   name in the generated source map. Defaults to `<moduleName>/<filePath>`.\n   * @returns {{ code: string, map?: string }}\n   *   The transformed source and an optional updated source map.\n   * @throws {Error} If no injection points are found for any config.\n   */\n  transform (code, moduleType, sourcemap, options) {\n    const sourceFile = options?.sourceFile || `${this.#moduleName}/${this.#filePath}`\n\n    if (Buffer.isBuffer(code)) code = code.toString()\n    if (!code) return { code }\n\n    let ast\n    let aliases = {}\n    let injectionCount = 0\n\n    const mergedTransforms = { ...transforms, ...this.#customTransforms, defaults: { ...transforms } }\n\n    for (const config of this.#configs) {\n      const { astQuery, functionQuery = {} } = config\n\n      if (!ast) {\n        const options = {\n          loc: true,\n          ranges: true,\n          raw: true,\n          module: moduleType === 'esm',\n        }\n\n        try {\n          ast = parse(code, options)\n        } catch {\n          ast = parse(code, { ...options, module: !options.module })\n        }\n\n        if (moduleType === 'esm') { // TODO: cjs\n          aliases = this.#collectExportAliases(ast)\n        }\n      }\n\n      const resolvedFunctionQuery = this.#resolveExportAlias(functionQuery, aliases)\n      // A raw `astQuery` selector takes precedence over the name-based\n      // `functionQuery`: it chooses which node(s) to instrument, while\n      // `functionQuery` still supplies behaviour (kind/index/callbackIndex).\n      // This is the escape hatch for shapes the name-based queries can't\n      // express (e.g. an anonymous arrow returned by a factory).\n      const query = astQuery || this.#fromFunctionQuery(resolvedFunctionQuery)\n      const state = {\n        ...config,\n        dcModule: this.#dcModule,\n        moduleType,\n        moduleVersion: this.#version,\n        functionQuery: resolvedFunctionQuery,\n        transforms: mergedTransforms\n      }\n\n      state.operator = this.#getOperator(state)\n\n      esquery.traverse(ast, esquery.parse(query), (...args) => {\n        injectionCount++\n        this.#visit(state, ...args)\n      })\n    }\n\n    if (injectionCount === 0 && this.#configs.length > 0) {\n      const names = this.#configs.map(({ astQuery, functionQuery = {} }) => {\n        if (astQuery) return astQuery\n        const resolvedQuery = this.#resolveExportAlias(functionQuery, aliases)\n        const queryName = (q) => q.methodName || q.privateMethodName || q.functionName || q.expressionName || 'constructor'\n        const originalName = queryName(functionQuery)\n        const originalAlias = functionQuery.className || functionQuery.functionName || functionQuery.expressionName\n        const resolvedAlias = resolvedQuery.className || resolvedQuery.functionName || resolvedQuery.expressionName\n        if (originalAlias && originalAlias !== resolvedAlias) {\n          return `${originalAlias} (local name: ${resolvedAlias})`\n        }\n        return originalName\n      })\n      throw new Error(`Failed to find injection points for: ${JSON.stringify(names)}`)\n    }\n\n    if (ast) {\n      SourceMapConsumer ??= require('source-map').SourceMapConsumer\n      SourceMapGenerator ??= require('source-map').SourceMapGenerator\n\n      const generator = new SourceMapGenerator({ file: sourceFile })\n      // Embed the source so the map works without the file on disk.\n      generator.setSourceContent(sourceFile, code)\n\n      const generatedCode = generate(ast, { sourceMap: generator })\n      if (sourcemap) {\n        // Chain through the input map so positions resolve to the original source.\n        generator.applySourceMap(new SourceMapConsumer(sourcemap), sourceFile)\n      }\n      const map = generator.toString()\n\n      return { code: generatedCode, map }\n    }\n\n    return { code }\n  }\n\n  /**\n   * Visitor called for each AST node that matches a config's query.\n   * Handles index-based filtering and delegates to the appropriate transform.\n   *\n   * @param {object} state - Merged config + runtime state for this traversal.\n   * @param {...unknown} args - `(node, parent, ancestry)` from esquery traverse.\n   */\n  #visit (state, ...args) {\n    const transform = typeof state.transform === 'function'\n      ? state.transform\n      : state.transforms[state.operator]\n    const { index = 0 } = state.functionQuery\n    const [node] = args\n    const type = node.init?.type || node.type\n\n    // Class nodes are visited for traceInstanceMethod (missing method patching),\n    // but when selecting by index we only want to count and match function nodes.\n    if (type !== 'ClassDeclaration' && type !== 'ClassExpression') {\n      // A VariableDeclarator whose init is not a class (e.g. an IIFE wrapping a\n      // nested class like `let Server = (() => { class Server {} })()`) is only\n      // matched because `[id.name=\"Server\"]` is broad.  It is not a function node\n      // and should not be instrumented or counted toward the function index.\n      if (node.type === 'VariableDeclarator') return\n\n      state.functionIndex = ++state.functionIndex || 0\n\n      if (index !== null && index !== state.functionIndex) return\n    }\n\n    transform(state, ...args)\n  }\n\n  /**\n   * Resolves the operator name (transform function key) for a config.\n   *\n   * If the config has an explicit `transform` name it is used directly;\n   * otherwise the operator is derived from the `kind` field of `functionQuery`.\n   *\n   * @param {{ transform?: string, functionQuery: { kind?: string } }} state\n   * @returns {string} Operator name, e.g. `'tracePromise'`.\n   */\n  #getOperator ({ transform, functionQuery: { kind } }) {\n    if (typeof transform === 'string') return transform\n\n    switch (kind) {\n      case 'Async': return 'tracePromise'\n      case 'Auto': return 'traceAuto'\n      case 'Callback': return 'traceCallback'\n      case 'Sync': return 'traceSync'\n      default: return 'traceSync'\n    }\n  }\n\n  /**\n   * Collects a map of exported name → local name from `export { local as exported }`\n   * declarations so that instrumentation configs that reference export names can be\n   * resolved to local identifiers.\n   *\n   * @param {import('estree').Program} ast\n   * @returns {Record<string, string>} Map of exported name to local name.\n   */\n  #collectExportAliases (ast) {\n    const aliases = {}\n    for (const node of ast.body) {\n      if (node.type === 'ExportNamedDeclaration' && !node.source) {\n        for (const spec of node.specifiers) {\n          if (spec.exported && spec.local) {\n            const exportedName = spec.exported.name ?? spec.exported.value\n            const localName = spec.local.name ?? spec.local.value\n            if (exportedName && localName) {\n              aliases[exportedName] = localName\n            }\n          }\n        }\n      }\n    }\n    return aliases\n  }\n\n  /**\n   * If `functionQuery.isExportAlias` is set, replaces the exported identifier in\n   * `functionQuery` with the corresponding local name from `aliases`.\n   *\n   * @param {object} functionQuery\n   * @param {Record<string, string>} aliases - Map produced by {@link #collectExportAliases}.\n   * @returns {object} Resolved function query (may be the original object if unchanged).\n   */\n  #resolveExportAlias (functionQuery, aliases) {\n    if (!functionQuery.isExportAlias) return functionQuery\n    const { functionName, expressionName, className } = functionQuery\n    if (functionName && aliases[functionName]) {\n      return { ...functionQuery, functionName: aliases[functionName] }\n    }\n    if (expressionName && aliases[expressionName]) {\n      return { ...functionQuery, expressionName: aliases[expressionName] }\n    }\n    if (className && aliases[className]) {\n      return { ...functionQuery, className: aliases[className] }\n    }\n    return functionQuery\n  }\n\n  /**\n   * Builds a comma-separated esquery selector string from a `functionQuery` descriptor.\n   *\n   * Handles class methods, standalone functions, and expression assignments, producing\n   * multiple selector alternatives joined with `, `.\n   *\n   * @param {object} functionQuery\n   * @param {string} [functionQuery.className]\n   * @param {string} [functionQuery.methodName]\n   * @param {string} [functionQuery.privateMethodName]\n   * @param {string} [functionQuery.functionName]\n   * @param {string} [functionQuery.expressionName]\n   * @returns {string} esquery selector.\n   */\n  #fromFunctionQuery (functionQuery) {\n    const { functionName, expressionName, className, objectName, propertyName } = functionQuery\n    const type = functionQuery.privateMethodName ? 'PrivateIdentifier' : 'Identifier'\n    const queries = []\n\n    let method = functionQuery.methodName || functionQuery.privateMethodName\n\n    if (className) {\n      method ??= 'constructor'\n      queries.push(\n        `[id.name=\"${className}\"]`,\n        `[id.name=\"${className}\"] > ClassExpression`,\n        `[id.name=\"${className}\"] > ClassBody > [key.name=\"${method}\"][key.type=${type}] > [async]`,\n        `[id.name=\"${className}\"] > ClassExpression > ClassBody > [key.name=\"${method}\"][key.type=${type}] > [async]`\n      )\n    } else if (method) {\n      queries.push(\n        `ClassBody > [key.name=\"${method}\"][key.type=${type}] > [async]`,\n        `Property[key.name=\"${method}\"][key.type=${type}] > [async]`\n      )\n    }\n\n    if (functionName) {\n      queries.push(`FunctionDeclaration[id.name=\"${functionName}\"][async]`)\n    } else if (expressionName) {\n      queries.push(\n        `FunctionExpression[id.name=\"${expressionName}\"][async]`,\n        `ArrowFunctionExpression[id.name=\"${expressionName}\"][async]`,\n        `VariableDeclarator[id.name=\"${expressionName}\"] > FunctionExpression[async]`,\n        `VariableDeclarator[id.name=\"${expressionName}\"] > ArrowFunctionExpression[async]`,\n        `AssignmentExpression[left.property.name=\"${expressionName}\"] > FunctionExpression[async]`,\n        `AssignmentExpression[left.property.name=\"${expressionName}\"] > ArrowFunctionExpression[async]`,\n        `AssignmentExpression[left.name=\"${expressionName}\"] > FunctionExpression[async]`,\n        `AssignmentExpression[left.name=\"${expressionName}\"] > ArrowFunctionExpression[async]`\n      )\n    }\n\n    if (objectName || propertyName) {\n      if (!objectName || !propertyName) {\n        throw new Error(\n          `functionQuery: 'objectName' and 'propertyName' must be used together (got objectName=${objectName}, propertyName=${propertyName})`\n        )\n      }\n      const objectSelector = objectName === 'this'\n        ? 'left.object.type=ThisExpression'\n        : `left.object.name=\"${objectName}\"`\n      queries.push(\n        `AssignmentExpression[${objectSelector}][left.property.name=\"${propertyName}\"] > [async]`\n      )\n    }\n    return queries.join(', ')\n  }\n}\n\nmodule.exports = { Transformer }\n","'use strict'\n\nconst semifies = require('semifies')\nconst { Transformer } = require('./transformer')\n\n/**\n * Matches instrumentation configs against a given module/file/version triple and\n * returns a cached {@link Transformer} for matching configs.\n */\nclass InstrumentationMatcher {\n  #configs = []\n  #dcModule = null\n  #transformers = {}\n  #customTransforms = {}\n\n  /**\n   * @param {object[]} configs - Array of instrumentation configuration objects.\n   * @param {string} [dcModule] - The diagnostics_channel module specifier to inject.\n   *   Defaults to `'diagnostics_channel'`.\n   */\n  constructor (configs, dcModule) {\n    this.#configs = configs\n    this.#dcModule = dcModule || 'diagnostics_channel'\n  }\n\n  /** Releases all cached transformers, freeing any associated resources. */\n  free () {\n    this.#transformers = {}\n  }\n\n  /**\n   * Registers a custom transform function under the given operator name.\n   *\n   * Custom transforms override built-in ones of the same name everywhere they\n   * are dispatched: when an instrumentation config references the name via\n   * `transform`, when it is selected via `functionQuery.kind`, and when one\n   * transform invokes another internally (e.g. `tracingChannelDeclaration`\n   * calling `tracingChannelImport`).\n   *\n   * @param {string} name - Operator name (e.g. `'traceSync'`).\n   * @param {Function} fn - Transform function `(state, node, parent, ancestry) => void`.\n   */\n  addTransform (name, fn) {\n    this.#customTransforms[name] = fn\n  }\n\n  /**\n   * Returns a {@link Transformer} for the given module/file/version, or `undefined`\n   * if no registered config matches.\n   *\n   * Results are cached by a `moduleName/filePath@version` key.\n   *\n   * @param {string} moduleName - The npm package name (e.g. `'express'`).\n   * @param {string} version - The installed semver version string.\n   * @param {string} filePath - The relative file path within the package.\n   * @returns {import('./transformer').Transformer|undefined}\n   */\n  getTransformer (moduleName, version, filePath) {\n    filePath = filePath.replace(/\\\\/g, '/')\n\n    const id = `${moduleName}/${filePath}@${version}`\n\n    if (this.#transformers[id]) return this.#transformers[id]\n\n    const configs = this.#configs.filter(({ module: mod }) =>\n      mod.name === moduleName &&\n      (typeof mod.filePath === 'string' ? mod.filePath === filePath : mod.filePath.test(filePath)) &&\n      semifies(version, mod.versionRange)\n    )\n\n    if (configs.length === 0) return\n\n    this.#transformers[id] = new Transformer(\n      moduleName,\n      version,\n      filePath,\n      configs,\n      this.#dcModule,\n      this.#customTransforms\n    )\n\n    return this.#transformers[id]\n  }\n}\n\nmodule.exports = { InstrumentationMatcher }\n","'use strict'\n\nconst { InstrumentationMatcher } = require('./matcher')\n\n/**\n * Creates a new {@link InstrumentationMatcher} from the given instrumentation configs.\n *\n * @param {object[]} configs - Instrumentation configuration objects.\n * @param {string} [dcModule] - The diagnostics_channel module specifier to use for imports.\n *   Deprecated: pass `dcModule` via each config's `dcModule` field instead.\n * @returns {InstrumentationMatcher}\n */\nfunction create (configs, dcModule) {\n  return new InstrumentationMatcher(configs, dcModule)\n}\n\nmodule.exports = { create }\n","'use strict'\n\nmodule.exports = require('./lib')\n","'use strict'\n\nvar sep = require('path').sep\n\nmodule.exports = function (file) {\n  var segments = file.split(sep)\n  var index = segments.lastIndexOf('node_modules')\n\n  if (index === -1) return\n  if (!segments[index + 1]) return\n\n  var scoped = segments[index + 1][0] === '@'\n  var name = scoped ? segments[index + 1] + '/' + segments[index + 2] : segments[index + 1]\n  var offset = scoped ? 3 : 2\n\n  var basedir = ''\n  var lastBaseDirSegmentIndex = index + offset - 1\n  for (var i = 0; i <= lastBaseDirSegmentIndex; i++) {\n    if (i === lastBaseDirSegmentIndex) {\n      basedir += segments[i]\n    } else {\n      basedir += segments[i] + sep\n    }\n  }\n\n  var path = ''\n  var lastSegmentIndex = segments.length - 1\n  for (var i2 = index + offset; i2 <= lastSegmentIndex; i2++) {\n    if (i2 === lastSegmentIndex) {\n      path += segments[i2]\n    } else {\n      path += segments[i2] + sep\n    }\n  }\n\n  return {\n    name: name,\n    basedir: basedir,\n    path: path\n  }\n}\n","'use strict'\nconst { readFileSync } = require('node:fs')\nconst { join } = require('node:path')\n\nconst packageVersions = new Map()\n\n/**\n * Retrieves the version of a package from its package.json file.\n * If the package.json file cannot be read, it defaults to the Node.js version.\n * @param {string} baseDir - The base directory where the package.json file is located.\n * @returns {string} The version of the package or the Node.js version if the package.json cannot be read.\n */\nfunction getPackageVersion(baseDir) {\n  if (packageVersions.has(baseDir)) {\n    return packageVersions.get(baseDir)\n  }\n\n  try {\n    const packageJsonPath = join(baseDir, 'package.json')\n    const jsonFile = readFileSync(packageJsonPath)\n    const { version } = JSON.parse(jsonFile)\n    packageVersions.set(baseDir, version)\n    return version\n  } catch {\n    return process.version.slice(1)\n  }\n}\n\nmodule.exports = getPackageVersion\n\n","'use strict'\n\n// Main-thread diagnostics state shared by everything that can transform a module on\n// this thread: the ESM hooks (hook.mjs / hook-sync.mjs) and the\n// `Module.prototype._compile` patch (index.js). One CJS module holds the hook so\n// setting it once covers all of them. The `Module.register` loader thread gets its\n// own copy of this module where the hook is never set — diagnostics from that thread\n// arrive over a MessagePort instead (see createDiagnosticsPort in hook.mjs).\n\nlet diagnosticsHook\n\nfunction setDiagnosticsHook(hook) {\n  diagnosticsHook = hook\n}\n\nfunction emitDiagnostics(diag) {\n  if (diagnosticsHook) {\n    diagnosticsHook(diag)\n  }\n}\n\nmodule.exports = { setDiagnosticsHook, emitDiagnostics }\n","// Stands in for the `debug` package in the vendored dependencies (see `rollup.npm.config.mjs`).\n// `debug` reads `process.env` when it loads, which throws on Deno without env permission, and the\n// Deno SDK loads this package from `init()`. The messages go to the Sentry logger instead, so\n// `debug: true` turns them on.\nimport { debug } from '@sentry/core';\nimport { format } from 'node:util';\n\nexport default function createDebug(namespace: string): (...args: unknown[]) => void {\n  return (...args) => {\n    if (debug.isEnabled()) {\n      debug.log(`[${namespace}]`, format(...args));\n    }\n  };\n}\n","import * as debug from '../debug.js';\nimport { getDefaultExportFromNamespaceIfNotNamed } from './_commonjsHelpers.js';\n\nconst require$$6 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(debug);\n\nexport { require$$6 as default };\n//# sourceMappingURL=debug.js.map\n","'use strict'\nconst { create } = require('@apm-js-collab/code-transformer')\nconst Module = require('node:module')\nconst parse = require('module-details-from-path')\nconst { pathToFileURL } = require('node:url')\nconst getPackageVersion = require('./lib/get-package-version')\nconst { emitDiagnostics } = require('./lib/diagnostics')\nconst debug = require('debug')('@apm-js-collab/tracing-hooks:module-patch')\n\nclass ModulePatch {\n  constructor({ instrumentations = [] } = {}) {\n    this.packages = new Set(instrumentations.map(i => i.module.name))\n    this.instrumentator = create(instrumentations)\n    this.compile = Module.prototype._compile\n  }\n\n  /**\n   * Patches the Node.js module class method that is responsible for compiling code.\n   * If a module is found that has an instrumentator, it will transform the code before compiling it\n   * with tracing channel methods.\n   */\n  patch() {\n    const self = this\n    Module.prototype._compile = function wrappedCompile(...args) {\n      const [content, filename] = args\n      const resolvedModule = parse(filename)\n      if (resolvedModule && self.packages.has(resolvedModule.name)) {\n        debug('found resolved module, checking if there is a transformer %s', filename)\n        const version = getPackageVersion(resolvedModule.basedir, resolvedModule.name)\n        const transformer = self.instrumentator.getTransformer(resolvedModule.name, version, resolvedModule.path)\n        if (transformer) {\n          debug('transforming file %s', filename)\n          try {\n            // `Module.prototype._compile` only ever evaluates CJS source, so the\n            // module type is known. Passing 'unknown' here would let the\n            // transformer fall back to a generic mode and emit shapes that don't\n            // match a CJS target.\n            const transformedCode = transformer.transform(content, 'cjs')\n            args[0] = transformedCode?.code\n            emitDiagnostics({ url: pathToFileURL(filename).href, moduleName: transformer.moduleName })\n            if (process.env.TRACING_DUMP) {\n              dump(args[0], filename)\n            }\n          } catch (error) {\n            debug('Error transforming module %s: %o', filename, error)\n            emitDiagnostics({ url: pathToFileURL(filename).href, moduleName: transformer.moduleName, error })\n          } finally {\n            transformer.free()\n          }\n        }\n      }\n\n      return self.compile.apply(this, args)\n    }\n  }\n\n  /**\n   * Restores the original Module.prototype._compile method\n   * **Note**: This is intended to be used in testing only.\n   */\n  unpatch() {\n    Module.prototype._compile = this.compile\n  }\n}\n\nfunction dump(code, filename) {\n  const os = require('node:os')\n  const path = require('node:path')\n  const fs = require('node:fs')\n\n  /* c8 ignore next */\n  const base = process.env.TRACING_DUMP_DIR ?? os.tmpdir()\n  const dirname = path.dirname(filename)\n  const basename = path.basename(filename)\n  // A Windows drive root such as `C:\\` cannot sit inside another path.\n  const targetDir = path.join(base, dirname.slice(path.parse(dirname).root.length))\n  const targetFile = path.join(targetDir, basename)\n\n  debug('Dumping patched code to: %s', targetFile)\n  fs.mkdirSync(targetDir, { recursive: true })\n  fs.writeFileSync(targetFile, code)\n}\n\nmodule.exports = ModulePatch\n\n","'use strict'\nimport createDebug from 'debug'\nimport { create } from '@apm-js-collab/code-transformer'\nimport parse from 'module-details-from-path'\nimport { fileURLToPath } from 'node:url'\nimport { dirname, join } from 'node:path'\nimport { MessageChannel } from 'node:worker_threads'\nimport getPackageVersion from './lib/get-package-version.js'\nimport { setDiagnosticsHook, emitDiagnostics } from './lib/diagnostics.js'\nimport { readFileSync } from 'node:fs'\nconst debug = createDebug('@apm-js-collab/tracing-hooks:esm-hook')\nlet transformers = null\nlet packages = null\nlet instrumentator = null\n\nexport { setDiagnosticsHook }\n\n// On the main thread diagnostics go straight to the hook set via\n// `setDiagnosticsHook`. When these hooks run on the `Module.register` loader\n// thread, `initialize` swaps this for a function that posts back over the\n// MessagePort supplied in `data.diagnosticsPort`.\nlet emit = emitDiagnostics\n\n/**\n * Creates a MessagePort that forwards diagnostics posted by the `Module.register`\n * loader thread to the hook set via `setDiagnosticsHook` on this thread. Pass the\n * returned port to `Module.register` in both `data.diagnosticsPort` and\n * `transferList`.\n */\nexport function createDiagnosticsPort() {\n  const { port1, port2 } = new MessageChannel()\n  port1.on('message', emitDiagnostics)\n  // The diagnostics channel must not keep the process alive.\n  port1.unref()\n  return port2\n}\n\nexport async function initialize(data = {}) {\n  return initializeSync(data)\n}\nexport function initializeSync(data = {}) {\n  const instrumentations = data?.instrumentations || []\n  instrumentator = create(instrumentations)\n  packages = new Set(instrumentations.map(i => i.module.name))\n  transformers = new Map()\n  emit = data?.diagnosticsPort ? createPortEmitter(data.diagnosticsPort) : emitDiagnostics\n}\n\nfunction createPortEmitter(port) {\n  return (diag) => {\n    try {\n      // Structured clone reliably carries Error instances but not arbitrary thrown\n      // values, so flatten anything else to an Error rather than let postMessage\n      // throw inside the load path.\n      const error = diag.error === undefined || diag.error instanceof Error\n        ? diag.error\n        : new Error(String(diag.error))\n      port.postMessage({ ...diag, error })\n    } catch (err) {\n      debug('failed to post diagnostics for %s: %o', diag.url, err)\n    }\n  }\n}\n\nexport async function resolve(specifier, context, nextResolve) {\n  return resolveFromURL(await nextResolve(specifier, context))\n}\nfunction resolveFromURL(url) {\n  if (!url.url.startsWith('file:')) {\n    return url\n  }\n  const resolvedModule = parse(fileURLToPath(url.url))\n  if (resolvedModule && packages.has(resolvedModule.name)) {\n    const path = resolvedModule.basedir\n    const version = getPackageVersion(path)\n    const transformer = instrumentator.getTransformer(resolvedModule.name, version, resolvedModule.path)\n    if (transformer) {\n      transformers.set(url.url, transformer)\n    }\n  }\n  return url\n}\nexport function resolveSync(specifier, context, nextResolve) {\n  return resolveFromURL(nextResolve(specifier, context))\n}\n\nexport async function load(url, context, nextLoad) {\n  const result = await nextLoad(url, context)\n\n  if (transformers.has(url) === false) {\n    return result\n  }\n\n  if (result.format === 'commonjs') {\n    // CommonJS is always left to the `Module.prototype._compile` patch\n    // (`ModulePatch`), which these hooks are only ever registered alongside.\n    // Returning `source` for a CommonJS module instead makes Node evaluate it on the\n    // synchronous require(esm) bridge, which throws ERR_VM_MODULE_LINK_FAILURE on\n    // Node < 24.12 when the module's top-level require() chain reaches an ES module\n    // (https://github.com/nodejs/node/issues/59666). Handing the module back exactly\n    // as Node produced it (`source` is null) sends it down the ordinary CommonJS\n    // loader, where `_compile` transforms it.\n    //\n    // `resolve` has already put a transformer in the map for this URL and nothing\n    // downstream will free it, so do that here.\n    debug('deferring commonjs module to the _compile patch %s', url)\n    const transformer = transformers.get(url)\n    transformer.free()\n    transformers.delete(url)\n    return result\n  }\n\n  return loadResult(url, result)\n}\n\n// Unlike the async `load` hook above, this one must transform CommonJS: the sync hooks\n// are never paired with a `_compile` patch, so they are the only thing that can, and\n// they don't evaluate CommonJS on the require(esm) bridge.\nexport function loadSync(url, context, nextLoad) {\n  const result = nextLoad(url, context)\n\n  if (transformers.has(url) === false) {\n    return result\n  }\n\n  if (result.format === 'commonjs') {\n    const parsedUrl = new URL(result.responseURL ?? url)\n    result.source ??= readFileSync(parsedUrl)\n  }\n\n  return loadResult(url, result)\n}\n\nexport function loadResult(url, result) {\n  const code = result.source\n  if (code) {\n    const transformer = transformers.get(url)\n    if (isJSON(url, result.format)) {\n      // `resolve` matched the path, but there is nothing here to\n      // instrument, and nothing downstream will free the transformer.\n      debug('skipping json module %s', url)\n      transformer.free()\n      transformers.delete(url)\n      return result\n    }\n    try {\n      // Node's synchronous hooks (`Module.registerHooks`) deliver `source` as a plain `Uint8Array`,\n      // whereas the async loader delivers a `Buffer`. `Uint8Array.prototype.toString('utf8')` ignores\n      // the encoding and returns comma-joined byte values instead of the decoded text, so decode via\n      // `Buffer` for anything that isn't already a string.\n      const source = typeof code === 'string' ? code : Buffer.from(code).toString('utf8')\n      const moduleType = result.format === 'module' ? 'esm' :\n        result.format === 'commonjs' ? 'cjs' : unlabeledModuleType(url, source)\n      const transformedCode = transformer.transform(source, moduleType)\n      result.source = transformedCode?.code\n      result.shortCircuit = true\n      emit({ url, moduleName: transformer.moduleName })\n    } catch (err) {\n      debug('Error transforming module %s: %o', url, err)\n      emit({ url, moduleName: transformer.moduleName, error: err })\n    } finally {\n      transformer.free()\n    }\n  }\n\n  return result\n}\n\n// A `.json` path, with any query or fragment after it.\nconst jsonPath = /\\.json([?#]|$)/\n\n// JSON is data, so no module type fits it and no instrumentation can\n// match inside it. Parsing it as JavaScript only reports a false error to\n// the diagnostics hook. Node labels it `format: 'json'`, but Deno's sync\n// hooks label nothing at all, so only the path settles it there (issue\n// #53). The path is enough on its own: an `import` needs\n// `with { type: 'json' }` to load a `.json` file, and `require()` of one\n// always parses it as data.\nfunction isJSON(url, format) {\n  return format === 'json' || jsonPath.test(url)\n}\n\n// Top level `import`/`export`. A dynamic `import()` call is not included,\n// because CommonJS can use it too.\nconst esmSyntax = /(^|[\\n;])\\s*(import\\s+|import\\s*[{*'\"]|export\\b)/\n\n// Decide how to transform a module that the host's hooks did not label with a\n// `format`. Deno's sync hooks label nothing, and Deno loads CommonJS as well\n// as ESM, so the runtime alone does not answer the question. Guessing wrong\n// breaks the module: `require()` in an ES module throws `ReferenceError:\n// require is not defined`, and `import` in a CommonJS module is a syntax\n// error.\nfunction unlabeledModuleType(url, source) {\n  return declaredModuleType(url) ?? (esmSyntax.test(source) ? 'esm' : 'cjs')\n}\n\n// The type the file layout declares, by the rules Node and Deno share: the\n// extension wins, then the `\"type\"` of the nearest enclosing package.json.\n// Returns undefined when neither settles it, which leaves the source to say.\nfunction declaredModuleType(url) {\n  let file\n  try {\n    file = fileURLToPath(url)\n  } catch {\n    // Not a file: URL. There is nothing on disk to read.\n    return undefined\n  }\n  // `.mts` and `.cts` pin the type the same way `.mjs` and `.cjs` do. The\n  // source is a poor substitute for them: a `.cts` file may carry a top level\n  // `import type`, which strips away at runtime but reads as ESM here.\n  if (file.endsWith('.mjs') || file.endsWith('.mts')) return 'esm'\n  if (file.endsWith('.cjs') || file.endsWith('.cts')) return 'cjs'\n  const type = nearestPackageType(dirname(file))\n  return type === 'module' ? 'esm' : type === 'commonjs' ? 'cjs' : undefined\n}\n\nconst packageTypes = new Map()\n\n// The `\"type\"` of the nearest package.json at or above `dir`. A package.json\n// that declares no `\"type\"` still ends the walk, exactly as it does for the\n// runtime, and yields undefined.\nfunction nearestPackageType(dir) {\n  if (packageTypes.has(dir)) return packageTypes.get(dir)\n  let type\n  try {\n    type = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8')).type\n  } catch {\n    const parent = dirname(dir)\n    if (parent !== dir) type = nearestPackageType(parent)\n  }\n  packageTypes.set(dir, type)\n  return type\n}\n","import { consoleSandbox, debug, getClient, GLOBAL_OBJ, parseSemver } from '@sentry/core';\nimport { createHash } from 'node:crypto';\nimport { existsSync, readFileSync } from 'node:fs';\nimport * as Module from 'node:module';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\nimport { SENTRY_RUNTIME_INSTRUMENTATIONS } from '@sentry/server-utils/orchestrion/config';\nimport type { register } from 'node:module';\nimport ModulePatch from '@apm-js-collab/tracing-hooks';\nimport { initialize, load, resolve, createDiagnosticsPort } from '@apm-js-collab/tracing-hooks/hook-sync.mjs';\nimport { setDiagnosticsHook } from '@apm-js-collab/tracing-hooks/lib/diagnostics.js';\n\ntype NodeModule = {\n  Module: {\n    prototype: {\n      _compile: (this: unknown, content: string, filename: string, ...args: unknown[]) => unknown;\n    };\n  };\n  registerHooks?: (options: { load: Function; resolve: Function }) => { deregister: () => void };\n  register?: typeof register;\n};\n\n// Surfaced in the always-on warnings below so users can find the fix.\nconst BUNDLING_DOCS_URL = 'https://docs.sentry.io/platforms/javascript/guides/node/troubleshooting/';\n\n/** `Module.registerHooks` only became stable in Node 24.13 / 25.1. */\nfunction hasStableSyncModuleHooks(isDeno: boolean): boolean {\n  // The minimum supported Deno (2.8.3) always has stable sync module hooks.\n  if (isDeno) {\n    return true;\n  }\n\n  const { major = 0, minor = 0 } = parseSemver(process.versions.node ?? '0.0.0');\n  return major > 25 || (major === 25 && minor >= 1) || (major === 24 && minor >= 13);\n}\n\n/** `\"type\"` of the nearest `package.json`, keyed by the directory the lookup started in. */\nconst packageTypeByDir = new Map<string, string | undefined>();\n\nfunction getPackageType(dir: string): string | undefined {\n  if (packageTypeByDir.has(dir)) {\n    return packageTypeByDir.get(dir);\n  }\n\n  let type: string | undefined;\n  const packageJsonPath = join(dir, 'package.json');\n  if (existsSync(packageJsonPath)) {\n    try {\n      type = (JSON.parse(readFileSync(packageJsonPath, 'utf8')) as { type?: string }).type;\n    } catch {\n      type = undefined;\n    }\n  } else if (dirname(dir) !== dir) {\n    type = getPackageType(dirname(dir));\n  }\n\n  packageTypeByDir.set(dir, type);\n  return type;\n}\n\n/** The `format` Node would report for `url`, for the formats Deno leaves out. */\nfunction getMissingDenoFormat(url: string): string | undefined {\n  if (url.endsWith('.json')) {\n    return 'json';\n  }\n  if (url.endsWith('.mjs')) {\n    return 'module';\n  }\n  if (url.startsWith('file:') && url.endsWith('.js') && getPackageType(dirname(fileURLToPath(url))) === 'module') {\n    return 'module';\n  }\n  return undefined;\n}\n\n/**\n * Deno's `nextLoad` reports no `format` for a `.json` file or an ES module, where Node reports\n * `'json'` or `'module'`. Without the format, Deno's CJS loader compiles JSON as JavaScript\n * (`SyntaxError: Unexpected token ':'`), and the transform treats an ES module as CommonJS and\n * injects a `require()` into it (`ReferenceError: require is not defined`). The format is restored\n * on the `nextLoad` result, so the transform sees it too. Only Deno needs this.\n */\nfunction withDenoFormats(loadHook: Function): Function {\n  return (url: string, context: unknown, nextLoad: Function) =>\n    loadHook(url, context, (nextUrl: string, nextContext: unknown) => {\n      const result = nextLoad(nextUrl, nextContext) as { format?: string | null } | undefined;\n      if (result && result.format == null) {\n        const format = getMissingDenoFormat(nextUrl);\n        if (format) {\n          result.format = format;\n        }\n      }\n      return result;\n    });\n}\n\n/**\n * Emit an always-on warning. Unlike `debug.warn` (gated behind `debug: true`), this reaches every\n * user — otherwise a broken transform silently records no channel-based spans.\n */\nfunction warn(message: string): void {\n  consoleSandbox(() => {\n    // oxlint-disable-next-line no-console\n    console.warn(`[Sentry] ${message}`);\n  });\n}\n\n/** As {@link warn}, but appends the bundling/troubleshooting docs link for the build-fix cases. */\nfunction warnRuntimeUnavailable(message: string): void {\n  warn(`${message} See ${BUNDLING_DOCS_URL}`);\n}\n\n// A systemic transformer failure breaks every module, so the \"bundled\" fix is stated once.\nlet warnedTransformerUnavailable = false;\n// Isolated per-module failures are unrelated to bundling, so they warn once per module.\nconst warnedModuleFailures = new Set<string>();\n\n/**\n * A module's transform threw. Two very different causes reach this callback, so distinguish them\n * instead of always blaming bundling — and always include the underlying error, so the message is\n * self-diagnosing rather than asserting a cause the reader can't check (`debug: true` still logs\n * the full error and stack).\n *\n * - The transform pipeline itself is gone → a bare `TypeError: <name> is not a function`. That is\n *   the fingerprint of a bundler inlining and tree-shaking `@sentry/server-runtime-injection`,\n *   which drops its vendored meriyah `parse` / astring `generate` (both module-level imports): it\n *   fails EVERY module the same way and is app-wide, with an actionable build fix. The identifier is\n *   NOT matched, because the same bundle renames it beyond recognition — esbuild deconflicts to\n *   `parse2`, rollup/vite to `parse$1`, and production minifiers to a short opaque `n` — so we match\n *   the *shape* (a bare `<ident> is not a function`) plus the fact that nothing was ever\n *   instrumented (a transformer that has already instrumented something is provably not stripped).\n * - Any other transform `TypeError` (e.g. `transform is not a function`, from a config whose\n *   operator is not registered at runtime — `transform` is a local dispatch, not a stripped import,\n *   so an unbundled install throws with its real, unmangled name) is not a bundling problem — even\n *   when it is the first module to load — so it gets a scoped message that points at reporting it,\n *   not changing the build. A member-expression failure (`x.y is not a function`) is likewise an\n *   ordinary per-module bug, not a stripped top-level binding, so the bare-identifier anchor\n *   excludes it.\n */\nfunction warnTransformFailed(moduleName: string, error: unknown): void {\n  const reason = error instanceof Error ? error.message : String(error);\n\n  // A stripped pipeline throws `<ident> is not a function` for a *bare* identifier (the renamed\n  // `parse`/`generate` binding); the anchors exclude member-expression failures like `x.y is ...`.\n  const barePrimitiveMissing = /^[\\w$]+ is not a function$/.test(reason);\n  // The operator dispatch is a local, only missing when a config operator is unregistered, and an\n  // unbundled install reads it under its real name — never a stripped-transformer symptom.\n  const isolatedOperatorFailure = reason === 'transform is not a function';\n  // A non-empty `runtime` list (something was already instrumented) proves the pipeline works.\n  const nothingInstrumentedYet = (GLOBAL_OBJ.__SENTRY_ORCHESTRION__?.runtime?.length ?? 0) === 0;\n  const pipelineStripped = barePrimitiveMissing && !isolatedOperatorFailure && nothingInstrumentedYet;\n\n  if (!pipelineStripped) {\n    if (warnedModuleFailures.has(moduleName)) {\n      return;\n    }\n    warnedModuleFailures.add(moduleName);\n    warn(\n      `Could not instrument \\`${moduleName}\\` (${reason}). Other instrumented dependencies are ` +\n        `unaffected, so this is not a bundling problem. If \\`${moduleName}\\` should be traced, please report it.`,\n    );\n    return;\n  }\n\n  if (warnedTransformerUnavailable) {\n    return;\n  }\n  warnedTransformerUnavailable = true;\n  warnRuntimeUnavailable(\n    `\\`@sentry/server-runtime-injection\\` was bundled into your application, so \\`${moduleName}\\` and any ` +\n      `other instrumented dependency load uninstrumented (${reason}). Keep ` +\n      '`@sentry/server-runtime-injection` external in your server bundle, or use the Sentry bundler ' +\n      'plugin for build-time instrumentation.',\n  );\n}\n\n/**\n * Synchronously register the diagnostics-channel injection module hooks.\n *\n * This is the single source of truth for the registration logic. It is used by:\n * - `Sentry.init()` (the Node SDK calls it directly — that's why this module\n *   must be CJS-compatible / dual-built, so it can be `require()`d synchronously\n *   before the app's `import`s resolve), and\n * - `import-hook.mjs`, the side-effecting `--import` entry, which just calls it.\n *\n * Libraries imported *after* this call publish the `tracingChannel` events that\n * the channel-based integrations subscribe to.\n */\nexport function registerDiagnosticsChannelInjection(): void {\n  const marker = (GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ??= {});\n\n  // Already hooked, or we already ran and found runtime injection unavailable (and warned once).\n  if (marker.runtime || marker.runtimeUnavailable) {\n    return;\n  }\n\n  const globalAny = globalThis as { Bun?: unknown; Deno?: { version?: { deno?: string } } };\n  const stableSyncHooks = hasStableSyncModuleHooks(Boolean(globalAny.Deno));\n\n  // `Module.registerHooks` / `Module.register` are newer than the @types/node\n  // we build against, hence the cast.\n  const mod = Module as unknown as NodeModule;\n\n  setDiagnosticsHook(({ url, moduleName, error }): void => {\n    if (error) {\n      // A transform throwing a `TypeError` costs this module its instrumentation, so it is worth an\n      // always-on warning; `warnTransformFailed` decides whether that is systemic (bundling) or\n      // isolated. Every other transform failure stays debug-only.\n      if (error instanceof TypeError) {\n        warnTransformFailed(moduleName, error);\n      }\n      debug.warn(`[instrumentation] failed to inject diagnostics-channel into ${moduleName}:`, error);\n    } else {\n      GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n      GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n      GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);\n      // Record the module's resolved file so integrations can anchor dependency resolution on the\n      // app's actual copy, even under ESM (where the CJS `require.cache` never sees the module).\n      (GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtimeFiles ??= {})[moduleName] = url;\n      // Tell channel integrations their module just loaded, so they subscribe\n      // now. They hold off at `init()` to avoid claiming channel slots for\n      // modules that never load, because Node caps channels in use at 1024.\n      getClient()?.emit('orchestrion.module-injected', moduleName);\n    }\n  });\n\n  // runs both at `--import` time and (synchronously) inside `Sentry.init()`,\n  // so an unguarded throw would either abort startup or make `init()` throw.\n  // On any failure (e.g. dep resolution, `require(esm)` / Node-compat\n  // incompatibility) we warn and continue without channel injection.\n  try {\n    if (typeof mod.registerHooks === 'function' && stableSyncHooks) {\n      initialize({ instrumentations: SENTRY_RUNTIME_INSTRUMENTATIONS });\n      const filesLoadedByHook = new Map<string, string>();\n      const loadHook = globalAny.Deno ? withDenoFormats(load) : load;\n      mod.registerHooks({\n        resolve,\n        load: (url: string, context: { format?: string }, nextLoad: Function) => {\n          const result = loadHook(url, context, nextLoad) as\n            | { format?: string; source?: string | Uint8Array; shortCircuit?: boolean }\n            | undefined;\n          const format = result?.format ?? context.format;\n          if (\n            (format == null || format === 'commonjs') &&\n            result?.shortCircuit === true &&\n            result?.source != null &&\n            url.startsWith('file:')\n          ) {\n            const sourceHash = createHash('sha256').update(result.source).digest('hex');\n            filesLoadedByHook.set(pathToFileURL(fileURLToPath(url)).href, sourceHash);\n          }\n          return result;\n        },\n      });\n\n      // Custom require hooks bypass load. Avoid transforming files twice when load already handled them.\n      const prototype = mod.Module.prototype;\n      const originalCompile = prototype._compile;\n      new ModulePatch({ instrumentations: SENTRY_RUNTIME_INSTRUMENTATIONS }).patch();\n      const patchedCompile = prototype._compile;\n      prototype._compile = function (content, filename, ...args) {\n        const url = pathToFileURL(filename).href;\n        const loadedSourceHash = filesLoadedByHook.get(url);\n        filesLoadedByHook.delete(url);\n        const alreadyTransformed =\n          loadedSourceHash !== undefined && loadedSourceHash === createHash('sha256').update(content).digest('hex');\n        const compile = alreadyTransformed ? originalCompile : patchedCompile;\n        return compile.call(this, content, filename, ...args);\n      };\n      debug.log('Registered diagnostics-channel injection via Module.registerHooks()');\n    } else if (typeof mod.register === 'function' && !globalAny.Bun && !globalAny.Deno) {\n      // `Module.register` + the `_compile` patch is Node 18.19–24.12 / 25.0\n      // path. Bun/Deno are excluded: they don't support this combination and\n      // must use the stable `registerHooks` path above (or none at all).\n      const diagnosticsPort = createDiagnosticsPort();\n\n      let parentURL: string;\n      /*! rollup-include-cjs-only */\n      parentURL = pathToFileURL(__filename).href;\n      /*! rollup-include-cjs-only-end */\n      /*! rollup-include-esm-only */\n      parentURL = import.meta.url;\n      /*! rollup-include-esm-only-end */\n\n      // Our own bundled copy of the tracing-hooks async hooks (see `src/hook.mjs`) — the dependency\n      // itself is bundled into this package's build and no longer resolvable as a bare specifier at\n      // runtime.\n      //\n      // Registered by path rather than through the `@sentry/server-runtime-injection/hook`\n      // self-reference, because `Module.register` resolves its specifier at RUNTIME. `@vercel/nft`\n      // does evaluate `Module.register()` calls, but only where it can follow the `node:module`\n      // binding, and in the CJS build rollup routes that through an interop namespace helper\n      // (`const mod = require$$1__namespace`) it cannot see through. The hook then never reaches\n      // traced output, and the CJS build is the one Next.js loads, so `output: 'standalone'`,\n      // Docker and Vercel builds lose channel instrumentation entirely and only say so behind\n      // `debug: true`. A literal relative path is static in either build, and it is still computed\n      // at runtime from `__filename`/`import.meta.url`, so nothing absolute is baked in.\n      //\n      // Built from `join()` rather than `new URL('./hook.js', import.meta.url)` because webpack\n      // reads that second form as an asset reference: it copies the hook next to the app bundle\n      // without its vendored chunks, which would leave the loader thread importing a file whose\n      // own imports are missing.\n      let hookPath: string;\n      /*! rollup-include-cjs-only */\n      // This file is `build/cjs/register.js`; the loader thread needs the ESM build, which shares\n      // the vendored dependency chunks.\n      hookPath = join(__dirname, '../esm/hook.js');\n      /*! rollup-include-cjs-only-end */\n      /*! rollup-include-esm-only */\n      hookPath = join(dirname(fileURLToPath(import.meta.url)), 'hook.js');\n      /*! rollup-include-esm-only-end */\n\n      // The path only points at the shipped hook while this package runs from `node_modules`. A\n      // copy bundled into an app sits somewhere else entirely, so it keeps the self-reference,\n      // which at least resolves against the app's own install. The same fallback catches a broken\n      // path after a build layout change, hence the log: tracers would quietly stop following the\n      // hook again, and this line is the only thing that says so.\n      const hookFound = existsSync(hookPath);\n      if (!hookFound) {\n        debug.warn(`No orchestrion ESM hook at ${hookPath}; falling back to the package specifier.`);\n      }\n\n      const hookSpecifier = hookFound ? pathToFileURL(hookPath).href : '@sentry/server-runtime-injection/hook';\n\n      if (hookFound) {\n        // Only `build/esm/package.json` marks the hook and its chunks as ESM. Deployments can drop\n        // that file, and Vercel disables syntax detection, so Node then parses the hook as CommonJS\n        // and fails on its `export`s.\n        //\n        // This registers a small loader hook before the real one. Its `load` sets\n        // `format: 'module'` for every URL inside our ESM build directory and passes all other URLs\n        // through unchanged. Hooks registered earlier also apply when Node loads hook modules\n        // registered later, so the real hook and its chunks load as ESM even without the marker.\n        // The loader is inlined as a `data:` URL because Node always loads those as ESM, so it\n        // cannot fail the same way and needs no file of its own.\n        const esmDirUrl = `${pathToFileURL(dirname(hookPath)).href}/`;\n        mod.register(\n          `data:text/javascript,${encodeURIComponent(\n            `const d=${JSON.stringify(esmDirUrl)};export async function load(u,c,n){return n(u,u.startsWith(d)?{...c,format:'module'}:c)}`,\n          )}`,\n        );\n      }\n\n      mod.register(hookSpecifier, {\n        parentURL,\n        data: { instrumentations: SENTRY_RUNTIME_INSTRUMENTATIONS, diagnosticsPort },\n        transferList: [diagnosticsPort],\n      });\n\n      // ALSO patch `Module.prototype._compile` for the CJS side: when an ESM\n      // file `import`s a CJS package, the package's internal `require()` calls\n      // are resolved through the CJS machinery and never reach the ESM\n      // register hook, so without this patch the file we want to instrument\n      // loads untransformed.\n      new ModulePatch({ instrumentations: SENTRY_RUNTIME_INSTRUMENTATIONS }).patch();\n      debug.log('Registered diagnostics-channel injection via Module.register()');\n    } else {\n      marker.runtimeUnavailable = true;\n      debug.warn('No available Node API to register diagnostics-channel injection hooks; skipping.');\n      return;\n    }\n  } catch (error) {\n    marker.runtimeUnavailable = true;\n    const reason = error instanceof Error ? error.message : String(error);\n    warnRuntimeUnavailable(\n      `Failed to register diagnostics-channel injection hooks (${reason}), so channel-based integrations will not record spans.`,\n    );\n    debug.warn('Diagnostics-channel injection registration error:', error);\n    return;\n  }\n\n  marker.runtime = marker.runtime || [];\n}\n","import { SERVER_ADDRESS } from '@sentry/conventions/attributes';\nimport * as os from 'node:os';\nimport type { Tracer } from '@opentelemetry/api';\nimport { trace } from '@opentelemetry/api';\nimport type { ServerRuntimeClientOptions } from '@sentry/core/server';\nimport {\n  _INTERNAL_clearAiProviderSkips,\n  _INTERNAL_setDeferSegmentSpanCapture,\n  applySdkMetadata,\n  debug,\n  SDK_VERSION,\n} from '@sentry/core';\nimport { ServerRuntimeClient } from '@sentry/core/server';\nimport {\n  type AsyncLocalStorageLookup,\n  registerPrepareSpanScope,\n  type SentryTracerProvider,\n  setOpenTelemetryContextAsyncContextStrategy,\n} from '@sentry/opentelemetry';\nimport { registerDiagnosticsChannelInjection } from '@sentry/server-runtime-injection/register';\nimport { setAsyncLocalStorageAsyncContextStrategy } from '@sentry/server-utils';\nimport { isMainThread, threadId } from 'worker_threads';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { NodeClientOptions } from '../types';\n\nconst DEFAULT_CLIENT_REPORT_FLUSH_INTERVAL_MS = 60_000; // 60s was chosen arbitrarily\n\n// Treeshakable guard to remove all code related to runtime diagnostics-channel injection. Set to\n// `false` at build time by the Sentry bundler plugins' `bundleSizeOptimizations.excludeChannelInjection`.\ndeclare const __SENTRY_CHANNEL_INJECTION__: boolean | undefined;\n\n/** A client for using Sentry with Node & OpenTelemetry. */\nexport class NodeClient extends ServerRuntimeClient<NodeClientOptions> {\n  public traceProvider: SentryTracerProvider | undefined;\n  public asyncLocalStorageLookup: AsyncLocalStorageLookup | undefined;\n\n  private _tracer: Tracer | undefined;\n  private _clientReportInterval: NodeJS.Timeout | undefined;\n  private _clientReportOnExitFlushListener: (() => void) | undefined;\n  private _onExitFlushListener: (() => void) | undefined;\n\n  public constructor(options: NodeClientOptions) {\n    const serverName =\n      options.includeServerName === false\n        ? undefined\n        : options.serverName || global.process.env.SENTRY_NAME || os.hostname();\n\n    const clientOptions: ServerRuntimeClientOptions = {\n      ...options,\n      platform: 'node',\n      // Use provided runtime or default to 'node' with current process version\n      runtime: options.runtime || { name: 'node', version: global.process.version },\n      serverName,\n    };\n\n    applySdkMetadata(clientOptions, 'node');\n\n    debug.log(`Initializing Sentry: process: ${process.pid}, thread: ${isMainThread ? 'main' : `worker-${threadId}`}.`);\n\n    super(clientOptions);\n\n    // The log, metric and span buffers drain on `flush`. Their timers are unref'd, so a natural exit\n    // would drop what they hold.\n    this._onExitFlushListener = () => {\n      this.emit('flush');\n    };\n\n    if (serverName) {\n      this.on('beforeCaptureLog', log => {\n        log.attributes = {\n          ...log.attributes,\n          [SERVER_ADDRESS]: serverName,\n        };\n      });\n    }\n\n    process.on('beforeExit', this._onExitFlushListener);\n\n    // Enable deferred segment-span transaction capture here, in the constructor, rather than in\n    // `initOtel`. Every client runs its constructor exactly once, whereas `initOtel` only runs on\n    // `Sentry.init()` and only fully wires up the first client (a second `init` loses the\n    // `setGlobalTracerProvider` race and bails early, and a manually constructed `NodeClient` never\n    // runs `initOtel` at all). Anchoring on the constructor means every client — first, second, or\n    // manual — defers correctly. It's unconditional and cheap: clients on the OpenTelemetry SDK\n    // provider path produce OTel spans that never reach `SentrySpan`, so the strategy is simply never\n    // consulted for them.\n    _INTERNAL_setDeferSegmentSpanCapture(this);\n\n    // Same constructor anchoring as above: every client must continue incoming (remote) traces,\n    // also manually constructed ones that never run `initOtel`.\n    registerPrepareSpanScope(this);\n\n    // Install the channel-based (orchestrion diagnostics-channel) instrumentation hooks here, in the\n    // constructor, so that every client installs them — not only the one built by the Node SDK's\n    // `init()`. Downstream SDKs construct a client without going through that path, and would\n    // otherwise never install the hooks. Registration is idempotent (a global marker guards it), so\n    // a second construction is harmless. The channel integrations capture errors as well as spans,\n    // so this is independent of tracing. Opt out at runtime with `enableRuntimeChannelInjection:\n    // false`, or at build time via the bundler plugins'\n    // `bundleSizeOptimizations.excludeChannelInjection` (which tree-shakes this whole block away).\n    if (\n      (typeof __SENTRY_CHANNEL_INJECTION__ === 'undefined' || __SENTRY_CHANNEL_INJECTION__) &&\n      options.enableRuntimeChannelInjection !== false\n    ) {\n      registerDiagnosticsChannelInjection();\n    }\n  }\n\n  /** @inheritDoc */\n  public init(): void {\n    // Must run before `super.init()`: channel-based integrations capture the strategy's\n    // AsyncLocalStorage via `getTracingChannelBinding()` during integration setup.\n    if (this.getOptions().enableOpenTelemetrySetup) {\n      this.asyncLocalStorageLookup = setOpenTelemetryContextAsyncContextStrategy();\n    } else {\n      this.asyncLocalStorageLookup = { asyncLocalStorage: setAsyncLocalStorageAsyncContextStrategy() };\n    }\n\n    super.init();\n  }\n\n  /** Get the OTEL tracer. */\n  public get tracer(): Tracer {\n    if (this._tracer) {\n      return this._tracer;\n    }\n\n    const name = '@sentry/node';\n    const version = SDK_VERSION;\n    const tracer = trace.getTracer(name, version);\n    this._tracer = tracer;\n\n    return tracer;\n  }\n\n  /** @inheritDoc */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async flush(timeout?: number): PromiseLike<boolean> {\n    await this.traceProvider?.forceFlush();\n\n    if (this.getOptions().sendClientReports) {\n      this._flushOutcomes();\n    }\n\n    return super.flush(timeout);\n  }\n\n  /** @inheritDoc */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async close(timeout?: number | undefined): PromiseLike<boolean> {\n    if (this._clientReportInterval) {\n      clearInterval(this._clientReportInterval);\n    }\n\n    if (this._clientReportOnExitFlushListener) {\n      process.off('beforeExit', this._clientReportOnExitFlushListener);\n    }\n\n    if (this._onExitFlushListener) {\n      process.off('beforeExit', this._onExitFlushListener);\n    }\n\n    const allEventsSent = await super.close(timeout);\n    if (this.traceProvider) {\n      await this.traceProvider.shutdown();\n    }\n\n    return allEventsSent;\n  }\n\n  /**\n   * Will start tracking client reports for this client.\n   *\n   * NOTICE: This method will create an interval that is periodically called and attach a `process.on('beforeExit')`\n   * hook. To clean up these resources, call `.close()` when you no longer intend to use the client. Not doing so will\n   * result in a memory leak.\n   */\n  // The reason client reports need to be manually activated with this method instead of just enabling them in a\n  // constructor, is that if users periodically and unboundedly create new clients, we will create more and more\n  // intervals and beforeExit listeners, thus leaking memory. In these situations, users are required to call\n  // `client.close()` in order to dispose of the acquired resources.\n  // We assume that calling this method in Sentry.init() is a sensible default, because calling Sentry.init() over and\n  // over again would also result in memory leaks.\n  // Note: We have experimented with using `FinalizationRegisty` to clear the interval when the client is garbage\n  // collected, but it did not work, because the cleanup function never got called.\n  public startClientReportTracking(): void {\n    const clientOptions = this.getOptions();\n    if (clientOptions.sendClientReports) {\n      this._clientReportOnExitFlushListener = () => {\n        this._flushOutcomes();\n      };\n\n      this._clientReportInterval = setInterval(() => {\n        DEBUG_BUILD && debug.log('Flushing client reports based on interval.');\n        this._flushOutcomes();\n      }, clientOptions.clientReportFlushInterval ?? DEFAULT_CLIENT_REPORT_FLUSH_INTERVAL_MS)\n        // Unref is critical for not preventing the process from exiting because the interval is active.\n        .unref();\n\n      process.on('beforeExit', this._clientReportOnExitFlushListener);\n    }\n  }\n\n  /** @inheritDoc */\n  protected _setupIntegrations(): void {\n    // Clear AI provider skip registrations before setting up integrations\n    // This ensures a clean state between different client initializations\n    // (e.g., when LangChain skips OpenAI in one client, but a subsequent client uses OpenAI standalone)\n    _INTERNAL_clearAiProviderSkips();\n    super._setupIntegrations();\n  }\n}\n","import { diag, DiagLogLevel } from '@opentelemetry/api';\nimport { debug } from '@sentry/core';\n\n/**\n * Setup the OTEL logger to use our own debug logger.\n */\nexport function setupOpenTelemetryLogger(): void {\n  // Disable diag, to ensure this works even if called multiple times\n  diag.disable();\n  diag.setLogger(\n    {\n      error: debug.error,\n      warn: debug.warn,\n      info: debug.log,\n      debug: debug.log,\n      verbose: debug.log,\n    },\n    DiagLogLevel.DEBUG,\n  );\n}\n","import type { TracerProvider } from '@opentelemetry/api';\nimport { propagation, trace } from '@opentelemetry/api';\nimport { debug as coreDebug } from '@sentry/core';\nimport { setupOpenTelemetryLogger } from '../otel/logger';\nimport type { NodeClient } from './client';\nimport { SentryPropagator, SentryTracerProvider } from '@sentry/opentelemetry';\nimport { DEBUG_BUILD } from '../debug-build';\n\n// The global registry of @opentelemetry/api 1.x, shared across all copies of the package\nconst OTEL_API_GLOBAL_KEY = Symbol.for('opentelemetry.js.api.1');\n\n/**\n * Registers the given tracer provider as the global tracer provider, recreating the OpenTelemetry\n * API registry when it pre-exists with a different `@opentelemetry/api` version.\n *\n * Some host runtimes (e.g. Neon Functions) pre-create the registry with their own API version.\n * `registerGlobal` requires an exact version match, so every registration through the SDK's copy\n * of `@opentelemetry/api` is rejected and tracing is silently disabled\n * (https://github.com/getsentry/sentry-javascript/issues/22338). This case is identified by a\n * failed registration with an empty `trace` slot: `registerGlobal` checks the slot before the\n * version, so an empty slot means the version gate rejected us and recreating the registry\n * clobbers no other tracer provider. If the slot is occupied (another provider registered first,\n * e.g. a second `Sentry.init()` call), the registry is left untouched and registration fails.\n *\n * Slots Sentry does not claim itself (e.g. `diag`, `metrics`) are carried over into the recreated\n * registry: reads resolve via a semver-compatibility check rather than the exact-match write gate,\n * so they keep working for the copy that registered them. `propagation` and `context` are not\n * carried over because Sentry registers its own right after this.\n */\nfunction registerGlobalTracerProvider(provider: TracerProvider): boolean {\n  if (trace.setGlobalTracerProvider(provider)) {\n    return true;\n  }\n\n  // @opentelemetry/api stores the registry under a `Symbol.for` key that no public type\n  // describes, so `typeof globalThis` can only be narrowed to it by casting through `unknown`.\n  const otelGlobal = globalThis as unknown as Record<symbol, Record<string, unknown> | undefined>;\n  const registry = otelGlobal[OTEL_API_GLOBAL_KEY];\n  if (registry && !registry.trace) {\n    DEBUG_BUILD &&\n      coreDebug.warn(\n        'Replaced a pre-existing OpenTelemetry API registry that was created by a different @opentelemetry/api version and would have blocked tracing. If you want to manage OpenTelemetry yourself, set `enableOpenTelemetrySetup: false` in `Sentry.init()`.',\n      );\n    otelGlobal[OTEL_API_GLOBAL_KEY] = undefined;\n\n    if (!trace.setGlobalTracerProvider(provider)) {\n      return false;\n    }\n\n    // The cast is needed because TS still has the slot narrowed to `undefined` from the reset\n    // above and cannot know the registration call just recreated the registry.\n    const recreatedRegistry = otelGlobal[OTEL_API_GLOBAL_KEY] as Record<string, unknown> | undefined;\n    if (recreatedRegistry) {\n      const { propagation: _propagation, context: _context, ...carriedOverSlots } = registry;\n      otelGlobal[OTEL_API_GLOBAL_KEY] = { ...carriedOverSlots, ...recreatedRegistry };\n    }\n\n    return true;\n  }\n\n  return false;\n}\n\n/**\n * Initialize OpenTelemetry for Node.\n */\nexport function initOpenTelemetry(client: NodeClient): void {\n  if (client.getOptions().debug) {\n    setupOpenTelemetryLogger();\n  }\n\n  const provider = setupOtel();\n  client.traceProvider = provider;\n}\n\n/** Just exported for tests. */\nexport function setupOtel(): SentryTracerProvider | undefined {\n  const provider = new SentryTracerProvider();\n\n  if (!registerGlobalTracerProvider(provider)) {\n    DEBUG_BUILD &&\n      coreDebug.warn(\n        'Could not register SentryTracerProvider because another OpenTelemetry tracer provider is already registered.',\n      );\n    return undefined;\n  }\n\n  propagation.setGlobalPropagator(new SentryPropagator());\n\n  return provider;\n}\n","import type { Client, Span } from '@sentry/core';\nimport { getActiveSpan, getRootSpan, GLOBAL_OBJ } from '@sentry/core';\nimport type { HttpServerResponse } from '@sentry/core/server';\nimport { _INTERNAL_safeUnref } from '@sentry/core/server';\nimport { subscribeDiagnosticsChannel } from '@sentry/server-utils';\n\n// On Vercel, `http.server.request.start` fires without the request context, while this channel fires with it.\nconst HTTP_ON_SERVER_RESPONSE_FINISH = 'http.server.response.finish';\n\n// Some frameworks end the request's root span shortly after the response closes.\nconst REQUEST_END_TIMEOUT_MS = 2000;\n\ninterface VercelRequestContextGlobal {\n  get?(): { waitUntil?: (task: Promise<unknown>) => void } | undefined;\n}\n\n// A repeated `init()` replaces the client, so the listeners are registered once and flush the latest client.\nlet keepAliveClient: Client | undefined;\n\n/**\n * Keeps Vercel Node.js functions alive until the SDK has sent the telemetry of each request.\n *\n * Vercel can suspend a function as soon as the response is sent, so buffered events, spans, logs and metrics\n * (and the timers that flush them) arrive late or never. When a response\n * finishes, we register one `waitUntil` that waits for the response to close and the request's root span to\n * end (2 seconds at most), and then flushes the client.\n */\nexport function setupVercelKeepAlive(client: Client): void {\n  const isRegistered = !!keepAliveClient;\n  keepAliveClient = client;\n  if (isRegistered) {\n    return;\n  }\n\n  // Ensure we flush events when vercel functions are ended\n  // See: https://vercel.com/docs/functions/functions-api-reference#sigterm-signal\n  process.on('SIGTERM', async () => {\n    // We have 500ms for processing here, so we try to make sure to have enough time to send the events\n    await keepAliveClient?.flush(200);\n  });\n\n  subscribeDiagnosticsChannel(HTTP_ON_SERVER_RESPONSE_FINISH, message => {\n    const { response } = message as { response?: HttpServerResponse };\n    const requestContextGlobal: VercelRequestContextGlobal | undefined =\n      // @ts-expect-error Vercel sets this global, so `GLOBAL_OBJ` does not type it\n      GLOBAL_OBJ[Symbol.for('@vercel/request-context')];\n    const requestContext = requestContextGlobal?.get?.();\n    const client = keepAliveClient;\n    if (!client || !response || !requestContext?.waitUntil) {\n      return;\n    }\n\n    const activeSpan = getActiveSpan();\n    const rootSpan = activeSpan && getRootSpan(activeSpan);\n\n    requestContext.waitUntil(\n      waitForRequestEnd(client, response, rootSpan, REQUEST_END_TIMEOUT_MS).then(() => client.flush(2000)),\n    );\n  });\n}\n\nfunction waitForRequestEnd(\n  client: Client,\n  response: HttpServerResponse,\n  rootSpan: Span | undefined,\n  timeout: number,\n): Promise<void> {\n  return new Promise(resolve => {\n    let responseClosed = false;\n    // Ended and unsampled spans are not recording.\n    let rootSpanEnded = !rootSpan?.isRecording();\n\n    const done = (): void => {\n      clearTimeout(timer);\n      unsubscribe();\n      resolve();\n    };\n    const doneIfRequestEnded = (): void => {\n      if (responseClosed && rootSpanEnded) {\n        done();\n      }\n    };\n\n    const timer = _INTERNAL_safeUnref(setTimeout(done, timeout));\n    const unsubscribe = client.on('spanEnd', span => {\n      if (span === rootSpan) {\n        rootSpanEnded = true;\n        doneIfRequestEnded();\n      }\n    });\n    response.once('close', () => {\n      responseClosed = true;\n      doneIfRequestEnded();\n    });\n  });\n}\n","import type { Integration, Options } from '@sentry/core';\nimport {\n  _INTERNAL_warnIfClientIsActive,\n  applySdkMetadata,\n  consoleSandbox,\n  conversationIdIntegration,\n  debug,\n  dedupeIntegration,\n  envToBool,\n  eventFiltersIntegration,\n  functionToStringIntegration,\n  getCurrentScope,\n  getIntegrationsToSetup,\n  hasSpansEnabled,\n  linkedErrorsIntegration,\n  propagationContextFromHeaders,\n  requestDataIntegration,\n  stackParserFromStackParserOptions,\n} from '@sentry/core';\nimport { isMainThread, parentPort } from 'node:worker_threads';\nimport { detectOrchestrionSetup, getErrorIntegrations, getTracingIntegrations } from '@sentry/server-utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { awsLambdaWebIntegration } from '../integrations/awsLambdaWeb';\nimport { childProcessIntegration } from '../integrations/childProcess';\nimport { consoleIntegration } from '../integrations/console';\nimport { nodeContextIntegration } from '../integrations/context';\nimport { contextLinesIntegration } from '../integrations/contextlines';\nimport { httpIntegration } from '../integrations/http';\nimport { localVariablesIntegration } from '../integrations/local-variables';\nimport { modulesIntegration } from '../integrations/modules';\nimport { nativeNodeFetchIntegration } from '../integrations/node-fetch';\nimport { onUncaughtExceptionIntegration } from '../integrations/onuncaughtexception';\nimport { onUnhandledRejectionIntegration } from '../integrations/onunhandledrejection';\nimport { processSessionIntegration } from '../integrations/processSession';\nimport { INTEGRATION_NAME as SPOTLIGHT_INTEGRATION_NAME, spotlightIntegration } from '../integrations/spotlight';\nimport { systemErrorIntegration } from '../integrations/systemError';\nimport { workerThreadsIntegration } from '../integrations/workerThreads';\nimport { makeNodeTransport } from '../transports';\nimport type { NodeClientOptions, NodeOptions } from '../types';\nimport { getEntryPointType } from '../utils/entry-point';\nimport { getSpotlightConfig } from '../utils/spotlight';\nimport { defaultStackParser, getSentryRelease } from './api';\nimport { NodeClient } from './client';\nimport { initOpenTelemetry } from './initOtel';\nimport { setupVercelKeepAlive } from './vercel';\n\n/**\n * Get the base default integrations shared by all Node SDK default-integration sets.\n */\nfunction getBaseDefaultIntegrations(): Integration[] {\n  return [\n    // Common\n    eventFiltersIntegration(),\n    functionToStringIntegration(),\n    linkedErrorsIntegration(),\n    dedupeIntegration(),\n    requestDataIntegration(),\n    systemErrorIntegration(),\n    conversationIdIntegration(),\n    // Native Wrappers\n    consoleIntegration(),\n    httpIntegration(),\n    nativeNodeFetchIntegration(),\n    // Global Handlers\n    onUncaughtExceptionIntegration(),\n    onUnhandledRejectionIntegration(),\n    // Event Info\n    contextLinesIntegration(),\n    localVariablesIntegration(),\n    awsLambdaWebIntegration(),\n    nodeContextIntegration(),\n    childProcessIntegration(),\n    workerThreadsIntegration(),\n    processSessionIntegration(),\n    modulesIntegration(),\n    // Framework-level integrations\n    ...getErrorIntegrations(),\n  ];\n}\n\n/**\n * Get default integrations, excluding performance.\n */\nexport function getDefaultIntegrationsWithoutPerformance(): Integration[] {\n  return getBaseDefaultIntegrations();\n}\n\n/** Get the default integrations for the Node SDK. */\nexport function getDefaultIntegrations(options: Options): Integration[] {\n  return [\n    ...getDefaultIntegrationsWithoutPerformance(),\n    // We only add tracing-only integrations if tracing is enabled\n    ...(hasSpansEnabled(options) ? getTracingIntegrations() : []),\n  ];\n}\n\n/**\n * Initialize Sentry for Node.\n */\nexport function init(options: NodeOptions | undefined = {}): NodeClient | undefined {\n  return _init(options, getDefaultIntegrations);\n}\n\n/**\n * Initialize Sentry for Node, without any integrations added by default.\n */\nexport function initWithoutDefaultIntegrations(options: NodeOptions | undefined = {}): NodeClient | undefined {\n  return _init(options, () => []);\n}\n\n/**\n * Internal initialization function.\n */\nfunction _init(\n  options: NodeOptions | undefined = {},\n  getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): NodeClient | undefined {\n  // Node re-runs `--require` preloads (though not `--import` ones) on the module loader thread it\n  // spawns for `Module.register()`, which `init()` itself triggers (channel injection, the ESM\n  // loader hook). So a `--require`d instrument file re-enters `init()` there, on a thread that\n  // never runs app code. It is recognizable as the only thread without a `parentPort`:\n  // user-created workers always have one and are legitimately instrumented.\n  if (!isMainThread && !parentPort) {\n    return undefined;\n  }\n\n  if (getEntryPointType() === 'require') {\n    consoleSandbox(() => {\n      // eslint-disable-next-line no-console\n      console.warn(\n        '[Sentry] Initializing the SDK via the Node `--require` flag is no longer supported, because Node re-runs `--require` preloads on its module loader thread. Use `--import` instead: `node --import ./instrument.js app.js`',\n      );\n    });\n  }\n\n  applySdkMetadata(options, 'node');\n\n  // Enable debug logging before the client is created, so failure modes during setup (e.g. the\n  // channel-injection registration finding no available Node hook API, or dep-resolution errors)\n  // actually surface. `getClientOptions` resolves `debug` the same way for the client; resolving it\n  // here as well keeps the two in agreement.\n  if (envToBool(options.debug ?? process.env.SENTRY_DEBUG)) {\n    if (DEBUG_BUILD) {\n      debug.enable();\n    } else {\n      // use `console.warn` rather than `debug.warn` since non-debug bundles have all `debug.x` statements stripped\n      consoleSandbox(() => {\n        // eslint-disable-next-line no-console\n        console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n      });\n    }\n  }\n\n  // Resolve the tracing-affecting options (e.g. `SENTRY_TRACES_SAMPLE_RATE`) up front so that\n  // default-integration selection sees the final values. Without this, enabling tracing purely via\n  // env would leave `hasSpansEnabled` false at this point and skip the performance integrations.\n  // `getClientOptions` resolves the remaining options later.\n  const optionsWithResolvedTracing = {\n    ...options,\n    tracesSampleRate: getTracesSampleRate(options.tracesSampleRate),\n  };\n\n  // Only use Node SDK defaults if none provided.\n  const defaultIntegrations = options.defaultIntegrations ?? getDefaultIntegrationsImpl(optionsWithResolvedTracing);\n\n  const clientOptions = getClientOptions({ ...options, defaultIntegrations }, getDefaultIntegrationsImpl);\n\n  _INTERNAL_warnIfClientIsActive();\n\n  const scope = getCurrentScope();\n  scope.update(clientOptions.initialScope);\n\n  if (clientOptions.spotlight && !clientOptions.integrations.some(({ name }) => name === SPOTLIGHT_INTEGRATION_NAME)) {\n    clientOptions.integrations.push(\n      spotlightIntegration({\n        sidecarUrl: typeof clientOptions.spotlight === 'string' ? clientOptions.spotlight : undefined,\n      }),\n    );\n  }\n\n  const client = new NodeClient(clientOptions);\n  // The client is on the current scope, from where it generally is inherited\n  getCurrentScope().setClient(client);\n\n  client.init();\n\n  /*! rollup-include-cjs-only */\n  debug.log(`SDK initialized from CommonJS`);\n  /*! rollup-include-cjs-only-end */\n  /*! rollup-include-esm-only */\n  debug.log(`SDK initialized from ESM`);\n  /*! rollup-include-esm-only-end */\n\n  client.startClientReportTracking();\n\n  updateScopeFromEnvVariables();\n\n  if (process.env.VERCEL) {\n    setupVercelKeepAlive(client);\n  }\n\n  // Add Node SDK specific OpenTelemetry setup. `setupEventContextTrace` reads the active span from the\n  // OpenTelemetry context, so it only belongs here: without a Sentry tracer provider a foreign OTel\n  // span could otherwise override the Sentry trace on error events.\n  if (clientOptions.enableOpenTelemetrySetup) {\n    initOpenTelemetry(client);\n  }\n\n  // Warn about missing or doubled channel injection. Runs after the client\n  // is created so the debug logger is enabled and the warning is emitted.\n  detectOrchestrionSetup();\n\n  return client;\n}\n\nfunction getClientOptions(\n  options: NodeOptions,\n  getDefaultIntegrationsImpl: (options: Options) => Integration[],\n): NodeClientOptions {\n  const release = getRelease(options.release);\n\n  const spotlight = getSpotlightConfig(options.spotlight);\n\n  const tracesSampleRate = getTracesSampleRate(options.tracesSampleRate);\n  const traceLifecycle = getTraceLifecycle(options.traceLifecycle);\n\n  const mergedOptions = {\n    ...options,\n    dsn: options.dsn ?? process.env.SENTRY_DSN,\n    environment: options.environment ?? process.env.SENTRY_ENVIRONMENT,\n    sendClientReports: options.sendClientReports ?? true,\n    transport: options.transport ?? makeNodeTransport,\n    stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n    release,\n    tracesSampleRate,\n    spotlight,\n    traceLifecycle,\n    // Most Node-based SDKs default to running without a Sentry OpenTelemetry tracer provider. SDKs\n    // that need OTel spans surfaced in Sentry (nextjs, sveltekit) opt back in by passing `true`.\n    enableOpenTelemetrySetup: options.enableOpenTelemetrySetup ?? false,\n    debug: envToBool(options.debug ?? process.env.SENTRY_DEBUG),\n  };\n\n  const integrations = options.integrations;\n  const defaultIntegrations = options.defaultIntegrations ?? getDefaultIntegrationsImpl(mergedOptions);\n\n  const resolvedIntegrations = getIntegrationsToSetup({\n    defaultIntegrations,\n    integrations,\n  });\n\n  return {\n    ...mergedOptions,\n    integrations: resolvedIntegrations,\n  };\n}\n\nfunction getRelease(release: NodeOptions['release']): string | undefined {\n  if (release !== undefined) {\n    return release;\n  }\n\n  const detectedRelease = getSentryRelease();\n  if (detectedRelease !== undefined) {\n    return detectedRelease;\n  }\n\n  return undefined;\n}\n\nfunction getTracesSampleRate(tracesSampleRate: NodeOptions['tracesSampleRate']): number | undefined {\n  if (tracesSampleRate !== undefined) {\n    return tracesSampleRate;\n  }\n\n  const sampleRateFromEnv = process.env.SENTRY_TRACES_SAMPLE_RATE;\n  if (!sampleRateFromEnv) {\n    return undefined;\n  }\n\n  const parsed = parseFloat(sampleRateFromEnv);\n  return isFinite(parsed) ? parsed : undefined;\n}\n\nfunction getTraceLifecycle(traceLifecycle: NodeOptions['traceLifecycle']): 'stream' | 'static' {\n  if (traceLifecycle !== undefined) {\n    return traceLifecycle;\n  }\n\n  const lifecycleFromEnv = process.env.SENTRY_TRACE_LIFECYCLE;\n\n  if (lifecycleFromEnv === 'stream' || lifecycleFromEnv === 'static') {\n    return lifecycleFromEnv;\n  }\n\n  return 'stream';\n}\n\n/**\n * Update scope and propagation context based on environmental variables.\n *\n * See https://github.com/getsentry/rfcs/blob/main/text/0071-continue-trace-over-process-boundaries.md\n * for more details.\n */\nfunction updateScopeFromEnvVariables(): void {\n  if (envToBool(process.env.SENTRY_USE_ENVIRONMENT) !== false) {\n    const sentryTraceEnv = process.env.SENTRY_TRACE;\n    const baggageEnv = process.env.SENTRY_BAGGAGE;\n    const propagationContext = propagationContextFromHeaders(sentryTraceEnv, baggageEnv);\n    getCurrentScope().setPropagationContext(propagationContext);\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { isTelemetryDisabled, sendTelemetryEvent } from '../../../shared/telemetry';\nimport { readAccountArg } from '../capabilities';\nimport type { MyChartRequest } from '../../../scrapers/myChart/core/myChartRequest';\nimport { getEmail } from '../../../scrapers/myChart/chart/profile/profile';\nimport { checkProxyContext } from '../../../scrapers/myChart/proxy/proxyContext';\nimport { openSession } from './session-manager';\nimport { captureToolError } from './error-reporting';\n\nconst EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n/**\n * Which MyChart a call touches and which login it uses, read off the call's own\n * arguments: an `account` id is `username@hostname` (split on the LAST '@',\n * since the username is often itself an email), and setup_account passes the\n * two separately.\n */\nexport function toolCallTarget(args: Record<string, unknown>): { account?: string; hostname?: string; username?: string } {\n  let hostname = typeof args.hostname === 'string' ? args.hostname.trim() : undefined;\n  let username = typeof args.username === 'string' ? args.username.trim() : undefined;\n  const account = readAccountArg(args);\n  const at = account?.lastIndexOf('@') ?? -1;\n  if (account && at > 0) {\n    username = account.slice(0, at);\n    hostname = account.slice(at + 1);\n  }\n  return {\n    ...(account && at > 0 ? { account } : {}),\n    ...(hostname ? { hostname: hostname.toLowerCase() } : {}),\n    ...(username ? { username } : {}),\n  };\n}\n\n/**\n * The account holder's email from their MyChart contact information.\n *\n * GetContactInformation answers for whichever patient is ACTIVE, and on a\n * proxy account that can be a child. So the read is only trusted when MyChart\n * reports the account holder's own record as active both before and after it —\n * a switch_proxy_target landing in between discards the result. An unverifiable\n * context ('unknown') counts as not the holder.\n */\nexport async function readAccountHolderEmail(session: MyChartRequest): Promise<string | null> {\n  const onHolder = async () => {\n    const check = await checkProxyContext(session);\n    return check.wanted === null || (check.active && check.determinedBy !== 'unknown');\n  };\n  if (!(await onHolder())) return null;\n  const email = await getEmail(session);\n  if (!email || !EMAIL_RE.test(email.trim())) return null;\n  return (await onHolder()) ? email.trim().toLowerCase() : null;\n}\n\nconst emails = new Map<string, string>();\n\nasync function accountEmail(account: string): Promise<string | null> {\n  const cached = emails.get(account.toLowerCase());\n  if (cached) return cached;\n  const session = openSession(account);\n  const email = session ? await readAccountHolderEmail(session).catch(() => null) : null;\n  if (email) emails.set(account.toLowerCase(), email);\n  return email;\n}\n\n/**\n * One event per tool call, to Amplitude and our analytics Lambda. A failed\n * call also sends an `mcpb_tool_error` carrying the error to both, and the\n * error itself to Sentry. Called once the\n * call has finished, so the session it used is open and the email lookup does\n * not interleave with the tool's own requests. Never throws, never blocks.\n */\nexport function reportToolCall(tool: string, args: Record<string, unknown>, error?: unknown): void {\n  // Checked here too, so an opted-out user's MyChart never sees the email lookup.\n  if (isTelemetryDisabled()) return;\n  void (async () => {\n    try {\n      const { account, hostname, username } = toolCallTarget(args);\n      const fallback = username && EMAIL_RE.test(username) ? username.toLowerCase() : undefined;\n      const email = (account ? await accountEmail(account) : null) ?? fallback;\n      const properties = { tool, hostname: hostname ?? null };\n      sendTelemetryEvent('mcpb_tool_called', properties, 'mcpb', { email, username });\n      if (error !== undefined) {\n        sendTelemetryEvent('mcpb_tool_error', properties, 'mcpb', { email, username }, error);\n        captureToolError(error, { tool, hostname, email, username });\n      }\n    } catch {\n      // Telemetry must never break a tool call.\n    }\n  })();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Tells someone on an old .mcpb (or mychart-cli) that a new one is out, at the\n * bottom of every tool result. The server has no UI of its own between calls,\n * so a tool result is the only place a notice can reach the user.\n *\n * The check runs in the background — at startup, then daily, since Claude\n * Desktop keeps the server alive for days — and a tool call only reads its last\n * answer, so no call ever waits on our site. \"Couldn't tell\" keeps the previous\n * answer rather than clearing it.\n */\n\nimport { checkVersion, formatUpdateNotice, type VersionTarget } from '../../../scrapers/metadata/version';\n\nconst RECHECK_EVERY_MS = 24 * 60 * 60 * 1000;\n\nlet notice: string | null = null;\n\nasync function refresh(target: VersionTarget, currentVersion: string): Promise<void> {\n  const check = await checkVersion({ currentVersion, target });\n  if (check) notice = check.updateAvailable ? formatUpdateNotice(check) : null;\n}\n\n/** `target` is the release this host compares against: the .mcpb, or mychart-cli on npm. */\nexport function startUpdateCheck(target: VersionTarget, currentVersion: string): Promise<void> {\n  setInterval(() => void refresh(target, currentVersion), RECHECK_EVERY_MS).unref();\n  return refresh(target, currentVersion);\n}\n\nexport function withUpdateNotice<T extends { content: unknown[] }>(result: T): T {\n  if (!notice) return result;\n  // Addressed to the model: the result is read by Claude, not shown verbatim.\n  const text = `OpenRecord ${notice}\\n(Mention this update to the user at the end of your reply.)`;\n  return { ...result, content: [...result.content, { type: 'text', text }] };\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Tool registry for OpenRecord's stdio MCP server, which both the Claude Desktop\n * extension and `mychart-cli mcp` run. What differs between them is `McpHost`.\n *\n * Three groups of tools:\n *   1. Meta tools — list_accounts, get_setup_widget (hosts with the widget only),\n *                   setup_account, import_browser_passwords,\n *                   connect_imported_account, complete_2fa,\n *                   disconnect_account, check_pending_call. These are not\n *                   capabilities: most manage the credentials stored on this\n *                   machine, get_setup_widget returns an MCP Apps UI\n *                   resource, and check_pending_call collects a result that\n *                   outran the client's request timeout (pending-call.ts).\n *                   `search_mycharts` and `get_hospital_info` used to be\n *                   meta tools and are now `public` capabilities in the\n *                   shared registry, so every client has them.\n *   2. Host tools — `McpHost.registerExtraTools` (the extension's Google Calendar sync).\n *   3. Capability tools — one per entry in `clients/shared/capabilities/`, which is\n *                   the single source of truth for what OpenRecord can do with\n *                   a MyChart account. Nothing in this file decides what the\n *                   extension supports; add a capability there and it appears\n *                   here, in the CLI, in the npm client and in the mobile app.\n *\n * Every capability tool that touches MyChart takes an `account` parameter (the\n * hostname returned by list_accounts). Multiple accounts can be configured and\n * connected at once; there is no \"active account\" state. `public` capabilities\n * (the NPI Registry, the MyChart directory) take no account and run with no\n * session at all.\n *\n * There IS an \"active patient\" per account, but it lives on MyChart's server\n * (proxy access — a parent reading a child's chart). Scraper tools take an\n * optional `patient` and assert the active record before running; only\n * switch_proxy_target changes it. See scrapers/myChart/proxyTools.ts.\n *\n * Setup is a sequence of explicit tool calls (no MCP elicitation):\n *   list_accounts                                  // see what's already set up\n *   import_browser_passwords()                     // optional: reuse a password the browser already has\n *   connect_imported_account(import_id)            //   …then connect the one the user picked\n *   search_mycharts(query=\"uchealth\")              // otherwise, find the hostname for a new account\n *   setup_account(hostname, username, password)    // attempt login\n *   complete_2fa(pending_id, code)                 // only if the login said need_2fa\n *   register_passkey(account)                      // recommended, only if the user agrees:\n *                                                  //   skips password + 2FA on future sessions\n */\n\nimport { z, type ZodRawShape } from 'zod';\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\n\nimport { myChartUserPassLogin, complete2faFlow } from '../../../scrapers/myChart/auth/login';\n\nimport {\n  ACCOUNT_PARAM,\n  CAPABILITIES,\n  MODE_PARAM,\n  MODEL_FACING_OUTPUT_MODE,\n  PATIENT_PARAM,\n  acceptsAccountParam,\n  acceptsModeParam,\n  acceptsPatientParam,\n  describeModeParam,\n  executeCapability,\n  isPublicCapability,\n  readAccountArg,\n  type Capability,\n  type CapabilityContext,\n  type CapabilityParam,\n  type StudyImagePayload,\n  type FilePayload,\n} from '../capabilities';\nimport { readLocalFile } from '../readLocalFile';\n\nimport { BACKEND_DESCRIPTION } from './secret-store';\nimport {\n  resolveSession,\n  isConnected,\n  clearSession,\n  adoptSession,\n  NeedsTwoFactorError,\n} from './session-manager';\nimport { SessionExpiredError } from '../../../scrapers/myChart/core/makeAuthenticatedRequest';\nimport {\n  accountId,\n  lookupAccount,\n  lookupIdentity,\n  readAccounts,\n  secretBackend,\n  readAccountPasskey,\n  removeAccount,\n  saveAccountPasskey,\n  saveAccountTotpSecret,\n  normalizeHostname,\n} from './credential-store';\nimport { addPending, takePending } from './pending-logins';\nimport { demoConflict, demoConflictMessage, saveAccount } from './demo-account';\nimport { CHECK_TOOL, DEADLINE_LABEL, checkPendingCall, runGuarded, unsettledCallOnAccount } from './pending-call';\nimport { releaseImportedCandidate, scanBrowserPasswords, takeImportedCandidates } from './browser-import';\nimport { FULL_DISK_ACCESS_STEPS, FULL_DISK_ACCESS_STEPS_OTHER_HOST } from './full-disk-access';\nimport type { McpHost } from './host';\nimport { decodeStudy, encodeFullResolutionJpegs, type DecodedStudy } from './imaging/download-study';\nimport { inlinePreviews } from './imaging/inline-preview';\nimport { saveStudyJpegs, type SavedStudy } from './imaging/save-study';\nimport { INLINE_BUDGET_BYTES } from './imaging/inline-preview';\nimport { saveFilePayload, saveTextFile } from './save-file';\nimport { reportToolCall } from './tool-telemetry';\nimport { withUpdateNotice } from './update-notice';\nimport { detailedMessage } from '../../../shared/detailedError';\n\n// Host tools build their schemas with this zod, so the SDK sees one zod instance.\nexport { z };\n\n// ── Result helpers ──────────────────────────────────────────────────────────\n\ntype ToolContent =\n  | { type: 'text'; text: string }\n  | { type: 'image'; data: string; mimeType: string };\nexport type ToolResult = { content: ToolContent[]; isError?: boolean };\n\nexport function jsonResult(data: unknown): ToolResult {\n  return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };\n}\n\nfunction textResult(text: string): ToolResult {\n  return { content: [{ type: 'text', text }] };\n}\n\nfunction errorResult(message: string): ToolResult {\n  return { content: [{ type: 'text', text: `Error: ${message}` }], isError: true };\n}\n\n/** Results built from a caught error, so `guarded` can report the error itself — stack and all. */\nconst caughtErrors = new WeakMap<ToolResult, unknown>();\n\nexport function caughtErrorResult(err: unknown): ToolResult {\n  const result = errorResult(detailedMessage(err));\n  caughtErrors.set(result, err);\n  return result;\n}\n\n// ── Tool metadata ───────────────────────────────────────────────────────────\n\n/**\n * The `title` + `annotations` half of a tool's registration.\n *\n * MCP carries a tool's human-readable label in two places: `Tool.title`, and\n * the older `ToolAnnotations.title`. Which one a client reads is up to the\n * client, so a tool that fills in only one shows up under its snake_case id in\n * whichever client reads the other. Every tool here — hand-written or derived\n * from `clients/shared/capabilities/` — goes through this so both are filled from one\n * string and neither can be forgotten. `tool-metadata.unit.test.ts` fails the\n * build if a registration skips it.\n */\nexport function toolMeta(\n  title: string,\n  hints: { readOnlyHint: boolean; destructiveHint?: boolean; openWorldHint: boolean },\n): { title: string; annotations: { title: string; readOnlyHint: boolean; destructiveHint?: boolean; openWorldHint: boolean } } {\n  return { title, annotations: { title, ...hints } };\n}\n\n// ── Recommending a passkey after login ─────────────────────────────────────\n\nconst PASSKEY_ALREADY_SAVED_MESSAGE =\n  'Account connected. A passkey for this login is already saved, so future sessions sign in ' +\n  'without the password or a 2FA code.';\n\n/**\n * What to say to a patient who has just logged in and has no passkey yet.\n *\n * Text for the model to relay, not an instruction to it: what the model should\n * *do* — offer, and register only on a yes — is in `setup_account`'s own\n * description, gated on `passkey_saved`. `message` fields elsewhere in\n * this server interpolate strings that came off the portal, so a description\n * that told the model to do what one said would make every one of them an\n * instruction channel.\n *\n * `BACKEND_DESCRIPTION[secretBackend()]` is the live answer, not the ideal one:\n * a locked keychain or a native module that failed to load downgrades storage\n * to a 0600 file, and a recommendation that promises the Keychain in that case\n * is a lie about where a P-256 private key to a medical record ends up.\n */\nfunction recommendPasskeyMessage(id: string): string {\n  return (\n    'Account connected — nothing further is required to read this chart. ' +\n    'STRONGLY RECOMMENDED, but only with the user\\'s explicit go-ahead: offer to set up a passkey now. ' +\n    'Tell them, in your own words, what it does and what it costs: every later session signs in with no ' +\n    `username, password or 2FA code; the key is stored in ${BACKEND_DESCRIPTION[secretBackend()]} and is ` +\n    'never sent to Anthropic; and it registers a new sign-in credential on their MyChart account that stays ' +\n    `valid on the portal until it is removed (\\`delete_passkey\\` with account \"${id}\", or ` +\n    'disconnect_account, which deletes the local copy). ' +\n    `If — and only if — they say yes, call register_passkey with account \"${id}\".`\n  );\n}\n\n/**\n * The `logged_in` payload shared by both password routes.\n *\n * **No passkey is registered here.** Registering one writes a new\n * authentication factor onto the patient's MyChart account, and its whole\n * purpose is that future sign-ins stop asking for the password and the 2FA\n * code — a deliberate change to the security posture of a medical record that\n * outlives the session and stays valid on the portal until someone deletes it.\n * That is the patient's call, not a side effect of \"log me in\". The payload\n * recommends it instead, and `register_passkey` runs only once they agree.\n */\nfunction loggedInResult(hostname: string, username: string): ToolResult {\n  const id = accountId({ hostname, username });\n  // Per (hostname, username): another user's passkey on the same hostname says\n  // nothing about this login.\n  const hasPasskey = !!readAccountPasskey(normalizeHostname(hostname), username);\n\n  return jsonResult({\n    state: 'logged_in',\n    account: id,\n    passkey_saved: hasPasskey,\n    passkey_storage: secretBackend(),\n    // The setup widget shows this to the patient verbatim when it offers a\n    // passkey, so it is the same live answer the model gets in `message`.\n    passkey_storage_description: BACKEND_DESCRIPTION[secretBackend()],\n    message: hasPasskey ? PASSKEY_ALREADY_SAVED_MESSAGE : recommendPasskeyMessage(id),\n  });\n}\n\n// ── Capability → MCP tool ──────────────────────────────────────────────────\n\n/**\n * The registry declares the account selector; this client makes it required.\n * Several accounts can be connected at once and the MCPB has no notion of a\n * \"current\" one, so every call has to name its account.\n */\nconst ACCOUNT_SCHEMA = z\n  .string()\n  .describe(\n    'Which connected MyChart account to use, as `username@hostname`. Get the exact value from the `account` field of list_accounts.',\n  );\n\n/**\n * Saving a media capability's output to disk, offered by this client only.\n *\n * Off by default so that looking at a scan stays read-only. The description\n * carries the whole contract, because it is all the model has to decide with:\n * show on request, save on a second, explicit one.\n */\nconst SAVE_PARAM = 'save_to_downloads';\nconst SAVE_SCHEMA = z\n  .boolean()\n  .describe(\n    \"Save the pictures to the user's Downloads folder, as full-resolution JPEGs in a folder named for the study, INSTEAD of showing them in the conversation. \" +\n      'Defaults to false — reduced-size previews are shown inline. With true, the result is a short confirmation of where the files went and no images. ' +\n      'Pass true only when the user asks to save, download, export, or keep a copy.',\n  )\n  .optional();\n\n/**\n * Putting a file capability's content into the result, offered by this\n * client only. The mirror image of `save_to_downloads`: a file is always\n * saved, and this asks for it to be readable here as well.\n */\nconst RETURN_PARAM = 'return_content';\nconst RETURN_SCHEMA = z\n  .boolean()\n  .describe(\n    \"Also put the file's content in the result so it can be read here: a text file as text (a picture is shown whenever it fits, with or without this). \" +\n      \"Defaults to false — the file is only saved to the user's Downloads folder and the result carries its path. \" +\n      'Only a file under about 800 KB fits under the 1MB tool-result cap; a larger one is saved and the result says so. ' +\n      'A PDF, and any other type no conversation can show, is saved and the result says so however this is set. ' +\n      'Pass true when the user asks what a document says.',\n  )\n  .optional();\n\n/** Translate one registry parameter into its zod equivalent. */\nfunction zodForParam(param: CapabilityParam): z.ZodType {\n  let schema: z.ZodType;\n  switch (param.type) {\n    case 'number': {\n      let n = z.number();\n      if (param.min !== undefined) n = n.min(param.min);\n      if (param.max !== undefined) n = n.max(param.max);\n      schema = n;\n      break;\n    }\n    case 'boolean':\n      schema = z.boolean();\n      break;\n    case 'string[]':\n      schema = z.array(z.string());\n      break;\n    case 'object':\n      schema = z.unknown();\n      break;\n    default:\n      schema = z.string();\n  }\n  schema = schema.describe(param.description);\n  return param.required ? schema : schema.optional();\n}\n\n/**\n * Per-account context for the capabilities that touch stored credentials\n * (TOTP setup/disable, passkey registration). Reads the MCPB's own credential\n * store; the registry never knows where any of it lives.\n */\nfunction contextFor(ref: string): CapabilityContext {\n  const account = lookupAccount(ref);\n  if (!account) return {};\n  const { hostname, username } = account;\n  return {\n    password: account.password,\n    totpSecret: account.totpSecret,\n    saveTotpSecret: (secret: string) => { saveAccountTotpSecret(hostname, username, secret); },\n    savePasskey: (serialized: string) => saveAccountPasskey(hostname, username, serialized),\n    readFile: readLocalFile,\n  };\n}\n\nconst SWITCH_PROXY_TOOL = 'switch_proxy_target';\n\n/**\n * Register one capability as an MCP tool. `kind` controls the annotations\n * Claude Desktop uses for grouping:\n *   - 'read'             → readOnlyHint: true\n *   - 'write' | 'account'→ readOnlyHint: false, destructiveHint: true\n *     (false for an `accountFree` write, which only sends)\n *\n * `account`-kind capabilities change how the patient signs in. The MCPB's only\n * surface is tools, so they are registered — but flagged destructive, the way\n * disconnect_account already is.\n *\n * A capability with no scraper is annotated read-only whatever its `kind` says,\n * because it changes nothing: `kind` describes the write it will be once\n * implemented, and warning a patient that a no-op is destructive is a warning\n * they learn to ignore.\n */\nfunction registerCapabilityTool(server: McpServer, capability: Capability): void {\n  const shape: Record<string, z.ZodType> = {};\n  // Everything that touches MyChart needs to be told which account. The\n  // `public` capabilities — the NPI Registry, the MyChart directory — do not,\n  // and asking for one would stop the model looking a provider up until the\n  // user had connected a chart it has nothing to do with.\n  if (acceptsAccountParam(capability)) shape[ACCOUNT_PARAM.name] = ACCOUNT_SCHEMA;\n  // Which patient the call is about, for accounts with proxy access to family\n  // members' charts. executeCapability asserts it — or the account holder,\n  // when omitted — before the capability runs, so a read refuses rather than\n  // silently returning the wrong family member's chart.\n  if (acceptsPatientParam(capability)) shape.patient = zodForParam(PATIENT_PARAM);\n  // How the payload is rendered. This client talks to a model, so the default\n  // is the concise projection; the model asks for `standard`, `json` or `raw`\n  // by name when it needs more.\n  if (acceptsModeParam(capability)) {\n    shape[MODE_PARAM.name] = z.string().describe(describeModeParam(MODEL_FACING_OUTPUT_MODE)).optional();\n  }\n  // Saving to disk is this client's own affair, not the shared capability's:\n  // the CLI already has `--output` and the mobile app has no filesystem the\n  // user browses. Keyed off the flag, so a second media capability gets it\n  // without being named here.\n  if (capability.rendersMedia) shape[SAVE_PARAM] = SAVE_SCHEMA;\n  if (capability.returnsFile) shape[RETURN_PARAM] = RETURN_SCHEMA;\n  for (const param of capability.params) shape[param.name] = zodForParam(param);\n\n  // An account-free write sends something to us; it changes nothing that exists.\n  const hints =\n    capability.kind === 'read' || capability.kind === 'public' || capability.notImplemented\n      ? { readOnlyHint: true, openWorldHint: true }\n      : { readOnlyHint: false, destructiveHint: !capability.accountFree, openWorldHint: true };\n\n  server.registerTool(\n    capability.id,\n    {\n      ...toolMeta(capability.title, hints),\n      description: capability.description,\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      inputSchema: shape as any,\n    },\n    async (args: Record<string, unknown>) => {\n      try {\n        // A public capability has no account to resolve and no credentials to\n        // read: `executeCapability` runs it with a null session.\n        const account = isPublicCapability(capability) ? '' : readAccountArg(args) ?? '';\n        // A parked read is still reading whichever patient is active; switching\n        // under it would hand the read the wrong chart.\n        const busy = capability.id === SWITCH_PROXY_TOOL ? unsettledCallOnAccount(account) : undefined;\n        if (busy) {\n          return errorResult(\n            `${busy.tool} (id \"${busy.id}\") is still reading this account's chart, so the active patient cannot ` +\n              `change yet. Wait for it with ${CHECK_TOOL} on that id (abandoning does not stop it), then switch. ` +\n              `${CHECK_TOOL} with no id lists everything pending.`,\n          );\n        }\n        const session = isPublicCapability(capability) ? null : await resolveSession(account);\n        // executeCapability, not capability.run, for EVERY capability: the\n        // active-patient assertion lives there. Branching to a direct\n        // `capability.run` for the imaging tool is how that one tool ended up\n        // returning a family member's X-rays.\n        const withMode =\n          acceptsModeParam(capability) && !args[MODE_PARAM.name]\n            ? { ...args, [MODE_PARAM.name]: MODEL_FACING_OUTPUT_MODE }\n            : args;\n        const payload = await executeCapability(\n          session,\n          capability.id,\n          withMode,\n          isPublicCapability(capability) ? undefined : contextFor(account),\n        );\n        // The flag, not the id — and it decides how to RENDER the payload,\n        // never whether the guard ran.\n        if (capability.rendersMedia) {\n          return await imagingResult(payload as StudyImagePayload, args[SAVE_PARAM] === true);\n        }\n        if (capability.returnsFile) {\n          return fileResult(payload as FilePayload, args[RETURN_PARAM] === true);\n        }\n        // The markdown modes come back as a string and go out as text; the\n        // data modes go out as JSON.\n        return typeof payload === 'string' ? textResult(payload) : jsonResult(payload);\n      } catch (err) {\n        if (err instanceof NeedsTwoFactorError) return needTwoFactorResult(err, capability.id);\n        if (err instanceof SessionExpiredError && !isPublicCapability(capability)) {\n          // The mid-request renewal is machine mode and never sends a code, so\n          // keeping this session would fail every later call the same way.\n          // Dropping it makes the next call sign in fresh, as a human.\n          clearSession(readAccountArg(args) ?? '');\n          const result = errorResult(\n            `${err.message} Call ${capability.id} again to sign in. If MyChart asks for a verification code, ` +\n              'that call sends one and returns a pending_id for complete_2fa.',\n          );\n          caughtErrors.set(result, err);\n          return result;\n        }\n        return caughtErrorResult(err);\n      }\n    },\n  );\n}\n\nfunction needTwoFactorResult(err: NeedsTwoFactorError, toolId: string): ToolResult {\n  return jsonResult({\n    state: 'need_2fa',\n    pending_id: err.pendingId,\n    account: err.account,\n    delivery: err.delivery ?? null,\n    message:\n      `To sign in, MyChart sent the user a verification code. Ask the user for it, call complete_2fa with this ` +\n      `pending_id and the code, then call ${toolId} again.`,\n  });\n}\n\n/** Image types Claude Desktop renders from an `image` content block. */\nconst INLINE_IMAGE_TYPES = new Set(['image/jpeg', 'image/png', 'image/gif', 'image/webp']);\n\n/**\n * A `returnsFile` capability's result: the file is always written to the\n * user's Downloads folder, and its content goes into the result as well only\n * when a model can actually read it there — an image whenever it fits, a text\n * file when `returnContent` asks. Whatever else the capability knew about the\n * file (an attachment's dcsId, a statement's date) rides in the summary; the\n * bytes never do.\n *\n * Takes the payload rather than running the capability, so it cannot become a\n * second path around the active-patient assertion. `baseDir` is the test seam.\n */\nexport function fileResult(payload: FilePayload, returnContent: boolean, baseDir?: string): ToolResult {\n  const { bytes, fileName, mimeType, ...rest } = payload;\n  const savedTo = baseDir === undefined ? saveFilePayload(payload) : saveFilePayload(payload, baseDir);\n\n  const isImage = INLINE_IMAGE_TYPES.has(mimeType);\n  const isText = mimeType.startsWith('text/');\n  const base64 = isImage || (returnContent && isText) ? Buffer.from(bytes).toString('base64') : '';\n  const fits = base64.length <= INLINE_BUDGET_BYTES;\n\n  let note: string | undefined;\n  let attached: ToolContent | undefined;\n  if (isImage) {\n    if (fits) attached = { type: 'image', data: base64, mimeType };\n    else note = 'The image is too large to show in the conversation; open the saved file to view it.';\n  } else if (!isText) {\n    // Those four image types and text are the whole of what survives the trip\n    // to a model. A PDF has no content block that carries it: MCP's embedded\n    // resource is the only legal shape, and Claude Desktop drops such a\n    // resource's `blob` on the way to the API while Claude Code diverts it to\n    // a temp file of its own. Saying so beats attaching bytes that vanish.\n    note = `Unsupported file type for the conversation (${mimeType}), so it was saved to the Downloads folder instead; open the saved file to read it.`;\n  } else if (!returnContent) {\n    note = `Open the saved file to read it, or call again with ${RETURN_PARAM}: true to read it here; its content is not in this result.`;\n  } else if (!fits) {\n    note = `The file is too large to return in the conversation (the cap is about ${Math.round(INLINE_BUDGET_BYTES / 1024)} KB); open the saved file to read it.`;\n  } else {\n    attached = { type: 'text', text: Buffer.from(bytes).toString('utf8') };\n  }\n\n  const content: ToolContent[] = [\n    {\n      type: 'text',\n      text: JSON.stringify(\n        { file_name: fileName, mime_type: mimeType, size_bytes: bytes.length, saved_to: savedTo, ...rest, ...(note ? { note } : {}) },\n        null,\n        2,\n      ),\n    },\n  ];\n  if (attached) content.push(attached);\n  return { content };\n}\n\n/**\n * `download_imaging_study` is the one capability whose payload isn't JSON: it\n * returns raw CLO bytes that this client decodes itself. One image content\n * block per picture, so Claude Desktop renders the actual X-ray instead of a\n * base64 blob buried in JSON text.\n *\n * The inline pictures are budgeted previews (`inline-preview.ts`): Claude\n * Desktop refuses a tool result over 1MB, and one full-size radiograph is\n * several times that. With `save_to_downloads`, the full-resolution JPEGs are\n * written to the user's Downloads folder instead of shown. Off by default:\n * looking at a scan should not litter someone's disk, and the previews are\n * what \"show me my X-ray\" asks for. Keeping a copy is a second, explicit request.\n *\n * Takes the payload rather than running the capability, so it cannot become a\n * second path around the active-patient assertion.\n */\nexport async function imagingResult(\n  payload: StudyImagePayload,\n  saveToDownloads: boolean,\n  /** Where a save lands; the test seam. The product always saves to Downloads. */\n  baseDir?: string,\n): Promise<ToolResult> {\n  const study = decodeStudy(payload);\n  const errors = [...study.errors];\n\n  // A failed save must never cost the user the pictures themselves: a\n  // read-only Downloads folder or a full disk falls through to the previews\n  // with the error reported beside them.\n  if (saveToDownloads && study.images.length > 0) {\n    try {\n      return savedResult(study, saveStudyJpegs(encodeFullResolutionJpegs(study), baseDir), errors);\n    } catch (err) {\n      errors.push(`Downloaded the images but could not save them to disk: ${detailedMessage(err)}`);\n    }\n  }\n\n  const preview = await inlinePreviews(study);\n  errors.push(...preview.errors);\n\n  const notes: string[] = [];\n  if (preview.downscaled) {\n    notes.push('The inline images are reduced-size previews so the result fits in the conversation.');\n  }\n  if (preview.images.length < study.images.length) {\n    notes.push(`Showing ${preview.images.length} of ${study.images.length} images, spread evenly across the study.`);\n  }\n  if (notes.length && !saveToDownloads) {\n    notes.push('Pass save_to_downloads: true to write every image at full resolution to the Downloads folder.');\n  }\n\n  const content: ToolContent[] = [\n    {\n      type: 'text',\n      text: JSON.stringify(\n        {\n          study_name: study.studyName,\n          total_images: study.totalImages,\n          returned: study.images.length,\n          shown_inline: preview.images.length,\n          ...(notes.length ? { note: notes.join(' ') } : {}),\n          ...(errors.length ? { errors } : {}),\n        },\n        null,\n        2,\n      ),\n    },\n  ];\n\n  for (const img of preview.images) {\n    content.push({ type: 'image', data: img.jpegBase64, mimeType: 'image/jpeg' });\n  }\n\n  if (study.images.length === 0) {\n    content.push({\n      type: 'text',\n      text:\n        'No images could be downloaded for this study. ' +\n        (errors.length\n          ? 'See the errors above.'\n          : 'The study may not expose viewable image data, or the viewer session expired — try get_imaging_results again for a fresh image_id.'),\n    });\n  }\n\n  return { content };\n}\n\nfunction savedResult(study: DecodedStudy, saved: SavedStudy, errors: string[]): ToolResult {\n  const count = saved.files.length;\n  const lines = [\n    `Successfully saved ${count} full-resolution image${count === 1 ? '' : 's'} from ${study.studyName} to ${saved.directory}`,\n  ];\n  if (errors.length) lines.push('', 'Errors:', ...errors.map((e) => `- ${e}`));\n  return textResult(lines.join('\\n'));\n}\n\n// ── Shared login path ───────────────────────────────────────────────────────\n\n/**\n * Log in with a password and save the account.\n *\n * Shared by `setup_account` (password typed in chat) and\n * `connect_imported_account` (password read from the browser store) so both\n * routes get identical 2FA handling, session adoption and the same\n * passkey recommendation — and so a fix to one is a fix to both.\n */\nasync function connectWithPassword(hostname: string, username: string, passwords: string[]): Promise<ToolResult> {\n  const conflict = demoConflict(hostname);\n  if (conflict.length) return jsonResult({ state: 'demo_conflict', accounts: conflict, message: demoConflictMessage(conflict) });\n  try {\n    // An imported login can carry one password per browser. Only a rejected\n    // password moves on to the next: 2FA or any other outcome means MyChart\n    // has accepted it or something else is wrong, and either way we stop.\n    let password = passwords[0]!;\n    let result = await myChartUserPassLogin({ hostname, user: username, pass: password });\n    for (const next of passwords.slice(1)) {\n      if (result.state !== 'invalid_login') break;\n      password = next;\n      result = await myChartUserPassLogin({ hostname, user: username, pass: password });\n    }\n\n    if (result.state === 'logged_in') {\n      saveAccount(hostname, username, password);\n      await adoptSession(hostname, username, result.mychartRequest);\n      return loggedInResult(hostname, username);\n    }\n\n    if (result.state === 'invalid_login') {\n      return jsonResult({\n        state: 'invalid_login',\n        account: normalizeHostname(hostname),\n        message: 'MyChart rejected those credentials. Double-check the username + password with the user and call setup_account again.',\n      });\n    }\n\n    if (result.state === 'need_2fa') {\n      const pending_id = addPending({\n        hostname: normalizeHostname(hostname),\n        username,\n        password,\n        mychartRequest: result.mychartRequest,\n      });\n      return jsonResult({\n        state: 'need_2fa',\n        pending_id,\n        account: normalizeHostname(hostname),\n        delivery: result.twoFaDelivery ?? null,\n        message: 'MyChart sent a 6-digit verification code. Ask the user for it, then call complete_2fa with this pending_id and the code.',\n      });\n    }\n\n    return jsonResult({\n      state: result.state,\n      account: normalizeHostname(hostname),\n      error: result.error ?? null,\n      message: `Login ended in unexpected state: ${result.state}. Tell the user and try again.`,\n    });\n  } catch (err) {\n    return caughtErrorResult(err);\n  }\n}\n\n// ── Parking long calls ─────────────────────────────────────────────────────\n\n/**\n * A server whose every registration runs under `runGuarded`. The declared\n * type is kept so handlers' argument types still come from their zod shapes;\n * every tool declares an inputSchema, so the first callback argument is the\n * arguments.\n */\nfunction guarded(server: McpServer): McpServer {\n  const registerTool = (name: string, config: unknown, handler: (...a: unknown[]) => ToolResult | Promise<ToolResult>) =>\n    server.registerTool(name, config as never, (...a: unknown[]) => {\n      const args = (a[0] ?? {}) as Record<string, unknown>;\n      // Reported from inside the guarded run, so a call that outlives the\n      // deadline is still reported — with its error — when it finishes.\n      return runGuarded(name, args, async () => {\n        try {\n          const result = await handler(...a);\n          reportToolCall(name, args, caughtErrors.get(result));\n          return result;\n        } catch (err) {\n          reportToolCall(name, args, err);\n          throw err;\n        }\n      });\n    });\n  return { registerTool } as unknown as McpServer;\n}\n\n/**\n * A server whose every result ends with the update notice, when there is one.\n * Outermost, so a parked call's result is stored without it and gets it once,\n * when check_pending_call hands it over.\n */\nfunction noticed(server: McpServer): McpServer {\n  const registerTool = (name: string, config: unknown, handler: (...a: unknown[]) => ToolResult | Promise<ToolResult>) =>\n    server.registerTool(name, config as never, async (...a: unknown[]) => withUpdateNotice(await handler(...a)));\n  return { registerTool } as unknown as McpServer;\n}\n\nfunction registerCheckPendingCall(server: McpServer): void {\n  server.registerTool(\n    CHECK_TOOL,\n    {\n      description:\n        `Collect the result of a tool call that ran past ${DEADLINE_LABEL} and was parked under an id, exactly as ` +\n        'the original tool would have returned it. A result that is ready is always handed over, and handed ' +\n        'over once — including under `wait: false`, so this is a collection, never a peek. When the call is ' +\n        `still running it waits up to ${DEADLINE_LABEL} for it, or with \\`wait: false\\` says so at once. Omit ` +\n        '`id` to list every pending call, which is what a refusal naming an id is talking about. `abandon: ' +\n        'true` stops waiting and discards the result — it does not stop the work, and anything already sent ' +\n        'still lands, so an abandoned call is still waitable here until its read finishes. Two clocks: a call ' +\n        'that has not finished is given up on 10 minutes after it started, releasing everything it held, and ' +\n        'a finished result then waits 10 more minutes to be collected.',\n      inputSchema: {\n        id: z.string().optional().describe('The id from the parking note. Omit to list every pending call.'),\n        wait: z\n          .boolean()\n          .optional()\n          .describe(\n            `Wait up to ${DEADLINE_LABEL} for the call to finish (default true). false reports at once instead — ` +\n              'but a result that is already ready is handed over, and consumed, either way.',\n          ),\n        abandon: z.boolean().optional().describe('Stop waiting and discard the result. Does not stop the work.'),\n      } satisfies ZodRawShape,\n      // Not read-only: abandon discards a result.\n      ...toolMeta('Check a pending tool call', { readOnlyHint: false, destructiveHint: false, openWorldHint: false }),\n    },\n    ({ id, wait, abandon }) =>\n      checkPendingCall({\n        ...(id !== undefined ? { id } : {}),\n        ...(wait !== undefined ? { wait } : {}),\n        ...(abandon !== undefined ? { abandon } : {}),\n      }),\n  );\n}\n\n// ── Public: register everything on the server ──────────────────────────────\n\nexport function registerAllTools(rawServer: McpServer, host: McpHost): void {\n  const withNotice = noticed(rawServer);\n  // check_pending_call collects parked results, so it is never itself parked.\n  registerCheckPendingCall(withNotice);\n  const server = guarded(withNotice);\n\n  // ── Meta tools ────────────────────────────────────────────────────────────\n\n  server.registerTool(\n    'list_accounts',\n    {\n      description: 'Returns every MyChart account whose credentials are already saved on this machine. Every entry in `accounts` is fully configured — pass its `account` id (`username@hostname`) as the `account` parameter to any data tool. NEVER ask the user for credentials again for an account that appears here, regardless of the `sessionActive` flag (sessions are created on-demand by the next tool call).',\n      inputSchema: {},\n      ...toolMeta('List configured accounts', { readOnlyHint: true, openWorldHint: false }),\n    },\n    () => {\n      const accounts = readAccounts();\n      const accountList = accounts.map(a => ({\n        account: accountId(a),\n        hostname: a.hostname,\n        username: a.username,\n        configured: true,\n        sessionActive: isConnected(accountId(a)),\n        hasPasskey: !!readAccountPasskey(a.hostname, a.username),\n        hasTotpSecret: !!a.totpSecret,\n      }));\n\n      const result: ToolResult = {\n        content: [\n          {\n            type: 'text',\n            // secretStorage says whether passwords, TOTP secrets and passkeys\n            // reached the OS keystore or fell back to a plaintext file —\n            // otherwise a locked keychain downgrades storage silently and\n            // nobody ever finds out.\n            text: JSON.stringify(\n              { count: accounts.length, secretStorage: secretBackend(), ...host.listAccountsExtra?.(), accounts: accountList },\n              null,\n              2,\n            ),\n          },\n        ],\n      };\n\n      if (accounts.length === 0) {\n        result.content.push({\n          type: 'text',\n          text: host.setupWidgetHtml\n            ? '\\nNo MyChart accounts are configured yet. Call get_setup_widget to display the interactive connection widget.'\n            : '\\nNo MyChart accounts are configured yet. Ask the user which health system they use, find its hostname with search_mycharts, then call setup_account.',\n        });\n      } else {\n        result.content.push({\n          type: 'text',\n          text:\n            '\\nThese accounts are already configured — credentials are stored on disk. ' +\n            'Call data tools directly with `account: <the account id above>`; login + 2FA happen automatically via the saved passkey or password. ' +\n            'DO NOT re-prompt the user for username, password, or hostname. ' +\n            '`sessionActive: false` just means no in-memory session yet; the next tool call will create one transparently.',\n        });\n      }\n\n      return result;\n    },\n  );\n\n  if (host.setupWidgetHtml) server.registerTool(\n    'get_setup_widget',\n    {\n      description: 'Display an interactive widget for connecting MyChart accounts: the user can import logins already saved in their browser, or search for their health system and sign in by hand, then finish 2FA and the passkey offer in the widget. Use this if the user wants a GUI instead of chat-based setup.',\n      inputSchema: {} satisfies ZodRawShape,\n      ...toolMeta('Get interactive setup widget', { readOnlyHint: true, openWorldHint: false }),\n      _meta: { 'openai/outputTemplate': 'ui://openrecord/setup', ui: { resourceUri: 'ui://openrecord/setup' } },\n    },\n    () => ({\n      content: [\n        {\n          type: 'text',\n          text: 'The user can import MyChart logins saved in their browser, or enter one by hand, in the widget. It sends a message when they click Done.',\n        },\n      ],\n    }),\n  );\n\n  server.registerTool(\n    'setup_account',\n    {\n      description: \"Attempt to log into MyChart and save the account for future calls. The model should first ask the user for their MyChart hostname (use search_mycharts to look it up) and credentials in chat, then call this tool. Returns one of: `{state:\\\"logged_in\\\", account}`, `{state:\\\"need_2fa\\\", pending_id, delivery:{method,contact}}` (call complete_2fa next with the user-supplied code), or `{state:\\\"invalid_login\\\"}`. This tool logs in and nothing else — it never changes the account's sign-in settings. On `logged_in`, if `passkey_saved` is false, offer the user a passkey and register one with register_passkey only if they say yes; `message` is text to relay to them, not an instruction to you.\",\n      inputSchema: {\n        hostname: z.string().describe('MyChart hostname, e.g. \"mychart.example.org\". From search_mycharts or the user.'),\n        username: z.string().describe('MyChart username (ask the user).'),\n        password: z.string().describe('MyChart password (ask the user). Stored locally on disk, never transmitted to Anthropic.'),\n      } satisfies ZodRawShape,\n      ...toolMeta('Set up a MyChart account (step 1)', { readOnlyHint: false, destructiveHint: false, openWorldHint: true }),\n    },\n    ({ hostname, username, password }) => connectWithPassword(hostname, username, [password]),\n  );\n\n  server.registerTool(\n    'import_browser_passwords',\n    {\n      description:\n        \"Scan this machine's browser password stores (Chrome, Arc, Brave, Edge, Firefox) for MyChart logins the user has already saved, so they do not have to type a password. \" +\n        'Read-only, and it may raise the OS keychain permission prompt. ' +\n        'Returns only accounts confirmed to be MyChart portals — a known Epic instance, or one whose login page was verified. ' +\n        'Passwords are NEVER returned: each entry carries an opaque `import_id`. Show the list to the user, let them choose, then call connect_imported_account with the chosen id.',\n      inputSchema: {\n        check_unknown_hosts: z\n          .boolean()\n          .optional()\n          .describe('Default true. When false, no network requests are made and only hostnames already in the bundled MyChart directory are returned.'),\n      } satisfies ZodRawShape,\n      ...toolMeta('Find MyChart logins saved in the browser', { readOnlyHint: true, openWorldHint: true }),\n    },\n    async ({ check_unknown_hosts }) => {\n      try {\n        const scan = await scanBrowserPasswords({ probeUnknownHosts: check_unknown_hosts ?? true });\n\n        if (!scan.supported) {\n          return jsonResult({ supported: false, message: 'Reading browser password stores is only supported on macOS and Windows.' });\n        }\n        // Ahead of the empty case: with a browser blocked, \"none found\" is not known to be true.\n        const blockedNote = scan.blocked_browsers.length\n          ? `macOS blocked reading saved passwords from ${scan.blocked_browsers.join(', ')}, so any MyChart logins there are missing. ` +\n            `To include them, the user must: ${(host.app === 'mcpb' ? FULL_DISK_ACCESS_STEPS : FULL_DISK_ACCESS_STEPS_OTHER_HOST).join(' ')} Relay these steps to the user; you cannot change this setting for them.`\n          : '';\n        if (scan.accounts.length === 0) {\n          return jsonResult({\n            ...scan,\n            message: blockedNote ||\n              \"No saved MyChart logins were confirmed in this machine's browsers. Set the account up with setup_account instead. \" +\n              'If the user believes they have one saved, their portal may have been unreachable just now — this tool can be run again later.',\n          });\n        }\n\n        return jsonResult({\n          ...scan,\n          message:\n            'Show the user these accounts and ask which to connect. Call connect_imported_account with the chosen import_id. ' +\n            'Ids expire 10 minutes after the scan; run this tool again if that happens.' +\n            (blockedNote ? ` ${blockedNote}` : ''),\n        });\n      } catch (err) {\n        return caughtErrorResult(err);\n      }\n    },\n  );\n\n  server.registerTool(\n    'connect_imported_account',\n    {\n      description:\n        'Log into a MyChart account discovered by import_browser_passwords, using the password already saved in the browser, and save it for future calls. ' +\n        'Only call this for an entry the user explicitly chose. When several browsers saved different passwords for the login, each is tried until one is accepted. ' +\n        'Same outcomes as setup_account: `logged_in`, `need_2fa` (call complete_2fa next), or `invalid_login` (every saved password is stale — ask the user for the current one and use setup_account).',\n      inputSchema: {\n        import_id: z.string().describe('The import_id of the chosen entry from import_browser_passwords.'),\n      } satisfies ZodRawShape,\n      ...toolMeta('Connect an account found in the browser', { readOnlyHint: false, destructiveHint: false, openWorldHint: true }),\n    },\n    async ({ import_id }) => {\n      const candidates = takeImportedCandidates(import_id);\n      const candidate = candidates?.[0];\n      if (!candidates || !candidate) {\n        return errorResult('That import_id is unknown or has expired (10-minute TTL). Call import_browser_passwords again.');\n      }\n      if (!candidate.user) {\n        return errorResult(`The saved credential for ${candidate.hostname} has no username. Ask the user for it and call setup_account.`);\n      }\n\n      const result = await connectWithPassword(candidate.hostname, candidate.user, candidates.map((c) => c.pass!));\n      // Keep the credential only while it is still needed: a 2FA flow has\n      // already copied it into the pending-login record.\n      releaseImportedCandidate(import_id);\n      return result;\n    },\n  );\n\n  server.registerTool(\n    'complete_2fa',\n    {\n      description: 'Finish a sign-in that returned `need_2fa` — from setup_account, connect_imported_account, or a data tool that had to sign in. Pass the `pending_id` from that response and the 6-digit code the user gave you. After a data tool\\'s `need_2fa`, call that data tool again once this succeeds. On success the account is saved and immediately usable. Like setup_account it changes no sign-in settings; on `logged_in`, treat `passkey_saved` and `message` exactly as you would from setup_account.',\n      inputSchema: {\n        pending_id: z.string().describe('The pending_id from the response whose state was need_2fa.'),\n        code: z.string().describe('6-digit code the user read from email/SMS/authenticator.'),\n      } satisfies ZodRawShape,\n      ...toolMeta('Finish 2FA (step 2)', { readOnlyHint: false, destructiveHint: false, openWorldHint: true }),\n    },\n    async ({ pending_id, code }) => {\n      const pending = takePending(pending_id);\n      if (!pending) {\n        return errorResult('pending_id is unknown or has expired (10-minute TTL). Call setup_account again to start over.');\n      }\n      try {\n        const trimmed = code.trim();\n        const twoFa = await complete2faFlow({\n          mychartRequest: pending.mychartRequest,\n          code: trimmed,\n          isTOTP: false,\n        });\n        if (twoFa.state === 'logged_in') {\n          saveAccount(pending.hostname, pending.username, pending.password);\n          await adoptSession(pending.hostname, pending.username, twoFa.mychartRequest);\n          return loggedInResult(pending.hostname, pending.username);\n        }\n        if (twoFa.state === 'invalid_2fa') {\n          // Re-stash so the agent can ask the user again without restarting.\n          const newPendingId = addPending({\n            hostname: pending.hostname,\n            username: pending.username,\n            password: pending.password,\n            mychartRequest: pending.mychartRequest,\n          });\n          return jsonResult({\n            state: 'invalid_2fa',\n            pending_id: newPendingId,\n            account: pending.hostname,\n            message: 'That code was rejected. Ask the user for the code again and call complete_2fa with this new pending_id.',\n          });\n        }\n        return jsonResult({\n          state: twoFa.state,\n          account: pending.hostname,\n          message: `Unexpected 2FA result: ${twoFa.state}. Tell the user and call setup_account again.`,\n        });\n      } catch (err) {\n        return caughtErrorResult(err);\n      }\n    },\n  );\n\n  // register_passkey is NOT declared here — it is a capability\n  // (`clients/shared/capabilities/`) so the CLI and the mobile app expose the same\n  // thing, and it is registered by the loop at the bottom of this function.\n\n  server.registerTool(\n    'disconnect_account',\n    {\n      description: 'Forget a saved MyChart account. Deletes the local credentials, passkey, and cached session for this login only — other usernames saved for the same hostname are untouched.',\n      inputSchema: {\n        account: z.string().describe('Account id from list_accounts (`username@hostname`).'),\n      } satisfies ZodRawShape,\n      ...toolMeta('Forget a MyChart account', { readOnlyHint: false, destructiveHint: true, openWorldHint: false }),\n    },\n    ({ account }) => {\n      const match = lookupIdentity(account);\n      if (!match) return textResult(`No saved account for ${account}.`);\n      const id = accountId(match);\n      clearSession(id);\n      removeAccount(match.hostname, match.username);\n      return textResult(`Forgot ${id}. Credentials, passkey, and session cache have been deleted from disk.`);\n    },\n  );\n\n  // The model's own export: whatever it has written from the chart — a summary,\n  // a CSV of lab values, a timeline — as a file the user keeps. Text only, into\n  // Downloads, never overwriting; the chart reads themselves stay behind the\n  // capability tools' patient assertion.\n  server.registerTool(\n    'save_file',\n    {\n      description:\n        \"Save text you have written to a file in the user's Downloads folder — use it when the user asks to export, \" +\n        'download or save something: a summary of their records, a CSV of lab results, a medication list, a ' +\n        'timeline. Gather the data with the other tools first, then write the whole file content here. Any text ' +\n        'format works (.md, .csv, .txt, .json, .html); without an extension the file is saved as Markdown. An ' +\n        'existing file is never overwritten — a second copy gets `-2`. Returns the saved path.',\n      inputSchema: {\n        file_name: z.string().min(1).describe('File name with extension, e.g. \"lab-history.csv\". No folders.'),\n        content: z.string().describe('The complete file content.'),\n      } satisfies ZodRawShape,\n      ...toolMeta('Save a file to Downloads', { readOnlyHint: false, destructiveHint: false, openWorldHint: false }),\n    },\n    ({ file_name, content }) => {\n      try {\n        const savedTo = saveTextFile(file_name, content);\n        return jsonResult({ saved_to: savedTo, size_bytes: Buffer.byteLength(content) });\n      } catch (err) {\n        return caughtErrorResult(err);\n      }\n    },\n  );\n\n  host.registerExtraTools?.(server);\n\n  // ── Capability tools ──────────────────────────────────────────────────────\n  //\n  // Derived, not listed. `clients/shared/capabilities/` is the single source of\n  // truth for what OpenRecord can do with a MyChart account; every entry there\n  // becomes a tool here automatically, so this extension can never quietly\n  // support less than the CLI or the mobile app does.\n\n  for (const capability of CAPABILITIES) {\n    registerCapabilityTool(server, capability);\n  }\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport { MYCHART_MEDIA_ORIGIN } from '../../../scrapers/list-all-mycharts/directory';\n\nexport const SETUP_UI_MIME_TYPE = 'text/html;profile=mcp-app';\n\n/**\n * `_meta.ui` for the ui://openrecord/setup resource.\n *\n * The host renders the widget in a sandboxed iframe whose CSP it builds from\n * this declaration, and every directive defaults to `'none'` — a resource that\n * declares nothing gets `img-src 'none'`, which is why the health-system logos\n * rendered as broken images. `resourceDomains` maps to `img-src`, so it has to\n * name Epic's media host (every directory logo) and `data:` (the bundled SVG\n * the fake-mychart sandbox entry carries inline).\n */\nexport const SETUP_UI_RESOURCE_META = {\n  ui: { csp: { resourceDomains: [MYCHART_MEDIA_ORIGIN, 'data:'] } },\n};\n\n/**\n * The setup widget HTML, served as the ui://openrecord/setup resource: the\n * bundled React app (src/setup-widget) inlined into one self-contained page.\n */\nexport function buildSetupUiHtml(widget: { js: string; css: string }): string {\n  // An inline script ends at the first `</script`, even inside a JS string.\n  // `<\\/script` means the same thing everywhere it can appear in JS.\n  const js = widget.js.replace(/<\\/script/gi, '<\\\\/script');\n  return `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title>Connect MyChart</title>\n  <style>${widget.css}</style>\n</head>\n<body>\n  <div id=\"root\"></div>\n  <script>${js}</script>\n</body>\n</html>\n`;\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * Keeps `search_mycharts` on a recent run of the refresh behind the bundled\n * `mychart-instances.json`, rather than on the one from this extension's\n * release.\n *\n * A run is minutes of requests, so it never happens inside a search: at\n * startup the last run's result is loaded from disk, and if it is older than\n * a month (or there is none) a new run starts in the background. Until it\n * finishes, search answers from what it already had.\n */\n\nimport * as fs from 'fs';\nimport * as os from 'os';\nimport * as path from 'path';\n\nimport { bundledDirectoryFingerprint, type MyChartInstanceSeed } from '../../../scrapers/list-all-mycharts/directory';\nimport {\n  DIRECTORY_REFRESH_INTERVAL_MS,\n  refreshMyChartDirectory,\n  useRefreshedMyCharts,\n} from '../../../scrapers/list-all-mycharts/searchDirectory';\n\nconst CACHE_PATH = path.join(os.homedir(), '.openrecord-mcpb', 'mychart-instances.json');\n\ninterface SavedRefresh {\n  /** `bundledDirectoryFingerprint()` of the release this run was made beside. */\n  bundled: string;\n  refreshedAt: string;\n  instances: MyChartInstanceSeed[];\n}\n\n/**\n * How often to ask whether the saved run is stale. `setTimeout` can't wait a\n * month — anything over ~24.8 days overflows and fires at once, which would\n * loop the crawl — so a daily check decides instead.\n */\nconst CHECK_EVERY_MS = 24 * 60 * 60 * 1000;\n\n/**\n * Load the saved run, then refresh whenever it is over a month old: now, if it\n * already is, and otherwise when a daily check finds it so. The runs happen in\n * the background and never throw — a refresh that fails leaves search on the\n * list it had, and the next daily check tries again.\n */\nexport function startDirectoryRefresh(cachePath: string = CACHE_PATH): void {\n  let refreshedAt = 0;\n  try {\n    const saved = JSON.parse(fs.readFileSync(cachePath, 'utf8')) as SavedRefresh;\n    // A run saved beside an older release is older than the list this release\n    // ships, so it is ignored and refreshed rather than searched.\n    if (saved.bundled === bundledDirectoryFingerprint() && saved.instances.length > 0) {\n      useRefreshedMyCharts(saved.instances, saved.refreshedAt);\n      refreshedAt = Date.parse(saved.refreshedAt) || 0;\n    }\n  } catch {\n    // No saved run yet, or an unreadable one: refresh.\n  }\n\n  let running = false;\n  const refreshIfStale = async () => {\n    if (running || Date.now() - refreshedAt < DIRECTORY_REFRESH_INTERVAL_MS) return;\n    running = true;\n    try {\n      const instances = await refreshMyChartDirectory();\n      if (instances.length === 0) return;\n      refreshedAt = Date.now();\n      fs.mkdirSync(path.dirname(cachePath), { recursive: true });\n      const saved: SavedRefresh = {\n        bundled: bundledDirectoryFingerprint(),\n        refreshedAt: new Date(refreshedAt).toISOString(),\n        instances,\n      };\n      fs.writeFileSync(cachePath, JSON.stringify(saved));\n    } catch {\n      // Offline or Epic is down: keep searching what we have, try tomorrow.\n    } finally {\n      running = false;\n    }\n  };\n  void refreshIfStale();\n  setInterval(() => void refreshIfStale(), CHECK_EVERY_MS).unref();\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\nimport type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\n\n/**\n * What differs between the clients that run this MCP server: the Claude Desktop\n * extension (`mcpb`) and `mychart-cli mcp` (`cli-mcp`). Everything else — every\n * tool, the saved accounts, sign-in — is the same server.\n */\nexport interface McpHost {\n  /** Telemetry app name and Sentry release prefix. */\n  app: 'mcpb' | 'cli-mcp';\n  version: string;\n  /** The setup widget page, served as an MCP Apps resource. Without it, setup is chat-only. */\n  setupWidgetHtml?: string;\n  /** Tools only this host has, registered after the account tools and before the capability tools. */\n  registerExtraTools?: (server: McpServer) => void;\n  /** Extra top-level fields for list_accounts' result. */\n  listAccountsExtra?: () => Record<string, unknown>;\n}\n\n/** Which release the update notice compares against. */\nexport function updateTarget(host: McpHost): 'mcpb' | 'cli' {\n  return host.app === 'mcpb' ? 'mcpb' : 'cli';\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n/**\n * OpenRecord's stdio MCP server — the same server for every host: the Claude\n * Desktop extension's `index.ts` and `mychart-cli mcp`. What differs between\n * them is the `McpHost` each passes in. Tools are in ./tools.ts, sessions in\n * ./session-manager.ts.\n *\n * No configuration is required: all auth happens in chat through the\n * setup_account tool (or the setup widget, on hosts that have it).\n */\n\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { setLogSink } from '../../../shared/logger';\nimport { setTelemetryApp } from '../../../shared/telemetry';\nimport { registerAllTools } from './tools';\nimport { clearAllSessions } from './session-manager';\nimport { SETUP_UI_MIME_TYPE, SETUP_UI_RESOURCE_META } from './ui';\nimport { startDirectoryRefresh } from './directory-refresh';\nimport { startUpdateCheck } from './update-notice';\nimport { updateTarget, type McpHost } from './host';\n\n/**\n * Stdio MCP transport requires stdout be ONLY JSON-RPC messages — anything else\n * corrupts the framing and the host reports \"Unexpected token X is not valid\n * JSON\". Every entry point calls this first, so the scraper logger singleton\n * writes to stderr. (The scrapers also avoid `console.*` directly; this is\n * belt-and-suspenders against any third-party module that doesn't.)\n */\nexport function routeLogsToStderr(): void {\n  setLogSink((level, args) => {\n    process.stderr.write(`[openrecord:${level}] ` + args.map(a => typeof a === 'string' ? a : JSON.stringify(a)).join(' ') + '\\n');\n  });\n}\n\nconst SETUP_WIDGET_SECTION =\n  '\\n\\n' +\n  'Interactive Setup (Recommended for first-time setup):' +\n  '\\n  If the user has no configured account, call get_setup_widget() to display the ' +\n  '  interactive login widget inline. This is the easiest way for users to enter ' +\n  '  their MyChart hostname and sign in.';\n\nfunction instructions(host: McpHost): string {\n  return (\n    'OpenRecord connects this conversation to the user\\'s MyChart patient portal. ' +\n    '\\n\\n' +\n    'EVERY data tool requires an `account` parameter — the MyChart hostname returned by ' +\n    'list_accounts. If you do not already know which account to use, call list_accounts ' +\n    'first. Multiple accounts can be active at once; just pass a different `account` per call.' +\n    '\\n\\n' +\n    'Family records (proxy access): some MyChart accounts can also read family members\\' charts ' +\n    '(e.g. a parent reading a child\\'s). Data tools always read whichever patient record is ACTIVE ' +\n    'on MyChart\\'s server. Call list_proxy_targets to see every accessible record and which is ' +\n    'active; call switch_proxy_target to change it before reading a family member\\'s data, and ' +\n    'switch back to patient \"me\" when done. Data tools accept an optional `patient` parameter to ' +\n    'assert who a call is about — they refuse with instructions, rather than silently reading the ' +\n    'wrong person\\'s chart, if the active record doesn\\'t match.' +\n    '\\n\\n' +\n    'CRITICAL: If list_accounts returns any entries, those accounts are ALREADY SET UP. ' +\n    'Do NOT ask the user for hostname, username, or password again. Just call the relevant ' +\n    'data tool (get_profile, get_medications, etc.) with `account: <hostname>` and the server ' +\n    'will silently re-authenticate using the saved passkey or password — no user interaction ' +\n    'required. The `sessionActive: false` flag means \"no live in-memory session\"; it does NOT ' +\n    'mean the account needs to be reconfigured. Only run the setup flow below if list_accounts ' +\n    'returns `count: 0` or if a data tool says the saved password was rejected.' +\n    '\\n\\n' +\n    'If a data tool returns `state: \"need_2fa\"`, signing in made MyChart text or email the user a ' +\n    'verification code. Ask the user for it, call complete_2fa(pending_id, code), then repeat the ' +\n    'data tool call. Do not call setup_account for this — the account is already saved.' +\n    (host.setupWidgetHtml ? SETUP_WIDGET_SECTION : '') +\n    '\\n\\n' +\n    'Manual Setup Flow (only when list_accounts returns count: 0):' +\n    '\\n  1. Ask the user for their health system name. Call search_mycharts(query) to find the hostname.' +\n    '\\n  2. Ask the user for their MyChart username and password.' +\n    '\\n  3. Call setup_account(hostname, username, password). On `need_2fa`, ask the user for the ' +\n    '     6-digit code, then call complete_2fa(pending_id, code). On `invalid_login`, ask again.' +\n    '\\n  4. On `logged_in`, do what that result\\'s `message` field says — it recommends a passkey ' +\n    '     and explains what one changes. NEVER call register_passkey (or any other tool that ' +\n    '     alters how an account signs in) unless the user has explicitly said yes to it.' +\n    '\\n  5. Use the data tools (get_medications, get_lab_results, send_message, etc.) with the ' +\n    '     `account` from the previous step.' +\n    '\\n\\n' +\n    'Long tool calls: a call that has not answered after 2.5 minutes keeps running in the background ' +\n    'and returns a note carrying an id instead of its result; collect the result with ' +\n    'check_pending_call(id). Never repeat that call with the same arguments while it is pending — it ' +\n    'is already running and would be refused, and a tool that sends something would send it twice. ' +\n    'Other tools are unaffected, except switch_proxy_target on that account, which waits for the read.' +\n    '\\n\\n' +\n    'Public information (no account): get_hospital_info(hostname) returns what a MyChart ' +\n    'instance publishes about its health system to anyone — support phone lines, the bookable ' +\n    'provider directory with clinic addresses, and billing entities. Use search_mycharts to find ' +\n    'the hostname first. It never returns a fax number or an accepted-insurance list; MyChart ' +\n    'does not publish those.' +\n    '\\n\\n' +\n    'Missing features: if the user asks for something about their health records or MyChart that no ' +\n    'OpenRecord tool can do, say OpenRecord can\\'t do that yet, say the developers would love to hear ' +\n    'what they\\'re trying to do, and offer to send them a short description with send_feature_request. ' +\n    'Give three choices: (1) send it with their name, email and health system so the developers can ' +\n    'reply, the default; (2) send it without their name, email or health system; (3) send nothing. For ' +\n    'choice 1, ask the user for their name and email rather than reading them from MyChart, and use the ' +\n    'health system of the account they are using; for choice 2, pass only `request`. Describe the ' +\n    'feature, not their chart: leave out diagnoses, medications, results and dates of care unless the ' +\n    'user asks to include them. Never send one without their answer.'\n  );\n}\n\n/** Serve OpenRecord over stdio until the client closes it. */\nexport async function startServer(host: McpHost): Promise<void> {\n  setTelemetryApp(host.app, host.version);\n  const server = new McpServer(\n    { name: 'openrecord', version: host.version },\n    { capabilities: { tools: {}, resources: {} }, instructions: instructions(host) },\n  );\n\n  const setupHtml = host.setupWidgetHtml;\n  if (setupHtml) {\n    // The CSP goes on both the listing (what the host reviews when it connects)\n    // and the content item (what it applies when it renders); the content item wins.\n    server.registerResource(\n      'setup-ui',\n      'ui://openrecord/setup',\n      {\n        title: 'Connect MyChart (Setup Widget)',\n        mimeType: SETUP_UI_MIME_TYPE,\n        _meta: SETUP_UI_RESOURCE_META,\n      },\n      () => ({\n        contents: [{\n          uri: 'ui://openrecord/setup',\n          mimeType: SETUP_UI_MIME_TYPE,\n          text: setupHtml,\n          _meta: SETUP_UI_RESOURCE_META,\n        }],\n      }),\n    );\n  }\n\n  registerAllTools(server, host);\n\n  await server.connect(new StdioServerTransport());\n  startDirectoryRefresh();\n  void startUpdateCheck(updateTarget(host), host.version);\n\n  // Clean up keepalive timers when the client closes stdio.\n  const shutdown = () => {\n    clearAllSessions();\n    process.exit(0);\n  };\n  process.on('SIGINT', shutdown);\n  process.on('SIGTERM', shutdown);\n  process.stdin.on('close', shutdown);\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n// `mychart-cli mcp` — OpenRecord's MCP server over stdio, for any MCP client\n// (Claude Code, Cursor, VS Code, …). The same server the Claude Desktop\n// extension runs, minus its setup widget and Google Calendar tools; accounts\n// are shared with the extension. See docs/mcp.md.\n\nimport { routeLogsToStderr, startServer } from '../../shared/mcp-server/server';\nimport { version } from '../package.json';\n\nexport function runMcp(): void {\n  routeLogsToStderr();\n  startServer({ app: 'cli-mcp', version }).catch((err: unknown) => {\n    console.error('[openrecord] fatal:', err);\n    process.exit(1);\n  });\n}\n","// Copyright (c) Fan Pier Labs. Use of this software is governed by the LICENSE file in the project root.\n\n// CLI entry point with subcommand dispatch. This is what the published binary\n// is built from (see tsup.config.ts).\n// Usage:\n//   bun run cli mychart [flags]   — MyChart scraper (default if no subcommand)\n//   bun run cli mcp               — the MCP server over stdio\n\nimport { runCli } from './cli';\nimport { runMcp } from './mcp';\n\nconst subcommand = process.argv[2];\n\nif (subcommand === 'mcp') {\n  runMcp();\n} else {\n  // If the user typed \"bun run cli mychart ...\", strip \"mychart\" before runCli parses argv.\n  if (subcommand === 'mychart') {\n    process.argv.splice(2, 1);\n  }\n  void runCli();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,mEAAAA,UAAAC,SAAA;AAAA,QAAIC,UAAO,OAAOA,WAAQ,cAAYA,UAAO,CAAC;AAAE,QAAI,sBAAoB;AAAK,QAAM,YAAU;AAAY,QAAM,YAAU;AAAW,QAAM,OAAK;AAAE,QAAM,YAAU;AAAE,QAAM,aAAW;AAAI,QAAM,cAAY;AAAI,QAAM,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A,IACR,OAAS;AAAA,IACT,KAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,SAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,SAAW;AAAA,IACX,MAAQ;AAAA,IACR,OAAS;AAAA,IACT,KAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,SAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,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Q,CAAC,EAAE,MAAM,CAAC,QAAiB;AAC/D,YAAQ,MAAM,uBAAuB,GAAG;AACxC,YAAQ,KAAK,CAAC;AAAA,EAChB,CAAC;AACH;;;ACLA,IAAM,aAAa,QAAQ,KAAK,CAAC;AAEjC,IAAI,eAAe,OAAO;AACxB,SAAO;AACT,OAAO;AAEL,MAAI,eAAe,WAAW;AAC5B,YAAQ,KAAK,OAAO,GAAG,CAAC;AAAA,EAC1B;AACA,OAAK,OAAO;AACd;","names":["exports","module","Module","v","n","s","n2","array","str","i","p","result","tempPtr","err","row","path","crypto","fs","preRun","postRun","e","file","resolve","date","num","time","start","u","mode","c","ret","wasmExports","exports","s","_a","c","i","str","a","x","UsedValueState","exports","Scope","_b","_a","s","c","exports","error","n","i","e","_a","_b","c","node","x","y","hash","exports","self","str","f","x","mergeValues","p","Type","mode","exports","exports","error","i","exports","x","exports","self","exports","_a","DataType","exports","t","i","exports","exports","p","context","u","i","exports","validate","_a","validateAsync","e","result","self","exports","exports","module","a","i","exports","module","i","str","limit","exports","normalize","p","anchor","exports","self","t","exports","exports","_a","exports","validate","e","resolveRef","resolve","p","exports","module","exports","module","i","input","address","str","path","output","isIP","re","hex","component","exports","module","component","path","http","https","exports","module","normalize","parse","resolve","relative","component","s","isIP","url","e","exports","exports","str","o","s","_a","_b","Ajv","meta","v","e","p","t","i","format","text","log","logger","exports","self","v","exports","e","_a","exports","error","exports","error","exports","str","exports","error","exports","error","u","exports","error","exports","error","exports","error","exports","exports","error","i","t","exports","error","exports","error","i","v","exports","exports","error","i","exports","i","l","exports","exports","error","exports","error","i","exports","exports","error","exports","error","p","exports","p","exports","p","exports","exports","exports","error","i","exports","i","exports","error","exports","exports","exports","error","self","format","exports","format","exports","exports","exports","DiscrError","exports","error","i","_a","required","exports","exports","module","Ajv","v","exports","module","validate","exports","date","str","time","e","error","exports","self","format","list","mode","f","fs","_a","_b","module","exports","fs","path","url","limit","resolve","g","url","limiter","m","url","init","url","init","hostname","input","c","request","error","config","mountPath","url","text","hash","i","custom","v","a","url","hostname","url","a","cheerio","s","a","file","config","url","error","text","e","version","failure","email","cheerio","v","isAbsolute","text","hostname","import_crypto","b","str","header","input","x","y","i","crypto","json","path","hostname","url","input","match","v","m","url","a","hostname","c","error","ok","e","text","str","success","import_fs","import_crypto","import_fs","import_os","path","import_util","path","toBuffer","relative","account","decipher","error","row","toBuffer","text","import_crypto","import_fs","import_os","path","i","node","hash","decipher","meta","toBuffer","check","row","node","a","directory","login","import_crypto","MAX_REDIRECTS","map","url","hostname","match","a","directory","error","request","e","start","elapsed","globalKey","error","REDIRECT_STATUSES","config","text","list","e","file","s","c","n","p","text","d","path","text","json","result","list","v","makeApiRequest","path","text","json","result","getViewerWprId","v","getComposeId","removeComposeId","record","url","text","config","path","request","failure","result","r","v","match","directory","s","a","m","listing","c","r","cheerio","cheerio","a","header","error","body","result","json","match","a","targets","error","result","describe","t","partial","refreshed","record","error","fs","path","hostname","fs","path","hostname","json","result","hostname","result","error","record","t","url","check","text","v","row","c","r","child","mode","pending","result","check","v","num","n","m","v","header","c","r","p","m","e","d","n","s","r","fs","p","g","own","a","d","p","n","MAX_PAGES","fs","r","g","i","t","d","s","m","path","record","g","path","request","failure","request","request","n","provider","result","path","visit","t","i","d","p","v","c","a","bucket","row","VISITS_PAGE","result","VISITS_PAGE","path","result","request","cheerio","config","ok","url","c","r","s","c","m","h","p","request","d","g","a","t","r","i","failure","result","fs","path","r","i","v","s","u","d","visit","meta","p","a","v","str","members","text","url","p","study","s","a","match","o","i","format","result","s","concurrency","safeName","CLOCLHAAR_MAGIC","i","import_js_base64","request","num","result","directory","p","m","a","PAGE_SIZE","MAX_PAGES","failure","header","match","request","config","fail","named","request","a","i","r","file","error","failure","rest","r","text","normalize","text","nameTokens","t","partial","r","match","t","request","r","result","date","cheerio","match","path","context","amount","hostname","scalarOrNull","row","match","a","record","i","r","p","g","c","v","s","path","context","account","row","provider","i","failure","path","match","statement","path","account","s","bucket","c","record","l","r","account","record","a","detailsPagePath","account","failure","p","record","request","provider","p","r","load","load","list","provider","p","r","l","d","a","PAGE_SIZE","MAX_PAGES","file","error","failure","named","named","a","o","l","i","m","t","d","request","c","p","input","text","request","request","m","s","c","g","f","s","e","section","path","p","r","o","c","path","failure","request","logUnexpectedResponse","result","request","p","result","ok","p","t","a","i","address","r","provider","i","d","limit","url","text","record","number","num","url","request","resolve","e","m","hostname","directory","i","answered","resolve","probe","hostnameOf","url","directory","limit","match","text","path","request","v","i","start","m","a","request","l","cheerio","match","literal","toText","email","textOrNull","m","s","r","t","d","p","set","provider","l","request","i","hostname","request","login","directory","limit","num","hostname","input","request","email","c","bucket","g","request","result","fs","path","import_fs","import_zlib","CLOHEADERZ01_MAGIC","input","e","result","start","i","text","zstdDecompress","h","g","r","c","n","s","a","z","output","v","g","r","c","header","import_fs","sharp","import_fs","os","path","fs","c","hostname","p","n","mode","result","ok","hostname","i","match","a","resolve","s","cached","result","ok","r","c","check","p","json","sessions","util","assertIs","assertNever","e","object","joinValues","array","objectUtil","t","issue","error","i","issue","path","m","map","issue","x","s","errorUtil","path","result","error","errorMap","input","check","transform","version","jwt","header","base64","_ZodString","parsedType","ctx","i","issue","issues","a","x","elements","e","processed","preprocess","input","parsedType","result","input","a","result","ZodFirstPartyTypeKind","core_exports","INVALID","_emoji","_null","_undefined","describe","isValidJWT","mergeValues","parse","registry","validate","version","floatSafeRemainder","getParsedType","isObject","v","array","input","start","floatSafeRemainder","object","wrap","path","promises","i","str","isObject","o","getParsedType","t","a","Class","x","_a","d","config","base64","base64url","hex","initializer","init","own","proto","error","issue","path","i","node","result","_a","a","result","e","parse","error","validate","parseAsync","version","timeRegex","_a","floatSafeRemainder","input","_b","result","x","version","_a","version","checks","isAborted","checkResult","canary","result","r","validateAsync","_","v","input","url","hostname","address","base64","c","iban","i","isValidJWT","header","parse","n","start","memo","t","isObject","allowsEval","o","p","results","union","map","value","left","right","mergeValues","a","collect","f","keyResult","valueResult","output","x","d","own","s","resolve","cached","result","check","child","merge","bucket","_a","input","r","en_default","issue","error","issue","error","issue","error","issue","error","issue","o","error","issue","error","issue","p","o","error","issue","error","issue","error","issue","error","issue","error","input","issue","o","en_default","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","o","error","t","e","issue","v","error","issue","o","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","o","error","issue","text","number","error","result","issue","error","issue","error","issue","error","issue","o","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","plural","o","error","issue","plural","o","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","o","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","error","issue","_a","meta","p","f","registry","INVALID","clone","recursive","name","v","result","r","check","floatSafeRemainder","format","issue","isValidJWT","outputVar","d","d2","getTupleOptStart","i","mergeValues","Class","_emoji","_undefined","_null","input","Class","v","issue","describe","codec","format","json","result","_a","meta","id","schema","members","required","object","json","m","union","result","m","format","list","p","json","v","x","i","a","optional","t","record","pending","input","registry","ctx","result","parse","meta","self","visit","node","h","s","cached","s","safeParse","result","safeParseAsync","rawShape","v","path","error","i","def","INVALID","ZodAny","ZodArray","ZodBigInt","ZodBoolean","ZodCatch","ZodDate","ZodDefault","ZodDiscriminatedUnion","ZodEnum","ZodError","ZodFirstPartyTypeKind","ZodFunction","ZodIntersection","ZodIssueCode","ZodLazy","ZodLiteral","ZodMap","ZodNaN","ZodNever","ZodNull","ZodNullable","ZodNumber","ZodObject","ZodOptional","ZodPromise","ZodReadonly","ZodRecord","ZodSet","ZodString","ZodSymbol","ZodTuple","ZodType","ZodUndefined","ZodUnion","ZodUnknown","ZodVoid","_default","base64","base64url","bigint","boolean","_catch","cidrv4","cidrv6","coerce_exports","core_exports","creditCard","cuid","cuid2","currencyCode","date","decode","decodeAsync","describe","e164","email","emoji","encode","encodeAsync","_enum","getErrorMap","guid","hex","hostname","iban","ipv4","ipv6","iso_exports","ksuid","mac","meta","nanoid","_null","nullish","number","object","parse","parseAsync","registry","safeDecode","safeDecodeAsync","safeEncode","safeEncodeAsync","safeParse","safeParseAsync","string","ulid","_undefined","uuid","validate","_void","xid","schemas_exports","ZodAny","ZodArray","ZodBigInt","ZodBoolean","ZodCatch","ZodDate","ZodDefault","ZodDiscriminatedUnion","ZodEnum","ZodFunction","ZodIntersection","ZodLazy","ZodLiteral","ZodMap","ZodNaN","ZodNever","ZodNull","ZodNullable","ZodNumber","ZodObject","ZodOptional","ZodPromise","ZodReadonly","ZodRecord","ZodSet","ZodString","ZodSymbol","ZodTuple","ZodType","ZodUndefined","ZodUnion","ZodUnknown","ZodVoid","_default","base64","base64url","bigint","boolean","_catch","cidrv4","cidrv6","creditCard","cuid","cuid2","currencyCode","date","describe","e164","email","emoji","_enum","guid","hex","hostname","iban","ipv4","ipv6","ksuid","mac","meta","nanoid","_null","nullish","number","object","string","ulid","_undefined","uuid","_void","xid","checks_exports","initializer","self","issue","issues","ZodError","parse","parseAsync","safeParse","safeParseAsync","encode","decode","encodeAsync","decodeAsync","safeEncode","safeDecode","safeEncodeAsync","safeDecodeAsync","en_default","ZodType","meta","check","d","_default","_catch","_parse","parse","_parseAsync","parseAsync","safeParse","safeParseAsync","validate","_encode","encode","_decode","decode","_encodeAsync","encodeAsync","_decodeAsync","decodeAsync","safeEncode","safeDecode","safeEncodeAsync","safeDecodeAsync","json","ZodString","_emoji","string","email","guid","uuid","emoji","nanoid","cuid","cuid2","ulid","xid","ksuid","ipv4","mac","ipv6","cidrv4","cidrv6","base64","base64url","e164","creditCard","iban","format","hostname","hex","currencyCode","ZodNumber","number","ZodBoolean","boolean","ZodBigInt","bigint","ZodSymbol","ZodUndefined","_undefined","ZodNull","ZodType","json","_null","ZodAny","ZodType","json","ZodUnknown","ZodNever","ZodVoid","_void","ZodDate","ZodType","json","date","ZodArray","n","_enum","ZodObject","self","ZodOptional","object","ZodUnion","ZodDiscriminatedUnion","ZodIntersection","ZodTuple","ZodRecord","string","ZodMap","ZodSet","ZodEnum","v","ZodEnum","ZodLiteral","ZodType","json","issue","output","ZodOptional","ZodNullable","nullish","ZodDefault","_default","ZodCatch","_catch","ZodNaN","ZodType","json","codec","ZodReadonly","ZodLazy","ZodPromise","ZodFunction","ZodType","json","describe","meta","ZodBoolean","ZodString","string","number","boolean","_null","ZodIssueCode","map","getErrorMap","ZodFirstPartyTypeKind","iso_exports","date","datetime","duration","time","datetime","date","time","duration","schemas_exports","checks_exports","iso_exports","path","result","parts","n","i","zodSchema","v","t","format","p","s","version","visit","s","visit","s","coerce_exports","bigint","boolean","date","number","string","string","ZodString","number","ZodNumber","boolean","ZodBoolean","bigint","ZodBigInt","date","ZodDate","v","string","number","object","ErrorCode","object","number","string","string","object","_enum","boolean","object","string","boolean","object","number","string","_enum","_null","iso_exports","boolean","object","string","request","number","boolean","i","check","i","check","x","parsedType","emojiRegex","check","addPattern","literal","result","i","x","object","x","types","i","a","base","check","result","required","a","x","x","i","name","schema","main","t","result","safeParse","request","error","result","r","task","resolve","e","safeParse","jsonrpcNotification","isPlainObject","Ajv","_addFormats","input","request","c","mode","request","safeParse","result","c","mode","error","meta","McpZodTypeKind","c","result","config","node","child","request","result","error","safeParseAsync","resolve","t","config","v","ZodOptional","process","error","resolve","json","cached","m","import_crypto","fs","os","path","hostname","a","account","r","row","hostname","row","account","p","p","hostname","hostname","account","cached","mode","login","promise","hostname","hostname","a","import_crypto","p","text","isError","o","promise","resolve","describe","a","result","account","r","TTL_MS","c","s","i","v","o","jpegJs","i","import_jpeg_js","str","input","module","m","number","a","a2","i","r","g","amount","x","num","features","result","o","t","e","concurrency","limit","resolve","y","d","n","c","u","stageEnv","pica","i","e","data","jpegJs","h","fs","os","path","result","directory","file","fs","path","file","os","ANGULAR_VERSION","CULTURE_LOCALE","CULTURE_TIMEZONE","HTTP_RESPONSE_BODY_SIZE","HTTP_RESPONSE_STATUS_CODE","REACT_VERSION","SENTRY_ENVIRONMENT","SENTRY_EXCLUSIVE_TIME","SENTRY_KIND","SENTRY_OP","SENTRY_ORIGIN","SENTRY_PROFILER_ID","SENTRY_PROFILE_ID","SENTRY_RELEASE","SENTRY_SDK_INTEGRATIONS","SENTRY_SDK_NAME","SENTRY_SDK_VERSION","SENTRY_SEGMENT_ID","SENTRY_SEGMENT_NAME","SENTRY_SEGMENT_NAME_SOURCE","SENTRY_STATUS_MESSAGE","SENTRY_TRACE_LIFECYCLE","SERVER_ADDRESS","STATE_TYPE","URL_PATH","USER_EMAIL","USER_ID","USER_IP_ADDRESS","USER_NAME","console","error","a","p","i","path","isPlainObject","v","normalize","input","visit","object","memo","visitKey","str","uuid4","crypto","c","input","match","major","performance","context","uuid4","duration","merge","output","uuid4","lastEventId","fingerprint","context","isPlainObject","merge","uuid4","p","e","registry","registry","withScope","object","path","str","match","component","input","span","v","i","dsc","fingerprint","merge","result","error","version","release","result","input","normalize","version","process","bucket","error","header","op","description","time","strategy","scope","a","input","serializedSpan","dsc","withScope","withScope","span","flush","convert","resolve","result","e","result","error","result","i","uuid4","i","result","release","request","normalize","isEnabled","limit","promises","resolve","header","limit","flush","error","result","error","url","uuid4","result","resolve","isErrorEvent","isError","isPlainObject","merge","path","input","hash","i","name","isEnabled","input","limit","error","i","error","isPlainObject","ex","INTEGRATION_NAME","limit","options","INTEGRATION_NAME","i","i","resolve","path","p","start","dirname","path","result","basename","f","INTEGRATION_NAME","isBrowser","f","basename","withScope","i","SPAN_STREAMING_INTEGRATION_NAME","uuid4","release","node","object","input","DiagLogLevel","v","isCompatible","diag","logger","logger","DiagAPI","logger","self","BaggageImpl","self","context","TraceFlags","r","i","API_NAME","ContextAPI","context","context","getActiveSpan","context","provider","version","context","_version","version","diag","context","context","API_NAME","PropagationAPI","context","API_NAME","TraceAPI","getActiveSpan","provider","success","version","withScope","withSetScope","withIsolationScope","channel","result","subscribe","config","module","module","file","module","module","module","module","module","file","module","module","module","config","MODULE_NAME","MODULE_NAME","VERSION_RANGE","config","i","DEBUG_BUILD","INTEGRATION_NAME","url","_a","Agent","l","v","debugLog","resolve","header","debugLog","Agent","omit","connect","s","http","hostname","request","resolve","error","path","dirname","file","n","getReleaseFromCommitEnv","e","f","output","p","context","isTracingSuppressed","isContinuingTrace","SUPPRESS_TRACING_KEY","withScope","getActiveSpan","version","withActiveSpan","map","getCurrentScope","withSetScope","withIsolationScope","getIsolationScope","x","n","v","t","version","parse","compile","ok","result","i","c","m","n","num","s","a","e","t","r","n","o","a","i","s","u","l","c","f","p","h","y","d","m","x","v","g","A","z","Q","re","require$$0","parse","require$$1","node","child","tracingChannel","i","d","visit","members","esquery","require$$0","parse","require$$1","require$$2","transforms","require$$3","version","config","options","require$$4","map","transform","node","_configs","_dcModule","_customTransforms","semifies","require$$0","Transformer","require$$1","__privateAdd","__privateSet","__privateGet","version","InstrumentationMatcher","require$$0","require$$0","sep","require$$0","file","i","path","i2","readFileSync","require$$0","join","require$$1","version","diag","create","require$$0","require$$1","parse","require$$2","require$$3","getPackageVersion","require$$4","emitDiagnostics","require$$5","debug","i","self","version","transformer","error","os","require$$7","path","require$$8","fs","require$$9","dirname","basename","debug","emitDiagnostics","create","i","emitDiagnostics","diag","error","debug","url","parse","path","version","transformer","context","url","context","result","transformer","debug","format","file","major","url","context","result","format","warn","error","_a","Module","setDiagnosticsHook","initialize","load","resolve","compile","import_meta","log","version","DEBUG_BUILD","diag","provider","registry","DEBUG_BUILD","coreDebug","subscribe","client","resolve","DEBUG_BUILD","SPOTLIGHT_INTEGRATION_NAME","release","request","app","error","context","withScope","hostname","account","check","email","cached","error","check","result","text","text","result","hostname","n","account","isImage","base64","e","config","a","import_id","c","pending","match","fs","os","path","a","instructions"]}