@microvac/ui 0.1.0-rc.14 → 0.1.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActiveAgentsPanel-C9AP9hJu.js → ActiveAgentsPanel-BEx06tMt.js} +1 -1
- package/dist/assets/{AdapterManager-CmxTUKJH.js → AdapterManager-3kEEQWFJ.js} +1 -1
- package/dist/assets/{AdvancedToolsRoute-CXsQnTei.js → AdvancedToolsRoute-CgS6B-oh.js} +1 -1
- package/dist/assets/{AgentActionButtons-DWq2OuVK.js → AgentActionButtons-Cz3jCEd7.js} +1 -1
- package/dist/assets/{AgentAdvancedTab-dhBDxF-H.js → AgentAdvancedTab-BG6ZIAuN.js} +1 -1
- package/dist/assets/{AgentBulkSettingsSheet-DYT4ovDg.js → AgentBulkSettingsSheet-BrrbvspS.js} +1 -1
- package/dist/assets/{AgentChat-r0TPOfPK.js → AgentChat-Dw9iXD6H.js} +1 -1
- package/dist/assets/{AgentDetailPage-Bc_okBuS.js → AgentDetailPage-CuVIHv_q.js} +3 -3
- package/dist/assets/{AgentIdentityChip-CB2NBXkZ.js → AgentIdentityChip-BrVCcuHQ.js} +1 -1
- package/dist/assets/{AgentRosterFilters-b7qMLv8-.js → AgentRosterFilters-GQ2bdXfW.js} +2 -2
- package/dist/assets/{Agents-BsvXy3pZ.js → Agents-clrVQnvc.js} +2 -2
- package/dist/assets/{Agents.production-BeOZmzaF.js → Agents.production-DTopo7XB.js} +2 -2
- package/dist/assets/{AnimatedDialogContent-CWshmxP2.js → AnimatedDialogContent-CDLfw-dJ.js} +1 -1
- package/dist/assets/{AppDetail-DbqENTF_.js → AppDetail-BcWBg5yW.js} +1 -1
- package/dist/assets/{AppNotConnected-BhnCqL0F.js → AppNotConnected-NgfyHZ4L.js} +1 -1
- package/dist/assets/{ApprovalDetail-B2KiYLTj.js → ApprovalDetail-Dm_1V4tC.js} +1 -1
- package/dist/assets/{Approvals-j-wRmqKj.js → Approvals-i5AB3JPj.js} +1 -1
- package/dist/assets/{AppsConnect-CcPVEZ0C.js → AppsConnect-D660Tpuo.js} +1 -1
- package/dist/assets/{AppsReview-B8eWvKkS.js → AppsReview-DdTqOisY.js} +1 -1
- package/dist/assets/{ArtifactEmptyGraphic-5mdkS5jj.js → ArtifactEmptyGraphic-DzxCruYA.js} +1 -1
- package/dist/assets/{Artifacts-Bz7Oo6VX.js → Artifacts-CkXBz6nh.js} +1 -1
- package/dist/assets/{AssigneePickerInner-DdpF7hck.js → AssigneePickerInner-BNjyABBe.js} +1 -1
- package/dist/assets/{AssistantConnection-BpaaJDc_.js → AssistantConnection-CNF6mDmO.js} +1 -1
- package/dist/assets/{AttentionInlineVerbs-DlPQVCO-.js → AttentionInlineVerbs-BiyZ1ekZ.js} +1 -1
- package/dist/assets/{AttentionQueueRow-BC6ezctS.js → AttentionQueueRow-Bh0dKHpF.js} +1 -1
- package/dist/assets/{AuditHub-BVP7LKL9.js → AuditHub-BK848cb4.js} +1 -1
- package/dist/assets/{AuditRuns-DqizHgX1.js → AuditRuns-CUdlbP7S.js} +1 -1
- package/dist/assets/{Auth-DOF0snjp.js → Auth-DDqxm5gD.js} +1 -1
- package/dist/assets/{BoardChat-BYAbDtfd.js → BoardChat-fvKqk0R7.js} +1 -1
- package/dist/assets/{BoardClaim-7y41Pr8e.js → BoardClaim-BEC5BZfz.js} +1 -1
- package/dist/assets/{BootstrapSetupUxLab-BftH1vOv.js → BootstrapSetupUxLab-CXzErrin.js} +1 -1
- package/dist/assets/{Browse-Ck01W1Yl.js → Browse-DoovSMuF.js} +1 -1
- package/dist/assets/{BudgetPolicyCard-CKhrzfgy.js → BudgetPolicyCard-BYMlczCq.js} +1 -1
- package/dist/assets/{CaseDetail-qlXKJ66D.js → CaseDetail-UMAcSH_x.js} +1 -1
- package/dist/assets/{CaseStatus-B3RiZVDH.js → CaseStatus-BI0aMl9l.js} +1 -1
- package/dist/assets/{Cases-CFV3V-5X.js → Cases-CMTkGghU.js} +1 -1
- package/dist/assets/{ChatEndpointDetail-7Hi5TJNt.js → ChatEndpointDetail-CocNEInH.js} +1 -1
- package/dist/assets/{ChatEndpointSetup-CtwgH6sg.js → ChatEndpointSetup-Cyi2tI9K.js} +1 -1
- package/dist/assets/{ChatIdentityConfirm-CXjksBwX.js → ChatIdentityConfirm-Ba3JuTX1.js} +1 -1
- package/dist/assets/{CliAuth-KVjrGMfZ.js → CliAuth-D2jnueGH.js} +1 -1
- package/dist/assets/{Companies-oeJem3De.js → Companies-K75I9dJs.js} +1 -1
- package/dist/assets/{CompanyAccess-vWT6G-n_.js → CompanyAccess-Cw6nLUhE.js} +1 -1
- package/dist/assets/{CompanyActivity-zOzzeN1B.js → CompanyActivity-BsgmVpWS.js} +1 -1
- package/dist/assets/CompanyActivity.production-w-KGxvo6.js +1 -0
- package/dist/assets/{CompanyConnections-llSEaVa2.js → CompanyConnections-yRPYSdm7.js} +1 -1
- package/dist/assets/{CompanyEnvironments-DNyyGC_S.js → CompanyEnvironments-BA7kWdOJ.js} +1 -1
- package/dist/assets/{CompanyExport-CFa-F8Es.js → CompanyExport-DfsK4b9c.js} +1 -1
- package/dist/assets/{CompanyImport-DG6qwQ8F.js → CompanyImport-DJHAsmSF.js} +1 -1
- package/dist/assets/{CompanySettings-Dv5Z3ZQi.js → CompanySettings-DwzHGXec.js} +1 -1
- package/dist/assets/{CompanySettingsPluginPage-CZk1d_0d.js → CompanySettingsPluginPage-Bpa81PF3.js} +1 -1
- package/dist/assets/{CompanySkills-CdzWhJfQ.js → CompanySkills-eTqgbqQN.js} +1 -1
- package/dist/assets/{CompanySkills.production-IoCRW5FQ.js → CompanySkills.production-CQSWfH0r.js} +1 -1
- package/dist/assets/{ConfigureBuiltInAgentModal-BwW7XQ1O.js → ConfigureBuiltInAgentModal-DgeD7t_i.js} +1 -1
- package/dist/assets/{CopyableGatewayUrl-PTn061ft.js → CopyableGatewayUrl-B6K3rOal.js} +1 -1
- package/dist/assets/{CordisPluginSettings-C_BeeGEc.js → CordisPluginSettings-DD3AnD2G.js} +1 -1
- package/dist/assets/{Costs-DhuNxwSj.js → Costs-orBM8T-a.js} +1 -1
- package/dist/assets/{CrossIssueCollaborationUxLab-ZaAXq46r.js → CrossIssueCollaborationUxLab-Bv9y9-NE.js} +1 -1
- package/dist/assets/{Dashboard-BaDnqiKo.js → Dashboard-CrSBNKX1.js} +1 -1
- package/dist/assets/{DashboardLive-D-Ed7osd.js → DashboardLive-Cg8C9RiS.js} +1 -1
- package/dist/assets/{DecisionDateChips-D3pl_mLn.js → DecisionDateChips-BLZKZH71.js} +1 -1
- package/dist/assets/{DecisionHistoryPanel-D5MzyrOh.js → DecisionHistoryPanel-yK-CP7Qg.js} +1 -1
- package/dist/assets/{DecisionQueuePage-D3UZ9oRk.js → DecisionQueuePage-BKXbERai.js} +1 -1
- package/dist/assets/{DesignGuide-COTo7ICj.js → DesignGuide-2FswNsXz.js} +1 -1
- package/dist/assets/{DesignSandboxTaskThread-CMeCSQid.js → DesignSandboxTaskThread-CGU--FXR.js} +1 -1
- package/dist/assets/{EmailConnectionAccess-kCL7obSr.js → EmailConnectionAccess-CZ5QRKyg.js} +1 -1
- package/dist/assets/{EmailEndpointSetup-BGrksR_u.js → EmailEndpointSetup-BI2vsd8Y.js} +1 -1
- package/dist/assets/{EnforcementBanner-_Eb_nK3M.js → EnforcementBanner-B-iX466h.js} +1 -1
- package/dist/assets/{EntityRow-gpsOgEtu.js → EntityRow-BsICt6pd.js} +1 -1
- package/dist/assets/{ExecutionWorkspaceDetail-DwGkH6d3.js → ExecutionWorkspaceDetail-CMqR9puh.js} +1 -1
- package/dist/assets/{ExternalAgentInviteDialog-CGid6pM9.js → ExternalAgentInviteDialog-De30ZrLP.js} +1 -1
- package/dist/assets/{FilterBar-1D-VhrvG.js → FilterBar-rCmsTtG4.js} +1 -1
- package/dist/assets/{FolderControls-CQ6kef3c.js → FolderControls-CmnB7Ap-.js} +1 -1
- package/dist/assets/{GatewayDetail-CCqekM1J.js → GatewayDetail-Duw9pJ10.js} +1 -1
- package/dist/assets/{GatewaysList-nFsRcszh.js → GatewaysList-BBhVGhRq.js} +1 -1
- package/dist/assets/{GitHubConnectionRecovery-B9sFWJup.js → GitHubConnectionRecovery-6VshLoNV.js} +1 -1
- package/dist/assets/{GoalDetail-BQ8y55P-.js → GoalDetail-CahntjlI.js} +1 -1
- package/dist/assets/{GoalTree-laRjXp0P.js → GoalTree-CU4GBFCh.js} +1 -1
- package/dist/assets/{Goals-Cm14EaeP.js → Goals-CzM2NDFR.js} +1 -1
- package/dist/assets/{InstanceAccess-DxQ-Akt_.js → InstanceAccess-CZzkE65W.js} +1 -1
- package/dist/assets/{InstanceExperimentalSettings-BxwqbXNw.js → InstanceExperimentalSettings-DWumKtOK.js} +1 -1
- package/dist/assets/{InviteLanding-Cf0L_u6s.js → InviteLanding-BIy2z50u.js} +1 -1
- package/dist/assets/{IssueChatLongThreadPerf-BfsF6FdF.js → IssueChatLongThreadPerf-D4DJvdOG.js} +1 -1
- package/dist/assets/{JoinRequestQueue-BXCdTFG_.js → JoinRequestQueue-C5rauGYm.js} +1 -1
- package/dist/assets/{Layout.production-CqzU0qMi.js → Layout.production-BSDWnupa.js} +1 -1
- package/dist/assets/{McpConnect-COWnZ9Eb.js → McpConnect-BN8ST0RS.js} +1 -1
- package/dist/assets/{MembershipAction-C9i9Sdmi.js → MembershipAction-DTjhGn-L.js} +1 -1
- package/dist/assets/{MetricCard-Bwnt3_p3.js → MetricCard-CeL9Pdn5.js} +1 -1
- package/dist/assets/{MissingPluginTabPlaceholder-B0Zxv1Kx.js → MissingPluginTabPlaceholder-CbQiSVnZ.js} +1 -1
- package/dist/assets/{NewAgent-BIlJ5Dyt.js → NewAgent-BszrNpQk.js} +1 -1
- package/dist/assets/{NewAgentDialog-CJdMxxYL.js → NewAgentDialog-U9qAcTzc.js} +1 -1
- package/dist/assets/{NewGoalDialog-B8izfKLm.js → NewGoalDialog-DqKbk4-i.js} +1 -1
- package/dist/assets/{NewProjectDialog-DXqjTYFK.js → NewProjectDialog-DrlUAF-N.js} +1 -1
- package/dist/assets/{OnboardingPrimitives-DHYBqn_0.js → OnboardingPrimitives-BkgPF4Mu.js} +1 -1
- package/dist/assets/{OnboardingWizard-DqSfZ13V.js → OnboardingWizard-CMBMcuXv.js} +1 -1
- package/dist/assets/{OrgChart.production-DrSFUf7i.js → OrgChart.production-BLczTjRj.js} +1 -1
- package/dist/assets/{PaperclipCloudOAuthHandoff-jPUvjJ8q.js → PaperclipCloudOAuthHandoff-BTtF8UPD.js} +1 -1
- package/dist/assets/{PluginManager-h3LFPaUq.js → PluginManager-CCcqlfgK.js} +1 -1
- package/dist/assets/{PluginPage-E5Im4454.js → PluginPage-B1empV69.js} +1 -1
- package/dist/assets/{PluginSettings-BBO0jAgo.js → PluginSettings-DtopaRqR.js} +1 -1
- package/dist/assets/{ProfileDetailRoute-CQBD7fms.js → ProfileDetailRoute-BqvVpBZi.js} +1 -1
- package/dist/assets/{ProfileSettings-BwnVEHLp.js → ProfileSettings-5__tVfGi.js} +1 -1
- package/dist/assets/{ProfileWizardRoute-By_SC6Gn.js → ProfileWizardRoute-vt-MRLuD.js} +1 -1
- package/dist/assets/{ProjectDetail-CbiwFBAE.js → ProjectDetail-DJ4zjube.js} +1 -1
- package/dist/assets/{ProjectRepositoryInput-DZF9bX4E.js → ProjectRepositoryInput-BJcnj3At.js} +1 -1
- package/dist/assets/{ProjectWorkspaceDetail-DPsl_4bD.js → ProjectWorkspaceDetail-DEAO3q6v.js} +1 -1
- package/dist/assets/{ProjectWorkspacesContent-COH4dOWK.js → ProjectWorkspacesContent-CZvO7p0i.js} +1 -1
- package/dist/assets/{Projects-Ch9Qu7sn.js → Projects-Dm7-zXUH.js} +1 -1
- package/dist/assets/{QuotaBar-DIFOT9Uh.js → QuotaBar-Drp3CaxX.js} +1 -1
- package/dist/assets/{RepositoryEditor-DHB1bqId.js → RepositoryEditor-BT_VAkJu.js} +1 -1
- package/dist/assets/{Responsibilities-C5O0JXXG.js → Responsibilities-DbUEtGZu.js} +1 -1
- package/dist/assets/{ResponsibilityDetail-D6NpZpkm.js → ResponsibilityDetail--S8_GOkb.js} +1 -1
- package/dist/assets/{ResponsibleUserDenialUxLab-CFrIWYwe.js → ResponsibleUserDenialUxLab-1PB3JNG0.js} +1 -1
- package/dist/assets/{ReviewQueueCard-BPC4Lm67.js → ReviewQueueCard-B8w9aXKU.js} +1 -1
- package/dist/assets/{RoutineAuditActivity-sKyzMajz.js → RoutineAuditActivity-BCo7pYe5.js} +1 -1
- package/dist/assets/{RoutineDetail-CG8HF5fp.js → RoutineDetail-C9Dwn5G9.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-CKh3CmLD.js → RoutineRunVariablesDialog-Baomcbe3.js} +1 -1
- package/dist/assets/{Routines-tF2qfUKo.js → Routines-Dkv4gJno.js} +1 -1
- package/dist/assets/{Routines.production-BTyj1Ljr.js → Routines.production-Cs2Y-lpt.js} +1 -1
- package/dist/assets/{RoutinesToolbar-CvUFVCGN.js → RoutinesToolbar-BNKfCrTo.js} +1 -1
- package/dist/assets/{Search-Z9D0NuS1.js → Search-CVx4cl2o.js} +1 -1
- package/dist/assets/{Secrets-DgmbLOJK.js → Secrets-C2qv2HKZ.js} +1 -1
- package/dist/assets/{SkillBinaryFile-F3_9qcaM.js → SkillBinaryFile-DDkhLlfC.js} +1 -1
- package/dist/assets/{SkillCardIcon-CXHUCMej.js → SkillCardIcon-Cp_hws0N.js} +1 -1
- package/dist/assets/{SkillFolderTree-CB3lrTIE.js → SkillFolderTree-Cv0CmfYx.js} +1 -1
- package/dist/assets/{SkillSourceTree-BbuciCo6.js → SkillSourceTree-DmjlUswf.js} +1 -1
- package/dist/assets/{SkillSources-Dlo6Cew3.js → SkillSources-nmlYypUU.js} +1 -1
- package/dist/assets/{SkillStudio-ZO-Nf7eI.js → SkillStudio-BK3y_3zr.js} +1 -1
- package/dist/assets/{SkillsNavigationTabs-B9Iqnlqt.js → SkillsNavigationTabs-DRwMP1eu.js} +1 -1
- package/dist/assets/{SpekoPhoneCallback-C4VnMiZh.js → SpekoPhoneCallback-Cqi7AIyH.js} +1 -1
- package/dist/assets/{SpekoProviderSetup-I4evPZb3.js → SpekoProviderSetup-CJI4oXk5.js} +1 -1
- package/dist/assets/{StatusCards-D0MVzbsw.js → StatusCards-DKyyY81S.js} +1 -1
- package/dist/assets/{SummarySlotCard-DUXgZPxG.js → SummarySlotCard-f3RomdZS.js} +1 -1
- package/dist/assets/{TailscaleConnector-CMhT73gj.js → TailscaleConnector-yQWLR1Ra.js} +1 -1
- package/dist/assets/{TaskChatLab-D9-KAE-7.js → TaskChatLab-Dsr7eyj4.js} +1 -1
- package/dist/assets/{TaskSummaryList-CUxieFNe.js → TaskSummaryList-eFDfK_QH.js} +1 -1
- package/dist/assets/{Timeline-BNMoRbtK.js → Timeline-BWA9dyk6.js} +1 -1
- package/dist/assets/{ToolsAdminGate-CEr0zy2T.js → ToolsAdminGate-DpBg30hQ.js} +1 -1
- package/dist/assets/{TrustPresetSection-B9YXZtkh.js → TrustPresetSection-DtWjK9Kp.js} +1 -1
- package/dist/assets/{UserProfile-D-tnW96X.js → UserProfile-C66UI5xx.js} +1 -1
- package/dist/assets/{WebhookUrlWarning-Ba_DixKh.js → WebhookUrlWarning-CDygVnDH.js} +1 -1
- package/dist/assets/{WhatNeedsMe-B-Jzj8_M.js → WhatNeedsMe-BQ82RHus.js} +1 -1
- package/dist/assets/{Workspaces-BqhDI_Bl.js → Workspaces-DrjJes30.js} +1 -1
- package/dist/assets/{abnfDiagram-YUKMZFIV-Bn9P-nUW.js → abnfDiagram-YUKMZFIV-Crkksu2D.js} +1 -1
- package/dist/assets/{architecture-WOLXFQ4H-V1ldsZlt.js → architecture-WOLXFQ4H-bHU8FW0c.js} +1 -1
- package/dist/assets/{architectureDiagram-47P4ROYG-BkYxt-Gc.js → architectureDiagram-47P4ROYG-Bj5Styf9.js} +1 -1
- package/dist/assets/{arrow-down-left-o81ENfeW.js → arrow-down-left-Ck9VQyqQ.js} +1 -1
- package/dist/assets/{blockDiagram-E7TT5TSB-BO7pPYbp.js → blockDiagram-E7TT5TSB-OeHpNCQ-.js} +1 -1
- package/dist/assets/{budgets-0Dw6TH1A.js → budgets-CAWPqcn4.js} +1 -1
- package/dist/assets/{building-complex-DciZTnys.js → building-complex-Dxiyk_pH.js} +1 -1
- package/dist/assets/{c4Diagram-CRA5TL53-D4EpmmzV.js → c4Diagram-CRA5TL53-QbK5p76P.js} +1 -1
- package/dist/assets/channel-BSmZkKA8.js +1 -0
- package/dist/assets/{chat-channels-DWyry-9M.js → chat-channels-CzTZV2fr.js} +1 -1
- package/dist/assets/{chunk-2BW5OAIV-DFXIyCJy.js → chunk-2BW5OAIV-Ckr4HfBO.js} +1 -1
- package/dist/assets/{chunk-3YJQHVM4-Dj5wEKIw.js → chunk-3YJQHVM4-C_uoPpLR.js} +1 -1
- package/dist/assets/{chunk-4EA7E6EY-5XiUVgzK.js → chunk-4EA7E6EY-BeMEfIRS.js} +1 -1
- package/dist/assets/{chunk-7TKQ45FW-D0opKcsy.js → chunk-7TKQ45FW-DiwqWHvN.js} +1 -1
- package/dist/assets/{chunk-AW2ZBBNX-DnjsTe04.js → chunk-AW2ZBBNX-Cf57K3PO.js} +1 -1
- package/dist/assets/{chunk-DBDB3WZW-DNqSQPZ0.js → chunk-DBDB3WZW-B2qouVQO.js} +1 -1
- package/dist/assets/{chunk-E2ZNV5FY-cjSf_BTz.js → chunk-E2ZNV5FY-DG8wQ_NS.js} +1 -1
- package/dist/assets/{chunk-EU5HNXII-CZYBiaSw.js → chunk-EU5HNXII-cxRrXRGV.js} +1 -1
- package/dist/assets/{chunk-FVRAUYC3-DSc0-wJA.js → chunk-FVRAUYC3-Dizswk0V.js} +1 -1
- package/dist/assets/{chunk-HJ2JQQFS-MXK0gYSP.js → chunk-HJ2JQQFS-DL4lnpSv.js} +1 -1
- package/dist/assets/{chunk-HTAEGDNF-BjDZm_5k.js → chunk-HTAEGDNF-Zxjdb6kj.js} +1 -1
- package/dist/assets/{chunk-KQW6MTUR-Bfj0tDmO.js → chunk-KQW6MTUR-BsVaJdnu.js} +1 -1
- package/dist/assets/{chunk-NTY3LDVX-Bpz5TkVb.js → chunk-NTY3LDVX-DyT9N5sM.js} +1 -1
- package/dist/assets/{chunk-VPRB5NB3-CfeHjtbb.js → chunk-VPRB5NB3-BNz5CtBn.js} +1 -1
- package/dist/assets/{chunk-XC4XBNZT-FBCWmi6K.js → chunk-XC4XBNZT-CCgIhjYS.js} +1 -1
- package/dist/assets/{circle-slash-DqKFFqfb.js → circle-slash-uNv_ha0X.js} +1 -1
- package/dist/assets/{classDiagram-v2-K4WV4PDN-DbC_J0kK.js → classDiagram-v2-K4WV4PDN-Cdh3CEl4.js} +1 -1
- package/dist/assets/{coins-BztUbqyl.js → coins-BDAh8hDQ.js} +1 -1
- package/dist/assets/{collections-BxrcELwt.js → collections-B58p51lw.js} +1 -1
- package/dist/assets/{connection-owner-D-ikSHyR.js → connection-owner-D8fNrFqC.js} +1 -1
- package/dist/assets/{cynefin-EF2NZ3EQ-COwSJ4qP.js → cynefin-EF2NZ3EQ-BkwhfqJ0.js} +1 -1
- package/dist/assets/{cynefinDiagram-3GCD6N5R-diaEJq9Y.js → cynefinDiagram-3GCD6N5R-DuGb_wq2.js} +1 -1
- package/dist/assets/{dagre-W4DXFKR2-BPAMRuIj.js → dagre-W4DXFKR2-Bxq_Mhia.js} +1 -1
- package/dist/assets/{diagram-2UJZ2QOL-BvRnO1Id.js → diagram-2UJZ2QOL-B-P_hrXV.js} +1 -1
- package/dist/assets/{diagram-OVF4WLC6-CDgBeD0m.js → diagram-OVF4WLC6-Ds0BqQWH.js} +1 -1
- package/dist/assets/{diagram-PFPMY2P6-DAw9lREG.js → diagram-PFPMY2P6-Dpqb2-Cb.js} +1 -1
- package/dist/assets/{diagram-UMYRVEAY-ZQqQn22t.js → diagram-UMYRVEAY-BJSoxjiu.js} +1 -1
- package/dist/assets/{diagram-YEKJPTXX-CoJtGgWs.js → diagram-YEKJPTXX-BxaG_9tT.js} +1 -1
- package/dist/assets/{diagram-ZIFT7M5P-qW_Zn_bO.js → diagram-ZIFT7M5P-6acvVOtc.js} +1 -1
- package/dist/assets/{dist-B2E6oBK1.js → dist-0EWXio4m.js} +1 -1
- package/dist/assets/{dist-IcdxEhjC.js → dist-BGvZP_Cl.js} +1 -1
- package/dist/assets/{dist-DXjkgaZX.js → dist-BZ7AbEhN.js} +1 -1
- package/dist/assets/{dist-_EtfntKJ.js → dist-BlosHr86.js} +1 -1
- package/dist/assets/{dist-DylHAy-6.js → dist-Bmr4uhSk.js} +1 -1
- package/dist/assets/{dist-DML0cJH3.js → dist-C6yMfMNS.js} +1 -1
- package/dist/assets/{dist-Dl94YqeS.js → dist-CMZQedYl.js} +1 -1
- package/dist/assets/{dist-DKyBHaH2.js → dist-C_N_-eaT.js} +1 -1
- package/dist/assets/{dist-CvRpZH53.js → dist-CaUbG4Hl.js} +1 -1
- package/dist/assets/{dist-ptDa9fKh.js → dist-Cn7-nxjU.js} +1 -1
- package/dist/assets/{dist-CG-phytt.js → dist-Cnj95_pX.js} +1 -1
- package/dist/assets/{dist-DbXGl-wj.js → dist-D9DR7k9k.js} +1 -1
- package/dist/assets/{dist-CjRqeLFz.js → dist-DIwsVdS2.js} +1 -1
- package/dist/assets/{dist-BCJybC91.js → dist-DVE0lLId.js} +1 -1
- package/dist/assets/{dist-CPgRB-NQ.js → dist-DkAPL4CQ.js} +1 -1
- package/dist/assets/{dist-CeSzCyeG.js → dist-Dl6N3kpQ.js} +1 -1
- package/dist/assets/{dist-DZruZxAk.js → dist-DmBvXBzK.js} +1 -1
- package/dist/assets/{dist-CdmdXwCZ.js → dist-DpgXK0aZ.js} +1 -1
- package/dist/assets/{dist-CYRzGbSY.js → dist-gMRyU9GJ.js} +1 -1
- package/dist/assets/{dist-CG6fC1Db.js → dist-jQQX2kOU.js} +1 -1
- package/dist/assets/{dist-DZIxMHOT.js → dist-lUaUoFTq.js} +1 -1
- package/dist/assets/{dist-CuwPDbnL.js → dist-qw1ZF2vD.js} +1 -1
- package/dist/assets/{dist-B6Qde8KJ.js → dist-rH4qrNAn.js} +1 -1
- package/dist/assets/{ebnfDiagram-VR2GEFS7-DA4UvKXV.js → ebnfDiagram-VR2GEFS7-Ytj3Z5qC.js} +1 -1
- package/dist/assets/{elk-IJKZMXRS-CM74d3mJ.js → elk-IJKZMXRS-CJurNqqK.js} +1 -1
- package/dist/assets/{erDiagram-O2IAPWRE-d869V0qL.js → erDiagram-O2IAPWRE-hyXckW2d.js} +1 -1
- package/dist/assets/{eventmodeling-K75KTNOO-C-oz_eyI.js → eventmodeling-K75KTNOO-D3xQujrh.js} +1 -1
- package/dist/assets/flowDiagram-OXPTDLAJ-D4ojBTuY.js +1 -0
- package/dist/assets/{folder-plus-CxWXoYCi.js → folder-plus-BJZSMzuj.js} +1 -1
- package/dist/assets/{ganttDiagram-R7TSEDQI-BBul4Kpm.js → ganttDiagram-R7TSEDQI-C8U_ITl4.js} +1 -1
- package/dist/assets/{gitGraph-VSP46ZUC-BriEZgAq.js → gitGraph-VSP46ZUC-CDeq3yKT.js} +1 -1
- package/dist/assets/{gitGraphDiagram-XJZIOB7I-I12rg8s1.js → gitGraphDiagram-XJZIOB7I-CST3EWE9.js} +1 -1
- package/dist/assets/{goals-CvMWzjH4.js → goals-BNJZ4nzg.js} +1 -1
- package/dist/assets/{index-Bt31d8ga.js → index-BJtnP7H1.js} +8 -8
- package/dist/assets/{info-OHQRW6UA-CxrcGiem.js → info-OHQRW6UA-CPvTWk7J.js} +1 -1
- package/dist/assets/{infoDiagram-5W2HQ5XZ-4Sm0LiOu.js → infoDiagram-5W2HQ5XZ-BPUiNdxI.js} +1 -1
- package/dist/assets/{ishikawaDiagram-K3B6WC7H-CKXvKV-s.js → ishikawaDiagram-K3B6WC7H-D5Z3rmaA.js} +1 -1
- package/dist/assets/{issue-detail-4PCbYpdv.js → issue-detail-CZfjXs0M.js} +3 -3
- package/dist/assets/{journeyDiagram-COXZFDF6-BHsrZLvQ.js → journeyDiagram-COXZFDF6-CEkwEYdR.js} +1 -1
- package/dist/assets/{kanban-definition-P3RFRI5V-8HhnIs_l.js → kanban-definition-P3RFRI5V-8h_R6Qjq.js} +1 -1
- package/dist/assets/{line-rrKrpB-b.js → line-Ljt_vfsb.js} +1 -1
- package/dist/assets/{link-BecLzmfo.js → link-DvgFK0mz.js} +1 -1
- package/dist/assets/{list-filter-BC3D4IoX.js → list-filter-BR4_dvwm.js} +1 -1
- package/dist/assets/{log-in-BJCGwGGT.js → log-in-Dvx9-FMC.js} +1 -1
- package/dist/assets/{mcpSkills-DRs3pGKn.js → mcpSkills-76szK_k1.js} +1 -1
- package/dist/assets/{mermaid-parser.core-DmG0b4S0.js → mermaid-parser.core-BjFu937m.js} +3 -3
- package/dist/assets/{mermaid.core-D1vILTuF.js → mermaid.core-B0t95EIS.js} +4 -4
- package/dist/assets/{mindmap-definition-LZFPQGKD-DIMpL0de.js → mindmap-definition-LZFPQGKD-TVnHYUR4.js} +1 -1
- package/dist/assets/{packet-JDAUHWVQ-BnbYht3G.js → packet-JDAUHWVQ-aNGiRWLy.js} +1 -1
- package/dist/assets/{pegDiagram-BGZESJAR-BUjtJVjT.js → pegDiagram-BGZESJAR-DDadxqWQ.js} +1 -1
- package/dist/assets/{pie-XZMESJXO-CM4VXUb-.js → pie-XZMESJXO-CydFP1hd.js} +1 -1
- package/dist/assets/{pieDiagram-CAPJLFHJ-B3v8ryvG.js → pieDiagram-CAPJLFHJ-KhdUDwDS.js} +1 -1
- package/dist/assets/{power-0mw59G-l.js → power-sYV-WuqQ.js} +1 -1
- package/dist/assets/{profile-summary-B5rPf8v-.js → profile-summary-D4LPX-Dv.js} +1 -1
- package/dist/assets/{quadrantDiagram-GDMTTRAM-Cv-dS2Rn.js → quadrantDiagram-GDMTTRAM-B1X8K2Fs.js} +1 -1
- package/dist/assets/{radar-ABXABTNO-v6yZj4Fk.js → radar-ABXABTNO-BqodkLpx.js} +1 -1
- package/dist/assets/{railroad-I3PHUGI6-D-U8Cs0m.js → railroad-I3PHUGI6-HmRKXDJj.js} +1 -1
- package/dist/assets/{railroad-abnf-LNEFI6M7-Dw3fkrVy.js → railroad-abnf-LNEFI6M7-CkBttaHp.js} +1 -1
- package/dist/assets/{railroad-ebnf-DWYD2UWJ-_ln-e3Tx.js → railroad-ebnf-DWYD2UWJ-C6DBawFA.js} +1 -1
- package/dist/assets/{railroad-peg-JR7BVNR7-Bf8u1-RZ.js → railroad-peg-JR7BVNR7-Z9df3u5o.js} +1 -1
- package/dist/assets/{railroadDiagram-SM67HX2B-Drr5UhQI.js → railroadDiagram-SM67HX2B-2vDUUppL.js} +1 -1
- package/dist/assets/{requirementDiagram-X7JNWC4A-D5ef6_ac.js → requirementDiagram-X7JNWC4A-DAuP39Hc.js} +1 -1
- package/dist/assets/{sankeyDiagram-UM26HJRW-DncJWIz_.js → sankeyDiagram-UM26HJRW-ByS54QZK.js} +1 -1
- package/dist/assets/{saved-permissions-CizWg8-P.js → saved-permissions-CPiYtxkZ.js} +1 -1
- package/dist/assets/{scroll-text-Ck6HB7eM.js → scroll-text-CVSt6aO2.js} +1 -1
- package/dist/assets/{sdk-CWyUlmcn.js → sdk-vrG4HtB4.js} +1 -1
- package/dist/assets/{search-DkTqg7ab.js → search-CG-QtPVH.js} +1 -1
- package/dist/assets/{send-CYVi50sh.js → send-CH-0xdLm.js} +1 -1
- package/dist/assets/{sequenceDiagram-ZO4K6R2Y-Cs0nGCCg.js → sequenceDiagram-ZO4K6R2Y-DvWxKTLK.js} +1 -1
- package/dist/assets/{shared-CIwISWMj.js → shared-D37zfckm.js} +1 -1
- package/dist/assets/{smoke-lab-matrix-A7ubFpfk.js → smoke-lab-matrix-C5gR81E3.js} +1 -1
- package/dist/assets/{stateDiagram-v2-TBUQTH76-Dpp3m5Wq.js → stateDiagram-v2-TBUQTH76-DtiiZIXq.js} +1 -1
- package/dist/assets/{swimlanes-N4OXWK64-NXVbx1w8.js → swimlanes-N4OXWK64-BWSEtCbX.js} +1 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-Bl_9DvHU.js +8 -0
- package/dist/assets/{timeline-definition-YOQAKGHF-DqI-Mv2e.js → timeline-definition-YOQAKGHF-U4QcniMh.js} +1 -1
- package/dist/assets/{treeView-D4JQ5SDB-CZBlE7ya.js → treeView-D4JQ5SDB-B2tdrtsj.js} +1 -1
- package/dist/assets/{treemap-SAJKECNS-BlueznID.js → treemap-SAJKECNS-DodN8j4n.js} +1 -1
- package/dist/assets/{useAgentlessOnboardingAutoOpen-CnFwEQ-H.js → useAgentlessOnboardingAutoOpen-DSWW7Juw.js} +1 -1
- package/dist/assets/{useAuthorizationWindow-DnFQsiFj.js → useAuthorizationWindow-tg3aKEU7.js} +1 -1
- package/dist/assets/{useDateRange-9EbqkWXy.js → useDateRange-CnZQr2KO.js} +1 -1
- package/dist/assets/{useFastResponsesEnabled-D8dunm4j.js → useFastResponsesEnabled-B8tHSJ1y.js} +1 -1
- package/dist/assets/{usePageView-BiX5i8ck.js → usePageView-CtFMs34g.js} +1 -1
- package/dist/assets/{useProfilesData-0VYQ4lAT.js → useProfilesData-CWHdMSuL.js} +1 -1
- package/dist/assets/{useReviewCount-WBWxwKI3.js → useReviewCount-W_bCZ2Hz.js} +1 -1
- package/dist/assets/{useRoutineFormOptions-DnX5DBn1.js → useRoutineFormOptions-CCLMmVSF.js} +1 -1
- package/dist/assets/{useSummaryDraftStream-DPQRvaXT.js → useSummaryDraftStream-NVNYNt72.js} +1 -1
- package/dist/assets/{useTailscaleConnections-BDff6dWx.js → useTailscaleConnections-Dy52nCY3.js} +1 -1
- package/dist/assets/{usecaseDiagram-VIAY4XPW-BSDn8OaJ.js → usecaseDiagram-VIAY4XPW-kEHhqgOj.js} +1 -1
- package/dist/assets/{vennDiagram-BLWOH2XV-BBSA9KNN.js → vennDiagram-BLWOH2XV-NPJU0aCU.js} +1 -1
- package/dist/assets/{wardley-7MLQ67FV-CsT-rTZ9.js → wardley-7MLQ67FV-bUGKvIPT.js} +1 -1
- package/dist/assets/{wardleyDiagram-YMQ3BMBF-BLClsIjw.js → wardleyDiagram-YMQ3BMBF-qtUDHfhb.js} +1 -1
- package/dist/assets/{xychartDiagram-TAQBALBS-2x4wB0gq.js → xychartDiagram-TAQBALBS-C-z57aZj.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/CompanyActivity.production-DbaFBsM0.js +0 -1
- package/dist/assets/channel-BQh2vFIU.js +0 -1
- package/dist/assets/flowDiagram-OXPTDLAJ-Be1xLbJu.js +0 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-Ct3LnXZt.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var Qr=Object.defineProperty;var s=(t,e)=>Qr(t,"name",{value:e,configurable:!0});var q="1.9.1",Oe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Jr(t){const e=new Set([t]),r=new Set,n=t.match(Oe);if(!n)return()=>!1;const i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return s(function(c){return c===t},"isExactmatch");function a(u){return r.add(u),!1}s(a,"_reject");function o(u){return e.add(u),!0}return s(o,"_accept"),s(function(c){if(e.has(c))return!0;if(r.has(c))return!1;const l=c.match(Oe);if(!l)return a(c);const h={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return h.prerelease!=null||i.major!==h.major?a(c):i.major===0?i.minor===h.minor&&i.patch<=h.patch?o(c):a(c):i.minor<=h.minor?o(c):a(c)},"isCompatible")}s(Jr,"_makeCompatibilityCheck");var Zr=Jr(q),tn=q.split(".")[0],at=Symbol.for(`opentelemetry.js.api.${tn}`),ot=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};function lt(t,e,r,n=!1){var i;const a=ot[at]=(i=ot[at])!==null&&i!==void 0?i:{version:q};if(!n&&a[t]){const o=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return r.error(o.stack||o.message),!1}if(a.version!=="1.9.1"){const o=new Error(`@opentelemetry/api: Registration of version v${a.version} for ${t} does not match previously registered API v${q}`);return r.error(o.stack||o.message),!1}return a[t]=e,r.debug(`@opentelemetry/api: Registered a global for ${t} v${q}.`),!0}s(lt,"registerGlobal");function j(t){var e,r;const n=(e=ot[at])===null||e===void 0?void 0:e.version;if(!(!n||!Zr(n)))return(r=ot[at])===null||r===void 0?void 0:r[t]}s(j,"getGlobal");function dt(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${q}.`);const r=ot[at];r&&delete r[t]}s(dt,"unregisterGlobal");var en=class{static{s(this,"DiagComponentLogger")}constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return W("debug",this._namespace,t)}error(...t){return W("error",this._namespace,t)}info(...t){return W("info",this._namespace,t)}warn(...t){return W("warn",this._namespace,t)}verbose(...t){return W("verbose",this._namespace,t)}};function W(t,e,r){const n=j("diag");if(n)return n[t](e,...r)}s(W,"logProxy");var O;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(O||(O={}));function rn(t,e){t<O.NONE?t=O.NONE:t>O.ALL&&(t=O.ALL),e=e||{};function r(n,i){const a=e[n];return typeof a=="function"&&t>=i?a.bind(e):function(){}}return s(r,"_filterFunc"),{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}s(rn,"createLogLevelDiagLogger");var nn="diag",I=class ur{static{s(this,"DiagAPI")}static instance(){return this._instance||(this._instance=new ur),this._instance}constructor(){function e(i){return function(...a){const o=j("diag");if(o)return o[i](...a)}}s(e,"_logProxy");const r=this,n=s((i,a={logLevel:O.INFO})=>{var o,u,c;if(i===r){const _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((o=_.stack)!==null&&o!==void 0?o:_.message),!1}typeof a=="number"&&(a={logLevel:a});const l=j("diag"),h=rn((u=a.logLevel)!==null&&u!==void 0?u:O.INFO,i);if(l&&!a.suppressOverrideMessage){const _=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";l.warn(`Current logger will be overwritten from ${_}`),h.warn(`Current logger will overwrite one already registered from ${_}`)}return lt("diag",h,r,!0)},"setLogger");r.setLogger=n,r.disable=()=>{dt(nn,r)},r.createComponentLogger=i=>new en(i),r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}},sn=class tt{static{s(this,"BaggageImpl")}constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){const r=this._entries.get(e);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,r){const n=new tt(this._entries);return n._entries.set(e,r),n}removeEntry(e){const r=new tt(this._entries);return r._entries.delete(e),r}removeEntries(...e){const r=new tt(this._entries);for(const n of e)r._entries.delete(n);return r}clear(){return new tt}},an=Symbol("BaggageEntryMetadata"),on=I.instance();function cn(t={}){return new sn(new Map(Object.entries(t)))}s(cn,"createBaggage");function un(t){return typeof t!="string"&&(on.error(`Cannot create baggage metadata from unknown type: ${typeof t}`),t=""),{__TYPE__:an,toString(){return t}}}s(un,"baggageEntryMetadataFromString");function ue(t){return Symbol.for(t)}s(ue,"createContextKey");var ln=class Jt{static{s(this,"BaseContext")}constructor(e){const r=this;r._currentContext=e?new Map(e):new Map,r.getValue=n=>r._currentContext.get(n),r.setValue=(n,i)=>{const a=new Jt(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=n=>{const i=new Jt(r._currentContext);return i._currentContext.delete(n),i}}},B=new ln,dn=class{static{s(this,"NoopMeter")}constructor(){}createGauge(t,e){return Tn}createHistogram(t,e){return Sn}createCounter(t,e){return En}createUpDownCounter(t,e){return bn}createObservableGauge(t,e){return Cn}createObservableCounter(t,e){return An}createObservableUpDownCounter(t,e){return yn}addBatchObservableCallback(t,e){}removeBatchObservableCallback(t){}},Ot=class{static{s(this,"NoopMetric")}},pn=class extends Ot{static{s(this,"NoopCounterMetric")}add(t,e){}},hn=class extends Ot{static{s(this,"NoopUpDownCounterMetric")}add(t,e){}},fn=class extends Ot{static{s(this,"NoopGaugeMetric")}record(t,e){}},_n=class extends Ot{static{s(this,"NoopHistogramMetric")}record(t,e){}},le=class{static{s(this,"NoopObservableMetric")}addCallback(t){}removeCallback(t){}},gn=class extends le{static{s(this,"NoopObservableCounterMetric")}},mn=class extends le{static{s(this,"NoopObservableGaugeMetric")}},vn=class extends le{static{s(this,"NoopObservableUpDownCounterMetric")}},lr=new dn,En=new pn,Tn=new fn,Sn=new _n,bn=new hn,An=new gn,Cn=new mn,yn=new vn;function dr(){return lr}s(dr,"createNoopMeter");var Rn={get(t,e){if(t!=null)return t[e]},keys(t){return t==null?[]:Object.keys(t)}},On={set(t,e,r){t!=null&&(t[e]=r)}},Pn=class{static{s(this,"NoopContextManager")}active(){return B}with(t,e,r,...n){return e.call(r,...n)}bind(t,e){return e}enable(){return this}disable(){return this}},Dt="context",wn=new Pn,Pt=class pr{static{s(this,"ContextAPI")}constructor(){}static getInstance(){return this._instance||(this._instance=new pr),this._instance}setGlobalContextManager(e){return lt(Dt,e,I.instance())}active(){return this._getContextManager().active()}with(e,r,n,...i){return this._getContextManager().with(e,r,n,...i)}bind(e,r){return this._getContextManager().bind(e,r)}_getContextManager(){return j(Dt)||wn}disable(){this._getContextManager().disable(),dt(Dt,I.instance())}},U;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(U||(U={}));var Ln="0000000000000000",In="00000000000000000000000000000000",de={traceId:In,spanId:Ln,traceFlags:U.NONE},nt=class{static{s(this,"NonRecordingSpan")}constructor(t=de){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,e){return this}setAttributes(t){return this}addEvent(t,e){return this}addLink(t){return this}addLinks(t){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,e){}},pe=ue("OpenTelemetry Context Key SPAN");function he(t){return t.getValue(pe)||void 0}s(he,"getSpan");function Nn(){return he(Pt.getInstance().active())}s(Nn,"getActiveSpan");function fe(t,e){return t.setValue(pe,e)}s(fe,"setSpan");function Mn(t){return t.deleteValue(pe)}s(Mn,"deleteSpan");function xn(t,e){return fe(t,new nt(e))}s(xn,"setSpanContext");function hr(t){var e;return(e=he(t))===null||e===void 0?void 0:e.spanContext()}s(hr,"getSpanContext");var _t=new Uint8Array([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,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,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,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]);function fr(t,e){if(typeof t!="string"||t.length!==e)return!1;let r=0;for(let n=0;n<t.length;n+=4)r+=(_t[t.charCodeAt(n)]|0)+(_t[t.charCodeAt(n+1)]|0)+(_t[t.charCodeAt(n+2)]|0)+(_t[t.charCodeAt(n+3)]|0);return r===e}s(fr,"isValidHex");function _r(t){return fr(t,32)&&t!=="00000000000000000000000000000000"}s(_r,"isValidTraceId");function Dn(t){return fr(t,16)&&t!=="0000000000000000"}s(Dn,"isValidSpanId");function wt(t){return _r(t.traceId)&&Dn(t.spanId)}s(wt,"isSpanContextValid");function kn(t){return new nt(t)}s(kn,"wrapSpanContext");var kt=Pt.getInstance(),gr=class{static{s(this,"NoopTracer")}startSpan(t,e,r=kt.active()){if(e?.root)return new nt;const n=r&&hr(r);return Un(n)&&wt(n)?new nt(n):new nt}startActiveSpan(t,e,r,n){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=e:arguments.length===3?(i=e,o=r):(i=e,a=r,o=n);const u=a??kt.active(),c=this.startSpan(t,i,u),l=fe(u,c);return kt.with(l,o,void 0,c)}};function Un(t){return t!==null&&typeof t=="object"&&"spanId"in t&&typeof t.spanId=="string"&&"traceId"in t&&typeof t.traceId=="string"&&"traceFlags"in t&&typeof t.traceFlags=="number"}s(Un,"isSpanContext");var Bn=new gr,Fn=class{static{s(this,"ProxyTracer")}constructor(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}startSpan(t,e,r){return this._getTracer().startSpan(t,e,r)}startActiveSpan(t,e,r,n){const i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Bn}},Gn=class{static{s(this,"NoopTracerProvider")}getTracer(t,e,r){return new gr}},zn=new Gn,Pe=class{static{s(this,"ProxyTracerProvider")}getTracer(t,e,r){var n;return(n=this.getDelegateTracer(t,e,r))!==null&&n!==void 0?n:new Fn(this,t,e,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:zn}setDelegate(t){this._delegate=t}getDelegateTracer(t,e,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,e,r)}},St;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(St||(St={}));var ct;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(ct||(ct={}));var $;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})($||($={}));var R=Pt.getInstance(),m=I.instance(),Vn=class{static{s(this,"NoopMeterProvider")}getMeter(t,e,r){return lr}},$n=new Vn,Ut="metrics",Hn=class mr{static{s(this,"MetricsAPI")}constructor(){}static getInstance(){return this._instance||(this._instance=new mr),this._instance}setGlobalMeterProvider(e){return lt(Ut,e,I.instance())}getMeterProvider(){return j(Ut)||$n}getMeter(e,r,n){return this.getMeterProvider().getMeter(e,r,n)}disable(){dt(Ut,I.instance())}},jn=Hn.getInstance(),qn=class{static{s(this,"NoopTextMapPropagator")}inject(t,e){}extract(t,e){return t}fields(){return[]}},_e=ue("OpenTelemetry Baggage Key");function vr(t){return t.getValue(_e)||void 0}s(vr,"getBaggage");function Kn(){return vr(Pt.getInstance().active())}s(Kn,"getActiveBaggage");function Yn(t,e){return t.setValue(_e,e)}s(Yn,"setBaggage");function Wn(t){return t.deleteValue(_e)}s(Wn,"deleteBaggage");var Bt="propagation",Xn=new qn,Qn=class Er{static{s(this,"PropagationAPI")}constructor(){this.createBaggage=cn,this.getBaggage=vr,this.getActiveBaggage=Kn,this.setBaggage=Yn,this.deleteBaggage=Wn}static getInstance(){return this._instance||(this._instance=new Er),this._instance}setGlobalPropagator(e){return lt(Bt,e,I.instance())}inject(e,r,n=On){return this._getGlobalPropagator().inject(e,r,n)}extract(e,r,n=Rn){return this._getGlobalPropagator().extract(e,r,n)}fields(){return this._getGlobalPropagator().fields()}disable(){dt(Bt,I.instance())}_getGlobalPropagator(){return j(Bt)||Xn}},D=Qn.getInstance(),Ft="trace",Jn=class Tr{static{s(this,"TraceAPI")}constructor(){this._proxyTracerProvider=new Pe,this.wrapSpanContext=kn,this.isSpanContextValid=wt,this.deleteSpan=Mn,this.getSpan=he,this.getActiveSpan=Nn,this.getSpanContext=hr,this.setSpan=fe,this.setSpanContext=xn}static getInstance(){return this._instance||(this._instance=new Tr),this._instance}setGlobalTracerProvider(e){const r=lt(Ft,this._proxyTracerProvider,I.instance());return r&&this._proxyTracerProvider.setDelegate(e),r}getTracerProvider(){return j(Ft)||this._proxyTracerProvider}getTracer(e,r){return this.getTracerProvider().getTracer(e,r)}disable(){dt(Ft,I.instance()),this._proxyTracerProvider=new Pe}},b=Jn.getInstance(),Sr=ue("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Zn(t){return t.setValue(Sr,!0)}s(Zn,"suppressTracing");function ge(t){return t.getValue(Sr)===!0}s(ge,"isTracingSuppressed");var Gt="baggage",ti=4096;function ei(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?",":""}${r}`;return n.length>8192?e:n},"")}s(ei,"serializeKeyPairs");function ri(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=";"+r.metadata.toString()),n})}s(ri,"getKeyPairs");function ni(t){if(!t)return;const e=t.indexOf(";"),r=e===-1?t:t.substring(0,e),n=r.indexOf("=");if(n<=0)return;const i=r.substring(0,n).trim(),a=r.substring(n+1).trim();if(!i||!a)return;let o,u;try{o=decodeURIComponent(i),u=decodeURIComponent(a)}catch{return}let c;if(e!==-1&&e<t.length-1){const l=t.substring(e+1);c=un(l)}return{key:o,value:u,metadata:c}}s(ni,"parsePairKeyValue");function we(t,e,r,n){let i=0;for(;i<t.length&&r<180;){const a=t.indexOf(",",i),o=a===-1?t.length:a,u=o-i;if(u<=4096){const c=ni(t.substring(i,o));if(c){const l=(r===0?0:1)+u;if(n+l>8192)break;e[c.key]=c.metadata?{value:c.value,metadata:c.metadata}:{value:c.value},r++,n+=l}}if(a===-1)break;i=a+1}return[r,n]}s(we,"parseBaggageHeaderString");var ii=class{static{s(this,"W3CBaggagePropagator")}inject(t,e,r){const n=D.getBaggage(t);if(!n||ge(t))return;const i=ri(n).filter(o=>o.length<=ti).slice(0,180),a=ei(i);a.length>0&&r.set(e,Gt,a)}extract(t,e,r){const n=r.get(e,Gt);if(!n)return t;const i={};let a=0,o=0;if(Array.isArray(n))for(let u=0;u<n.length;u++)[a,o]=we(n[u],i,a,o);else[a]=we(n,i,a,o);return a===0?t:D.setBaggage(t,D.createBaggage(i))}fields(){return[Gt]}};function it(t){const e={};if(typeof t!="object"||t==null)return e;for(const r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if(!si(r)){m.warn(`Invalid attribute key: ${r}`);continue}const n=t[r];if(!br(n)){m.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}s(it,"sanitizeAttributes");function si(t){return typeof t=="string"&&t!==""}s(si,"isAttributeKey");function br(t){return t==null?!0:Array.isArray(t)?ai(t):Ar(typeof t)}s(br,"isAttributeValue");function ai(t){let e;for(const r of t){if(r==null)continue;const n=typeof r;if(n!==e){if(!e){if(Ar(n)){e=n;continue}return!1}return!1}}return!0}s(ai,"isHomogeneousAttributeValueArray");function Ar(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}s(Ar,"isValidPrimitiveAttributeValueType");function oi(){return t=>{m.error(ci(t))}}s(oi,"loggingErrorHandler");function ci(t){return typeof t=="string"?t:JSON.stringify(ui(t))}s(ci,"stringifyException");function ui(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}s(ui,"flattenException");var li=oi();function K(t){try{li(t)}catch{}}s(K,"globalErrorHandler");var di="2.10.0",Zt="error.type",Le="exception.message",pi="exception.stacktrace",Ie="exception.type",hi="http.request.method",fi="http.request.method_original",_i="http.response.status_code",gi="server.address",mi="server.port",vi="service.name",te="telemetry.sdk.language",Ei="webjs",ee="telemetry.sdk.name",re="telemetry.sdk.version",Ti="url.full",Si="process.runtime.name",zt={[ee]:"opentelemetry",[Si]:"browser",[te]:Ei,[re]:di},H=performance,bi=9,Ai=Math.pow(10,6),bt=Math.pow(10,bi);function M(t){const e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*Ai)]}s(M,"millisToHrTime");function At(t){return Cr(M(H.timeOrigin),M(typeof t=="number"?t:H.now()))}s(At,"hrTime");function st(t){if(me(t))return t;if(typeof t=="number")return t<H.timeOrigin/2?At(t):M(t);if(t instanceof Date)return M(t.getTime());throw TypeError("Invalid input type")}s(st,"timeInputToHrTime");function Ci(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=bt),[r,n]}s(Ci,"hrTimeDuration");function x(t){return t[0]*bt+t[1]}s(x,"hrTimeToNanoseconds");function me(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}s(me,"isTimeInputHrTime");function Ne(t){return me(t)||typeof t=="number"||t instanceof Date}s(Ne,"isTimeInput");function Cr(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=bt&&(r[1]-=bt,r[0]+=1),r}s(Cr,"addHrTimes");var ne;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ne||(ne={}));var yi=class{static{s(this,"CompositePropagator")}_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[];const e=new Set;for(const r of this._propagators){const n=typeof r.fields=="function"?r.fields():[];for(const i of n)e.add(i)}this._fields=Array.from(e)}inject(t,e,r){for(const n of this._propagators)try{n.inject(t,e,r)}catch(i){m.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,e,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,e,r)}catch(a){m.warn(`Failed to extract with ${i.constructor.name}. Err: ${a.message}`)}return n},t)}fields(){return this._fields.slice()}},Vt="[_0-9a-z-*/]",Ri=new RegExp(`^(?:${`[a-z]${Vt}{0,255}`}|${`[a-z0-9]${Vt}{0,240}@[a-z]${Vt}{0,13}`})$`),Oi=/^[ -~]{0,255}[!-~]$/,Pi=/,|=/;function Me(t){return Ri.test(t)}s(Me,"validateKey");function xe(t){return Oi.test(t)&&!Pi.test(t)}s(xe,"validateValue");var wi=32,De=512,ke=",",Ue="=",Li=class yr{static{s(this,"TraceState")}_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState=typeof e=="string"?e:"",this._length=this._rawTraceState.length}set(e,r){if(!Me(e)||!xe(r))return this;const n=this._getState(),i=n.get(e);let a=this._length;if(typeof i=="string"?a+=r.length-i.length:a+=e.length+r.length+(n.size>0?2:1),a>De)return this;const o=new Map(n);return o.delete(e),o.set(e,r),this._fromState(o,a)}unset(e){const r=this._getState(),n=r.get(e);if(typeof n!="string")return this;let i=this._length-(e.length+n.length+1);r.size>1&&(i=i-1);const a=new Map(r);return a.delete(e),this._fromState(a,i)}get(e){return this._getState().get(e)}serialize(){let e="",r=0;for(const n of this._getState())r>0&&(e=ke+e),e=`${n[0]}${Ue}${n[1]}`+e,r++;return e}_getState(){if(this._internalState)return this._internalState;const e=this._rawTraceState.split(ke),r=new Map;let n=0;for(const i of e){const a=i.trim(),o=a.indexOf(Ue);if(o===-1)continue;const u=a.slice(0,o),c=a.slice(o+1);if(!Me(u)||!xe(c))continue;const l=n+a.length+(r.size>0?1:0);if(!(l>De)&&(r.set(u,c),n=l,r.size>=wi))break}return this._length=n,this._internalState=new Map(Array.from(r.entries()).reverse()),this._internalState}_fromState(e,r){const n=Object.create(yr.prototype);return n._internalState=e,n._length=r,n}},$t="traceparent",Ht="tracestate",Ii="00",Ni=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function Mi(t){const e=Ni.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}s(Mi,"parseTraceParent");var xi=class{static{s(this,"W3CTraceContextPropagator")}inject(t,e,r){const n=b.getSpanContext(t);if(!n||ge(t)||!wt(n))return;const i=`${Ii}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||U.NONE).toString(16)}`;r.set(e,$t,i),n.traceState&&r.set(e,Ht,n.traceState.serialize())}extract(t,e,r){const n=r.get(e,$t);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const a=Mi(i);if(!a)return t;a.isRemote=!0;const o=r.get(e,Ht);if(o){const u=Array.isArray(o)?o.join(","):o;a.traceState=new Li(typeof u=="string"?u:void 0)}return b.setSpanContext(t,a)}fields(){return[$t,Ht]}},Di="[object Object]",ki="[object Null]",Ui="[object Undefined]",Rr=Function.prototype.toString,Bi=Rr.call(Object),Fi=Object.getPrototypeOf,Or=Object.prototype,Pr=Or.hasOwnProperty,G=Symbol?Symbol.toStringTag:void 0,wr=Or.toString;function Be(t){if(!Gi(t)||zi(t)!==Di)return!1;const e=Fi(t);if(e===null)return!0;const r=Pr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Rr.call(r)===Bi}s(Be,"isPlainObject");function Gi(t){return t!=null&&typeof t=="object"}s(Gi,"isObjectLike");function zi(t){return t==null?t===void 0?Ui:ki:G&&G in Object(t)?Vi(t):$i(t)}s(zi,"baseGetTag");function Vi(t){const e=Pr.call(t,G),r=t[G];let n=!1;try{t[G]=void 0,n=!0}catch{}const i=wr.call(t);return n&&(e?t[G]=r:delete t[G]),i}s(Vi,"getRawTag");function $i(t){return wr.call(t)}s($i,"objectToString");var Hi=20;function ji(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=Lr(e,t.shift(),0,r);return e}s(ji,"merge");function jt(t){return Ct(t)?t.slice():t}s(jt,"takeValue");function Lr(t,e,r=0,n){let i;if(!(r>Hi)){if(r++,Tt(t)||Tt(e)||Ir(e))i=jt(e);else if(Ct(t)){if(i=t.slice(),Ct(e))for(let a=0,o=e.length;a<o;a++)i.push(jt(e[a]));else if(X(e)){const a=Object.keys(e);for(let o=0,u=a.length;o<u;o++){const c=a[o];c==="__proto__"||c==="constructor"||c==="prototype"||(i[c]=jt(e[c]))}}}else if(X(t))if(X(e)){if(!qi(t,e))return e;i=Object.assign({},t);const a=Object.keys(e);for(let o=0,u=a.length;o<u;o++){const c=a[o];if(c==="__proto__"||c==="constructor"||c==="prototype")continue;const l=e[c];if(Tt(l))typeof l>"u"?delete i[c]:i[c]=l;else{const h=i[c],_=l;if(Fe(t,c,n)||Fe(e,c,n))delete i[c];else{if(X(h)&&X(_)){const f=n.get(h)||[],d=n.get(_)||[];f.push({obj:t,key:c}),d.push({obj:e,key:c}),n.set(h,f),n.set(_,d)}i[c]=Lr(i[c],l,r,n)}}}}else i=e;return i}}s(Lr,"mergeTwoObjects");function Fe(t,e,r){const n=r.get(t[e])||[];for(let i=0,a=n.length;i<a;i++){const o=n[i];if(o.key===e&&o.obj===t)return!0}return!1}s(Fe,"wasObjectReferenced");function Ct(t){return Array.isArray(t)}s(Ct,"isArray");function Ir(t){return typeof t=="function"}s(Ir,"isFunction");function X(t){return!Tt(t)&&!Ct(t)&&!Ir(t)&&typeof t=="object"}s(X,"isObject");function Tt(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}s(Tt,"isPrimitive");function qi(t,e){return!(!Be(t)||!Be(e))}s(qi,"shouldMerge");function Nr(t,e){return typeof e=="string"?t===e:!!t.match(e)}s(Nr,"urlMatches");function Ki(t,e){if(!e)return!1;for(const r of e)if(Nr(t,r))return!0;return!1}s(Ki,"isUrlIgnored");var Yi=class{static{s(this,"Deferred")}_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}},Wi=class{static{s(this,"BindOnceFuture")}_isCalled=!1;_deferred=new Yi;_callback;_that;constructor(t,e){this._callback=t,this._that=e}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}},gt;function Xi(){if(gt===void 0)try{const t=globalThis.process.argv0;gt=t?`unknown_service:${t}`:"unknown_service"}catch{gt="unknown_service"}return gt}s(Xi,"defaultServiceName");var et=s(t=>t!==null&&typeof t=="object"&&typeof t.then=="function","isPromiseLike"),Qi=class ie{static{s(this,"ResourceImpl")}_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,r){const n=new ie({},r);return n._rawAttributes=Ge(e),n._asyncAttributesPending=e.filter(([i,a])=>et(a)).length>0,n}constructor(e,r){const n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([i,a])=>(et(a)&&(this._asyncAttributesPending=!0),[i,a])),this._rawAttributes=Ge(this._rawAttributes),this._schemaUrl=Zi(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,et(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&m.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(et(n)){m.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;const r=ts(this,e),n=r?{schemaUrl:r}:void 0;return ie.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],n)}};function ve(t,e){return Qi.FromAttributeList(Object.entries(t),e)}s(ve,"resourceFromAttributes");function Ji(){return ve({[vi]:Xi(),[te]:zt[te],[ee]:zt[ee],[re]:zt[re]})}s(Ji,"defaultResource");function Ge(t){return t.map(([e,r])=>et(r)?[e,r.catch(n=>{m.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}s(Ge,"guardedRawAttributes");function Zi(t){if(typeof t=="string"||t===void 0)return t;m.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}s(Zi,"validateSchemaUrl");function ts(t,e){const r=t?.schemaUrl,n=e?.schemaUrl,i=r===void 0||r==="",a=n===void 0||n==="";if(i)return n;if(a||r===n)return r;m.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,n)}s(ts,"mergeSchemaUrl");var es="exception",Ee=Symbol.for("nodejs.util.inspect.custom");function Te(t){const e={};for(const[r,n]of t.getRawAttributes())typeof n?.then!="function"&&n!=null&&(e[r]??=n);return e}s(Te,"settledResourceAttributes");function Se(t,e,r,n,i){if(typeof r=="number"&&r<0){const a=`[${t}]`;return n?.stylize?n.stylize(a,"special"):a}return typeof i!="function"||!n?e:`${t} ${i(e,{...n,depth:n.depth==null?n.depth:n.depth-1})}`}s(Se,"formatInspect");var rs=class{static{s(this,"SpanImpl")}_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:$.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const e=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=H.now(),this._performanceOffset=e-(this._performanceStartTime+H.timeOrigin),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,t.links)for(const r of t.links)this.addLink(r);this.startTime=this._getTime(t.startTime??e),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,e){if(e==null||this._isSpanEnded())return this;if(t.length===0)return m.warn(`Invalid attribute key: ${t}`),this;if(!br(e))return m.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits,n=!Object.prototype.hasOwnProperty.call(this.attributes,t);return r!==void 0&&this._attributesCount>=r&&n?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),n&&this._attributesCount++,this)}setAttributes(t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&this.setAttribute(e,t[e]);return this}addEvent(t,e,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return m.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&m.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Ne(e)&&(Ne(r)||(r=e),e=void 0);const i=it(e),{attributePerEventCountLimit:a}=this._spanLimits,o={};let u=0,c=0;for(const l in i){if(!Object.prototype.hasOwnProperty.call(i,l))continue;const h=i[l];if(a!==void 0&&c>=a){u++;continue}o[l]=this._truncateToSize(h),c++}return this.events.push({name:t,attributes:o,time:this._getTime(r),droppedAttributesCount:u}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:e}=this._spanLimits;if(e===0)return this._droppedLinksCount++,this;e!==void 0&&this.links.length>=e&&(this._droppedLinksCount===0&&m.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:r}=this._spanLimits,n=it(t.attributes),i={};let a=0,o=0;for(const c in n){if(!Object.prototype.hasOwnProperty.call(n,c))continue;const l=n[c];if(r!==void 0&&o>=r){a++;continue}i[c]=this._truncateToSize(l),o++}const u={context:t.context};return o>0&&(u.attributes=i),a>0&&(u.droppedAttributesCount=a),this.links.push(u),this}addLinks(t){for(const e of t)this.addLink(e);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===$.UNSET)return this;if(this.status.code===$.OK)return this;const e={code:t.code};return t.code===$.ERROR&&(typeof t.message=="string"?e.message=t.message:t.message!=null&&m.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=e,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){m.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=Ci(this.startTime,this.endTime),this._duration[0]<0&&(m.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&m.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&m.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=H.now())return At(t+this._performanceOffset);if(typeof t=="number")return M(t);if(t instanceof Date)return M(t.getTime());if(me(t))return t;if(this._startTimeProvided)return M(Date.now());const e=H.now()-this._performanceStartTime;return Cr(this.startTime,M(e))}isRecording(){return this._ended===!1}recordException(t,e){const r={};typeof t=="string"?r[Le]=t:t&&(t.code?r[Ie]=t.code.toString():t.name&&(r[Ie]=t.name),t.message&&(r[Le]=t.message),t.stack&&(r[pi]=t.stack)),r["exception.type"]||r["exception.message"]?this.addEvent(es,r,e):m.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);m.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_truncateToSize(t){const e=this._attributeValueLengthLimit;return e<=0?(m.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,e):r):t}[Ee](t,e,r){const n={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Te(this.resource)}};return Se("SpanImpl",n,t,e,r)}},w;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(w||(w={}));var ns="otel.component.name",is="otel.component.type",ss="otel.span.parent.origin",ze="otel.span.sampling_result",as="otel.sdk.processor.span.processed",os="otel.sdk.processor.span.queue.capacity",cs="otel.sdk.processor.span.queue.size",us="otel.sdk.span.live",ls="otel.sdk.span.started",ds="batching_span_processor",ps=class{static{s(this,"TracerMetrics")}startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(ls,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(us,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,e){const r=fs(e);if(this.startedSpans.add(1,{[ss]:hs(t),[ze]:r}),e===w.NOT_RECORD)return()=>{};const n={[ze]:r};return this.liveSpans.add(1,n),()=>{this.liveSpans.add(-1,n)}}};function hs(t){return t?t.isRemote?"remote":"local":"none"}s(hs,"parentOrigin");function fs(t){switch(t){case w.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case w.RECORD:return"RECORD_ONLY";case w.NOT_RECORD:return"DROP"}}s(fs,"samplingDecisionToString");var _s="2.10.0",gs=class{static{s(this,"Tracer")}_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,e){this.instrumentationScope=t,this._sampler=e.sampler,this._spanLimits=e.spanLimits,this._resource=e.resource,this._idGenerator=e.idGenerator,this._spanProcessor=e.spanProcessor;const r=e.meterProvider.getMeter("@opentelemetry/sdk-trace",_s);this._tracerMetrics=new ps(r)}startSpan(t,e={},r=R.active()){e.root&&(r=b.deleteSpan(r));const n=b.getSpan(r);if(ge(r))return m.debug("Instrumentation suppressed, returning Noop Span"),b.wrapSpanContext(de);const i=n?.spanContext(),a=this._idGenerator.generateSpanId();let o,u,c;!i||!b.isSpanContextValid(i)?u=this._idGenerator.generateTraceId():(u=i.traceId,c=i.traceState,o=i);const l=e.kind??ct.INTERNAL,h=(e.links??[]).map(S=>({context:S.context,attributes:it(S.attributes)})),_=it(e.attributes),f=this._sampler.shouldSample(r,u,t,l,_,h),d=this._tracerMetrics.startSpan(i,f.decision);c=f.traceState??c;const p=f.decision===St.RECORD_AND_SAMPLED?U.SAMPLED:U.NONE,g={traceId:u,spanId:a,traceFlags:p,traceState:c};if(f.decision===St.NOT_RECORD)return m.debug("Recording is off, propagating context in a non-recording span"),b.wrapSpanContext(g);const T=it(Object.assign(_,f.attributes));return new rs({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:g,name:t,kind:l,links:h,parentSpanContext:o,attributes:T,startTime:e.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:d})}startActiveSpan(t,e,r,n){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=e:arguments.length===3?(i=e,o=r):(i=e,a=r,o=n);const u=a??R.active(),c=this.startSpan(t,i,u),l=b.setSpan(u,c);return R.with(l,o,void 0,c)}[Ee](t,e,r){const n={instrumentationScope:this.instrumentationScope,resource:{attributes:Te(this._resource)},spanLimits:this._spanLimits};return Se("Tracer",n,t,e,r)}},ms=class{static{s(this,"MultiSpanProcessor")}_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const e of this._spanProcessors)t.push(e.forceFlush());return new Promise(e=>{Promise.all(t).then(()=>{e()}).catch(r=>{K(r||new Error("MultiSpanProcessor: forceFlush failed")),e()})})}onStart(t,e){for(const r of this._spanProcessors)r.onStart(t,e)}onEnding(t){for(const e of this._spanProcessors)e.onEnding&&e.onEnding(t)}onEnd(t){for(const e of this._spanProcessors)e.onEnd(t)}shutdown(){const t=[];for(const e of this._spanProcessors)t.push(e.shutdown());return new Promise((e,r)=>{Promise.all(t).then(()=>{e()},r)})}},yt=class{static{s(this,"AlwaysOffSampler")}shouldSample(){return{decision:w.NOT_RECORD}}toString(){return"AlwaysOffSampler"}},F=class{static{s(this,"AlwaysOnSampler")}shouldSample(){return{decision:w.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}},rt=class{static{s(this,"ParentBasedSampler")}_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(K(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new F),this._remoteParentSampled=t.remoteParentSampled??new F,this._remoteParentNotSampled=t.remoteParentNotSampled??new yt,this._localParentSampled=t.localParentSampled??new F,this._localParentNotSampled=t.localParentNotSampled??new yt}shouldSample(t,e,r,n,i,a){const o=b.getSpanContext(t);return!o||!wt(o)?this._root.shouldSample(t,e,r,n,i,a):o.isRemote?o.traceFlags&U.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,i,a):this._remoteParentNotSampled.shouldSample(t,e,r,n,i,a):o.traceFlags&U.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,i,a):this._localParentNotSampled.shouldSample(t,e,r,n,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}},Ve=new Map,vs=class{static{s(this,"SpanProcessorMetrics")}processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(t,e,r){const n=Ve.get(t)??0;if(Ve.set(t,n+1),this.standardAttrs={[is]:t,[ns]:`${t}/${n}`},this.droppedAttrs={...this.standardAttrs,[Zt]:"queue_full"},this.processedSpans=e.createCounter(as,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),r){const{capacity:i,getQueueSize:a}=r;e.createUpDownCounter(os,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(i,this.standardAttrs),this.queueSize=e.createObservableUpDownCounter(cs,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=o=>o.observe(a(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(t){this.processedSpans.add(t,this.droppedAttrs)}finishSpans(t,e){if(!e){this.processedSpans.add(t,this.standardAttrs);return}const r={...this.standardAttrs,[Zt]:e.name};this.processedSpans.add(t,r)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}},Es=class{static{s(this,"BatchSpanProcessorBase")}_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t){this._exporter=t.exporter,this._maxExportBatchSize=t.maxExportBatchSize??512,this._maxQueueSize=t.maxQueueSize??2048,this._scheduledDelayMillis=t.scheduledDelayMillis??5e3,this._exportTimeoutMillis=t.exportTimeoutMillis??3e4,this._shutdownOnce=new Wi(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(m.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize);const e=t.selfObsMeterProvider?t.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):dr();this._metrics=new vs(ds,e,{capacity:this._maxQueueSize,getQueueSize:s(()=>this._finishedSpans.length,"getQueueSize")})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,e){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&U.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&m.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++,this._metrics.dropSpans(1);return}this._droppedSpansCount>0&&(m.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,e)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,a=n;i<a;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(e)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,e)=>{const r=setTimeout(()=>{e(new Error("Timeout"))},this._exportTimeoutMillis);R.with(Zn(R.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=s(()=>this._exporter.export(n,o=>{clearTimeout(r),this._metrics.finishSpans(n.length,o.error),o.code===ne.SUCCESS?t():e(o.error??new Error("BatchSpanProcessor: span export failed"))}),"doExport");let a=null;for(let o=0,u=n.length;o<u;o++){const c=n[o];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(a??=[],a.push(c.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,o=>{K(o),e(o)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=s(()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,K(e)})},"flush");if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},Ts=class extends Es{static{s(this,"BatchSpanProcessor$1")}_visibilityChangeListener;_pageHideListener;constructor(t){super(t),this.onInit(t)}onInit(t){t.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(e=>{K(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{K(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}},Ss=16,bs=8,$e=new Uint8Array(Ss),He=new Uint8Array(bs),As=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function je(t){for(let e=0;e<t.length;e++)t[e]=Math.random()*256>>>0;for(let e=0;e<t.length;e++)if(t[e]>0)return;t[t.length-1]=1}s(je,"randomFill");function qe(t){let e="";for(let r=0;r<t.length;r++)e+=As[t[r]];return e}s(qe,"toHex");var Cs=class{static{s(this,"RandomIdGenerator")}generateTraceId(){return je($e),qe($e)}generateSpanId(){return je(He),qe(He)}},z;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(z||(z={}));var ys=class{static{s(this,"TracerProvider")}_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(t={}){this._forceFlushTimeoutMillis=t.forceFlushTimeoutMillis??3e4,this._resource=t.resource??Ji();const e=t.spanProcessors??[];this._activeSpanProcessor=new ms(e),this._tracerOptions={resource:this._resource,sampler:t.sampler??new rt({root:new F}),spanLimits:{attributeCountLimit:t.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:t.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:t.spanLimits?.eventCountLimit??128,linkCountLimit:t.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:t.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:t.spanLimits?.attributePerLinkCountLimit??128},idGenerator:t.idGenerator||new Cs,spanProcessor:this._activeSpanProcessor,meterProvider:t.meterProvider??{getMeter(){return dr()}}}}getTracer(t,e,r){const n=`${t}@${e||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new gs({name:t,version:e,schemaUrl:r?.schemaUrl},this._tracerOptions)),this._tracers.get(n)}forceFlush(){const t=this._forceFlushTimeoutMillis,e=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const a=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=z.timeout},t);r.forceFlush().then(()=>{clearTimeout(a),i!==z.timeout&&(i=z.resolved,n(i))}).catch(o=>{clearTimeout(a),i=z.error,n(o)})}));return new Promise((r,n)=>{Promise.all(e).then(i=>{const a=i.filter(o=>o!==z.resolved);a.length>0?n(a):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Ee](t,e,r){const n=this._activeSpanProcessor._spanProcessors,i={resource:{attributes:Te(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:n.map(a=>a.constructor?.name??"SpanProcessor")};return Se("TracerProvider",i,t,e,r)}},Ke=class{static{s(this,"TraceIdRatioBasedSampler")}_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=this._ratio===1?4294967296:Math.floor(this._ratio*4294967295)}shouldSample(t,e){return{decision:_r(e)&&this._accumulate(e)<this._upperBound?w.RECORD_AND_SAMPLED:w.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let r=0;r<32;r+=8){let n=0;for(let i=0;i<8;i++){const a=t.charCodeAt(r+i),o=a<58?a-48:a<71?a-55:a-87;n=n<<4|o}e=(e^n)>>>0}return e}},P;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(P||(P={}));var mt=1;function Rs(){return{sampler:Os(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:void 0??1/0,attributeCountLimit:void 0??128},spanLimits:{attributeValueLengthLimit:void 0??1/0,attributeCountLimit:void 0??128,linkCountLimit:void 0??128,eventCountLimit:void 0??128,attributePerEventCountLimit:void 0??128,attributePerLinkCountLimit:void 0??128}}}s(Rs,"loadDefaultConfig");function Os(){const t=void 0??P.ParentBasedAlwaysOn;switch(t){case P.AlwaysOn:return new F;case P.AlwaysOff:return new yt;case P.ParentBasedAlwaysOn:return new rt({root:new F});case P.ParentBasedAlwaysOff:return new rt({root:new yt});case P.TraceIdRatio:return new Ke(Ye());case P.ParentBasedTraceIdRatio:return new rt({root:new Ke(Ye())});default:return m.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "${P.ParentBasedAlwaysOn}".`),new rt({root:new F})}}s(Os,"buildSamplerFromEnv");function Ye(){const t=void 0;return t==null?(m.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${mt}.`),mt):t<0||t>1?(m.error(`OTEL_TRACES_SAMPLER_ARG=${t} was given, but it is out of range ([0..1]), defaulting to ${mt}.`),mt):t}s(Ye,"getSamplerProbabilityFromEnv");function Ps(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??128,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??1/0,Object.assign({},t,{spanLimits:e})}s(Ps,"reconfigureLimits");var ws=class extends ys{static{s(this,"BasicTracerProvider")}constructor(t={}){const e=ji({},Rs(),Ps(t));delete e.generalLimits,super(e)}},Ls=class extends Ts{static{s(this,"BatchSpanProcessor")}constructor(t,e){e||(e={});for(const[r,n]of[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]])if(e[r]===void 0){const i=void 0;i!==void 0&&(e[r]=i)}super({exporter:t,...e})}},Mr=class{static{s(this,"StackContextManager")}_enabled=!1;_currentContext=B;_bindFunction(t=B,e){const r=this,n=s(function(...i){return r.with(t,()=>e.apply(this,i))},"contextWrapper");return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),n}active(){return this._currentContext}bind(t,e){return t===void 0&&(t=this.active()),typeof e=="function"?this._bindFunction(t,e):e}disable(){return this._currentContext=B,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=B,this)}with(t,e,r,...n){const i=this._currentContext;this._currentContext=t||B;try{return e.call(r,...n)}finally{this._currentContext=i}}};function Is(t){if(t!==null){if(t===void 0){const e=new Mr;e.enable(),R.setGlobalContextManager(e);return}t.enable(),R.setGlobalContextManager(t)}}s(Is,"setupContextManager");function Ns(t){if(t!==null){if(t===void 0){D.setGlobalPropagator(new yi({propagators:[new xi,new ii]}));return}D.setGlobalPropagator(t)}}s(Ns,"setupPropagator");var Ms=class extends ws{static{s(this,"WebTracerProvider")}constructor(t={}){super(t)}register(t={}){b.setGlobalTracerProvider(this),Ns(t.propagator),Is(t.contextManager)}},E;(function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.START_TIME="startTime",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"})(E||(E={}));var xs="http.response_content_length",Ds="http.response_content_length_uncompressed",qt;function ks(){return qt||(qt=document.createElement("a")),qt}s(ks,"getUrlNormalizingAnchor");function Us(t,e){return e in t}s(Us,"hasKey");function N(t,e,r,n=!0){if(Us(r,e)&&typeof r[e]=="number"&&!(n&&r[e]===0))return t.addEvent(e,r[e])}s(N,"addSpanNetworkEvent");function We(t,e,r=!1,n,i){if(n===void 0&&(n=e[E.START_TIME]!==0),r||(N(t,E.FETCH_START,e,n),N(t,E.DOMAIN_LOOKUP_START,e,n),N(t,E.DOMAIN_LOOKUP_END,e,n),N(t,E.CONNECT_START,e,n),N(t,E.SECURE_CONNECTION_START,e,n),N(t,E.CONNECT_END,e,n),N(t,E.REQUEST_START,e,n),N(t,E.RESPONSE_START,e,n),N(t,E.RESPONSE_END,e,n)),!i){const a=e[E.ENCODED_BODY_SIZE];a!==void 0&&t.setAttribute(xs,a);const o=e[E.DECODED_BODY_SIZE];o!==void 0&&a!==o&&t.setAttribute(Ds,o)}}s(We,"addSpanNetworkEvents");function Bs(t){return t.slice().sort((e,r)=>{const n=e[E.FETCH_START],i=r[E.FETCH_START];return n>i?1:n<i?-1:0})}s(Bs,"sortResources");function xr(){return typeof location<"u"?location.origin:void 0}s(xr,"getOrigin");function Fs(t,e,r,n,i=new WeakSet,a){const o=Rt(t);t=o.toString();const u=zs(t,e,r,n,i,a);if(u.length===0)return{mainRequest:void 0};if(u.length===1)return{mainRequest:u[0]};const c=Bs(u);if(o.origin!==xr()&&c.length>1){let l=c[0],h=Gs(c,l[E.RESPONSE_END],r);const _=l[E.RESPONSE_END];return h[E.FETCH_START]<_&&(h=l,l=void 0),{corsPreFlightRequest:l,mainRequest:h}}else return{mainRequest:u[0]}}s(Fs,"getResource");function Gs(t,e,r){const n=x(r),i=x(st(e));let a=t[1],o;const u=t.length;for(let c=1;c<u;c++){const l=t[c],h=x(st(l[E.FETCH_START])),_=n-x(st(l[E.RESPONSE_END]));h>=i&&(!o||_<o)&&(o=_,a=l)}return a}s(Gs,"findMainRequest");function zs(t,e,r,n,i,a){const o=x(e),u=x(r);let c=n.filter(l=>{const h=x(st(l[E.FETCH_START])),_=x(st(l[E.RESPONSE_END]));return l.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&l.name===t&&h>=o&&_<=u});return c.length>0&&(c=c.filter(l=>!i.has(l))),c}s(zs,"filterResourcesForSpan");function Rt(t){if(typeof URL=="function")return new URL(t,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const e=ks();return e.href=t,e}s(Rt,"parseUrl");function Vs(t,e){let r=e||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),Rt(t).origin===xr()?!0:r.some(n=>Nr(t,n))}s(Vs,"shouldPropagateTraceHeaders");var Dr=class{static{s(this,"NoopLogger")}emit(t){}enabled(){return!1}},$s=new Dr,vt=Symbol.for("io.opentelemetry.js.api.logs"),Q=globalThis;function Hs(t,e,r){return n=>n===t?e:r}s(Hs,"makeGetter");var js=class{static{s(this,"NoopLoggerProvider")}getLogger(t,e,r){return new Dr}},kr=new js,qs=class{static{s(this,"ProxyLogger")}constructor(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}enabled(t){return this._getLogger().enabled(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider._getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):$s}},Xe=class{static{s(this,"ProxyLoggerProvider")}getLogger(t,e,r){var n;return(n=this._getDelegateLogger(t,e,r))!==null&&n!==void 0?n:new qs(this,t,e,r)}_getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:kr}_setDelegate(t){this._delegate=t}_getDelegateLogger(t,e,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,e,r)}},Ks=class Ur{static{s(this,"LogsAPI")}constructor(){this._proxyLoggerProvider=new Xe}static getInstance(){return this._instance||(this._instance=new Ur),this._instance}setGlobalLoggerProvider(e){return Q[vt]?this.getLoggerProvider():(Q[vt]=Hs(1,e,kr),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Q[vt])===null||e===void 0?void 0:e.call(Q,1))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Q[vt],this._proxyLoggerProvider=new Xe}},Ys=Ks.getInstance(),C=(()=>{}).bind(console);function J(t,e,r){const n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}s(J,"defineProperty");var be=s((t,e,r)=>{if(!t||!t[e]){C("no original function "+String(e)+" to wrap");return}if(!r){C("no wrapper function"),C(new Error().stack);return}const n=t[e];if(typeof n!="function"||typeof r!="function"){C("original object and wrapper must be functions");return}const i=r(n,e);return J(i,"__original",n),J(i,"__unwrap",()=>{t[e]===i&&J(t,e,n)}),J(i,"__wrapped",!0),J(t,e,i),i},"wrap"),Br=s((t,e,r)=>{if(t)Array.isArray(t)||(t=[t]);else{C("must provide one or more modules to patch"),C(new Error().stack);return}if(!(e&&Array.isArray(e))){C("must provide one or more functions to wrap on modules");return}t.forEach(n=>{e.forEach(i=>{be(n,i,r)})})},"massWrap"),Ae=s((t,e)=>{if(!t||!t[e]){C("no function to unwrap."),C(new Error().stack);return}const r=t[e];if(!r.__unwrap)C("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{r.__unwrap();return}},"unwrap"),Fr=s((t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{C("must provide one or more modules to patch"),C(new Error().stack);return}if(!(e&&Array.isArray(e))){C("must provide one or more functions to unwrap on modules");return}t.forEach(r=>{e.forEach(n=>{Ae(r,n)})})},"massUnwrap");function Lt(t){t&&t.logger&&(typeof t.logger!="function"?C("new logger isn't a function, not replacing"):C=t.logger)}s(Lt,"shimmer");Lt.wrap=be;Lt.massWrap=Br;Lt.unwrap=Ae;Lt.massUnwrap=Fr;var Ws=class{static{s(this,"InstrumentationAbstract")}_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(t,e,r){this.instrumentationName=t,this.instrumentationVersion=e,this.setConfig(r),this._diag=m.createComponentLogger({namespace:t}),this._tracer=b.getTracer(t,e),this._meter=jn.getMeter(t,e),this._logger=Ys.getLogger(t,e),this._updateMetricInstruments()}_wrap=be;_unwrap=Ae;_massWrap=Br;_massUnwrap=Fr;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,e,r,n){if(t)try{t(r,n)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:e},i)}}},Xs=class extends Ws{static{s(this,"InstrumentationBase")}constructor(t,e,r){super(t,e,r),this._config.enabled&&this.enable()}};function Qe(t,e,r){let n,i;try{i=t()}catch(a){n=a}finally{if(e(n,i),n&&!r)throw n;return i}}s(Qe,"safeExecuteInTheMiddle");var Qs="http.request.body.size",Gr=m.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function Js(...t){if(t[0]instanceof URL||typeof t[0]=="string"){const e=t[1];if(!e?.body)return Promise.resolve();if(e.body instanceof ReadableStream){const{body:r,length:n}=Zs(e.body);return e.body=r,n}else return Promise.resolve(ea(e.body))}else{const e=t[0];return e?.body?e.clone().text().then(r=>se(r)):Promise.resolve()}}s(Js,"getFetchBodyLength");function Zs(t){if(!t.pipeThrough)return Gr.warn("Platform has ReadableStream but not pipeThrough!"),{body:t,length:Promise.resolve(void 0)};let e=0,r;const n=new Promise(a=>{r=a}),i=new TransformStream({start(){},async transform(a,o){const u=await a;e+=u.byteLength,o.enqueue(a)},flush(){r(e)}});return{body:t.pipeThrough(i),length:n}}s(Zs,"_getBodyNonDestructively");function ta(t){return typeof Document<"u"&&t instanceof Document}s(ta,"isDocument");function ea(t){if(ta(t))return new XMLSerializer().serializeToString(document).length;if(typeof t=="string")return se(t);if(t instanceof Blob)return t.size;if(t instanceof FormData)return na(t);if(t instanceof URLSearchParams)return se(t.toString());if(t.byteLength!==void 0)return t.byteLength;Gr.warn("unknown body type")}s(ea,"getXHRBodyLength");var ra=new TextEncoder;function se(t){return ra.encode(t).byteLength}s(se,"getByteLength");function na(t){let e=0;for(const[r,n]of t.entries())e+=r.length,n instanceof Blob?e+=n.size:e+=n.length;return e}s(na,"getFormDataSize");function ia(t){const e=aa(),r=t.toUpperCase();return r in e?r:"_OTHER"}s(ia,"normalizeHttpRequestMethod");var sa={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},Z;function aa(){if(Z===void 0){const t=void 0;t&&t.length>0?(Z={},t.forEach(e=>{Z[e]=!0})):Z=sa}return Z}s(aa,"getKnownMethods");var oa={"https:":"443","http:":"80"};function ca(t){const e=Number(t.port||oa[t.protocol]);if(e&&!isNaN(e))return e}s(ca,"serverPortFromUrl");var Je="0.221.0",ua=300,Ze=typeof PerformanceObserver<"u",la=class extends Xs{static{s(this,"FetchInstrumentation")}component="fetch";version=Je;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;constructor(t={}){super("@opentelemetry/instrumentation-fetch",Je,t)}init(){}_addChildSpan(t,e){const r=this.tracer.startSpan("CORS Preflight",{startTime:e[E.FETCH_START]},b.setSpan(R.active(),t));We(r,e,this.getConfig().ignoreNetworkEvents,void 0,!0),r.end(e[E.RESPONSE_END])}_addFinalSpanAttributes(t,e){const r=Rt(e.url);t.setAttribute(_i,e.status),t.setAttribute(gi,r.hostname);const n=ca(r);n&&t.setAttribute(mi,n)}_addHeaders(t,e){if(!Vs(e,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};D.inject(R.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)D.inject(R.active(),t.headers,{set:s((r,n,i)=>r.set(n,typeof i=="string"?i:String(i)),"set")});else{const r=new Headers(t.headers);D.inject(R.active(),r,{set:s((n,i,a)=>n.set(i,typeof a=="string"?a:String(a)),"set")}),t.headers=r}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,e={}){if(Ki(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}const r={},n=e.method,i=ia(e.method||"GET"),a=i;return r[hi]=i,i!==n&&(r[fi]=n),r[Ti]=t,this.tracer.startSpan(a,{kind:ct.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(t,e,r){let n=e.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}const i=Fs(e.spanUrl,e.startTime,r,n,this._usedResources,"fetch");if(i.mainRequest){const a=i.mainRequest;this._markResourceAsUsed(a);const o=i.corsPreFlightRequest;o&&(this._addChildSpan(t,o),this._markResourceAsUsed(o)),We(t,a,this.getConfig().ignoreNetworkEvents,void 0,!0)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,e,r){const n=M(Date.now()),i=At();this._addFinalSpanAttributes(t,r),r.status>=400&&(t.setStatus({code:$.ERROR}),t.setAttribute(Zt,String(r.status))),setTimeout(()=>{e.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,e,i),this._tasksCount--,this._clearResources(),t.end(n)},ua)}_patchConstructor(){return t=>{const e=this;return s(function(...n){if(!e._isEnabled)return t.apply(this,n);const i=this,a=Rt(n[0]instanceof Request?n[0].url:String(n[0])).href;let o;n[0]instanceof Request?o=n[1]!=null?new Request(n[0],n[1]):n[0]:o=n[1]||{};const u=e._createSpan(a,o);if(!u)return t.apply(this,n);const c=e._prepareSpanData(a);e.getConfig().measureRequestSize&&Js(...n).then(d=>{d&&u.setAttribute(Qs,d)}).catch(d=>{e._diag.warn("getFetchBodyLength",d)});function l(d,p){e._applyAttributesAfterFetch(d,o,p),e._endSpan(d,c,{status:p.status||0,statusText:p.message,url:a})}s(l,"endSpanOnError");function h(d,p){e._applyAttributesAfterFetch(d,o,p),p.status>=200&&p.status<400?e._endSpan(d,c,p):e._endSpan(d,c,{status:p.status,statusText:p.statusText,url:a})}s(h,"endSpanOnSuccess");function _(d,p){try{const g=p.clone().body;if(g){const T=g.getReader(),S=s(()=>{T.read().then(({done:y})=>{y?h(d,p):S()},y=>{l(d,y)})},"read");S()}else h(d,p)}catch(g){e._diag.error("Failed to read fetch response body",g),e._endSpan(d,c,{status:0,url:a})}return p}s(_,"onSuccess");function f(d,p){try{l(d,p)}catch(g){e._diag.error("Failed to end span on fetch error",g),e._endSpan(d,c,{status:p.status||0,url:a})}throw p}return s(f,"onError"),R.with(b.setSpan(R.active(),u),()=>(e._callRequestHook(u,o),e._addHeaders(o,a),e._tasksCount++,t.apply(i,o instanceof Request?[o]:[a,o]).then(_.bind(i,u),f.bind(i,u))))},"patchConstructor")}}_applyAttributesAfterFetch(t,e,r){const n=this.getConfig().applyCustomAttributesOnSpan;n&&Qe(()=>n(t,e,r),i=>{i&&this._diag.error("applyCustomAttributesOnSpan",i)},!0)}_callRequestHook(t,e){const r=this.getConfig().requestHook;r&&Qe(()=>r(t,e),n=>{n&&this._diag.error("requestHook",n)},!0)}_prepareSpanData(t){const e=At(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:e,spanUrl:t};const n=new PerformanceObserver(i=>{i.getEntries().forEach(a=>{a.initiatorType==="fetch"&&a.name===t&&r.push(a)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:e,spanUrl:t}}enable(){if(!Ze){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument server-side fetch()");return}if(!this._isEnabled){if(this._isFetchPatched){this._diag.debug("fetch constructor already patched"),this._isEnabled=!0;return}try{this._wrap(globalThis,"fetch",this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(t){this._diag.warn("Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.",t)}}}disable(){Ze&&this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}},zr=-1,pt=s(()=>zr,"n"),ht=s(t=>{addEventListener("pageshow",e=>{e.persisted&&(zr=e.timeStamp,t(e))},!0)},"e"),L=s((t,e,r,n)=>{let i,a;return o=>{e.value>=0&&(o||n)&&(a=e.value-(i??0),(a||i===void 0)&&(i=e.value,e.delta=a,e.rating=((u,c)=>u>c[1]?"poor":u>c[0]?"needs-improvement":"good")(e.value,r),t(e)))}},"i"),Ce=s(t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},"o"),Vr=s(()=>{const t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},"s"),It=s(()=>Vr()?.activationStart??0,"a"),V=-1,$r=new Set,tr=s(()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,"f"),ae=s(t=>{if(document.visibilityState==="hidden"){if(t.type==="visibilitychange")for(const e of $r)e();isFinite(V)||(V=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("prerenderingchange",ae,!0))}},"h"),ut=s((t=!1)=>{if(t&&(V=1/0),V<0){const e=It();V=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??tr(),addEventListener("visibilitychange",ae,!0),addEventListener("prerenderingchange",ae,!0),ht(()=>{setTimeout(()=>{V=tr()})})}return{get firstHiddenTime(){return V},onHidden(e){$r.add(e)}}},"d"),k=s((t,e=-1,r,n=0,i,a,o)=>{const u=Vr(),c=u?.navigationId||0;let l="navigate";return r?l=r:pt()>=0?l="back-forward-cache":u&&(document.prerendering||It()>0?l="prerender":document.wasDiscarded?l="restore":u.type&&(l=u.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:l,navigationId:n||c,navigationInteractionId:i,navigationURL:a||u?.name,navigationStartTime:o||0}},"l"),er=new WeakMap;function Nt(t,e){let r=er.get(e);return r||(r=new WeakMap,er.set(e,r)),r.get(t)||r.set(t,new e),r.get(t)}s(Nt,"u");var da=class{static{s(this,"v")}t;i=0;o=[];h(t){if(t.hadRecentInput)return;const e=this.o[0],r=this.o.at(-1);this.i&&e&&r&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),this.t?.(t)}},Y=s((t,e,r={})=>{try{const n=t.filter(i=>PerformanceObserver.supportedEntryTypes.includes(i));if(n.length>0){const i=new PerformanceObserver(a=>{queueMicrotask(()=>{const o=a.getEntries();n.length>1&&o.sort((u,c)=>u.startTime+u.duration-(c.startTime+c.duration)),e(o)})});for(const a of n)i.observe({type:a,buffered:!0,...r});return i}}catch{}},"m"),Mt=s(t=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes("soft-navigation")&&typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint=="function"&&t&&t.reportSoftNavs,"p"),Hr=s((t,e)=>{if(t.set(e.navigationId,e),t.size>2){const r=t.keys().next().value;r!==void 0&&t.delete(r)}},"b"),jr=s(t=>{let e=!1;return()=>{e||(t(),e=!0)}},"T"),pa=class{static{s(this,"y")}l},ye=s(t=>{document.prerendering?addEventListener("prerenderingchange",t,!0):t()},"_"),Kt=[1800,3e3],ha=s((t,e={})=>{const r=Mt(e);ye(()=>{const n=Nt(e,pa),i=ut();let a,o=k("FCP");const u=Y(["paint"],c=>{for(const l of c)l.name==="first-contentful-paint"&&(u.disconnect(),l.startTime<i.firstHiddenTime&&(o.value=Math.max(l.startTime-It(),0),o.entries.push(l),o.navigationId=l.navigationId||o.navigationId,a(!0)))});u&&(a=L(t,o,Kt,e.reportAllChanges),ht(c=>{o=k("FCP",-1,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,pt()),a=L(t,o,Kt,e.reportAllChanges),Ce(()=>{o.value=performance.now()-c.timeStamp,a(!0)})})),r&&Y(["soft-navigation"],c=>{c.forEach(l=>{n.l&&l.navigationId&&Hr(n.l,l);const h=Math.max((l.presentationTime||l.paintTime||0)-l.startTime,0);o=k("FCP",h,"soft-navigation",l.navigationId,l.interactionId,l.name,l.startTime),a=L(t,o,Kt,e.reportAllChanges),a(!0)})},e)})},"M"),rr=[.1,.25],fa=s((t,e={})=>{const r=ut();ha(jr(()=>{let n,i=k("CLS",0);const a=Nt(e,da),o=s((f,d,p,g,T)=>{i=k("CLS",0,f,d,p,g,T),a.i=0,n=L(t,i,rr,e.reportAllChanges)},"h"),u=s((f=!1)=>{a.i>i.value&&(i.value=a.i,i.entries=a.o),n(f)},"d"),c=s(f=>{u(!0),o("soft-navigation",f.navigationId,f.interactionId,f.name,f.startTime)},"g"),l=s(f=>{for(const d of f)d.entryType!=="soft-navigation"?a.h(d):c(d);u()},"b"),h=["layout-shift"];Mt(e)&&h.push("soft-navigation");const _=Y(h,l);_&&(n=L(t,i,rr,e.reportAllChanges),r.onHidden(()=>{l(_.takeRecords()),n(!0)}),ht(()=>{o("back-forward-cache",i.navigationId,i.navigationInteractionId,i.navigationURL,pt()),Ce(n)}),setTimeout(n))}))},"P"),qr=0,Yt=1/0,Et=0,_a=s(t=>{for(const e of t)e.interactionId&&(Yt=Math.min(Yt,e.interactionId),Et=Math.max(Et,e.interactionId),qr=Et?(Et-Yt)/7+1:0)},"C"),oe,nr=s(()=>oe?qr:performance.interactionCount??0,"N"),ga=s(()=>{"interactionCount"in performance||oe||(oe=Y(["event"],_a,{durationThreshold:0}))},"B"),ma=class{static{s(this,"S")}u=0;v=[];m=new Map;p;T;_(){return nr()-this.u}M(){this.u=nr(),this.v.length=0,this.m.clear()}L(t){const e=this._(),r=Math.min(this.v.length-1,Math.floor(e/50));return!e||r!==-1||t!=="soft-navigation"&&t!=="back-forward-cache"?this.v[r]:{P:8,id:-1,entries:[]}}h(t){if(this.p?.(t),!t.interactionId)return;const e=this.v.at(-1);let r=this.m.get(t.interactionId);if(r||this.v.length<10||t.duration>e.P){if(r?t.duration>r.P?(r.entries=[t],r.P=t.duration):t.duration===r.P&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],P:t.duration},this.m.set(r.id,r),this.v.push(r)),this.v.sort((n,i)=>i.P-n.P),this.v.length>10){const n=this.v.splice(10);for(const i of n)this.m.delete(i.id)}this.T?.(r)}}},Kr=s(t=>{const e="requestIdleCallback"in globalThis?1e3:0,r=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")t();else{const i=jr(t);let a=-1;const o=s(()=>{n(a),i()},"a");addEventListener("visibilitychange",o,{once:!0,capture:!0}),a=r(()=>{removeEventListener("visibilitychange",o,{capture:!0}),i()},{timeout:e})}},"q"),ir=[200,500],va=s((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=ut();ye(()=>{ga();let n,i=k("INP");const a=Nt(e,ma),o=s((f,d,p,g,T)=>{a.M(),i=k("INP",-1,f,d,p,g,T),n=L(t,i,ir,e.reportAllChanges)},"f"),u=s(()=>{const f=a.L(i.navigationType);f&&f.P!==i.value&&(i.value=f.P,i.entries=f.entries,n())},"h"),c=s(f=>{u(),n(!0),o("soft-navigation",f.navigationId,f.interactionId,f.name,f.startTime)},"d"),l=s((f,d=!1)=>{Kr(()=>{for(const p of f)p.entryType!=="soft-navigation"?a.h(p):c(p);u(),d&&n(!0)})},"g"),h=["event","first-input"];Mt(e)&&h.push("soft-navigation");const _=Y(h,l,{...e,durationThreshold:e.durationThreshold??40});n=L(t,i,ir,e.reportAllChanges),_&&(r.onHidden(()=>{l(_.takeRecords(),!0)}),ht(()=>{o("back-forward-cache",i.navigationId,i.navigationInteractionId,i.navigationURL,pt())}))})},"x"),Ea=class{static{s(this,"H")}p;l;h(t){this.p?.(t)}},Wt=[2500,4e3],Ta=s((t,e={})=>{let r=!1;const n=Mt(e);ye(()=>{let i,a=ut(),o=k("LCP");const u=Nt(e,Ea),c=s((d,p,g,T,S)=>{o=k("LCP",-1,d,p,g,T,S),i=L(t,o,Wt,e.reportAllChanges),r=!1,d==="soft-navigation"&&(a=ut(!0))},"p"),l=s(d=>{u.l&&d.navigationId&&Hr(u.l,d),r||i(!0),c("soft-navigation",d.navigationId,d.interactionId,d.name,d.startTime);const p=d.getLargestInteractionContentfulPaint?.();p&&h([p])},"T"),h=s(d=>{e.reportAllChanges||n||(d=d.slice(-1));for(const p of d){if(!p)continue;if(p.entryType==="soft-navigation"){l(p);continue}let g=0,T=[],S=p.startTime;if(p.entryType==="largest-contentful-paint")g=Math.max(p.startTime-It(),0),u.h(p),T=[p];else if(p.entryType==="interaction-contentful-paint"){const y=p;if(!o.navigationId||"interactionId"in y&&y.interactionId!=o.navigationInteractionId)continue;S=y.largestContentfulPaint?.renderTime||0,g=Math.max(S-p.startTime,0),y.largestContentfulPaint&&(u.h(y.largestContentfulPaint),T=[y.largestContentfulPaint])}S<a.firstHiddenTime&&(o.value=g,o.entries=T,i())}},"y"),_=["largest-contentful-paint"];n&&_.push("interaction-contentful-paint","soft-navigation");const f=Y(_,h);if(f){i=L(t,o,Wt,e.reportAllChanges);const d=["keydown","click","visibilitychange"],p=s(g=>{if(g.isTrusted&&!r){const T=o.id;Kr(()=>{if(!r){if(!n){f.disconnect();for(const S of d)removeEventListener(S,p,{capture:!0})}T===o.id&&(r=!0,i(!0))}})}},"h");for(const g of d)addEventListener(g,p,{capture:!0});ht(g=>{c("back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,pt()),i=L(t,o,Wt,e.reportAllChanges),Ce(()=>{o.value=performance.now()-g.timeStamp,r=!0,i(!0)})})}})},"U");function Sa(t,e){const r={attributes:ft(t.attributes,e),droppedAttributesCount:0},n=t.schemaUrl;return n&&n!==""&&(r.schemaUrl=n),r}s(Sa,"createResource");function ba(t,e){const r={name:t.name,version:t.version};return t.attributes&&Object.keys(t.attributes).length>0&&(r.attributes=ft(t.attributes,e),r.droppedAttributesCount=t.droppedAttributesCount??0),r}s(ba,"createInstrumentationScope");function ft(t,e){return Object.keys(t).map(r=>Aa(r,t[r],e))}s(ft,"toAttributes");function Aa(t,e,r){return{key:t,value:ce(e,r)}}s(Aa,"toKeyValue");function ce(t,e){const r=typeof t;if(r==="string")return{stringValue:t};if(r==="number")return Number.isInteger(t)?{intValue:t}:{doubleValue:t};if(r==="boolean")return{boolValue:t};if(t instanceof Uint8Array)return{bytesValue:e.encodeUint8Array(t)};if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=ce(t[i],e);return{arrayValue:{values:n}}}if(r==="object"&&t!=null){const n=Object.keys(t),i=new Array(n.length);for(let a=0;a<n.length;a++)i[a]={key:n[a],value:ce(t[n[a]],e)};return{kvlistValue:{values:i}}}return{}}s(ce,"toAnyValue");function Ca(t){const e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}s(Ca,"hrTimeToNanos");function ya(t){return Ca(t).toString()}s(ya,"encodeAsString");var Ra=typeof BigInt<"u"?ya:x;function sr(t){return t}s(sr,"identity");var Oa={encodeHrTime:Ra,encodeSpanContext:sr,encodeOptionalSpanContext:sr,encodeUint8Array:s(t=>{if(typeof Buffer<"u")return Buffer.from(t).toString("base64");const e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=String.fromCharCode(t[r]);return btoa(e.join(""))},"encodeUint8Array")},Pa=256,wa=512;function Yr(t,e){let r=t&255|Pa;return e&&(r|=wa),r}s(Yr,"buildSpanFlagsFrom");function La(t,e){const r=t.spanContext(),n=t.status,i=t.parentSpanContext?.spanId?e.encodeSpanContext(t.parentSpanContext?.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:ft(t.attributes,e),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(a=>Na(a,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(a=>Ia(a,e)),droppedLinksCount:t.droppedLinksCount,flags:Yr(r.traceFlags,t.parentSpanContext?.isRemote)}}s(La,"sdkSpanToOtlpSpan");function Ia(t,e){return{attributes:t.attributes?ft(t.attributes,e):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0,flags:Yr(t.context.traceFlags,t.context.isRemote)}}s(Ia,"toOtlpLink");function Na(t,e){return{attributes:t.attributes?ft(t.attributes,e):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}s(Na,"toOtlpSpanEvent");function Ma(t,e){return{resourceSpans:Da(t,e)}}s(Ma,"createExportTraceServiceRequest");function xa(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(r)}return e}s(xa,"createResourceMap");function Da(t,e){const r=xa(t),n=[],i=r.entries();let a=i.next();for(;!a.done;){const[o,u]=a.value,c=[],l=u.values();let h=l.next();for(;!h.done;){const d=h.value;if(d.length>0){const p=d.map(g=>La(g,e));c.push({scope:ba(d[0].instrumentationScope,e),spans:p,schemaUrl:d[0].instrumentationScope.schemaUrl})}h=l.next()}const _=Sa(o,e),f={resource:_,scopeSpans:c,schemaUrl:_.schemaUrl};n.push(f),a=i.next()}return n}s(Da,"spanRecordsToResourceSpans");var ka={serializeRequest:s(t=>{const e=Ma(t,Oa);return new TextEncoder().encode(JSON.stringify(e))},"serializeRequest"),deserializeResponse:s(t=>{if(t.length===0)return{};const e=new TextDecoder;try{return JSON.parse(e.decode(t))}catch(r){return m.warn(`Failed to parse trace export response: ${r.message}. Returning empty response`),{}}},"deserializeResponse")},ar=0,Xt=1;function or(t){return t.name==="page.load"||t.name.startsWith("web_vital.")?0:1}s(or,"priority");var Ua=class{static{s(this,"OtlpFetchExporter")}options;pending=new Set;keepaliveBytesInFlight=0;stopped=!1;constructor(t){this.options=t}export(t,e){if(this.stopped||t.length===0){e({code:this.stopped?Xt:ar});return}const r=[...t].sort((a,o)=>or(a)-or(o)),n=(this.options.isPageHidden??(()=>typeof document<"u"&&document.visibilityState==="hidden"))(),i=n?this.chunk(r):[this.serialize(r)];if(i.some(a=>a===null)){e({code:Xt});return}Promise.all(i.map(a=>this.send(a,n))).then(a=>e({code:a.every(Boolean)?ar:Xt}))}serialize(t){try{return ka.serializeRequest(t)??null}catch{return null}}chunk(t){const e=this.serialize(t);if(!e||e.byteLength<=61440||t.length===1)return[e];const r=Math.ceil(t.length/2);return[...this.chunk(t.slice(0,r)),...this.chunk(t.slice(r))]}send(t,e){const r=e&&t.byteLength<=61440&&this.keepaliveBytesInFlight+t.byteLength<=61440;r&&(this.keepaliveBytesInFlight+=t.byteLength);const n=this.options.fetch(this.options.url,{method:"POST",headers:{"content-type":"application/json",...this.options.headers},body:t,keepalive:r,credentials:"omit"}).then(i=>i.ok).catch(()=>!1).finally(()=>{r&&(this.keepaliveBytesInFlight-=t.byteLength)});return this.pending.add(n),n.finally(()=>this.pending.delete(n)),n}async forceFlush(){await Promise.all(this.pending)}async shutdown(){this.stopped=!0,await this.forceFlush()}},Ba=new Set(["paperclip.page.route","paperclip.page.load_type","paperclip.page.outcome","paperclip.page.ready_signal","paperclip.page.was_hidden","paperclip.page.suspended","paperclip.page.view","paperclip.page.navigation_type","paperclip.page.ttfb_ms","paperclip.page.dom_content_loaded_ms","paperclip.page.load_event_ms","paperclip.web_vital.name","paperclip.web_vital.value","paperclip.web_vital.rating","paperclip.api.area","paperclip.api.timing_source","http.request.method","http.response.status_code","error.type","SampleRate"]),Fa=new Set(["paperclip.instance.host","service.name","service.version","deployment.environment.name","telemetry.sdk.name","telemetry.sdk.language","telemetry.sdk.version"]),Ga=/^[a-z][a-z0-9-]{0,40}$/;function za(t){let e;try{e=new URL(t).pathname}catch{return null}if(!e.startsWith("/api/"))return null;const r=e.split("/")[2]??"";return Ga.test(r)?r:"other"}s(za,"apiAreaFromUrl");function Wr(t,e){const r={};for(const[n,i]of Object.entries(t))e.has(n)&&(r[n]=i);return r}s(Wr,"pickAttributes");var cr=new WeakMap;function Va(t){let e=cr.get(t);return e||(e=ve(Wr(t.attributes,Fa)),cr.set(t,e)),e}s(Va,"sanitizeResource");function $a(t){const e=Wr(t.attributes,Ba),r=t.attributes["url.full"];if(typeof r=="string"){const n=za(r);n&&(e["paperclip.api.area"]=n)}return{name:t.name,kind:t.kind,spanContext:s(()=>t.spanContext(),"spanContext"),parentSpanContext:t.parentSpanContext,startTime:t.startTime,endTime:t.endTime,status:{code:t.status.code},attributes:e,links:[],events:t.events.map(n=>({name:n.name,time:n.time,droppedAttributesCount:0})),duration:t.duration,ended:t.ended,resource:Va(t.resource),instrumentationScope:t.instrumentationScope,droppedAttributesCount:0,droppedEventsCount:t.droppedEventsCount,droppedLinksCount:0}}s($a,"sanitizeSpan");var Ha=class{static{s(this,"SanitizingSpanExporter")}inner;constructor(t){this.inner=t}export(t,e){this.inner.export(t.map($a),e)}shutdown(){return this.inner.shutdown()}forceFlush(){return this.inner.forceFlush?.()??Promise.resolve()}},ja="paperclip.browser",qa=class extends Mr{static{s(this,"PageLoadContextManager")}openPageSpan;constructor(t){super(),this.openPageSpan=t}active(){const t=super.active();if(t!==B)return t;const e=this.openPageSpan();return e?b.setSpan(t,e):t}};function Ka(t,e){return{getTracer(r,n,i){const a=t.getTracer(r,n,i),o=s(()=>b.wrapSpanContext(de),"unrecorded");return{startSpan:s((u,c,l)=>e()?a.startSpan(u,c,l):o(),"startSpan"),startActiveSpan:s(((...u)=>{if(e())return a.startActiveSpan(...u);const c=u[u.length-1];return c(o())}),"startActiveSpan")}}}}s(Ka,"measuredRequestsOnly");function Ya(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Ya,"escapeRegExp");function Wa(t){return new RegExp(`^(?!${Ya(t)}/api/)`)}s(Wa,"nonApiUrlPattern");function Qt(t){return Math.round(t)}s(Qt,"roundMs");function Xa(){const t=performance.getEntriesByType?.("navigation")[0];if(!t)return{};const e={"paperclip.page.navigation_type":t.type};return t.responseStart>0&&(e["paperclip.page.ttfb_ms"]=Qt(t.responseStart)),t.domContentLoadedEventEnd>0&&(e["paperclip.page.dom_content_loaded_ms"]=Qt(t.domContentLoadedEventEnd)),t.loadEventEnd>0&&(e["paperclip.page.load_event_ms"]=Qt(t.loadEventEnd)),e}s(Xa,"navigationTimingAttributes");function Qa(t){return{"paperclip.page.route":t.routeTemplate,"paperclip.page.load_type":t.loadType,"paperclip.page.outcome":t.outcome??"interrupted","paperclip.page.ready_signal":t.readySignal??"none","paperclip.page.was_hidden":t.wasHidden,...t.suspended?{"paperclip.page.suspended":!0}:{},...t.view!==null?{"paperclip.page.view":t.view}:{}}}s(Qa,"pageLoadAttributes");var Ja="HTTP";function Za(t,e,r,n,i){const a=Math.min(r.endTime??i,i),o=b.setSpan(B,e);for(const u of n){if(u.startTime<r.startTime||u.startTime>=a)continue;const c={"url.full":u.name,"paperclip.api.timing_source":"resource_timing","paperclip.page.route":r.routeTemplate},l=u.responseStatus;typeof l=="number"&&l>0&&(c["http.response.status_code"]=l),t.startSpan(Ja,{kind:ct.CLIENT,startTime:u.startTime,attributes:c},o).end(Math.max(u.startTime,u.responseEnd))}}s(Za,"backfillApiSpans");function to(t){return t>=1?null:Math.max(1,Math.round(1/t))}s(to,"honeycombSampleRate");var ro=6e4;function no(t,e,r={}){const n=new Map;let i=null,a=!1;const o=window.fetch.bind(window),u=new Ha(r.exporter??new Ua({url:t.tracesUrl,headers:t.ingestKey?{"x-honeycomb-team":t.ingestKey}:{},fetch:o})),c=to(t.sampleRate),l={onStart(v){const A=e.currentRouteTemplate();A&&v.attributes["paperclip.page.route"]===void 0&&v.setAttribute("paperclip.page.route",A),c!==null&&v.setAttribute("SampleRate",c)},onEnd(){},forceFlush:s(()=>Promise.resolve(),"forceFlush"),shutdown:s(()=>Promise.resolve(),"shutdown")},h="b18c9452bb32b7757c79793d17c5a3bc1f1a7e94",_=new Ms({resource:ve({"service.name":t.serviceName,...t.instanceHost?{"paperclip.instance.host":t.instanceHost}:{},"service.version":h,...t.environment?{"deployment.environment.name":t.environment}:{}}),sampler:new F,spanProcessors:[l,new Ls(u)]});_.register({contextManager:new qa(()=>i)});const f=_.getTracer(ja),d=new la({ignoreUrls:[Wa(window.location.origin)],propagateTraceHeaderCorsUrls:[],clearTimingResources:!1,ignoreNetworkEvents:!0,enabled:!1});d.setTracerProvider(Ka(_,()=>i!==null));const p=performance.now();d.enable();const g=r.apiResources??null,T=new Set;let S=!1;const y=s(()=>{g&&S&&T.size===0&&g.stop()},"releaseIfUnclaimed"),Xr=g?window.setTimeout(()=>{S=!0,y()},r.earlyResourceGraceMs??6e4):void 0;e.attachSink({begin(v){const A=f.startSpan("page.load",{root:!0,startTime:v.startTime,attributes:{"paperclip.page.route":v.routeTemplate,"paperclip.page.load_type":v.loadType}});n.set(v.id,A),v.endTime===null&&(i=A),v.startTime<p?T.add(v.id):(S=!0,y())},end(v){const A=n.get(v.id);A&&(n.delete(v.id),i===A&&(i=null),A.setAttributes(Qa(v)),v.loadType==="hard"&&A.setAttributes(Xa()),g&&v.startTime<p&&Za(f,A,v,g.entries(),p),A.end(v.endTime??performance.now()),T.delete(v.id),y())}});const xt=s(v=>{if(a)return;const A=(v.name==="LCP"?e.hardLoadRouteTemplate():null)??e.currentRouteTemplate(),Re=performance.now();f.startSpan(`web_vital.${v.name.toLowerCase()}`,{root:!0,startTime:Re,attributes:{"paperclip.web_vital.name":v.name,"paperclip.web_vital.value":v.value,"paperclip.web_vital.rating":v.rating,...A?{"paperclip.page.route":A}:{}}}).end(Re),document.visibilityState==="hidden"&&_.forceFlush()},"reportVital");return Ta(xt),va(xt),fa(xt),{forceFlush:s(()=>_.forceFlush(),"forceFlush"),async shutdown(){a||(a=!0,n.clear(),i=null,d.disable(),window.clearTimeout(Xr),g?.stop(),await _.shutdown().catch(()=>{}),b.disable(),R.disable(),D.disable())}}}s(no,"startTracingSdk");export{ro as EARLY_RESOURCE_GRACE_MS,Ja as UNKNOWN_METHOD_SPAN_NAME,to as honeycombSampleRate,Ka as measuredRequestsOnly,Wa as nonApiUrlPattern,Qa as pageLoadAttributes,no as startTracingSdk};
|
|
1
|
+
var Qr=Object.defineProperty;var s=(t,e)=>Qr(t,"name",{value:e,configurable:!0});var q="1.9.1",Oe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Jr(t){const e=new Set([t]),r=new Set,n=t.match(Oe);if(!n)return()=>!1;const i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return s(function(c){return c===t},"isExactmatch");function a(u){return r.add(u),!1}s(a,"_reject");function o(u){return e.add(u),!0}return s(o,"_accept"),s(function(c){if(e.has(c))return!0;if(r.has(c))return!1;const l=c.match(Oe);if(!l)return a(c);const h={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return h.prerelease!=null||i.major!==h.major?a(c):i.major===0?i.minor===h.minor&&i.patch<=h.patch?o(c):a(c):i.minor<=h.minor?o(c):a(c)},"isCompatible")}s(Jr,"_makeCompatibilityCheck");var Zr=Jr(q),tn=q.split(".")[0],at=Symbol.for(`opentelemetry.js.api.${tn}`),ot=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};function lt(t,e,r,n=!1){var i;const a=ot[at]=(i=ot[at])!==null&&i!==void 0?i:{version:q};if(!n&&a[t]){const o=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return r.error(o.stack||o.message),!1}if(a.version!=="1.9.1"){const o=new Error(`@opentelemetry/api: Registration of version v${a.version} for ${t} does not match previously registered API v${q}`);return r.error(o.stack||o.message),!1}return a[t]=e,r.debug(`@opentelemetry/api: Registered a global for ${t} v${q}.`),!0}s(lt,"registerGlobal");function j(t){var e,r;const n=(e=ot[at])===null||e===void 0?void 0:e.version;if(!(!n||!Zr(n)))return(r=ot[at])===null||r===void 0?void 0:r[t]}s(j,"getGlobal");function dt(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${q}.`);const r=ot[at];r&&delete r[t]}s(dt,"unregisterGlobal");var en=class{static{s(this,"DiagComponentLogger")}constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return W("debug",this._namespace,t)}error(...t){return W("error",this._namespace,t)}info(...t){return W("info",this._namespace,t)}warn(...t){return W("warn",this._namespace,t)}verbose(...t){return W("verbose",this._namespace,t)}};function W(t,e,r){const n=j("diag");if(n)return n[t](e,...r)}s(W,"logProxy");var O;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(O||(O={}));function rn(t,e){t<O.NONE?t=O.NONE:t>O.ALL&&(t=O.ALL),e=e||{};function r(n,i){const a=e[n];return typeof a=="function"&&t>=i?a.bind(e):function(){}}return s(r,"_filterFunc"),{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}s(rn,"createLogLevelDiagLogger");var nn="diag",I=class ur{static{s(this,"DiagAPI")}static instance(){return this._instance||(this._instance=new ur),this._instance}constructor(){function e(i){return function(...a){const o=j("diag");if(o)return o[i](...a)}}s(e,"_logProxy");const r=this,n=s((i,a={logLevel:O.INFO})=>{var o,u,c;if(i===r){const _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((o=_.stack)!==null&&o!==void 0?o:_.message),!1}typeof a=="number"&&(a={logLevel:a});const l=j("diag"),h=rn((u=a.logLevel)!==null&&u!==void 0?u:O.INFO,i);if(l&&!a.suppressOverrideMessage){const _=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";l.warn(`Current logger will be overwritten from ${_}`),h.warn(`Current logger will overwrite one already registered from ${_}`)}return lt("diag",h,r,!0)},"setLogger");r.setLogger=n,r.disable=()=>{dt(nn,r)},r.createComponentLogger=i=>new en(i),r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}},sn=class tt{static{s(this,"BaggageImpl")}constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){const r=this._entries.get(e);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,r){const n=new tt(this._entries);return n._entries.set(e,r),n}removeEntry(e){const r=new tt(this._entries);return r._entries.delete(e),r}removeEntries(...e){const r=new tt(this._entries);for(const n of e)r._entries.delete(n);return r}clear(){return new tt}},an=Symbol("BaggageEntryMetadata"),on=I.instance();function cn(t={}){return new sn(new Map(Object.entries(t)))}s(cn,"createBaggage");function un(t){return typeof t!="string"&&(on.error(`Cannot create baggage metadata from unknown type: ${typeof t}`),t=""),{__TYPE__:an,toString(){return t}}}s(un,"baggageEntryMetadataFromString");function ue(t){return Symbol.for(t)}s(ue,"createContextKey");var ln=class Jt{static{s(this,"BaseContext")}constructor(e){const r=this;r._currentContext=e?new Map(e):new Map,r.getValue=n=>r._currentContext.get(n),r.setValue=(n,i)=>{const a=new Jt(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=n=>{const i=new Jt(r._currentContext);return i._currentContext.delete(n),i}}},B=new ln,dn=class{static{s(this,"NoopMeter")}constructor(){}createGauge(t,e){return Tn}createHistogram(t,e){return Sn}createCounter(t,e){return En}createUpDownCounter(t,e){return bn}createObservableGauge(t,e){return Cn}createObservableCounter(t,e){return An}createObservableUpDownCounter(t,e){return yn}addBatchObservableCallback(t,e){}removeBatchObservableCallback(t){}},Ot=class{static{s(this,"NoopMetric")}},pn=class extends Ot{static{s(this,"NoopCounterMetric")}add(t,e){}},hn=class extends Ot{static{s(this,"NoopUpDownCounterMetric")}add(t,e){}},fn=class extends Ot{static{s(this,"NoopGaugeMetric")}record(t,e){}},_n=class extends Ot{static{s(this,"NoopHistogramMetric")}record(t,e){}},le=class{static{s(this,"NoopObservableMetric")}addCallback(t){}removeCallback(t){}},gn=class extends le{static{s(this,"NoopObservableCounterMetric")}},mn=class extends le{static{s(this,"NoopObservableGaugeMetric")}},vn=class extends le{static{s(this,"NoopObservableUpDownCounterMetric")}},lr=new dn,En=new pn,Tn=new fn,Sn=new _n,bn=new hn,An=new gn,Cn=new mn,yn=new vn;function dr(){return lr}s(dr,"createNoopMeter");var Rn={get(t,e){if(t!=null)return t[e]},keys(t){return t==null?[]:Object.keys(t)}},On={set(t,e,r){t!=null&&(t[e]=r)}},Pn=class{static{s(this,"NoopContextManager")}active(){return B}with(t,e,r,...n){return e.call(r,...n)}bind(t,e){return e}enable(){return this}disable(){return this}},Dt="context",wn=new Pn,Pt=class pr{static{s(this,"ContextAPI")}constructor(){}static getInstance(){return this._instance||(this._instance=new pr),this._instance}setGlobalContextManager(e){return lt(Dt,e,I.instance())}active(){return this._getContextManager().active()}with(e,r,n,...i){return this._getContextManager().with(e,r,n,...i)}bind(e,r){return this._getContextManager().bind(e,r)}_getContextManager(){return j(Dt)||wn}disable(){this._getContextManager().disable(),dt(Dt,I.instance())}},U;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(U||(U={}));var Ln="0000000000000000",In="00000000000000000000000000000000",de={traceId:In,spanId:Ln,traceFlags:U.NONE},nt=class{static{s(this,"NonRecordingSpan")}constructor(t=de){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,e){return this}setAttributes(t){return this}addEvent(t,e){return this}addLink(t){return this}addLinks(t){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,e){}},pe=ue("OpenTelemetry Context Key SPAN");function he(t){return t.getValue(pe)||void 0}s(he,"getSpan");function Nn(){return he(Pt.getInstance().active())}s(Nn,"getActiveSpan");function fe(t,e){return t.setValue(pe,e)}s(fe,"setSpan");function Mn(t){return t.deleteValue(pe)}s(Mn,"deleteSpan");function xn(t,e){return fe(t,new nt(e))}s(xn,"setSpanContext");function hr(t){var e;return(e=he(t))===null||e===void 0?void 0:e.spanContext()}s(hr,"getSpanContext");var _t=new Uint8Array([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,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,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,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]);function fr(t,e){if(typeof t!="string"||t.length!==e)return!1;let r=0;for(let n=0;n<t.length;n+=4)r+=(_t[t.charCodeAt(n)]|0)+(_t[t.charCodeAt(n+1)]|0)+(_t[t.charCodeAt(n+2)]|0)+(_t[t.charCodeAt(n+3)]|0);return r===e}s(fr,"isValidHex");function _r(t){return fr(t,32)&&t!=="00000000000000000000000000000000"}s(_r,"isValidTraceId");function Dn(t){return fr(t,16)&&t!=="0000000000000000"}s(Dn,"isValidSpanId");function wt(t){return _r(t.traceId)&&Dn(t.spanId)}s(wt,"isSpanContextValid");function kn(t){return new nt(t)}s(kn,"wrapSpanContext");var kt=Pt.getInstance(),gr=class{static{s(this,"NoopTracer")}startSpan(t,e,r=kt.active()){if(e?.root)return new nt;const n=r&&hr(r);return Un(n)&&wt(n)?new nt(n):new nt}startActiveSpan(t,e,r,n){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=e:arguments.length===3?(i=e,o=r):(i=e,a=r,o=n);const u=a??kt.active(),c=this.startSpan(t,i,u),l=fe(u,c);return kt.with(l,o,void 0,c)}};function Un(t){return t!==null&&typeof t=="object"&&"spanId"in t&&typeof t.spanId=="string"&&"traceId"in t&&typeof t.traceId=="string"&&"traceFlags"in t&&typeof t.traceFlags=="number"}s(Un,"isSpanContext");var Bn=new gr,Fn=class{static{s(this,"ProxyTracer")}constructor(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}startSpan(t,e,r){return this._getTracer().startSpan(t,e,r)}startActiveSpan(t,e,r,n){const i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Bn}},Gn=class{static{s(this,"NoopTracerProvider")}getTracer(t,e,r){return new gr}},zn=new Gn,Pe=class{static{s(this,"ProxyTracerProvider")}getTracer(t,e,r){var n;return(n=this.getDelegateTracer(t,e,r))!==null&&n!==void 0?n:new Fn(this,t,e,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:zn}setDelegate(t){this._delegate=t}getDelegateTracer(t,e,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,e,r)}},St;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(St||(St={}));var ct;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(ct||(ct={}));var $;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})($||($={}));var R=Pt.getInstance(),m=I.instance(),Vn=class{static{s(this,"NoopMeterProvider")}getMeter(t,e,r){return lr}},$n=new Vn,Ut="metrics",Hn=class mr{static{s(this,"MetricsAPI")}constructor(){}static getInstance(){return this._instance||(this._instance=new mr),this._instance}setGlobalMeterProvider(e){return lt(Ut,e,I.instance())}getMeterProvider(){return j(Ut)||$n}getMeter(e,r,n){return this.getMeterProvider().getMeter(e,r,n)}disable(){dt(Ut,I.instance())}},jn=Hn.getInstance(),qn=class{static{s(this,"NoopTextMapPropagator")}inject(t,e){}extract(t,e){return t}fields(){return[]}},_e=ue("OpenTelemetry Baggage Key");function vr(t){return t.getValue(_e)||void 0}s(vr,"getBaggage");function Kn(){return vr(Pt.getInstance().active())}s(Kn,"getActiveBaggage");function Yn(t,e){return t.setValue(_e,e)}s(Yn,"setBaggage");function Wn(t){return t.deleteValue(_e)}s(Wn,"deleteBaggage");var Bt="propagation",Xn=new qn,Qn=class Er{static{s(this,"PropagationAPI")}constructor(){this.createBaggage=cn,this.getBaggage=vr,this.getActiveBaggage=Kn,this.setBaggage=Yn,this.deleteBaggage=Wn}static getInstance(){return this._instance||(this._instance=new Er),this._instance}setGlobalPropagator(e){return lt(Bt,e,I.instance())}inject(e,r,n=On){return this._getGlobalPropagator().inject(e,r,n)}extract(e,r,n=Rn){return this._getGlobalPropagator().extract(e,r,n)}fields(){return this._getGlobalPropagator().fields()}disable(){dt(Bt,I.instance())}_getGlobalPropagator(){return j(Bt)||Xn}},D=Qn.getInstance(),Ft="trace",Jn=class Tr{static{s(this,"TraceAPI")}constructor(){this._proxyTracerProvider=new Pe,this.wrapSpanContext=kn,this.isSpanContextValid=wt,this.deleteSpan=Mn,this.getSpan=he,this.getActiveSpan=Nn,this.getSpanContext=hr,this.setSpan=fe,this.setSpanContext=xn}static getInstance(){return this._instance||(this._instance=new Tr),this._instance}setGlobalTracerProvider(e){const r=lt(Ft,this._proxyTracerProvider,I.instance());return r&&this._proxyTracerProvider.setDelegate(e),r}getTracerProvider(){return j(Ft)||this._proxyTracerProvider}getTracer(e,r){return this.getTracerProvider().getTracer(e,r)}disable(){dt(Ft,I.instance()),this._proxyTracerProvider=new Pe}},b=Jn.getInstance(),Sr=ue("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Zn(t){return t.setValue(Sr,!0)}s(Zn,"suppressTracing");function ge(t){return t.getValue(Sr)===!0}s(ge,"isTracingSuppressed");var Gt="baggage",ti=4096;function ei(t){return t.reduce((e,r)=>{const n=`${e}${e!==""?",":""}${r}`;return n.length>8192?e:n},"")}s(ei,"serializeKeyPairs");function ri(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=";"+r.metadata.toString()),n})}s(ri,"getKeyPairs");function ni(t){if(!t)return;const e=t.indexOf(";"),r=e===-1?t:t.substring(0,e),n=r.indexOf("=");if(n<=0)return;const i=r.substring(0,n).trim(),a=r.substring(n+1).trim();if(!i||!a)return;let o,u;try{o=decodeURIComponent(i),u=decodeURIComponent(a)}catch{return}let c;if(e!==-1&&e<t.length-1){const l=t.substring(e+1);c=un(l)}return{key:o,value:u,metadata:c}}s(ni,"parsePairKeyValue");function we(t,e,r,n){let i=0;for(;i<t.length&&r<180;){const a=t.indexOf(",",i),o=a===-1?t.length:a,u=o-i;if(u<=4096){const c=ni(t.substring(i,o));if(c){const l=(r===0?0:1)+u;if(n+l>8192)break;e[c.key]=c.metadata?{value:c.value,metadata:c.metadata}:{value:c.value},r++,n+=l}}if(a===-1)break;i=a+1}return[r,n]}s(we,"parseBaggageHeaderString");var ii=class{static{s(this,"W3CBaggagePropagator")}inject(t,e,r){const n=D.getBaggage(t);if(!n||ge(t))return;const i=ri(n).filter(o=>o.length<=ti).slice(0,180),a=ei(i);a.length>0&&r.set(e,Gt,a)}extract(t,e,r){const n=r.get(e,Gt);if(!n)return t;const i={};let a=0,o=0;if(Array.isArray(n))for(let u=0;u<n.length;u++)[a,o]=we(n[u],i,a,o);else[a]=we(n,i,a,o);return a===0?t:D.setBaggage(t,D.createBaggage(i))}fields(){return[Gt]}};function it(t){const e={};if(typeof t!="object"||t==null)return e;for(const r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if(!si(r)){m.warn(`Invalid attribute key: ${r}`);continue}const n=t[r];if(!br(n)){m.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}s(it,"sanitizeAttributes");function si(t){return typeof t=="string"&&t!==""}s(si,"isAttributeKey");function br(t){return t==null?!0:Array.isArray(t)?ai(t):Ar(typeof t)}s(br,"isAttributeValue");function ai(t){let e;for(const r of t){if(r==null)continue;const n=typeof r;if(n!==e){if(!e){if(Ar(n)){e=n;continue}return!1}return!1}}return!0}s(ai,"isHomogeneousAttributeValueArray");function Ar(t){switch(t){case"number":case"boolean":case"string":return!0}return!1}s(Ar,"isValidPrimitiveAttributeValueType");function oi(){return t=>{m.error(ci(t))}}s(oi,"loggingErrorHandler");function ci(t){return typeof t=="string"?t:JSON.stringify(ui(t))}s(ci,"stringifyException");function ui(t){const e={};let r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;const i=r[n];i&&(e[n]=String(i))}),r=Object.getPrototypeOf(r);return e}s(ui,"flattenException");var li=oi();function K(t){try{li(t)}catch{}}s(K,"globalErrorHandler");var di="2.10.0",Zt="error.type",Le="exception.message",pi="exception.stacktrace",Ie="exception.type",hi="http.request.method",fi="http.request.method_original",_i="http.response.status_code",gi="server.address",mi="server.port",vi="service.name",te="telemetry.sdk.language",Ei="webjs",ee="telemetry.sdk.name",re="telemetry.sdk.version",Ti="url.full",Si="process.runtime.name",zt={[ee]:"opentelemetry",[Si]:"browser",[te]:Ei,[re]:di},H=performance,bi=9,Ai=Math.pow(10,6),bt=Math.pow(10,bi);function M(t){const e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*Ai)]}s(M,"millisToHrTime");function At(t){return Cr(M(H.timeOrigin),M(typeof t=="number"?t:H.now()))}s(At,"hrTime");function st(t){if(me(t))return t;if(typeof t=="number")return t<H.timeOrigin/2?At(t):M(t);if(t instanceof Date)return M(t.getTime());throw TypeError("Invalid input type")}s(st,"timeInputToHrTime");function Ci(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=bt),[r,n]}s(Ci,"hrTimeDuration");function x(t){return t[0]*bt+t[1]}s(x,"hrTimeToNanoseconds");function me(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}s(me,"isTimeInputHrTime");function Ne(t){return me(t)||typeof t=="number"||t instanceof Date}s(Ne,"isTimeInput");function Cr(t,e){const r=[t[0]+e[0],t[1]+e[1]];return r[1]>=bt&&(r[1]-=bt,r[0]+=1),r}s(Cr,"addHrTimes");var ne;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ne||(ne={}));var yi=class{static{s(this,"CompositePropagator")}_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[];const e=new Set;for(const r of this._propagators){const n=typeof r.fields=="function"?r.fields():[];for(const i of n)e.add(i)}this._fields=Array.from(e)}inject(t,e,r){for(const n of this._propagators)try{n.inject(t,e,r)}catch(i){m.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,e,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,e,r)}catch(a){m.warn(`Failed to extract with ${i.constructor.name}. Err: ${a.message}`)}return n},t)}fields(){return this._fields.slice()}},Vt="[_0-9a-z-*/]",Ri=new RegExp(`^(?:${`[a-z]${Vt}{0,255}`}|${`[a-z0-9]${Vt}{0,240}@[a-z]${Vt}{0,13}`})$`),Oi=/^[ -~]{0,255}[!-~]$/,Pi=/,|=/;function Me(t){return Ri.test(t)}s(Me,"validateKey");function xe(t){return Oi.test(t)&&!Pi.test(t)}s(xe,"validateValue");var wi=32,De=512,ke=",",Ue="=",Li=class yr{static{s(this,"TraceState")}_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState=typeof e=="string"?e:"",this._length=this._rawTraceState.length}set(e,r){if(!Me(e)||!xe(r))return this;const n=this._getState(),i=n.get(e);let a=this._length;if(typeof i=="string"?a+=r.length-i.length:a+=e.length+r.length+(n.size>0?2:1),a>De)return this;const o=new Map(n);return o.delete(e),o.set(e,r),this._fromState(o,a)}unset(e){const r=this._getState(),n=r.get(e);if(typeof n!="string")return this;let i=this._length-(e.length+n.length+1);r.size>1&&(i=i-1);const a=new Map(r);return a.delete(e),this._fromState(a,i)}get(e){return this._getState().get(e)}serialize(){let e="",r=0;for(const n of this._getState())r>0&&(e=ke+e),e=`${n[0]}${Ue}${n[1]}`+e,r++;return e}_getState(){if(this._internalState)return this._internalState;const e=this._rawTraceState.split(ke),r=new Map;let n=0;for(const i of e){const a=i.trim(),o=a.indexOf(Ue);if(o===-1)continue;const u=a.slice(0,o),c=a.slice(o+1);if(!Me(u)||!xe(c))continue;const l=n+a.length+(r.size>0?1:0);if(!(l>De)&&(r.set(u,c),n=l,r.size>=wi))break}return this._length=n,this._internalState=new Map(Array.from(r.entries()).reverse()),this._internalState}_fromState(e,r){const n=Object.create(yr.prototype);return n._internalState=e,n._length=r,n}},$t="traceparent",Ht="tracestate",Ii="00",Ni=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function Mi(t){const e=Ni.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}s(Mi,"parseTraceParent");var xi=class{static{s(this,"W3CTraceContextPropagator")}inject(t,e,r){const n=b.getSpanContext(t);if(!n||ge(t)||!wt(n))return;const i=`${Ii}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||U.NONE).toString(16)}`;r.set(e,$t,i),n.traceState&&r.set(e,Ht,n.traceState.serialize())}extract(t,e,r){const n=r.get(e,$t);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const a=Mi(i);if(!a)return t;a.isRemote=!0;const o=r.get(e,Ht);if(o){const u=Array.isArray(o)?o.join(","):o;a.traceState=new Li(typeof u=="string"?u:void 0)}return b.setSpanContext(t,a)}fields(){return[$t,Ht]}},Di="[object Object]",ki="[object Null]",Ui="[object Undefined]",Rr=Function.prototype.toString,Bi=Rr.call(Object),Fi=Object.getPrototypeOf,Or=Object.prototype,Pr=Or.hasOwnProperty,G=Symbol?Symbol.toStringTag:void 0,wr=Or.toString;function Be(t){if(!Gi(t)||zi(t)!==Di)return!1;const e=Fi(t);if(e===null)return!0;const r=Pr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Rr.call(r)===Bi}s(Be,"isPlainObject");function Gi(t){return t!=null&&typeof t=="object"}s(Gi,"isObjectLike");function zi(t){return t==null?t===void 0?Ui:ki:G&&G in Object(t)?Vi(t):$i(t)}s(zi,"baseGetTag");function Vi(t){const e=Pr.call(t,G),r=t[G];let n=!1;try{t[G]=void 0,n=!0}catch{}const i=wr.call(t);return n&&(e?t[G]=r:delete t[G]),i}s(Vi,"getRawTag");function $i(t){return wr.call(t)}s($i,"objectToString");var Hi=20;function ji(...t){let e=t.shift();const r=new WeakMap;for(;t.length>0;)e=Lr(e,t.shift(),0,r);return e}s(ji,"merge");function jt(t){return Ct(t)?t.slice():t}s(jt,"takeValue");function Lr(t,e,r=0,n){let i;if(!(r>Hi)){if(r++,Tt(t)||Tt(e)||Ir(e))i=jt(e);else if(Ct(t)){if(i=t.slice(),Ct(e))for(let a=0,o=e.length;a<o;a++)i.push(jt(e[a]));else if(X(e)){const a=Object.keys(e);for(let o=0,u=a.length;o<u;o++){const c=a[o];c==="__proto__"||c==="constructor"||c==="prototype"||(i[c]=jt(e[c]))}}}else if(X(t))if(X(e)){if(!qi(t,e))return e;i=Object.assign({},t);const a=Object.keys(e);for(let o=0,u=a.length;o<u;o++){const c=a[o];if(c==="__proto__"||c==="constructor"||c==="prototype")continue;const l=e[c];if(Tt(l))typeof l>"u"?delete i[c]:i[c]=l;else{const h=i[c],_=l;if(Fe(t,c,n)||Fe(e,c,n))delete i[c];else{if(X(h)&&X(_)){const f=n.get(h)||[],d=n.get(_)||[];f.push({obj:t,key:c}),d.push({obj:e,key:c}),n.set(h,f),n.set(_,d)}i[c]=Lr(i[c],l,r,n)}}}}else i=e;return i}}s(Lr,"mergeTwoObjects");function Fe(t,e,r){const n=r.get(t[e])||[];for(let i=0,a=n.length;i<a;i++){const o=n[i];if(o.key===e&&o.obj===t)return!0}return!1}s(Fe,"wasObjectReferenced");function Ct(t){return Array.isArray(t)}s(Ct,"isArray");function Ir(t){return typeof t=="function"}s(Ir,"isFunction");function X(t){return!Tt(t)&&!Ct(t)&&!Ir(t)&&typeof t=="object"}s(X,"isObject");function Tt(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}s(Tt,"isPrimitive");function qi(t,e){return!(!Be(t)||!Be(e))}s(qi,"shouldMerge");function Nr(t,e){return typeof e=="string"?t===e:!!t.match(e)}s(Nr,"urlMatches");function Ki(t,e){if(!e)return!1;for(const r of e)if(Nr(t,r))return!0;return!1}s(Ki,"isUrlIgnored");var Yi=class{static{s(this,"Deferred")}_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}},Wi=class{static{s(this,"BindOnceFuture")}_isCalled=!1;_deferred=new Yi;_callback;_that;constructor(t,e){this._callback=t,this._that=e}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}},gt;function Xi(){if(gt===void 0)try{const t=globalThis.process.argv0;gt=t?`unknown_service:${t}`:"unknown_service"}catch{gt="unknown_service"}return gt}s(Xi,"defaultServiceName");var et=s(t=>t!==null&&typeof t=="object"&&typeof t.then=="function","isPromiseLike"),Qi=class ie{static{s(this,"ResourceImpl")}_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,r){const n=new ie({},r);return n._rawAttributes=Ge(e),n._asyncAttributesPending=e.filter(([i,a])=>et(a)).length>0,n}constructor(e,r){const n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([i,a])=>(et(a)&&(this._asyncAttributesPending=!0),[i,a])),this._rawAttributes=Ge(this._rawAttributes),this._schemaUrl=Zi(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[r,n]=this._rawAttributes[e];this._rawAttributes[e]=[r,et(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&m.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[r,n]of this._rawAttributes){if(et(n)){m.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(e[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;const r=ts(this,e),n=r?{schemaUrl:r}:void 0;return ie.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],n)}};function ve(t,e){return Qi.FromAttributeList(Object.entries(t),e)}s(ve,"resourceFromAttributes");function Ji(){return ve({[vi]:Xi(),[te]:zt[te],[ee]:zt[ee],[re]:zt[re]})}s(Ji,"defaultResource");function Ge(t){return t.map(([e,r])=>et(r)?[e,r.catch(n=>{m.debug("promise rejection for resource attribute: %s - %s",e,n)})]:[e,r])}s(Ge,"guardedRawAttributes");function Zi(t){if(typeof t=="string"||t===void 0)return t;m.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}s(Zi,"validateSchemaUrl");function ts(t,e){const r=t?.schemaUrl,n=e?.schemaUrl,i=r===void 0||r==="",a=n===void 0||n==="";if(i)return n;if(a||r===n)return r;m.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,n)}s(ts,"mergeSchemaUrl");var es="exception",Ee=Symbol.for("nodejs.util.inspect.custom");function Te(t){const e={};for(const[r,n]of t.getRawAttributes())typeof n?.then!="function"&&n!=null&&(e[r]??=n);return e}s(Te,"settledResourceAttributes");function Se(t,e,r,n,i){if(typeof r=="number"&&r<0){const a=`[${t}]`;return n?.stylize?n.stylize(a,"special"):a}return typeof i!="function"||!n?e:`${t} ${i(e,{...n,depth:n.depth==null?n.depth:n.depth-1})}`}s(Se,"formatInspect");var rs=class{static{s(this,"SpanImpl")}_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:$.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const e=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=H.now(),this._performanceOffset=e-(this._performanceStartTime+H.timeOrigin),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,t.links)for(const r of t.links)this.addLink(r);this.startTime=this._getTime(t.startTime??e),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,e){if(e==null||this._isSpanEnded())return this;if(t.length===0)return m.warn(`Invalid attribute key: ${t}`),this;if(!br(e))return m.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits,n=!Object.prototype.hasOwnProperty.call(this.attributes,t);return r!==void 0&&this._attributesCount>=r&&n?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),n&&this._attributesCount++,this)}setAttributes(t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&this.setAttribute(e,t[e]);return this}addEvent(t,e,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return m.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&m.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Ne(e)&&(Ne(r)||(r=e),e=void 0);const i=it(e),{attributePerEventCountLimit:a}=this._spanLimits,o={};let u=0,c=0;for(const l in i){if(!Object.prototype.hasOwnProperty.call(i,l))continue;const h=i[l];if(a!==void 0&&c>=a){u++;continue}o[l]=this._truncateToSize(h),c++}return this.events.push({name:t,attributes:o,time:this._getTime(r),droppedAttributesCount:u}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:e}=this._spanLimits;if(e===0)return this._droppedLinksCount++,this;e!==void 0&&this.links.length>=e&&(this._droppedLinksCount===0&&m.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:r}=this._spanLimits,n=it(t.attributes),i={};let a=0,o=0;for(const c in n){if(!Object.prototype.hasOwnProperty.call(n,c))continue;const l=n[c];if(r!==void 0&&o>=r){a++;continue}i[c]=this._truncateToSize(l),o++}const u={context:t.context};return o>0&&(u.attributes=i),a>0&&(u.droppedAttributesCount=a),this.links.push(u),this}addLinks(t){for(const e of t)this.addLink(e);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===$.UNSET)return this;if(this.status.code===$.OK)return this;const e={code:t.code};return t.code===$.ERROR&&(typeof t.message=="string"?e.message=t.message:t.message!=null&&m.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=e,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){m.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=Ci(this.startTime,this.endTime),this._duration[0]<0&&(m.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&m.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&m.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=H.now())return At(t+this._performanceOffset);if(typeof t=="number")return M(t);if(t instanceof Date)return M(t.getTime());if(me(t))return t;if(this._startTimeProvided)return M(Date.now());const e=H.now()-this._performanceStartTime;return Cr(this.startTime,M(e))}isRecording(){return this._ended===!1}recordException(t,e){const r={};typeof t=="string"?r[Le]=t:t&&(t.code?r[Ie]=t.code.toString():t.name&&(r[Ie]=t.name),t.message&&(r[Le]=t.message),t.stack&&(r[pi]=t.stack)),r["exception.type"]||r["exception.message"]?this.addEvent(es,r,e):m.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);m.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_truncateToSize(t){const e=this._attributeValueLengthLimit;return e<=0?(m.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,e):r):t}[Ee](t,e,r){const n={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Te(this.resource)}};return Se("SpanImpl",n,t,e,r)}},w;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(w||(w={}));var ns="otel.component.name",is="otel.component.type",ss="otel.span.parent.origin",ze="otel.span.sampling_result",as="otel.sdk.processor.span.processed",os="otel.sdk.processor.span.queue.capacity",cs="otel.sdk.processor.span.queue.size",us="otel.sdk.span.live",ls="otel.sdk.span.started",ds="batching_span_processor",ps=class{static{s(this,"TracerMetrics")}startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(ls,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(us,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,e){const r=fs(e);if(this.startedSpans.add(1,{[ss]:hs(t),[ze]:r}),e===w.NOT_RECORD)return()=>{};const n={[ze]:r};return this.liveSpans.add(1,n),()=>{this.liveSpans.add(-1,n)}}};function hs(t){return t?t.isRemote?"remote":"local":"none"}s(hs,"parentOrigin");function fs(t){switch(t){case w.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case w.RECORD:return"RECORD_ONLY";case w.NOT_RECORD:return"DROP"}}s(fs,"samplingDecisionToString");var _s="2.10.0",gs=class{static{s(this,"Tracer")}_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,e){this.instrumentationScope=t,this._sampler=e.sampler,this._spanLimits=e.spanLimits,this._resource=e.resource,this._idGenerator=e.idGenerator,this._spanProcessor=e.spanProcessor;const r=e.meterProvider.getMeter("@opentelemetry/sdk-trace",_s);this._tracerMetrics=new ps(r)}startSpan(t,e={},r=R.active()){e.root&&(r=b.deleteSpan(r));const n=b.getSpan(r);if(ge(r))return m.debug("Instrumentation suppressed, returning Noop Span"),b.wrapSpanContext(de);const i=n?.spanContext(),a=this._idGenerator.generateSpanId();let o,u,c;!i||!b.isSpanContextValid(i)?u=this._idGenerator.generateTraceId():(u=i.traceId,c=i.traceState,o=i);const l=e.kind??ct.INTERNAL,h=(e.links??[]).map(S=>({context:S.context,attributes:it(S.attributes)})),_=it(e.attributes),f=this._sampler.shouldSample(r,u,t,l,_,h),d=this._tracerMetrics.startSpan(i,f.decision);c=f.traceState??c;const p=f.decision===St.RECORD_AND_SAMPLED?U.SAMPLED:U.NONE,g={traceId:u,spanId:a,traceFlags:p,traceState:c};if(f.decision===St.NOT_RECORD)return m.debug("Recording is off, propagating context in a non-recording span"),b.wrapSpanContext(g);const T=it(Object.assign(_,f.attributes));return new rs({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:g,name:t,kind:l,links:h,parentSpanContext:o,attributes:T,startTime:e.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:d})}startActiveSpan(t,e,r,n){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=e:arguments.length===3?(i=e,o=r):(i=e,a=r,o=n);const u=a??R.active(),c=this.startSpan(t,i,u),l=b.setSpan(u,c);return R.with(l,o,void 0,c)}[Ee](t,e,r){const n={instrumentationScope:this.instrumentationScope,resource:{attributes:Te(this._resource)},spanLimits:this._spanLimits};return Se("Tracer",n,t,e,r)}},ms=class{static{s(this,"MultiSpanProcessor")}_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const e of this._spanProcessors)t.push(e.forceFlush());return new Promise(e=>{Promise.all(t).then(()=>{e()}).catch(r=>{K(r||new Error("MultiSpanProcessor: forceFlush failed")),e()})})}onStart(t,e){for(const r of this._spanProcessors)r.onStart(t,e)}onEnding(t){for(const e of this._spanProcessors)e.onEnding&&e.onEnding(t)}onEnd(t){for(const e of this._spanProcessors)e.onEnd(t)}shutdown(){const t=[];for(const e of this._spanProcessors)t.push(e.shutdown());return new Promise((e,r)=>{Promise.all(t).then(()=>{e()},r)})}},yt=class{static{s(this,"AlwaysOffSampler")}shouldSample(){return{decision:w.NOT_RECORD}}toString(){return"AlwaysOffSampler"}},F=class{static{s(this,"AlwaysOnSampler")}shouldSample(){return{decision:w.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}},rt=class{static{s(this,"ParentBasedSampler")}_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(K(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new F),this._remoteParentSampled=t.remoteParentSampled??new F,this._remoteParentNotSampled=t.remoteParentNotSampled??new yt,this._localParentSampled=t.localParentSampled??new F,this._localParentNotSampled=t.localParentNotSampled??new yt}shouldSample(t,e,r,n,i,a){const o=b.getSpanContext(t);return!o||!wt(o)?this._root.shouldSample(t,e,r,n,i,a):o.isRemote?o.traceFlags&U.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,i,a):this._remoteParentNotSampled.shouldSample(t,e,r,n,i,a):o.traceFlags&U.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,i,a):this._localParentNotSampled.shouldSample(t,e,r,n,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}},Ve=new Map,vs=class{static{s(this,"SpanProcessorMetrics")}processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(t,e,r){const n=Ve.get(t)??0;if(Ve.set(t,n+1),this.standardAttrs={[is]:t,[ns]:`${t}/${n}`},this.droppedAttrs={...this.standardAttrs,[Zt]:"queue_full"},this.processedSpans=e.createCounter(as,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),r){const{capacity:i,getQueueSize:a}=r;e.createUpDownCounter(os,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(i,this.standardAttrs),this.queueSize=e.createObservableUpDownCounter(cs,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=o=>o.observe(a(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(t){this.processedSpans.add(t,this.droppedAttrs)}finishSpans(t,e){if(!e){this.processedSpans.add(t,this.standardAttrs);return}const r={...this.standardAttrs,[Zt]:e.name};this.processedSpans.add(t,r)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}},Es=class{static{s(this,"BatchSpanProcessorBase")}_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t){this._exporter=t.exporter,this._maxExportBatchSize=t.maxExportBatchSize??512,this._maxQueueSize=t.maxQueueSize??2048,this._scheduledDelayMillis=t.scheduledDelayMillis??5e3,this._exportTimeoutMillis=t.exportTimeoutMillis??3e4,this._shutdownOnce=new Wi(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(m.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize);const e=t.selfObsMeterProvider?t.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):dr();this._metrics=new vs(ds,e,{capacity:this._maxQueueSize,getQueueSize:s(()=>this._finishedSpans.length,"getQueueSize")})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,e){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&U.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&m.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++,this._metrics.dropSpans(1);return}this._droppedSpansCount>0&&(m.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,e)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,a=n;i<a;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(e)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,e)=>{const r=setTimeout(()=>{e(new Error("Timeout"))},this._exportTimeoutMillis);R.with(Zn(R.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=s(()=>this._exporter.export(n,o=>{clearTimeout(r),this._metrics.finishSpans(n.length,o.error),o.code===ne.SUCCESS?t():e(o.error??new Error("BatchSpanProcessor: span export failed"))}),"doExport");let a=null;for(let o=0,u=n.length;o<u;o++){const c=n[o];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(a??=[],a.push(c.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,o=>{K(o),e(o)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=s(()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,K(e)})},"flush");if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},Ts=class extends Es{static{s(this,"BatchSpanProcessor$1")}_visibilityChangeListener;_pageHideListener;constructor(t){super(t),this.onInit(t)}onInit(t){t.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(e=>{K(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{K(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}},Ss=16,bs=8,$e=new Uint8Array(Ss),He=new Uint8Array(bs),As=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function je(t){for(let e=0;e<t.length;e++)t[e]=Math.random()*256>>>0;for(let e=0;e<t.length;e++)if(t[e]>0)return;t[t.length-1]=1}s(je,"randomFill");function qe(t){let e="";for(let r=0;r<t.length;r++)e+=As[t[r]];return e}s(qe,"toHex");var Cs=class{static{s(this,"RandomIdGenerator")}generateTraceId(){return je($e),qe($e)}generateSpanId(){return je(He),qe(He)}},z;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(z||(z={}));var ys=class{static{s(this,"TracerProvider")}_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(t={}){this._forceFlushTimeoutMillis=t.forceFlushTimeoutMillis??3e4,this._resource=t.resource??Ji();const e=t.spanProcessors??[];this._activeSpanProcessor=new ms(e),this._tracerOptions={resource:this._resource,sampler:t.sampler??new rt({root:new F}),spanLimits:{attributeCountLimit:t.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:t.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:t.spanLimits?.eventCountLimit??128,linkCountLimit:t.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:t.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:t.spanLimits?.attributePerLinkCountLimit??128},idGenerator:t.idGenerator||new Cs,spanProcessor:this._activeSpanProcessor,meterProvider:t.meterProvider??{getMeter(){return dr()}}}}getTracer(t,e,r){const n=`${t}@${e||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new gs({name:t,version:e,schemaUrl:r?.schemaUrl},this._tracerOptions)),this._tracers.get(n)}forceFlush(){const t=this._forceFlushTimeoutMillis,e=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const a=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=z.timeout},t);r.forceFlush().then(()=>{clearTimeout(a),i!==z.timeout&&(i=z.resolved,n(i))}).catch(o=>{clearTimeout(a),i=z.error,n(o)})}));return new Promise((r,n)=>{Promise.all(e).then(i=>{const a=i.filter(o=>o!==z.resolved);a.length>0?n(a):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Ee](t,e,r){const n=this._activeSpanProcessor._spanProcessors,i={resource:{attributes:Te(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:n.map(a=>a.constructor?.name??"SpanProcessor")};return Se("TracerProvider",i,t,e,r)}},Ke=class{static{s(this,"TraceIdRatioBasedSampler")}_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=this._ratio===1?4294967296:Math.floor(this._ratio*4294967295)}shouldSample(t,e){return{decision:_r(e)&&this._accumulate(e)<this._upperBound?w.RECORD_AND_SAMPLED:w.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let r=0;r<32;r+=8){let n=0;for(let i=0;i<8;i++){const a=t.charCodeAt(r+i),o=a<58?a-48:a<71?a-55:a-87;n=n<<4|o}e=(e^n)>>>0}return e}},P;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(P||(P={}));var mt=1;function Rs(){return{sampler:Os(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:void 0??1/0,attributeCountLimit:void 0??128},spanLimits:{attributeValueLengthLimit:void 0??1/0,attributeCountLimit:void 0??128,linkCountLimit:void 0??128,eventCountLimit:void 0??128,attributePerEventCountLimit:void 0??128,attributePerLinkCountLimit:void 0??128}}}s(Rs,"loadDefaultConfig");function Os(){const t=void 0??P.ParentBasedAlwaysOn;switch(t){case P.AlwaysOn:return new F;case P.AlwaysOff:return new yt;case P.ParentBasedAlwaysOn:return new rt({root:new F});case P.ParentBasedAlwaysOff:return new rt({root:new yt});case P.TraceIdRatio:return new Ke(Ye());case P.ParentBasedTraceIdRatio:return new rt({root:new Ke(Ye())});default:return m.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "${P.ParentBasedAlwaysOn}".`),new rt({root:new F})}}s(Os,"buildSamplerFromEnv");function Ye(){const t=void 0;return t==null?(m.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${mt}.`),mt):t<0||t>1?(m.error(`OTEL_TRACES_SAMPLER_ARG=${t} was given, but it is out of range ([0..1]), defaulting to ${mt}.`),mt):t}s(Ye,"getSamplerProbabilityFromEnv");function Ps(t){const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=t.spanLimits?.attributeCountLimit??t.generalLimits?.attributeCountLimit??void 0??void 0??128,e.attributeValueLengthLimit=t.spanLimits?.attributeValueLengthLimit??t.generalLimits?.attributeValueLengthLimit??void 0??void 0??1/0,Object.assign({},t,{spanLimits:e})}s(Ps,"reconfigureLimits");var ws=class extends ys{static{s(this,"BasicTracerProvider")}constructor(t={}){const e=ji({},Rs(),Ps(t));delete e.generalLimits,super(e)}},Ls=class extends Ts{static{s(this,"BatchSpanProcessor")}constructor(t,e){e||(e={});for(const[r,n]of[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]])if(e[r]===void 0){const i=void 0;i!==void 0&&(e[r]=i)}super({exporter:t,...e})}},Mr=class{static{s(this,"StackContextManager")}_enabled=!1;_currentContext=B;_bindFunction(t=B,e){const r=this,n=s(function(...i){return r.with(t,()=>e.apply(this,i))},"contextWrapper");return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),n}active(){return this._currentContext}bind(t,e){return t===void 0&&(t=this.active()),typeof e=="function"?this._bindFunction(t,e):e}disable(){return this._currentContext=B,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=B,this)}with(t,e,r,...n){const i=this._currentContext;this._currentContext=t||B;try{return e.call(r,...n)}finally{this._currentContext=i}}};function Is(t){if(t!==null){if(t===void 0){const e=new Mr;e.enable(),R.setGlobalContextManager(e);return}t.enable(),R.setGlobalContextManager(t)}}s(Is,"setupContextManager");function Ns(t){if(t!==null){if(t===void 0){D.setGlobalPropagator(new yi({propagators:[new xi,new ii]}));return}D.setGlobalPropagator(t)}}s(Ns,"setupPropagator");var Ms=class extends ws{static{s(this,"WebTracerProvider")}constructor(t={}){super(t)}register(t={}){b.setGlobalTracerProvider(this),Ns(t.propagator),Is(t.contextManager)}},E;(function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.START_TIME="startTime",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"})(E||(E={}));var xs="http.response_content_length",Ds="http.response_content_length_uncompressed",qt;function ks(){return qt||(qt=document.createElement("a")),qt}s(ks,"getUrlNormalizingAnchor");function Us(t,e){return e in t}s(Us,"hasKey");function N(t,e,r,n=!0){if(Us(r,e)&&typeof r[e]=="number"&&!(n&&r[e]===0))return t.addEvent(e,r[e])}s(N,"addSpanNetworkEvent");function We(t,e,r=!1,n,i){if(n===void 0&&(n=e[E.START_TIME]!==0),r||(N(t,E.FETCH_START,e,n),N(t,E.DOMAIN_LOOKUP_START,e,n),N(t,E.DOMAIN_LOOKUP_END,e,n),N(t,E.CONNECT_START,e,n),N(t,E.SECURE_CONNECTION_START,e,n),N(t,E.CONNECT_END,e,n),N(t,E.REQUEST_START,e,n),N(t,E.RESPONSE_START,e,n),N(t,E.RESPONSE_END,e,n)),!i){const a=e[E.ENCODED_BODY_SIZE];a!==void 0&&t.setAttribute(xs,a);const o=e[E.DECODED_BODY_SIZE];o!==void 0&&a!==o&&t.setAttribute(Ds,o)}}s(We,"addSpanNetworkEvents");function Bs(t){return t.slice().sort((e,r)=>{const n=e[E.FETCH_START],i=r[E.FETCH_START];return n>i?1:n<i?-1:0})}s(Bs,"sortResources");function xr(){return typeof location<"u"?location.origin:void 0}s(xr,"getOrigin");function Fs(t,e,r,n,i=new WeakSet,a){const o=Rt(t);t=o.toString();const u=zs(t,e,r,n,i,a);if(u.length===0)return{mainRequest:void 0};if(u.length===1)return{mainRequest:u[0]};const c=Bs(u);if(o.origin!==xr()&&c.length>1){let l=c[0],h=Gs(c,l[E.RESPONSE_END],r);const _=l[E.RESPONSE_END];return h[E.FETCH_START]<_&&(h=l,l=void 0),{corsPreFlightRequest:l,mainRequest:h}}else return{mainRequest:u[0]}}s(Fs,"getResource");function Gs(t,e,r){const n=x(r),i=x(st(e));let a=t[1],o;const u=t.length;for(let c=1;c<u;c++){const l=t[c],h=x(st(l[E.FETCH_START])),_=n-x(st(l[E.RESPONSE_END]));h>=i&&(!o||_<o)&&(o=_,a=l)}return a}s(Gs,"findMainRequest");function zs(t,e,r,n,i,a){const o=x(e),u=x(r);let c=n.filter(l=>{const h=x(st(l[E.FETCH_START])),_=x(st(l[E.RESPONSE_END]));return l.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&l.name===t&&h>=o&&_<=u});return c.length>0&&(c=c.filter(l=>!i.has(l))),c}s(zs,"filterResourcesForSpan");function Rt(t){if(typeof URL=="function")return new URL(t,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const e=ks();return e.href=t,e}s(Rt,"parseUrl");function Vs(t,e){let r=e||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),Rt(t).origin===xr()?!0:r.some(n=>Nr(t,n))}s(Vs,"shouldPropagateTraceHeaders");var Dr=class{static{s(this,"NoopLogger")}emit(t){}enabled(){return!1}},$s=new Dr,vt=Symbol.for("io.opentelemetry.js.api.logs"),Q=globalThis;function Hs(t,e,r){return n=>n===t?e:r}s(Hs,"makeGetter");var js=class{static{s(this,"NoopLoggerProvider")}getLogger(t,e,r){return new Dr}},kr=new js,qs=class{static{s(this,"ProxyLogger")}constructor(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}enabled(t){return this._getLogger().enabled(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider._getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):$s}},Xe=class{static{s(this,"ProxyLoggerProvider")}getLogger(t,e,r){var n;return(n=this._getDelegateLogger(t,e,r))!==null&&n!==void 0?n:new qs(this,t,e,r)}_getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:kr}_setDelegate(t){this._delegate=t}_getDelegateLogger(t,e,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,e,r)}},Ks=class Ur{static{s(this,"LogsAPI")}constructor(){this._proxyLoggerProvider=new Xe}static getInstance(){return this._instance||(this._instance=new Ur),this._instance}setGlobalLoggerProvider(e){return Q[vt]?this.getLoggerProvider():(Q[vt]=Hs(1,e,kr),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Q[vt])===null||e===void 0?void 0:e.call(Q,1))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Q[vt],this._proxyLoggerProvider=new Xe}},Ys=Ks.getInstance(),C=(()=>{}).bind(console);function J(t,e,r){const n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}s(J,"defineProperty");var be=s((t,e,r)=>{if(!t||!t[e]){C("no original function "+String(e)+" to wrap");return}if(!r){C("no wrapper function"),C(new Error().stack);return}const n=t[e];if(typeof n!="function"||typeof r!="function"){C("original object and wrapper must be functions");return}const i=r(n,e);return J(i,"__original",n),J(i,"__unwrap",()=>{t[e]===i&&J(t,e,n)}),J(i,"__wrapped",!0),J(t,e,i),i},"wrap"),Br=s((t,e,r)=>{if(t)Array.isArray(t)||(t=[t]);else{C("must provide one or more modules to patch"),C(new Error().stack);return}if(!(e&&Array.isArray(e))){C("must provide one or more functions to wrap on modules");return}t.forEach(n=>{e.forEach(i=>{be(n,i,r)})})},"massWrap"),Ae=s((t,e)=>{if(!t||!t[e]){C("no function to unwrap."),C(new Error().stack);return}const r=t[e];if(!r.__unwrap)C("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{r.__unwrap();return}},"unwrap"),Fr=s((t,e)=>{if(t)Array.isArray(t)||(t=[t]);else{C("must provide one or more modules to patch"),C(new Error().stack);return}if(!(e&&Array.isArray(e))){C("must provide one or more functions to unwrap on modules");return}t.forEach(r=>{e.forEach(n=>{Ae(r,n)})})},"massUnwrap");function Lt(t){t&&t.logger&&(typeof t.logger!="function"?C("new logger isn't a function, not replacing"):C=t.logger)}s(Lt,"shimmer");Lt.wrap=be;Lt.massWrap=Br;Lt.unwrap=Ae;Lt.massUnwrap=Fr;var Ws=class{static{s(this,"InstrumentationAbstract")}_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(t,e,r){this.instrumentationName=t,this.instrumentationVersion=e,this.setConfig(r),this._diag=m.createComponentLogger({namespace:t}),this._tracer=b.getTracer(t,e),this._meter=jn.getMeter(t,e),this._logger=Ys.getLogger(t,e),this._updateMetricInstruments()}_wrap=be;_unwrap=Ae;_massWrap=Br;_massUnwrap=Fr;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,e,r,n){if(t)try{t(r,n)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:e},i)}}},Xs=class extends Ws{static{s(this,"InstrumentationBase")}constructor(t,e,r){super(t,e,r),this._config.enabled&&this.enable()}};function Qe(t,e,r){let n,i;try{i=t()}catch(a){n=a}finally{if(e(n,i),n&&!r)throw n;return i}}s(Qe,"safeExecuteInTheMiddle");var Qs="http.request.body.size",Gr=m.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function Js(...t){if(t[0]instanceof URL||typeof t[0]=="string"){const e=t[1];if(!e?.body)return Promise.resolve();if(e.body instanceof ReadableStream){const{body:r,length:n}=Zs(e.body);return e.body=r,n}else return Promise.resolve(ea(e.body))}else{const e=t[0];return e?.body?e.clone().text().then(r=>se(r)):Promise.resolve()}}s(Js,"getFetchBodyLength");function Zs(t){if(!t.pipeThrough)return Gr.warn("Platform has ReadableStream but not pipeThrough!"),{body:t,length:Promise.resolve(void 0)};let e=0,r;const n=new Promise(a=>{r=a}),i=new TransformStream({start(){},async transform(a,o){const u=await a;e+=u.byteLength,o.enqueue(a)},flush(){r(e)}});return{body:t.pipeThrough(i),length:n}}s(Zs,"_getBodyNonDestructively");function ta(t){return typeof Document<"u"&&t instanceof Document}s(ta,"isDocument");function ea(t){if(ta(t))return new XMLSerializer().serializeToString(document).length;if(typeof t=="string")return se(t);if(t instanceof Blob)return t.size;if(t instanceof FormData)return na(t);if(t instanceof URLSearchParams)return se(t.toString());if(t.byteLength!==void 0)return t.byteLength;Gr.warn("unknown body type")}s(ea,"getXHRBodyLength");var ra=new TextEncoder;function se(t){return ra.encode(t).byteLength}s(se,"getByteLength");function na(t){let e=0;for(const[r,n]of t.entries())e+=r.length,n instanceof Blob?e+=n.size:e+=n.length;return e}s(na,"getFormDataSize");function ia(t){const e=aa(),r=t.toUpperCase();return r in e?r:"_OTHER"}s(ia,"normalizeHttpRequestMethod");var sa={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},Z;function aa(){if(Z===void 0){const t=void 0;t&&t.length>0?(Z={},t.forEach(e=>{Z[e]=!0})):Z=sa}return Z}s(aa,"getKnownMethods");var oa={"https:":"443","http:":"80"};function ca(t){const e=Number(t.port||oa[t.protocol]);if(e&&!isNaN(e))return e}s(ca,"serverPortFromUrl");var Je="0.221.0",ua=300,Ze=typeof PerformanceObserver<"u",la=class extends Xs{static{s(this,"FetchInstrumentation")}component="fetch";version=Je;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;constructor(t={}){super("@opentelemetry/instrumentation-fetch",Je,t)}init(){}_addChildSpan(t,e){const r=this.tracer.startSpan("CORS Preflight",{startTime:e[E.FETCH_START]},b.setSpan(R.active(),t));We(r,e,this.getConfig().ignoreNetworkEvents,void 0,!0),r.end(e[E.RESPONSE_END])}_addFinalSpanAttributes(t,e){const r=Rt(e.url);t.setAttribute(_i,e.status),t.setAttribute(gi,r.hostname);const n=ca(r);n&&t.setAttribute(mi,n)}_addHeaders(t,e){if(!Vs(e,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};D.inject(R.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)D.inject(R.active(),t.headers,{set:s((r,n,i)=>r.set(n,typeof i=="string"?i:String(i)),"set")});else{const r=new Headers(t.headers);D.inject(R.active(),r,{set:s((n,i,a)=>n.set(i,typeof a=="string"?a:String(a)),"set")}),t.headers=r}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,e={}){if(Ki(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}const r={},n=e.method,i=ia(e.method||"GET"),a=i;return r[hi]=i,i!==n&&(r[fi]=n),r[Ti]=t,this.tracer.startSpan(a,{kind:ct.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(t,e,r){let n=e.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}const i=Fs(e.spanUrl,e.startTime,r,n,this._usedResources,"fetch");if(i.mainRequest){const a=i.mainRequest;this._markResourceAsUsed(a);const o=i.corsPreFlightRequest;o&&(this._addChildSpan(t,o),this._markResourceAsUsed(o)),We(t,a,this.getConfig().ignoreNetworkEvents,void 0,!0)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,e,r){const n=M(Date.now()),i=At();this._addFinalSpanAttributes(t,r),r.status>=400&&(t.setStatus({code:$.ERROR}),t.setAttribute(Zt,String(r.status))),setTimeout(()=>{e.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,e,i),this._tasksCount--,this._clearResources(),t.end(n)},ua)}_patchConstructor(){return t=>{const e=this;return s(function(...n){if(!e._isEnabled)return t.apply(this,n);const i=this,a=Rt(n[0]instanceof Request?n[0].url:String(n[0])).href;let o;n[0]instanceof Request?o=n[1]!=null?new Request(n[0],n[1]):n[0]:o=n[1]||{};const u=e._createSpan(a,o);if(!u)return t.apply(this,n);const c=e._prepareSpanData(a);e.getConfig().measureRequestSize&&Js(...n).then(d=>{d&&u.setAttribute(Qs,d)}).catch(d=>{e._diag.warn("getFetchBodyLength",d)});function l(d,p){e._applyAttributesAfterFetch(d,o,p),e._endSpan(d,c,{status:p.status||0,statusText:p.message,url:a})}s(l,"endSpanOnError");function h(d,p){e._applyAttributesAfterFetch(d,o,p),p.status>=200&&p.status<400?e._endSpan(d,c,p):e._endSpan(d,c,{status:p.status,statusText:p.statusText,url:a})}s(h,"endSpanOnSuccess");function _(d,p){try{const g=p.clone().body;if(g){const T=g.getReader(),S=s(()=>{T.read().then(({done:y})=>{y?h(d,p):S()},y=>{l(d,y)})},"read");S()}else h(d,p)}catch(g){e._diag.error("Failed to read fetch response body",g),e._endSpan(d,c,{status:0,url:a})}return p}s(_,"onSuccess");function f(d,p){try{l(d,p)}catch(g){e._diag.error("Failed to end span on fetch error",g),e._endSpan(d,c,{status:p.status||0,url:a})}throw p}return s(f,"onError"),R.with(b.setSpan(R.active(),u),()=>(e._callRequestHook(u,o),e._addHeaders(o,a),e._tasksCount++,t.apply(i,o instanceof Request?[o]:[a,o]).then(_.bind(i,u),f.bind(i,u))))},"patchConstructor")}}_applyAttributesAfterFetch(t,e,r){const n=this.getConfig().applyCustomAttributesOnSpan;n&&Qe(()=>n(t,e,r),i=>{i&&this._diag.error("applyCustomAttributesOnSpan",i)},!0)}_callRequestHook(t,e){const r=this.getConfig().requestHook;r&&Qe(()=>r(t,e),n=>{n&&this._diag.error("requestHook",n)},!0)}_prepareSpanData(t){const e=At(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:e,spanUrl:t};const n=new PerformanceObserver(i=>{i.getEntries().forEach(a=>{a.initiatorType==="fetch"&&a.name===t&&r.push(a)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:e,spanUrl:t}}enable(){if(!Ze){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument server-side fetch()");return}if(!this._isEnabled){if(this._isFetchPatched){this._diag.debug("fetch constructor already patched"),this._isEnabled=!0;return}try{this._wrap(globalThis,"fetch",this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(t){this._diag.warn("Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.",t)}}}disable(){Ze&&this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}},zr=-1,pt=s(()=>zr,"n"),ht=s(t=>{addEventListener("pageshow",e=>{e.persisted&&(zr=e.timeStamp,t(e))},!0)},"e"),L=s((t,e,r,n)=>{let i,a;return o=>{e.value>=0&&(o||n)&&(a=e.value-(i??0),(a||i===void 0)&&(i=e.value,e.delta=a,e.rating=((u,c)=>u>c[1]?"poor":u>c[0]?"needs-improvement":"good")(e.value,r),t(e)))}},"i"),Ce=s(t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},"o"),Vr=s(()=>{const t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},"s"),It=s(()=>Vr()?.activationStart??0,"a"),V=-1,$r=new Set,tr=s(()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,"f"),ae=s(t=>{if(document.visibilityState==="hidden"){if(t.type==="visibilitychange")for(const e of $r)e();isFinite(V)||(V=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("prerenderingchange",ae,!0))}},"h"),ut=s((t=!1)=>{if(t&&(V=1/0),V<0){const e=It();V=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??tr(),addEventListener("visibilitychange",ae,!0),addEventListener("prerenderingchange",ae,!0),ht(()=>{setTimeout(()=>{V=tr()})})}return{get firstHiddenTime(){return V},onHidden(e){$r.add(e)}}},"d"),k=s((t,e=-1,r,n=0,i,a,o)=>{const u=Vr(),c=u?.navigationId||0;let l="navigate";return r?l=r:pt()>=0?l="back-forward-cache":u&&(document.prerendering||It()>0?l="prerender":document.wasDiscarded?l="restore":u.type&&(l=u.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:l,navigationId:n||c,navigationInteractionId:i,navigationURL:a||u?.name,navigationStartTime:o||0}},"l"),er=new WeakMap;function Nt(t,e){let r=er.get(e);return r||(r=new WeakMap,er.set(e,r)),r.get(t)||r.set(t,new e),r.get(t)}s(Nt,"u");var da=class{static{s(this,"v")}t;i=0;o=[];h(t){if(t.hadRecentInput)return;const e=this.o[0],r=this.o.at(-1);this.i&&e&&r&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),this.t?.(t)}},Y=s((t,e,r={})=>{try{const n=t.filter(i=>PerformanceObserver.supportedEntryTypes.includes(i));if(n.length>0){const i=new PerformanceObserver(a=>{queueMicrotask(()=>{const o=a.getEntries();n.length>1&&o.sort((u,c)=>u.startTime+u.duration-(c.startTime+c.duration)),e(o)})});for(const a of n)i.observe({type:a,buffered:!0,...r});return i}}catch{}},"m"),Mt=s(t=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes("soft-navigation")&&typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint=="function"&&t&&t.reportSoftNavs,"p"),Hr=s((t,e)=>{if(t.set(e.navigationId,e),t.size>2){const r=t.keys().next().value;r!==void 0&&t.delete(r)}},"b"),jr=s(t=>{let e=!1;return()=>{e||(t(),e=!0)}},"T"),pa=class{static{s(this,"y")}l},ye=s(t=>{document.prerendering?addEventListener("prerenderingchange",t,!0):t()},"_"),Kt=[1800,3e3],ha=s((t,e={})=>{const r=Mt(e);ye(()=>{const n=Nt(e,pa),i=ut();let a,o=k("FCP");const u=Y(["paint"],c=>{for(const l of c)l.name==="first-contentful-paint"&&(u.disconnect(),l.startTime<i.firstHiddenTime&&(o.value=Math.max(l.startTime-It(),0),o.entries.push(l),o.navigationId=l.navigationId||o.navigationId,a(!0)))});u&&(a=L(t,o,Kt,e.reportAllChanges),ht(c=>{o=k("FCP",-1,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,pt()),a=L(t,o,Kt,e.reportAllChanges),Ce(()=>{o.value=performance.now()-c.timeStamp,a(!0)})})),r&&Y(["soft-navigation"],c=>{c.forEach(l=>{n.l&&l.navigationId&&Hr(n.l,l);const h=Math.max((l.presentationTime||l.paintTime||0)-l.startTime,0);o=k("FCP",h,"soft-navigation",l.navigationId,l.interactionId,l.name,l.startTime),a=L(t,o,Kt,e.reportAllChanges),a(!0)})},e)})},"M"),rr=[.1,.25],fa=s((t,e={})=>{const r=ut();ha(jr(()=>{let n,i=k("CLS",0);const a=Nt(e,da),o=s((f,d,p,g,T)=>{i=k("CLS",0,f,d,p,g,T),a.i=0,n=L(t,i,rr,e.reportAllChanges)},"h"),u=s((f=!1)=>{a.i>i.value&&(i.value=a.i,i.entries=a.o),n(f)},"d"),c=s(f=>{u(!0),o("soft-navigation",f.navigationId,f.interactionId,f.name,f.startTime)},"g"),l=s(f=>{for(const d of f)d.entryType!=="soft-navigation"?a.h(d):c(d);u()},"b"),h=["layout-shift"];Mt(e)&&h.push("soft-navigation");const _=Y(h,l);_&&(n=L(t,i,rr,e.reportAllChanges),r.onHidden(()=>{l(_.takeRecords()),n(!0)}),ht(()=>{o("back-forward-cache",i.navigationId,i.navigationInteractionId,i.navigationURL,pt()),Ce(n)}),setTimeout(n))}))},"P"),qr=0,Yt=1/0,Et=0,_a=s(t=>{for(const e of t)e.interactionId&&(Yt=Math.min(Yt,e.interactionId),Et=Math.max(Et,e.interactionId),qr=Et?(Et-Yt)/7+1:0)},"C"),oe,nr=s(()=>oe?qr:performance.interactionCount??0,"N"),ga=s(()=>{"interactionCount"in performance||oe||(oe=Y(["event"],_a,{durationThreshold:0}))},"B"),ma=class{static{s(this,"S")}u=0;v=[];m=new Map;p;T;_(){return nr()-this.u}M(){this.u=nr(),this.v.length=0,this.m.clear()}L(t){const e=this._(),r=Math.min(this.v.length-1,Math.floor(e/50));return!e||r!==-1||t!=="soft-navigation"&&t!=="back-forward-cache"?this.v[r]:{P:8,id:-1,entries:[]}}h(t){if(this.p?.(t),!t.interactionId)return;const e=this.v.at(-1);let r=this.m.get(t.interactionId);if(r||this.v.length<10||t.duration>e.P){if(r?t.duration>r.P?(r.entries=[t],r.P=t.duration):t.duration===r.P&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],P:t.duration},this.m.set(r.id,r),this.v.push(r)),this.v.sort((n,i)=>i.P-n.P),this.v.length>10){const n=this.v.splice(10);for(const i of n)this.m.delete(i.id)}this.T?.(r)}}},Kr=s(t=>{const e="requestIdleCallback"in globalThis?1e3:0,r=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")t();else{const i=jr(t);let a=-1;const o=s(()=>{n(a),i()},"a");addEventListener("visibilitychange",o,{once:!0,capture:!0}),a=r(()=>{removeEventListener("visibilitychange",o,{capture:!0}),i()},{timeout:e})}},"q"),ir=[200,500],va=s((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=ut();ye(()=>{ga();let n,i=k("INP");const a=Nt(e,ma),o=s((f,d,p,g,T)=>{a.M(),i=k("INP",-1,f,d,p,g,T),n=L(t,i,ir,e.reportAllChanges)},"f"),u=s(()=>{const f=a.L(i.navigationType);f&&f.P!==i.value&&(i.value=f.P,i.entries=f.entries,n())},"h"),c=s(f=>{u(),n(!0),o("soft-navigation",f.navigationId,f.interactionId,f.name,f.startTime)},"d"),l=s((f,d=!1)=>{Kr(()=>{for(const p of f)p.entryType!=="soft-navigation"?a.h(p):c(p);u(),d&&n(!0)})},"g"),h=["event","first-input"];Mt(e)&&h.push("soft-navigation");const _=Y(h,l,{...e,durationThreshold:e.durationThreshold??40});n=L(t,i,ir,e.reportAllChanges),_&&(r.onHidden(()=>{l(_.takeRecords(),!0)}),ht(()=>{o("back-forward-cache",i.navigationId,i.navigationInteractionId,i.navigationURL,pt())}))})},"x"),Ea=class{static{s(this,"H")}p;l;h(t){this.p?.(t)}},Wt=[2500,4e3],Ta=s((t,e={})=>{let r=!1;const n=Mt(e);ye(()=>{let i,a=ut(),o=k("LCP");const u=Nt(e,Ea),c=s((d,p,g,T,S)=>{o=k("LCP",-1,d,p,g,T,S),i=L(t,o,Wt,e.reportAllChanges),r=!1,d==="soft-navigation"&&(a=ut(!0))},"p"),l=s(d=>{u.l&&d.navigationId&&Hr(u.l,d),r||i(!0),c("soft-navigation",d.navigationId,d.interactionId,d.name,d.startTime);const p=d.getLargestInteractionContentfulPaint?.();p&&h([p])},"T"),h=s(d=>{e.reportAllChanges||n||(d=d.slice(-1));for(const p of d){if(!p)continue;if(p.entryType==="soft-navigation"){l(p);continue}let g=0,T=[],S=p.startTime;if(p.entryType==="largest-contentful-paint")g=Math.max(p.startTime-It(),0),u.h(p),T=[p];else if(p.entryType==="interaction-contentful-paint"){const y=p;if(!o.navigationId||"interactionId"in y&&y.interactionId!=o.navigationInteractionId)continue;S=y.largestContentfulPaint?.renderTime||0,g=Math.max(S-p.startTime,0),y.largestContentfulPaint&&(u.h(y.largestContentfulPaint),T=[y.largestContentfulPaint])}S<a.firstHiddenTime&&(o.value=g,o.entries=T,i())}},"y"),_=["largest-contentful-paint"];n&&_.push("interaction-contentful-paint","soft-navigation");const f=Y(_,h);if(f){i=L(t,o,Wt,e.reportAllChanges);const d=["keydown","click","visibilitychange"],p=s(g=>{if(g.isTrusted&&!r){const T=o.id;Kr(()=>{if(!r){if(!n){f.disconnect();for(const S of d)removeEventListener(S,p,{capture:!0})}T===o.id&&(r=!0,i(!0))}})}},"h");for(const g of d)addEventListener(g,p,{capture:!0});ht(g=>{c("back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,pt()),i=L(t,o,Wt,e.reportAllChanges),Ce(()=>{o.value=performance.now()-g.timeStamp,r=!0,i(!0)})})}})},"U");function Sa(t,e){const r={attributes:ft(t.attributes,e),droppedAttributesCount:0},n=t.schemaUrl;return n&&n!==""&&(r.schemaUrl=n),r}s(Sa,"createResource");function ba(t,e){const r={name:t.name,version:t.version};return t.attributes&&Object.keys(t.attributes).length>0&&(r.attributes=ft(t.attributes,e),r.droppedAttributesCount=t.droppedAttributesCount??0),r}s(ba,"createInstrumentationScope");function ft(t,e){return Object.keys(t).map(r=>Aa(r,t[r],e))}s(ft,"toAttributes");function Aa(t,e,r){return{key:t,value:ce(e,r)}}s(Aa,"toKeyValue");function ce(t,e){const r=typeof t;if(r==="string")return{stringValue:t};if(r==="number")return Number.isInteger(t)?{intValue:t}:{doubleValue:t};if(r==="boolean")return{boolValue:t};if(t instanceof Uint8Array)return{bytesValue:e.encodeUint8Array(t)};if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=ce(t[i],e);return{arrayValue:{values:n}}}if(r==="object"&&t!=null){const n=Object.keys(t),i=new Array(n.length);for(let a=0;a<n.length;a++)i[a]={key:n[a],value:ce(t[n[a]],e)};return{kvlistValue:{values:i}}}return{}}s(ce,"toAnyValue");function Ca(t){const e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}s(Ca,"hrTimeToNanos");function ya(t){return Ca(t).toString()}s(ya,"encodeAsString");var Ra=typeof BigInt<"u"?ya:x;function sr(t){return t}s(sr,"identity");var Oa={encodeHrTime:Ra,encodeSpanContext:sr,encodeOptionalSpanContext:sr,encodeUint8Array:s(t=>{if(typeof Buffer<"u")return Buffer.from(t).toString("base64");const e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=String.fromCharCode(t[r]);return btoa(e.join(""))},"encodeUint8Array")},Pa=256,wa=512;function Yr(t,e){let r=t&255|Pa;return e&&(r|=wa),r}s(Yr,"buildSpanFlagsFrom");function La(t,e){const r=t.spanContext(),n=t.status,i=t.parentSpanContext?.spanId?e.encodeSpanContext(t.parentSpanContext?.spanId):void 0;return{traceId:e.encodeSpanContext(r.traceId),spanId:e.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:ft(t.attributes,e),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(a=>Na(a,e)),droppedEventsCount:t.droppedEventsCount,status:{code:n.code,message:n.message},links:t.links.map(a=>Ia(a,e)),droppedLinksCount:t.droppedLinksCount,flags:Yr(r.traceFlags,t.parentSpanContext?.isRemote)}}s(La,"sdkSpanToOtlpSpan");function Ia(t,e){return{attributes:t.attributes?ft(t.attributes,e):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:t.context.traceState?.serialize(),droppedAttributesCount:t.droppedAttributesCount||0,flags:Yr(t.context.traceFlags,t.context.isRemote)}}s(Ia,"toOtlpLink");function Na(t,e){return{attributes:t.attributes?ft(t.attributes,e):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}s(Na,"toOtlpSpanEvent");function Ma(t,e){return{resourceSpans:Da(t,e)}}s(Ma,"createExportTraceServiceRequest");function xa(t){const e=new Map;for(const r of t){let n=e.get(r.resource);n||(n=new Map,e.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(r)}return e}s(xa,"createResourceMap");function Da(t,e){const r=xa(t),n=[],i=r.entries();let a=i.next();for(;!a.done;){const[o,u]=a.value,c=[],l=u.values();let h=l.next();for(;!h.done;){const d=h.value;if(d.length>0){const p=d.map(g=>La(g,e));c.push({scope:ba(d[0].instrumentationScope,e),spans:p,schemaUrl:d[0].instrumentationScope.schemaUrl})}h=l.next()}const _=Sa(o,e),f={resource:_,scopeSpans:c,schemaUrl:_.schemaUrl};n.push(f),a=i.next()}return n}s(Da,"spanRecordsToResourceSpans");var ka={serializeRequest:s(t=>{const e=Ma(t,Oa);return new TextEncoder().encode(JSON.stringify(e))},"serializeRequest"),deserializeResponse:s(t=>{if(t.length===0)return{};const e=new TextDecoder;try{return JSON.parse(e.decode(t))}catch(r){return m.warn(`Failed to parse trace export response: ${r.message}. Returning empty response`),{}}},"deserializeResponse")},ar=0,Xt=1;function or(t){return t.name==="page.load"||t.name.startsWith("web_vital.")?0:1}s(or,"priority");var Ua=class{static{s(this,"OtlpFetchExporter")}options;pending=new Set;keepaliveBytesInFlight=0;stopped=!1;constructor(t){this.options=t}export(t,e){if(this.stopped||t.length===0){e({code:this.stopped?Xt:ar});return}const r=[...t].sort((a,o)=>or(a)-or(o)),n=(this.options.isPageHidden??(()=>typeof document<"u"&&document.visibilityState==="hidden"))(),i=n?this.chunk(r):[this.serialize(r)];if(i.some(a=>a===null)){e({code:Xt});return}Promise.all(i.map(a=>this.send(a,n))).then(a=>e({code:a.every(Boolean)?ar:Xt}))}serialize(t){try{return ka.serializeRequest(t)??null}catch{return null}}chunk(t){const e=this.serialize(t);if(!e||e.byteLength<=61440||t.length===1)return[e];const r=Math.ceil(t.length/2);return[...this.chunk(t.slice(0,r)),...this.chunk(t.slice(r))]}send(t,e){const r=e&&t.byteLength<=61440&&this.keepaliveBytesInFlight+t.byteLength<=61440;r&&(this.keepaliveBytesInFlight+=t.byteLength);const n=this.options.fetch(this.options.url,{method:"POST",headers:{"content-type":"application/json",...this.options.headers},body:t,keepalive:r,credentials:"omit"}).then(i=>i.ok).catch(()=>!1).finally(()=>{r&&(this.keepaliveBytesInFlight-=t.byteLength)});return this.pending.add(n),n.finally(()=>this.pending.delete(n)),n}async forceFlush(){await Promise.all(this.pending)}async shutdown(){this.stopped=!0,await this.forceFlush()}},Ba=new Set(["paperclip.page.route","paperclip.page.load_type","paperclip.page.outcome","paperclip.page.ready_signal","paperclip.page.was_hidden","paperclip.page.suspended","paperclip.page.view","paperclip.page.navigation_type","paperclip.page.ttfb_ms","paperclip.page.dom_content_loaded_ms","paperclip.page.load_event_ms","paperclip.web_vital.name","paperclip.web_vital.value","paperclip.web_vital.rating","paperclip.api.area","paperclip.api.timing_source","http.request.method","http.response.status_code","error.type","SampleRate"]),Fa=new Set(["paperclip.instance.host","service.name","service.version","deployment.environment.name","telemetry.sdk.name","telemetry.sdk.language","telemetry.sdk.version"]),Ga=/^[a-z][a-z0-9-]{0,40}$/;function za(t){let e;try{e=new URL(t).pathname}catch{return null}if(!e.startsWith("/api/"))return null;const r=e.split("/")[2]??"";return Ga.test(r)?r:"other"}s(za,"apiAreaFromUrl");function Wr(t,e){const r={};for(const[n,i]of Object.entries(t))e.has(n)&&(r[n]=i);return r}s(Wr,"pickAttributes");var cr=new WeakMap;function Va(t){let e=cr.get(t);return e||(e=ve(Wr(t.attributes,Fa)),cr.set(t,e)),e}s(Va,"sanitizeResource");function $a(t){const e=Wr(t.attributes,Ba),r=t.attributes["url.full"];if(typeof r=="string"){const n=za(r);n&&(e["paperclip.api.area"]=n)}return{name:t.name,kind:t.kind,spanContext:s(()=>t.spanContext(),"spanContext"),parentSpanContext:t.parentSpanContext,startTime:t.startTime,endTime:t.endTime,status:{code:t.status.code},attributes:e,links:[],events:t.events.map(n=>({name:n.name,time:n.time,droppedAttributesCount:0})),duration:t.duration,ended:t.ended,resource:Va(t.resource),instrumentationScope:t.instrumentationScope,droppedAttributesCount:0,droppedEventsCount:t.droppedEventsCount,droppedLinksCount:0}}s($a,"sanitizeSpan");var Ha=class{static{s(this,"SanitizingSpanExporter")}inner;constructor(t){this.inner=t}export(t,e){this.inner.export(t.map($a),e)}shutdown(){return this.inner.shutdown()}forceFlush(){return this.inner.forceFlush?.()??Promise.resolve()}},ja="paperclip.browser",qa=class extends Mr{static{s(this,"PageLoadContextManager")}openPageSpan;constructor(t){super(),this.openPageSpan=t}active(){const t=super.active();if(t!==B)return t;const e=this.openPageSpan();return e?b.setSpan(t,e):t}};function Ka(t,e){return{getTracer(r,n,i){const a=t.getTracer(r,n,i),o=s(()=>b.wrapSpanContext(de),"unrecorded");return{startSpan:s((u,c,l)=>e()?a.startSpan(u,c,l):o(),"startSpan"),startActiveSpan:s(((...u)=>{if(e())return a.startActiveSpan(...u);const c=u[u.length-1];return c(o())}),"startActiveSpan")}}}}s(Ka,"measuredRequestsOnly");function Ya(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}s(Ya,"escapeRegExp");function Wa(t){return new RegExp(`^(?!${Ya(t)}/api/)`)}s(Wa,"nonApiUrlPattern");function Qt(t){return Math.round(t)}s(Qt,"roundMs");function Xa(){const t=performance.getEntriesByType?.("navigation")[0];if(!t)return{};const e={"paperclip.page.navigation_type":t.type};return t.responseStart>0&&(e["paperclip.page.ttfb_ms"]=Qt(t.responseStart)),t.domContentLoadedEventEnd>0&&(e["paperclip.page.dom_content_loaded_ms"]=Qt(t.domContentLoadedEventEnd)),t.loadEventEnd>0&&(e["paperclip.page.load_event_ms"]=Qt(t.loadEventEnd)),e}s(Xa,"navigationTimingAttributes");function Qa(t){return{"paperclip.page.route":t.routeTemplate,"paperclip.page.load_type":t.loadType,"paperclip.page.outcome":t.outcome??"interrupted","paperclip.page.ready_signal":t.readySignal??"none","paperclip.page.was_hidden":t.wasHidden,...t.suspended?{"paperclip.page.suspended":!0}:{},...t.view!==null?{"paperclip.page.view":t.view}:{}}}s(Qa,"pageLoadAttributes");var Ja="HTTP";function Za(t,e,r,n,i){const a=Math.min(r.endTime??i,i),o=b.setSpan(B,e);for(const u of n){if(u.startTime<r.startTime||u.startTime>=a)continue;const c={"url.full":u.name,"paperclip.api.timing_source":"resource_timing","paperclip.page.route":r.routeTemplate},l=u.responseStatus;typeof l=="number"&&l>0&&(c["http.response.status_code"]=l),t.startSpan(Ja,{kind:ct.CLIENT,startTime:u.startTime,attributes:c},o).end(Math.max(u.startTime,u.responseEnd))}}s(Za,"backfillApiSpans");function to(t){return t>=1?null:Math.max(1,Math.round(1/t))}s(to,"honeycombSampleRate");var ro=6e4;function no(t,e,r={}){const n=new Map;let i=null,a=!1;const o=window.fetch.bind(window),u=new Ha(r.exporter??new Ua({url:t.tracesUrl,headers:t.ingestKey?{"x-honeycomb-team":t.ingestKey}:{},fetch:o})),c=to(t.sampleRate),l={onStart(v){const A=e.currentRouteTemplate();A&&v.attributes["paperclip.page.route"]===void 0&&v.setAttribute("paperclip.page.route",A),c!==null&&v.setAttribute("SampleRate",c)},onEnd(){},forceFlush:s(()=>Promise.resolve(),"forceFlush"),shutdown:s(()=>Promise.resolve(),"shutdown")},h="4bddf9a6f3a25ea2e5b09b88fe4f5a8ea6b7e939",_=new Ms({resource:ve({"service.name":t.serviceName,...t.instanceHost?{"paperclip.instance.host":t.instanceHost}:{},"service.version":h,...t.environment?{"deployment.environment.name":t.environment}:{}}),sampler:new F,spanProcessors:[l,new Ls(u)]});_.register({contextManager:new qa(()=>i)});const f=_.getTracer(ja),d=new la({ignoreUrls:[Wa(window.location.origin)],propagateTraceHeaderCorsUrls:[],clearTimingResources:!1,ignoreNetworkEvents:!0,enabled:!1});d.setTracerProvider(Ka(_,()=>i!==null));const p=performance.now();d.enable();const g=r.apiResources??null,T=new Set;let S=!1;const y=s(()=>{g&&S&&T.size===0&&g.stop()},"releaseIfUnclaimed"),Xr=g?window.setTimeout(()=>{S=!0,y()},r.earlyResourceGraceMs??6e4):void 0;e.attachSink({begin(v){const A=f.startSpan("page.load",{root:!0,startTime:v.startTime,attributes:{"paperclip.page.route":v.routeTemplate,"paperclip.page.load_type":v.loadType}});n.set(v.id,A),v.endTime===null&&(i=A),v.startTime<p?T.add(v.id):(S=!0,y())},end(v){const A=n.get(v.id);A&&(n.delete(v.id),i===A&&(i=null),A.setAttributes(Qa(v)),v.loadType==="hard"&&A.setAttributes(Xa()),g&&v.startTime<p&&Za(f,A,v,g.entries(),p),A.end(v.endTime??performance.now()),T.delete(v.id),y())}});const xt=s(v=>{if(a)return;const A=(v.name==="LCP"?e.hardLoadRouteTemplate():null)??e.currentRouteTemplate(),Re=performance.now();f.startSpan(`web_vital.${v.name.toLowerCase()}`,{root:!0,startTime:Re,attributes:{"paperclip.web_vital.name":v.name,"paperclip.web_vital.value":v.value,"paperclip.web_vital.rating":v.rating,...A?{"paperclip.page.route":A}:{}}}).end(Re),document.visibilityState==="hidden"&&_.forceFlush()},"reportVital");return Ta(xt),va(xt),fa(xt),{forceFlush:s(()=>_.forceFlush(),"forceFlush"),async shutdown(){a||(a=!0,n.clear(),i=null,d.disable(),window.clearTimeout(Xr),g?.stop(),await _.shutdown().catch(()=>{}),b.disable(),R.disable(),D.disable())}}}s(no,"startTracingSdk");export{ro as EARLY_RESOURCE_GRACE_MS,Ja as UNKNOWN_METHOD_SPAN_NAME,to as honeycombSampleRate,Ka as measuredRequestsOnly,Wa as nonApiUrlPattern,Qa as pageLoadAttributes,no as startTracingSdk};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var R=Object.defineProperty;var u=(t,e)=>R(t,"name",{value:e,configurable:!0});import{CO as O,EO as I,HA as r,IA as S,SO as v,TA as o,_k as M,bk as _,vk as b,wO as h,xO as y}from"./index-
|
|
1
|
+
var R=Object.defineProperty;var u=(t,e)=>R(t,"name",{value:e,configurable:!0});import{CO as O,EO as I,HA as r,IA as S,SO as v,TA as o,_k as M,bk as _,vk as b,wO as h,xO as y}from"./index-BJtnP7H1.js";var P=5e3;var U=/^[1-9]\d{0,2}(h|d|w|m)$/;function E(t){return Array.isArray(t)?t[0]:t}u(E,"firstQueryValue");function N(t){return t==null?[]:Array.isArray(t)?t:[t]}u(N,"queryValues");function a(t,e,s){const n=E(t);if(n==null)return;if(typeof n!="string"&&typeof n!="number"){e.addIssue({code:o.custom,message:`${s} must be a string`});return}const m=String(n).trim();return m.length>0?m:void 0}u(a,"parseOptionalString");function l(t,e,s,n,m,c){const i=E(t);if(i==null||i==="")return n;const f=typeof i=="number"?String(i):typeof i=="string"?i.trim():"";if(!/^-?\d+$/.test(f))return e.addIssue({code:o.custom,message:`${s} must be an integer`}),n;const d=Number.parseInt(f,10);if(!Number.isInteger(d)||d<m||d>c){const T=m===0?`between 0 and ${c}`:`between ${m} and ${c}`;return e.addIssue({code:o.custom,message:`${s} must be ${T}`}),n}return d}u(l,"parseIntegerQuery");function p(t,e,s,n){const m=new Set(n),c=[];for(const i of N(t)){if(typeof i!="string"){e.addIssue({code:o.custom,message:`${s} must be a comma-separated string`});continue}for(const f of i.split(",")){const d=f.trim();if(d){if(!m.has(d)){e.addIssue({code:o.custom,message:`${s} contains an unsupported value`});continue}c.includes(d)||c.push(d)}}}return c}u(p,"parseEnumList");function A(t,e,s){const n=a(t,e,s);if(n!==void 0){if(!I(n)){e.addIssue({code:o.custom,message:`${s} must be a UUID`});return}return n}}u(A,"parseOptionalUuid");function H(t,e){const s=a(t,e,"assigneeAgentId");if(s!==void 0){if(s.toLowerCase()==="null")return null;if(!I(s)){e.addIssue({code:o.custom,message:"assigneeAgentId must be a UUID or 'null'"});return}return s}}u(H,"parseAssigneeAgentId");function g(t,e){const s=a(t,e,"updatedAfter");if(s===void 0)return;const n=new Date(s);if(Number.isNaN(n.getTime())){e.addIssue({code:o.custom,message:"updatedAfter must be a valid date"});return}return n.toISOString()}u(g,"parseUpdatedAfter");function C(t,e){const s=a(t,e,"updatedWithin");if(s!==void 0){if(!U.test(s)){e.addIssue({code:o.custom,message:"updatedWithin must be a duration like 24h, 7d, 4w, or 3m"});return}return s}}u(C,"parseUpdatedWithin");var X=S({q:r().optional().transform((t,e)=>(a(t,e,"q")??"").slice(0,200)),scope:r().optional().transform((t,e)=>{const s=a(t,e,"scope")??"all";return O.includes(s)?s:(e.addIssue({code:o.custom,message:"scope must be a supported search scope"}),"all")}),limit:r().optional().transform((t,e)=>l(t,e,"limit",20,1,50)),offset:r().optional().transform((t,e)=>l(t,e,"offset",0,0,200)),status:r().optional().transform((t,e)=>p(t,e,"status",_)),displayStatus:r().optional().transform((t,e)=>p(t,e,"displayStatus",M)),priority:r().optional().transform((t,e)=>p(t,e,"priority",b)),assigneeAgentId:r().optional().transform((t,e)=>H(t,e)),assigneeUserId:r().optional().transform((t,e)=>a(t,e,"assigneeUserId")),projectId:r().optional().transform((t,e)=>A(t,e,"projectId")),labelId:r().optional().transform((t,e)=>A(t,e,"labelId")),updatedWithin:r().optional().transform((t,e)=>C(t,e)),updatedAfter:r().optional().transform((t,e)=>g(t,e)),sort:r().optional().transform((t,e)=>{const s=a(t,e,"sort")??"relevance";return h.includes(s)?s:(e.addIssue({code:o.custom,message:"sort must be relevance, updated, created, or priority"}),"relevance")})}),$=S({contains:r().transform((t,e)=>{const s=a(t,e,"contains");return!s||s.length<2?(e.addIssue({code:o.custom,message:"contains must be at least 2 characters"}),""):(s.length>200&&e.addIssue({code:o.custom,message:"contains must be at most 200 characters"}),s.slice(0,200))}),kind:r().optional().transform((t,e)=>{const s=a(t,e,"kind")??"literal";return y.includes(s)?s:(e.addIssue({code:o.custom,message:"kind must be literal or url"}),"literal")}),scope:r().optional().transform((t,e)=>{const s=a(t,e,"scope")??"all";return v.includes(s)?s:(e.addIssue({code:o.custom,message:"scope must be all, issues, comments, or documents"}),"all")}),limit:r().optional().transform((t,e)=>l(t,e,"limit",100,1,200)),offset:r().optional().transform((t,e)=>l(t,e,"offset",0,0,P)),matchesPerIssue:r().optional().transform((t,e)=>l(t,e,"matchesPerIssue",20,1,200)),status:r().optional().transform((t,e)=>p(t,e,"status",_)),updatedWithin:r().optional().transform((t,e)=>C(t,e)),updatedAfter:r().optional().transform((t,e)=>g(t,e))}).superRefine((t,e)=>{t.updatedWithin&&t.updatedAfter&&e.addIssue({code:o.custom,message:"updatedWithin and updatedAfter cannot be used together"})});export{X as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{QT as e}from"./index-
|
|
1
|
+
import{QT as e}from"./index-BJtnP7H1.js";var a={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};a.node;var n=e(a);export{n as t};
|