@outmarket-ai/react-sdk 0.1.0-alpha.9 → 0.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1 -1
- package/dist/pdf.worker.min.mjs +2 -21
- package/dist/styles.css +1 -11
- package/package.json +11 -5
- package/dist/AddNoteDialog-DhseSUVW.js +0 -1
- package/dist/AlertDialog-Dx1Z4OrM.js +0 -1
- package/dist/ApproveWorkflowsList-Cx2xNqu9.js +0 -5
- package/dist/BORLetterEditor-CpXL7MT-.js +0 -119
- package/dist/BillDetailModal-Cj9d5gIA.js +0 -1
- package/dist/CoiIssueHolderModal-CE854JKK.js +0 -1
- package/dist/DeletePromptDialog-C3Shx90V.js +0 -1
- package/dist/EmailFormatSelectionDialog-Bo3-G8L0.js +0 -1
- package/dist/ExcelExportPreviewDialog-NvbX8KK1.js +0 -1
- package/dist/ExplainPanel-BQwsIk-9.js +0 -1
- package/dist/ExportDialog-CGnw6GPb.js +0 -30
- package/dist/ExportToAmsDialog-CuW-XMnY.js +0 -1
- package/dist/ExportToDriveDialog-oEm9wL-h.js +0 -1
- package/dist/FeedbackTool-la43Nk0I.js +0 -30
- package/dist/LayerDetailModal-B-gtAIMb.js +0 -1
- package/dist/LogoEditor-CiD5nrq_.js +0 -1
- package/dist/MarkdownExportPreviewDialog-CVlZsnV-.js +0 -5
- package/dist/NotificationDrawer-DkiU4k1-.js +0 -7
- package/dist/PhoneNumbersDisplay-BcKFVIhh.js +0 -1
- package/dist/PlanSelector-CbuGEmUO.js +0 -26
- package/dist/PlanSettingsModal-CYLAXbUO.js +0 -1
- package/dist/PlanWizardModal-D9GRljeC.js +0 -1
- package/dist/RenameAssetDialog-Rx-mnefu.js +0 -1
- package/dist/SaveBlockDialog-T9mHc5hu.js +0 -1
- package/dist/SaveOutlineDialog-Ce0eEWTR.js +0 -1
- package/dist/SavePromptDialog-D3lm7H51.js +0 -1
- package/dist/ShareResourceDialog-ACYRf6LZ.js +0 -1
- package/dist/TermsNoticeModal-AgvfPy5K.js +0 -1
- package/dist/TowerAlertModal-sRGrwqdf.js +0 -1
- package/dist/TowerSummaryModal-4Dk1iV4z.js +0 -1
- package/dist/VaultSettingsDialog-DddN5Jq6.js +0 -1
- package/dist/ViewNoteDialog-D0V651HA.js +0 -1
- package/dist/WhatsNewProvider-CcmOzaKL.js +0 -36
- package/dist/WidgetRawDataView-DUzIDMuO.js +0 -1
- package/dist/abap-V7zjtt5B.js +0 -1
- package/dist/abnf-Cs8-oUtO.js +0 -1
- package/dist/actionscript-T2YELVMS.js +0 -1
- package/dist/activityLog-Dh4AWnxR.js +0 -1
- package/dist/ada-DnnX8eVy.js +0 -1
- package/dist/agda-B11duiie.js +0 -1
- package/dist/al-CQYsuVVM.js +0 -1
- package/dist/antlr4-4B1Sc4kw.js +0 -1
- package/dist/apacheconf-CEWWS0Xl.js +0 -1
- package/dist/apex-Bw9Gtufo.js +0 -1
- package/dist/apl-GPUaXahd.js +0 -1
- package/dist/applescript-ClGuMaSV.js +0 -1
- package/dist/aql-B0NbAClI.js +0 -1
- package/dist/arduino-ClbHu-uo.js +0 -1
- package/dist/arff-DuOU54aX.js +0 -1
- package/dist/asciidoc-BhtWnAkY.js +0 -1
- package/dist/asm6502-DQTasU9k.js +0 -1
- package/dist/asmatmel-DTAwUCm0.js +0 -1
- package/dist/aspnet-By_Uv-R2.js +0 -1
- package/dist/autohotkey--_I21FCo.js +0 -1
- package/dist/autoit-CvH4ufrU.js +0 -1
- package/dist/avisynth-DFZaFA4R.js +0 -1
- package/dist/avro-idl-BSSj5FmU.js +0 -1
- package/dist/bash-Dq5JElW2.js +0 -1
- package/dist/bash-Jzmc6JlP.js +0 -1
- package/dist/basic-CC56mfFq.js +0 -1
- package/dist/basic-CJsDLcso.js +0 -1
- package/dist/batch-BYpJ9kPS.js +0 -1
- package/dist/bbcode-UXb4O2FT.js +0 -1
- package/dist/bell-B4nDPvYM.js +0 -7
- package/dist/bicep-ha95m6NM.js +0 -1
- package/dist/birb-BM8QRfSV.js +0 -1
- package/dist/bison-BaRrGKdN.js +0 -1
- package/dist/blockEditorContent-BL5d7zzw.js +0 -166
- package/dist/bnf-bWLwOaU4.js +0 -1
- package/dist/brainfuck-COJQXt-t.js +0 -1
- package/dist/brightscript-BsJBKxjD.js +0 -1
- package/dist/bro-Bp53uiUK.js +0 -1
- package/dist/bsl-tLrmQ80l.js +0 -1
- package/dist/c-C4WJRAOR.js +0 -1
- package/dist/c-DA5TVlGb.js +0 -1
- package/dist/calendar-CCDvKYJL.js +0 -7
- package/dist/cfscript-iUOvrdw6.js +0 -1
- package/dist/chaiscript-Bdsn6xqe.js +0 -1
- package/dist/cil-Bg4_FSZp.js +0 -1
- package/dist/clike-CStN-Ul5.js +0 -1
- package/dist/clike-fTAcdHbS.js +0 -1
- package/dist/clojure-CP23saqo.js +0 -1
- package/dist/cmake-CUC1Yn75.js +0 -1
- package/dist/cobol-DRCg5sRL.js +0 -1
- package/dist/coffeescript-c3ArqojV.js +0 -1
- package/dist/concurnas-BkGymU0R.js +0 -1
- package/dist/confetti.module-gccwWOTG.js +0 -2
- package/dist/contactsList-CSPk7SYS.js +0 -18
- package/dist/copyPreviewToClipboard-CrY57HL-.js +0 -170
- package/dist/coq-DfqiQwQs.js +0 -1
- package/dist/core-DnSu5wN6.js +0 -9
- package/dist/cpp-C2xoosyb.js +0 -1
- package/dist/cpp-DBmYs6pK.js +0 -1
- package/dist/crystal-_Ltdvkfv.js +0 -1
- package/dist/csharp-CzFXtKq-.js +0 -1
- package/dist/csharp-DhrYzyQg.js +0 -1
- package/dist/cshtml-CPggulxs.js +0 -1
- package/dist/csp-C5jhDYKS.js +0 -1
- package/dist/css-CHGm_5Ug.js +0 -1
- package/dist/css-Dr8mrUZQ.js +0 -1
- package/dist/css-extras-CR_At87f.js +0 -1
- package/dist/csv-BjMjkdsd.js +0 -1
- package/dist/cypher-Cz3MYOsR.js +0 -1
- package/dist/d-U3DXoBKs.js +0 -1
- package/dist/dart-nkmISAms.js +0 -1
- package/dist/dataweave-Bqffbm3l.js +0 -1
- package/dist/dax-BUmQo96b.js +0 -1
- package/dist/dhall-tqKETJ5N.js +0 -1
- package/dist/diff-BN3mhZNK.js +0 -3
- package/dist/django-XpzvhI3_.js +0 -1
- package/dist/dns-zone-file-BvWpwvpy.js +0 -1
- package/dist/docker-8-TsERHq.js +0 -1
- package/dist/dot-Bedmh4He.js +0 -1
- package/dist/ebnf-CQ1Owm1r.js +0 -1
- package/dist/editCarrierDialog-qiULFMcT.js +0 -1
- package/dist/editorconfig-D11MkCqN.js +0 -1
- package/dist/eiffel-5RW8i1s_.js +0 -1
- package/dist/ejs-CnXtml3v.js +0 -1
- package/dist/elixir-C65-GKuK.js +0 -1
- package/dist/elm-DzDSmMCu.js +0 -1
- package/dist/erb-v570YtNg.js +0 -1
- package/dist/erlang-COVM6kne.js +0 -1
- package/dist/etlua-CYTkdOD8.js +0 -1
- package/dist/excel-formula-CVF6JFUc.js +0 -1
- package/dist/exportFileGeneration-BryemPIm.js +0 -1
- package/dist/exportImageReadiness-BIPaS2Oz.js +0 -1
- package/dist/exportImageReadinessNotifier-CDPE8TMc.js +0 -1
- package/dist/exportPageHtml-BnFgCZsS.js +0 -5
- package/dist/exportPreviewToDocx-CNUCdnzi.js +0 -11
- package/dist/exportPreviewToPdf-CVhRJw77.js +0 -1
- package/dist/factor-BYWyb9mM.js +0 -1
- package/dist/false-PO5fTmEz.js +0 -1
- package/dist/firestore-security-rules-Dhmp_MBi.js +0 -1
- package/dist/flask-conical-DfeNzqKY.js +0 -7
- package/dist/flow-Jw0KAy-j.js +0 -1
- package/dist/fortran-DOu6I6CX.js +0 -1
- package/dist/fsharp-Bg82wKKC.js +0 -1
- package/dist/ftl-B4QashNa.js +0 -1
- package/dist/gap-B-C4phMB.js +0 -1
- package/dist/gcode-C7cgkMxN.js +0 -1
- package/dist/gdscript-BZGfyeaC.js +0 -1
- package/dist/gedcom-hWBLXHFN.js +0 -1
- package/dist/gherkin-C0cPQhL5.js +0 -1
- package/dist/git-CvbRDRuD.js +0 -1
- package/dist/glsl-Dio579_l.js +0 -1
- package/dist/gml-DMy1gp8J.js +0 -1
- package/dist/gn-CXmdkSGX.js +0 -1
- package/dist/go-BK7Ey8q8.js +0 -1
- package/dist/go-module-DGHMlQxT.js +0 -1
- package/dist/graphql-C3tOz3S9.js +0 -1
- package/dist/groovy-BWSmsMKq.js +0 -1
- package/dist/haml-D761Lwkw.js +0 -1
- package/dist/handlebars-CFzuNVeU.js +0 -1
- package/dist/haskell-D2HwqYTs.js +0 -1
- package/dist/haskell-fKcSYgFk.js +0 -1
- package/dist/haxe-BsTBOPWq.js +0 -1
- package/dist/hcl-CjEa7mhm.js +0 -1
- package/dist/highlighter-Bi2kuv8f.js +0 -7
- package/dist/hlsl-B3Bf2Jd1.js +0 -1
- package/dist/hoon-DdoFvX8i.js +0 -1
- package/dist/hpkp-BPcGR8EQ.js +0 -1
- package/dist/hsts-oLeDVYg4.js +0 -1
- package/dist/http-C65ao8FS.js +0 -1
- package/dist/ichigojam-NdH0fggR.js +0 -1
- package/dist/icon-CjpIDepR.js +0 -1
- package/dist/icu-message-format-A3pDj87f.js +0 -1
- package/dist/idris-CRHPBU_F.js +0 -1
- package/dist/iecst-DitcXByQ.js +0 -1
- package/dist/ignore-CmXNr-En.js +0 -1
- package/dist/image-plus-B3MMgEPL.js +0 -7
- package/dist/index-BYll8ylX.js +0 -2
- package/dist/index-BtR975tI.js +0 -1
- package/dist/index-CVaFIPrZ.js +0 -13
- package/dist/index-CkWdb2Ws.js +0 -1
- package/dist/index-Ct2s_UPb.js +0 -1
- package/dist/index-OBC-S4JF.js +0 -3
- package/dist/index-pjV8dzev.js +0 -1
- package/dist/index-s1LikHjO.js +0 -1
- package/dist/index.client-D86od2fV.js +0 -501
- package/dist/inform7-sEqx2-7g.js +0 -1
- package/dist/ini-DfvMWacy.js +0 -1
- package/dist/io-CfaIzWvO.js +0 -1
- package/dist/j-D_qDpCvj.js +0 -1
- package/dist/java-CZIvhO6U.js +0 -1
- package/dist/java-D5YF95hZ.js +0 -1
- package/dist/javadoc-4Rdti3Lf.js +0 -1
- package/dist/javadoclike-gz6ZNgII.js +0 -1
- package/dist/javadoclike-odLU89VS.js +0 -1
- package/dist/javascript-BHdRPnNL.js +0 -1
- package/dist/javascript-CEunhhi4.js +0 -1
- package/dist/javastacktrace-DTySuujE.js +0 -1
- package/dist/jexl-B-55AiTX.js +0 -1
- package/dist/jolie-Cerm6rPa.js +0 -1
- package/dist/jq-CxYM2bpe.js +0 -1
- package/dist/js-extras-B96Xzdzr.js +0 -1
- package/dist/js-templates-BJfSNsZD.js +0 -1
- package/dist/jsdoc-oC7vbq5i.js +0 -1
- package/dist/json-D4kK7Ph_.js +0 -1
- package/dist/json-DROiTAr2.js +0 -1
- package/dist/json5-DxXL3eT7.js +0 -1
- package/dist/jsonp-ar2fV8fZ.js +0 -1
- package/dist/jsstacktrace-BINMgU-E.js +0 -1
- package/dist/jsx-CqAdGZ8z.js +0 -1
- package/dist/jsx-DjXnni8N.js +0 -1
- package/dist/julia-DqnOG3a3.js +0 -1
- package/dist/keepalived-ByxR9AfG.js +0 -1
- package/dist/keyman-B0WzsmDf.js +0 -1
- package/dist/kotlin-cdNFHPRk.js +0 -1
- package/dist/kumir-dCYrmqEc.js +0 -1
- package/dist/kusto-BiAufrSD.js +0 -1
- package/dist/latex-Clo76c6g.js +0 -1
- package/dist/latte-BClgsIsm.js +0 -1
- package/dist/less-D0ZziKfg.js +0 -1
- package/dist/lilypond-D-j7r1t-.js +0 -1
- package/dist/link-2-off-B6MiQbkR.js +0 -7
- package/dist/liquid-B6DAEC2l.js +0 -1
- package/dist/lisp-CEcGfDXG.js +0 -1
- package/dist/livescript-Tz5wJNbl.js +0 -1
- package/dist/llvm-Dv3C4y-V.js +0 -1
- package/dist/lock-keyhole-p1wVc-9Y.js +0 -7
- package/dist/log-NVPAjhVz.js +0 -1
- package/dist/lolcode-De45ux4z.js +0 -1
- package/dist/lua-BeIBSVZf.js +0 -1
- package/dist/lua-CSN67GiU.js +0 -1
- package/dist/lucide-react-Dwxi-V4B.js +0 -7
- package/dist/luckyexcel.umd-JVs96sZB.js +0 -12
- package/dist/magma-CaUgW-If.js +0 -1
- package/dist/makefile-C_Q-8hQ9.js +0 -1
- package/dist/markdown-BSGp8L4I.js +0 -1
- package/dist/markup-C46YaeBf.js +0 -1
- package/dist/markup-D_Wa_fyo.js +0 -1
- package/dist/markup-templating-D-FRJF7C.js +0 -1
- package/dist/markup-templating-RD0xxf_6.js +0 -1
- package/dist/matlab-BaDneZBA.js +0 -1
- package/dist/maxscript-fnWefuCx.js +0 -1
- package/dist/mel-BfRfAwlY.js +0 -1
- package/dist/mermaid-BQn_FD9x.js +0 -1
- package/dist/mizar-DEGTGWko.js +0 -1
- package/dist/mongodb-BfLZtkrZ.js +0 -1
- package/dist/monkey-B64xijTv.js +0 -1
- package/dist/moonscript-DB17HjmC.js +0 -1
- package/dist/n1ql-hqkhi-L2.js +0 -1
- package/dist/n4js-BYUcZZDj.js +0 -1
- package/dist/nand2tetris-hdl-Deux5UAx.js +0 -1
- package/dist/naniscript-jeJO_Cwe.js +0 -1
- package/dist/nasm-DO__GDMC.js +0 -1
- package/dist/neon-k-XmqJK1.js +0 -1
- package/dist/nevod-CVbTPaTU.js +0 -1
- package/dist/nginx-Tr7fUd5Q.js +0 -1
- package/dist/nim-DoVTJHY6.js +0 -1
- package/dist/nix-D3dcpYSM.js +0 -1
- package/dist/nsis-Dg9SRrGb.js +0 -1
- package/dist/objectivec-DR-DvLAX.js +0 -1
- package/dist/ocaml-F3JoCAcv.js +0 -1
- package/dist/opencl-7oQl32PR.js +0 -1
- package/dist/openqasm-CKAaKI3L.js +0 -1
- package/dist/oz-BRgcnbzh.js +0 -1
- package/dist/paintbrush-CTOxtIk9.js +0 -7
- package/dist/parigp-bc7o-JYX.js +0 -1
- package/dist/parser-Dh9T84aa.js +0 -1
- package/dist/pascal-Mc9TrqVN.js +0 -1
- package/dist/pascaligo-Bu5Nfubu.js +0 -1
- package/dist/pcaxis-CeA8o0Aa.js +0 -1
- package/dist/pen-tool-BG-0jVP8.js +0 -7
- package/dist/peoplecode-DMMP6xme.js +0 -1
- package/dist/perl-pjwABpJK.js +0 -1
- package/dist/php-B9N6PoaM.js +0 -1
- package/dist/php-D0A5Cwxv.js +0 -1
- package/dist/php-extras-WT2OUkhI.js +0 -1
- package/dist/phpdoc-BXRRdQyT.js +0 -1
- package/dist/plsql-BhY3w0-9.js +0 -1
- package/dist/plyr-DCr4Ncz4.js +0 -2
- package/dist/powerquery-DF59uGya.js +0 -1
- package/dist/powershell-BNMQ_G2y.js +0 -1
- package/dist/processing-JexFWMaq.js +0 -1
- package/dist/prolog--bkGGaUb.js +0 -1
- package/dist/promql-BguTah4b.js +0 -1
- package/dist/properties-21I9dpC7.js +0 -1
- package/dist/protobuf-C0LuKyr-.js +0 -1
- package/dist/psl-_DpEFNrY.js +0 -1
- package/dist/pug-C-A1gqPF.js +0 -1
- package/dist/puppet-ChOfG5zw.js +0 -1
- package/dist/pure-Bix-aADQ.js +0 -1
- package/dist/purebasic-DOms9tc7.js +0 -1
- package/dist/purescript-L-AGCGHP.js +0 -1
- package/dist/python-ChreXwvT.js +0 -1
- package/dist/q-w16v1aiR.js +0 -1
- package/dist/qml-DiMezLXL.js +0 -1
- package/dist/qore-DR2g9gsH.js +0 -1
- package/dist/qsharp-C0P6--Sc.js +0 -1
- package/dist/quill-C2A8QePO.js +0 -49
- package/dist/r-HQDwuLXo.js +0 -1
- package/dist/racket-Gz0Tynq_.js +0 -1
- package/dist/react-sdk.css +0 -7
- package/dist/reason-DBZ2sbZf.js +0 -1
- package/dist/regex-lCxC2f-X.js +0 -1
- package/dist/rego-CK6sX92A.js +0 -1
- package/dist/renpy-DtMBoTkk.js +0 -1
- package/dist/rest-DT-jpd1T.js +0 -1
- package/dist/rip-BeCJeoFQ.js +0 -1
- package/dist/roboconf-DQznEGKV.js +0 -1
- package/dist/robotframework-DXfgQqPU.js +0 -1
- package/dist/ruby-3lCor9Ik.js +0 -1
- package/dist/ruby-DPvt_xbw.js +0 -1
- package/dist/runtime-Dn4RiA4k.js +0 -6691
- package/dist/rust-BMc_Yoiv.js +0 -1
- package/dist/sas-0PXWaOIL.js +0 -1
- package/dist/sass-eNYNq8W7.js +0 -1
- package/dist/scala-CyhPM_cs.js +0 -1
- package/dist/scheme-CdQ15Dry.js +0 -1
- package/dist/scheme-DkN0sF0_.js +0 -1
- package/dist/scss-Dy6G_PiM.js +0 -1
- package/dist/shell-session-1NCwql3m.js +0 -1
- package/dist/smali-j9qYXhoq.js +0 -1
- package/dist/smalltalk-D8MDc5CV.js +0 -1
- package/dist/smarty-Bc1ihKhR.js +0 -1
- package/dist/sml-C6hRyyWz.js +0 -1
- package/dist/solidity-BQQmiGFI.js +0 -1
- package/dist/solution-file-MWLYI-NZ.js +0 -1
- package/dist/soy-CXN6tOb4.js +0 -1
- package/dist/sparql-C-R8Gias.js +0 -1
- package/dist/splunk-spl-B_ygCXaC.js +0 -1
- package/dist/sqf-Zq41ozXt.js +0 -1
- package/dist/sql-BxmFV8oZ.js +0 -1
- package/dist/sql-aYT6xcy6.js +0 -1
- package/dist/squirrel-go-JCyyj.js +0 -1
- package/dist/stan-DgTU6nBX.js +0 -1
- package/dist/stylus-D8xMSxFz.js +0 -1
- package/dist/swift-DDKLVbtw.js +0 -1
- package/dist/systemd-CVI591rs.js +0 -2
- package/dist/t4-cs-D4CxVwOS.js +0 -1
- package/dist/t4-templating-BzJ2F4We.js +0 -1
- package/dist/t4-templating-DCXEabnB.js +0 -1
- package/dist/t4-vb-Bxs17kz4.js +0 -1
- package/dist/table-C4pYCXjv.js +0 -7
- package/dist/tableToMarkdown-CNmfuY27.js +0 -3
- package/dist/tap-qeDv6-X-.js +0 -1
- package/dist/tcl-B4LiNtEH.js +0 -1
- package/dist/templateSelectorDialog-DkOR3EVS.js +0 -2
- package/dist/textile-fSaG4-pZ.js +0 -1
- package/dist/toml-Dkmu12eX.js +0 -1
- package/dist/tremor-DdjJs31u.js +0 -1
- package/dist/tsx-Do1jr-aP.js +0 -1
- package/dist/tt2-BlqLFdd5.js +0 -1
- package/dist/turtle-BfhtjCXi.js +0 -1
- package/dist/turtle-UC3jR8N2.js +0 -1
- package/dist/twig-Dfr2sL0m.js +0 -1
- package/dist/typescript-fgz3QQiH.js +0 -1
- package/dist/typescript-y5LBWDhp.js +0 -1
- package/dist/typoscript-DqDEKl5c.js +0 -1
- package/dist/unrealscript-e9RCjvlz.js +0 -1
- package/dist/uorazor-CoHM_uv6.js +0 -1
- package/dist/uri-B4z44HxE.js +0 -1
- package/dist/usePromptLibraryMutations-DK7AzgzY.js +0 -1
- package/dist/useSupabaseBlobUrl-D9O3nyTh.js +0 -1
- package/dist/useTermsNotice-BJqwp7Hj.js +0 -1
- package/dist/user-plus-DXpUkE2I.js +0 -7
- package/dist/user-round-plus-DE6UUMZ6.js +0 -7
- package/dist/v-49Lixibt.js +0 -1
- package/dist/vala-BkpQ1izY.js +0 -1
- package/dist/vbnet-DUoEkDlO.js +0 -1
- package/dist/vbnet-LHlE90my.js +0 -1
- package/dist/velocity-c4kJdiwm.js +0 -1
- package/dist/verilog-CJyeWxAh.js +0 -1
- package/dist/vhdl-LArWr_il.js +0 -1
- package/dist/vim-Dv7JUrwn.js +0 -1
- package/dist/visual-basic-7MKQqLwe.js +0 -1
- package/dist/warpscript-_8Izrgfd.js +0 -1
- package/dist/wasm-znUgjSxD.js +0 -1
- package/dist/web-idl-jFkNLO1i.js +0 -1
- package/dist/wiki-CFXfbO63.js +0 -1
- package/dist/wolfram-Ch26p3vt.js +0 -1
- package/dist/wren-ChmtUIOJ.js +0 -1
- package/dist/xeora-C44TNzQZ.js +0 -1
- package/dist/xlsx-uaO0TYvF.js +0 -142
- package/dist/xml-doc-CbcCzx5D.js +0 -1
- package/dist/xojo-BgNHj7YG.js +0 -1
- package/dist/xquery-y_0Tk4Bz.js +0 -1
- package/dist/yaml-DbYRgcYc.js +0 -1
- package/dist/yaml-GRhlHhYd.js +0 -1
- package/dist/yang-BLo0KhOp.js +0 -1
- package/dist/zig-DLqaTzcX.js +0 -1
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
import{ka as de,kn as Ie,ko as Me,k5 as V,k6 as w,l0 as Oe,l1 as Fa,l2 as wr,l3 as Rr,l4 as Oc,k8 as Qt,ks as Zt,kp as Y,l5 as Ua,l6 as uo,l7 as Pr,l8 as Tr,kk as Ue,l9 as Se,la as Q,lb as xg,lc as Or,kq as ue,ld as Ig,le as Vn,lf as Ba,lg as Ag,kd as J,lh as Ha,kr as ae,li as xr,lj as xc,lk as kg,ll as lo,lm as Et,km as qa,ln as Wa,lo as za,lp as Cg,lq as Ng,lr as Ye,ls as en,lt as Ga,lu as po,ke as Ze,lv as Ic,lw as Xa,lx as Va,ly as Ja,lz as Ac,lA as Ir,lB as fo,lC as Mg,lD as kc,lE as Lg,lF as Cc,lG as Ka,lH as Nc,lI as Ya,kg as Ar,lJ as Mc,lK as Qa,lL as Lc,kf as Za,kj as Ht,lM as Dc,lN as jc,lO as $c,kx as Dg,lP as tn,lQ as jg,lR as dt,lS as St,lT as Fc,lU as ho,lV as Uc,lW as Bc,lX as $g,lY as Fg,lZ as Ug,l_ as Bg,l$ as Hg,m0 as ei,m1 as Pn,kz as kt,m2 as mo,m3 as ti,kh as ft,m4 as Hc,m5 as nn,m6 as _o,kA as ge,m7 as ni,kb as Jn,ki as ht,m8 as qc,m9 as qt,ma as qg,mb as ri,mc as Wg,kw as Kn,md as Tn,me as zg,mf as oi,mg as Wc,mh as zc,mi as Gg,mj as ai,mk as Xg,ml as Vg,ky as Qe,kv as wt,mm as Gc,mn as Wt,mo as Jg,k7 as Yn,mp as ii,mq as go,mr as Qn,kl as si,ms as Kg,mt as Xc,mu as Vc,mv as Yg,mw as Qg,mx as Zg,my as ey,mz as ty,mA as ny,ku as Jc,mB as On,mC as ci,dy as ry,mD as oy,mE as Kc,mF as yo,mG as Zn,mH as vo,kc as bo,mI as Yc,mJ as ay,kt as Eo}from"./runtime-Dn4RiA4k.js";import{mK as iy,mL as sy,mM as cy,mN as uy,mO as ly,mP as py,mQ as dy,mR as fy,mS as hy,mT as my,mU as _y}from"./runtime-Dn4RiA4k.js";import{a as kr,m as Cr,t as xn,b as ui,c as gy,d as Ct,e as yy,f as er,s as So,u as vy,h as li,i as Qc,j as by,k as Ey,l as Sy,p as wy,n as pi,o as Nt,q as rn,r as Zc,v as Ry,w as Py,x as eu,y as tu,z as Ty,A as nu,W as zt,B as ru,D as ou,C as au,E as tr,F as Oy,G as xy,H as Iy,I as In,J as iu,K as Ay,L as ky,M as su,N as Cy,O as Ny,P as di,Q as fi,S as wo,R as My,T as Ly,U as hi,V as cu,X as Dy,Y as jy,Z as $y}from"./index-CVaFIPrZ.js";import{g as Fy,_ as Uy}from"./index-CVaFIPrZ.js";import*as et from"react";import Ro,{version as uu}from"react";import lu from"react/jsx-runtime";import By from"react-dom";let mi=null;function pu(e){const t="error";kr(t,e),Cr(t,Hy)}function Hy(){mi=de.onerror,de.onerror=function(e,t,n,r,o){return xn("error",{column:r,error:o,line:n,msg:e,url:t}),mi?mi.apply(this,arguments):!1},de.onerror.__SENTRY_INSTRUMENTED__=!0}let _i=null;function du(e){const t="unhandledrejection";kr(t,e),Cr(t,qy)}function qy(){_i=de.onunhandledrejection,de.onunhandledrejection=function(e){return xn("unhandledrejection",e),_i?_i.apply(this,arguments):!0},de.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let fu=!1;function hu(){if(fu)return;function e(){const t=Ie(),n=t&&Me(t);if(n){const r="internal_error";V&&w.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:Oe,message:r})}}e.tag="sentry_tracingErrorCallback",fu=!0,pu(e),du(e)}function mu(e){w.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Po(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(zy(n)){if(Fa(e.description,n))return V&&mu(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Fa(e.description,n.name):!0,o=n.op?e.op&&Fa(e.op,n.op):!0;if(r&&o)return V&&mu(e),!0}return!1}function Wy(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function zy(e){return typeof e=="string"||e instanceof RegExp}class Mt{constructor(t={}){this._traceId=t.traceId||wr(),this._spanId=t.spanId||Rr()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Oc}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Gy(e,t){var n,r,o,a;if(!t)return e;const i=e.sdk||{};return e.sdk={...i,name:i.name||t.name,version:i.version||t.version,integrations:[...((n=e.sdk)==null?void 0:n.integrations)||[],...t.integrations||[]],packages:[...((r=e.sdk)==null?void 0:r.packages)||[],...t.packages||[]],settings:(o=e.sdk)!=null&&o.settings||t.settings?{...(a=e.sdk)==null?void 0:a.settings,...t.settings}:void 0},e}function Xy(e,t,n,r){const o=ui(n),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Qt(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ct(a,[i])}function Vy(e,t,n,r){const o=ui(n),a=e.type&&e.type!=="replay_event"?e.type:"event";Gy(e,n==null?void 0:n.sdk);const i=gy(e,o,r,t);return delete e.sdkProcessingMetadata,Ct(i,[[{type:a},e]])}function Jy(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=Zt(e[0]),o=t==null?void 0:t.getDsn(),a=t==null?void 0:t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&o&&{dsn:Qt(o)}},{beforeSendSpan:s,ignoreSpans:c}=(t==null?void 0:t.getOptions())||{},u=c!=null&&c.length?e.filter(h=>!Po(Y(h),c)):e,p=e.length-u.length;p&&(t==null||t.recordDroppedEvent("before_send","span",p));const l=s?h=>{const f=Y(h);return s(f)||(Ua(),f)}:Y,d=[];for(const h of u){const f=l(h);f&&d.push(yy(f))}return Ct(i,d)}function Ky(e){if(!V)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Y(e),{spanId:o}=e.spanContext(),a=uo(e),i=Me(e),s=i===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&u.push(`parent ID: ${r}`),!s){const{op:p,description:l}=Y(i);u.push(`root ID: ${i.spanContext().spanId}`),p&&u.push(`root op: ${p}`),l&&u.push(`root description: ${l}`)}w.log(`${c}
|
|
2
|
-
${u.join(`
|
|
3
|
-
`)}`)}function Yy(e){if(!V)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Y(e),{spanId:r}=e.spanContext(),o=Me(e)===e,a=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;w.log(a)}function _u(e,t,n,r=Ie()){const o=r&&Me(r);o&&(V&&w.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[Tr]:t,[Pr]:n}))}function gu(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[Pr],a=r[Tr];typeof o=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:o})}),t}const yu=1e3;class To{constructor(t={}){this._traceId=t.traceId||wr(),this._spanId=t.spanId||Rr(),this._startTime=t.startTimestamp||Ue(),this._links=t.links,this._attributes={},this.setAttributes({[Q]:"manual",[Se]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?xg:Oc}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Or(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(ue,"custom"),this}end(t){this._endTime||(this._endTime=Or(t),Yy(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Se],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ag(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Q],profile_id:this._attributes[Ba],exclusive_time:this._attributes[Vn],measurements:gu(this._events),is_segment:this._isStandaloneSpan&&Me(this)===this||void 0,segment_id:this._isStandaloneSpan?Me(this).spanContext().spanId:void 0,links:Ig(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){V&&w.log("[Tracing] Adding an event to span:",t);const o=vu(n)?n:r||Ue(),a=vu(n)?{}:n||{},i={name:t,time:Or(o),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=J();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Me(this)))return;if(this._isStandaloneSpan){this._sampled?Zy(Jy([this],t)):(V&&w.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const n=this._convertSpanToTransaction();n&&(Ha(this).scope||ae()).captureEvent(n)}_convertSpanToTransaction(){var t;if(!bu(Y(this)))return;this._name||(V&&w.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:n,isolationScope:r}=Ha(this),o=(t=n==null?void 0:n.getScopeData().sdkProcessingMetadata)==null?void 0:t.normalizedRequest;if(this._sampled!==!0)return;const a=xr(this).filter(u=>u!==this&&!Qy(u)).map(u=>Y(u)).filter(bu),i=this._attributes[ue];delete this._attributes[xc],a.forEach(u=>{delete u.data[xc]});const s={contexts:{trace:kg(this)},spans:a.length>yu?a.sort((u,p)=>u.start_timestamp-p.start_timestamp).slice(0,yu):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:n,capturedSpanIsolationScope:r,dynamicSamplingContext:Zt(this)},request:o,...i&&{transaction_info:{source:i}}},c=gu(this._events);return c&&Object.keys(c).length&&(V&&w.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),s.measurements=c),s}}function vu(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function bu(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Qy(e){return e instanceof To&&e.isStandaloneSpan()}function Zy(e){const t=J();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Gt(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(a){throw t(a),n(),a}return ev(o,t,n,r)}function ev(e,t,n,r){return lo(e)?e.then(o=>(n(),r(o),o),o=>{throw t(o),n(),o}):(n(),r(e),e)}function tv(e,t,n){if(!Et(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:s=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):s}),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);const a=qa(o);if(a===void 0)return V&&w.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!a)return V&&w.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,r];const i=n<a;return i||V&&w.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[i,a,r]}const Oo="__SENTRY_SUPPRESS_TRACING__";function Rt(e,t){const n=Nr();if(n.startSpan)return n.startSpan(e,t);const r=yi(e),{forceTransaction:o,parentSpan:a,scope:i}=e,s=i==null?void 0:i.clone();return Ye(s,()=>Pu(a)(()=>{const c=ae(),u=vi(c,a),p=e.onlyIfParent&&!u?new Mt:gi({parentSpan:u,spanArguments:r,forceTransaction:o,scope:c});return en(c,p),Gt(()=>t(p),()=>{const{status:l}=Y(p);p.isRecording()&&(!l||l==="ok")&&p.setStatus({code:Oe,message:"internal_error"})},()=>{p.end()})}))}function Xt(e,t){const n=Nr();if(n.startSpanManual)return n.startSpanManual(e,t);const r=yi(e),{forceTransaction:o,parentSpan:a,scope:i}=e,s=i==null?void 0:i.clone();return Ye(s,()=>Pu(a)(()=>{const c=ae(),u=vi(c,a),p=e.onlyIfParent&&!u?new Mt:gi({parentSpan:u,spanArguments:r,forceTransaction:o,scope:c});return en(c,p),Gt(()=>t(p,()=>p.end()),()=>{const{status:l}=Y(p);p.isRecording()&&(!l||l==="ok")&&p.setStatus({code:Oe,message:"internal_error"})})}))}function mt(e){const t=Nr();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=yi(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?a=>Ye(e.scope,a):o!==void 0?a=>An(o,a):a=>a())(()=>{const a=ae(),i=vi(a,o);return e.onlyIfParent&&!i?new Mt:gi({parentSpan:i,spanArguments:n,forceTransaction:r,scope:a})})}const Eu=(e,t)=>{const n=Wa(),r=za(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:o,baggage:a}=e,i=J(),s=Cg(a);return i&&!Ng(i,s==null?void 0:s.org_id)?wu(t):Ye(c=>{const u=Ja(o,a);return c.setPropagationContext(u),en(c,void 0),t()})};function An(e,t){const n=Nr();return n.withActiveSpan?n.withActiveSpan(e,t):Ye(r=>(en(r,e||void 0),t(r)))}function Su(e){const t=Nr();return t.suppressTracing?t.suppressTracing(e):Ye(n=>{n.setSDKProcessingMetadata({[Oo]:!0});const r=e();return n.setSDKProcessingMetadata({[Oo]:void 0}),r})}function wu(e){return Ye(t=>(t.setPropagationContext({traceId:wr(),sampleRand:Ac()}),V&&w.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),An(null,e)))}function gi({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Et()){const i=new Mt;if(n||!e){const s={sampled:"false",sample_rate:"0",transaction:t.name,...Zt(i)};po(i,s)}return i}const o=Ze();let a;if(e&&!n)a=nv(e,r,t),Ic(e,a);else if(e){const i=Zt(e),{traceId:s,spanId:c}=e.spanContext(),u=uo(e);a=Ru({traceId:s,parentSpanId:c,...t},r,u),po(a,i)}else{const{traceId:i,dsc:s,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...r.getPropagationContext()};a=Ru({traceId:i,parentSpanId:c,...t},r,u),s&&po(a,s)}return Ky(a),Xa(a,r,o),a}function yi(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=Or(e.startTime),delete n.startTime,n}return t}function Nr(){const e=Wa();return za(e)}function Ru(e,t,n){var r;const o=J(),a=(o==null?void 0:o.getOptions())||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};o==null||o.emit("beforeSampling",s,{decision:!1});const c=s.parentSampled??n,u=s.spanAttributes,p=t.getPropagationContext(),[l,d,h]=t.getScopeData().sdkProcessingMetadata[Oo]?[!1]:tv(a,{name:i,parentSampled:c,attributes:u,parentSampleRate:qa((r=p.dsc)==null?void 0:r.sample_rate)},p.sampleRand),f=new To({...e,attributes:{[ue]:"custom",[Va]:d!==void 0&&h?d:void 0,...u},sampled:l});return!l&&o&&(V&&w.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),o.recordDroppedEvent("sample_rate","transaction")),o&&o.emit("spanStart",f),f}function nv(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Oo]?!1:uo(e),i=a?new To({...n,parentSpanId:r,traceId:o,sampled:a}):new Mt({traceId:o});Ic(e,i);const s=J();return s&&(s.emit("spanStart",i),n.endTimestamp&&s.emit("spanEnd",i)),i}function vi(e,t){if(t)return t;if(t===null)return;const n=Ga(e);if(!n)return;const r=J();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Me(n):n}function Pu(e){return e!==void 0?t=>An(e,t):t=>t()}const xo={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},rv="heartbeatFailed",ov="idleTimeout",av="finalTimeout",iv="externalFinish";function Tu(e,t={}){const n=new Map;let r=!1,o,a=iv,i=!t.disableAutoFinish;const s=[],{idleTimeout:c=xo.idleTimeout,finalTimeout:u=xo.finalTimeout,childSpanTimeout:p=xo.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:d=!0}=t,h=J();if(!h||!Et()){const y=new Mt,P={sample_rate:"0",sampled:"false",...Zt(y)};return po(y,P),y}const f=ae(),m=Ie(),_=sv(e);_.end=new Proxy(_.end,{apply(y,P,T){if(l&&l(_),P instanceof Mt)return;const[O,...N]=T,k=O||Ue(),B=Or(k),C=xr(_).filter(H=>H!==_),j=Y(_);if(!C.length||!d)return S(B),Reflect.apply(y,P,[B,...N]);const F=h.getOptions().ignoreSpans,z=C==null?void 0:C.reduce((H,Z)=>{const te=Y(Z);return!te.timestamp||F&&Po(te,F)?H:H?Math.max(H,te.timestamp):te.timestamp},void 0),$=j.start_timestamp,D=Math.min($?$+u/1e3:1/0,Math.max($||-1/0,Math.min(B,z||1/0)));return S(D),Reflect.apply(y,P,[D,...N])}});function g(){o&&(clearTimeout(o),o=void 0)}function b(y){g(),o=setTimeout(()=>{!r&&n.size===0&&i&&(a=ov,_.end(y))},c)}function R(y){o=setTimeout(()=>{!r&&i&&(a=rv,_.end(y))},p)}function v(y){g(),n.set(y,!0);const P=Ue();R(P+p/1e3)}function E(y){if(n.has(y)&&n.delete(y),n.size===0){const P=Ue();b(P+c/1e3)}}function S(y){r=!0,n.clear(),s.forEach(B=>B()),en(f,m);const P=Y(_),{start_timestamp:T}=P;if(!T)return;P.data[Ir]||_.setAttribute(Ir,a);const O=P.status;(!O||O==="unknown")&&_.setStatus({code:fo}),w.log(`[Tracing] Idle span "${P.op}" finished`);const N=xr(_).filter(B=>B!==_);let k=0;N.forEach(B=>{B.isRecording()&&(B.setStatus({code:Oe,message:"cancelled"}),B.end(y),V&&w.log("[Tracing] Cancelling span since span ended early",JSON.stringify(B,void 0,2)));const C=Y(B),{timestamp:j=0,start_timestamp:F=0}=C,z=F<=y,$=(u+c)/1e3,D=j-F<=$;if(V){const H=JSON.stringify(B,void 0,2);z?D||w.log("[Tracing] Discarding span since it finished after idle span final timeout",H):w.log("[Tracing] Discarding span since it happened after idle span was finished",H)}(!D||!z)&&(Mg(_,B),k++)}),k>0&&_.setAttribute("sentry.idle_span_discarded_spans",k)}return s.push(h.on("spanStart",y=>{r||y===_||Y(y).timestamp||y instanceof To&&y.isStandaloneSpan()||xr(_).includes(y)&&v(y.spanContext().spanId)})),s.push(h.on("spanEnd",y=>{r||E(y.spanContext().spanId)})),s.push(h.on("idleSpanEnableAutoFinish",y=>{y===_&&(i=!0,b(),n.size&&R())})),t.disableAutoFinish||b(),setTimeout(()=>{r||(_.setStatus({code:Oe,message:"deadline_exceeded"}),a=av,_.end())},u),_}function sv(e){const t=mt(e);return en(ae(),t),V&&w.log("[Tracing] Started span is an idle span"),t}const cv="7";function Ou(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function uv(e){return`${Ou(e)}${e.projectId}/envelope/`}function lv(e,t){const n={sentry_version:cv};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function xu(e,t,n){return t||`${uv(e)}?${lv(e,n)}`}function pv(e,t){const n=kc(e);if(!n)return"";const r=`${Ou(n)}embed/error-page/`;let o=`dsn=${Qt(n)}`;for(const a in t)if(a!=="dsn"&&a!=="onClose")if(a==="user"){const i=t.user;if(!i)continue;i.name&&(o+=`&name=${encodeURIComponent(i.name)}`),i.email&&(o+=`&email=${encodeURIComponent(i.email)}`)}else o+=`&${encodeURIComponent(a)}=${encodeURIComponent(t[a])}`;return`${r}?${o}`}const Iu=[];function dv(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function fv(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return dv(r)}function hv(e,t){const n={};return t.forEach(r=>{r&&ku(e,r,n)}),n}function Au(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function ku(e,t,n){if(n[t.name]){V&&w.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Iu.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Iu.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,a)=>r(o,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((a,i)=>r(a,i,e),{id:t.name});e.addEventProcessor(o)}V&&w.log(`Integration installed: ${t.name}`)}function bi(e){const t=J();if(!t){V&&w.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function mv(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function _v(e,t){const{value:n,unit:r}=mv(e)?e:{value:e,unit:void 0},o=gv(n),a=r&&typeof r=="string"?{unit:r}:{};if(o)return{...o,...a};if(!t||t==="skip-undefined"&&n===void 0)return;let i="";try{i=JSON.stringify(n)??""}catch{}return{value:i,type:"string",...a}}function Io(e,t=!1){const n={};for(const[r,o]of Object.entries(e??{})){const a=_v(o,t);a&&(n[r]=a)}return n}function gv(e){const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}function Cu(e,t){return t?Ye(t,()=>{const n=Ie(),r=n?Lg(n):Cc(t);return[n?Zt(n):Ka(e,t),r]}):[void 0,void 0]}const yv={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function vv(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function bv(e,t,n,r){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Qt(r)),Ct(o,[vv(e)])}const Ev=100;function Lt(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function Sv(e,t){const n=Ei(),r=Nu(e);r===void 0?n.set(e,[t]):r.length>=Ev?(ko(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Ao(e,t=ae(),n=Sv){var r;const o=(t==null?void 0:t.getClient())??J();if(!o){V&&w.warn("No client available to capture log.");return}const{release:a,environment:i,enableLogs:s=!1,beforeSendLog:c}=o.getOptions();if(!s){V&&w.warn("logging option not enabled, log will not be captured.");return}const[,u]=Cu(o,t),p={...e.attributes},{user:{id:l,email:d,username:h},attributes:f={}}=Nc(Ze(),t);Lt(p,"user.id",l,!1),Lt(p,"user.email",d,!1),Lt(p,"user.name",h,!1),Lt(p,"sentry.release",a),Lt(p,"sentry.environment",i);const{name:m,version:_}=((r=o.getSdkMetadata())==null?void 0:r.sdk)??{};Lt(p,"sentry.sdk.name",m),Lt(p,"sentry.sdk.version",_);const g=o.getIntegrationByName("Replay"),b=g==null?void 0:g.getReplayId(!0);Lt(p,"sentry.replay_id",b),b&&(g==null?void 0:g.getRecordingMode())==="buffer"&&Lt(p,"sentry._internal.replay_is_buffering",!0);const R=e.message;if(Ya(R)){const{__sentry_template_string__:k,__sentry_template_values__:B=[]}=R;B!=null&&B.length&&(p["sentry.message.template"]=k),B.forEach((C,j)=>{p[`sentry.message.parameter.${j}`]=C})}const v=Ga(t);Lt(p,"sentry.trace.parent_span_id",v==null?void 0:v.spanContext().spanId);const E={...e,attributes:p};o.emit("beforeCaptureLog",E);const S=c?Ar(()=>c(E)):E;if(!S){o.recordDroppedEvent("before_send","log_item",1),V&&w.warn("beforeSendLog returned null, log will not be captured.");return}const{level:y,message:P,attributes:T={},severityNumber:O}=S,N={timestamp:Ue(),level:y,body:P,trace_id:u==null?void 0:u.trace_id,severity_number:O??yv[y],attributes:{...Io(f),...Io(T,!0)}};n(o,N),o.emit("afterCaptureLog",S)}function ko(e,t){const n=t??Nu(e)??[];if(n.length===0)return;const r=e.getOptions(),o=bv(n,r._metadata,r.tunnel,e.getDsn());Ei().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Nu(e){return Ei().get(e)}function Ei(){return Mc("clientToLogBufferMap",()=>new WeakMap)}function wv(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function Rv(e,t,n,r){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Qt(r)),Ct(o,[wv(e)])}const Pv=1e3;function Vt(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function Tv(e,t){const n=wi(),r=Mu(e);r===void 0?n.set(e,[t]):r.length>=Pv?(Si(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Ov(e,t,n){var r;const{release:o,environment:a}=t.getOptions(),i={...e.attributes};Vt(i,"user.id",n.id,!1),Vt(i,"user.email",n.email,!1),Vt(i,"user.name",n.username,!1),Vt(i,"sentry.release",o),Vt(i,"sentry.environment",a);const{name:s,version:c}=((r=t.getSdkMetadata())==null?void 0:r.sdk)??{};Vt(i,"sentry.sdk.name",s),Vt(i,"sentry.sdk.version",c);const u=t.getIntegrationByName("Replay"),p=u==null?void 0:u.getReplayId(!0);return Vt(i,"sentry.replay_id",p),p&&(u==null?void 0:u.getRecordingMode())==="buffer"&&Vt(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}function xv(e,t,n,r){const[,o]=Cu(t,n),a=Ga(n),i=a?a.spanContext().traceId:o==null?void 0:o.trace_id,s=a?a.spanContext().spanId:void 0;return{timestamp:Ue(),trace_id:i??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...Io(r),...Io(e.attributes,"skip-undefined")}}}function Iv(e,t){const n=(t==null?void 0:t.scope)??ae(),r=(t==null?void 0:t.captureSerializedMetric)??Tv,o=(n==null?void 0:n.getClient())??J();if(!o){V&&w.warn("No client available to capture metric.");return}const{_experiments:a,enableMetrics:i,beforeSendMetric:s}=o.getOptions();if(!(i??(a==null?void 0:a.enableMetrics)??!0)){V&&w.warn("metrics option not enabled, metric will not be captured.");return}const{user:c,attributes:u}=Nc(Ze(),n),p=Ov(e,o,c);o.emit("processMetric",p);const l=s||(a==null?void 0:a.beforeSendMetric),d=l?l(p):p;if(!d){V&&w.log("`beforeSendMetric` returned `null`, will not send metric.");return}const h=xv(d,o,n,u);V&&w.log("[Metric]",h),r(o,h),o.emit("afterCaptureMetric",d)}function Si(e,t){const n=t??Mu(e)??[];if(n.length===0)return;const r=e.getOptions(),o=Rv(n,r._metadata,r.tunnel,e.getDsn());wi().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function Mu(e){return wi().get(e)}function wi(){return Mc("clientToMetricBufferMap",()=>new WeakMap)}function Ri(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const Pi=Symbol.for("SentryBufferFullError");function Ti(e=100){const t=new Set;function n(){return t.size<e}function r(i){t.delete(i)}function o(i){if(!n())return Lc(Pi);const s=i();return t.add(s),s.then(()=>r(s),()=>r(s)),s}function a(i){if(!t.size)return Qa(!0);const s=Promise.allSettled(Array.from(t)).then(()=>!0);if(!i)return s;const c=[s,new Promise(u=>Ri(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:o,drain:a}}const Lu=64;function Du(e,t,n=Ti(e.bufferSize||Lu)){let r={};const o=i=>n.drain(i);function a(i){const s=[];if(er(i,(l,d)=>{const h=Qc(d);by(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):s.push(l)}),s.length===0)return Promise.resolve({});const c=Ct(i[0],s),u=l=>{if(li(c,["client_report"])){V&&w.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);return}er(c,(d,h)=>{e.recordDroppedEvent(l,Qc(h))})},p=()=>t({body:So(c)}).then(l=>l.statusCode===413?(V&&w.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),l):(V&&l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&w.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=vy(r,l),l),l=>{throw u("network_error"),V&&w.error("Encountered error running transport request:",l),l});return n.add(p).then(l=>l,l=>{if(l===Pi)return V&&w.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:a,flush:o}}function Av(e,t,n){const r=[{type:"client_report"},{timestamp:Za(),discarded_events:e}];return Ct(t?{dsn:t}:{},[r])}function ju(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function kv(e){var t;const{trace_id:n,parent_span_id:r,span_id:o,status:a,origin:i,data:s,op:c}=((t=e.contexts)==null?void 0:t.trace)??{};return{data:s??{},description:e.transaction,op:c,parent_span_id:r,span_id:o??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:n??"",origin:i,profile_id:s==null?void 0:s[Ba],exclusive_time:s==null?void 0:s[Vn],measurements:e.measurements,is_segment:!0}}function Cv(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Ba]:e.profile_id},...e.exclusive_time&&{[Vn]:e.exclusive_time}}}},measurements:e.measurements}}const $u="Not capturing exception because it's already been captured.",Fu="Discarded session because of missing or non-string release",Uu=Symbol.for("SentryInternalError"),Bu=Symbol.for("SentryDoNotSendEventError"),Nv=5e3;function Co(e){return{message:e,[Uu]:!0}}function Oi(e){return{message:e,[Bu]:!0}}function Hu(e){return!!e&&typeof e=="object"&&Uu in e}function qu(e){return!!e&&typeof e=="object"&&Bu in e}function Wu(e,t,n,r,o){let a=0,i,s=!1;e.on(n,()=>{a=0,clearTimeout(i),s=!1}),e.on(t,c=>{a+=r(c),a>=8e5?o(e):s||(s=!0,i=Ri(setTimeout(()=>{o(e)},Nv)))}),e.on("flush",()=>{o(e)})}class Mv{constructor(t){var n,r,o;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ti(((n=t.transportOptions)==null?void 0:n.bufferSize)??Lu),t.dsn?this._dsn=kc(t.dsn):V&&w.warn("No DSN provided, client will not send events."),this._dsn){const a=xu(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:a})}this._options.enableLogs=this._options.enableLogs??((r=this._options._experiments)==null?void 0:r.enableLogs),this._options.enableLogs&&Wu(this,"afterCaptureLog","flushLogs",$v,ko),(this._options.enableMetrics??((o=this._options._experiments)==null?void 0:o.enableMetrics)??!0)&&Wu(this,"afterCaptureMetric","flushMetrics",jv,Si)}captureException(t,n,r){const o=Ht();if(Dc(t))return V&&w.log($u),o;const a={event_id:o,...n};return this._process(()=>this.eventFromException(t,a).then(i=>this._captureEvent(i,a,r)).then(i=>i),"error"),a.event_id}captureMessage(t,n,r,o){const a={event_id:Ht(),...r},i=Ya(t)?t:String(t),s=tn(t),c=s?this.eventFromMessage(i,n,a):this.eventFromException(t,a);return this._process(()=>c.then(u=>this._captureEvent(u,a,o)),s?"unknown":"error"),a.event_id}captureEvent(t,n,r){const o=Ht();if(n!=null&&n.originalException&&Dc(n.originalException))return V&&w.log($u),o;const a={event_id:o,...n},i=t.sdkProcessingMetadata||{},s=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=zu(t.type);return this._process(()=>this._captureEvent(t,a,s||r,c),u),a.event_id}captureSession(t){this.sendSession(t),jc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),o=await n.flush(t);return r&&o}async close(t){ko(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];ku(this,t,this._integrations),n||Au(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Vy(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Ey(r,Sy(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=$c}=this._options;if("aggregates"in t){const a=t.attrs||{};if(!a.release&&!n){V&&w.warn(Fu);return}a.release=a.release||n,a.environment=a.environment||r,t.attrs=a}else{if(!t.release&&!n){V&&w.warn(Fu);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const o=Xy(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const o=`${t}:${n}`;V&&w.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,o=(...a)=>n(...a);return r.add(o),()=>{r.delete(o)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return V&&w.error("Error while sending envelope:",n),{}}return V&&w.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=hv(this,t),Au(this,t)}_updateSessionFromEvent(t,n){var r,o;let a=n.level==="fatal",i=!1;const s=(r=n.exception)==null?void 0:r.values;if(s){i=!0,a=!1;for(const u of s)if(((o=u.mechanism)==null?void 0:o.handled)===!1){a=!0;break}}const c=t.status==="ok";(c&&t.errors===0||c&&a)&&(jc(t,{...a&&{status:"crashed"},errors:t.errors||Number(i||a)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){const a=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i!=null&&i.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Dg(a,t,n,r,this,o).then(s=>{if(s===null)return s;this.emit("postprocessEvent",s,n),s.contexts={trace:Cc(r),...s.contexts};const c=Ka(this,r);return s.sdkProcessingMetadata={dynamicSamplingContext:c,...s.sdkProcessingMetadata},s})}_captureEvent(t,n={},r=ae(),o=Ze()){return V&&xi(t)&&w.log(`Captured error event \`${ju(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(a=>a.event_id,a=>{V&&(qu(a)?w.log(a.message):Hu(a)?w.warn(a.message):w.warn(a))})}_processEvent(t,n,r,o){const a=this.getOptions(),{sampleRate:i}=a,s=Gu(t),c=xi(t),u=`before send for type \`${t.type||"error"}\``,p=typeof i>"u"?void 0:qa(i);if(c&&typeof p=="number"&&Ac()>p)return this.recordDroppedEvent("sample_rate","error"),Lc(Oi(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const l=zu(t.type);return this._prepareEvent(t,n,r,o).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",l),Oi("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return d;const h=Dv(this,a,d,n);return Lv(h,u)}).then(d=>{var h;if(d===null){if(this.recordDroppedEvent("before_send",l),s){const _=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",_)}throw Oi(`${u} returned \`null\`, will not send event.`)}const f=r.getSession()||o.getSession();if(c&&f&&this._updateSessionFromEvent(f,d),s){const _=((h=d.sdkProcessingMetadata)==null?void 0:h.spanCountBeforeProcessing)||0,g=d.spans?d.spans.length:0,b=_-g;b>0&&this.recordDroppedEvent("before_send","span",b)}const m=d.transaction_info;if(s&&m&&d.transaction!==t.transaction){const _="custom";d.transaction_info={...m,source:_}}return this.sendEvent(d,n),d}).then(null,d=>{throw qu(d)||Hu(d)?d:(this.captureException(d,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:d}),Co(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
4
|
-
Reason: ${d}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Pi&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[o,a]=n.split(":");return{reason:o,category:a,quantity:r}})}_flushOutcomes(){V&&w.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){V&&w.log("No outcomes to send");return}if(!this._dsn){V&&w.log("No dsn provided, will not send outcomes");return}V&&w.log("Sending outcomes:",t);const n=Av(t,this._options.tunnel&&Qt(this._dsn));this.sendEnvelope(n)}}function zu(e){return e==="replay_event"?"replay":e||"error"}function Lv(e,t){const n=`${t} must return \`null\` or a valid event.`;if(lo(e))return e.then(r=>{if(!dt(r)&&r!==null)throw Co(n);return r},r=>{throw Co(`${t} rejected with ${r}`)});if(!dt(e)&&e!==null)throw Co(n);return e}function Dv(e,t,n,r){const{beforeSend:o,beforeSendTransaction:a,beforeSendSpan:i,ignoreSpans:s}=t;let c=n;if(xi(c)&&o)return o(c,r);if(Gu(c)){if(i||s){const u=kv(c);if(s!=null&&s.length&&Po(u,s))return null;if(i){const p=i(u);p?c=jg(n,Cv(p)):Ua()}if(c.spans){const p=[],l=c.spans;for(const h of l){if(s!=null&&s.length&&Po(h,s)){Wy(l,h);continue}if(i){const f=i(h);f?p.push(f):(Ua(),p.push(h))}else p.push(h)}const d=c.spans.length-p.length;d&&e.recordDroppedEvent("before_send","span",d),c.spans=p}}if(a){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return a(c,r)}}return c}function xi(e){return e.type===void 0}function Gu(e){return e.type==="transaction"}function jv(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Xu(e.attributes)}function $v(e){let t=0;return e.message&&(t+=e.message.length*2),t+Xu(e.attributes)}function Xu(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Vu(n[0]):tn(n)?t+=Vu(n):t+=100}),t}function Vu(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function Fv(e){return St(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Ju(e){return Fv(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Uv(e,t){t.debug===!0&&(V?w.enable():Ar(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ae().update(t.initialScope);const n=new e(t);return Ku(n),n.init(),n}function Ku(e){ae().setClient(e)}const Ii=100,Ai=5e3,Bv=36e5;function Hv(e){function t(...n){V&&w.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let a=Ai,i;function s(l,d,h){return li(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,d,h):!0}function c(l){i&&clearTimeout(i),i=Ri(setTimeout(async()=>{i=void 0;const d=await o.shift();d&&(t("Attempting to send previously queued event"),d[0].sent_at=new Date().toISOString(),p(d,!0).catch(h=>{t("Failed to retry sending",h)}))},l))}function u(){i||(c(a),a=Math.min(a*2,Bv))}async function p(l,d=!1){var h,f;if(!d&&li(l,["replay_event","replay_recording"]))return await o.push(l),c(Ii),{};try{if(n.shouldSend&&await n.shouldSend(l)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const m=await r.send(l);let _=Ii;if(m){if((h=m.headers)!=null&&h["retry-after"])_=wy(m.headers["retry-after"]);else if((f=m.headers)!=null&&f["x-sentry-rate-limits"])_=6e4;else if((m.statusCode||0)>=400)return m}return c(_),a=Ai,m}catch(m){if(await s(l,m,a))return d?await o.unshift(l):await o.push(l),u(),t("Error sending. Event queued.",m),{};throw m}}return n.flushAtStartup&&u(),{send:p,flush:l=>(l===void 0&&(a=Ai,c(Ii)),r.flush(l))}}}const No="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function Yu(e,t){let n;return er(e,(r,o)=>(t.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function qv(e,t){return n=>{const r=e(n);return{...r,send:async o=>{const a=Yu(o,["event","transaction","profile","replay_event"]);return a&&(a.release=t),r.send(o)}}}}function Wv(e,t){return Ct(t?{...e[0],dsn:t}:e[0],e[1])}function zv(e,t){return n=>{const r=e(n),o=new Map,a=t||(u=>{var p;const l=u.getEvent();return(p=l==null?void 0:l.extra)!=null&&p[No]&&Array.isArray(l.extra[No])?l.extra[No]:[]});function i(u,p){const l=p?`${u}:${p}`:u;let d=o.get(l);if(!d){const h=Fc(u);if(!h)return;const f=xu(h,n.tunnel);d=p?qv(e,p)({...n,url:f}):e({...n,url:f}),o.set(l,d)}return[u,d]}async function s(u){function p(h){const f=h!=null&&h.length?h:["event"];return Yu(u,f)}const l=a({envelope:u,getEvent:p}).map(h=>typeof h=="string"?i(h,void 0):i(h.dsn,h.release)).filter(h=>!!h),d=l.length?l:[["",r]];return(await Promise.all(d.map(([h,f])=>f.send(Wv(u,h)))))[0]}async function c(u){const p=[...o.values(),r];return(await Promise.all(p.map(l=>l.flush(u)))).every(l=>l)}return{send:s,flush:c}}}function Qu(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const Gv=Qu;function Xv(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function ki(e,t,n=[t],r="npm"){const o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=n.map(a=>({name:`${r}:@sentry/${a}`,version:ho})),o.version=ho)}function Mo(e={}){const t=e.client||J();if(!Uc()||!t)return{};const n=Wa(),r=za(n);if(r.getTraceData)return r.getTraceData(e);const o=e.scope||ae(),a=e.span||Ie(),i=a?Bc(a):Vv(o),s=a?Zt(a):Ka(t,o),c=$g(s);if(!Fg.test(i))return w.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const u={"sentry-trace":i,baggage:c};return e.propagateTraceparent&&(u.traceparent=a?Ug(a):Jv(o)),u}function Vv(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Bg(t,r,n)}function Jv(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Hg(t,r,n)}function Lo(e){const t={};try{e.forEach((n,r)=>{typeof n=="string"&&(t[r]=n)})}catch{}return t}function Zu(e){const t=Object.create(null);try{Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(t[n]=r)})}catch{}return t}function Kv(e){const t=Lo(e.headers);return{method:e.method,url:e.url,query_string:tl(e.url),headers:t}}function el(e){var t;const n=e.headers||{},r=(typeof n["x-forwarded-host"]=="string"?n["x-forwarded-host"]:void 0)||(typeof n.host=="string"?n.host:void 0),o=(typeof n["x-forwarded-proto"]=="string"?n["x-forwarded-proto"]:void 0)||e.protocol||((t=e.socket)!=null&&t.encrypted?"https":"http"),a=e.url||"",i=Yv({url:a,host:r,protocol:o}),s=e.body||void 0,c=e.cookies;return{url:i,method:e.method,query_string:tl(a),headers:Zu(n),cookies:c,data:s}}function Yv({url:e,protocol:t,host:n}){if(e!=null&&e.startsWith("http"))return e;if(e&&n)return`${t}://${n}${e}`}function tl(e){if(e)try{const t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}let nl;const Qv="FunctionToString",rl=new WeakMap,Zv=(()=>({name:Qv,setupOnce(){nl=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ei(this),n=rl.has(J())&&t!==void 0?t:this;return nl.apply(n,e)}}catch{}},setup(e){rl.set(e,!0)}})),ol=Zv,e0=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],t0="EventFilters",al=(e={})=>{let t;return{name:t0,setup(n){const r=n.getOptions();t=sl(e,r)},processEvent(n,r,o){if(!t){const a=o.getOptions();t=sl(e,a)}return n0(n,t)?null:n}}},il=((e={})=>({...al(e),name:"InboundFilters"}));function sl(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:e0],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function n0(e,t){if(e.type){if(e.type==="transaction"&&o0(e,t.ignoreTransactions))return V&&w.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
5
|
-
Event: ${Pn(e)}`),!0}else{if(r0(e,t.ignoreErrors))return V&&w.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
6
|
-
Event: ${Pn(e)}`),!0;if(c0(e))return V&&w.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
7
|
-
Event: ${Pn(e)}`),!0;if(a0(e,t.denyUrls))return V&&w.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
8
|
-
Event: ${Pn(e)}.
|
|
9
|
-
Url: ${Do(e)}`),!0;if(!i0(e,t.allowUrls))return V&&w.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
10
|
-
Event: ${Pn(e)}.
|
|
11
|
-
Url: ${Do(e)}`),!0}return!1}function r0(e,t){return t!=null&&t.length?ju(e).some(n=>kt(n,t)):!1}function o0(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?kt(n,t):!1}function a0(e,t){if(!(t!=null&&t.length))return!1;const n=Do(e);return n?kt(n,t):!1}function i0(e,t){if(!(t!=null&&t.length))return!0;const n=Do(e);return n?kt(n,t):!0}function s0(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Do(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(a=>{var i,s,c;return((i=a.mechanism)==null?void 0:i.parent_id)===void 0&&((c=(s=a.stacktrace)==null?void 0:s.frames)==null?void 0:c.length)}),o=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return o?s0(o):null}catch{return V&&w.error(`Cannot extract url for event ${Pn(e)}`),null}}function c0(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function u0(e,t,n,r,o,a){var i;if(!((i=o.exception)!=null&&i.values)||!a||!mo(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Ci(e,t,r,a.originalException,n,o.exception.values,s,0))}function Ci(e,t,n,r,o,a,i,s){if(a.length>=n+1)return a;let c=[...a];if(mo(r[o],Error)){ul(i,s,r);const u=e(t,r[o]),p=c.length;ll(u,o,p,s),c=Ci(e,t,n,r[o],o,[u,...c],u,p)}return cl(r)&&r.errors.forEach((u,p)=>{if(mo(u,Error)){ul(i,s,r);const l=e(t,u),d=c.length;ll(l,`errors[${p}]`,d,s),c=Ci(e,t,n,u,o,[l,...c],l,d)}}),c}function cl(e){return Array.isArray(e.errors)}function ul(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...cl(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function ll(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const pl=new Map,dl=new Set;function l0(e){if(de._sentryModuleMetadata)for(const t of Object.keys(de._sentryModuleMetadata)){const n=de._sentryModuleMetadata[t];if(dl.has(t))continue;dl.add(t);const r=e(t);for(const o of r.reverse())if(o.filename){pl.set(o.filename,n);break}}}function p0(e,t){return l0(e),pl.get(t)}function fl(e,t){var n,r;(r=(n=t.exception)==null?void 0:n.values)==null||r.forEach(o=>{var a,i;(i=(a=o.stacktrace)==null?void 0:a.frames)==null||i.forEach(s=>{if(!s.filename||s.module_metadata)return;const c=p0(e,s.filename);c&&(s.module_metadata=c)})})}function hl(e){var t,n;(n=(t=e.exception)==null?void 0:t.values)==null||n.forEach(r=>{var o,a;(a=(o=r.stacktrace)==null?void 0:o.frames)==null||a.forEach(i=>{delete i.module_metadata})})}const d0=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{er(t,(n,r)=>{if(r==="event"){const o=Array.isArray(n)?n[1]:void 0;o&&(hl(o),n[1]=o)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;fl(n,t)})}});function Ni(e){const t="console";kr(t,e),Cr(t,f0)}function f0(){"console"in de&&ti.forEach(function(e){e in de.console&&ft(de.console,e,function(t){return Hc[e]=t,function(...n){xn("console",{args:n,level:e});const r=Hc[e];r==null||r.apply(de.console,n)}})})}const h0="CaptureConsole",m0=((e={})=>{const t=e.levels||ti,n=e.handled??!0;return{name:h0,setup(r){"console"in de&&Ni(({args:o,level:a})=>{J()!==r||!t.includes(a)||g0(o,a,n)})}}}),_0=m0;function g0(e,t,n){const r=pi(t),o=new Error,a={level:pi(t),extra:{arguments:e}};Ye(i=>{if(i.addEventProcessor(u=>(u.logger="console",nn(u,{handled:n,type:"auto.core.capture_console"}),u)),t==="assert"){if(!e[0]){const u=`Assertion failed: ${_o(e.slice(1)," ")||"console.assert"}`;i.setExtra("arguments",e.slice(1)),i.captureMessage(u,r,{captureContext:a,syntheticException:o})}return}const s=e.find(u=>u instanceof Error);if(s){ge(s,a);return}const c=_o(e," ");i.captureMessage(c,r,{captureContext:a,syntheticException:o})})}const y0="Dedupe",v0=(()=>{let e;return{name:y0,processEvent(t){if(t.type)return t;try{if(b0(t,e))return V&&w.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),ml=v0;function b0(e,t){return t?!!(E0(e,t)||S0(e,t)):!1}function E0(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!gl(e,t)||!_l(e,t))}function S0(e,t){const n=yl(t),r=yl(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!gl(e,t)||!_l(e,t))}function _l(e,t){let n=ni(e),r=ni(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const a=r[o],i=n[o];if(a.filename!==i.filename||a.lineno!==i.lineno||a.colno!==i.colno||a.function!==i.function)return!1}return!0}function gl(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function yl(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}const w0="ExtraErrorData",R0=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:w0,processEvent(r,o,a){const{maxValueLength:i}=a.getOptions();return T0(r,o,t,n,i)}}}),P0=R0;function T0(e,t={},n,r,o){if(!t.originalException||!St(t.originalException))return e;const a=t.originalException.name||t.originalException.constructor.name,i=vl(t.originalException,r,o);if(i){const s={...e.contexts},c=Jn(i,n);return dt(c)&&(ht(c,"__sentry_skip_normalization__",!0),s[a]=c),{...e,contexts:s}}return e}function vl(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const a of Object.keys(e)){if(r.indexOf(a)!==-1)continue;const i=e[a];o[a]=St(i)||typeof i=="string"?n?qc(`${i}`,n):`${i}`:i}if(t&&e.cause!==void 0)if(St(e.cause)){const a=e.cause.name||e.cause.constructor.name;o.cause={[a]:vl(e.cause,!1,n)}}else o.cause=e.cause;if(typeof e.toJSON=="function"){const a=e.toJSON();for(const i of Object.keys(a)){const s=a[i];o[i]=St(s)?s.toString():s}}return o}catch(r){V&&w.error("Unable to extract extra data from the Error object:",r)}return null}function O0(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const x0=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function I0(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=x0.exec(t);return n?n.slice(1):[]}function bl(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=O0(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function El(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function A0(e,t){e=bl(e).slice(1),t=bl(t).slice(1);const n=El(e.split("/")),r=El(t.split("/")),o=Math.min(n.length,r.length);let a=o;for(let s=0;s<o;s++)if(n[s]!==r[s]){a=s;break}let i=[];for(let s=a;s<n.length;s++)i.push("..");return i=i.concat(r.slice(a)),i.join("/")}function k0(e,t){return I0(e)[2]||""}const C0="RewriteFrames",Sl=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in de&&!!de.window,o=e.iteratee||N0({isBrowser:r,root:t,prefix:n});function a(s){try{return{...s,exception:{...s.exception,values:s.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:i(c.stacktrace)}}))}}}catch{return s}}function i(s){var c;return{...s,frames:(c=s==null?void 0:s.frames)==null?void 0:c.map(u=>o(u))}}return{name:C0,processEvent(s){let c=s;return s.exception&&Array.isArray(s.exception.values)&&(c=a(c)),c}}};function N0({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),a=/^\//.test(r.filename);if(e){if(t){const i=r.filename;i.indexOf(t)===0&&(r.filename=i.replace(t,n))}}else if(o||a){const i=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?A0(t,i):k0(i);r.filename=`${n}${s}`}return r}}const M0=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],L0=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],D0={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},wl=["select","insert","upsert","update","delete"];function jo(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function $o(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function j0(e,t={}){var n;switch(e){case"GET":return"select";case"POST":return(n=t.Prefer)!=null&&n.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function $0(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return n!=null&&n.startsWith("fts")?o="textSearch":n!=null&&n.startsWith("plfts")?o="textSearch[plain]":n!=null&&n.startsWith("phfts")?o="textSearch[phrase]":n!=null&&n.startsWith("wfts")?o="textSearch[websearch]":o=n&&D0[n]||"filter",`${o}(${e}, ${r.join(".")})`}function Rl(e,t=!1){return new Proxy(e,{apply(n,r,o){return Rt({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[Q]:"auto.db.supabase",[Se]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},a=>Reflect.apply(n,r,o).then(i=>(i&&typeof i=="object"&&"error"in i&&i.error?(a.setStatus({code:Oe}),ge(i.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):a.setStatus({code:fo}),a.end(),i)).catch(i=>{throw a.setStatus({code:Oe}),a.end(),ge(i,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),i}).then(...o))}})}function F0(e){const t=e.auth;if(!(!t||$o(e.auth))){for(const n of M0){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=Rl(r))}for(const n of L0){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=Rl(r,!0))}jo(e.auth)}}function U0(e){$o(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const o=Reflect.apply(t,n,r),a=o.constructor;return H0(a),o}}),jo(e.prototype.from))}function B0(e){$o(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){var o;const a=wl,i=n,s=j0(i.method,i.headers);if(!a.includes(s)||!((o=i==null?void 0:i.url)!=null&&o.pathname)||typeof i.url.pathname!="string")return Reflect.apply(t,n,r);const c=i.url.pathname.split("/"),u=c.length>0?c[c.length-1]:"",p=[];for(const[f,m]of i.url.searchParams.entries())p.push($0(f,m));const l=Object.create(null);if(dt(i.body))for(const[f,m]of Object.entries(i.body))l[f]=m;const d=`${s==="select"?"":`${s}${l?"(...) ":""}`}${p.join(" ")} from(${u})`,h={"db.table":u,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[Q]:"auto.db.supabase",[Se]:"db"};return p.length&&(h["db.query"]=p),Object.keys(l).length&&(h["db.body"]=l),Rt({name:d,attributes:h},f=>Reflect.apply(t,n,[]).then(m=>{if(f&&(m&&typeof m=="object"&&"status"in m&&qt(f,m.status||500),f.end()),m.error){const b=new Error(m.error.message);m.error.code&&(b.code=m.error.code),m.error.details&&(b.details=m.error.details);const R={};p.length&&(R.query=p),Object.keys(l).length&&(R.body=l),ge(b,v=>(v.addEventProcessor(E=>(nn(E,{handled:!1,type:"auto.db.supabase.postgres"}),E)),v.setContext("supabase",R),v))}const _={type:"supabase",category:`db.${s}`,message:d},g={};return p.length&&(g.query=p),Object.keys(l).length&&(g.body=l),Object.keys(g).length&&(_.data=g),Nt(_),m},m=>{throw f&&(qt(f,500),f.end()),m}).then(...r))}}),jo(e.prototype.then))}function H0(e){for(const t of wl)$o(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,o){const a=Reflect.apply(n,r,o),i=a.constructor;return V&&w.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),B0(i),a}}),jo(e.prototype[t]))}const Pl=e=>{if(!e){V&&w.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;U0(t),F0(e)},q0="Supabase",W0=(e=>({setupOnce(){Pl(e)},name:q0})),z0=e=>W0(e.supabaseClient),G0=10,X0="ZodErrors";function V0(e){return St(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function J0(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function K0(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function Y0(e){const t=new Set;for(const r of e.issues){const o=K0(r.path);o.length>0&&t.add(o)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const o=e.issues[0];o!==void 0&&"expected"in o&&typeof o.expected=="string"&&(r=o.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${qc(n.join(", "),100)}`}function Q0(e,t=!1,n,r){var o;if(!((o=n.exception)!=null&&o.values)||!r.originalException||!V0(r.originalException)||r.originalException.issues.length===0)return n;try{const a=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(J0);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:a})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Y0(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":a.slice(0,e)}}}catch(a){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:a instanceof Error?`${a.name}: ${a.message}
|
|
12
|
-
${a.stack}`:"unknown"}}}}}const Z0=((e={})=>{const t=e.limit??G0;return{name:X0,processEvent(n,r){return Q0(t,e.saveZodIssuesAsAttachment,n,r)}}}),eb=Z0,tb=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{er(n,(r,o)=>{if(o==="event"){const a=Array.isArray(r)?r[1]:void 0;a&&(hl(a),r[1]=a)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;fl(r,n)})},processEvent(t){const n=rb(t,e.ignoreSentryInternalFrames);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](o=>!o.some(a=>e.filterKeys.includes(a)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function nb(e,t){var n;if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(ab))return!1;if(e.pre_context){const r=e.pre_context.length;for(let o=0;o<r;o++)if((n=e.pre_context[o])!=null&&n.includes(ob))return!0}return!1}function rb(e,t){const n=ni(e);if(n)return n.filter((r,o)=>!r.filename||r.lineno==null&&r.colno==null&&r.instruction_addr==null?!1:!t||!nb(r,o)).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(o=>o.startsWith(Tl)).map(o=>o.slice(Tl.length)):[])}const Tl="_sentryBundlerPluginAppKey:",ob="Attempt to invoke user-land function",ab="fn.apply(this, wrappedArguments)",ib=100,sb=10,Fo="flag.evaluation.";function nr(e){const t=ae().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function kn(e,t,n=ib){const r=ae().getScopeData().contexts;r.flags||(r.flags={values:[]});const o=r.flags.values;cb(o,e,t,n)}function cb(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){V&&w.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const o=e.findIndex(a=>a.flag===t);o!==-1&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function Cn(e,t,n=sb){if(typeof t!="boolean")return;const r=Ie();if(!r)return;const o=Y(r).data;if(`${Fo}${e}`in o){r.setAttribute(`${Fo}${e}`,t);return}Object.keys(o).filter(a=>a.startsWith(Fo)).length<n&&r.setAttribute(`${Fo}${e}`,t)}const ub=()=>({name:"FeatureFlags",processEvent(e,t,n){return nr(e)},addFeatureFlag(e,t){kn(e,t),Cn(e,t)}}),lb=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;typeof t.isOn=="function"&&ft(t,"isOn",Ol),typeof t.getFeatureValue=="function"&&ft(t,"getFeatureValue",Ol)},processEvent(t,n,r){return nr(t)}});function Ol(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(kn(n,r),Cn(n,r)),r}}const pb="ConversationId",db=(()=>({name:pb,setup(e){e.on("spanStart",t=>{const n=ae().getScopeData(),r=Ze().getScopeData(),o=n.conversationId||r.conversationId;o&&t.setAttribute(qg,o)})}})),fb=db;function hb(e,t,n,r,o){if(!e.fetchData)return;const{method:a,url:i}=e.fetchData,s=Et()&&t(i);if(e.endTimestamp){const h=e.fetchData.__span;if(!h)return;const f=r[h];f&&(s&&(gb(f,e),mb(f,e,o)),delete r[h]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof o=="object"?o:{spanOrigin:o},p=!!Ie(),l=s&&p?mt(vb(i,a,c)):new Mt;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){const h=e.args[0],f={...e.args[1]||{}},m=_b(h,f,Et()&&p?l:void 0,u);m&&(e.args[1]=f,f.headers=m)}const d=J();if(d){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",l,h)}return l}function mb(e,t,n){var r;const o=typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0;o==null||o(e,{headers:(r=t.response)==null?void 0:r.headers,error:t.error})}function _b(e,t,n,r){const o=Mo({span:n,propagateTraceparent:r}),a=o["sentry-trace"],i=o.baggage,s=o.traceparent;if(!a)return;const c=t.headers||(ri(e)?e.headers:void 0);if(c)if(yb(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",a),r&&s&&!u.get("traceparent")&&u.set("traceparent",s),i){const p=u.get("baggage");p?Uo(p)||u.set("baggage",`${p},${i}`):u.set("baggage",i)}return u}else if(Array.isArray(c)){const u=[...c];c.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",a]),r&&s&&!c.find(l=>l[0]==="traceparent")&&u.push(["traceparent",s]);const p=c.find(l=>l[0]==="baggage"&&Uo(l[1]));return i&&!p&&u.push(["baggage",i]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,p="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,d=l?Array.isArray(l)?[...l]:[l]:[],h=l&&(Array.isArray(l)?l.find(m=>Uo(m)):Uo(l));i&&!h&&d.push(i);const f={...c,"sentry-trace":u??a,baggage:d.length>0?d.join(","):void 0};return r&&s&&!p&&(f.traceparent=s),f}else return{...o}}function gb(e,t){var n,r;if(t.response){qt(e,t.response.status);const o=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(o){const a=parseInt(o);a>0&&e.setAttribute("http.response_content_length",a)}}else t.error&&e.setStatus({code:Oe,message:"internal_error"});e.end()}function Uo(e){return e.split(",").some(t=>t.trim().startsWith(Wg))}function yb(e){return typeof Headers<"u"&&mo(e,Headers)}function vb(e,t,n){if(e.startsWith("data:")){const a=rn(e);return{name:`${t} ${a}`,attributes:xl(e,void 0,t,n)}}const r=Zc(e),o=r?Ry(r):e;return{name:`${t} ${o}`,attributes:xl(e,r,t,n)}}function xl(e,t,n,r){const o={url:rn(e),type:"fetch","http.method":n,[Q]:r,[Se]:"http.client"};return t&&(Py(t)||(o["http.url"]=rn(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function Il(e,t={},n=ae()){const{message:r,name:o,email:a,url:i,source:s,associatedEventId:c,tags:u}=e,p={contexts:{feedback:{contact_email:a,name:o,message:r,url:i,source:s,associated_event_id:c}},type:"feedback",level:"info",tags:u},l=(n==null?void 0:n.getClient())||J();return l&&l.emit("beforeSendFeedback",p,t),n.captureEvent(p,t)}function rr(e,t,n,r,o){Ao({level:e,message:t,attributes:n,severityNumber:o},r)}function bb(e,t,{scope:n}={}){rr("trace",e,t,n)}function Eb(e,t,{scope:n}={}){rr("debug",e,t,n)}function Sb(e,t,{scope:n}={}){rr("info",e,t,n)}function wb(e,t,{scope:n}={}){rr("warn",e,t,n)}function Rb(e,t,{scope:n}={}){rr("error",e,t,n)}function Pb(e,t,{scope:n}={}){rr("fatal",e,t,n)}const Tb=Object.freeze(Object.defineProperty({__proto__:null,debug:Eb,error:Rb,fatal:Pb,fmt:Gv,info:Sb,trace:bb,warn:wb},Symbol.toStringTag,{value:"Module"}));function Bo(e,t,n){return"util"in de&&typeof de.util.format=="function"?de.util.format(...e):Ob(e,t,n)}function Ob(e,t,n){return e.map(r=>tn(r)?String(r):JSON.stringify(Jn(r,t,n))).join(" ")}function Al(e){return/%[sdifocO]/.test(e)}function kl(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((o,a)=>{n[`sentry.message.parameter.${a}`]=o}),n}const xb="ConsoleLogs",Cl={[Q]:"auto.log.console"},Ib=((e={})=>{const t=e.levels||ti;return{name:xb,setup(n){const{enableLogs:r,normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=n.getOptions();if(!r){V&&w.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}Ni(({args:i,level:s})=>{if(J()!==n||!t.includes(s))return;const c=i[0],u=i.slice(1);if(s==="assert"){if(!c){const h=u.length>0?`Assertion failed: ${Bo(u,o,a)}`:"Assertion failed";Ao({level:"error",message:h,attributes:Cl})}return}const p=s==="log",l=i.length>1&&typeof i[0]=="string"&&!Al(i[0]),d={...Cl,...l?kl(c,u):{}};Ao({level:p?"info":s,message:Bo(i,o,a),severityNumber:p?10:void 0,attributes:d})})}}}),Ab=Ib;function Mi(e,t,n,r){Iv({type:e,name:t,value:n,unit:r==null?void 0:r.unit,attributes:r==null?void 0:r.attributes},{scope:r==null?void 0:r.scope})}function kb(e,t=1,n){Mi("counter",e,t,n)}function Cb(e,t,n){Mi("gauge",e,t,n)}function Nb(e,t,n){Mi("distribution",e,t,n)}const Mb=Object.freeze(Object.defineProperty({__proto__:null,count:kb,distribution:Nb,gauge:Cb},Symbol.toStringTag,{value:"Module"})),Lb=["trace","debug","info","warn","error","fatal"];function Db(e={}){const t=new Set(e.levels??Lb),n=e.client;return{log(r){const{type:o,level:a,message:i,args:s,tag:c,date:u,...p}=r,l=n||J();if(!l)return;const d=Fb(o,a);if(!t.has(d))return;const{normalizeDepth:h=3,normalizeMaxBreadth:f=1e3}=l.getOptions(),m={};for(const[g,b]of Object.entries(p))m[g]=Jn(b,h,f);m["sentry.origin"]="auto.log.consola",c&&(m["consola.tag"]=c),o&&(m["consola.type"]=o),a!=null&&typeof a=="number"&&(m["consola.level"]=a);const _=Bb(Ub(s,h,f),h,f);_!=null&&_.attributes&&Object.assign(m,_.attributes),Ao({level:d,message:(_==null?void 0:_.message)||i||s&&Bo(s,h,f)||"",attributes:m})}}}const jb={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},$b={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function Fb(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){const n=jb[e];if(n)return n}if(typeof t=="number"){const n=$b[t];if(n)return n}return"info"}function Ub(e,t,n){if(!(e!=null&&e.length))return{message:""};const r=Bo(e,t,n),o=e[0];if(dt(o)){const a=typeof e[1]=="string"?2:1,i=e.slice(a);return{message:r,attributes:o,messageParameters:i}}else{const a=e.slice(1),i=a.length>0&&typeof o=="string"&&!Al(o);return{message:r,messageTemplate:i?o:void 0,messageParameters:i?a:void 0}}}function Bb(e,t,n){const{message:r,attributes:o,messageTemplate:a,messageParameters:i}=e,s={};if(a&&i){const c=kl(a,i);for(const[u,p]of Object.entries(c))s[u]=u.startsWith("sentry.message.parameter.")?Jn(p,t,n):p}else i&&i.length>0&&i.forEach((c,u)=>{s[`sentry.message.parameter.${u}`]=Jn(c,t,n)});return{message:r,attributes:{...Jn(o,t,n),...s}}}const Hb="gen_ai.prompt",Ho="gen_ai.system",at="gen_ai.request.model",Li="gen_ai.request.stream",qo="gen_ai.request.temperature",Di="gen_ai.request.max_tokens",Wo="gen_ai.request.frequency_penalty",ji="gen_ai.request.presence_penalty",zo="gen_ai.request.top_p",Nl="gen_ai.request.top_k",qb="gen_ai.request.encoding_format",Wb="gen_ai.request.dimensions",on="gen_ai.response.finish_reasons",Jt="gen_ai.response.model",Nn="gen_ai.response.id",zb="gen_ai.response.stop_reason",Mn="gen_ai.usage.input_tokens",Ln="gen_ai.usage.output_tokens",Dn="gen_ai.usage.total_tokens",an="gen_ai.operation.name",jn="sentry.sdk_meta.gen_ai.input.messages.original_length",or="gen_ai.input.messages",Mr="gen_ai.system_instructions",_t="gen_ai.response.text",Go="gen_ai.request.available_tools",Xo="gen_ai.response.streaming",Dt="gen_ai.response.tool_calls",Ml="gen_ai.agent.name",Gb="gen_ai.pipeline.name",$i="gen_ai.conversation.id",Xb="gen_ai.usage.cache_creation_input_tokens",Vb="gen_ai.usage.cache_read_input_tokens",Jb="gen_ai.invoke_agent",Kb="gen_ai.embeddings.input",Yb="gen_ai.tool.name",Qb="gen_ai.tool.input",Zb="gen_ai.tool.output",Ll="openai.response.id",Dl="openai.response.model",jl="openai.response.timestamp",eE="openai.usage.completion_tokens",tE="openai.usage.prompt_tokens",Vo={CHAT:"chat",EMBEDDINGS:"embeddings"},$l="anthropic.response.timestamp";function ar(e){return!e||typeof e!="object"?!1:rE(e)||Ul(e)||nE(e)||Bl(e)||Hl(e)||oE(e)||aE(e)||iE(e)||sE(e)||cE(e)}function nE(e){return"image_url"in e?typeof e.image_url=="string"?e.image_url.startsWith("data:"):Fl(e):!1}function Fl(e){return"image_url"in e&&!!e.image_url&&typeof e.image_url=="object"&&"url"in e.image_url&&typeof e.image_url.url=="string"&&e.image_url.url.startsWith("data:")}function rE(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&ar(e.source)}function Ul(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="string"}function Bl(e){return"type"in e&&e.type==="input_audio"&&"input_audio"in e&&!!e.input_audio&&typeof e.input_audio=="object"&&"data"in e.input_audio&&typeof e.input_audio.data=="string"}function Hl(e){return"type"in e&&e.type==="file"&&"file"in e&&!!e.file&&typeof e.file=="object"&&"file_data"in e.file&&typeof e.file.file_data=="string"}function oE(e){return"media_type"in e&&typeof e.media_type=="string"&&"data"in e}function aE(e){return"type"in e&&(e.type==="blob"||e.type==="base64")}function iE(e){return"b64_json"in e}function sE(e){return"type"in e&&"result"in e&&e.type==="image_generation"}function cE(e){return"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}const Lr="[Blob substitute]",uE=["image_url","data","content","b64_json","result","uri"];function Dr(e){const t={...e};ar(t.source)&&(t.source=Dr(t.source)),Ul(e)&&(t.inlineData={...e.inlineData,data:Lr}),Fl(e)&&(t.image_url={...e.image_url,url:Lr}),Bl(e)&&(t.input_audio={...e.input_audio,data:Lr}),Hl(e)&&(t.file={...e.file,file_data:Lr});for(const n of uE)typeof t[n]=="string"&&(t[n]=Lr);return t}const ql=2e4,Jo=e=>new TextEncoder().encode(e).length,Fi=e=>Jo(JSON.stringify(e));function Ko(e,t){if(Jo(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){const a=Math.floor((n+r)/2),i=e.slice(0,a);Jo(i)<=t?(o=i,n=a+1):r=a-1}return o}function lE(e){return typeof e=="string"?e:"text"in e?e.text:""}function Wl(e,t){return typeof e=="string"?t:{...e,text:t}}function pE(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function dE(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function zl(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function fE(e,t){const n={...e,content:""},r=Fi(n),o=t-r;if(o<=0)return[];const a=Ko(e.content,o);return[{...e,content:a}]}function hE(e,t){const{parts:n}=e,r=n.map(s=>Wl(s,"")),o=Fi({...e,parts:r});let a=t-o;if(a<=0)return[];const i=[];for(const s of n){const c=lE(s),u=Jo(c);if(u<=a)i.push(s),a-=u;else if(i.length===0){const p=Ko(c,a);p&&i.push(Wl(s,p));break}else break}return i.length<=0?[]:[{...e,parts:i}]}function mE(e,t){if(!e)return[];if(typeof e=="string"){const n=Ko(e,t);return n?[n]:[]}return typeof e!="object"?[]:pE(e)?fE(e,t):zl(e)?hE(e,t):[]}function Ui(e){return e.map(t=>{let n;return t&&typeof t=="object"&&(dE(t)?n={...t,content:Ui(t.content)}:"content"in t&&ar(t.content)&&(n={...t,content:Dr(t.content)}),zl(t)&&(n={...n??t,parts:Ui(t.parts)}),ar(n)?n=Dr(n):ar(t)&&(n=Dr(t))),n??t})}function _E(e,t){if(!Array.isArray(e)||e.length===0)return e;const n=t-2,r=e[e.length-1],o=Ui([r]),a=o[0];return Fi(a)<=n?o:mE(a,n)}function Yo(e){return _E(e,ql)}function gE(e){return Ko(e,ql)}function jr(e){return e.includes("messages")?"chat":e.includes("completions")?"text_completion":e.includes("generateContent")?"generate_content":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function Qo(e){return`gen_ai.${jr(e)}`}function Gl(e,t){return e?`${e}.${t}`:t}function Bi(e,t,n,r,o){if(t!==void 0&&e.setAttributes({[Mn]:t}),n!==void 0&&e.setAttributes({[Ln]:n}),t!==void 0||n!==void 0||r!==void 0||o!==void 0){const a=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[Dn]:a})}}function Xl(e){if(typeof e=="string")return gE(e);if(Array.isArray(e)){const t=Yo(e);return JSON.stringify(t)}return JSON.stringify(e)}function $r(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(i=>i&&typeof i=="object"&&"role"in i&&i.role==="system");if(t===-1)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r=typeof n.content=="string"?n.content:n.content!==void 0?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};const o=JSON.stringify([{type:"text",content:r}]),a=[...e.slice(0,t),...e.slice(t+1)];return{systemInstructions:o,filteredMessages:a}}const yE=["responses.create","chat.completions.create","embeddings.create","conversations.create"],vE=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],bE=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...vE];function Hi(e){return e.includes("chat.completions")||e.includes("responses")?Vo.CHAT:e.includes("embeddings")?Vo.EMBEDDINGS:e.includes("conversations")?Vo.CHAT:e.split(".").pop()||"unknown"}function EE(e){return`gen_ai.${Hi(e)}`}function SE(e){return yE.includes(e)}function wE(e,t){return e?`${e}.${t}`:t}function RE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion"}function PE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="response"}function TE(e){if(e===null||typeof e!="object"||!("object"in e))return!1;const t=e;return t.object==="list"&&typeof t.model=="string"&&t.model.toLowerCase().includes("embedding")}function OE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="conversation"}function xE(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function IE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function AE(e,t,n){if(qi(e,t.id,t.model,t.created),t.usage&&Zo(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){const r=t.choices.map(o=>o.finish_reason).filter(o=>o!==null);if(r.length>0&&e.setAttributes({[on]:JSON.stringify(r)}),n){const o=t.choices.map(a=>{var i;return(i=a.message)==null?void 0:i.tool_calls}).filter(a=>Array.isArray(a)&&a.length>0).flat();o.length>0&&e.setAttributes({[Dt]:JSON.stringify(o)})}}}function kE(e,t,n){if(qi(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[on]:JSON.stringify([t.status])}),t.usage&&Zo(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n){const r=t;if(Array.isArray(r.output)&&r.output.length>0){const o=r.output.filter(a=>typeof a=="object"&&a!==null&&a.type==="function_call");o.length>0&&e.setAttributes({[Dt]:JSON.stringify(o)})}}}function CE(e,t){e.setAttributes({[Dl]:t.model,[Jt]:t.model}),t.usage&&Zo(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)}function NE(e,t){const{id:n,created_at:r}=t;e.setAttributes({[Ll]:n,[Nn]:n,[$i]:n}),r&&e.setAttributes({[jl]:new Date(r*1e3).toISOString()})}function Zo(e,t,n,r){t!==void 0&&e.setAttributes({[tE]:t,[Mn]:t}),n!==void 0&&e.setAttributes({[eE]:n,[Ln]:n}),r!==void 0&&e.setAttributes({[Dn]:r})}function qi(e,t,n,r){e.setAttributes({[Ll]:t,[Nn]:t}),e.setAttributes({[Dl]:n,[Jt]:n}),e.setAttributes({[jl]:new Date(r*1e3).toISOString()})}function ME(e){if("conversation"in e&&typeof e.conversation=="string")return e.conversation;if("previous_response_id"in e&&typeof e.previous_response_id=="string")return e.previous_response_id}function LE(e){const t={[at]:e.model??"unknown"};"temperature"in e&&(t[qo]=e.temperature),"top_p"in e&&(t[zo]=e.top_p),"frequency_penalty"in e&&(t[Wo]=e.frequency_penalty),"presence_penalty"in e&&(t[ji]=e.presence_penalty),"stream"in e&&(t[Li]=e.stream),"encoding_format"in e&&(t[qb]=e.encoding_format),"dimensions"in e&&(t[Wb]=e.dimensions);const n=ME(e);return n&&(t[$i]=n),t}function DE(e,t){for(const n of e){const r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{const o=t.chatCompletionToolCalls[r];n.function.arguments&&o!=null&&o.function&&(o.function.arguments+=n.function.arguments)}}}function jE(e,t,n){var r,o;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const a of e.choices??[])n&&((r=a.delta)!=null&&r.content&&t.responseTexts.push(a.delta.content),(o=a.delta)!=null&&o.tool_calls&&DE(a.delta.tool_calls,t)),a.finish_reason&&t.finishReasons.push(a.finish_reason)}function $E(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:Oe,message:"internal_error"}),ge(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;const o=e;if(!bE.includes(o.type)){t.eventTypes.push(o.type);return}if(n&&(o.type==="response.output_item.done"&&"item"in o&&t.responsesApiToolCalls.push(o.item),o.type==="response.output_text.delta"&&"delta"in o&&o.delta)){t.responseTexts.push(o.delta);return}if("response"in o){const{response:a}=o;t.responseId=a.id??t.responseId,t.responseModel=a.model??t.responseModel,t.responseTimestamp=a.created_at??t.responseTimestamp,a.usage&&(t.promptTokens=a.usage.input_tokens,t.completionTokens=a.usage.output_tokens,t.totalTokens=a.usage.total_tokens),a.status&&t.finishReasons.push(a.status),n&&a.output_text&&t.responseTexts.push(a.output_text)}}async function*FE(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)IE(o)?jE(o,r,n):xE(o)&&$E(o,r,n,t),yield o}finally{qi(t,r.responseId,r.responseModel,r.responseTimestamp),Zo(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[Xo]:!0}),r.finishReasons.length&&t.setAttributes({[on]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[_t]:r.responseTexts.join("")});const o=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];o.length>0&&t.setAttributes({[Dt]:JSON.stringify(o)}),t.end()}}function UE(e){const t=Array.isArray(e.tools)?e.tools:[],n=e.web_search_options&&typeof e.web_search_options=="object"?[{type:"web_search_options",...e.web_search_options}]:[],r=[...t,...n];if(r.length!==0)try{return JSON.stringify(r)}catch(o){V&&w.error("Failed to serialize OpenAI tools:",o);return}}function BE(e,t){const n={[Ho]:"openai",[an]:Hi(t),[Q]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0],o=UE(r);o&&(n[Go]=o),Object.assign(n,LE(r))}else n[at]="unknown";return n}function HE(e,t,n){var r;if(!t||typeof t!="object")return;const o=t;if(RE(o)){if(AE(e,o,n),n&&(r=o.choices)!=null&&r.length){const a=o.choices.map(i=>{var s;return((s=i.message)==null?void 0:s.content)||""});e.setAttributes({[_t]:JSON.stringify(a)})}}else PE(o)?(kE(e,o,n),n&&o.output_text&&e.setAttributes({[_t]:o.output_text})):TE(o)?CE(e,o):OE(o)&&NE(e,o)}function Vl(e,t,n){if(n===Vo.EMBEDDINGS&&"input"in t){const s=t.input;if(s==null||typeof s=="string"&&s.length===0||Array.isArray(s)&&s.length===0)return;e.setAttribute(Kb,typeof s=="string"?s:JSON.stringify(s));return}const r="input"in t?t.input:"messages"in t?t.messages:void 0;if(!r||Array.isArray(r)&&r.length===0)return;const{systemInstructions:o,filteredMessages:a}=$r(r);o&&e.setAttribute(Mr,o);const i=Xl(a);e.setAttribute(or,i),Array.isArray(a)?e.setAttribute(jn,a.length):e.setAttribute(jn,1)}async function qE(e,t){const n=e.catch(a=>{throw ge(a,{mechanism:{handled:!1,type:"auto.ai.openai"}}),a}),r=await t,o=await n;return o&&typeof o=="object"&&"data"in o?{...o,data:r}:r}function Jl(e,t){return lo(e)?new Proxy(e,{get(n,r){const o=r in Promise.prototype||r===Symbol.toStringTag?t:n,a=Reflect.get(o,r);return r==="withResponse"&&typeof a=="function"?function(){const i=a.call(n);return qE(i,t)}:typeof a=="function"?a.bind(o):a}}):t}function WE(e,t,n,r){return function(...o){const a=BE(o,t),i=a[at]||"unknown",s=Hi(t),c=o[0],u=c&&typeof c=="object"&&c.stream===!0,p={name:`${s} ${i}`,op:EE(t),attributes:a};if(u){let h;const f=Xt(p,m=>(h=e.apply(n,o),r.recordInputs&&c&&Vl(m,c,s),(async()=>{try{const _=await h;return FE(_,m,r.recordOutputs??!1)}catch(_){throw m.setStatus({code:Oe,message:"internal_error"}),ge(_,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),m.end(),_}})()));return Jl(h,f)}let l;const d=Rt(p,h=>(l=e.apply(n,o),r.recordInputs&&c&&Vl(h,c,s),l.then(f=>(HE(h,f,r.recordOutputs),f),f=>{throw ge(f,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),f})));return Jl(l,d)}}function Kl(e,t="",n){return new Proxy(e,{get(r,o){const a=r[o],i=wE(t,String(o));return typeof a=="function"&&SE(i)?WE(a,i,r,n):typeof a=="function"?a.bind(r):a&&typeof a=="object"?Kl(a,i,n):a}})}function zE(e,t){var n;const r=!!((n=J())!=null&&n.getOptions().sendDefaultPii),o={recordInputs:r,recordOutputs:r,...t};return Kl(e,"",o)}function GE(e,t){var n;return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:Oe,message:((n=e.error)==null?void 0:n.type)??"internal_error"}),ge(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function XE(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function VE(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function JE(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function KE(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}function Yl(e,t,n,r){!(e&&typeof e=="object")||GE(e,r)||(XE(e,t),VE(e,t),JE(e,t,n),KE(e,t))}function YE(e,t,n){t.isRecording()&&(e.responseId&&t.setAttributes({[Nn]:e.responseId}),e.responseModel&&t.setAttributes({[Jt]:e.responseModel}),Bi(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[Xo]:!0}),e.finishReasons.length>0&&t.setAttributes({[on]:JSON.stringify(e.finishReasons)}),n&&e.responseTexts.length>0&&t.setAttributes({[_t]:e.responseTexts.join("")}),n&&e.toolCalls.length>0&&t.setAttributes({[Dt]:JSON.stringify(e.toolCalls)}),t.end())}async function*QE(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)Yl(o,r,n,t),yield o}finally{r.responseId&&t.setAttributes({[Nn]:r.responseId}),r.responseModel&&t.setAttributes({[Jt]:r.responseModel}),Bi(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[Xo]:!0}),r.finishReasons.length>0&&t.setAttributes({[on]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[_t]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[Dt]:JSON.stringify(r.toolCalls)}),t.end()}}function ZE(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",o=>{Yl(o,r,n,t)}),e.on("message",()=>{YE(r,t,n)}),e.on("error",o=>{ge(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:Oe,message:"stream_error"}),t.end())}),e}const eS=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"];function tS(e){return eS.includes(e)}function nS(e,t){if(Array.isArray(t)&&t.length===0)return;const{systemInstructions:n,filteredMessages:r}=$r(t);n&&e.setAttributes({[Mr]:n});const o=Array.isArray(r)?r.length:1;e.setAttributes({[or]:Xl(r),[jn]:o})}function rS(e,t){t.error&&(e.setStatus({code:Oe,message:t.error.type||"internal_error"}),ge(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function oS(e){const{system:t,messages:n,input:r}=e,o=typeof t=="string"?[{role:"system",content:e.system}]:[],a=Array.isArray(r)?r:r!=null?[r]:void 0,i=Array.isArray(n)?n:n!=null?[n]:[],s=a??i;return[...o,...s]}function aS(e,t){const n={[Ho]:"anthropic",[an]:jr(t),[Q]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0];r.tools&&Array.isArray(r.tools)&&(n[Go]=JSON.stringify(r.tools)),n[at]=r.model??"unknown","temperature"in r&&(n[qo]=r.temperature),"top_p"in r&&(n[zo]=r.top_p),"stream"in r&&(n[Li]=r.stream),"top_k"in r&&(n[Nl]=r.top_k),"frequency_penalty"in r&&(n[Wo]=r.frequency_penalty),"max_tokens"in r&&(n[Di]=r.max_tokens)}else t==="models.retrieve"||t==="models.get"?n[at]=e[0]:n[at]="unknown";return n}function Wi(e,t){const n=oS(t);nS(e,n),"prompt"in t&&e.setAttributes({[Hb]:JSON.stringify(t.prompt)})}function iS(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[_t]:t.content.map(r=>r.text).filter(r=>!!r).join("")});const n=[];for(const r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[Dt]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[_t]:t.completion}),"input_tokens"in t&&e.setAttributes({[_t]:JSON.stringify(t.input_tokens)})}function sS(e,t){"id"in t&&"model"in t&&(e.setAttributes({[Nn]:t.id,[Jt]:t.model}),"created"in t&&typeof t.created=="number"&&e.setAttributes({[$l]:new Date(t.created*1e3).toISOString()}),"created_at"in t&&typeof t.created_at=="number"&&e.setAttributes({[$l]:new Date(t.created_at*1e3).toISOString()}),"usage"in t&&t.usage&&Bi(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function cS(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){rS(e,t);return}n&&iS(e,t),sS(e,t)}}function Ql(e,t,n){throw ge(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:Oe,message:"internal_error"}),t.end()),e}function uS(e,t,n,r,o,a,i,s,c,u,p){const l=o[at]??"unknown",d={name:`${a} ${l}`,op:Qo(i),attributes:o};return u&&!p?Xt(d,async h=>{try{c.recordInputs&&s&&Wi(h,s);const f=await e.apply(n,r);return QE(f,h,c.recordOutputs??!1)}catch(f){return Ql(f,h,i)}}):Xt(d,h=>{try{c.recordInputs&&s&&Wi(h,s);const f=t.apply(n,r);return ZE(f,h,c.recordOutputs??!1)}catch(f){return Ql(f,h,i)}})}function lS(e,t,n,r){return new Proxy(e,{apply(o,a,i){const s=aS(i,t),c=s[at]??"unknown",u=jr(t),p=typeof i[0]=="object"?i[0]:void 0,l=!!(p!=null&&p.stream),d=t==="messages.stream";return l||d?uS(e,o,n,i,s,u,t,p,r,l,d):Rt({name:`${u} ${c}`,op:Qo(t),attributes:s},h=>(r.recordInputs&&p&&Wi(h,p),Gt(()=>o.apply(n,i),f=>{ge(f,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}})},()=>{},f=>cS(h,f,r.recordOutputs))))}})}function Zl(e,t="",n){return new Proxy(e,{get(r,o){const a=r[o],i=Gl(t,String(o));return typeof a=="function"&&tS(i)?lS(a,i,r,n):typeof a=="function"?a.bind(r):a&&typeof a=="object"?Zl(a,i,n):a}})}function pS(e,t){var n;const r=!!((n=J())!=null&&n.getOptions().sendDefaultPii),o={recordInputs:r,recordOutputs:r,...t};return Zl(e,"",o)}const ep=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],dS="google_genai",tp="chats.create",fS="chat";function hS(e,t){const n=e==null?void 0:e.promptFeedback;if(n!=null&&n.blockReason){const r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:Oe,message:`Content blocked: ${r}`}),ge(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function mS(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function _S(e,t,n){var r;Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const o of e.candidates??[]){o!=null&&o.finishReason&&!t.finishReasons.includes(o.finishReason)&&t.finishReasons.push(o.finishReason);for(const a of((r=o==null?void 0:o.content)==null?void 0:r.parts)??[])n&&a.text&&t.responseTexts.push(a.text),a.functionCall&&t.toolCalls.push({type:"function",id:a.functionCall.id,name:a.functionCall.name,arguments:a.functionCall.args})}}function gS(e,t,n,r){!e||hS(e,r)||(mS(e,t),_S(e,t,n))}async function*yS(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)gS(o,r,n,t),yield o}finally{const o={[Xo]:!0};r.responseId&&(o[Nn]=r.responseId),r.responseModel&&(o[Jt]=r.responseModel),r.promptTokens!==void 0&&(o[Mn]=r.promptTokens),r.completionTokens!==void 0&&(o[Ln]=r.completionTokens),r.totalTokens!==void 0&&(o[Dn]=r.totalTokens),r.finishReasons.length&&(o[on]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(o[_t]=r.responseTexts.join("")),n&&r.toolCalls.length&&(o[Dt]=JSON.stringify(r.toolCalls)),t.setAttributes(o),t.end()}}function vS(e){if(ep.includes(e))return!0;const t=e.split(".").pop();return ep.includes(t)}function bS(e){return e.includes("Stream")}function Fr(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>Fr(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]}function np(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){const n=t;if("model"in n&&typeof n.model=="string")return n.model;if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function ES(e){const t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[qo]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[zo]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[Nl]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[Di]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[Wo]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[ji]=e.presencePenalty),t}function SS(e,t,n){const r={[Ho]:dS,[an]:jr(e),[Q]:"auto.ai.google_genai"};if(t){if(r[at]=np(t,n),"config"in t&&typeof t.config=="object"&&t.config){const o=t.config;if(Object.assign(r,ES(o)),"tools"in o&&Array.isArray(o.tools)){const a=o.tools.flatMap(i=>i.functionDeclarations);r[Go]=JSON.stringify(a)}}}else r[at]=np({},n);return r}function rp(e,t){const n=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&n.push(...Fr(t.config.systemInstruction,"system")),"history"in t&&n.push(...Fr(t.history,"user")),"contents"in t&&n.push(...Fr(t.contents,"user")),"message"in t&&n.push(...Fr(t.message,"user")),Array.isArray(n)&&n.length){const{systemInstructions:r,filteredMessages:o}=$r(n);r&&e.setAttribute(Mr,r);const a=Array.isArray(o)?o.length:0;e.setAttributes({[jn]:a,[or]:JSON.stringify(Yo(o))})}}function wS(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(Jt,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){const r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[Mn]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[Ln]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[Dn]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(o=>{var a;return(a=o.content)!=null&&a.parts&&Array.isArray(o.content.parts)?o.content.parts.map(i=>typeof i.text=="string"?i.text:"").filter(i=>i.length>0).join(""):""}).filter(o=>o.length>0);r.length>0&&e.setAttributes({[_t]:r.join("")})}if(n&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[Dt]:JSON.stringify(r)})}}}function op(e,t,n,r){const o=t===tp;return new Proxy(e,{apply(a,i,s){const c=s[0],u=SS(t,c,n),p=u[at]??"unknown",l=jr(t);return bS(t)?Xt({name:`${l} ${p}`,op:Qo(t),attributes:u},async d=>{try{r.recordInputs&&c&&rp(d,c);const h=await a.apply(n,s);return yS(h,d,!!r.recordOutputs)}catch(h){throw d.setStatus({code:Oe,message:"internal_error"}),ge(h,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),d.end(),h}}):Rt({name:o?`${l} ${p} create`:`${l} ${p}`,op:Qo(t),attributes:u},d=>(r.recordInputs&&c&&rp(d,c),Gt(()=>a.apply(n,s),h=>{ge(h,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},h=>{o||wS(d,h,r.recordOutputs)})))}})}function zi(e,t="",n){return new Proxy(e,{get:(r,o,a)=>{const i=Reflect.get(r,o,a),s=Gl(t,String(o));if(typeof i=="function"&&vS(s)){if(s===tp){const c=op(i,s,r,n);return function(...u){const p=c(...u);return p&&typeof p=="object"?zi(p,fS,n):p}}return op(i,s,r,n)}return typeof i=="function"?i.bind(r):i&&typeof i=="object"?zi(i,s,n):i}})}function RS(e,t){var n;const r=!!((n=J())!=null&&n.getOptions().sendDefaultPii),o={recordInputs:r,recordOutputs:r,...t};return zi(e,"",o)}const Ur="auto.ai.langchain",PS={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},gt=(e,t,n)=>{n!=null&&(e[t]=n)},lt=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function Kt(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function ir(e){if(Array.isArray(e))try{const t=e.map(n=>n&&typeof n=="object"&&ar(n)?Dr(n):n);return JSON.stringify(t)}catch{return String(e)}return Kt(e)}function Br(e){const t=e.toLowerCase();return PS[t]??t}function ap(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function ip(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function Gi(e){return e.map(t=>{var n,r;const o=t._getType;if(typeof o=="function"){const i=o.call(t);return{role:Br(i),content:ir(t.content)}}if(t.lc===1&&t.kwargs){const i=t.id,s=Array.isArray(i)&&i.length>0?i[i.length-1]:"",c=typeof s=="string"?ap(s):"user";return{role:Br(c),content:ir((n=t.kwargs)==null?void 0:n.content)}}if(t.type){const i=String(t.type).toLowerCase();return{role:Br(i),content:ir(t.content)}}if(t.role)return{role:Br(String(t.role)),content:ir(t.content)};const a=(r=t.constructor)==null?void 0:r.name;return a&&a!=="Object"?{role:Br(ap(a)),content:ir(t.content)}:{role:"user",content:ir(t.content)}})}function TS(e,t,n){const r={},o="kwargs"in e?e.kwargs:void 0,a=(t==null?void 0:t.temperature)??(n==null?void 0:n.ls_temperature)??(o==null?void 0:o.temperature);lt(r,qo,a);const i=(t==null?void 0:t.max_tokens)??(n==null?void 0:n.ls_max_tokens)??(o==null?void 0:o.max_tokens);lt(r,Di,i);const s=(t==null?void 0:t.top_p)??(o==null?void 0:o.top_p);lt(r,zo,s);const c=t==null?void 0:t.frequency_penalty;lt(r,Wo,c);const u=t==null?void 0:t.presence_penalty;return lt(r,ji,u),t&&"stream"in t&>(r,Li,!!t.stream),r}function sp(e,t,n,r,o){return{[Ho]:Kt(e??"langchain"),[an]:"chat",[at]:Kt(t),[Q]:Ur,...TS(n,r,o)}}function OS(e,t,n,r,o){const a=o==null?void 0:o.ls_provider,i=(r==null?void 0:r.model)??(o==null?void 0:o.ls_model_name)??"unknown",s=sp(a,i,e,r,o);if(n&&Array.isArray(t)&&t.length>0){gt(s,jn,t.length);const c=t.map(u=>({role:"user",content:u}));gt(s,or,Kt(c))}return s}function xS(e,t,n,r,o){var a;const i=(o==null?void 0:o.ls_provider)??((a=e.id)==null?void 0:a[2]),s=(r==null?void 0:r.model)??(o==null?void 0:o.ls_model_name)??"unknown",c=sp(i,s,e,r,o);if(n&&Array.isArray(t)&&t.length>0){const u=Gi(t.flat()),{systemInstructions:p,filteredMessages:l}=$r(u);p&>(c,Mr,p);const d=Array.isArray(l)?l.length:0;gt(c,jn,d);const h=Yo(l);gt(c,or,Kt(h))}return c}function IS(e,t){var n;const r=[],o=e.flat();for(const a of o){const i=(n=a.message)==null?void 0:n.content;if(Array.isArray(i))for(const s of i){const c=s;c.type==="tool_use"&&r.push(c)}}r.length>0&>(t,Dt,Kt(r))}function AS(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)lt(t,Mn,n.promptTokens),lt(t,Ln,n.completionTokens),lt(t,Dn,n.totalTokens);else if(r){lt(t,Mn,r.input_tokens),lt(t,Ln,r.output_tokens);const o=Number(r.input_tokens),a=Number(r.output_tokens),i=(Number.isNaN(o)?0:o)+(Number.isNaN(a)?0:a);i>0&<(t,Dn,i),r.cache_creation_input_tokens!==void 0&<(t,Xb,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&<(t,Vb,r.cache_read_input_tokens)}}function kS(e,t){var n,r,o,a;if(!e)return;const i={};if(Array.isArray(e.generations)){const h=e.generations.flat().map(f=>{var m,_;return(m=f.generationInfo)!=null&&m.finish_reason?f.generationInfo.finish_reason:(_=f.generation_info)!=null&&_.finish_reason?f.generation_info.finish_reason:null}).filter(f=>typeof f=="string");if(h.length>0&>(i,on,Kt(h)),IS(e.generations,i),t){const f=e.generations.flat().map(m=>{var _;return m.text??((_=m.message)==null?void 0:_.content)}).filter(m=>typeof m=="string");f.length>0&>(i,_t,Kt(f))}}AS(e.llmOutput,i);const s=e.llmOutput,c=(r=(n=e.generations)==null?void 0:n[0])==null?void 0:r[0],u=c==null?void 0:c.message,p=(s==null?void 0:s.model_name)??(s==null?void 0:s.model)??((o=u==null?void 0:u.response_metadata)==null?void 0:o.model_name);p&>(i,Jt,p);const l=(s==null?void 0:s.id)??(u==null?void 0:u.id);l&>(i,Nn,l);const d=(s==null?void 0:s.stop_reason)??((a=u==null?void 0:u.response_metadata)==null?void 0:a.finish_reason);return d&>(i,zb,Kt(d)),i}function CS(e={}){const t=e.recordInputs??!1,n=e.recordOutputs??!1,r=new Map,o=i=>{const s=r.get(i);s!=null&&s.isRecording()&&(s.end(),r.delete(i))},a={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(i,s,c,u,p,l,d,h){const f=ip(l),m=OS(i,s,t,f,d),_=m[at],g=m[an];Xt({name:`${g} ${_}`,op:"gen_ai.chat",attributes:{...m,[Se]:"gen_ai.chat"}},b=>(r.set(c,b),b))},handleChatModelStart(i,s,c,u,p,l,d,h){const f=ip(l),m=xS(i,s,t,f,d),_=m[at],g=m[an];Xt({name:`${g} ${_}`,op:"gen_ai.chat",attributes:{...m,[Se]:"gen_ai.chat"}},b=>(r.set(c,b),b))},handleLLMEnd(i,s,c,u,p){const l=r.get(s);if(l!=null&&l.isRecording()){const d=kS(i,n);d&&l.setAttributes(d),o(s)}},handleLLMError(i,s){const c=r.get(s);c!=null&&c.isRecording()&&(c.setStatus({code:Oe,message:"llm_error"}),o(s)),ge(i,{mechanism:{handled:!1,type:`${Ur}.llm_error_handler`}})},handleChainStart(i,s,c,u,p,l,d,h){const f=h||i.name||"unknown_chain",m={[Q]:"auto.ai.langchain","langchain.chain.name":f};t&&(m["langchain.chain.inputs"]=JSON.stringify(s)),Xt({name:`chain ${f}`,op:"gen_ai.invoke_agent",attributes:{...m,[Se]:"gen_ai.invoke_agent"}},_=>(r.set(c,_),_))},handleChainEnd(i,s){const c=r.get(s);c!=null&&c.isRecording()&&(n&&c.setAttributes({"langchain.chain.outputs":JSON.stringify(i)}),o(s))},handleChainError(i,s){const c=r.get(s);c!=null&&c.isRecording()&&(c.setStatus({code:Oe,message:"chain_error"}),o(s)),ge(i,{mechanism:{handled:!1,type:`${Ur}.chain_error_handler`}})},handleToolStart(i,s,c,u){const p=i.name||"unknown_tool",l={[Q]:Ur,[Yb]:p};t&&(l[Qb]=s),Xt({name:`execute_tool ${p}`,op:"gen_ai.execute_tool",attributes:{...l,[Se]:"gen_ai.execute_tool"}},d=>(r.set(c,d),d))},handleToolEnd(i,s){const c=r.get(s);c!=null&&c.isRecording()&&(n&&c.setAttributes({[Zb]:JSON.stringify(i)}),o(s))},handleToolError(i,s){const c=r.get(s);c!=null&&c.isRecording()&&(c.setStatus({code:Oe,message:"tool_error"}),o(s)),ge(i,{mechanism:{handled:!1,type:`${Ur}.tool_error_handler`}})},copy(){return a},toJSON(){return{lc:1,type:"not_implemented",id:a.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:a.lc_id}}};return a}const cp="auto.ai.langgraph";function NS(e){if(!e||e.length===0)return null;const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function MS(e){const t=e;let n=0,r=0,o=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){const a=t.usage_metadata;return typeof a.input_tokens=="number"&&(n=a.input_tokens),typeof a.output_tokens=="number"&&(r=a.output_tokens),typeof a.total_tokens=="number"&&(o=a.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}if(t.response_metadata&&typeof t.response_metadata=="object"){const a=t.response_metadata;if(a.tokenUsage&&typeof a.tokenUsage=="object"){const i=a.tokenUsage;typeof i.promptTokens=="number"&&(n=i.promptTokens),typeof i.completionTokens=="number"&&(r=i.completionTokens),typeof i.totalTokens=="number"&&(o=i.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}function LS(e,t){const n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){const r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(Jt,r.model_name),r.finish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(on,[r.finish_reason])}}function DS(e){var t,n,r,o,a,i,s,c;if(!((o=(r=(n=(t=e.builder)==null?void 0:t.nodes)==null?void 0:n.tools)==null?void 0:r.runnable)!=null&&o.tools))return null;const u=(c=(s=(i=(a=e.builder)==null?void 0:a.nodes)==null?void 0:i.tools)==null?void 0:s.runnable)==null?void 0:c.tools;return!u||!Array.isArray(u)||u.length===0?null:u.map(p=>{var l,d,h;return{name:(l=p.lc_kwargs)==null?void 0:l.name,description:(d=p.lc_kwargs)==null?void 0:d.description,schema:(h=p.lc_kwargs)==null?void 0:h.schema}})}function jS(e,t,n){const r=n,o=r==null?void 0:r.messages;if(!o||!Array.isArray(o))return;const a=(t==null?void 0:t.length)??0,i=o.length>a?o.slice(a):[];if(i.length===0)return;const s=NS(i);s&&e.setAttribute(Dt,JSON.stringify(s));const c=Gi(i);e.setAttribute(_t,JSON.stringify(c));let u=0,p=0,l=0;for(const d of i){const h=MS(d);u+=h.inputTokens,p+=h.outputTokens,l+=h.totalTokens,LS(e,d)}u>0&&e.setAttribute(Mn,u),p>0&&e.setAttribute(Ln,p),l>0&&e.setAttribute(Dn,l)}function $S(e,t){return new Proxy(e,{apply(n,r,o){return Rt({op:"gen_ai.create_agent",name:"create_agent",attributes:{[Q]:cp,[Se]:"gen_ai.create_agent",[an]:"create_agent"}},a=>{try{const i=Reflect.apply(n,r,o),s=o.length>0?o[0]:{};s!=null&&s.name&&typeof s.name=="string"&&(a.setAttribute(Ml,s.name),a.updateName(`create_agent ${s.name}`));const c=i.invoke;return c&&typeof c=="function"&&(i.invoke=FS(c.bind(i),i,s,t)),i}catch(i){throw a.setStatus({code:Oe,message:"internal_error"}),ge(i,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),i}})}})}function FS(e,t,n,r){return new Proxy(e,{apply(o,a,i){return Rt({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[Q]:cp,[Se]:Jb,[an]:"invoke_agent"}},async s=>{var c;try{const u=n==null?void 0:n.name;u&&typeof u=="string"&&(s.setAttribute(Gb,u),s.setAttribute(Ml,u),s.updateName(`invoke_agent ${u}`));const p=i.length>1?i[1]:void 0,l=p==null?void 0:p.configurable,d=l==null?void 0:l.thread_id;d&&typeof d=="string"&&s.setAttribute($i,d);const h=DS(t);h&&s.setAttribute(Go,JSON.stringify(h));const f=r.recordInputs,m=r.recordOutputs,_=i.length>0?((c=i[0])==null?void 0:c.messages)??[]:[];if(_&&f){const b=Gi(_),{systemInstructions:R,filteredMessages:v}=$r(b);R&&s.setAttribute(Mr,R);const E=Yo(v),S=Array.isArray(v)?v.length:0;s.setAttributes({[or]:JSON.stringify(E),[jn]:S})}const g=await Reflect.apply(o,a,i);return m&&jS(s,_??null,g),g}catch(u){throw s.setStatus({code:Oe,message:"internal_error"}),ge(u,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),u}})}})}function US(e,t){const n=t||{};return e.compile=$S(e.compile.bind(e),n),e}function up(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Xi(e,t){const n="fetch";kr(n,e),Cr(n,()=>lp(void 0,t))}function BS(e){const t="fetch-body-resolved";kr(t,e),Cr(t,()=>lp(qS))}function lp(e,t=!1){t&&!eu()||ft(de,"fetch",function(n){return function(...r){const o=new Error,{method:a,url:i}=WS(r),s={args:r,fetchData:{method:a,url:i},startTimestamp:Ue()*1e3,virtualError:o,headers:zS(r)};return e||xn("fetch",{...s}),n.apply(de,r).then(async c=>(e?e(c):xn("fetch",{...s,endTimestamp:Ue()*1e3,response:c}),c),c=>{xn("fetch",{...s,endTimestamp:Ue()*1e3,error:c}),St(c)&&c.stack===void 0&&(c.stack=o.stack,ht(c,"framesToPop",1));const u=J(),p=(u==null?void 0:u.getOptions().enhanceFetchErrorMessages)??"always";if(p!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const l=new URL(s.fetchData.url).host;p==="always"?c.message=`${c.message} (${l})`:ht(c,"__sentry_fetch_url_host__",l)}catch{}throw c})}})}async function HS(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:s}=await r.read();clearTimeout(i),s&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(i)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function qS(e){let t;try{t=e.clone()}catch{return}HS(t,()=>{xn("fetch-body-resolved",{endTimestamp:Ue()*1e3,response:e})})}function ea(e,t){return!!e&&typeof e=="object"&&!!e[t]}function pp(e){return typeof e=="string"?e:e?ea(e,"url")?e.url:e.toString?e.toString():"":""}function WS(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:pp(n),method:ea(r,"method")?String(r.method).toUpperCase():ri(n)&&ea(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:pp(t),method:ea(t,"method")?String(t.method).toUpperCase():"GET"}}function zS(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(ri(t))return new Headers(t.headers)}catch{}}class GS{constructor(t){this._maxSize=t,this._cache=new Map}get size(){return this._cache.size}get(t){const n=this._cache.get(t);if(n!==void 0)return this._cache.delete(t),this._cache.set(t,n),n}set(t,n){if(this._cache.size>=this._maxSize){const r=this._cache.keys().next().value;this._cache.delete(r)}this._cache.set(t,n)}remove(t){const n=this._cache.get(t);return n&&this._cache.delete(t),n}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const t=[];return this._cache.forEach(n=>t.push(n)),t}}function XS(e){var t;if(typeof EdgeRuntime!="string")return;const n=de[Symbol.for("@vercel/request-context")],r=(t=n==null?void 0:n.get)==null?void 0:t.call(n);r!=null&&r.waitUntil&&r.waitUntil(e)}const Pt=de,Ae=Pt.document,Hr=Pt.navigator,dp="Report a Bug",VS="Cancel",JS="Send Bug Report",KS="Confirm",YS="Report a Bug",QS="your.email@example.org",ZS="Email",e1="What's the bug? What did you expect?",t1="Description",n1="Your Name",r1="Name",o1="Thank you for your report!",a1="(required)",i1="Add a screenshot",s1="Remove screenshot",c1="Highlight",u1="Hide",l1="Remove",p1="widget",d1="api",f1=5e3,fp=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=J();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&ae().setTags(e.tags);const r=Il({source:d1,url:Kn(),...e},t);return new Promise((o,a)=>{const i=setTimeout(()=>a("Unable to determine if Feedback was correctly sent."),3e4),s=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(i),s(),u!=null&&u.statusCode&&u.statusCode>=200&&u.statusCode<300?o(r):(u==null?void 0:u.statusCode)===403?a("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):a("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},ta=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function h1(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Hr.userAgent)||/Macintosh/i.test(Hr.userAgent)&&Hr.maxTouchPoints&&Hr.maxTouchPoints>1||!isSecureContext)}function na(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{var n,r;(n=t.onFormOpen)==null||n.call(t),(r=e.onFormOpen)==null||r.call(e)},onFormClose:()=>{var n,r;(n=t.onFormClose)==null||n.call(t),(r=e.onFormClose)==null||r.call(e)},onSubmitSuccess:(n,r)=>{var o,a;(o=t.onSubmitSuccess)==null||o.call(t,n,r),(a=e.onSubmitSuccess)==null||a.call(e,n,r)},onSubmitError:n=>{var r,o;(r=t.onSubmitError)==null||r.call(t,n),(o=e.onSubmitError)==null||o.call(e,n)},onFormSubmitted:()=>{var n,r;(n=t.onFormSubmitted)==null||n.call(t),(r=e.onFormSubmitted)==null||r.call(e)},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function m1(e){const t=Ae.createElement("style");return t.textContent=`
|
|
13
|
-
.widget__actor {
|
|
14
|
-
position: fixed;
|
|
15
|
-
z-index: var(--z-index);
|
|
16
|
-
margin: var(--page-margin);
|
|
17
|
-
inset: var(--actor-inset);
|
|
18
|
-
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
gap: 8px;
|
|
22
|
-
padding: 16px;
|
|
23
|
-
|
|
24
|
-
font-family: inherit;
|
|
25
|
-
font-size: var(--font-size);
|
|
26
|
-
font-weight: 600;
|
|
27
|
-
line-height: 1.14em;
|
|
28
|
-
text-decoration: none;
|
|
29
|
-
|
|
30
|
-
background: var(--actor-background, var(--background));
|
|
31
|
-
border-radius: var(--actor-border-radius, 1.7em/50%);
|
|
32
|
-
border: var(--actor-border, var(--border));
|
|
33
|
-
box-shadow: var(--actor-box-shadow, var(--box-shadow));
|
|
34
|
-
color: var(--actor-color, var(--foreground));
|
|
35
|
-
fill: var(--actor-color, var(--foreground));
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
opacity: 1;
|
|
38
|
-
transition: transform 0.2s ease-in-out;
|
|
39
|
-
transform: translate(0, 0) scale(1);
|
|
40
|
-
}
|
|
41
|
-
.widget__actor[aria-hidden="true"] {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
pointer-events: none;
|
|
44
|
-
visibility: hidden;
|
|
45
|
-
transform: translate(0, 16px) scale(0.98);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.widget__actor:hover {
|
|
49
|
-
background: var(--actor-hover-background, var(--background));
|
|
50
|
-
filter: var(--interactive-filter);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.widget__actor svg {
|
|
54
|
-
width: 1.14em;
|
|
55
|
-
height: 1.14em;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@media (max-width: 600px) {
|
|
59
|
-
.widget__actor span {
|
|
60
|
-
display: none;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
`,e&&t.setAttribute("nonce",e),t}function pt(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const sr=20,_1="http://www.w3.org/2000/svg";function g1(){const e=s=>Pt.document.createElementNS(_1,s),t=pt(e("svg"),{width:`${sr}`,height:`${sr}`,viewBox:`0 0 ${sr} ${sr}`,fill:"var(--actor-color, var(--foreground))"}),n=pt(e("g"),{clipPath:"url(#clip0_57_80)"}),r=pt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),a=pt(e("clipPath"),{id:"clip0_57_80"}),i=pt(e("rect"),{width:`${sr}`,height:`${sr}`,fill:"white"});return a.appendChild(i),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(i),t}function y1({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=Ae.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||dp,o.appendChild(g1()),e){const i=Ae.createElement("span");i.appendChild(Ae.createTextNode(e)),o.appendChild(i)}const a=m1(r);return{el:o,appendToDom(){n.appendChild(a),n.appendChild(o)},removeFromDom(){o.remove(),a.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const hp="rgba(88, 74, 192, 1)",v1={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:hp,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},mp={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:hp,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function _p(e){return`
|
|
64
|
-
--foreground: ${e.foreground};
|
|
65
|
-
--background: ${e.background};
|
|
66
|
-
--accent-foreground: ${e.accentForeground};
|
|
67
|
-
--accent-background: ${e.accentBackground};
|
|
68
|
-
--success-color: ${e.successColor};
|
|
69
|
-
--error-color: ${e.errorColor};
|
|
70
|
-
--border: ${e.border};
|
|
71
|
-
--box-shadow: ${e.boxShadow};
|
|
72
|
-
--outline: ${e.outline};
|
|
73
|
-
--interactive-filter: ${e.interactiveFilter};
|
|
74
|
-
`}function gp({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=Ae.createElement("style");return o.textContent=`
|
|
75
|
-
:host {
|
|
76
|
-
--font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
|
|
77
|
-
--font-size: 14px;
|
|
78
|
-
--z-index: 100000;
|
|
79
|
-
|
|
80
|
-
--page-margin: 16px;
|
|
81
|
-
--inset: auto 0 0 auto;
|
|
82
|
-
--actor-inset: var(--inset);
|
|
83
|
-
|
|
84
|
-
font-family: var(--font-family);
|
|
85
|
-
font-size: var(--font-size);
|
|
86
|
-
|
|
87
|
-
${e!=="system"?`color-scheme: only ${e};`:""}
|
|
88
|
-
|
|
89
|
-
${_p(e==="dark"?{...mp,...t}:{...v1,...n})}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
${e==="system"?`
|
|
93
|
-
@media (prefers-color-scheme: dark) {
|
|
94
|
-
:host {
|
|
95
|
-
color-scheme: only dark;
|
|
96
|
-
|
|
97
|
-
${_p({...mp,...t})}
|
|
98
|
-
}
|
|
99
|
-
}`:""}
|
|
100
|
-
`,r&&o.setAttribute("nonce",r),o}const yp=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:r="sentry-feedback",autoInject:o=!0,showBranding:a=!0,isEmailRequired:i=!1,isNameRequired:s=!1,showEmail:c=!0,showName:u=!0,enableScreenshot:p=!0,useSentryUser:l={email:"email",name:"username"},tags:d,styleNonce:h,scriptNonce:f,colorScheme:m="system",themeLight:_={},themeDark:g={},addScreenshotButtonLabel:b=i1,cancelButtonLabel:R=VS,confirmButtonLabel:v=KS,emailLabel:E=ZS,emailPlaceholder:S=QS,formTitle:y=YS,isRequiredLabel:P=a1,messageLabel:T=t1,messagePlaceholder:O=e1,nameLabel:N=r1,namePlaceholder:k=n1,removeScreenshotButtonLabel:B=s1,submitButtonLabel:C=JS,successMessageText:j=o1,triggerLabel:F=dp,triggerAriaLabel:z="",highlightToolText:$=c1,hideToolText:D=u1,removeHighlightText:H=l1,onFormOpen:Z,onFormClose:te,onSubmitSuccess:ye,onSubmitError:ie,onFormSubmitted:pe}={})=>{const Pe={id:r,autoInject:o,showBranding:a,isEmailRequired:i,isNameRequired:s,showEmail:c,showName:u,enableScreenshot:p,useSentryUser:l,tags:d,styleNonce:h,scriptNonce:f,colorScheme:m,themeDark:g,themeLight:_,triggerLabel:F,triggerAriaLabel:z,cancelButtonLabel:R,submitButtonLabel:C,confirmButtonLabel:v,formTitle:y,emailLabel:E,emailPlaceholder:S,messageLabel:T,messagePlaceholder:O,nameLabel:N,namePlaceholder:k,successMessageText:j,isRequiredLabel:P,addScreenshotButtonLabel:b,removeScreenshotButtonLabel:B,highlightToolText:$,hideToolText:D,removeHighlightText:H,onFormClose:te,onFormOpen:Z,onSubmitError:ie,onSubmitSuccess:ye,onFormSubmitted:pe};let ve=null,Je=null,nt=[];const xt=fe=>{if(!ve){const Te=Ae.createElement("div");Te.id=String(fe.id),Ae.body.appendChild(Te),ve=Te.attachShadow({mode:"open"}),Je=gp(fe),ve.appendChild(Je)}return ve},Ft=async fe=>{const Te=fe.enableScreenshot&&h1();let we,$e;try{we=(t?t():await e("feedbackModalIntegration",f))(),bi(we)}catch{throw ta&&w.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const ze=Te?n?n():await e("feedbackScreenshotIntegration",f):void 0;ze&&($e=ze(),bi($e))}catch{ta&&w.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const De=we.createDialog({options:{...fe,onFormClose:()=>{var ze;De==null||De.close(),(ze=fe.onFormClose)==null||ze.call(fe)},onFormSubmitted:()=>{var ze;De==null||De.close(),(ze=fe.onFormSubmitted)==null||ze.call(fe)}},screenshotIntegration:$e,sendFeedback:fp,shadow:xt(fe)});return De},Ut=(fe,Te={})=>{const we=na(Pe,Te),$e=typeof fe=="string"?Ae.querySelector(fe):typeof fe.addEventListener=="function"?fe:null;if(!$e)throw ta&&w.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let De=null;const ze=async()=>{De||(De=await Ft({...we,onFormSubmitted:()=>{var I;De==null||De.removeFromDom(),(I=we.onFormSubmitted)==null||I.call(we)}})),De.appendToDom(),De.open()};$e.addEventListener("click",ze);const K=()=>{nt=nt.filter(I=>I!==K),De==null||De.removeFromDom(),De=null,$e.removeEventListener("click",ze)};return nt.push(K),K},It=(fe={})=>{const Te=na(Pe,fe),we=xt(Te),$e=y1({triggerLabel:Te.triggerLabel,triggerAriaLabel:Te.triggerAriaLabel,shadow:we,styleNonce:h});return Ut($e.el,{...Te,onFormOpen(){$e.hide()},onFormClose(){$e.show()},onFormSubmitted(){$e.show()}}),$e};return{name:"Feedback",setupOnce(){!tu()||!Pe.autoInject||(Ae.readyState==="loading"?Ae.addEventListener("DOMContentLoaded",()=>It().appendToDom()):It().appendToDom())},attachTo:Ut,createWidget(fe={}){const Te=It(na(Pe,fe));return Te.appendToDom(),Te},async createForm(fe={}){return Ft(na(Pe,fe))},setTheme(fe){if(Pe.colorScheme=fe,ve){const Te=gp(Pe);Je?ve.replaceChild(Te,Je):ve.prepend(Te),Je=Te}},remove(){var fe;ve&&((fe=ve.parentElement)==null||fe.remove(),ve=null,Je=null),nt.forEach(Te=>Te()),nt=[]}}});function b1(){const e=J();return e==null?void 0:e.getIntegrationByName("Feedback")}var ra,ke,vp,$n,bp,Ep,Vi,qr={},Ji=[],E1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ki=Array.isArray;function sn(e,t){for(var n in t)e[n]=t[n];return e}function Sp(e){var t=e.parentNode;t&&t.removeChild(e)}function le(e,t,n){var r,o,a,i={};for(a in t)a=="key"?r=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?ra.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return oa(e,i,r,o,null)}function oa(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++vp,__i:-1,__u:0};return o==null&&ke.vnode!=null&&ke.vnode(a),a}function Wr(e){return e.children}function aa(e,t){this.props=e,this.context=t}function cr(e,t){if(t==null)return e.__?cr(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?cr(e):null}function S1(e,t,n){var r,o=e.__v,a=o.__e,i=e.__P;if(i)return(r=sn({},o)).__v=o.__v+1,ke.vnode&&ke.vnode(r),Yi(i,r,o,e.__n,i.ownerSVGElement!==void 0,32&o.__u?[a]:null,t,a??cr(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&wp(r),r}function wp(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return wp(e)}}function Rp(e){(!e.__d&&(e.__d=!0)&&$n.push(e)&&!ia.__r++||bp!==ke.debounceRendering)&&((bp=ke.debounceRendering)||Ep)(ia)}function ia(){var e,t,n,r=[],o=[];for($n.sort(Vi);e=$n.shift();)e.__d&&(n=$n.length,t=S1(e,r,o)||t,n===0||$n.length>n?(Qi(r,t,o),o.length=r.length=0,t=void 0,$n.sort(Vi)):t&&ke.__c&&ke.__c(t,Ji));t&&Qi(r,t,o),ia.__r=0}function Pp(e,t,n,r,o,a,i,s,c,u,p){var l,d,h,f,m,_=r&&r.__k||Ji,g=t.length;for(n.__d=c,w1(n,t,_),c=n.__d,l=0;l<g;l++)(h=n.__k[l])!=null&&typeof h!="boolean"&&typeof h!="function"&&(d=h.__i===-1?qr:_[h.__i]||qr,h.__i=l,Yi(e,h,d,o,a,i,s,c,u,p),f=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Zi(d.ref,null,h),p.push(h.ref,h.__c||f,h)),m==null&&f!=null&&(m=f),65536&h.__u||d.__k===h.__k?c=Tp(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:f&&(c=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function w1(e,t,n){var r,o,a,i,s,c=t.length,u=n.length,p=u,l=0;for(e.__k=[],r=0;r<c;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?oa(null,o,null,null,o):Ki(o)?oa(Wr,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?oa(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,s=R1(o,n,i=r+l,p),o.__i=s,a=null,s!==-1&&(p--,(a=n[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):s!==i&&(s===i+1?l++:s>i?p>c-i?l+=s-i:l--:l=s<i&&s==i-1?s-i:0,s!==r+l&&(o.__u|=65536))):(a=n[r])&&a.key==null&&a.__e&&(a.__e==e.__d&&(e.__d=cr(a)),es(a,a,!1),n[r]=null,p--);if(p)for(r=0;r<u;r++)(a=n[r])!=null&&(131072&a.__u)==0&&(a.__e==e.__d&&(e.__d=cr(a)),es(a,a))}function Tp(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Tp(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function R1(e,t,n,r){var o=e.key,a=e.type,i=n-1,s=n+1,c=t[n];if(c===null||c&&o==c.key&&a===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;i>=0||s<t.length;){if(i>=0){if((c=t[i])&&(131072&c.__u)==0&&o==c.key&&a===c.type)return i;i--}if(s<t.length){if((c=t[s])&&(131072&c.__u)==0&&o==c.key&&a===c.type)return s;s++}}return-1}function Op(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||E1.test(t)?n:n+"px"}function sa(e,t,n,r,o){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Op(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Op(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?Ip:xp,a)):e.removeEventListener(t,a?Ip:xp,a);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function xp(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(ke.event?ke.event(e):e)}}function Ip(e){if(this.l)return this.l[e.type+!0](ke.event?ke.event(e):e)}function Yi(e,t,n,r,o,a,i,s,c,u){var p,l,d,h,f,m,_,g,b,R,v,E,S,y,P,T=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(p=ke.__b)&&p(t);e:if(typeof T=="function")try{if(g=t.props,b=(p=T.contextType)&&r[p.__c],R=p?b?b.props.value:p.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:("prototype"in T&&T.prototype.render?t.__c=l=new T(g,R):(t.__c=l=new aa(g,R),l.constructor=T,l.render=T1),b&&b.sub(l),l.props=g,l.state||(l.state={}),l.context=R,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),T.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=sn({},l.__s)),sn(l.__s,T.getDerivedStateFromProps(g,l.__s))),h=l.props,f=l.state,l.__v=t,d)T.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(T.getDerivedStateFromProps==null&&g!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,R),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,R)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(O){O&&(O.__=t)}),v=0;v<l._sb.length;v++)l.__h.push(l._sb[v]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,R),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,f,m)})}if(l.context=R,l.props=g,l.__P=e,l.__e=!1,E=ke.__r,S=0,"prototype"in T&&T.prototype.render){for(l.state=l.__s,l.__d=!1,E&&E(t),p=l.render(l.props,l.state,l.context),y=0;y<l._sb.length;y++)l.__h.push(l._sb[y]);l._sb=[]}else do l.__d=!1,E&&E(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++S<25);l.state=l.__s,l.getChildContext!=null&&(r=sn(sn({},r),l.getChildContext())),d||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(h,f)),Pp(e,Ki(P=p!=null&&p.type===Wr&&p.key==null?p.props.children:p)?P:[P],t,n,r,o,a,i,s,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),_&&(l.__E=l.__=null)}catch(O){t.__v=null,c||a!=null?(t.__e=s,t.__u|=c?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),ke.__e(O,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P1(n.__e,t,n,r,o,a,i,c,u);(p=ke.diffed)&&p(t)}function Qi(e,t,n){for(var r=0;r<n.length;r++)Zi(n[r],n[++r],n[++r]);ke.__c&&ke.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){ke.__e(a,o.__v)}})}function P1(e,t,n,r,o,a,i,s,c){var u,p,l,d,h,f,m,_=n.props,g=t.props,b=t.type;if(b==="svg"&&(o=!0),a!=null){for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!b&&(b?h.localName===b:h.nodeType===3)){e=h,a[u]=null;break}}if(e==null){if(b===null)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,g.is&&g),a=null,s=!1}if(b===null)_===g||s&&e.data===g||(e.data=g);else{if(a=a&&ra.call(e.childNodes),_=n.props||qr,!s&&a!=null)for(_={},u=0;u<e.attributes.length;u++)_[(h=e.attributes[u]).name]=h.value;for(u in _)h=_[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=h:u==="key"||u in g||sa(e,u,null,h,o));for(u in g)h=g[u],u=="children"?d=h:u=="dangerouslySetInnerHTML"?p=h:u=="value"?f=h:u=="checked"?m=h:u==="key"||s&&typeof h!="function"||_[u]===h||sa(e,u,h,_[u],o);if(p)s||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),Pp(e,Ki(d)?d:[d],t,n,r,o&&b!=="foreignObject",a,i,a?a[0]:n.__k&&cr(n,0),s,c),a!=null)for(u=a.length;u--;)a[u]!=null&&Sp(a[u]);s||(u="value",f!==void 0&&(f!==e[u]||b==="progress"&&!f||b==="option"&&f!==_[u])&&sa(e,u,f,_[u],!1),u="checked",m!==void 0&&m!==e[u]&&sa(e,u,m,_[u],!1))}return e}function Zi(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ke.__e(r,n)}}function es(e,t,n){var r,o;if(ke.unmount&&ke.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Zi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){ke.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&es(r[o],t,n||typeof e.type!="function");n||e.__e==null||Sp(e.__e),e.__=e.__e=e.__d=void 0}function T1(e,t,n){return this.constructor(e,n)}function O1(e,t,n){var r,o,a,i;ke.__&&ke.__(e,t),o=(r=!1)?null:t.__k,a=[],i=[],Yi(t,e=t.__k=le(Wr,null,[e]),o||qr,qr,t.ownerSVGElement!==void 0,o?null:t.firstChild?ra.call(t.childNodes):null,a,o?o.__e:t.firstChild,r,i),e.__d=void 0,Qi(a,e,i)}ra=Ji.slice,ke={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(s){e=s}throw e}},vp=0,aa.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=sn({},this.state),typeof e=="function"&&(e=e(sn({},n),this.props)),e&&sn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Rp(this))},aa.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rp(this))},aa.prototype.render=Wr,$n=[],Ep=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vi=function(e,t){return e.__v.__b-t.__v.__b},ia.__r=0;var Yt,Ce,ts,Ap,ur=0,kp=[],ca=[],Le=ke,Cp=Le.__b,Np=Le.__r,Mp=Le.diffed,Lp=Le.__c,Dp=Le.unmount,jp=Le.__;function Fn(e,t){Le.__h&&Le.__h(Ce,e,ur||t),ur=0;var n=Ce.__H||(Ce.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ca}),n.__[e]}function Un(e){return ur=1,$p(Bp,e)}function $p(e,t,n){var r=Fn(Yt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Bp(void 0,t),function(s){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,s);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=Ce,!Ce.u)){var o=function(s,c,u){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(d){return!!d.__c});if(p.every(function(d){return!d.__N}))return!a||a.call(this,s,c,u);var l=!1;return p.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(l=!0)}}),!(!l&&r.__c.props===s)&&(!a||a.call(this,s,c,u))};Ce.u=!0;var a=Ce.shouldComponentUpdate,i=Ce.componentWillUpdate;Ce.componentWillUpdate=function(s,c,u){if(this.__e){var p=a;a=void 0,o(s,c,u),a=p}i&&i.call(this,s,c,u)},Ce.shouldComponentUpdate=o}return r.__N||r.__}function x1(e,t){var n=Fn(Yt++,3);!Le.__s&&rs(n.__H,t)&&(n.__=e,n.i=t,Ce.__H.__h.push(n))}function Fp(e,t){var n=Fn(Yt++,4);!Le.__s&&rs(n.__H,t)&&(n.__=e,n.i=t,Ce.__h.push(n))}function I1(e){return ur=5,zr(function(){return{current:e}},[])}function A1(e,t,n){ur=6,Fp(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function zr(e,t){var n=Fn(Yt++,7);return rs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function lr(e,t){return ur=8,zr(function(){return e},t)}function k1(e){var t=Ce.context[e.__c],n=Fn(Yt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ce)),t.props.value):e.__}function C1(e,t){Le.useDebugValue&&Le.useDebugValue(t?t(e):e)}function N1(e){var t=Fn(Yt++,10),n=Un();return t.__=e,Ce.componentDidCatch||(Ce.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function M1(){var e=Fn(Yt++,11);if(!e.__){for(var t=Ce.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function L1(){for(var e;e=kp.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ua),e.__H.__h.forEach(ns),e.__H.__h=[]}catch(t){e.__H.__h=[],Le.__e(t,e.__v)}}Le.__b=function(e){Ce=null,Cp&&Cp(e)},Le.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),jp&&jp(e,t)},Le.__r=function(e){Np&&Np(e),Yt=0;var t=(Ce=e.__c).__H;t&&(ts===Ce?(t.__h=[],Ce.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ca,n.__N=n.i=void 0})):(t.__h.forEach(ua),t.__h.forEach(ns),t.__h=[],Yt=0)),ts=Ce},Le.diffed=function(e){Mp&&Mp(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kp.push(t)!==1&&Ap===Le.requestAnimationFrame||((Ap=Le.requestAnimationFrame)||D1)(L1)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ca&&(n.__=n.__V),n.i=void 0,n.__V=ca})),ts=Ce=null},Le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ua),n.__h=n.__h.filter(function(r){return!r.__||ns(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Le.__e(r,n.__v)}}),Lp&&Lp(e,t)},Le.unmount=function(e){Dp&&Dp(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ua(r)}catch(o){t=o}}),n.__H=void 0,t&&Le.__e(t,n.__v))};var Up=typeof requestAnimationFrame=="function";function D1(e){var t,n=function(){clearTimeout(r),Up&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Up&&(t=requestAnimationFrame(n))}function ua(e){var t=Ce,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ce=t}function ns(e){var t=Ce;e.__c=e.__(),Ce=t}function rs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Bp(e,t){return typeof t=="function"?t(e):t}const j1=Object.defineProperty({__proto__:null,useCallback:lr,useContext:k1,useDebugValue:C1,useEffect:x1,useErrorBoundary:N1,useId:M1,useImperativeHandle:A1,useLayoutEffect:Fp,useMemo:zr,useReducer:$p,useRef:I1,useState:Un},Symbol.toStringTag,{value:"Module"}),$1="http://www.w3.org/2000/svg";function F1(){const e=r=>Ae.createElementNS($1,r),t=pt(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=pt(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function U1({options:e}){const t=zr(()=>({__html:F1().outerHTML}),[]);return le("h2",{class:"dialog__header"},le("span",{class:"dialog__title"},e.formTitle),e.showBranding?le("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function B1(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function os(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function H1({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:a,onSubmitError:i,showEmail:s,showName:c,screenshotInput:u}){const{tags:p,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:d,cancelButtonLabel:h,emailLabel:f,emailPlaceholder:m,isEmailRequired:_,isNameRequired:g,messageLabel:b,messagePlaceholder:R,nameLabel:v,namePlaceholder:E,submitButtonLabel:S,isRequiredLabel:y}=e,[P,T]=Un(!1),[O,N]=Un(null),[k,B]=Un(!1),C=u==null?void 0:u.input,[j,F]=Un(null),z=lr(H=>{F(H),B(!1)},[]),$=lr(H=>{const Z=B1(H,{emailLabel:f,isEmailRequired:_,isNameRequired:g,messageLabel:b,nameLabel:v});return Z.length>0?N(`Please enter in the following required fields: ${Z.join(", ")}`):N(null),Z.length===0},[f,_,g,b,v]),D=lr(async H=>{T(!0);try{if(H.preventDefault(),!(H.target instanceof HTMLFormElement))return;const Z=new FormData(H.target),te=await(u&&k?u.value():void 0),ye={name:os(Z,"name"),email:os(Z,"email"),message:os(Z,"message"),attachments:te?[te]:void 0};if(!$(ye))return;try{const ie=await o({name:ye.name,email:ye.email,message:ye.message,source:p1,tags:p},{attachments:ye.attachments});a(ye,ie)}catch(ie){ta&&w.error(ie),N(ie),i(ie)}}finally{T(!1)}},[u&&k,a,i]);return le("form",{class:"form",onSubmit:D},C&&k?le(C,{onError:z}):null,le("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:P},le("div",{class:"form__top"},O?le("div",{class:"form__error-container"},O):null,c?le("label",{for:"name",class:"form__label"},le(as,{label:v,isRequiredLabel:y,isRequired:g}),le("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:E,required:g,type:"text"})):le("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),s?le("label",{for:"email",class:"form__label"},le(as,{label:f,isRequiredLabel:y,isRequired:_}),le("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:_,type:"email"})):le("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),le("label",{for:"message",class:"form__label"},le(as,{label:b,isRequiredLabel:y,isRequired:!0}),le("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:R,required:!0,rows:5})),C?le("label",{for:"screenshot",class:"form__label"},le("button",{class:"btn btn--default",disabled:P,type:"button",onClick:()=>{F(null),B(H=>!H)}},k?d:l),j?le("div",{class:"form__error-container"},j.message):null):null),le("div",{class:"btn-group"},le("button",{class:"btn btn--primary",disabled:P,type:"submit"},S),le("button",{class:"btn btn--default",disabled:P,type:"button",onClick:r},h))))}function as({label:e,isRequired:t,isRequiredLabel:n}){return le("span",{class:"form__label__text"},e,t&&le("span",{class:"form__label__text--required"},n))}const la=16,Hp=17,q1="http://www.w3.org/2000/svg";function W1(){const e=c=>Pt.document.createElementNS(q1,c),t=pt(e("svg"),{width:`${la}`,height:`${Hp}`,viewBox:`0 0 ${la} ${Hp}`,fill:"inherit"}),n=pt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=pt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=pt(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const a=e("defs"),i=pt(e("clipPath"),{id:"clip0_57_156"}),s=pt(e("rect"),{width:`${la}`,height:`${la}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(s),a.appendChild(i),t.appendChild(a).appendChild(i).appendChild(s),t}function z1({open:e,onFormSubmitted:t,...n}){const r=n.options,o=zr(()=>({__html:W1().outerHTML}),[]),[a,i]=Un(null),s=lr(()=>{a&&(clearTimeout(a),i(null)),t()},[a]),c=lr((u,p)=>{n.onSubmitSuccess(u,p),i(setTimeout(()=>{t(),i(null)},f1))},[t]);return le(Wr,null,a?le("div",{class:"success__position",onClick:s},le("div",{class:"success__content"},r.successMessageText,le("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):le("dialog",{class:"dialog",onClick:r.onFormClose,open:e},le("div",{class:"dialog__position"},le("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},le(U1,{options:r}),le(H1,{...n,onSubmitSuccess:c})))))}const G1=`
|
|
101
|
-
.dialog {
|
|
102
|
-
position: fixed;
|
|
103
|
-
z-index: var(--z-index);
|
|
104
|
-
margin: 0;
|
|
105
|
-
inset: 0;
|
|
106
|
-
|
|
107
|
-
display: flex;
|
|
108
|
-
align-items: center;
|
|
109
|
-
justify-content: center;
|
|
110
|
-
padding: 0;
|
|
111
|
-
height: 100vh;
|
|
112
|
-
width: 100vw;
|
|
113
|
-
|
|
114
|
-
color: var(--dialog-color, var(--foreground));
|
|
115
|
-
fill: var(--dialog-color, var(--foreground));
|
|
116
|
-
line-height: 1.75em;
|
|
117
|
-
|
|
118
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
119
|
-
border: none;
|
|
120
|
-
inset: 0;
|
|
121
|
-
opacity: 1;
|
|
122
|
-
transition: opacity 0.2s ease-in-out;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.dialog__position {
|
|
126
|
-
position: fixed;
|
|
127
|
-
z-index: var(--z-index);
|
|
128
|
-
inset: var(--dialog-inset);
|
|
129
|
-
padding: var(--page-margin);
|
|
130
|
-
display: flex;
|
|
131
|
-
max-height: calc(100vh - (2 * var(--page-margin)));
|
|
132
|
-
}
|
|
133
|
-
@media (max-width: 600px) {
|
|
134
|
-
.dialog__position {
|
|
135
|
-
inset: var(--page-margin);
|
|
136
|
-
padding: 0;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.dialog__position:has(.editor) {
|
|
141
|
-
inset: var(--page-margin);
|
|
142
|
-
padding: 0;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.dialog:not([open]) {
|
|
146
|
-
opacity: 0;
|
|
147
|
-
pointer-events: none;
|
|
148
|
-
visibility: hidden;
|
|
149
|
-
}
|
|
150
|
-
.dialog:not([open]) .dialog__content {
|
|
151
|
-
transform: translate(0, -16px) scale(0.98);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.dialog__content {
|
|
155
|
-
display: flex;
|
|
156
|
-
flex-direction: column;
|
|
157
|
-
gap: 16px;
|
|
158
|
-
padding: var(--dialog-padding, 24px);
|
|
159
|
-
max-width: 100%;
|
|
160
|
-
width: 100%;
|
|
161
|
-
max-height: 100%;
|
|
162
|
-
overflow: auto;
|
|
163
|
-
|
|
164
|
-
background: var(--dialog-background, var(--background));
|
|
165
|
-
border-radius: var(--dialog-border-radius, 20px);
|
|
166
|
-
border: var(--dialog-border, var(--border));
|
|
167
|
-
box-shadow: var(--dialog-box-shadow, var(--box-shadow));
|
|
168
|
-
transform: translate(0, 0) scale(1);
|
|
169
|
-
transition: transform 0.2s ease-in-out;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
`,X1=`
|
|
173
|
-
.dialog__header {
|
|
174
|
-
display: flex;
|
|
175
|
-
gap: 4px;
|
|
176
|
-
justify-content: space-between;
|
|
177
|
-
font-weight: var(--dialog-header-weight, 600);
|
|
178
|
-
margin: 0;
|
|
179
|
-
}
|
|
180
|
-
.dialog__title {
|
|
181
|
-
align-self: center;
|
|
182
|
-
width: var(--form-width, 272px);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@media (max-width: 600px) {
|
|
186
|
-
.dialog__title {
|
|
187
|
-
width: auto;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.dialog__position:has(.editor) .dialog__title {
|
|
192
|
-
width: auto;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
.brand-link {
|
|
197
|
-
display: inline-flex;
|
|
198
|
-
}
|
|
199
|
-
.brand-link:focus-visible {
|
|
200
|
-
outline: var(--outline);
|
|
201
|
-
}
|
|
202
|
-
`,V1=`
|
|
203
|
-
.form {
|
|
204
|
-
display: flex;
|
|
205
|
-
overflow: auto;
|
|
206
|
-
flex-direction: row;
|
|
207
|
-
gap: 16px;
|
|
208
|
-
flex: 1 0;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.form fieldset {
|
|
212
|
-
border: none;
|
|
213
|
-
margin: 0;
|
|
214
|
-
padding: 0;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.form__right {
|
|
218
|
-
flex: 0 0 auto;
|
|
219
|
-
display: flex;
|
|
220
|
-
overflow: auto;
|
|
221
|
-
flex-direction: column;
|
|
222
|
-
justify-content: space-between;
|
|
223
|
-
gap: 20px;
|
|
224
|
-
width: var(--form-width, 100%);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.dialog__position:has(.editor) .form__right {
|
|
228
|
-
width: var(--form-width, 272px);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.form__top {
|
|
232
|
-
display: flex;
|
|
233
|
-
flex-direction: column;
|
|
234
|
-
gap: 8px;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.form__error-container {
|
|
238
|
-
color: var(--error-color);
|
|
239
|
-
fill: var(--error-color);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.form__label {
|
|
243
|
-
display: flex;
|
|
244
|
-
flex-direction: column;
|
|
245
|
-
gap: 4px;
|
|
246
|
-
margin: 0px;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.form__label__text {
|
|
250
|
-
display: flex;
|
|
251
|
-
gap: 4px;
|
|
252
|
-
align-items: center;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.form__label__text--required {
|
|
256
|
-
font-size: 0.85em;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.form__input {
|
|
260
|
-
font-family: inherit;
|
|
261
|
-
line-height: inherit;
|
|
262
|
-
background: transparent;
|
|
263
|
-
box-sizing: border-box;
|
|
264
|
-
border: var(--input-border, var(--border));
|
|
265
|
-
border-radius: var(--input-border-radius, 6px);
|
|
266
|
-
color: var(--input-color, inherit);
|
|
267
|
-
fill: var(--input-color, inherit);
|
|
268
|
-
font-size: var(--input-font-size, inherit);
|
|
269
|
-
font-weight: var(--input-font-weight, 500);
|
|
270
|
-
padding: 6px 12px;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.form__input::placeholder {
|
|
274
|
-
opacity: 0.65;
|
|
275
|
-
color: var(--input-placeholder-color, inherit);
|
|
276
|
-
filter: var(--interactive-filter);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.form__input:focus-visible {
|
|
280
|
-
outline: var(--input-focus-outline, var(--outline));
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.form__input--textarea {
|
|
284
|
-
font-family: inherit;
|
|
285
|
-
resize: vertical;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.error {
|
|
289
|
-
color: var(--error-color);
|
|
290
|
-
fill: var(--error-color);
|
|
291
|
-
}
|
|
292
|
-
`,J1=`
|
|
293
|
-
.btn-group {
|
|
294
|
-
display: grid;
|
|
295
|
-
gap: 8px;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.btn {
|
|
299
|
-
line-height: inherit;
|
|
300
|
-
border: var(--button-border, var(--border));
|
|
301
|
-
border-radius: var(--button-border-radius, 6px);
|
|
302
|
-
cursor: pointer;
|
|
303
|
-
font-family: inherit;
|
|
304
|
-
font-size: var(--button-font-size, inherit);
|
|
305
|
-
font-weight: var(--button-font-weight, 600);
|
|
306
|
-
padding: var(--button-padding, 6px 16px);
|
|
307
|
-
}
|
|
308
|
-
.btn[disabled] {
|
|
309
|
-
opacity: 0.6;
|
|
310
|
-
pointer-events: none;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.btn--primary {
|
|
314
|
-
color: var(--button-primary-color, var(--accent-foreground));
|
|
315
|
-
fill: var(--button-primary-color, var(--accent-foreground));
|
|
316
|
-
background: var(--button-primary-background, var(--accent-background));
|
|
317
|
-
border: var(--button-primary-border, var(--border));
|
|
318
|
-
border-radius: var(--button-primary-border-radius, 6px);
|
|
319
|
-
font-weight: var(--button-primary-font-weight, 500);
|
|
320
|
-
}
|
|
321
|
-
.btn--primary:hover {
|
|
322
|
-
color: var(--button-primary-hover-color, var(--accent-foreground));
|
|
323
|
-
fill: var(--button-primary-hover-color, var(--accent-foreground));
|
|
324
|
-
background: var(--button-primary-hover-background, var(--accent-background));
|
|
325
|
-
filter: var(--interactive-filter);
|
|
326
|
-
}
|
|
327
|
-
.btn--primary:focus-visible {
|
|
328
|
-
background: var(--button-primary-hover-background, var(--accent-background));
|
|
329
|
-
filter: var(--interactive-filter);
|
|
330
|
-
outline: var(--button-primary-focus-outline, var(--outline));
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.btn--default {
|
|
334
|
-
color: var(--button-color, var(--foreground));
|
|
335
|
-
fill: var(--button-color, var(--foreground));
|
|
336
|
-
background: var(--button-background, var(--background));
|
|
337
|
-
border: var(--button-border, var(--border));
|
|
338
|
-
border-radius: var(--button-border-radius, 6px);
|
|
339
|
-
font-weight: var(--button-font-weight, 500);
|
|
340
|
-
}
|
|
341
|
-
.btn--default:hover {
|
|
342
|
-
color: var(--button-color, var(--foreground));
|
|
343
|
-
fill: var(--button-color, var(--foreground));
|
|
344
|
-
background: var(--button-hover-background, var(--background));
|
|
345
|
-
filter: var(--interactive-filter);
|
|
346
|
-
}
|
|
347
|
-
.btn--default:focus-visible {
|
|
348
|
-
background: var(--button-hover-background, var(--background));
|
|
349
|
-
filter: var(--interactive-filter);
|
|
350
|
-
outline: var(--button-focus-outline, var(--outline));
|
|
351
|
-
}
|
|
352
|
-
`,K1=`
|
|
353
|
-
.success__position {
|
|
354
|
-
position: fixed;
|
|
355
|
-
inset: var(--dialog-inset);
|
|
356
|
-
padding: var(--page-margin);
|
|
357
|
-
z-index: var(--z-index);
|
|
358
|
-
}
|
|
359
|
-
.success__content {
|
|
360
|
-
background: var(--success-background, var(--background));
|
|
361
|
-
border: var(--success-border, var(--border));
|
|
362
|
-
border-radius: var(--success-border-radius, 1.7em/50%);
|
|
363
|
-
box-shadow: var(--success-box-shadow, var(--box-shadow));
|
|
364
|
-
font-weight: var(--success-font-weight, 600);
|
|
365
|
-
color: var(--success-color);
|
|
366
|
-
fill: var(--success-color);
|
|
367
|
-
padding: 12px 24px;
|
|
368
|
-
line-height: 1.75em;
|
|
369
|
-
|
|
370
|
-
display: grid;
|
|
371
|
-
align-items: center;
|
|
372
|
-
grid-auto-flow: column;
|
|
373
|
-
gap: 6px;
|
|
374
|
-
cursor: default;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.success__icon {
|
|
378
|
-
display: flex;
|
|
379
|
-
}
|
|
380
|
-
`;function Y1(e){const t=Ae.createElement("style");return t.textContent=`
|
|
381
|
-
:host {
|
|
382
|
-
--dialog-inset: var(--inset);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
${G1}
|
|
386
|
-
${X1}
|
|
387
|
-
${V1}
|
|
388
|
-
${J1}
|
|
389
|
-
${K1}
|
|
390
|
-
`,e&&t.setAttribute("nonce",e),t}function Q1(){const e=ae().getUser(),t=Ze().getUser(),n=Tn().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const Z1=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,a=e.useSentryUser,i=Q1(),s=Ae.createElement("div"),c=Y1(e.styleNonce);let u="";const p={get el(){return s},appendToDom(){!o.contains(c)&&!o.contains(s)&&(o.appendChild(c),o.appendChild(s))},removeFromDom(){s.remove(),c.remove(),Ae.body.style.overflow=u},open(){var h,f;d(!0),(h=e.onFormOpen)==null||h.call(e),(f=J())==null||f.emit("openFeedbackWidget"),u=Ae.body.style.overflow,Ae.body.style.overflow="hidden"},close(){d(!1),Ae.body.style.overflow=u}},l=t==null?void 0:t.createInput({h:le,hooks:j1,dialog:p,options:e}),d=h=>{O1(le(z1,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(a&&(i==null?void 0:i[a.name])||""),defaultEmail:String(a&&(i==null?void 0:i[a.email])||""),onFormClose:()=>{var f;d(!1),(f=e.onFormClose)==null||f.call(e)},onSubmit:n,onSubmitSuccess:(f,m)=>{var _;d(!1),(_=e.onSubmitSuccess)==null||_.call(e,f,m)},onSubmitError:f=>{var m;(m=e.onSubmitError)==null||m.call(e,f)},onFormSubmitted:()=>{var f;(f=e.onFormSubmitted)==null||f.call(e)},open:h}),s)};return p}}));function ew({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function tw(e){const t=Ae.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
|
|
391
|
-
.editor {
|
|
392
|
-
display: flex;
|
|
393
|
-
flex-grow: 1;
|
|
394
|
-
flex-direction: column;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.editor__image-container {
|
|
398
|
-
justify-items: center;
|
|
399
|
-
padding: 15px;
|
|
400
|
-
position: relative;
|
|
401
|
-
height: 100%;
|
|
402
|
-
border-radius: var(--menu-border-radius, 6px);
|
|
403
|
-
|
|
404
|
-
background-color: ${n};
|
|
405
|
-
background-image: repeating-linear-gradient(
|
|
406
|
-
-145deg,
|
|
407
|
-
transparent,
|
|
408
|
-
transparent 8px,
|
|
409
|
-
${n} 8px,
|
|
410
|
-
${n} 11px
|
|
411
|
-
),
|
|
412
|
-
repeating-linear-gradient(
|
|
413
|
-
-45deg,
|
|
414
|
-
transparent,
|
|
415
|
-
transparent 15px,
|
|
416
|
-
${r} 15px,
|
|
417
|
-
${r} 16px
|
|
418
|
-
);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.editor__canvas-container {
|
|
422
|
-
width: 100%;
|
|
423
|
-
height: 100%;
|
|
424
|
-
position: relative;
|
|
425
|
-
display: flex;
|
|
426
|
-
align-items: center;
|
|
427
|
-
justify-content: center;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.editor__canvas-container > * {
|
|
431
|
-
object-fit: contain;
|
|
432
|
-
position: absolute;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.editor__tool-container {
|
|
436
|
-
padding-top: 8px;
|
|
437
|
-
display: flex;
|
|
438
|
-
justify-content: center;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
.editor__tool-bar {
|
|
442
|
-
display: flex;
|
|
443
|
-
gap: 8px;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.editor__tool {
|
|
447
|
-
display: flex;
|
|
448
|
-
padding: 8px 12px;
|
|
449
|
-
justify-content: center;
|
|
450
|
-
align-items: center;
|
|
451
|
-
border: var(--button-border, var(--border));
|
|
452
|
-
border-radius: var(--button-border-radius, 6px);
|
|
453
|
-
background: var(--button-background, var(--background));
|
|
454
|
-
color: var(--button-color, var(--foreground));
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.editor__tool--active {
|
|
458
|
-
background: var(--button-primary-background, var(--accent-background));
|
|
459
|
-
color: var(--button-primary-color, var(--accent-foreground));
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.editor__rect {
|
|
463
|
-
position: absolute;
|
|
464
|
-
z-index: 2;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.editor__rect button {
|
|
468
|
-
opacity: 0;
|
|
469
|
-
position: absolute;
|
|
470
|
-
top: -12px;
|
|
471
|
-
right: -12px;
|
|
472
|
-
cursor: pointer;
|
|
473
|
-
padding: 0;
|
|
474
|
-
z-index: 3;
|
|
475
|
-
border: none;
|
|
476
|
-
background: none;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.editor__rect:hover button {
|
|
480
|
-
opacity: 1;
|
|
481
|
-
}
|
|
482
|
-
`,e&&t.setAttribute("nonce",e),t}function nw({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${t==="highlight"?"editor__tool--active":""}`,onClick:()=>{n(t==="highlight"?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:`editor__tool ${t==="hide"?"editor__tool--active":""}`,onClick:()=>{n(t==="hide"?"":"hide")}},r.hideToolText)))}}function rw({hooks:e}){function t(){const[n,r]=e.useState(Pt.devicePixelRatio??1);return e.useEffect(()=>{const o=()=>{r(Pt.devicePixelRatio)},a=matchMedia(`(resolution: ${Pt.devicePixelRatio}dppx)`);return a.addEventListener("change",o),()=>{a.removeEventListener("change",o)}},[]),n}return function({onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:o,onError:a}){const i=t();e.useEffect(()=>{(async()=>{n();const s=await Hr.mediaDevices.getDisplayMedia({video:{width:Pt.innerWidth*i,height:Pt.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),c=Ae.createElement("video");await new Promise((u,p)=>{c.srcObject=s,c.onloadedmetadata=()=>{r(c,i),s.getTracks().forEach(l=>l.stop()),u()},c.play().catch(p)}),o()})().catch(a)},[])}}function ow(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function cn(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function is(e,t){cn(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function ss(e,t,n){cn(e,{alpha:!0},(r,o)=>{n.length&&(o.fillStyle="rgba(0, 0, 0, 0.25)",o.fillRect(0,0,r.width,r.height)),n.forEach(a=>{ow(a,o,t)})})}function aw({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){const a=rw({hooks:t}),i=nw({h:e}),s=ew({h:e}),c={__html:tw(o.styleNonce).innerText},u=r.el.style,p=({screenshot:l})=>{const[d,h]=t.useState("highlight"),[f,m]=t.useState([]),_=t.useRef(null),g=t.useRef(null),b=t.useRef(null),R=t.useRef(null),[v,E]=t.useState(1),S=t.useMemo(()=>{const k=Ae.getElementById(o.id);if(!k)return"white";const B=getComputedStyle(k);return B.getPropertyValue("--button-primary-background")||B.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{const k=()=>{const B=_.current;B&&(cn(l.canvas,{alpha:!1},C=>{const j=Math.min(B.clientWidth/C.width,B.clientHeight/C.height);E(j)}),(B.clientHeight===0||B.clientWidth===0)&&setTimeout(k,0))};return k(),Pt.addEventListener("resize",k),()=>{Pt.removeEventListener("resize",k)}},[l]);const y=t.useCallback((k,B)=>{cn(k,{alpha:!0},(C,j)=>{j.scale(B,B),C.width=l.canvas.width,C.height=l.canvas.height})},[l]);t.useEffect(()=>{y(g.current,l.dpi),is(g.current,l.canvas)},[l]),t.useEffect(()=>{y(b.current,l.dpi),cn(b.current,{alpha:!0},(k,B)=>{B.clearRect(0,0,k.width,k.height)}),ss(b.current,S,f)},[f,S]),t.useEffect(()=>{y(n,l.dpi),is(n,l.canvas),cn(Ae.createElement("canvas"),{alpha:!0},(k,B)=>{B.scale(l.dpi,l.dpi),k.width=l.canvas.width,k.height=l.canvas.height,ss(k,S,f),is(n,k)})},[f,l,S]);const P=k=>{if(!d||!R.current)return;const B=R.current.getBoundingClientRect(),C={type:d,x:k.offsetX/v,y:k.offsetY/v},j=($,D)=>{const H=(D.clientX-B.x)/v,Z=(D.clientY-B.y)/v;return{type:$.type,x:Math.min($.x,H),y:Math.min($.y,Z),w:Math.abs(H-$.x),h:Math.abs(Z-$.y)}},F=$=>{cn(b.current,{alpha:!0},(D,H)=>{H.clearRect(0,0,D.width,D.height)}),ss(b.current,S,[...f,j(C,$)])},z=$=>{const D=j(C,$);D.w*v>=1&&D.h*v>=1&&m(H=>[...H,D]),Ae.removeEventListener("mousemove",F),Ae.removeEventListener("mouseup",z)};Ae.addEventListener("mousemove",F),Ae.addEventListener("mouseup",z)},T=t.useCallback(k=>B=>{B.preventDefault(),B.stopPropagation(),m(C=>{const j=[...C];return j.splice(k,1),j})},[]),O={width:`${l.canvas.width*v}px`,height:`${l.canvas.height*v}px`},N=k=>{k.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:_},e("canvas",{ref:g,id:"background",style:O}),e("canvas",{ref:b,id:"foreground",style:O}),e("div",{ref:R,onMouseDown:P,style:O},f.map((k,B)=>e("div",{key:B,class:"editor__rect",style:{top:`${k.y*v}px`,left:`${k.x*v}px`,width:`${k.w*v}px`,height:`${k.h*v}px`}},e("button",{"aria-label":o.removeHighlightText,onClick:T(B),onMouseDown:N,onMouseUp:N,type:"button"},e(s,null))))))),e(i,{options:o,action:d,setAction:h}))};return function({onError:l}){const[d,h]=t.useState();return a({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((f,m)=>{cn(Ae.createElement("canvas"),{alpha:!1},(_,g)=>{g.scale(m,m),_.width=f.videoWidth,_.height=f.videoHeight,g.drawImage(f,0,0,_.width,_.height),h({canvas:_,dpi:m})}),n.width=f.videoWidth,n.height=f.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(f=>{u.display="block",l(f)},[])}),d?e(p,{screenshot:d}):e("div",null)}}const iw=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=Ae.createElement("canvas");return{input:aw({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const a=await new Promise(i=>{o.toBlob(i,"image/png")});if(a)return{data:new Uint8Array(await a.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),L=de;let cs=0;function qp(){return cs>0}function sw(){cs++,setTimeout(()=>{cs--})}function pr(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(ei(e))return e}catch{return e}const r=function(...o){try{const a=o.map(i=>pr(i,t));return e.apply(this,a)}catch(a){throw sw(),Ye(i=>{i.addEventProcessor(s=>(t.mechanism&&(oi(s,void 0),nn(s,t.mechanism)),s.extra={...s.extra,arguments:o},s)),ge(a)}),a}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}zg(r,e),ht(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function us(){const e=Kn(),{referrer:t}=L.document||{},{userAgent:n}=L.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const cw={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"},Wp=L;async function zp(e,t){const n=cw[e],r=Wp.Sentry=Wp.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const o=r[e];if(typeof o=="function"&&!("_isShim"in o))return o;const a=uw(n),i=L.document.createElement("script");i.src=a,i.crossOrigin="anonymous",i.referrerPolicy="strict-origin",t&&i.setAttribute("nonce",t);const s=new Promise((l,d)=>{i.addEventListener("load",()=>l()),i.addEventListener("error",d)}),c=L.document.currentScript,u=L.document.body||L.document.head||(c==null?void 0:c.parentElement);if(u)u.appendChild(i);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch{throw new Error(`Error when loading integration: ${e}`)}const p=r[e];if(typeof p!="function")throw new Error(`Could not load integration: ${e}`);return p}function uw(e){var t;const n=J(),r=((t=n==null?void 0:n.getOptions())==null?void 0:t.cdnBaseUrl)||"https://browser.sentry-cdn.com";return new URL(`/${ho}/${e}.min.js`,r).toString()}const lw=yp({lazyLoadIntegration:zp}),Gp=yp({getModalIntegration:()=>Z1,getScreenshotIntegration:()=>iw});function pa(e,t){const n=ps(e,t),r={type:mw(t),value:_w(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function pw(e,t,n,r){const o=J(),a=o==null?void 0:o.getOptions().normalizeDepth,i=vw(t),s={__serialized__:Xg(t,a)};if(i)return{exception:{values:[pa(e,i)]},extra:s};const c={exception:{values:[{type:ai(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:gw(t,{isUnhandledRejection:r})}]},extra:s};if(n){const u=ps(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function ls(e,t){return{exception:{values:[pa(e,t)]}}}function ps(e,t){const n=t.stacktrace||t.stack||"",r=fw(t),o=hw(t);try{return e(n,r,o)}catch{}return[]}const dw=/Minified React error #\d+;/i;function fw(e){return e&&dw.test(e.message)?1:0}function hw(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Xp(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function mw(e){const t=e==null?void 0:e.name;return!t&&Xp(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function _w(e){const t=e==null?void 0:e.message;return Xp(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Ju(t.error):Ju(e):"No error message"}function Vp(e,t,n,r){const o=(n==null?void 0:n.syntheticException)||void 0,a=da(e,t,o,r);return nn(a),a.level="error",n!=null&&n.event_id&&(a.event_id=n.event_id),Qa(a)}function Jp(e,t,n="info",r,o){const a=(r==null?void 0:r.syntheticException)||void 0,i=ds(e,t,a,o);return i.level=n,r!=null&&r.event_id&&(i.event_id=r.event_id),Qa(i)}function da(e,t,n,r,o){let a;if(Wc(t)&&t.error)return ls(e,t.error);if(zc(t)||Gg(t)){const i=t;if("stack"in t)a=ls(e,t);else{const s=i.name||(zc(i)?"DOMError":"DOMException"),c=i.message?`${s}: ${i.message}`:s;a=ds(e,c,n,r),oi(a,c)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return St(t)?ls(e,t):dt(t)||ai(t)?(a=pw(e,t,n,o),nn(a,{synthetic:!0}),a):(a=ds(e,t,n,r),oi(a,`${t}`),nn(a,{synthetic:!0}),a)}function ds(e,t,n,r){const o={};if(r&&n){const a=ps(e,n);a.length&&(o.exception={values:[{value:t,stacktrace:{frames:a}}]}),nn(o,{synthetic:!0})}if(Ya(t)){const{__sentry_template_string__:a,__sentry_template_values__:i}=t;return o.logentry={message:a,params:i},o}return o.message=t,o}function gw(e,{isUnhandledRejection:t}){const n=Vg(e),r=t?"promise rejection":"exception";return Wc(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ai(e)?`Event \`${yw(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function yw(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function vw(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class Kp extends Mv{constructor(t){var n;const r=bw(t),o=L.SENTRY_SDK_SOURCE||Ty();ki(r,"browser",["browser"],o),(n=r._metadata)!=null&&n.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);const{sendDefaultPii:a,sendClientReports:i,enableLogs:s,_experiments:c,enableMetrics:u}=this._options,p=u??(c==null?void 0:c.enableMetrics)??!0;L.document&&(i||s||p)&&L.document.addEventListener("visibilitychange",()=>{L.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),s&&ko(this),p&&Si(this))}),a&&this.on("beforeSendSession",Xv)}eventFromException(t,n){return Vp(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Jp(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}}function bw(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=L.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Ew=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=zt.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};nu("visibilitychange",t,{capture:!0,once:!0}),nu("pagehide",t,{capture:!0,once:!0})};function fs(e){return typeof e=="number"&&isFinite(e)}function un(e,t,n,{...r}){const o=Y(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),An(e,()=>{const a=mt({startTime:t,...r});return a&&a.end(n),a})}function hs(e){var t;const n=J();if(!n)return;const{name:r,transaction:o,attributes:a,startTime:i}=e,{release:s,environment:c,sendDefaultPii:u}=n.getOptions(),p=n.getIntegrationByName("Replay"),l=p==null?void 0:p.getReplayId(),d=ae(),h=d.getUser(),f=h!==void 0?h.email||h.id||h.ip_address:void 0;let m;try{m=d.getScopeData().contexts.profile.profile_id}catch{}const _={release:s,environment:c,user:f||void 0,profile_id:m||void 0,replay_id:l||void 0,transaction:o,"user_agent.original":(t=zt.navigator)==null?void 0:t.userAgent,"client.address":u?"{{auto}}":void 0,...a};return mt({name:r,attributes:_,startTime:i,experimental:{standalone:!0}})}function Gr(){return zt.addEventListener&&zt.performance}function je(e){return e/1e3}function Sw(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function Yp(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Qp(e,t){let n,r=!1;function o(s){!r&&n&&t(s,n),r=!0}Ew(()=>{o("pagehide")});const a=e.on("beforeStartNavigationSpan",(s,c)=>{c!=null&&c.isRedirect||(o("navigation"),a(),i())}),i=e.on("afterStartPageLoadSpan",s=>{n=s.spanContext().spanId,i()})}function ww(e){let t=0,n;if(!Yp("layout-shift"))return;const r=ru(({metric:o})=>{const a=o.entries[o.entries.length-1];a&&(t=o.value,n=a)},!0);Qp(e,(o,a)=>{Rw(t,n,a,o),r()})}function Rw(e,t,n,r){var o;ou&&w.log(`Sending CLS span (${e})`);const a=t?je((Qe()||0)+t.startTime):Ue(),i=ae().getScopeData().transactionName,s=t?wt((o=t.sources[0])==null?void 0:o.node):"Layout shift",c={[Q]:"auto.http.browser.cls",[Se]:"ui.webvital.cls",[Vn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((p,l)=>{c[`cls.source.${l+1}`]=wt(p.node)});const u=hs({name:s,transaction:i,attributes:c,startTime:a});u&&(u.addEvent("cls",{[Pr]:"",[Tr]:e}),u.end(a))}function Pw(e){let t=0,n;if(!Yp("largest-contentful-paint"))return;const r=au(({metric:o})=>{const a=o.entries[o.entries.length-1];a&&(t=o.value,n=a)},!0);Qp(e,(o,a)=>{Tw(t,n,a,o),r()})}function Tw(e,t,n,r){ou&&w.log(`Sending LCP span (${e})`);const o=je((Qe()||0)+((t==null?void 0:t.startTime)||0)),a=ae().getScopeData().transactionName,i=t?wt(t.element):"Largest contentful paint",s={[Q]:"auto.http.browser.lcp",[Se]:"ui.webvital.lcp",[Vn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s["lcp.element"]=wt(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),t.loadTime!=null&&(s["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(s["lcp.renderTime"]=t.renderTime),t.size!=null&&(s["lcp.size"]=t.size));const c=hs({name:i,transaction:a,attributes:s,startTime:o});c&&(c.addEvent("lcp",{[Pr]:"millisecond",[Tr]:e}),c.end(o))}function yt(e){return e&&((Qe()||performance.timeOrigin)+e)/1e3}function Zp(e){var t;const n={};if(e.nextHopProtocol!=null){const{name:r,version:o}=Sw(e.nextHopProtocol);n["network.protocol.version"]=o,n["network.protocol.name"]=r}return Qe()||(t=Gr())!=null&&t.timeOrigin?Ow({...n,"http.request.redirect_start":yt(e.redirectStart),"http.request.redirect_end":yt(e.redirectEnd),"http.request.worker_start":yt(e.workerStart),"http.request.fetch_start":yt(e.fetchStart),"http.request.domain_lookup_start":yt(e.domainLookupStart),"http.request.domain_lookup_end":yt(e.domainLookupEnd),"http.request.connect_start":yt(e.connectStart),"http.request.secure_connection_start":yt(e.secureConnectionStart),"http.request.connection_end":yt(e.connectEnd),"http.request.request_start":yt(e.requestStart),"http.request.response_start":yt(e.responseStart),"http.request.response_end":yt(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):n}function Ow(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const xw=2147483647;let ed=0,Tt={},it,Xr;function Iw({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Gr();if(r&&Qe()){r.mark&&zt.performance.mark("sentry-tracing-init");const o=t?Pw(n):Mw(),a=Lw(),i=e?ww(n):Nw();return()=>{o==null||o(),a(),i==null||i()}}return()=>{}}function Aw(){tr("longtask",({entries:e})=>{const t=Ie();if(!t)return;const{op:n,start_timestamp:r}=Y(t);for(const o of e){const a=je(Qe()+o.startTime),i=je(o.duration);n==="navigation"&&r&&a<r||un(t,a,a+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Q]:"auto.ui.browser.metrics"}})}})}function kw(){new PerformanceObserver(e=>{const t=Ie();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const r=je(Qe()+n.startTime),{start_timestamp:o,op:a}=Y(t);if(a==="navigation"&&o&&r<o)continue;const i=je(n.duration),s={[Q]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:u,invokerType:p,sourceURL:l,sourceFunctionName:d,sourceCharPosition:h}=c;s["browser.script.invoker"]=u,s["browser.script.invoker_type"]=p,l&&(s["code.filepath"]=l),d&&(s["code.function"]=d),h!==-1&&(s["browser.script.source_char_position"]=h),un(t,r,r+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0})}function Cw(){tr("event",({entries:e})=>{const t=Ie();if(t){for(const n of e)if(n.name==="click"){const r=je(Qe()+n.startTime),o=je(n.duration),a={name:wt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Q]:"auto.ui.browser.metrics"}},i=Gc(n.target);i&&(a.attributes["ui.component_name"]=i),un(t,r,r+o,a)}}})}function Nw(){return ru(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Tt.cls={value:e.value,unit:""},Xr=t)},!0)}function Mw(){return au(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Tt.lcp={value:e.value,unit:"millisecond"},it=t)},!0)}function Lw(){return Oy(({metric:e})=>{e.entries[e.entries.length-1]&&(Tt.ttfb={value:e.value,unit:"millisecond"})})}function Dw(e,t){const n=Gr(),r=Qe();if(!(n!=null&&n.getEntries)||!r)return;const o=je(r),a=n.getEntries(),{op:i,start_timestamp:s}=Y(e);a.slice(ed).forEach(c=>{const u=je(c.startTime),p=je(Math.max(0,c.duration));if(!(i==="navigation"&&s&&o+u<s))switch(c.entryType){case"navigation":{Uw(e,c,o);break}case"mark":case"paint":case"measure":{$w(e,c,u,p,o,t.ignorePerformanceApiSpans);const l=xy(),d=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&d&&(Tt.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&d&&(Tt.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{qw(e,c,c.name,u,p,o,t.ignoreResourceSpans);break}}}),ed=Math.max(a.length-1,0),Ww(e),i==="pageload"&&(Xw(Tt),t.recordClsOnPageloadSpan||delete Tt.cls,t.recordLcpOnPageloadSpan||delete Tt.lcp,Object.entries(Tt).forEach(([c,u])=>{_u(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Iy()),zw(e,t)),it=void 0,Xr=void 0,Tt={}}function jw(e){if((e==null?void 0:e.entryType)==="measure")try{return e.detail.devtools.track==="Components \u269B"}catch{return}}function $w(e,t,n,r,o,a){if(jw(t)||["mark","measure"].includes(t.entryType)&&kt(t.name,a))return;const i=iu(!1),s=je(i?i.requestStart:0),c=o+Math.max(n,s),u=o+n,p=u+r,l={[Q]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),Fw(l,t),c<=p&&un(e,c,p,{name:t.name,op:t.entryType,attributes:l})}function Fw(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,o]of Object.entries(n))if(o&&tn(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch{}return}if(tn(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Uw(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{fa(e,t,r,n)}),fa(e,t,"secureConnection",n,"TLS/SSL"),fa(e,t,"fetch",n,"cache"),fa(e,t,"domainLookup",n,"DNS"),Hw(e,t,n)}function fa(e,t,n,r,o=n){const a=Bw(n),i=t[a],s=t[`${n}Start`];!s||!i||un(e,r+je(s),r+je(i),{op:`browser.${o}`,name:t.name,attributes:{[Q]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Bw(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Hw(e,t,n){const r=n+je(t.requestStart),o=n+je(t.responseEnd),a=n+je(t.responseStart);t.responseEnd&&(un(e,r,o,{op:"browser.request",name:t.name,attributes:{[Q]:"auto.ui.browser.metrics"}}),un(e,a,o,{op:"browser.response",name:t.name,attributes:{[Q]:"auto.ui.browser.metrics"}}))}function qw(e,t,n,r,o,a,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i!=null&&i.includes(s))return;const c={[Q]:"auto.resource.browser.metrics"},u=In(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(zt.location.origin),Gw(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const p={...c,...Zp(t)},l=a+r,d=l+o;un(e,l,d,{name:n.replace(zt.location.origin,""),op:s,attributes:p})}function Ww(e){const t=zt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),fs(n.rtt)&&(Tt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),fs(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),fs(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function zw(e,t){it&&t.recordLcpOnPageloadSpan&&(it.element&&e.setAttribute("lcp.element",wt(it.element)),it.id&&e.setAttribute("lcp.id",it.id),it.url&&e.setAttribute("lcp.url",it.url.trim().slice(0,200)),it.loadTime!=null&&e.setAttribute("lcp.loadTime",it.loadTime),it.renderTime!=null&&e.setAttribute("lcp.renderTime",it.renderTime),e.setAttribute("lcp.size",it.size)),Xr!=null&&Xr.sources&&t.recordClsOnPageloadSpan&&Xr.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,wt(n.node)))}function Gw(e,t,n){n.forEach(([r,o])=>{const a=e[r];a!=null&&(typeof a=="number"&&a<xw||typeof a=="string")&&(t[o]=a)})}function Xw(e){const t=iu(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Vw(){return Gr()&&Qe()?tr("element",Jw):()=>{}}const Jw=({entries:e})=>{const t=Ie(),n=t?Me(t):void 0,r=n?Y(n).description:ae().getScopeData().transactionName;e.forEach(o=>{var a,i;const s=o;if(!s.identifier)return;const c=s.name,u=s.renderTime,p=s.loadTime,[l,d]=p?[je(p),"load-time"]:u?[je(u),"render-time"]:[Ue(),"entry-emission"],h=c==="image-paint"?je(Math.max(0,(u??0)-(p??0))):0,f={[Q]:"auto.ui.browser.elementtiming",[Se]:"ui.elementtiming",[ue]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":s.id,"element.type":((i=(a=s.element)==null?void 0:a.tagName)==null?void 0:i.toLowerCase())||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":u,"element.load_time":p,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":c};Rt({name:`element[${s.identifier}]`,attributes:f,startTime:l,onlyIfParent:!0},m=>{m.end(l+h)})})},ms=[],ha=new Map,dr=new Map,Kw=60;function Yw(){if(Gr()&&Qe()){const e=Qw();return()=>{e()}}return()=>{}}const _s={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Qw(){return Ay(Zw)}const Zw=({metric:e})=>{if(e.value==null)return;const t=je(e.value);if(t>Kw)return;const n=e.entries.find(f=>f.duration===e.value&&_s[f.name]);if(!n)return;const{interactionId:r}=n,o=_s[n.name],a=je(Qe()+n.startTime),i=Ie(),s=i?Me(i):void 0,c=r!=null?ha.get(r):void 0,u=(c==null?void 0:c.span)||s,p=u?Y(u).description:ae().getScopeData().transactionName,l=(c==null?void 0:c.elementName)||wt(n.target),d={[Q]:"auto.http.browser.inp",[Se]:`ui.interaction.${o}`,[Vn]:n.duration},h=hs({name:l,transaction:p,attributes:d,startTime:a});h&&(h.addEvent("inp",{[Pr]:"millisecond",[Tr]:e.value}),h.end(a+t))};function eR(){const e=Object.keys(_s);tu()&&e.forEach(o=>{zt.addEventListener(o,t,{capture:!0,passive:!0})});function t(o){const a=o.target;if(!a)return;const i=wt(a),s=Math.round(o.timeStamp);if(dr.set(s,i),dr.size>50){const c=dr.keys().next().value;c!==void 0&&dr.delete(c)}}function n(o){const a=Math.round(o.startTime);let i=dr.get(a);if(!i)for(let s=-5;s<=5;s++){const c=dr.get(a+s);if(c){i=c;break}}return i||"<unknown>"}const r=({entries:o})=>{const a=Ie(),i=a&&Me(a);o.forEach(s=>{if(!ky(s))return;const c=s.interactionId;if(c==null||ha.has(c))return;const u=s.target?wt(s.target):n(s);if(ms.length>10){const p=ms.shift();ha.delete(p)}ms.push(c),ha.set(c,{span:i,elementName:u})})};tr("event",r),tr("first-input",r)}const tR=40;function gs(e,t=su("fetch")){let n=0,r=0;async function o(a){const i=a.body.length;n+=i,r++;const s={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,s);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Cy("fetch"),c}finally{n-=i,r--}}return Du(e,o,Ti(e.bufferSize||tR))}const U=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nR(){const e=J();if(!e){U&&w.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){U&&w.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function rR(){const e=J();if(!e){U&&w.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){U&&w.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}const oR={startProfiler:nR,stopProfiler:rR},aR=10,iR=20,sR=30,cR=40,uR=50;function fr(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?Wt:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const lR=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,pR=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,dR=/\((\S*)(?::(\d+))(?::(\d+))\)/,fR=/at (.+?) ?\(data:(.+?),/,hR=e=>{const t=e.match(fR);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=lR.exec(e);if(n){const[,o,a,i]=n;return fr(o,Wt,+a,+i)}const r=pR.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=dR.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[o,a]=ad(r[1]||Wt,r[2]);return fr(a,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},td=[sR,hR],mR=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_R=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gR=e=>{const t=mR.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=_R.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let n=t[3],r=t[1]||Wt;return[r,n]=ad(r,n),fr(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},nd=[uR,gR],yR=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vR=e=>{const t=yR.exec(e);return t?fr(t[2],t[1]||Wt,+t[3],t[4]?+t[4]:void 0):void 0},bR=[cR,vR],ER=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,SR=e=>{const t=ER.exec(e);return t?fr(t[2],t[3]||Wt,+t[1]):void 0},wR=[aR,SR],RR=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,PR=e=>{const t=RR.exec(e);return t?fr(t[5],t[3]||t[4]||Wt,+t[1],+t[2]):void 0},TR=[iR,PR],rd=[td,nd],od=Jg(...rd),ad=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Wt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function OR(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...(t==null?void 0:t.sdk)&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Qt(r)}},a=xR(e);return Ct(o,[a])}function xR(e){return[{type:"user_report"},e]}const ma=1024,IR="Breadcrumbs",AR=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:IR,setup(n){t.console&&Ni(NR(n)),t.dom&&Ny(CR(n,t.dom)),t.xhr&&di(MR(n)),t.fetch&&Xi(LR(n)),t.history&&fi(DR(n)),t.sentry&&n.on("beforeSendEvent",kR(n))}}}),id=AR;function kR(e){return function(t){J()===e&&Nt({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Pn(t)},{event:t})}}function CR(e,t){return function(n){if(J()!==e)return;let r,o,a=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>ma&&(U&&w.warn(`\`dom.maxStringLength\` cannot exceed ${ma}, but a value of ${i} was configured. Sentry will use ${ma} instead.`),i=ma),typeof a=="string"&&(a=[a]);try{const c=n.event,u=jR(c)?c.target:c;r=wt(u,{keyAttrs:a,maxStringLength:i}),o=Gc(u)}catch{r="<unknown>"}if(r.length===0)return;const s={category:`ui.${n.name}`,message:r};o&&(s.data={"ui.component_name":o}),Nt(s,{event:n.event,name:n.name,global:n.global})}}function NR(e){return function(t){if(J()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:pi(t.level),message:_o(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)n.message=`Assertion failed: ${_o(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1);else return;Nt(n,{input:t.args,level:t.level})}}function MR(e){return function(t){if(J()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[wo];if(!n||!r||!o)return;const{method:a,url:i,status_code:s,body:c}=o,u={method:a,url:i,status_code:s},p={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},l={category:"xhr",data:u,type:"http",level:up(s)};e.emit("beforeOutgoingRequestBreadcrumb",l,p),Nt(l,p)}}function LR(e){return function(t){if(J()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.fetchData.method,t.fetchData.url,t.error){const o=t.fetchData,a={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,a),Nt(i,a)}else{const o=t.response,a={...t.fetchData,status_code:o==null?void 0:o.status};t.fetchData.request_body_size,t.fetchData.response_body_size,o==null||o.status;const i={input:t.args,response:o,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:a,type:"http",level:up(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",s,i),Nt(s,i)}}}function DR(e){return function(t){if(J()!==e)return;let n=t.from,r=t.to;const o=In(L.location.href);let a=n?In(n):void 0;const i=In(r);a!=null&&a.path||(a=o),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),o.protocol===a.protocol&&o.host===a.host&&(n=a.relative),Nt({category:"navigation",data:{from:n,to:r}})}}function jR(e){return!!e&&!!e.target}const $R=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],FR="BrowserApiErrors",UR=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:FR,setupOnce(){t.setTimeout&&ft(L,"setTimeout",cd),t.setInterval&&ft(L,"setInterval",cd),t.requestAnimationFrame&&ft(L,"requestAnimationFrame",BR),t.XMLHttpRequest&&"XMLHttpRequest"in L&&ft(XMLHttpRequest.prototype,"send",HR);const n=t.eventTarget;n&&(Array.isArray(n)?n:$R).forEach(r=>qR(r,t))}}}),sd=UR;function cd(e){return function(...t){const n=t[0];return t[0]=pr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Yn(e)}`}}),e.apply(this,t)}}function BR(e){return function(t){return e.apply(this,[pr(t,{mechanism:{data:{handler:Yn(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function HR(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&ft(n,r,function(o){const a={mechanism:{data:{handler:Yn(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},i=ei(o);return i&&(a.mechanism.data.handler=Yn(i)),pr(o,a)})}),e.apply(this,t)}}function qR(e,t){var n,r;const o=(n=L[e])==null?void 0:n.prototype;(r=o==null?void 0:o.hasOwnProperty)!=null&&r.call(o,"addEventListener")&&(ft(o,"addEventListener",function(a){return function(i,s,c){try{WR(s)&&(s.handleEvent=pr(s.handleEvent,{mechanism:{data:{handler:Yn(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&zR(this,i,s),a.apply(this,[i,pr(s,{mechanism:{data:{handler:Yn(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),ft(o,"removeEventListener",function(a){return function(i,s,c){try{const u=s.__sentry_wrapped__;u&&a.call(this,i,u,c)}catch{}return a.call(this,i,s,c)}}))}function WR(e){return typeof e.handleEvent=="function"}function zR(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const ud=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof L.document>"u"){U&&w.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ii({ignoreDuration:!0}),go();const n=Ze();let r=n.getUser();n.addScopeListener(o=>{const a=o.getUser();((r==null?void 0:r.id)!==(a==null?void 0:a.id)||(r==null?void 0:r.ip_address)!==(a==null?void 0:a.ip_address))&&(go(),r=a)}),t==="route"&&fi(({from:o,to:a})=>{o!==a&&(ii({ignoreDuration:!0}),go())})}}},GR="CultureContext",XR=(()=>({name:GR,preprocessEvent(e){var t;const n=VR();n&&(e.contexts={...e.contexts,culture:{...n,...(t=e.contexts)==null?void 0:t.culture}})}})),ld=XR;function VR(){try{const e=L.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const JR="GlobalHandlers",KR=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:JR,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(YR(n),hd("onerror")),t.onunhandledrejection&&(QR(n),hd("onunhandledrejection"))}}}),pd=KR;function YR(e){pu(t=>{const{stackParser:n,attachStacktrace:r}=md();if(J()!==e||qp())return;const{msg:o,url:a,line:i,column:s,error:c}=t,u=ZR(da(n,c||o,void 0,r,!1),a,i,s);u.level="error",Qn(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function QR(e){du(t=>{const{stackParser:n,attachStacktrace:r}=md();if(J()!==e||qp())return;const o=dd(t),a=tn(o)?fd(o):da(n,o,void 0,r,!0);a.level="error",Qn(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function dd(e){if(tn(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function fd(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function ZR(e,t,n,r){const o=e.exception=e.exception||{},a=o.values=o.values||[],i=a[0]=a[0]||{},s=i.stacktrace=i.stacktrace||{},c=s.frames=s.frames||[],u=r,p=n,l=eP(t)??Kn();return c.length===0&&c.push({colno:u,filename:l,function:Wt,in_app:!0,lineno:p}),e}function hd(e){U&&w.log(`Global Handler attached: ${e}`)}function md(){const e=J();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function eP(e){if(!(!si(e)||e.length===0))return e.startsWith("data:")?`<${rn(e,!1)}>`:e}const _d=()=>({name:"HttpContext",preprocessEvent(e){var t;if(!L.navigator&&!L.location&&!L.document)return;const n=us(),r={...n.headers,...(t=e.request)==null?void 0:t.headers};e.request={...n,...e.request,headers:r}}}),tP="cause",nP=5,rP="LinkedErrors",oP=((e={})=>{const t=e.limit||nP,n=e.key||tP;return{name:rP,preprocessEvent(r,o,a){const i=a.getOptions();u0(pa,i.stackParser,n,t,r,o)}}}),gd=oP,aP="SpotlightBrowser",iP=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:aP,setup:()=>{U&&w.log("Using Sidecar URL",t)},processEvent:n=>uP(n)?null:n,afterAllSetup:n=>{sP(n,t)}}});function sP(e,t){const n=su("fetch");let r=0;e.on("beforeEnvelope",o=>{if(r>3){w.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:So(o),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(a=>{a.status>=200&&a.status<400&&(r=0)},a=>{r++,w.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",a)})})}const cP=iP;function uP(e){var t;return!!(e.type==="transaction"&&e.spans&&(t=e.contexts)!=null&&t.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:n})=>n==null?void 0:n.includes("#sentry-spotlight")))}function lP(){return pP()?(U&&Ar(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function pP(){var e;if(typeof L.window>"u")return!1;const t=L;if(t.nw)return!1;const n=t.chrome||t.browser;if(!((e=n==null?void 0:n.runtime)!=null&&e.id))return!1;const r=Kn(),o=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(L===L.top&&o.some(a=>r.startsWith(`${a}://`)))}function ys(e){return[il(),ol(),fb(),sd(),id(),pd(),gd(),ml(),_d(),ld(),ud()]}function dP(e={}){const t=!e.skipBrowserExtensionCheck&&lP();let n=e.defaultIntegrations==null?ys():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:Kg(e.stackParser||od),integrations:fv({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||gs};return Uv(Kp,r)}function fP(){}function hP(e){e()}function vs(e={}){const t=L.document,n=(t==null?void 0:t.head)||(t==null?void 0:t.body);if(!n){U&&w.error("[showReportDialog] Global document not defined");return}const r=ae(),o=J(),a=o==null?void 0:o.getDsn();if(!a){U&&w.error("[showReportDialog] DSN not configured");return}const i={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Xc()},s=L.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=pv(a,i);const{onLoad:c,onClose:u}=i;if(c&&(s.onload=c),u){const p=l=>{if(l.data==="__sentry_reportdialog_closed__")try{u()}finally{L.removeEventListener("message",p)}};L.addEventListener("message",p)}n.appendChild(s)}const mP=de,_P="ReportingObserver",yd=new WeakMap,gP=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(yd.has(J()))for(const o of r)Ye(a=>{a.setExtra("url",o.url);const i=`ReportingObserver [${o.type}]`;let s="No details available";if(o.body){const c={};for(const u in o.body)c[u]=o.body[u];if(a.setExtra("body",c),o.type==="crash"){const u=o.body;s=[u.crashId||"",u.reason||""].join(" ").trim()||s}else s=o.body.message||s}Vc(`${i}: ${s}`)})}return{name:_P,setupOnce(){My()&&new mP.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){yd.set(r,!0)}}}),yP=gP,vP="HttpClient",bP=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:vP,setup(n){IP(n,t),AP(n,t)}}}),EP=bP;function SP(e,t,n,r,o){if(Ed(e,n.status,n.url)){const a=kP(t,r);let i,s,c,u;wd()&&([i,c]=vd("Cookie",a),[s,u]=vd("Set-Cookie",n));const p=Sd({url:a.url,method:a.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:c,responseCookies:u,error:o,type:"fetch"});Qn(p)}}function vd(e,t){const n=PP(t.headers);let r;try{const o=n[e]||n[e.toLowerCase()]||void 0;o&&(r=bd(o))}catch{}return[n,r]}function wP(e,t,n,r,o){if(Ed(e,t.status,t.responseURL)){let a,i,s;if(wd()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(i=bd(u))}catch{}try{s=TP(t)}catch{}a=r}const c=Sd({url:t.responseURL,method:n,status:t.status,requestHeaders:a,responseHeaders:s,responseCookies:i,error:o,type:"xhr"});Qn(c)}}function RP(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function bd(e){return e.split("; ").reduce((t,n)=>{const[r,o]=n.split("=");return r&&o&&(t[r]=o),t},{})}function PP(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function TP(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
483
|
-
`).reduce((n,r)=>{const[o,a]=r.split(": ");return o&&a&&(n[o]=a),n},{}):{}}function OP(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function xP(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function IP(e,t){eu()&&Xi(n=>{if(J()!==e)return;const{response:r,args:o,error:a,virtualError:i}=n,[s,c]=o;r&&SP(t,s,r,c,a||i)},!1)}function AP(e,t){"XMLHttpRequest"in de&&di(n=>{if(J()!==e)return;const{error:r,virtualError:o}=n,a=n.xhr,i=a[wo];if(!i)return;const{method:s,request_headers:c}=i;try{wP(t,a,s,c,r||o)}catch(u){U&&w.warn("Error while extracting response event form XHR response",u)}})}function Ed(e,t,n){return xP(e.failedRequestStatusCodes,t)&&OP(e.failedRequestTargets,n)&&!Ly(n,J())}function Sd(e){const t=J(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,a={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:RP(e.responseHeaders)}}};return nn(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function kP(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function wd(){const e=J();return e?!!e.getOptions().sendDefaultPii:!1}const bs=de,CP=7,NP="ContextLines",MP=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:CP;return{name:NP,processEvent(n){return DP(n,t)}}}),LP=MP;function DP(e,t){var n;const r=bs.document,o=bs.location&&hi(bs.location.href);if(!r||!o)return e;const a=(n=e.exception)==null?void 0:n.values;if(!(a!=null&&a.length))return e;const i=r.documentElement.innerHTML;if(!i)return e;const s=["<!DOCTYPE html>","<html>",...i.split(`
|
|
484
|
-
`),"</html>"];return a.forEach(c=>{const u=c.stacktrace;u!=null&&u.frames&&(u.frames=u.frames.map(p=>jP(p,s,o,t)))}),e}function jP(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Yg(t,e,r),e}const $P="GraphQLClient",FP=(e=>({name:$P,setup(t){UP(t,e),BP(t,e)}}));function UP(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const o=Y(n).data||{};if(o[Se]!=="http.client")return;const a=o[Qg]||o["http.url"],i=o[Zg]||o["http.method"];if(!si(a)||!si(i))return;const{endpoints:s}=t,c=kt(a,s),u=Pd(r);if(c&&u){const p=Td(u);if(p){const l=Rd(p);n.updateName(`${i} ${a} (${l})`),ga(p)&&n.setAttribute("graphql.document",p.query),ya(p)&&(n.setAttribute("graphql.persisted_query.hash.sha256",p.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",p.extensions.persistedQuery.version))}}})}function BP(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:o,type:a,data:i}=n;if(a==="http"&&(o==="fetch"||o==="xhr")){const s=i==null?void 0:i.url,{endpoints:c}=t,u=kt(s,c),p=Pd(r);if(u&&i&&p){const l=Td(p);if(!i.graphql&&l){const d=Rd(l);i["graphql.operation"]=d,ga(l)&&(i["graphql.document"]=l.query),ya(l)&&(i["graphql.persisted_query.hash.sha256"]=l.extensions.persistedQuery.sha256Hash,i["graphql.persisted_query.version"]=l.extensions.persistedQuery.version)}}}})}function Rd(e){if(ya(e))return`persisted ${e.operationName}`;if(ga(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=HP(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function Pd(e){const t="xhr"in e;let n;if(t){const r=e.xhr[wo];n=r&&cu(r.body)[0]}else{const r=Dy(e.input);n=cu(r)[0]}return n}function HP(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const o=e.match(n);return o?{operationType:o[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function _a(e){return typeof e=="object"&&e!==null}function ga(e){return _a(e)&&typeof e.query=="string"}function ya(e){return _a(e)&&typeof e.operationName=="string"&&_a(e.extensions)&&_a(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function Td(e){try{const t=JSON.parse(e);return ga(t)||ya(t)?t:void 0}catch{return}}const qP=FP;var WP=Object.defineProperty,zP=(e,t,n)=>t in e?WP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Od=(e,t,n)=>zP(e,typeof t!="symbol"?t+"":t,n);class GP{constructor(){Od(this,"idNodeMap",new Map),Od(this,"nodeMetaMap",new WeakMap)}getId(t){var n;return t?((n=this.getMeta(t))==null?void 0:n.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function XP(){return new GP}function VP(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Es(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Es(e.parentNode,t,n,r+1)}function xd(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(VP(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const hr=`Please stop import mirror directly. Instead of that,\r
|
|
485
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
486
|
-
or you can use record.mirror to access the mirror instance during recording.`;let Id={map:{},getId(){return console.error(hr),-1},getNode(){return console.error(hr),null},removeNodeFromMap(){console.error(hr)},has(){return console.error(hr),!1},reset(){console.error(hr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Id=new Proxy(Id,{get(e,t,n){return t==="map"&&console.error(hr),Reflect.get(e,t,n)}}));function Ss(e,t,n,r,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){Cd(()=>{n.set.call(this,i)},0),a&&a.set&&a.set.call(this,i)}}),()=>Ss(e,t,a||{},!0)}function ws(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function JP(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function va(e,t,n,r,o){if(!e)return!1;const a=JP(e);if(!a)return!1;const i=xd(t,n),s=Es(a,i);let c=-1;return s<0?!1:(r&&(c=Es(a,xd(null,r))),s>-1&&c<0?!0:s<c)}const Ad={};function kd(e){const t=Ad[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch{}return Ad[e]=r.bind(window)}function Bn(...e){return kd("requestAnimationFrame")(...e)}function Cd(...e){return kd("setTimeout")(...e)}var mr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(mr||{});let ba;function KP(e){ba=e}const Rs=e=>ba?(...t)=>{try{return e(...t)}catch(n){if(ba&&ba(n)===!0)return()=>{};throw n}}:e;for(var _r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YP=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ea=0;Ea<_r.length;Ea++)YP[_r.charCodeAt(Ea)]=Ea;var QP=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=_r[t[n]>>2],o+=_r[(t[n]&3)<<4|t[n+1]>>4],o+=_r[(t[n+1]&15)<<2|t[n+2]>>6],o+=_r[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const Nd=new Map;function ZP(e,t){let n=Nd.get(e);return n||(n=new Map,Nd.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Md=(e,t,n)=>{if(!e||!(Dd(e,t)||typeof e=="object"))return;const r=e.constructor.name,o=ZP(n,r);let a=o.indexOf(e);return a===-1&&(a=o.length,o.push(e)),a};function Sa(e,t,n){if(e instanceof Array)return e.map(r=>Sa(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,o=QP(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Sa(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Sa(e.data,t,n),e.width,e.height]};if(Dd(e,t)||typeof e=="object"){const r=e.constructor.name,o=Md(e,t,n);return{rr_type:r,index:o}}}}return e}const Ld=(e,t,n)=>e.map(r=>Sa(r,t,n)),Dd=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function eT(e,t,n,r,o){const a=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of i)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!="function")continue;const c=ws(t.CanvasRenderingContext2D.prototype,s,function(u){return function(...p){return va(this.canvas,n,r,o,!0)||Cd(()=>{const l=Ld(p,t,this);e(this.canvas,{type:mr["2D"],property:s,args:l})},0),u.apply(this,p)}});a.push(c)}catch{const c=Ss(t.CanvasRenderingContext2D.prototype,s,{set(u){e(this.canvas,{type:mr["2D"],property:s,args:[u],setter:!0})}});a.push(c)}return()=>{a.forEach(s=>s())}}function tT(e){return e==="experimental-webgl"?"webgl":e}function jd(e,t,n,r,o){const a=[];try{const i=ws(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(c,...u){if(!va(this,t,n,r,!0)){const p=tT(c);if("__context"in this||(this.__context=p),o&&["webgl","webgl2"].includes(p))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[c,...u])}});a.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(i=>i())}}function $d(e,t,n,r,o,a,i,s){const c=[],u=Object.getOwnPropertyNames(e);for(const p of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(p))try{if(typeof e[p]!="function")continue;const l=ws(e,p,function(d){return function(...h){const f=d.apply(this,h);if(Md(f,s,this),"tagName"in this.canvas&&!va(this.canvas,r,o,a,!0)){const m=Ld(h,s,this),_={type:t,property:p,args:m};n(this.canvas,_)}return f}});c.push(l)}catch{const l=Ss(e,p,{set(d){n(this.canvas,{type:t,property:p,args:[d],setter:!0})}});c.push(l)}return c}function nT(e,t,n,r,o,a){const i=[];return i.push(...$d(t.WebGLRenderingContext.prototype,mr.WebGL,e,n,r,o,a,t)),typeof t.WebGL2RenderingContext<"u"&&i.push(...$d(t.WebGL2RenderingContext.prototype,mr.WebGL2,e,n,r,o,a,t)),()=>{i.forEach(s=>s())}}const rT='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function oT(){const e=new Blob([rT]);return URL.createObjectURL(e)}class aT{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(s,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(s)||this.pendingCanvasMutations.set(s,[]),this.pendingCanvasMutations.get(s).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:o,recordCanvas:a,errorHandler:i}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,i&&KP(i),(a&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(o),!n&&Rs(()=>{a&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){var t;this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(n=>{try{n()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,(t=this.worker)==null||t.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:o,unblockSelector:a,recordCanvas:i,enableManualSnapshot:s}=this.options;if(!this.windowsSet.has(t)){if(s){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Rs(()=>{if(i&&n==="all"&&this.initCanvasMutationObserver(t,r,o,a),i&&typeof n=="number"){const c=jd(t,r,o,a,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n!=null&&n.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Bn(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(oT());return t.onmessage=n=>{const r=n.data,{id:o}=r;if(this.snapshotInProgressMap.set(o,!1),!("base64"in r))return;const{base64:a,type:i,width:s,height:c}=r;this.mutationCb({id:o,type:mr["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:a}],type:i}]},0,0,s,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=Bn(n)};t=Bn(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,o){const a=jd(t,n,r,o,!1),i=eT(this.processMutation.bind(this),t,n,r,o),s=nT(this.processMutation.bind(this),t,n,r,o,this.mirror);this.restoreHandlers.push(()=>{a(),i(),s()})}getCanvasElements(t,n,r){const o=[],a=i=>{i.querySelectorAll("canvas").forEach(s=>{va(s,t,n,r)||o.push(s)})};for(const i of this.windows){const s=i.deref();let c;try{c=s&&s.document}catch{}c&&a(c)}for(const i of this.shadowDoms){const s=i.deref();s&&a(s)}return o}takeSnapshot(t,n,r){const{sampling:o,blockClass:a,blockSelector:i,unblockSelector:s,dataURLOptions:c,maxCanvasSize:u}=this.options,p=1e3/(o==="all"?2:o||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<p?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(a,i,s)).forEach(l=>{var d;const h=this.mirror.getId(l);if(!(!this.mirror.hasNode(l)||!l.width||!l.height||this.snapshotInProgressMap.get(h))){if(this.snapshotInProgressMap.set(h,!0),!n&&["webgl","webgl2"].includes(l.__context)){const f=l.getContext(l.__context);((d=f==null?void 0:f.getContextAttributes())==null?void 0:d.preserveDrawingBuffer)===!1&&f.clear(f.COLOR_BUFFER_BIT)}createImageBitmap(l).then(f=>{var m;(m=this.worker)==null||m.postMessage({id:h,bitmap:f,width:l.width,height:l.height,dataURLOptions:c,maxCanvasSize:u},[f])}).catch(f=>{Rs(()=>{throw this.snapshotInProgressMap.delete(h),f})()})}}),!0)}startPendingCanvasMutationFlusher(){Bn(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Bn(t)};Bn(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Bn(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const o=r.map(i=>{const{type:s,...c}=i;return c}),{type:a}=r[0];this.mutationCb({id:n,type:a,commands:o}),this.pendingCanvasMutations.delete(t)}}var Fd;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Fd=e.contentWindow)==null?void 0:Fd.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}XP();var Ud;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ud||(Ud={}));const Bd={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},iT="ReplayCanvas",wa=1280,sT=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,wa):wa,n?Math.min(n,wa):wa]};let o,a;const i=new Promise(s=>a=s);return{name:iT,getOptions(){const{quality:s,enableManualSnapshot:c,maxCanvasSize:u}=r;return{enableManualSnapshot:c,recordCanvas:!0,getCanvasManager:p=>{const l=new aT({...p,enableManualSnapshot:c,maxCanvasSize:u,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return o=l,a(l),l},...Bd[s]||Bd.medium}},async snapshot(s,c){(o||await i).snapshot(s,c)}}}),cT=sT;function uT(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Hd(e){try{return new URL(e,L.location.origin).href}catch{return}}function lT(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function qd(e){try{return new Headers(e)}catch{return}}const Wd=new WeakMap,Ps=new Map,Ts={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function zd(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:a,enableHTTPTimings:i,tracePropagationTargets:s,onRequestSpanStart:c,onRequestSpanEnd:u}={...Ts,...t},p=typeof a=="function"?a:f=>!0,l=f=>pT(f,s),d={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(m=>{if(m.op==="http.client"){const _=Ps.get(m.span_id);_&&(m.timestamp=_/1e3,Ps.delete(m.span_id))}}),f)),o&&BS(f=>{if(f.response){const m=Wd.get(f.response);m&&f.endTimestamp&&Ps.set(m,f.endTimestamp)}}),Xi(f=>{const m=hb(f,p,l,d,{propagateTraceparent:h,onRequestSpanEnd:u});if(f.response&&f.fetchData.__span&&Wd.set(f.response,f.fetchData.__span),m){const _=Hd(f.fetchData.url),g=_?In(_).host:void 0;m.setAttributes({"http.url":_?rn(_):void 0,"server.address":g}),i&&Gd(m),c==null||c(m,{headers:f.headers})}})),r&&di(f=>{var m;const _=dT(f,p,l,d,h,u);_&&(i&&Gd(_),c==null||c(_,{headers:qd((m=f.xhr.__sentry_xhr_v3__)==null?void 0:m.request_headers)}))})}function Gd(e){const{url:t}=Y(e).data;if(!t||typeof t!="string")return;const n=tr("resource",({entries:r})=>{r.forEach(o=>{lT(o)&&o.name.endsWith(t)&&(e.setAttributes(Zp(o)),setTimeout(n))})})}function pT(e,t){const n=Kn();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const a=r.origin===o;return t?kt(r.toString(),t)||a&&kt(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?kt(e,t):r}}function dT(e,t,n,r,o,a){const i=e.xhr,s=i==null?void 0:i[wo];if(!i||i.__sentry_own_request__||!s)return;const{url:c,method:u}=s,p=Et()&&t(c);if(e.endTimestamp){const g=i.__sentry_xhr_span_id__;if(!g)return;const b=r[g];b&&(p&&s.status_code!==void 0&&(qt(b,s.status_code),b.end(),a==null||a(b,{headers:qd(jy(i)),error:e.error})),delete r[g]);return}const l=Hd(c),d=l?In(l):In(c),h=rn(hi(c)),f=!!Ie(),m=p&&f?mt({name:`${u} ${h}`,attributes:{url:rn(c),type:"xhr","http.method":u,"http.url":l?rn(l):void 0,"server.address":d==null?void 0:d.host,[Q]:"auto.http.browser",[Se]:"http.client",...(d==null?void 0:d.search)&&{"http.query":d==null?void 0:d.search},...(d==null?void 0:d.hash)&&{"http.fragment":d==null?void 0:d.hash}}}):new Mt;i.__sentry_xhr_span_id__=m.spanContext().spanId,r[i.__sentry_xhr_span_id__]=m,n(c)&&fT(i,Et()&&f?m:void 0,o);const _=J();return _&&_.emit("beforeOutgoingRequestSpan",m,e),m}function fT(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:a}=Mo({span:t,propagateTraceparent:n});r&&hT(e,r,o,a)}function hT(e,t,n,r){var o;const a=(o=e.__sentry_xhr_v3__)==null?void 0:o.request_headers;if(!(a!=null&&a["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!(a!=null&&a.traceparent)&&e.setRequestHeader("traceparent",r),n){const i=a==null?void 0:a.baggage;(!i||!uT(i))&&e.setRequestHeader("baggage",n)}}catch{}}function mT(){L.document?L.document.addEventListener("visibilitychange",()=>{const e=Ie();if(!e)return;const t=Me(e);if(L.document.hidden&&t){const n="cancelled",{op:r,status:o}=Y(t);U&&w.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Oe,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):U&&w.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const _T=3600,Xd="sentry_previous_trace",gT="sentry.previous_trace";function yT(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let o=r?ET():void 0;e.on("spanStart",i=>{if(Me(i)!==i)return;const s=ae().getPropagationContext();o=vT(o,i,s),r&&bT(o)});let a=!0;n&&e.on("beforeSampling",i=>{if(!o)return;const s=ae(),c=s.getPropagationContext();if(a&&c.parentSpanId){a=!1;return}s.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(Os(o.spanContext))},sampleRand:o.sampleRand}),i.parentSampled=Os(o.spanContext),i.parentSampleRate=o.sampleRate,i.spanAttributes={...i.spanAttributes,[ey]:o.sampleRate}})}function vT(e,t,n){const r=Y(t);function o(){var s,c;try{return Number((s=n.dsc)==null?void 0:s.sample_rate)??Number((c=r.data)==null?void 0:c[Va])}catch{return 0}}const a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return a;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=_T&&(U&&w.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[ty]:"previous_trace"}}),t.setAttribute(gT,`${i.traceId}-${i.spanId}-${Os(i)?1:0}`)),a)}function bT(e){try{L.sessionStorage.setItem(Xd,JSON.stringify(e))}catch(t){U&&w.warn("Could not store previous trace in sessionStorage",t)}}function ET(){var e;try{const t=(e=L.sessionStorage)==null?void 0:e.getItem(Xd);return JSON.parse(t)}catch{return}}function Os(e){return e.traceFlags===1}const ST="BrowserTracing",wT={...xo,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Ts},gr=((e={})=>{const t={name:void 0,source:void 0},n=L.document,{enableInp:r,enableElementTiming:o,enableLongTask:a,enableLongAnimationFrame:i,_experiments:{enableInteractions:s,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:p,idleTimeout:l,finalTimeout:d,childSpanTimeout:h,markBackgroundSpan:f,traceFetch:m,traceXHR:_,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:b,enableHTTPTimings:R,ignoreResourceSpans:v,ignorePerformanceApiSpans:E,instrumentPageLoad:S,instrumentNavigation:y,detectRedirects:P,linkPreviousTrace:T,consistentTraceSampling:O,enableReportPageLoaded:N,onRequestSpanStart:k,onRequestSpanEnd:B}={...wT,...e};let C,j,F;function z($,D,H=!0){const Z=D.op==="pageload",te=D.name,ye=p?p(D):D,ie=ye.attributes||{};if(te!==ye.name&&(ie[ue]="custom",ye.attributes=ie),!H){const ve=Za();mt({...ye,startTime:ve}).end(ve);return}t.name=ye.name,t.source=ie[ue];const pe=Tu(ye,{idleTimeout:l,finalTimeout:d,childSpanTimeout:h,disableAutoFinish:Z,beforeSpanEnd:ve=>{C==null||C(),Dw(ve,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:v,ignorePerformanceApiSpans:E}),Yd($,void 0);const Je=ae(),nt=Je.getPropagationContext();Je.setPropagationContext({...nt,traceId:pe.spanContext().traceId,sampled:uo(pe),dsc:Zt(ve)}),Z&&(F=void 0)},trimIdleSpanEndTimestamp:!N});Z&&N&&(F=pe),Yd($,pe);function Pe(){n&&["interactive","complete"].includes(n.readyState)&&$.emit("idleSpanEnableAutoFinish",pe)}Z&&!N&&n&&(n.addEventListener("readystatechange",()=>{Pe()}),Pe())}return{name:ST,setup($){if(hu(),C=Iw({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:$}),r&&Yw(),o&&Vw(),i&&de.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?kw():a&&Aw(),s&&Cw(),P&&n){const H=()=>{j=Ue()};addEventListener("click",H,{capture:!0}),addEventListener("keydown",H,{capture:!0,passive:!0})}function D(){const H=Vr($);H&&!Y(H).timestamp&&(U&&w.log(`[Tracing] Finishing current active span with op: ${Y(H).op}`),H.setAttribute(Ir,"cancelled"),H.end())}$.on("startNavigationSpan",(H,Z)=>{if(J()!==$)return;if(Z!=null&&Z.isRedirect){U&&w.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),z($,{op:"navigation.redirect",...H},!1);return}j=void 0,D(),Ze().setPropagationContext({traceId:wr(),sampleRand:Math.random(),propagationSpanId:Et()?void 0:Rr()});const te=ae();te.setPropagationContext({traceId:wr(),sampleRand:Math.random(),propagationSpanId:Et()?void 0:Rr()}),te.setSDKProcessingMetadata({normalizedRequest:void 0}),z($,{op:"navigation",...H,parentSpan:null,forceTransaction:!0})}),$.on("startPageLoadSpan",(H,Z={})=>{if(J()!==$)return;D();const te=Z.sentryTrace||Vd("sentry-trace")||Jd("sentry-trace"),ye=Z.baggage||Vd("baggage")||Jd("baggage"),ie=Ja(te,ye),pe=ae();pe.setPropagationContext(ie),Et()||(pe.getPropagationContext().propagationSpanId=Rr()),pe.setSDKProcessingMetadata({normalizedRequest:us()}),z($,{op:"pageload",...H})}),$.on("endPageloadSpan",()=>{N&&F&&(F.setAttribute(Ir,"reportPageLoaded"),F.end())})},afterAllSetup($){let D=Kn();if(T!=="off"&&yT($,{linkPreviousTrace:T,consistentTraceSampling:O}),L.location){if(S){const H=Qe();ln($,{name:L.location.pathname,startTime:H?H/1e3:void 0,attributes:{[ue]:"url",[Q]:"auto.pageload.browser"}})}y&&fi(({to:H,from:Z})=>{if(Z===void 0&&(D==null?void 0:D.indexOf(H))!==-1){D=void 0;return}D=void 0;const te=Zc(H),ye=Vr($),ie=ye&&P&&PT(ye,j);jt($,{name:(te==null?void 0:te.pathname)||L.location.pathname,attributes:{[ue]:"url",[Q]:"auto.navigation.browser"}},{url:H,isRedirect:ie})})}f&&mT(),s&&RT($,l,d,h,t),r&&eR(),zd($,{traceFetch:m,traceXHR:_,trackFetchStreamPerformance:g,tracePropagationTargets:$.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:R,onRequestSpanStart:k,onRequestSpanEnd:B})}}});function ln(e,t,n){e.emit("startPageLoadSpan",t,n),ae().setTransactionName(t.name);const r=Vr(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function jt(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const a=ae();return a.setTransactionName(t.name),r&&!o&&a.setSDKProcessingMetadata({normalizedRequest:{...us(),url:r}}),Vr(e)}function Vd(e){const t=L.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function Jd(e){var t,n,r;const o=(n=(t=L.performance)==null?void 0:t.getEntriesByType)==null?void 0:n.call(t,"navigation")[0],a=(r=o==null?void 0:o.serverTiming)==null?void 0:r.find(i=>i.name===e);return a==null?void 0:a.description}function RT(e,t,n,r,o){const a=L.document;let i;const s=()=>{const c="ui.action.click",u=Vr(e);if(u){const p=Y(u).op;if(["navigation","pageload"].includes(p)){U&&w.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Ir,"interactionInterrupted"),i.end(),i=void 0),!o.name){U&&w.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=Tu({name:o.name,op:c,attributes:{[ue]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};a&&addEventListener("click",s,{capture:!0})}const Kd="_sentry_idleSpan";function Vr(e){return e[Kd]}function Yd(e,t){ht(e,Kd,t)}const Qd=1.5;function PT(e,t){const n=Y(e),r=Za(),o=n.start_timestamp;return!(r-o>Qd||t&&r-t<=Qd)}function TT(e=J()){e==null||e.emit("endPageloadSpan")}function OT(e){const t=Ie();if(t===e)return;const n=ae();e.end=new Proxy(e.end,{apply(r,o,a){return en(n,t),Reflect.apply(r,o,a)}}),en(n,e)}function yr(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function xT(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=yr(n);return o=>r.then(a=>o(a.transaction(t,"readwrite").objectStore(t)))}function xs(e){return yr(e.getAllKeys())}function IT(e,t,n){return e(r=>xs(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),yr(r.transaction)}))}function AT(e,t,n){return e(r=>xs(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.min(...o,0)-1),yr(r.transaction)}))}function kT(e){return e(t=>xs(t).then(n=>{const r=n[0];if(r!=null)return yr(t.get(r)).then(o=>(t.delete(r),yr(t.transaction).then(()=>o)))}))}function CT(e){let t;function n(){return t==null&&(t=xT(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const o=await So(r);await IT(n(),o,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const o=await So(r);await AT(n(),o,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await kT(n());if(r)return $y(r)}catch{}}}}function NT(e){return t=>{const n=e({...t,createStore:CT});return L.addEventListener("online",async r=>{await n.flush()}),n}}function MT(e=gs){return NT(Hv(e))}const Zd=1e6,LT="window"in de&&de.window===de&&typeof importScripts>"u",pn=String(0),Ra=LT?"main":"worker",dn=L.navigator;let ef="",tf="",nf="",Is=(dn==null?void 0:dn.userAgent)||"",rf="";var of;const DT=(dn==null?void 0:dn.language)||((of=dn==null?void 0:dn.languages)==null?void 0:of[0])||"";function jT(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const af=dn==null?void 0:dn.userAgentData;jT(af)&&af.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{var t;if(ef=e.platform||"",nf=e.architecture||"",rf=e.model||"",tf=e.platformVersion||"",(t=e.fullVersionList)!=null&&t.length){const n=e.fullVersionList[e.fullVersionList.length-1];Is=`${n.brand} ${n.version}`}}).catch(e=>{});function $T(e){return!("thread_metadata"in e)}function FT(e){return $T(e)?zT(e):e}function UT(e){var t,n;const r=(n=(t=e.contexts)==null?void 0:t.trace)==null?void 0:n.trace_id;return typeof r=="string"&&r.length!==32&&U&&w.log(`[Profiling] Invalid traceId: ${r} on profiled event`),typeof r!="string"?"":r}function BT(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=UT(r),a=FT(n),i=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Ue()*1e3),s=typeof r.timestamp=="number"?r.timestamp*1e3:Ue()*1e3;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||$c,runtime:{name:"javascript",version:L.navigator.userAgent},os:{name:ef,version:tf,build_number:Is},device:{locale:DT,model:rf,manufacturer:Is,architecture:nf,is_emulator:!1},debug_meta:{images:cf(n.resources)},profile:a,transactions:[{name:r.transaction||"",id:r.event_id||Ht(),trace_id:o,active_thread_id:pn,relative_start_ns:"0",relative_end_ns:((s-i)*1e6).toFixed(0)}]}}function HT(e,t,n){var r,o;if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const a=WT(e),i=t.getOptions(),s=(o=(r=t.getSdkMetadata)==null?void 0:r.call(t))==null?void 0:o.sdk;return{chunk_id:Ht(),client_sdk:{name:(s==null?void 0:s.name)??"sentry.javascript.browser",version:(s==null?void 0:s.version)??"0.0.0"},profiler_id:n||Ht(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:cf(e.resources)},profile:a}}function qT(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};const t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function WT(e){const t=[];for(let s=0;s<e.frames.length;s++){const c=e.frames[s];c&&(t[s]={function:c.name,abs_path:typeof c.resourceId=="number"?e.resources[c.resourceId]:void 0,lineno:c.line,colno:c.column})}const n=[];for(let s=0;s<e.stacks.length;s++){const c=e.stacks[s];if(!c)continue;const u=[];let p=c;for(;p;)u.push(p.frameId),p=p.parentId===void 0?void 0:e.stacks[p.parentId];n[s]=u}const r=Qe(),o=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,a=o-(r||o),i=[];for(let s=0;s<e.samples.length;s++){const c=e.samples[s];if(!c)continue;const u=(o+(c.timestamp-a))/1e3;i[s]={stack_id:c.stackId??0,thread_id:pn,timestamp:u}}return{frames:t,stacks:n,samples:i,thread_metadata:{[pn]:{name:Ra}}}}function sf(e){return Y(e).op==="pageload"}function zT(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[pn]:{name:Ra}}},o=e.samples[0];if(!o)return r;const a=o.timestamp,i=Qe(),s=typeof performance.timeOrigin=="number"?performance.timeOrigin:i||0,c=s-(i||s);return e.samples.forEach((u,p)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[p]={elapsed_since_start_ns:((u.timestamp+c-a)*Zd).toFixed(0),stack_id:t,thread_id:pn};return}let l=e.stacks[u.stackId];const d=[];for(;l;){d.push(l.frameId);const f=e.frames[l.frameId];f&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:f.name,abs_path:typeof f.resourceId=="number"?e.resources[f.resourceId]:void 0,lineno:f.line,colno:f.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const h={elapsed_since_start_ns:((u.timestamp+c-a)*Zd).toFixed(0),stack_id:n,thread_id:pn};r.stacks[n]=d,r.samples[p]=h,n++}),r}function GT(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function XT(e){const t=[];return er(e,(n,r)=>{var o,a;if(r==="transaction")for(let i=1;i<n.length;i++){const s=n[i];(a=(o=s==null?void 0:s.contexts)==null?void 0:o.profile)!=null&&a.profile_id&&t.push(n[i])}}),t}function cf(e){const t=J(),n=t==null?void 0:t.getOptions(),r=n==null?void 0:n.stackParser;return r?ny(r,e):[]}function uf(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(U&&w.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(U&&w.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function VT(e){return e.samples.length<2?(U&&w.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(U&&w.log("[Profiling] Discarding profile because it contains no frames"),!1)}let As=!1;const lf=3e4;function JT(e){return typeof e=="function"}function pf(){const e=L.Profiler;if(!JT(e)){U&&w.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(lf/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{U&&(w.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),w.log("[Profiling] Disabling profiling for current user session.")),As=!0}}function df(e){if(As)return U&&w.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return U&&w.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=J(),n=t==null?void 0:t.getOptions();if(!n)return U&&w.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return uf(r)?r?r===!0||Math.random()<r?!0:(U&&w.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(U&&w.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(U&&w.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function KT(e){if(As)return U&&w.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return U&&w.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return uf(t)?t?Math.random()<=t:(U&&w.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(U&&w.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function Pa(e){return typeof e.profilesSampleRate<"u"}function YT(e,t,n,r){return VT(n)?BT(e,t,n,r):null}const Hn=new Map;function QT(){return Hn.size}function ZT(e){const t=Hn.get(e);return t&&Hn.delete(e),t}function eO(e,t){if(Hn.set(e,t),Hn.size>30){const n=Hn.keys().next().value;n!==void 0&&Hn.delete(n)}}function tO(e){var t,n,r,o,a;return!((t=e==null?void 0:e.contexts)!=null&&t.profile)||!e.contexts||(e.contexts.trace={...((n=e.contexts)==null?void 0:n.trace)??{},data:{...((o=(r=e.contexts)==null?void 0:r.trace)==null?void 0:o.data)??{},"thread.id":pn,"thread.name":Ra}},(a=e.spans)==null||a.forEach(i=>{i.data={...i.data||{},"thread.id":pn,"thread.name":Ra}})),e}function ff(e){let t;sf(e)&&(t=Ue()*1e3);const n=pf();if(!n)return;U&&w.log(`[Profiling] started profiling span: ${Y(e).description}`);const r=Ht();let o=null;ae().setContext("profile",{profile_id:r,start_timestamp:t});async function a(){if(e&&n){if(o){U&&w.log("[Profiling] profile for:",Y(e).description,"already exists, returning early");return}return n.stop().then(u=>{if(i&&(L.clearTimeout(i),i=void 0),U&&w.log(`[Profiling] stopped profiling of span: ${Y(e).description}`),!u){U&&w.log(`[Profiling] profiler returned null profile for: ${Y(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}o=u,eO(r,u)}).catch(u=>{U&&w.log("[Profiling] error while stopping profiler:",u)})}}let i=L.setTimeout(()=>{U&&w.log("[Profiling] max profile duration elapsed, stopping profiling for:",Y(e).description),a()},lf);const s=e.end.bind(e);function c(){return e?(a().then(()=>{s()},()=>{s()}),e):s()}e.end=c}const nO=6e4,rO=3e5;class oO{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){const n=t.getOptions().profileLifecycle,r=KT(t.getOptions());U&&w.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||U&&w.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=Ht(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t)}start(){if(this._lifecycleMode==="trace"){U&&w.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){U&&w.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){U&&w.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){U&&w.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){U&&w.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;const n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const r=this._activeRootSpanIds.size;r===1&&(U&&w.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,U&&w.log("[Profiling] Started profiling with profiler ID:",this._profilerId),Tn().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){U&&w.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{U&&w.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&Tn().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){U&&w.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==Me(n))return;if(!n.isRecording()){U&&w.log("[Profiling] Discarding profile because root span was not sampled.");return}const r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);const o=this._activeRootSpanIds.size;o===1&&(U&&w.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${o}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;const r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);const o=this._activeRootSpanIds.size;U&&w.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${o}).`),o===0&&(this._collectCurrentChunk().catch(a=>{U&&w.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",a)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,Tn().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);const n=setTimeout(()=>this._onRootSpanTimeout(t),rO);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){var t;if(((t=this._profiler)==null?void 0:t.stopped)===!1)return;const n=pf();if(!n){U&&w.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=n}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{U&&w.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},nO))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(U&&w.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){const t=this._profiler;if(this._profiler=void 0,!!t)try{const n=await t.stop(),r=HT(n,this._client,this._profilerId),o=qT(r);if("reason"in o){U&&w.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",o.reason);return}this._sendProfileChunk(r),U&&w.log("[Profiling] Collected browser profile chunk.")}catch(n){U&&w.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}_sendProfileChunk(t){var n;const r=this._client,o=ui((n=r.getSdkMetadata)==null?void 0:n.call(r)),a=r.getDsn(),i=r.getOptions().tunnel,s=Ct({event_id:Ht(),sent_at:new Date().toISOString(),...o&&{sdk:o},...!!i&&a&&{dsn:Qt(a)}},[[{type:"profile_chunk",platform:"javascript"},t]]);r.sendEnvelope(s).then(null,c=>{U&&w.error("Error while sending profile chunk envelope:",c)})}}const aO="BrowserProfiling",iO=(()=>({name:aO,setup(e){const t=e.getOptions(),n=new oO;if(!Pa(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),Pa(t)&&!t.profilesSampleRate){U&&w.log("[Profiling] Profiling disabled, no profiling options found.");return}const r=Ie(),o=r&&Me(r);if(Pa(t)&&t.profileSessionSampleRate!==void 0&&U&&w.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),Pa(t))o&&sf(o)&&df(o)&&ff(o),e.on("spanStart",a=>{a===Me(a)&&df(a)&&ff(a)}),e.on("beforeEnvelope",a=>{var i,s;if(!QT())return;const c=XT(a);if(!c.length)return;const u=[];for(const p of c){const l=p==null?void 0:p.contexts,d=(i=l==null?void 0:l.profile)==null?void 0:i.profile_id,h=(s=l==null?void 0:l.profile)==null?void 0:s.start_timestamp;if(typeof d!="string"){U&&w.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!d){U&&w.log("[Profiling] cannot find profile for a span without a profile context");continue}l!=null&&l.profile&&delete l.profile;const f=ZT(d);if(!f){U&&w.log(`[Profiling] Could not retrieve profile for span: ${d}`);continue}const m=YT(d,h,f,p);m&&u.push(m)}GT(a,u)});else{const a=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),a==="manual")n.initialize(e);else if(a==="trace"){if(!Et(t)){U&&w.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),o&&n.notifyRootSpanActive(o),L.setTimeout(()=>{const i=Ie(),s=i&&Me(i);s&&n.notifyRootSpanActive(s)},0)}}},processEvent(e){return tO(e)}})),sO=iO,cO=()=>({name:"LaunchDarkly",processEvent(e,t,n){return nr(e)}});function uO(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{kn(e,t.value),Cn(e,t.value)}}}const lO=()=>({name:"OpenFeature",processEvent(e,t,n){return nr(e)}});class pO{after(t,n){kn(n.flagKey,n.value),Cn(n.flagKey,n.value)}error(t,n,r){kn(t.flagKey,t.defaultValue),Cn(t.flagKey,t.defaultValue)}}const dO=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;ft(t,"isEnabled",fO)},processEvent(t,n,r){return nr(t)}});function fO(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(kn(n,r),Cn(n,r)):U&&w.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const hO=(({growthbookClass:e})=>lb({growthbookClass:e})),mO=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{kn(n.gate.name,n.gate.value),Cn(n.gate.name,n.gate.value)})},processEvent(t,n,r){return nr(t)}});async function _O(){const e=J();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await Su(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const gO="WebWorker",yO=({worker:e})=>({name:gO,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>hf(t))},addWorker:t=>hf(t)});function hf(e){e.addEventListener("message",t=>{if(EO(t.data)){if(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(U&&w.log("Sentry debugId web worker message received",t.data),L._sentryDebugIds={...t.data._sentryDebugIds,...L._sentryDebugIds}),t.data._sentryModuleMetadata&&(U&&w.log("Sentry module metadata web worker message received",t.data),L._sentryModuleMetadata={...t.data._sentryModuleMetadata,...L._sentryModuleMetadata}),t.data._sentryWasmImages){U&&w.log("Sentry WASM images web worker message received",t.data);const n=L._sentryWasmImages||[],r=t.data._sentryWasmImages.filter(o=>dt(o)&&typeof o.code_file=="string"&&!n.some(a=>a.code_file===o.code_file));L._sentryWasmImages=[...n,...r]}t.data._sentryWorkerError&&(U&&w.log("Sentry worker rejection message received",t.data._sentryWorkerError),vO(t.data._sentryWorkerError))}})}function vO(e){const t=J();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,a=tn(o)?fd(o):da(n,o,void 0,r,!0);a.level="error",e.filename&&(a.contexts={...a.contexts,worker:{filename:e.filename}}),Qn(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),U&&w.log("Captured worker unhandled rejection",o)}function bO({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{var n;const r={reason:dd(t),filename:(n=e.location)==null?void 0:n.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),U&&w.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),U&&w.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function EO(e){if(!dt(e)||e._sentryMessage!==!0)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;return!(!t&&!n&&!r&&!o||t&&!(dt(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(dt(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!dt(e._sentryWorkerError)||o&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(a=>dt(a)&&typeof a.code_file=="string")))}function SO(e){const t={...e};return ki(t,"react"),Jc("react",{version:uu}),dP(t)}function wO(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function RO(e,t){const n=new WeakSet;function r(o,a){if(!n.has(o)){if(o.cause)return n.add(o),r(o.cause,a);o.cause=a}}r(e,t)}function ks(e,{componentStack:t},n){if(wO(uu)&&St(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,RO(e,r)}return Ye(r=>(r.setContext("react",{componentStack:t}),ge(e,n)))}function PO(e){return(t,n)=>{const r=!!e,o=ks(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,o)}}const mf="ui.react.render",TO="ui.react.update",_f="ui.react.mount",OO={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xO={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},IO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},AO=Symbol.for("react.forward_ref"),yf=Symbol.for("react.memo");function kO(e){return typeof e=="object"&&e!==null&&e.$$typeof===yf}const Cs={};Cs[AO]=IO,Cs[yf]=gf;function vf(e){if(kO(e))return gf;const t=e.$$typeof;return t&&Cs[t]||OO}const CO=Object.defineProperty.bind(Object),NO=Object.getOwnPropertyNames.bind(Object);var bf;const Ef=(bf=Object.getOwnPropertySymbols)==null?void 0:bf.bind(Object),Sf=Object.getOwnPropertyDescriptor.bind(Object),MO=Object.getPrototypeOf.bind(Object),wf=Object.prototype;function Jr(e,t,n){if(typeof t!="string"){if(wf){const i=MO(t);i&&i!==wf&&Jr(e,i)}let r=NO(t);Ef&&(r=r.concat(Ef(t)));const o=vf(e),a=vf(t);for(const i of r)if(!xO[i]&&!(a!=null&&a[i])&&!(o!=null&&o[i])&&!Sf(e,i)){const s=Sf(t,i);if(s)try{CO(e,i,s)}catch{}}}return e}const LO="unknown";class Ns extends et.Component{constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=mt({name:`<${n}>`,onlyIfParent:!0,op:_f,attributes:{[Q]:"auto.ui.react.profiler","ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(o=>t[o]!==this.props.updateProps[o]);if(r.length>0){const o=Ue();this._updateSpan=An(this._mountSpan,()=>mt({name:`<${this.props.name}>`,onlyIfParent:!0,op:TO,startTime:o,attributes:{[Q]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=Ue(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const o=Y(this._mountSpan).timestamp;An(this._mountSpan,()=>{const a=mt({onlyIfParent:!0,name:`<${n}>`,op:mf,startTime:o,attributes:{[Q]:"auto.ui.react.profiler","ui.component_name":n}});a&&a.end(t)})}}render(){return this.props.children}}Object.assign(Ns,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});function DO(e,t){const n=(t==null?void 0:t.name)||e.displayName||e.name||LO,r=o=>et.createElement(Ns,{...t,name:n,updateProps:o},et.createElement(e,{...o}));return r.displayName=`profiler(${n})`,Jr(r,e),r}function jO(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=et.useState(()=>{if(!(t!=null&&t.disabled))return mt({name:`<${e}>`,onlyIfParent:!0,op:_f,attributes:{[Q]:"auto.ui.react.profiler","ui.component_name":e}})});et.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=Y(n).timestamp,o=Ue(),a=mt({name:`<${e}>`,onlyIfParent:!0,op:mf,startTime:r,attributes:{[Q]:"auto.ui.react.profiler","ui.component_name":e}});a&&a.end(o)}}),[])}const We=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$O="unknown",Ms={componentStack:null,error:null,eventId:null};class Rf extends et.Component{constructor(t){super(t),this.state=Ms,this._openFallbackReportDialog=!0;const n=J();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&vs({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:o,onError:a,showDialog:i,dialogOptions:s}=this.props;Ye(c=>{o&&o(c,t,r);const u=this.props.handled!=null?this.props.handled:!!this.props.fallback,p=ks(t,n,{mechanism:{handled:u,type:"auto.function.react.error_boundary"}});a&&a(t,r,p),i&&(this._lastEventId=p,this._openFallbackReportDialog&&vs({...s,eventId:p})),this.setState({error:t,componentStack:r,eventId:p})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:o}=this.props;o&&(this.state===Ms?o(null,null,null):o(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:o}=this.state;t&&t(n,r,o),this.setState(Ms)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const o=typeof t=="function"?et.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return et.isValidElement(o)?o:(t&&We&&w.warn("fallback did not produce a valid ReactElement"),null)}}function FO(e,t){const n=e.displayName||e.name||$O,r=et.memo(o=>et.createElement(Rf,{...t},et.createElement(e,{...o})));return r.displayName=`errorBoundary(${n})`,Jr(r,e),r}const UO="redux.action",BO="info",HO={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function qO(e){const t={...HO,...e};return n=>(r,o)=>{t.attachReduxState&&Tn().addEventProcessor((s,c)=>{try{s.type===void 0&&s.contexts.state.state.type==="redux"&&(c.attachments=[...c.attachments||[],{filename:"redux_state.json",data:JSON.stringify(s.contexts.state.state.value)}])}catch{}return s});function a(s){return(c,u)=>{const p=s(c,u),l=ae(),d=t.actionTransformer(u);typeof d<"u"&&d!==null&&Nt({category:UO,data:d,type:BO});const h=t.stateTransformer(p);if(typeof h<"u"&&h!==null){const m=J(),_=m==null?void 0:m.getOptions(),g=(_==null?void 0:_.normalizeDepth)||3,b={state:{type:"redux",value:h}};ht(b,"__sentry_override_normalization_depth__",3+g),l.setContext("state",b)}else l.setContext("state",null);const{configureScopeWithState:f}=t;return typeof f=="function"&&f(l,p),p}}const i=n(a(r),o);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(s,c,u){s.apply(c,[a(u[0])])}}),i}}function WO(e){const t=gr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),a&&L.location&&Pf(r,L.location,o,(c,u="url")=>{ln(s,{name:c,attributes:{[Se]:"pageload",[Q]:"auto.pageload.react.reactrouter_v3",[ue]:u}})}),i&&n.listen&&n.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&Pf(r,c,o,(u,p="url")=>{jt(s,{name:u,attributes:{[Se]:"navigation",[Q]:"auto.navigation.react.reactrouter_v3",[ue]:p}})})})}}}function Pf(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(a,i,s)=>{if(a||!s)return r(o);const c=zO(s.routes||[]);return c.length===0||c==="/*"?r(o):(o=c,r(o,"route"))})}function zO(e){var t;if(!Array.isArray(e)||e.length===0)return"";const n=e.filter(o=>!!o.path);let r=-1;for(let o=n.length-1;o>=0;o--)if((t=n[o].path)!=null&&t.startsWith("/")){r=o;break}return n.slice(r).reduce((o,{path:a})=>{const i=o==="/"||o===""?a:`/${a}`;return`${o}${i}`},"")}function GO(e,t={}){const n=e,r=gr({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=t;return{...r,afterAllSetup(i){r.afterAllSetup(i);const s=L.location;if(o&&s){const c=n.matchRoutes(s.pathname,n.options.parseSearch(s.search),{preload:!1,throwOnError:!1}),u=c[c.length-1],p=(u==null?void 0:u.routeId)!=="__root__"?u:void 0;ln(i,{name:p?p.routeId:s.pathname,attributes:{[Se]:"pageload",[Q]:"auto.pageload.react.tanstack_router",[ue]:p?"route":"url",...Tf(p)}})}a&&n.subscribe("onBeforeNavigate",c=>{if(!c.fromLocation||c.toLocation.state===c.fromLocation.state)return;const u=n.matchRoutes(c.toLocation.pathname,c.toLocation.search,{preload:!1,throwOnError:!1}),p=u[u.length-1],l=(p==null?void 0:p.routeId)!=="__root__"?p:void 0,d=L.location,h=jt(i,{name:l?l.routeId:d.pathname,attributes:{[Se]:"navigation",[Q]:"auto.navigation.react.tanstack_router",[ue]:l?"route":"url"}}),f=n.subscribe("onResolved",m=>{if(f(),h){const _=n.matchRoutes(m.toLocation.pathname,m.toLocation.search,{preload:!1,throwOnError:!1}),g=_[_.length-1],b=(g==null?void 0:g.routeId)!=="__root__"?g:void 0;b&&(h.updateName(b.routeId),h.setAttribute(ue,"route"),h.setAttributes(Tf(b)))}})})}}}function Tf(e){if(!e)return{};const t={};return Object.entries(e.params).forEach(([n,r])=>{t[`url.path.params.${n}`]=r,t[`url.path.parameter.${n}`]=r,t[`params.${n}`]=r}),t}function XO(e){const t=gr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),Of(s,a,i,n,"reactrouter_v4",r,o)}}}function VO(e){const t=gr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),Of(s,a,i,n,"reactrouter_v5",r,o)}}}function Of(e,t,n,r,o,a=[],i){function s(){if(r.location)return r.location.pathname;if(L.location)return L.location.pathname}function c(u){if(a.length===0||!i)return[u,"url"];const p=xf(a,u,i);for(const l of p)if(l.match.isExact)return[l.match.path,"route"];return[u,"url"]}if(t){const u=s();if(u){const[p,l]=c(u);ln(e,{name:p,attributes:{[Se]:"pageload",[Q]:`auto.pageload.react.${o}`,[ue]:l}})}}n&&r.listen&&r.listen((u,p)=>{if(p&&(p==="PUSH"||p==="POP")){const[l,d]=c(u.pathname);jt(e,{name:l,attributes:{[Se]:"navigation",[Q]:`auto.navigation.react.${o}`,[ue]:d}})}})}function xf(e,t,n,r=[]){return e.some(o=>{const a=o.path?n(t,o):r.length?r[r.length-1].match:JO(t);return a&&(r.push({route:o,match:a}),o.routes&&xf(o.routes,t,n,r)),!!a}),r}function JO(e){return{path:"/",url:"/",params:{},isExact:e==="/"}}function KO(e){const t=e.displayName||e.name,n=r=>{var o;if((o=r==null?void 0:r.computedMatch)!=null&&o.isExact){const a=r.computedMatch.path,i=YO();ae().setTransactionName(a),i&&(i.updateName(a),i.setAttribute(ue,"route"))}return et.createElement(e,{...r})};return n.displayName=`sentryRoute(${t})`,Jr(n,e),n}function YO(){const e=Ie(),t=e&&Me(e);if(!t)return;const n=Y(t).op;return n==="navigation"||n==="pageload"?t:void 0}function Kr(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}const If=new WeakMap;function QO(e,t,n){if(!e||!t||!t.length)return null;const r=n?Kr(e,n):e;let o=If.get(t);o||(o=ox(t),If.set(t,o),We&&w.log("[React Router] Sorted route manifest by specificity:",o.length,"patterns"));for(const a of o)if(ZO(r,a))return We&&w.log("[React Router] Matched pathname",r,"to pattern",a),a;return We&&w.log("[React Router] No manifest match found for pathname:",r),null}function ZO(e,t){if(t==="/")return e==="/"||e==="";const n=kf(e),r=kf(t);if(r.length>0&&r[r.length-1]==="*"){const o=r.slice(0,-1);if(n.length<o.length)return!1;for(const[a,i]of o.entries())if(!Af(n[a],i))return!1;return!0}if(n.length!==r.length)return!1;for(const[o,a]of r.entries())if(!Af(n[o],a))return!1;return!0}function Af(e,t){return e===void 0||t===void 0?!1:Cf.test(t)?!0:e===t}function kf(e){return e.split("/").filter(Boolean)}const Cf=/^:[\w-]+$/,ex=10,tx=3,nx=1,rx=-2;function Nf(e){const t=e.split("/");let n=t.length;t.includes("*")&&(n+=rx);for(const r of t)r!=="*"&&(Cf.test(r)?n+=tx:r===""?n+=nx:n+=ex);return n}function ox(e){return[...e].sort((t,n)=>{const r=Nf(t);return Nf(n)-r})}let Ls,qn=!1;const fn=[],ax=10;function ix(e,t){const n={};return fn.length>=ax&&(We&&w.warn("[React Router] Navigation context stack overflow - removing oldest context"),fn.shift()),fn.push({token:n,targetPath:e,span:t}),n}function sx(e){const t=fn[fn.length-1];(t==null?void 0:t.token)===e&&fn.pop()}function Mf(){const e=fn.length;return e>0?fn[e-1]??null:null}function cx(e,t=!1){Ls=e,qn=t}function ux(e){return px(e.route.path||"")}function lx(e){return e.params["*"]||""}function px(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function vr(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Lf(e){return e.endsWith("*")}function hn(e){return e.includes("/*")||e.endsWith("*")}function Df(e,t){var n;return Lf(e)&&!!((n=t.route.children)!=null&&n.length)||!1}function dx(e){var t;return!!(!e.children&&e.element&&(t=e.path)!=null&&t.endsWith("/*"))}function fx(e,t,n){const r=e&&e.length>0?e:qn?Kr(t,n):t;let o=r.slice(-2)==="/*"?r.slice(0,-2):r;return o.length>1&&o[o.length-1]==="/"&&(o=o.slice(0,-1)),[o,"route"]}function jf(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Ta(e){return e[0]==="/"?e:`/${e}`}function $f(e,t){const n=Ls(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const o=ux(r),a=Kr(t.pathname,Ta(r.pathnameBase));return t.pathname===a?vr(a):vr(vr(o||"")+Ta($f(e.filter(i=>i!==r.route),{pathname:a})))}return""}function hx(e,t){const n=Ls(t,e);if(n){for(const r of n)if(dx(r.route)&&lx(r))return!0}return!1}function Ff(e,t){return qn?Kr(e.pathname,t):e.pathname||""}function mx(e,t,n,r=""){if(!e||e.length===0)return[qn?Kr(t.pathname,r):t.pathname,"url"];if(!n)return[Ff(t,r),"url"];let o="";for(const a of n){const i=a.route;if(!i)continue;if(i.index)return fx(o,a.pathname,r);const s=i.path;if(!s||Df(s,a))continue;const c=s[0]==="/"||o[o.length-1]==="/"?s:`/${s}`;if(o=vr(o)+Ta(c),vr(t.pathname)===vr(r+a.pathname))return jf(o)!==jf(a.pathname)&&!Lf(o)?[(qn?"":r)+c,"route"]:(Df(o,a)&&(o=o.slice(0,-1)),[(qn?"":r)+o,"route"])}return[Ff(t,r),"url"]}function Oa(e,t,n,r,o="",a,i){if(i&&a&&a.length>0){const p=QO(e.pathname,a,o);if(p)return[(qn?"":o)+p,"route"]}let s,c="url";const u=hx(e,n);return u&&(s=Ta($f(n,e)),c="route"),(!u||!s)&&([s,c]=mx(t,e,r,o)),[s||e.pathname,c]}function $t(){const e=Ie(),t=e?Me(e):void 0;if(!t)return;const n=Y(t).op;return n==="navigation"||n==="pageload"?t:void 0}function _x(){const e=Mf();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(typeof L<"u")try{const t=L.location;if(t)return{pathname:t.pathname,search:t.search||"",hash:t.hash||"",state:null,key:"default"}}catch{We&&w.warn("[React Router] Could not access window.location")}return null}function gx(){const e=Mf();return e?e.span:$t()}function yx(e,t,n,r){const o=new Proxy(e,{apply(a,i,s){const c=_x(),u=gx(),p=a.apply(i,s);return vx(p,t,n,r,c,u),p}});return ht(o,"__sentry_proxied__",!0),o}function vx(e,t,n,r,o,a){lo(e)?e.then(i=>{Array.isArray(i)&&r(i,t,o??void 0,a)}).catch(i=>{We&&w.warn(`Error resolving async handler '${n}' for route`,t,i)}):Array.isArray(e)&&r(e,t,o??void 0,a)}function xa(e,t){if(e.handle&&typeof e.handle=="object")for(const n of Object.keys(e.handle)){const r=e.handle[n];typeof r=="function"&&!r.__sentry_proxied__&&(e.handle[n]=yx(r,e,n,t))}if(Array.isArray(e.children))for(const n of e.children)xa(n,t)}let mn,_n,gn,Ia,vt,yn=!1,Wn=3e3,Yr,Ds="";const Uf=new WeakSet,zn=new WeakMap,Ve=new Set,Aa=new WeakMap,js=new WeakMap;function bx(e){return L!=null&&L.requestAnimationFrame?L.requestAnimationFrame(e):setTimeout(e,0)}function Bf(e){L!=null&&L.cancelAnimationFrame?L.cancelAnimationFrame(e):clearTimeout(e)}function Hf(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function qf(e){return e.includes(":")||e.includes("*")}function Ex(e,t,n,r){var o;if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){const a=!!e.routeName&&hn(e.routeName),i=hn(n),s=!!e.routeName&&qf(e.routeName),c=qf(n),u=a&&!i,p=!s&&c,l=n!==e.routeName&&n.length>(((o=e.routeName)==null?void 0:o.length)||0)&&!i;return{skip:!0,shouldUpdate:!!(e.routeName&&(u||p||l))}}return{skip:!1,shouldUpdate:!1}}function Wf(e,t){const n=t.children||[],r=e.filter(o=>!n.some(a=>a===o||o.path&&a.path===o.path||o.id&&a.id===o.id));r.length>0&&(t.children=[...n,...r])}function zf(e,t){let n=Aa.get(e);n||(n=new Set,Aa.set(e,n)),n.add(t),t.finally(()=>{const r=Aa.get(e);r&&r.delete(t)})}function Gf(e){const t=new Promise(n=>{js.set(e,n)});zf(e,t)}function Sx(e){const t=js.get(e);t&&(t(),js.delete(e),e.__sentry_may_have_lazy_routes__&&(e.__sentry_may_have_lazy_routes__=!1))}function $s(e,t,n=null,r){e.forEach(a=>{Ve.add(a),yn&&xa(a,$s)}),t&&Wf(e,t);const o=r??$t();if(o){const a=Y(o);if(a.timestamp){We&&w.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}const i=a.op;let s=n;if(!s&&!r&&typeof L<"u"){const c=L.location;c!=null&&c.pathname&&(s={pathname:c.pathname})}s&&(i==="pageload"?Zr({activeRootSpan:o,location:{pathname:s.pathname},routes:Array.from(Ve),allRoutes:Array.from(Ve)}):i==="navigation"&&Fs(o,s,Array.from(Ve),!1,vt))}}function Fs(e,t,n,r=!1,o){var a;const i=Y(e),s=i.description,c=e==null?void 0:e.__sentry_navigation_name_set__,u=s&&hn(s);if((!c||r||u)&&!i.timestamp){const p=o(n,t),[l,d]=Oa(t,n,n,p||[],Ds,Yr,yn),h=(a=i.data)==null?void 0:a[ue];l&&(!s||!c&&(h!=="route"||d==="route")||h!=="route"&&d==="route"||h==="route"&&d==="route"&&u)&&(e.updateName(l),e.setAttribute(ue,d),!hn(l)&&d==="route"&&ht(e,"__sentry_navigation_name_set__",!0))}}function Xf(e,t,n,r,o){let a=!1,i=!!o&&Y(o).op==="pageload",s=!1,c=null,u=null;e.subscribe(p=>{if(!a){const l=$t();l&&Y(l).op==="pageload"?i=!0:i&&(p.historyAction==="POP"&&!s?s=!0:a=!0)}if(p.historyAction==="PUSH"||p.historyAction==="POP"&&a){const l=Hf(p.location),d=()=>{u!==l&&(u=l,c=null,Us({location:p.location,routes:t,navigationType:p.historyAction,version:n,basename:r,allRoutes:Array.from(Ve)}))};p.navigation.state!=="idle"?(u!==l&&(u=null),c!==null&&Bf(c),c=bx(d)):(c!==null&&(Bf(c),c=null),d())}})}function Vf(e,t){return!mn||!_n||!gn||!vt?(We&&w.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e):function(n,r){if(Qr(n),yn)for(const c of n)xa(c,$s);const o=$t();r&&"patchRoutesOnNavigation"in r&&typeof r.patchRoutesOnNavigation=="function"&&o&&(ht(o,"__sentry_may_have_lazy_routes__",!0),Gf(o));const a=Qf(r,!1,o),i=e(n,a),s=r==null?void 0:r.basename;return i.state.historyAction==="POP"&&o&&Zr({activeRootSpan:o,location:i.state.location,routes:n,basename:s,allRoutes:Array.from(Ve)}),Ds=s||"",Xf(i,n,t,s,o),i}}function Jf(e,t){return!mn||!_n||!gn||!vt?(We&&w.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e):function(n,r){if(Qr(n),yn)for(const m of n)xa(m,$s);const o=$t();r&&"patchRoutesOnNavigation"in r&&typeof r.patchRoutesOnNavigation=="function"&&o&&(ht(o,"__sentry_may_have_lazy_routes__",!0),Gf(o));const a=Qf(r,!0,o),i=e(n,a),s=r==null?void 0:r.basename;let c;const u=r==null?void 0:r.initialEntries,p=r==null?void 0:r.initialIndex,l=u&&u.length===1,d=p!==void 0&&u&&u[p];c=l?u[0]:d?u[p]:void 0;const h=c?typeof c=="string"?{pathname:c}:c:i.state.location,f=$t();return i.state.historyAction==="POP"&&f&&Zr({activeRootSpan:f,location:h,routes:n,basename:s,allRoutes:Array.from(Ve)}),Ds=s||"",Xf(i,n,t,s,f),i}}function Kf(e,t){const n=gr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:a,createRoutesFromChildren:i,matchRoutes:s,stripBasename:c,enableAsyncRouteHandlers:u=!1,instrumentPageLoad:p=!0,instrumentNavigation:l=!0,lazyRouteTimeout:d,lazyRouteManifest:h}=e;return{...n,setup(f){n.setup(f);const m=e.finalTimeout??3e4,_=(e.idleTimeout??1e3)*3,g=d??_;g===1/0?(Wn=m,We&&w.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",m,"ms to prevent indefinite hangs")):Number.isNaN(g)?(We&&w.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",_),Wn=_):g<0?(We&&w.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",g,"falling back to:",_),Wn=_):Wn=g,mn=r,_n=o,gn=a,vt=s,Ia=i,yn=u,Yr=h,cx(s,c||!1)},afterAllSetup(f){var m;n.afterAllSetup(f);const _=(m=L.location)==null?void 0:m.pathname;p&&_&&ln(f,{name:_,attributes:{[ue]:"url",[Se]:"pageload",[Q]:`auto.pageload.react.reactrouter_v${t}`}}),l&&Uf.add(f)}}}function Yf(e,t){if(!mn||!_n||!gn||!vt)return We&&w.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;const n=r=>{const o=et.useRef(!0),{routes:a,locationArg:i}=r,s=e(a,i),c=_n(),u=gn(),p=typeof i=="string"||i!=null&&i.pathname?i:c;return mn(()=>{const l=typeof p=="string"?{pathname:p}:p;o.current?(Qr(a),Zr({activeRootSpan:$t(),location:l,routes:a,allRoutes:Array.from(Ve)}),o.current=!1):Us({location:l,routes:a,navigationType:u,version:t,allRoutes:Array.from(Ve)})},[u,p]),s};return(r,o)=>et.createElement(n,{routes:r,locationArg:o})}function Qf(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||typeof e.patchRoutesOnNavigation!="function")return e||{};const r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async o=>{const a=o==null?void 0:o.path,i=$t()??n;if(!t){const c=o==null?void 0:o.patch,u=o==null?void 0:o.matches;c&&(o.patch=(p,l)=>{if(Qr(l),u&&u.length>0){const h=u[u.length-1],f=h==null?void 0:h.route;if(f){const m=Array.from(Ve).find(_=>{const g=_.id!==void 0&&_.id===p,b=_===f,R=_.path!==void 0&&f.path!==void 0&&_.path===f.path;return g||b||R});m&&Wf(l,m)}}const d=i?Y(i):void 0;return a&&i&&d&&!d.timestamp&&d.op==="navigation"&&Fs(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(Ve),!0,vt),c(p,l)})}const s=(async()=>{const c=ix(a,i);let u;try{u=await r(o)}finally{sx(c),i&&Sx(i)}const p=i?Y(i):void 0;if(i&&p&&!p.timestamp&&p.op==="navigation"){const l=a;l&&Fs(i,{pathname:l,search:"",hash:"",state:null,key:"default"},Array.from(Ve),!1,vt)}return u})();return i&&zf(i,s),s}}}function Us(e){const{location:t,routes:n,navigationType:r,version:o,matches:a,basename:i,allRoutes:s}=e,c=Array.isArray(a)?a:vt(s||n,t,i),u=J();if(!u||!Uf.has(u))return;const p=$t();if(!(p&&Y(p).op==="pageload"&&r==="POP")&&(r==="PUSH"||r==="POP")&&c){const[l,d]=Oa(t,s||n,s||n,c,i,Yr,yn),h=Hf(t),f=zn.get(u),m=f&&!f.isPlaceholder?!!Y(f.span).timestamp:!1,{skip:_,shouldUpdate:g}=Ex(f,h,l,m);if(_){if(g&&f){const v=f.routeName;f.isPlaceholder?(f.routeName=l,We&&w.log(`[Tracing] Updated placeholder navigation name from "${v}" to "${l}" (will apply to real span)`)):(f.span.updateName(l),f.span.setAttribute(ue,d),ht(f.span,"__sentry_navigation_name_set__",!0),f.routeName=l,We&&w.log(`[Tracing] Updated navigation span name from "${v}" to "${l}"`))}else We&&w.log(`[Tracing] Skipping duplicate navigation for location: ${h}`);return}const b={span:{end:()=>{}},routeName:l,pathname:t.pathname,locationKey:h,isPlaceholder:!0};zn.set(u,b);let R;try{R=jt(u,{name:b.routeName,attributes:{[ue]:d,[Se]:"navigation",[Q]:`auto.navigation.react.reactrouter_v${o}`}})}catch(v){throw zn.delete(u),v}R?(zn.set(u,{span:R,routeName:b.routeName,pathname:t.pathname,locationKey:h}),Hs(R,t,n,i,"navigation")):zn.delete(u)}}function Qr(e){e.forEach(t=>{Zf(t).forEach(n=>{Ve.add(n)})})}function Zf(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{Zf(n,t).forEach(r=>{t.add(r)})})),t}function Zr({activeRootSpan:e,location:t,routes:n,matches:r,basename:o,allRoutes:a}){const i=Array.isArray(r)?r:vt(a||n,t,o);if(i){const[s,c]=Oa(t,a||n,a||n,i,o,Yr,yn);ae().setTransactionName(s||"/"),e&&(e.updateName(s),e.setAttribute(ue,c),Hs(e,t,n,o,"pageload"))}else e&&Hs(e,t,n,o,"pageload")}function wx(e,t,n,r,o=!1){return n?!!(!e&&o||e&&hn(e)&&r==="route"&&!hn(n)||t!=="route"&&r==="route"):!1}function Bs(e,t,n,r,o,a,i,s){var c;try{const u=(c=t.data)==null?void 0:c[ue];if(u==="route"&&n&&!hn(n))return;const p=Array.from(s),l=p.length>0?p:o,d=vt(l,r,a);if(!d)return;const[h,f]=Oa(r,l,l,d,a,Yr,yn),m=wx(n,u,h,f,!0),_=i==="pageload"||!t.timestamp;m&&_&&(e.updateName(h),e.setAttribute(ue,f))}catch(u){We&&w.warn(`Error updating span details before ending: ${u}`)}}function Hs(e,t,n,r,o){const a=`__sentry_${o}_end_patched__`;if(e!=null&&e[a]||!e.end)return;const i=e.end.bind(e);let s=!1;e.end=function(...c){var u;if(s)return;s=!0;const p=c.length>0?c[0]:Date.now()/1e3,l=Y(e),d=l.description,h=(u=l.data)==null?void 0:u[ue],f=()=>{const g=J();if(g&&o==="navigation"){const b=zn.get(g);b&&b.span===e&&zn.delete(g)}},m=Aa.get(e),_=e.__sentry_may_have_lazy_routes__;if((m&&m.size>0||_)&&d&&(hn(d)||h!=="route")){if(Wn===0){Bs(e,l,d,t,n,r,o,Ve),f(),i(p);return}const g=new Promise(R=>setTimeout(R,Wn));let b;if(m&&m.size>0){const R=Promise.allSettled(m).then(()=>{});b=Wn===1/0?R:Promise.race([R,g])}else b=g;b.then(()=>{const R=Y(e);Bs(e,R,R.description,t,n,r,o,Ve),f(),i(p)}).catch(()=>{f(),i(p)});return}Bs(e,l,d,t,n,r,o,Ve),f(),i(p)},ht(e,a,!0)}function eh(e,t){if(!mn||!_n||!gn||!Ia||!vt)return We&&w.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
|
|
487
|
-
useEffect: ${mn}. useLocation: ${_n}. useNavigationType: ${gn}.
|
|
488
|
-
createRoutesFromChildren: ${Ia}. matchRoutes: ${vt}.`),e;const n=r=>{const o=et.useRef(!0),a=_n(),i=gn();return mn(()=>{const s=Ia(r.children);o.current?(Qr(s),Zr({activeRootSpan:$t(),location:a,routes:s,allRoutes:Array.from(Ve)}),o.current=!1):Us({location:a,routes:s,navigationType:i,version:t,allRoutes:Array.from(Ve)})},[a,i]),et.createElement(e,{...r})};return Jr(n,e),n}function Rx(e){return Kf(e,"6")}function Px(e){return Yf(e,"6")}function Tx(e){return Vf(e,"6")}function Ox(e){return Jf(e,"6")}function xx(e){return eh(e,"6")}function Ix(e){return Kf(e,"7")}function Ax(e){return eh(e,"7")}function kx(e){return Vf(e,"7")}function Cx(e){return Jf(e,"7")}function Nx(e){return Yf(e,"7")}const Ot=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Mx(e){const t=e?__OM_EMBED_CONFIG__.NEXT_PUBLIC_VERCEL_ENV:__OM_EMBED_CONFIG__.VERCEL_ENV;return t?`vercel-${t}`:void 0}function ka(e){return St(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function eo(e){return St(e)&&typeof e.digest=="string"&&e.digest.startsWith("NEXT_REDIRECT;")}const Ca=de;let qs=null,th;const Na=new Map,Ma=new Map;function nh(e){const t=e.split("/").filter(Boolean);let n=0;for(const r of t)if(r.startsWith(":")){const o=r.substring(1);o.endsWith("*?")?n+=1e3:o.endsWith("*")?n+=100:n+=10}if(t.length>0){const r=1/t.length;n+=r}return n}function rh(e){if(Na.has(e))return Na.get(e)??null;try{const t=new RegExp(e);return Na.set(e,t),t}catch(t){return Ot&&w.warn("Could not compile regex",{regexString:e,error:t}),null}}function oh(){if(!(Ca!=null&&Ca._sentryRouteManifest)||typeof Ca._sentryRouteManifest!="string")return null;const e=Ca._sentryRouteManifest;if(qs&&th===e)return qs;Na.clear(),Ma.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{return t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes)?null:(qs=t,th=e,t)}catch{return Ot&&w.warn("Could not extract route manifest"),null}}function Lx(e,t,n){const r=[];if(t.some(o=>o.path===e))return r;for(const o of n)if(o.regex){const a=rh(o.regex);a!=null&&a.test(e)&&r.push(o.path)}if(!e.startsWith("/:")){for(const o of n)if(o.hasOptionalPrefix&&o.regex){const a=e==="/"?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=rh(o.regex);i!=null&&i.test(a)&&r.push(o.path)}}return r}const to=e=>{const t=oh();if(!t)return;const n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(Ma.has(n))return Ma.get(n);const{staticRoutes:r,dynamicRoutes:o}=t;if(!Array.isArray(r)||!Array.isArray(o))return;const a=Lx(n,r,o).sort((i,s)=>nh(i)-nh(s))[0];return Ma.set(n,a),a};function no(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}const ah="incomplete-app-router-transaction";let Ws="router-patch";const vn={current:void 0};function Dx(e){const t=no(L.location.pathname),n=to(t),r=Qe();ln(e,{name:n??t,startTime:r?r/1e3:void 0,attributes:{[Se]:"pageload",[Q]:"auto.pageload.nextjs.app_router_instrumentation",[ue]:n?"route":"url"}})}const br=de,ih=de;function jx(e){zs=(a,i)=>{const s=__OM_EMBED_CONFIG__._sentryBasePath??ih._sentryBasePath,c=s&&!a.startsWith(s)?`${s}${a}`:a,u=no(new URL(c,L.location.href).pathname),p=to(u),l=p??u;Ws==="router-patch"&&(Ws="transition-start-hook");const d=vn.current;d?(d.updateName(l),d.setAttributes({"navigation.type":`router.${i}`,[ue]:p?"route":"url"}),vn.current=void 0):jt(e,{name:l,attributes:{[Se]:"navigation",[Q]:"auto.navigation.nextjs.app_router_instrumentation",[ue]:p?"route":"url","navigation.type":`router.${i}`}})},L.addEventListener("popstate",()=>{var a;const i=no(L.location.pathname),s=to(i);(a=vn.current)!=null&&a.isRecording()?(vn.current.updateName(s??i),vn.current.setAttribute(ue,s?"route":"url")):vn.current=jt(e,{name:s??i,attributes:{[Q]:"auto.navigation.nextjs.app_router_instrumentation",[ue]:s?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,n=0;const r=500,o=setInterval(()=>{var a,i;n++;const s=((a=br==null?void 0:br.next)==null?void 0:a.router)??((i=br==null?void 0:br.nd)==null?void 0:i.router);t||n>r?clearInterval(o):s&&(clearInterval(o),t=!0,uh(e,s,vn),["nd","next"].forEach(c=>{const u=br[c];u&&(br[c]=new Proxy(u,{set(p,l,d){return l==="router"&&typeof d=="object"&&d!==null&&uh(e,d,vn),p[l]=d,!0}}))}))},20)}function sh(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}const ch=new WeakSet;function uh(e,t,n){ch.has(t)||(ch.add(t),["back","forward","push","replace"].forEach(r=>{t!=null&&t[r]&&(t[r]=new Proxy(t[r],{apply(o,a,i){if(Ws!=="router-patch")return o.apply(a,i);let s=ah;const c={[Se]:"navigation",[Q]:"auto.navigation.nextjs.app_router_instrumentation",[ue]:"url"},u=i[0],p=__OM_EMBED_CONFIG__._sentryBasePath??ih._sentryBasePath,l=p&&typeof u=="string"&&!u.startsWith(p)?`${p}${u}`:u;r==="push"?(s=no(sh(l)),c["navigation.type"]="router.push"):r==="replace"?(s=no(sh(l)),c["navigation.type"]="router.replace"):r==="back"?c["navigation.type"]="router.back":r==="forward"&&(c["navigation.type"]="router.forward");const d=to(s);return n.current=jt(e,{name:d??s,attributes:{...c,[ue]:d?"route":"url"}}),o.apply(a,i)}}))}))}let zs;function $x(e,t){zs&&zs(e,t)}var Gs={exports:{}},lh={},Xs={},ph;function Vs(){if(ph)return Xs;ph=1;function e(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,o=new WeakMap;return(e=function(a){return a?o:r})(n)}function t(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var o=e(r);if(o&&o.has(n))return o.get(n);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if(s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)){var c=i?Object.getOwnPropertyDescriptor(n,s):null;c&&(c.get||c.set)?Object.defineProperty(a,s,c):a[s]=n[s]}return a.default=n,o&&o.set(n,a),a}return Xs._=t,Xs}var dh={},fh;function ro(){return fh||(fh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.charCodeAt(n.length-1)===47&&n.length>1?n.slice(0,-1):n}})(dh)),dh}var Js={exports:{}},hh={},mh;function Fx(){return mh||(mh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n,r=""){return(n==="/"?"/index":/^\/index(\/|$)/.test(n)?`/index${n}`:n)+r}})(hh)),hh}var Ks={exports:{}},_h;function Ux(){return _h||(_h=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return o}});let n;function r(){var a;return typeof n>"u"&&typeof window<"u"&&(n=((a=window.trustedTypes)==null?void 0:a.createPolicy("nextjs",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i}))||null),n}function o(a){var i;return((i=r())==null?void 0:i.createScriptURL(a))||a}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Ks,Ks.exports)),Ks.exports}var Ys={exports:{}},gh;function Qs(){return gh||(gh=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}n(t,{cancelIdleCallback:function(){return o},requestIdleCallback:function(){return r}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let i=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-i))}})},1)},o=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Ys,Ys.exports)),Ys.exports}var yh={},vh;function bh(){return vh||(vh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{getAssetToken:function(){return a},getAssetTokenQuery:function(){return i},getDeploymentId:function(){return r},getDeploymentIdQuery:function(){return o}});let n;typeof window<"u"?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=__OM_EMBED_CONFIG__.NEXT_DEPLOYMENT_ID||void 0;function r(){return n}function o(s=!1){let c=r();return c?`${s?"&":"?"}dpl=${c}`:""}function a(){return __OM_EMBED_CONFIG__.NEXT_SUPPORTS_IMMUTABLE_ASSETS?void 0:__OM_EMBED_CONFIG__.NEXT_DEPLOYMENT_ID}function i(s=!1){let c=a();return c?`${s?"&":"?"}dpl=${c}`:""}})(yh)),yh}var Eh={},Sh;function Bx(){return Sh||(Sh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"encodeURIPath",{enumerable:!0,get:function(){return t}});function t(n){return n.split("/").map(r=>encodeURIComponent(r)).join("/")}})(Eh)),Eh}var Zs={exports:{}},wh;function Hx(){return wh||(wh=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return o}});const n=Qs(),r=3800;function o(a,i,s){return new Promise((c,u)=>{let p=!1;a.then(l=>{p=!0,c(l)}).catch(u),(0,n.requestIdleCallback)(()=>setTimeout(()=>{p||u(i)},r))})}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Zs,Zs.exports)),Zs.exports}var Rh;function qx(){return Rh||(Rh=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(E,S){for(var y in S)Object.defineProperty(E,y,{enumerable:!0,get:S[y]})}n(t,{createRouteLoader:function(){return v},getClientBuildManifest:function(){return b},isAssetError:function(){return d},markAssetError:function(){return l}});const r=On();Fx();const o=Ux(),a=Qs(),i=bh(),s=Bx(),c=Hx();function u(E,S,y){let P=S.get(E);if(P)return"future"in P?P.future:Promise.resolve(P);let T;const O=new Promise(N=>{T=N});return S.set(E,{resolve:T,future:O}),y?y().then(N=>(T(N),N)).catch(N=>{throw S.delete(E),N}):O}const p=Symbol("ASSET_LOAD_ERROR");function l(E){return Object.defineProperty(E,p,{})}function d(E){return E&&p in E}function h(E){try{return E=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||E.relList.supports("prefetch")}catch{return!1}}const f=h();function m(E,S,y){return new Promise((P,T)=>{const O=`
|
|
489
|
-
link[rel="prefetch"][href^="${E}"],
|
|
490
|
-
link[rel="preload"][href^="${E}"],
|
|
491
|
-
script[src^="${E}"]`;if(document.querySelector(O))return P();y=document.createElement("link"),y.as=S,y.rel="prefetch",y.crossOrigin=__OM_EMBED_CONFIG__.__NEXT_CROSS_ORIGIN,y.onload=P,y.onerror=()=>T(l(Object.defineProperty(new Error(`Failed to prefetch: ${E}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),y.href=E,document.head.appendChild(y)})}function _(E,S){return new Promise((y,P)=>{S=document.createElement("script"),S.onload=y,S.onerror=()=>P(l(Object.defineProperty(new Error(`Failed to load script: ${E}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),S.crossOrigin=__OM_EMBED_CONFIG__.__NEXT_CROSS_ORIGIN,S.src=E,document.body.appendChild(S)})}let g;function b(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);const E=new Promise(S=>{const y=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{S(self.__BUILD_MANIFEST),y&&y()}});return(0,c.resolvePromiseWithTimeout)(E,l(Object.defineProperty(new Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),g)}function R(E,S){return b().then(y=>{if(!(S in y))throw l(Object.defineProperty(new Error(`Failed to lookup route: ${S}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));const P=y[S].map(T=>E+"/_next/"+(0,s.encodeURIPath)(T));return{scripts:P.filter(T=>T.endsWith(".js")).map(T=>(0,o.__unsafeCreateTrustedScriptURL)(T)+(0,i.getAssetTokenQuery)()),css:P.filter(T=>T.endsWith(".css")).map(T=>T+(0,i.getAssetTokenQuery)())}})}function v(E){const S=new Map,y=new Map,P=new Map,T=new Map,O=new Set;function N(C){var j;if(!__OM_EMBED_CONFIG__.__NEXT_TURBOPACK_SHARED_RUNTIME||O.has(C))return;const F=(j=self.__TURBOPACK_PAGE_BOOTSTRAP)==null?void 0:j[C],z=self.__TURBOPACK_CHUNK_LOADING_GLOBAL;F!=null&&(O.add(C),self[z].push(F))}function k(C){{let j=y.get(C.toString());return j||(document.querySelector(`script[src^="${C}"]`)?Promise.resolve():(y.set(C.toString(),j=_(C)),j))}}function B(C){let j=P.get(C);return j||(P.set(C,j=fetch(C,{credentials:"same-origin"}).then(F=>{if(!F.ok)throw Object.defineProperty(new Error(`Failed to load stylesheet: ${C}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return F.text().then(z=>({href:C,content:z}))}).catch(F=>{throw l(F)})),j)}return{whenEntrypoint(C){return u(C,S)},onEntrypoint(C,j){(j?Promise.resolve().then(()=>j()).then(F=>({component:F&&F.default||F,exports:F}),F=>({error:F})):Promise.resolve(void 0)).then(F=>{const z=S.get(C);z&&"resolve"in z?F&&(S.set(C,F),z.resolve(F)):(F?S.set(C,F):S.delete(C),T.delete(C))})},loadRoute(C,j){return u(C,T,()=>{let F;return(0,c.resolvePromiseWithTimeout)(R(E,C).then(({scripts:z,css:$})=>Promise.all([S.has(C)?[]:Promise.all(z.map(k)).then(D=>(N(C),D)),Promise.all($.map(B))])).then(z=>this.whenEntrypoint(C).then($=>({entrypoint:$,styles:z[1]}))),l(Object.defineProperty(new Error(`Route did not complete loading: ${C}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),g).then(({entrypoint:z,styles:$})=>{const D=Object.assign({styles:$},z);return"error"in z?z:D}).catch(z=>{if(j)throw z;return{error:z}}).finally(()=>F==null?void 0:F())})},prefetch(C){let j;return(j=navigator.connection)&&(j.saveData||/2g/.test(j.effectiveType))?Promise.resolve():R(E,C).then(F=>Promise.all(f?F.scripts.map(z=>m(z.toString(),"script")):[])).then(()=>{(0,a.requestIdleCallback)(()=>this.loadRoute(C,!0).catch(()=>{}))}).catch(()=>{})}}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Js,Js.exports)),Js.exports}var ec={exports:{}},Ph={},Th;function Wx(){return Th||(Th=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return t}});const t=On()._(Ro).default.createContext({})})(Ph)),Ph}var tc={exports:{}},Oh;function zx(){return Oh||(Oh=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},r=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(i){return["async","defer","noModule"].includes(i)}function a(i,s){for(const[c,u]of Object.entries(s)){if(!s.hasOwnProperty(c)||r.includes(c)||u===void 0)continue;const p=n[c]||c.toLowerCase();i.tagName==="SCRIPT"&&o(p)?i[p]=!!u:i.setAttribute(p,String(u)),(u===!1||i.tagName==="SCRIPT"&&o(p)&&(!u||u==="false"))&&(i.setAttribute(p,""),i.removeAttribute(p))}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(tc,tc.exports)),tc.exports}var xh={},Ih;function Gx(){return Ih||(Ih=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{ESCAPE_REGEX:function(){return r},htmlEscapeAttributeString:function(){return s},htmlEscapeJsonString:function(){return i}});const n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},a=/[&"'<>]/g;function i(c){return c.replace(r,u=>n[u])}function s(c){return c.replace(a,u=>o[u])}})(xh)),xh}var Ah;function Xx(){return Ah||(Ah=1,(function(e,t){"use client";Object.defineProperty(t,"__esModule",{value:!0});function n(S,y){for(var P in y)Object.defineProperty(S,P,{enumerable:!0,get:y[P]})}n(t,{default:function(){return E},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return R}});const r=On(),o=Vs(),a=lu,i=r._(By),s=o._(Ro),c=Wx(),u=zx(),p=Qs(),l=Gx(),d=new Map,h=new Set,f=S=>{if(i.default.preinit){S.forEach(y=>{i.default.preinit(y,{as:"style"})});return}if(typeof window<"u"){let y=document.head;S.forEach(P=>{let T=document.createElement("link");T.type="text/css",T.rel="stylesheet",T.href=P,y.appendChild(T)})}},m=S=>{const{src:y,id:P,onLoad:T=()=>{},onReady:O=null,dangerouslySetInnerHTML:N,children:k="",strategy:B="afterInteractive",onError:C,stylesheets:j}=S,F=P||y;if(F&&h.has(F))return;if(d.has(y)){h.add(F),d.get(y).then(T,C);return}const z=()=>{O&&O(),h.add(F)},$=document.createElement("script"),D=new Promise((H,Z)=>{$.addEventListener("load",function(te){H(),T&&T.call(this,te),z()}),$.addEventListener("error",function(te){Z(te)})}).catch(function(H){C&&C(H)});N?($.innerHTML=N.__html||"",z()):k?($.textContent=typeof k=="string"?k:Array.isArray(k)?k.join(""):"",z()):y&&($.src=y,d.set(y,D)),(0,u.setAttributesFromProps)($,S),B==="worker"&&$.setAttribute("type","text/partytown"),$.setAttribute("data-nscript",B),j&&f(j),document.body.appendChild($)};function _(S){const{strategy:y="afterInteractive"}=S;y==="lazyOnload"?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(S))}):m(S)}function g(S){document.readyState==="complete"?(0,p.requestIdleCallback)(()=>m(S)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(S))})}function b(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(S=>{const y=S.id||S.getAttribute("src");h.add(y)})}function R(S){S.forEach(_),b()}function v(S){const{id:y,src:P="",onLoad:T=()=>{},onReady:O=null,strategy:N="afterInteractive",onError:k,stylesheets:B,...C}=S;let{updateScripts:j,scripts:F,getIsSsr:z,appDir:$,nonce:D}=(0,s.useContext)(c.HeadManagerContext);D=C.nonce||D;const H=(0,s.useRef)(!1);(0,s.useEffect)(()=>{const te=y||P;H.current||(O&&te&&h.has(te)&&O(),H.current=!0)},[O,y,P]);const Z=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{Z.current||(N==="afterInteractive"?m(S):N==="lazyOnload"&&g(S),Z.current=!0)},[S,N]),(N==="beforeInteractive"||N==="worker")&&(j?(F[N]=(F[N]||[]).concat([{id:y,src:P,onLoad:T,onReady:O,onError:k,...C,nonce:D}]),j(F)):z&&z()?h.add(y||P):z&&!z()&&m({...S,nonce:D})),$){if(B&&B.forEach(te=>{i.default.preinit(te,{as:"style"})}),N==="beforeInteractive")return P?(i.default.preload(P,C.integrity?{as:"script",integrity:C.integrity,nonce:D,crossOrigin:C.crossOrigin}:{as:"script",nonce:D,crossOrigin:C.crossOrigin}),(0,a.jsx)("script",{nonce:D,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,l.htmlEscapeJsonString)(JSON.stringify([P,{...C,id:y}]))})`}})):(C.dangerouslySetInnerHTML&&(C.children=C.dangerouslySetInnerHTML.__html,delete C.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:D,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,l.htmlEscapeJsonString)(JSON.stringify([0,{...C,id:y}]))})`}}));N==="afterInteractive"&&P&&i.default.preload(P,C.integrity?{as:"script",integrity:C.integrity,nonce:D,crossOrigin:C.crossOrigin}:{as:"script",nonce:D,crossOrigin:C.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});const E=v;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(ec,ec.exports)),ec.exports}var kh={},Ch={},Nh;function Vx(){return Nh||(Nh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,a){for(var i in a)Object.defineProperty(o,i,{enumerable:!0,get:a[i]})}t(e,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}});function n(o){return Object.prototype.toString.call(o)}function r(o){if(n(o)!=="[object Object]")return!1;const a=Object.getPrototypeOf(o);return a===null||a.hasOwnProperty("isPrototypeOf")}})(Ch)),Ch}var Mh;function Lh(){return Mh||(Mh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{default:function(){return o},getProperError:function(){return a}});const n=Vx();function r(i){const s=new WeakSet;return JSON.stringify(i,(c,u)=>{if(typeof u=="object"&&u!==null){if(s.has(u))return"[Circular]";s.add(u)}return u})}function o(i){return typeof i=="object"&&i!==null&&"name"in i&&"message"in i}function a(i){return o(i)?i:Object.defineProperty(new Error((0,n.isPlainObject)(i)?r(i):i+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}})(kh)),kh}var Dh={},jh={},$h={},Fh;function Jx(){return Fh||(Fh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}t(e,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return r}});class n{insert(i){this._insert(i.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(i="/"){const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const c=s.map(u=>this.children.get(u)._smoosh(`${i}${u}/`)).reduce((u,p)=>[...u,...p],[]);if(this.slugName!==null&&c.push(...this.children.get("[]")._smoosh(`${i}[${this.slugName}]/`)),!this.placeholder){const u=i==="/"?"/":i.slice(0,-1);if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${u}" and "${u}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});c.unshift(u)}return this.restSlugName!==null&&c.push(...this.children.get("[...]")._smoosh(`${i}[...${this.restSlugName}]/`)),this.optionalRestSlugName!==null&&c.push(...this.children.get("[[...]]")._smoosh(`${i}[[...${this.optionalRestSlugName}]]/`)),c}_insert(i,s,c){if(i.length===0){this.placeholder=!1;return}if(c)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let u=i[0];if(u.startsWith("[")&&u.endsWith("]")){let p=function(h,f){if(h!==null&&h!==f)throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${h}' !== '${f}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});s.forEach(m=>{if(m===f)throw Object.defineProperty(new Error(`You cannot have the same slug name "${f}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(m.replace(/\W/g,"")===u.replace(/\W/g,""))throw Object.defineProperty(new Error(`You cannot have the slug names "${m}" and "${f}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),s.push(f)},l=u.slice(1,-1),d=!1;if(l.startsWith("[")&&l.endsWith("]")&&(l=l.slice(1,-1),d=!0),l.startsWith("\u2026"))throw Object.defineProperty(new Error(`Detected a three-dot character ('\u2026') at ('${l}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(l.startsWith("...")&&(l=l.substring(3),c=!0),l.startsWith("[")||l.endsWith("]"))throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${l}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(l.startsWith("."))throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${l}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});if(c)if(d){if(this.restSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${i[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});p(this.optionalRestSlugName,l),this.optionalRestSlugName=l,u="[[...]]"}else{if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${i[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});p(this.restSlugName,l),this.restSlugName=l,u="[...]"}else{if(d)throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${i[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});p(this.slugName,l),this.slugName=l,u="[]"}}this.children.has(u)||this.children.set(u,new n),this.children.get(u)._insert(i.slice(1),s,c)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(a){const i=new n;return a.forEach(s=>i.insert(s)),i.smoosh()}function o(a,i){const s={},c=[];for(let u=0;u<a.length;u++){const p=i(a[u]);s[p]=u,c[u]=p}return r(c).map(u=>a[s[u]])}})($h)),$h}var Uh={},Bh={},Hh={},qh={},Wh;function Kx(){return Wh||(Wh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.startsWith("/")?n:`/${n}`}})(qh)),qh}var zh={},Gh;function Xh(){return Gh||(Gh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,d){for(var h in d)Object.defineProperty(l,h,{enumerable:!0,get:d[h]})}t(e,{DEFAULT_SEGMENT_KEY:function(){return u},NOT_FOUND_SEGMENT_KEY:function(){return p},PAGE_SEGMENT_KEY:function(){return c},addSearchParamsIfPageSegment:function(){return a},computeSelectedLayoutSegment:function(){return i},getSegmentValue:function(){return n},getSelectedLayoutSegmentPath:function(){return s},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return o}});function n(l){return Array.isArray(l)?l[1]:l}function r(l){return l[0]==="("&&l.endsWith(")")}function o(l){return l.startsWith("@")&&l!=="@children"}function a(l,d){if(l.includes(c)){const h=JSON.stringify(d);return h!=="{}"?c+"?"+h:c}return l}function i(l,d){if(!l||l.length===0)return null;const h=d==="children"?l[0]:l[l.length-1];return h===u?null:h}function s(l,d,h=!0,f=[]){let m;if(h)m=l[1][d];else{const b=l[1];m=b.children??Object.values(b)[0]}if(!m)return f;const _=m[0];let g=n(_);return!g||g.startsWith(c)?f:(f.push(g),s(m,d,!1,f))}const c="__PAGE__",u="__DEFAULT__",p="/_not-found"})(zh)),zh}var Vh;function Yx(){return Vh||(Vh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{compareAppPaths:function(){return a},normalizeAppPath:function(){return o},normalizeRscURL:function(){return i}});const n=Kx(),r=Xh();function o(s){return(0,n.ensureLeadingSlash)(s.split("/").reduce((c,u,p,l)=>!u||(0,r.isGroupSegment)(u)||u[0]==="@"||(u==="page"||u==="route")&&p===l.length-1?c:`${c}/${u}`,""))}function a(s,c){const u=s.includes("/@"),p=c.includes("/@");return u&&!p?-1:!u&&p?1:s.localeCompare(c)}function i(s){return s.replace(/\.rsc($|\?)/,"$1")}})(Hh)),Hh}var Jh;function oo(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return o}});const n=Yx(),r=["(..)(..)","(.)","(..)","(...)"];function o(i){return i.split("/").find(s=>r.find(c=>s.startsWith(c)))!==void 0}function a(i){let s,c,u;for(const p of i.split("/"))if(c=r.find(l=>p.startsWith(l)),c){[s,u]=i.split(c,2);break}if(!s||!c||!u)throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(s=(0,n.normalizeAppPath)(s),c){case"(.)":s==="/"?u=`/${u}`:u=s+"/"+u;break;case"(..)":if(s==="/")throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});u=s.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const p=s.split("/");if(p.length<=2)throw Object.defineProperty(new Error(`Invalid interception route: ${i}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});u=p.slice(0,-2).concat(u).join("/");break;default:throw Object.defineProperty(new Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:s,interceptedRoute:u}}})(Bh)),Bh}var Kh;function Yh(){return Kh||(Kh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return o}});const t=oo(),n=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,r=/\/\[[^/]+\](?=\/|$)/;function o(a,i=!0){return(0,t.isInterceptionRouteAppPath)(a)&&(a=(0,t.extractInterceptionRouteInformation)(a).interceptedRoute),i?r.test(a):n.test(a)}})(Uh)),Uh}var Qh;function Zh(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,a){for(var i in a)Object.defineProperty(o,i,{enumerable:!0,get:a[i]})}t(e,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=Jx(),r=Yh()})(jh)),jh}var em={},tm;function Qx(){return tm||(tm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathSep",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\\/g,"/")}})(em)),em}var nm;function Zx(){return nm||(nm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"denormalizePagePath",{enumerable:!0,get:function(){return r}});const t=Zh(),n=Qx();function r(o){let a=(0,n.normalizePathSep)(o);return a.startsWith("/index/")&&!(0,t.isDynamicRoute)(a)?a.slice(6):a!=="/index"?a:"/"}})(Dh)),Dh}var rm={},om;function nc(){return om||(om=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const t=new WeakMap;function n(r,o){if(!o)return{pathname:r};let a=t.get(o);a||(a=o.map(p=>p.toLowerCase()),t.set(o,a));let i;const s=r.split("/",2);if(!s[1])return{pathname:r};const c=s[1].toLowerCase(),u=a.indexOf(c);return u<0?{pathname:r}:(i=o[u],r=r.slice(i.length+1)||"/",{pathname:r,detectedLocale:i})}})(rm)),rm}var am={},im;function eI(){return im||(im=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(){const n=Object.create(null);return{on(r,o){(n[r]||(n[r]=[])).push(o)},off(r,o){n[r]&&n[r].splice(n[r].indexOf(o)>>>0,1)},emit(r,...o){(n[r]||[]).slice().map(a=>{a(...o)})}}}})(am)),am}var sm={},cm;function ao(){return cm||(cm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,E){for(var S in E)Object.defineProperty(v,S,{enumerable:!0,get:E[S]})}t(e,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return _},SP:function(){return d},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return c},getLocationOrigin:function(){return i},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return u},loadGetInitialProps:function(){return l},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return R}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(v){let E=!1,S;return(...y)=>(E||(E=!0,S=v(...y)),S)}const o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=v=>{const E=v.charCodeAt(0);return E>=65&&E<=90||E>=97&&E<=122?o.test(v):!1};function i(){const{protocol:v,hostname:E,port:S}=window.location;return`${v}//${E}${S?":"+S:""}`}function s(){const{href:v}=window.location,E=i();return v.substring(E.length)}function c(v){return typeof v=="string"?v:v.displayName||v.name||"Unknown"}function u(v){return v.finished||v.headersSent}function p(v){const E=v.split("?");return E[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(E[1]?`?${E.slice(1).join("?")}`:"")}async function l(v,E){const S=E.res||E.ctx&&E.ctx.res;if(!v.getInitialProps)return E.ctx&&E.Component?{pageProps:await l(E.Component,E.ctx)}:{};const y=await v.getInitialProps(E);if(S&&u(S))return y;if(!y){const P=`"${c(v)}.getInitialProps()" should resolve to an object. But found "${y}" instead.`;throw Object.defineProperty(new Error(P),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0})}return y}const d=typeof performance<"u",h=d&&["mark","measure","getEntriesByName"].every(v=>typeof performance[v]=="function");class f extends Error{}class m extends Error{}class _ extends Error{constructor(E){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${E}`}}class g extends Error{constructor(E,S){super(),this.message=`Failed to load static file for page: ${E} ${S}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function R(v){return JSON.stringify({message:v.message,stack:v.stack})}})(sm)),sm}var um={},lm={},pm;function La(){return pm||(pm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}});function n(i){const s={};for(const[c,u]of i.entries()){const p=s[c];typeof p>"u"?s[c]=u:Array.isArray(p)?p.push(u):s[c]=[p,u]}return s}function r(i){return typeof i=="string"?i:typeof i=="number"&&!isNaN(i)||typeof i=="boolean"?String(i):""}function o(i){const s=new URLSearchParams;for(const[c,u]of Object.entries(i))if(Array.isArray(u))for(const p of u)s.append(c,r(p));else s.set(c,r(u));return s}function a(i,...s){for(const c of s){for(const u of c.keys())i.delete(u);for(const[u,p]of c.entries())i.append(u,p)}return i}})(lm)),lm}var dm;function rc(){return dm||(dm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseRelativeUrl",{enumerable:!0,get:function(){return r}});const t=ao(),n=La();function r(o,a,i=!0){const s=new URL(typeof window>"u"?"http://n":(0,t.getLocationOrigin)()),c=a?new URL(a,s):o.startsWith(".")?new URL(typeof window>"u"?"http://n":window.location.href):s,{pathname:u,searchParams:p,search:l,hash:d,href:h,origin:f}=o.startsWith("/")?new URL(`${c.protocol}//${c.host}${o}`):new URL(o,c);if(f!==s.origin)throw Object.defineProperty(new Error(`invariant: invalid relative URL, router received ${o}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{auth:null,host:null,hostname:null,pathname:u,port:null,protocol:null,query:i?(0,n.searchParamsToUrlQuery)(p):void 0,search:l,hash:d,href:h.slice(f.length),slashes:null}}})(um)),um}var fm={},hm={},mm={exports:{}},_m;function gm(){return _m||(_m=1,(()=>{typeof __nccwpck_require__<"u"&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0;function n(m){for(var _=[],g=0;g<m.length;){var b=m[g];if(b==="*"||b==="+"||b==="?"){_.push({type:"MODIFIER",index:g,value:m[g++]});continue}if(b==="\\"){_.push({type:"ESCAPED_CHAR",index:g++,value:m[g++]});continue}if(b==="{"){_.push({type:"OPEN",index:g,value:m[g++]});continue}if(b==="}"){_.push({type:"CLOSE",index:g,value:m[g++]});continue}if(b===":"){for(var R="",v=g+1;v<m.length;){var E=m.charCodeAt(v);if(E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122||E===95){R+=m[v++];continue}break}if(!R)throw new TypeError("Missing parameter name at ".concat(g));_.push({type:"NAME",index:g,value:R}),g=v;continue}if(b==="("){var S=1,y="",v=g+1;if(m[v]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(v));for(;v<m.length;){if(m[v]==="\\"){y+=m[v++]+m[v++];continue}if(m[v]===")"){if(S--,S===0){v++;break}}else if(m[v]==="("&&(S++,m[v+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(v));y+=m[v++]}if(S)throw new TypeError("Unbalanced pattern at ".concat(g));if(!y)throw new TypeError("Missing pattern at ".concat(g));_.push({type:"PATTERN",index:g,value:y}),g=v;continue}_.push({type:"CHAR",index:g,value:m[g++]})}return _.push({type:"END",index:g,value:""}),_}function r(m,_){_===void 0&&(_={});for(var g=n(m),b=_.prefixes,R=b===void 0?"./":b,v=_.delimiter,E=v===void 0?"/#?":v,S=[],y=0,P=0,T="",O=function(ie){if(P<g.length&&g[P].type===ie)return g[P++].value},N=function(ie){var pe=O(ie);if(pe!==void 0)return pe;var Pe=g[P],ve=Pe.type,Je=Pe.index;throw new TypeError("Unexpected ".concat(ve," at ").concat(Je,", expected ").concat(ie))},k=function(){for(var ie="",pe;pe=O("CHAR")||O("ESCAPED_CHAR");)ie+=pe;return ie},B=function(ie){for(var pe=0,Pe=E;pe<Pe.length;pe++){var ve=Pe[pe];if(ie.indexOf(ve)>-1)return!0}return!1},C=function(ie){var pe=S[S.length-1],Pe=ie||(pe&&typeof pe=="string"?pe:"");if(pe&&!Pe)throw new TypeError('Must have text between two parameters, missing text after "'.concat(pe.name,'"'));return!Pe||B(Pe)?"[^".concat(c(E),"]+?"):"(?:(?!".concat(c(Pe),")[^").concat(c(E),"])+?")};P<g.length;){var j=O("CHAR"),F=O("NAME"),z=O("PATTERN");if(F||z){var $=j||"";R.indexOf($)===-1&&(T+=$,$=""),T&&(S.push(T),T=""),S.push({name:F||y++,prefix:$,suffix:"",pattern:z||C($),modifier:O("MODIFIER")||""});continue}var D=j||O("ESCAPED_CHAR");if(D){T+=D;continue}T&&(S.push(T),T="");var H=O("OPEN");if(H){var $=k(),Z=O("NAME")||"",te=O("PATTERN")||"",ye=k();N("CLOSE"),S.push({name:Z||(te?y++:""),pattern:Z&&!te?C($):te,prefix:$,suffix:ye,modifier:O("MODIFIER")||""});continue}N("END")}return S}t.parse=r;function o(m,_){return a(r(m,_),_)}t.compile=o;function a(m,_){_===void 0&&(_={});var g=u(_),b=_.encode,R=b===void 0?function(y){return y}:b,v=_.validate,E=v===void 0?!0:v,S=m.map((function(y){if(typeof y=="object")return new RegExp("^(?:".concat(y.pattern,")$"),g)}));return function(y){for(var P="",T=0;T<m.length;T++){var O=m[T];if(typeof O=="string"){P+=O;continue}var N=y?y[O.name]:void 0,k=O.modifier==="?"||O.modifier==="*",B=O.modifier==="*"||O.modifier==="+";if(Array.isArray(N)){if(!B)throw new TypeError('Expected "'.concat(O.name,'" to not repeat, but got an array'));if(N.length===0){if(k)continue;throw new TypeError('Expected "'.concat(O.name,'" to not be empty'))}for(var C=0;C<N.length;C++){var j=R(N[C],O);if(E&&!S[T].test(j))throw new TypeError('Expected all "'.concat(O.name,'" to match "').concat(O.pattern,'", but got "').concat(j,'"'));P+=O.prefix+j+O.suffix}continue}if(typeof N=="string"||typeof N=="number"){var j=R(String(N),O);if(E&&!S[T].test(j))throw new TypeError('Expected "'.concat(O.name,'" to match "').concat(O.pattern,'", but got "').concat(j,'"'));P+=O.prefix+j+O.suffix;continue}if(!k){var F=B?"an array":"a string";throw new TypeError('Expected "'.concat(O.name,'" to be ').concat(F))}}return P}}t.tokensToFunction=a;function i(m,_){var g=[],b=f(m,g,_);return s(b,g,_)}t.match=i;function s(m,_,g){g===void 0&&(g={});var b=g.decode,R=b===void 0?function(v){return v}:b;return function(v){var E=m.exec(v);if(!E)return!1;for(var S=E[0],y=E.index,P=Object.create(null),T=function(N){if(E[N]===void 0)return"continue";var k=_[N-1];k.modifier==="*"||k.modifier==="+"?P[k.name]=E[N].split(k.prefix+k.suffix).map((function(B){return R(B,k)})):P[k.name]=R(E[N],k)},O=1;O<E.length;O++)T(O);return{path:S,index:y,params:P}}}t.regexpToFunction=s;function c(m){return m.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function u(m){return m&&m.sensitive?"":"i"}function p(m,_){if(!_)return m;for(var g=/\((?:\?<(.*?)>)?(?!\?)/g,b=0,R=g.exec(m.source);R;)_.push({name:R[1]||b++,prefix:"",suffix:"",modifier:"",pattern:""}),R=g.exec(m.source);return m}function l(m,_,g){var b=m.map((function(R){return f(R,_,g).source}));return new RegExp("(?:".concat(b.join("|"),")"),u(g))}function d(m,_,g){return h(r(m,g),_,g)}function h(m,_,g){g===void 0&&(g={});for(var b=g.strict,R=b===void 0?!1:b,v=g.start,E=v===void 0?!0:v,S=g.end,y=S===void 0?!0:S,P=g.encode,T=P===void 0?function(pe){return pe}:P,O=g.delimiter,N=O===void 0?"/#?":O,k=g.endsWith,B=k===void 0?"":k,C="[".concat(c(B),"]|$"),j="[".concat(c(N),"]"),F=E?"^":"",z=0,$=m;z<$.length;z++){var D=$[z];if(typeof D=="string")F+=c(T(D));else{var H=c(T(D.prefix)),Z=c(T(D.suffix));if(D.pattern)if(_&&_.push(D),H||Z)if(D.modifier==="+"||D.modifier==="*"){var te=D.modifier==="*"?"?":"";F+="(?:".concat(H,"((?:").concat(D.pattern,")(?:").concat(Z).concat(H,"(?:").concat(D.pattern,"))*)").concat(Z,")").concat(te)}else F+="(?:".concat(H,"(").concat(D.pattern,")").concat(Z,")").concat(D.modifier);else{if(D.modifier==="+"||D.modifier==="*")throw new TypeError('Can not repeat "'.concat(D.name,'" without a prefix and suffix'));F+="(".concat(D.pattern,")").concat(D.modifier)}else F+="(?:".concat(H).concat(Z,")").concat(D.modifier)}}if(y)R||(F+="".concat(j,"?")),F+=g.endsWith?"(?=".concat(C,")"):"$";else{var ye=m[m.length-1],ie=typeof ye=="string"?j.indexOf(ye[ye.length-1])>-1:ye===void 0;R||(F+="(?:".concat(j,"(?=").concat(C,"))?")),ie||(F+="(?=".concat(j,"|").concat(C,")"))}return new RegExp(F,u(g))}t.tokensToRegexp=h;function f(m,_,g){return m instanceof RegExp?p(m,_):Array.isArray(m)?l(m,_,g):d(m,_,g)}t.pathToRegexp=f})(),mm.exports=e})()),mm.exports}var ym={},vm;function tI(){return vm||(vm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{PARAM_SEPARATOR:function(){return n},hasAdjacentParameterIssues:function(){return r},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return a},stripNormalizedSeparators:function(){return i},stripParameterSeparators:function(){return s}});const n="_NEXTSEP_";function r(c){return typeof c!="string"?!1:!!(/\/\(\.{1,3}\):[^/\s]+/.test(c)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(c))}function o(c){let u=c;return u=u.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${n}:$2`),u=u.replace(/:([^:/\s)]+)(?=:)/g,`:$1${n}`),u}function a(c){return c.map(u=>typeof u=="object"&&u!==null&&"modifier"in u&&(u.modifier==="*"||u.modifier==="+")&&"prefix"in u&&"suffix"in u&&u.prefix===""&&u.suffix===""?{...u,prefix:"/"}:u)}function i(c){return c.replace(new RegExp(`\\)${n}`,"g"),")")}function s(c){const u={};for(const[p,l]of Object.entries(c))typeof l=="string"?u[p]=l.replace(new RegExp(`^${n}`),""):Array.isArray(l)?u[p]=l.map(d=>typeof d=="string"?d.replace(new RegExp(`^${n}`),""):d):u[p]=l;return u}})(ym)),ym}var bm;function Em(){return bm||(bm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{safeCompile:function(){return a},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return i},safeRouteMatcher:function(){return s}});const n=gm(),r=tI();function o(c,u,p){if(typeof c!="string")return(0,n.pathToRegexp)(c,u,p);const l=(0,r.hasAdjacentParameterIssues)(c),d=l?(0,r.normalizeAdjacentParameters)(c):c;try{return(0,n.pathToRegexp)(d,u,p)}catch(h){if(!l)try{const f=(0,r.normalizeAdjacentParameters)(c);return(0,n.pathToRegexp)(f,u,p)}catch{throw h}throw h}}function a(c,u){const p=(0,r.hasAdjacentParameterIssues)(c),l=p?(0,r.normalizeAdjacentParameters)(c):c;try{const d=(0,n.compile)(l,u);return p?h=>(0,r.stripNormalizedSeparators)(d(h)):d}catch(d){if(!p)try{const h=(0,r.normalizeAdjacentParameters)(c),f=(0,n.compile)(h,u);return m=>(0,r.stripNormalizedSeparators)(f(m))}catch{throw d}throw d}}function i(c,u){const p=(0,n.regexpToFunction)(c,u||[]);return l=>{const d=p(l);return d?{...d,params:(0,r.stripParameterSeparators)(d.params)}:!1}}function s(c){return u=>{const p=c(u);return p?(0,r.stripParameterSeparators)(p):!1}}})(hm)),hm}var Sm;function oc(){return Sm||(Sm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});const t=ao(),n=Em();function r({re:o,groups:a}){const i=s=>{const c=o.exec(s);if(!c)return!1;const u=l=>{try{return decodeURIComponent(l)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},p={};for(const[l,d]of Object.entries(a)){const h=c[d.pos];h!==void 0&&(d.repeat?p[l]=h.split("/").map(f=>u(f)):p[l]=u(h))}return p};return(0,n.safeRouteMatcher)(i)}})(fm)),fm}var wm={},Rm={},Pm;function Tm(){return Pm||(Pm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(me,ne){for(var ce in ne)Object.defineProperty(me,ce,{enumerable:!0,get:ne[ce]})}t(e,{ACTION_SUFFIX:function(){return h},APP_DIR_ALIAS:function(){return te},CACHE_ONE_YEAR_SECONDS:function(){return k},DOT_NEXT_ALIAS:function(){return H},ESLINT_DEFAULT_DIRS:function(){return A},GSP_NO_RETURNED_VALUE:function(){return we},GSSP_COMPONENT_MEMBER_ERROR:function(){return ze},GSSP_NO_RETURNED_VALUE:function(){return $e},HTML_CONTENT_TYPE_HEADER:function(){return r},INFINITE_CACHE:function(){return B},INSTRUMENTATION_HOOK_FILENAME:function(){return $},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return s},MIDDLEWARE_FILENAME:function(){return C},MIDDLEWARE_LOCATION_REGEXP:function(){return j},NEXT_BODY_SUFFIX:function(){return _},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return O},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return R},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return v},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return N},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return T},NEXT_CACHE_TAGS_HEADER:function(){return b},NEXT_CACHE_TAG_MAX_ITEMS:function(){return y},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return i},NEXT_META_SUFFIX:function(){return m},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return g},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return E},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return S},NON_STANDARD_NODE_ENV:function(){return K},PAGES_DIR_ALIAS:function(){return D},PRERENDER_REVALIDATE_HEADER:function(){return c},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return u},PROXY_FILENAME:function(){return F},PROXY_LOCATION_REGEXP:function(){return z},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return xt},ROOT_DIR_ALIAS:function(){return Z},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return nt},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Je},RSC_ACTION_PROXY_ALIAS:function(){return pe},RSC_ACTION_VALIDATE_ALIAS:function(){return ie},RSC_CACHE_WRAPPER_ALIAS:function(){return Pe},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return ve},RSC_MOD_REF_PROXY_ALIAS:function(){return ye},RSC_SEGMENTS_DIR_SUFFIX:function(){return p},RSC_SEGMENT_SUFFIX:function(){return l},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return Te},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return Ut},SERVER_PROPS_SSG_CONFLICT:function(){return It},SERVER_RUNTIME:function(){return x},SSG_FALLBACK_EXPORT_ERROR:function(){return I},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return Ft},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return fe},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return n},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return De},WEBPACK_LAYERS:function(){return se},WEBPACK_RESOURCE_QUERIES:function(){return he},WEB_SOCKET_MAX_RECONNECTIONS:function(){return M}});const n="text/plain",r="text/html; charset=utf-8",o="application/json; charset=utf-8",a="nxtP",i="nxtI",s="x-matched-path",c="x-prerender-revalidate",u="x-prerender-revalidate-if-generated",p=".segments",l=".segment.rsc",d=".rsc",h=".action",f=".json",m=".meta",_=".body",g="x-nextjs-deployment-id",b="x-next-cache-tags",R="x-next-revalidated-tags",v="x-next-revalidate-tag-token",E="next-resume",S="x-next-resume-state-length",y=128,P=256,T=1024,O="_N_T_",N="_N_RP_",k=31536e3,B=4294967294,C="middleware",j=`(?:src/)?${C}`,F="proxy",z=`(?:src/)?${F}`,$="instrumentation",D="private-next-pages",H="private-dot-next",Z="private-next-root-dir",te="private-next-app-dir",ye="private-next-rsc-mod-ref-proxy",ie="private-next-rsc-action-validate",pe="private-next-rsc-server-reference",Pe="private-next-rsc-cache-wrapper",ve="private-next-rsc-track-dynamic-import",Je="private-next-rsc-action-encryption",nt="private-next-rsc-action-client-wrapper",xt="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",Ft="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",Ut="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",It="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",fe="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Te="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",we="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",$e="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",De="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ze="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",K='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',I="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",A=["app","pages","components","lib","src"],x={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},M=12,W={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},se={...W,GROUP:{builtinReact:[W.reactServerComponents,W.actionBrowser],serverOnly:[W.reactServerComponents,W.actionBrowser,W.instrument,W.middleware],neutralTarget:[W.apiNode,W.apiEdge],clientOnly:[W.serverSideRendering,W.appPagesBrowser],bundled:[W.reactServerComponents,W.actionBrowser,W.serverSideRendering,W.appPagesBrowser,W.shared,W.instrument,W.middleware],appPages:[W.reactServerComponents,W.serverSideRendering,W.appPagesBrowser,W.actionBrowser]}},he={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(Rm)),Rm}var Om={},xm;function Im(){return xm||(xm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const t=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(o){return t.test(o)?o.replace(n,"\\$&"):o}})(Om)),Om}var Am={},km={},Cm;function ac(){return Cm||(Cm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(r,o){super(`Invariant: ${r.endsWith(".")?r:r+"."} This is a bug in Next.js.`,o),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1179",enumerable:!1,configurable:!0}),this.name="InvariantError"}}})(km)),km}var Nm={},Mm;function nI(){return Mm||(Mm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return n}});const t=Xh();function n(r){const[o,a,i,s]=r,{layout:c,template:u}=i;let{page:p}=i;p=o===t.DEFAULT_SEGMENT_KEY?i.defaultPage:p;const l=(c==null?void 0:c[1])||(u==null?void 0:u[1])||(p==null?void 0:p[1]);return{page:p,segment:o,modules:i,conventionPath:l,parallelRoutes:a,staticSiblings:s}}})(Nm)),Nm}var Lm={},Dm={},jm;function rI(){return jm||(jm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{getParamProperties:function(){return a},getSegmentParam:function(){return r},isCatchAll:function(){return o}});const n=oo();function r(i){const s=n.INTERCEPTION_ROUTE_MARKERS.find(c=>i.startsWith(c));return s&&(i=i.slice(s.length)),i.startsWith("[[...")&&i.endsWith("]]")?{paramType:"optional-catchall",paramName:i.slice(5,-2)}:i.startsWith("[...")&&i.endsWith("]")?{paramType:s?`catchall-intercepted-${s}`:"catchall",paramName:i.slice(4,-1)}:i.startsWith("[")&&i.endsWith("]")?{paramType:s?`dynamic-intercepted-${s}`:"dynamic",paramName:i.slice(1,-1)}:null}function o(i){return i==="catchall"||i==="catchall-intercepted-(..)(..)"||i==="catchall-intercepted-(.)"||i==="catchall-intercepted-(..)"||i==="catchall-intercepted-(...)"||i==="optional-catchall"}function a(i){let s=!1,c=!1;switch(i){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":s=!0;break;case"optional-catchall":s=!0,c=!0;break}return{repeat:s,optional:c}}})(Dm)),Dm}var $m;function oI(){return $m||($m=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var g in _)Object.defineProperty(m,g,{enumerable:!0,get:_[g]})}t(e,{isInterceptionAppRoute:function(){return c},isNormalizedAppRoute:function(){return s},parseAppRouteSegment:function(){return i},parseAppRouteWithSlots:function(){return f},parseNormalizedAppRoute:function(){return h}});const n=ac(),r=rI(),o=oo();function a(m){if(!/%5b|%5d/i.test(m))return m;try{const _=decodeURIComponent(m);return(0,r.getSegmentParam)(_)?_:m}catch{return m}}function i(m){if(m==="")return null;const _=o.INTERCEPTION_ROUTE_MARKERS.find(b=>m.startsWith(b)),g=(0,r.getSegmentParam)(m);return g?{type:"dynamic",name:m,param:g,interceptionMarker:_}:m.startsWith("(")&&m.endsWith(")")?{type:"route-group",name:m,interceptionMarker:_}:m.startsWith("@")?{type:"parallel-route",name:m,interceptionMarker:_}:{type:"static",name:m,interceptionMarker:_}}function s(m){return m.normalized}function c(m){return m.interceptionMarker!==void 0&&m.interceptingRoute!==void 0&&m.interceptedRoute!==void 0}const u=0,p=1,l=2;function d(m,_){const g=m.split("/").filter(Boolean),b=[];let R,v,E;for(const y of g){const P=a(y),T=i(P);if(T){if(T.type==="route-group"&&!(_&l))throw Object.defineProperty(new n.InvariantError(`${m} is being parsed as a normalized route, but it has a route group segment.`),"__NEXT_ERROR_CODE",{value:"E1151",enumerable:!1,configurable:!0});if(T.type==="parallel-route"&&!(_&p))throw Object.defineProperty(new n.InvariantError(`${m} is being parsed as a normalized route, but it has a parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E1152",enumerable:!1,configurable:!0});if(b.push(T),T.interceptionMarker){const O=m.split(T.interceptionMarker);if(O.length!==2)throw Object.defineProperty(new Error(`Invalid interception route: ${m}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});v=d(O[0],_),E=d(O[1],_),R=T.interceptionMarker}}}const S=b.filter(y=>y.type==="dynamic");return{normalized:_===u,pathname:m,segments:b,dynamicSegments:S,interceptionMarker:R,interceptingRoute:v,interceptedRoute:E}}function h(m){return d(m,u)}function f(m){return d(m,p)}})(Lm)),Lm}var Fm={},Um={},Bm;function aI(){return Bm||(Bm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return t}});function t(n){switch(n){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";case"catchall":case"dynamic":case"optional-catchall":default:return null}}})(Um)),Um}var Hm;function iI(){return Hm||(Hm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveParamValue",{enumerable:!0,get:function(){return o}});const t=ac(),n=aI();function r(a,i,s){return a.type==="dynamic"?i[a.param.paramName]:(0,n.interceptionPrefixFromParamType)(s)===a.interceptionMarker?a.name.replace(a.interceptionMarker,""):a.name}function o(a,i,s,c,u){switch(i){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":const p=[];for(let l=s;l<c.segments.length;l++){const d=c.segments[l];if(d.type==="static"){let h=d.name;const f=(0,n.interceptionPrefixFromParamType)(i);f&&l===s&&f===d.interceptionMarker&&(h=h.replace(d.interceptionMarker,"")),p.push(h)}else{if(!u.hasOwnProperty(d.param.paramName)){if(d.param.paramType==="optional-catchall")break;return}const h=u[d.param.paramName];Array.isArray(h)?p.push(...h):p.push(h)}}if(p.length>0)return p;if(i==="optional-catchall")return;throw Object.defineProperty(new t.InvariantError(`Unexpected empty path segments match for a route "${c.pathname}" with param "${a}" of type "${i}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(s<c.segments.length){const l=c.segments[s];return l.type==="dynamic"&&!u.hasOwnProperty(l.param.paramName)?void 0:r(l,u,i)}return}}})(Fm)),Fm}var qm;function sI(){return qm||(qm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,h){for(var f in h)Object.defineProperty(d,f,{enumerable:!0,get:h[f]})}t(e,{PARAMETER_PATTERN:function(){return u},getDynamicParam:function(){return c},interpolateParallelRouteParams:function(){return s},parseMatchedParameter:function(){return l},parseParameter:function(){return p}});const n=ac(),r=nI(),o=oI(),a=iI();function i(d,h,f){let m=d[h];if(f!=null&&f.has(h)){const[_]=f.get(h);m=_}else Array.isArray(m)?m=m.map(_=>encodeURIComponent(_)):typeof m=="string"&&(m=encodeURIComponent(m));return m}function s(d,h,f,m){const _=structuredClone(h),g=[{tree:d,depth:0}],b=(0,o.parseNormalizedAppRoute)(f);for(;g.length>0;){const{tree:R,depth:v}=g.pop(),{segment:E,parallelRoutes:S}=(0,r.parseLoaderTree)(R),y=(0,o.parseAppRouteSegment)(E);if((y==null?void 0:y.type)==="dynamic"&&!_.hasOwnProperty(y.param.paramName)&&!(m!=null&&m.has(y.param.paramName))){const{paramName:T,paramType:O}=y.param,N=(0,a.resolveParamValue)(T,O,v,b,_);if(N!==void 0)_[T]=N;else if(O!=="optional-catchall")throw Object.defineProperty(new n.InvariantError(`Could not resolve param value for segment: ${T}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let P=v;y&&y.type!=="route-group"&&y.type!=="parallel-route"&&P++;for(const T of Object.values(S))g.push({tree:T,depth:P})}return _}function c(d,h,f,m,_){let g=i(d,h,m);if(!g||g.length===0){if(f==="oc")return{param:h,value:null,type:f,treeSegment:[h,"",f,_]};throw Object.defineProperty(new n.InvariantError(`Missing value for segment key: "${h}" with dynamic param type: ${f}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}const b=Array.isArray(g)?g.join("/"):g;return{param:h,value:g,treeSegment:[h,b,f,_],type:f}}const u=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(d){const h=d.match(u);return l(h?h[2]:d)}function l(d){const h=d.startsWith("[")&&d.endsWith("]");h&&(d=d.slice(1,-1));const f=d.startsWith("...");return f&&(d=d.slice(3)),{key:d,repeat:f,optional:h}}})(Am)),Am}var Wm;function ic(){return Wm||(Wm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,m){for(var _ in m)Object.defineProperty(f,_,{enumerable:!0,get:m[_]})}t(e,{getNamedMiddlewareRegex:function(){return h},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return c}});const n=Tm(),r=oo(),o=Im(),a=ro(),i=sI();function s(f,m,_){const g={};let b=1;const R=[];for(const v of(0,a.removeTrailingSlash)(f).slice(1).split("/")){const E=r.INTERCEPTION_ROUTE_MARKERS.find(y=>v.startsWith(y)),S=v.match(i.PARAMETER_PATTERN);if(E&&S&&S[2]){const{key:y,optional:P,repeat:T}=(0,i.parseMatchedParameter)(S[2]);g[y]={pos:b++,repeat:T,optional:P},R.push(`/${(0,o.escapeStringRegexp)(E)}([^/]+?)`)}else if(S&&S[2]){const{key:y,repeat:P,optional:T}=(0,i.parseMatchedParameter)(S[2]);g[y]={pos:b++,repeat:P,optional:T},_&&S[1]&&R.push(`/${(0,o.escapeStringRegexp)(S[1])}`);let O=P?T?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";_&&S[1]&&(O=O.substring(1)),R.push(O)}else R.push(`/${(0,o.escapeStringRegexp)(v)}`);m&&S&&S[3]&&R.push((0,o.escapeStringRegexp)(S[3]))}return{parameterizedRoute:R.join(""),groups:g}}function c(f,{includeSuffix:m=!1,includePrefix:_=!1,excludeOptionalTrailingSlash:g=!1}={}){const{parameterizedRoute:b,groups:R}=s(f,m,_);let v=b;return g||(v+="(?:/)?"),{re:new RegExp(`^${v}$`),groups:R}}function u(){let f=0;return()=>{let m="",_=++f;for(;_>0;)m+=String.fromCharCode(97+(_-1)%26),_=Math.floor((_-1)/26);return m}}function p({interceptionMarker:f,getSafeRouteKey:m,segment:_,routeKeys:g,keyPrefix:b,backreferenceDuplicateKeys:R}){const{key:v,optional:E,repeat:S}=(0,i.parseMatchedParameter)(_);let y=v.replace(/\W/g,"");b&&(y=`${b}${y}`);let P=!1;(y.length===0||y.length>30)&&(P=!0),isNaN(parseInt(y.slice(0,1)))||(P=!0),P&&(y=m());const T=y in g;b?g[y]=`${b}${v}`:g[y]=v;const O=f?(0,o.escapeStringRegexp)(f):"";let N;return T&&R?N=`\\k<${y}>`:S?N=`(?<${y}>.+?)`:N=`(?<${y}>[^/]+?)`,{key:v,pattern:E?`(?:/${O}${N})?`:`/${O}${N}`,cleanedKey:y,optional:E,repeat:S}}function l(f,m,_,g,b,R={names:{},intercepted:{}}){var v,E;const S=u(),y={},P=[],T=[];R=structuredClone(R);for(const O of(0,a.removeTrailingSlash)(f).slice(1).split("/")){const N=r.INTERCEPTION_ROUTE_MARKERS.some(j=>O.startsWith(j)),k=O.match(i.PARAMETER_PATTERN),B=N?k==null?void 0:k[1]:void 0;let C;if(B&&k!=null&&k[2]?(C=m?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,R.intercepted[k[2]]=B):k!=null&&k[2]&&R.intercepted[k[2]]?C=m?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:C=m?n.NEXT_QUERY_PARAM_PREFIX:void 0,B&&k&&k[2]){const{key:j,pattern:F,cleanedKey:z,repeat:$,optional:D}=p({getSafeRouteKey:S,interceptionMarker:B,segment:k[2],routeKeys:y,keyPrefix:C,backreferenceDuplicateKeys:b});P.push(F),T.push(`/${k[1]}:${R.names[j]??z}${$?D?"*":"+":""}`),(v=R.names)[j]??(v[j]=z)}else if(k&&k[2]){g&&k[1]&&(P.push(`/${(0,o.escapeStringRegexp)(k[1])}`),T.push(`/${k[1]}`));const{key:j,pattern:F,cleanedKey:z,repeat:$,optional:D}=p({getSafeRouteKey:S,segment:k[2],routeKeys:y,keyPrefix:C,backreferenceDuplicateKeys:b});let H=F;g&&k[1]&&(H=H.substring(1)),P.push(H),T.push(`/:${R.names[j]??z}${$?D?"*":"+":""}`),(E=R.names)[j]??(E[j]=z)}else P.push(`/${(0,o.escapeStringRegexp)(O)}`),T.push(`/${O}`);_&&k&&k[3]&&(P.push((0,o.escapeStringRegexp)(k[3])),T.push(k[3]))}return{namedParameterizedRoute:P.join(""),routeKeys:y,pathToRegexpPattern:T.join(""),reference:R}}function d(f,m){const _=l(f,m.prefixRouteKeys,m.includeSuffix??!1,m.includePrefix??!1,m.backreferenceDuplicateKeys??!1,m.reference);let g=_.namedParameterizedRoute;return m.excludeOptionalTrailingSlash||(g+="(?:/)?"),{...c(f,m),namedRegex:`^${g}$`,routeKeys:_.routeKeys,pathToRegexpPattern:_.pathToRegexpPattern,reference:_.reference}}function h(f,m){const{parameterizedRoute:_}=s(f,!1,!1),{catchAll:g=!0}=m;if(_==="/")return{namedRegex:`^/${g?".*":""}$`};const{namedParameterizedRoute:b}=l(f,!1,!1,!1,!1,void 0);return{namedRegex:`^${b}${g?"(?:(/.*)?)":""}$`}}})(wm)),wm}var zm={},Gm;function cI(){return Gm||(Gm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,i){for(var s in i)Object.defineProperty(a,s,{enumerable:!0,get:i[s]})}t(e,{DYNAMIC_FILTER_PLACEHOLDER:function(){return n},hasDynamicFilterCandidate:function(){return o}});const n="[]",r=8;function o(a,i,s){const c=a.split("/"),u=i.split("/"),p=c[c.length-1]??"";if(!(p.startsWith("[...")||p.startsWith("[[..."))&&c.length!==u.length)return!1;const l=[];for(let h=1;h<u.length;h++){if(u[h]==="")continue;const f=c[h];f!==void 0&&!f.startsWith("[")||l.push(h)}if(l.length===0||l.length>r)return!1;const d=(1<<l.length)-1;for(let h=0;h<d;h++){const f=u.slice();for(let m=0;m<l.length;m++)(h&1<<m)===0&&(f[l[m]]=n);if(s(f.join("/")))return!0}return!1}})(zm)),zm}var Xm={},Vm;function Jm(){return Vm||(Vm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}t(e,{formatUrl:function(){return o},formatWithValidation:function(){return i},urlObjectKeys:function(){return a}});const n=Vs()._(La()),r=/https?|ftp|gopher|file/;function o(s){let{auth:c,hostname:u}=s,p=s.protocol||"",l=s.pathname||"",d=s.hash||"",h=s.query||"",f=!1;c=c?encodeURIComponent(c).replace(/%3A/i,":")+"@":"",s.host?f=c+s.host:u&&(f=c+(~u.indexOf(":")?`[${u}]`:u),s.port&&(f+=":"+s.port)),h&&typeof h=="object"&&(h=String(n.urlQueryToSearchParams(h)));let m=s.search||h&&`?${h}`||"";return p&&!p.endsWith(":")&&(p+=":"),s.slashes||(!p||r.test(p))&&f!==!1?(f="//"+(f||""),l&&l[0]!=="/"&&(l="/"+l)):f||(f=""),d&&d[0]!=="#"&&(d="#"+d),m&&m[0]!=="?"&&(m="?"+m),l=l.replace(/[?#]/g,encodeURIComponent),m=m.replace("#","%23"),`${p}${f}${l}${m}${d}`}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(s){return o(s)}})(Xm)),Xm}var sc={exports:{}},Km={},Ym;function uI(){return Ym||(Ym=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,r,o){var a,i;if(n){o&&(o=o.toLowerCase());for(const s of n){const c=(a=s.domain)==null?void 0:a.split(":",1)[0].toLowerCase();if(r===c||o===s.defaultLocale.toLowerCase()||(i=s.locales)!=null&&i.some(u=>u.toLowerCase()===o))return s}}}})(Km)),Km}var Qm;function lI(){return Qm||(Qm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});const n=(...r)=>{if(__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT)return uI().detectDomainLocale(...r)};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(sc,sc.exports)),sc.exports}var Zm={},e_;function Er(){return e_||(e_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const r=n.indexOf("#"),o=n.indexOf("?"),a=o>-1&&(r<0||o<r);return a||r>-1?{pathname:n.substring(0,a?o:r),query:a?n.substring(o,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}})(Zm)),Zm}var cc={exports:{}},uc={exports:{}},t_;function lc(){return t_||(t_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const n=ro(),r=Er(),o=a=>{if(a.charCodeAt(0)!==47||__OM_EMBED_CONFIG__.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:i,query:s,hash:c}=(0,r.parsePath)(a);return __OM_EMBED_CONFIG__.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(i)?`${(0,n.removeTrailingSlash)(i)}${s}${c}`:i.endsWith("/")?`${i}${s}${c}`:`${i}/${s}${c}`:`${(0,n.removeTrailingSlash)(i)}${s}${c}`};(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(uc,uc.exports)),uc.exports}var n_={},r_={},o_;function pc(){return o_||(o_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=Er();function n(r,o){if(!r.startsWith("/")||!o)return r;const{pathname:a,query:i,hash:s}=(0,t.parsePath)(r);return`${o}${a}${i}${s}`}})(r_)),r_}var a_={},i_;function Da(){return i_||(i_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=Er();function n(r,o){if(typeof r!="string")return!1;const{pathname:a}=(0,t.parsePath)(r);return a===o||a.startsWith(o+"/")}})(a_)),a_}var s_;function c_(){return s_||(s_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}});const t=pc(),n=Da();function r(o,a,i,s){if(!a||a===i)return o;const c=o.toLowerCase();return!s&&((0,n.pathHasPrefix)(c,"/api")||(0,n.pathHasPrefix)(c,`/${a.toLowerCase()}`))?o:(0,t.addPathPrefix)(o,`/${a}`)}})(n_)),n_}var u_;function pI(){return u_||(u_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const n=lc(),r=(o,...a)=>__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT?(0,n.normalizePathTrailingSlash)(c_().addLocale(o,...a)):o;(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(cc,cc.exports)),cc.exports}var dc={exports:{}},l_;function dI(){return l_||(l_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return r}});const n=Er();function r(o,a){if(__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT){const{pathname:i}=(0,n.parsePath)(o),s=i.toLowerCase(),c=a==null?void 0:a.toLowerCase();return a&&(s.startsWith(`/${c}/`)||s===`/${c}`)?`${i.length===a.length+1?"/":""}${o.slice(a.length+1)}`:o}return o}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(dc,dc.exports)),dc.exports}var fc={exports:{}},hc={exports:{}},p_;function mc(){return p_||(p_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});const n=Da(),r=__OM_EMBED_CONFIG__.__NEXT_ROUTER_BASEPATH||"";function o(a){return(0,n.pathHasPrefix)(a,r)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(hc,hc.exports)),hc.exports}var d_;function f_(){return d_||(d_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return o}});const n=mc(),r=__OM_EMBED_CONFIG__.__NEXT_ROUTER_BASEPATH||"";function o(a){return __OM_EMBED_CONFIG__.__NEXT_MANUAL_CLIENT_BASE_PATH&&!(0,n.hasBasePath)(a)||r.length===0||(a=a.slice(r.length),a.startsWith("/")||(a=`/${a}`)),a}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(fc,fc.exports)),fc.exports}var _c={exports:{}},h_;function fI(){return h_||(h_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});const n=pc(),r=lc(),o=__OM_EMBED_CONFIG__.__NEXT_ROUTER_BASEPATH||"";function a(i,s){return(0,r.normalizePathTrailingSlash)(__OM_EMBED_CONFIG__.__NEXT_MANUAL_CLIENT_BASE_PATH&&!s?i:(0,n.addPathPrefix)(i,o))}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(_c,_c.exports)),_c.exports}var gc={exports:{}},m_={},__;function g_(){return __||(__=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}});function t(n,r){const o={};return Object.keys(n).forEach(a=>{r.includes(a)||(o[a]=n[a])}),o}})(m_)),m_}var y_={},v_;function b_(){return v_||(v_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return r}});const t=ao(),n=mc();function r(o){if(!(0,t.isAbsoluteUrl)(o))return!0;try{const a=(0,t.getLocationOrigin)(),i=new URL(o,a);return i.origin===a&&(0,n.hasBasePath)(i.pathname)}catch{return!1}}})(y_)),y_}var E_={},S_;function w_(){return S_||(S_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return r}});const t=oc(),n=ic();function r(o,a,i){let s="";const c=(0,n.getRouteRegex)(o),u=c.groups,p=(a!==o?(0,t.getRouteMatcher)(c)(a):"")||i;s=o;const l=Object.keys(u);return l.every(d=>{let h=p[d]||"";const{repeat:f,optional:m}=u[d];let _=`[${f?"...":""}${d}]`;return m&&(_=`${h?"":"/"}[${_}]`),f&&!Array.isArray(h)&&(h=[h]),(m||d in p)&&(s=s.replace(_,f?h.map(g=>encodeURIComponent(g)).join("/"):encodeURIComponent(h))||"/")})||(s=""),{params:l,result:s}}})(E_)),E_}var R_;function hI(){return R_||(R_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});const n=La(),r=Jm(),o=g_(),a=ao(),i=lc(),s=b_(),c=Zh(),u=w_(),p=ic(),l=oc();function d(h,f,m){let _,g=typeof f=="string"?f:(0,r.formatWithValidation)(f);const b=g.match(/^[a-z][a-z0-9+.-]*:\/\//i),R=b?g.slice(b[0].length):g;if((R.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${g}' passed to next/router in page: '${h.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);const v=(0,a.normalizeRepeatedSlashes)(R);g=(b?b[0]:"")+v}if(!(0,s.isLocalURL)(g))return m?[g]:g;try{let v=g.startsWith("#")?h.asPath:h.pathname;if(g.startsWith("?")&&(v=h.asPath,(0,c.isDynamicRoute)(h.pathname))){v=h.pathname;const E=(0,p.getRouteRegex)(h.pathname);(0,l.getRouteMatcher)(E)(h.asPath)||(v=h.asPath)}_=new URL(v,"http://n")}catch{_=new URL("/","http://n")}try{const v=new URL(g,_);v.pathname=(0,i.normalizePathTrailingSlash)(v.pathname);let E="";if((0,c.isDynamicRoute)(v.pathname)&&v.searchParams&&m){const y=(0,n.searchParamsToUrlQuery)(v.searchParams),{result:P,params:T}=(0,u.interpolateAs)(v.pathname,v.pathname,y);P&&(E=(0,r.formatWithValidation)({pathname:P,hash:v.hash,query:(0,o.omit)(y,T)}))}const S=v.origin===_.origin?v.href.slice(v.origin.length):v.href;return m?[S,E||S]:S}catch{return m?[g]:g}}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(gc,gc.exports)),gc.exports}var P_={},T_;function mI(){return T_||(T_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isAPIRoute",{enumerable:!0,get:function(){return t}});function t(n){return n==="/api"||!!(n!=null&&n.startsWith("/api/"))}})(P_)),P_}var O_={},x_={},I_;function _I(){return I_||(I_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removePathPrefix",{enumerable:!0,get:function(){return n}});const t=Da();function n(r,o){if(!(0,t.pathHasPrefix)(r,o))return r;const a=r.slice(o.length);return a.startsWith("/")?a:`/${a}`}})(x_)),x_}var A_;function gI(){return A_||(A_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});const t=nc(),n=_I(),r=Da();function o(a,i){const{basePath:s,i18n:c,trailingSlash:u}=i.nextConfig??{},p={pathname:a,trailingSlash:a!=="/"?a.endsWith("/"):u};s&&(0,r.pathHasPrefix)(p.pathname,s)&&(p.pathname=(0,n.removePathPrefix)(p.pathname,s),p.basePath=s);let l=p.pathname;if(p.pathname.startsWith("/_next/data/")&&p.pathname.endsWith(".json")){const d=p.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),h=d[0];p.buildId=h,l=d[1]!=="index"?`/${d.slice(1).join("/")}`:"/",i.parseData===!0&&(p.pathname=l)}if(c){let d=i.i18nProvider?i.i18nProvider.analyze(p.pathname):(0,t.normalizeLocalePath)(p.pathname,c.locales);p.locale=d.detectedLocale,p.pathname=d.pathname??p.pathname,!d.detectedLocale&&p.buildId&&(d=i.i18nProvider?i.i18nProvider.analyze(l):(0,t.normalizeLocalePath)(l,c.locales),d.detectedLocale&&(p.locale=d.detectedLocale))}return p}})(O_)),O_}var k_={},C_={},N_;function yI(){return N_||(N_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathSuffix",{enumerable:!0,get:function(){return n}});const t=Er();function n(r,o){if(!r.startsWith("/")||!o)return r;const{pathname:a,query:i,hash:s}=(0,t.parsePath)(r);return`${a}${o}${i}${s}`}})(C_)),C_}var M_;function vI(){return M_||(M_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatNextPathnameInfo",{enumerable:!0,get:function(){return a}});const t=ro(),n=pc(),r=yI(),o=c_();function a(i){let s=(0,o.addLocale)(i.pathname,i.locale,i.buildId?void 0:i.defaultLocale,i.ignorePrefix);return(i.buildId||!i.trailingSlash)&&(s=(0,t.removeTrailingSlash)(s)),i.buildId&&(s=(0,r.addPathSuffix)((0,n.addPathPrefix)(s,`/_next/data/${i.buildId}`),i.pathname==="/"?"index.json":".json")),s=(0,n.addPathPrefix)(s,i.basePath),!i.buildId&&i.trailingSlash?s.endsWith("/")?s:(0,r.addPathSuffix)(s,"/"):(0,t.removeTrailingSlash)(s)}})(k_)),k_}var L_={},D_;function bI(){return D_||(D_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compareRouterStates",{enumerable:!0,get:function(){return t}});function t(n,r){const o=Object.keys(n);if(o.length!==Object.keys(r).length)return!1;for(let a=o.length;a--;){const i=o[a];if(i==="query"){const s=Object.keys(n.query);if(s.length!==Object.keys(r.query).length)return!1;for(let c=s.length;c--;){const u=s[c];if(!r.query.hasOwnProperty(u)||n.query[u]!==r.query[u])return!1}}else if(!r.hasOwnProperty(i)||n[i]!==r[i])return!1}return!0}})(L_)),L_}var j_={},$_={},F_;function EI(){return F_||(F_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return t}});const t=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i})($_)),$_}var U_;function SI(){return U_||(U_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var l in p)Object.defineProperty(u,l,{enumerable:!0,get:p[l]})}t(e,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return o},getBotType:function(){return c},isBot:function(){return s}});const n=EI(),r=/Googlebot(?!-)|Googlebot$/i,o=n.HTML_LIMITED_BOT_UA_RE.source;function a(u){return r.test(u)}function i(u){return n.HTML_LIMITED_BOT_UA_RE.test(u)}function s(u){return a(u)||i(u)}function c(u){if(a(u))return"dom";if(i(u))return"html"}})(j_)),j_}var B_={},H_;function wI(){return H_||(H_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return t}});function t(n,r={}){if(r.onlyHashChange){n();return}const o=document.documentElement;if(o.dataset.scrollBehavior!=="smooth"){n();return}const a=o.style.scrollBehavior;o.style.scrollBehavior="auto",r.dontForceLayout||o.getClientRects(),n(),o.style.scrollBehavior=a}})(B_)),B_}var yc={exports:{}},q_;function RI(){return q_||(q_=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isJavaScriptURLString",{enumerable:!0,get:function(){return r}});const n=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function r(o){return n.test(""+o)}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(yc,yc.exports)),yc.exports}var W_={},z_={},G_;function PI(){return G_||(G_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getPathMatch",{enumerable:!0,get:function(){return n}});const t=gm();function n(r,o){const a=[],i=(0,t.pathToRegexp)(r,a,{delimiter:"/",sensitive:typeof(o==null?void 0:o.sensitive)=="boolean"?o.sensitive:!1,strict:o==null?void 0:o.strict}),s=(0,t.regexpToFunction)(o!=null&&o.regexModifier?new RegExp(o.regexModifier(i.source),i.flags):i,a);return(c,u)=>{if(typeof c!="string")return!1;const p=s(c);if(!p)return!1;if(o!=null&&o.removeUnnamedParams)for(const l of a)typeof l.name=="number"&&delete p.params[l.name];return{...u,...p.params}}}})(z_)),z_}var X_={},V_={},J_;function TI(){return J_||(J_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseUrl",{enumerable:!0,get:function(){return r}});const t=La(),n=rc();function r(o){if(o.startsWith("/"))return(0,n.parseRelativeUrl)(o);const a=new URL(o),i=a.username,s=a.password,c=i?s?`${i}:${s}`:i:null,u=a.pathname,p=a.search;return{auth:c,hash:a.hash,hostname:a.hostname,href:a.href,pathname:u,port:a.port,protocol:a.protocol,query:(0,t.searchParamsToUrlQuery)(a.searchParams),search:p,origin:a.origin,slashes:a.href.slice(a.protocol.length,a.protocol.length+2)==="//"}}})(V_)),V_}var K_={},Y_={exports:{}},Q_;function OI(){return Q_||(Q_=1,(()=>{typeof __nccwpck_require__<"u"&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;t.parse=i,t.serialize=s;var n=decodeURIComponent,r=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(u,p){if(typeof u!="string")throw new TypeError("argument str must be a string");for(var l={},d=p||{},h=u.split(o),f=d.decode||n,m=0;m<h.length;m++){var _=h[m],g=_.indexOf("=");if(!(g<0)){var b=_.substr(0,g).trim(),R=_.substr(++g,_.length).trim();R[0]=='"'&&(R=R.slice(1,-1)),l[b]==null&&(l[b]=c(R,f))}}return l}function s(u,p,l){var d=l||{},h=d.encode||r;if(typeof h!="function")throw new TypeError("option encode is invalid");if(!a.test(u))throw new TypeError("argument name is invalid");var f=h(p);if(f&&!a.test(f))throw new TypeError("argument val is invalid");var m=u+"="+f;if(d.maxAge!=null){var _=d.maxAge-0;if(isNaN(_)||!isFinite(_))throw new TypeError("option maxAge is invalid");m+="; Max-Age="+Math.floor(_)}if(d.domain){if(!a.test(d.domain))throw new TypeError("option domain is invalid");m+="; Domain="+d.domain}if(d.path){if(!a.test(d.path))throw new TypeError("option path is invalid");m+="; Path="+d.path}if(d.expires){if(typeof d.expires.toUTCString!="function")throw new TypeError("option expires is invalid");m+="; Expires="+d.expires.toUTCString()}if(d.httpOnly&&(m+="; HttpOnly"),d.secure&&(m+="; Secure"),d.sameSite){var g=typeof d.sameSite=="string"?d.sameSite.toLowerCase():d.sameSite;switch(g){case!0:m+="; SameSite=Strict";break;case"lax":m+="; SameSite=Lax";break;case"strict":m+="; SameSite=Strict";break;case"none":m+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return m}function c(u,p){try{return p(u)}catch{return u}}})(),Y_.exports=e})()),Y_.exports}var Z_;function xI(){return Z_||(Z_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getCookieParser",{enumerable:!0,get:function(){return t}});function t(n){return function(){const{cookie:r}=n;if(!r)return{};const{parse:o}=OI();return o(Array.isArray(r)?r.join("; "):r)}}})(K_)),K_}var eg;function II(){return eg||(eg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,m){for(var _ in m)Object.defineProperty(f,_,{enumerable:!0,get:m[_]})}t(e,{compileNonPath:function(){return l},matchHas:function(){return p},parseDestination:function(){return d},prepareDestination:function(){return h}});const n=Im(),r=TI(),o=oo(),a=xI(),i=Em();function s(f){let m="";for(let _=0;_<f.length;_++){const g=f.charCodeAt(_);(g>64&&g<91||g>96&&g<123)&&(m+=f[_])}return m}function c(f,m){return f.replace(new RegExp(`:${(0,n.escapeStringRegexp)(m)}`,"g"),`__ESC_COLON_${m}`)}function u(f){return f.replace(/__ESC_COLON_/gi,":")}function p(f,m,_=[],g=[]){const b={},R=v=>{let E,S=v.key;switch(v.type){case"header":{S=S.toLowerCase(),E=f.headers[S];break}case"cookie":{"cookies"in f?E=f.cookies[v.key]:E=(0,a.getCookieParser)(f.headers)()[v.key];break}case"query":{E=m[S];break}case"host":{const{host:y}=(f==null?void 0:f.headers)||{};E=y==null?void 0:y.split(":",1)[0].toLowerCase();break}}if(!v.value&&E)return b[s(S)]=E,!0;if(E){const y=new RegExp(`^${v.value}$`),P=Array.isArray(E)?E.slice(-1)[0].match(y):E.match(y);if(P)return Array.isArray(P)&&(P.groups?Object.keys(P.groups).forEach(T=>{b[T]=P.groups[T]}):v.type==="host"&&P[0]&&(b.host=P[0])),!0}return!1};return _.every(v=>R(v))&&!g.some(v=>R(v))?b:!1}function l(f,m){if(!f.includes(":"))return f;for(const _ of Object.keys(m))f.includes(`:${_}`)&&(f=f.replace(new RegExp(`:${_}\\*`,"g"),`:${_}--ESCAPED_PARAM_ASTERISKS`).replace(new RegExp(`:${_}\\?`,"g"),`:${_}--ESCAPED_PARAM_QUESTION`).replace(new RegExp(`:${_}\\+`,"g"),`:${_}--ESCAPED_PARAM_PLUS`).replace(new RegExp(`:${_}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${_}`));return f=f.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,i.safeCompile)(`/${f}`,{validate:!1})(m).slice(1)}function d(f){let m=f.destination;for(const y of Object.keys({...f.params,...f.query}))y&&(m=c(m,y));const _=(0,r.parseUrl)(m);let g=_.pathname;g&&(g=u(g));let b=_.href;b&&(b=u(b));let R=_.hostname;R&&(R=u(R));let v=_.hash;v&&(v=u(v));let E=_.search;E&&(E=u(E));let S=_.origin;return S&&(S=u(S)),{..._,pathname:g,hostname:R,href:b,hash:v,search:E,origin:S}}function h(f){const m=d(f),{hostname:_,query:g,search:b}=m;let R=m.pathname;m.hash&&(R=`${R}${m.hash}`);const v=[],E=[];(0,i.safePathToRegexp)(R,E);for(const O of E)v.push(O.name);if(_){const O=[];(0,i.safePathToRegexp)(_,O);for(const N of O)v.push(N.name)}const S=(0,i.safeCompile)(R,{validate:!1});let y;_&&(y=(0,i.safeCompile)(_,{validate:!1,encode:encodeURIComponent}));for(const[O,N]of Object.entries(g))Array.isArray(N)?g[O]=N.map(k=>l(u(k),f.params)):typeof N=="string"&&(g[O]=l(u(N),f.params));let P=Object.keys(f.params).filter(O=>O!=="nextInternalLocale");if(f.appendParamsToQuery&&!P.some(O=>v.includes(O)))for(const O of P)O in g||(g[O]=f.params[O]);let T;if((0,o.isInterceptionRouteAppPath)(R))for(const O of R.split("/")){const N=o.INTERCEPTION_ROUTE_MARKERS.find(k=>O.startsWith(k));if(N){N==="(..)(..)"?(f.params[0]="(..)",f.params[1]="(..)"):f.params[0]=N;break}}try{T=S(f.params);const[O,N]=T.split("#",2);y&&(m.hostname=y(f.params)),m.pathname=O,m.hash=`${N?"#":""}${N||""}`,m.search=b?l(b,f.params):""}catch(O){throw O.message.match(/Expected .*? to not repeat, but got an array/)?Object.defineProperty(new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0}):O}return m.query={...f.query,...m.query},{newUrl:T,destQuery:g,parsedDestination:m}}})(X_)),X_}var tg;function AI(){return tg||(tg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const t=PI(),n=II(),r=ro(),o=nc(),a=f_(),i=rc();function s(c,u,p,l,d,h){let f=!1,m=!1,_=(0,i.parseRelativeUrl)(c),g=(0,r.removeTrailingSlash)((0,o.normalizeLocalePath)((0,a.removeBasePath)(_.pathname),h).pathname),b;const R=E=>{let S=(0,t.getPathMatch)(E.source+(__OM_EMBED_CONFIG__.__NEXT_TRAILING_SLASH?"(/)?":""),{removeUnnamedParams:!0,strict:!0})(_.pathname);if((E.has||E.missing)&&S){const y=(0,n.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((P,T)=>{const[O,...N]=T.split("=");return P[O]=N.join("="),P},{})},_.query,E.has,E.missing);y?Object.assign(S,y):S=!1}if(S){if(!E.destination)return m=!0,!0;const y=(0,n.prepareDestination)({appendParamsToQuery:!0,destination:E.destination,params:S,query:l});if(_=y.parsedDestination,c=y.newUrl,Object.assign(l,y.parsedDestination.query),g=(0,r.removeTrailingSlash)((0,o.normalizeLocalePath)((0,a.removeBasePath)(c),h).pathname),u.includes(g))return f=!0,b=g,!0;if(b=d(g),b!==c&&u.includes(b))return f=!0,!0}};let v=!1;for(let E=0;E<p.beforeFiles.length;E++)R(p.beforeFiles[E]);if(f=u.includes(g),!f){if(!v){for(let E=0;E<p.afterFiles.length;E++)if(R(p.afterFiles[E])){v=!0;break}}if(v||(b=d(g),f=u.includes(b),v=f),!v){for(let E=0;E<p.fallback.length;E++)if(R(p.fallback[E])){v=!0;break}}}return{asPath:c,parsedAs:_,matchedPage:f,resolvedHref:b,externalDest:m}}})(W_)),W_}var ng={},rg={exports:{}},og;function kI(){return og||(og=1,(()=>{var e={166:(o,a,i)=>{var s=i(203),c=["write","end","destroy"],u=["resume","pause"],p=["data","close"],l=Array.prototype.slice;o.exports=h;function d(f,m){if(f.forEach)return f.forEach(m);for(var _=0;_<f.length;_++)m(f[_],_)}function h(f,m){var _=new s,g=!1;return d(c,b),d(u,R),d(p,v),m.on("end",E),f.on("drain",(function(){_.emit("drain")})),f.on("error",S),m.on("error",S),_.writable=f.writable,_.readable=m.readable,_;function b(y){_[y]=P;function P(){return f[y].apply(f,arguments)}}function R(y){_[y]=P;function P(){_.emit(y);var T=m[y];if(T)return T.apply(m,arguments);m.emit(y)}}function v(y){m.on(y,P);function P(){var T=l.call(arguments);T.unshift(y),_.emit.apply(_,T)}}function E(){if(!g){g=!0;var y=l.call(arguments);y.unshift("end"),_.emit.apply(_,y)}}function S(y){_.emit("error",y)}}},118:(o,a,i)=>{const s=i(896),c=i(203),u=i(106),p=i(166),l=i(420),d=h=>Object.assign({level:9},h);o.exports=(h,f)=>h?l(u.gzip)(h,d(f)).then((m=>m.length)).catch((m=>0)):Promise.resolve(0),o.exports.sync=(h,f)=>u.gzipSync(h,d(f)).length,o.exports.stream=h=>{const f=new c.PassThrough,m=new c.PassThrough,_=p(f,m);let g=0;const b=u.createGzip(d(h)).on("data",(R=>{g+=R.length})).on("error",(()=>{_.gzipSize=0})).on("end",(()=>{_.gzipSize=g,_.emit("gzip-size",g),m.end()}));return f.pipe(b),f.pipe(m,{end:!1}),_},o.exports.file=(h,f)=>new Promise(((m,_)=>{const g=s.createReadStream(h);g.on("error",_);const b=g.pipe(o.exports.stream(f));b.on("error",_),b.on("gzip-size",m)})),o.exports.fileSync=(h,f)=>o.exports.sync(s.readFileSync(h),f)},420:o=>{const a=(i,s)=>function(...c){const u=s.promiseModule;return new u(((p,l)=>{s.multiArgs?c.push(((...d)=>{s.errorFirst?d[0]?l(d):(d.shift(),p(d)):p(d)})):s.errorFirst?c.push(((d,h)=>{d?l(d):p(h)})):c.push(p),i.apply(this,c)}))};o.exports=(i,s)=>{s=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},s);const c=typeof i;if(!(i!==null&&(c==="object"||c==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${i===null?"null":c}\``);const u=l=>{const d=h=>typeof h=="string"?l===h:h.test(l);return s.include?s.include.some(d):!s.exclude.some(d)};let p;c==="function"?p=function(...l){return s.excludeMain?i(...l):a(i,s).apply(this,l)}:p=Object.create(Object.getPrototypeOf(i));for(const l in i){const d=i[l];p[l]=typeof d=="function"&&u(l)?a(d,s):d}return p}},896:o=>{o.exports=ci},203:o=>{o.exports=ci},106:o=>{o.exports=ci}},t={};function n(o){var a=t[o];if(a!==void 0)return a.exports;var i=t[o]={exports:{}},s=!0;try{e[o](i,i.exports,n),s=!1}finally{s&&delete t[o]}return i.exports}typeof n<"u"&&(n.ab=__dirname+"/");var r=n(118);rg.exports=r})()),rg.exports}var ag;function CI(){return ag||(ag=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BloomFilter",{enumerable:!0,get:function(){return r}});function t(o){let a=0;for(let i=0;i<o.length;i++){const s=o.charCodeAt(i);a=Math.imul(a^s,1540483477),a^=a>>>13,a=Math.imul(a,1540483477)}return a>>>0}const n=1e-4;class r{constructor(a,i=n){this.numItems=a,this.errorRate=i,this.numBits=Math.ceil(-(a*Math.log(i))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/a*Math.log(2)),this.bitArray=new Array(this.numBits).fill(0)}static from(a,i=n){const s=new r(a.length,i);for(const c of a)s.add(c);return s}export(){const a={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};if(__OM_EMBED_CONFIG__.NEXT_RUNTIME==="nodejs"&&this.errorRate<n){const i=JSON.stringify(a),s=kI().sync(i);s>1024&&console.warn(`Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${i.length} bytes, ${s} bytes (gzip)`)}return a}import(a){this.numItems=a.numItems,this.errorRate=a.errorRate,this.numBits=a.numBits,this.numHashes=a.numHashes,this.bitArray=a.bitArray}add(a){this.getHashValues(a).forEach(i=>{this.bitArray[i]=1})}contains(a){return this.getHashValues(a).every(i=>this.bitArray[i])}getHashValues(a){const i=[];for(let s=1;s<=this.numHashes;s++){const c=t(`${a}${s}`)%this.numBits;i.push(c)}return i}}})(ng)),ng}var ig;function NI(){return ig||(ig=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(K,I){for(var A in I)Object.defineProperty(K,A,{enumerable:!0,get:I[A]})}t(e,{createKey:function(){return Te},default:function(){return ze},matchesMiddleware:function(){return ie}});const n=On(),r=Vs(),o=ro(),a=qx(),i=Xx(),s=r._(Lh()),c=Zx(),u=nc(),p=n._(eI()),l=ao(),d=Yh(),h=rc(),f=oc(),m=ic(),_=cI(),g=Jm(),b=lI(),R=Er(),v=pI(),E=dI(),S=f_(),y=fI(),P=mc(),T=hI(),O=mI(),N=gI(),k=vI(),B=bI(),C=b_(),j=SI(),F=g_(),z=w_(),$=wI(),D=Tm(),H=bh(),Z=RI();let te;__OM_EMBED_CONFIG__.__NEXT_HAS_REWRITES&&(te=AI().default);function ye(){return Object.assign(Object.defineProperty(new Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function ie(K){const I=await Promise.resolve(K.router.pageLoader.getMiddleware());if(!I)return!1;const{pathname:A}=(0,R.parsePath)(K.asPath),x=(0,P.hasBasePath)(A)?(0,S.removeBasePath)(A):A,M=(0,y.addBasePath)((0,v.addLocale)(x,K.locale));return I.some(W=>new RegExp(W.regexp).test(M))}function pe(K){const I=(0,l.getLocationOrigin)();return K.startsWith(I)?K.substring(I.length):K}function Pe(K,I,A){let[x,M]=(0,T.resolveHref)(K,I,!0);const W=(0,l.getLocationOrigin)(),se=x.startsWith(W),he=M&&M.startsWith(W);x=pe(x),M=M&&pe(M);const me=se?x:(0,y.addBasePath)(x),ne=A?pe((0,T.resolveHref)(K,A)):M||x;return{url:me,as:he?ne:(0,y.addBasePath)(ne)}}function ve(K,I){const A=(0,o.removeTrailingSlash)((0,c.denormalizePagePath)(K));return A==="/404"||A==="/_error"?K:(I.includes(A)||I.some(x=>{if((0,d.isDynamicRoute)(x)&&(0,m.getRouteRegex)(x).re.test(A))return K=x,!0}),(0,o.removeTrailingSlash)(K))}function Je(K,I,A){const x={basePath:A.router.basePath,i18n:{locales:A.router.locales},trailingSlash:!!__OM_EMBED_CONFIG__.__NEXT_TRAILING_SLASH},M=I.headers.get("x-nextjs-rewrite");let W=M||I.headers.get("x-nextjs-matched-path");const se=I.headers.get(D.MATCHED_PATH_HEADER);if(se&&!W&&!se.includes("__next_data_catchall")&&!se.includes("/_error")&&!se.includes("/404")&&(W=se),W){if(W.startsWith("/")||__OM_EMBED_CONFIG__.__NEXT_EXTERNAL_MIDDLEWARE_REWRITE_RESOLVE){const ce=(0,h.parseRelativeUrl)(W),be=(0,N.getNextPathnameInfo)(ce.pathname,{nextConfig:x,parseData:!0});let re=(0,o.removeTrailingSlash)(be.pathname);return Promise.all([A.router.pageLoader.getPageList(),(0,a.getClientBuildManifest)()]).then(([G,{__rewrites:oe}])=>{let ee=(0,v.addLocale)(be.pathname,be.locale);if((0,d.isDynamicRoute)(ee)||!M&&G.includes((0,u.normalizeLocalePath)((0,S.removeBasePath)(ee),A.router.locales).pathname)){const Ee=(0,N.getNextPathnameInfo)((0,h.parseRelativeUrl)(K).pathname,{nextConfig:{basePath:x.basePath,trailingSlash:x.trailingSlash},parseData:!0});ee=(0,y.addBasePath)(Ee.pathname),ce.pathname=ee}if(__OM_EMBED_CONFIG__.__NEXT_HAS_REWRITES){const Ee=te(ee,G,oe,ce.query,Fe=>ve(Fe,G),A.router.locales);Ee.matchedPage&&(ce.pathname=Ee.parsedAs.pathname,ee=ce.pathname,Object.assign(ce.query,Ee.parsedAs.query))}else if(!G.includes(re)){const Ee=ve(re,G);Ee!==re&&(re=Ee)}const X=G.includes(re)?re:ve((0,u.normalizeLocalePath)((0,S.removeBasePath)(ce.pathname),A.router.locales).pathname,G);if((0,d.isDynamicRoute)(X)){const Ee=(0,f.getRouteMatcher)((0,m.getRouteRegex)(X))(ee);Object.assign(ce.query,Ee||{})}return{type:"rewrite",parsedAs:ce,resolvedHref:X}})}const me=(0,R.parsePath)(K),ne=(0,k.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(me.pathname,{nextConfig:x,parseData:!0}),defaultLocale:A.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${ne}${me.query}${me.hash}`})}const he=I.headers.get("x-nextjs-redirect");if(he){if(he.startsWith("/")){const me=(0,R.parsePath)(he),ne=(0,k.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(me.pathname,{nextConfig:x,parseData:!0}),defaultLocale:A.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${ne}${me.query}${me.hash}`,newUrl:`${ne}${me.query}${me.hash}`})}return Promise.resolve({type:"redirect-external",destination:he})}return Promise.resolve({type:"next"})}async function nt(K){if(!await ie(K)||!K.fetchData)return null;const I=await K.fetchData(),A=await Je(I.dataHref,I.response,K);return{dataHref:I.dataHref,json:I.json,response:I.response,text:I.text,cacheKey:I.cacheKey,effect:A}}const xt=__OM_EMBED_CONFIG__.__NEXT_SCROLL_RESTORATION&&typeof window<"u"&&"scrollRestoration"in window.history&&!!(function(){try{let K="__next";return sessionStorage.setItem(K,K),sessionStorage.removeItem(K),!0}catch{}})(),Ft=Symbol("SSG_DATA_NOT_FOUND");function Ut(K,I,A){return fetch(K,{credentials:"same-origin",method:A.method||"GET",headers:Object.assign({},A.headers,{"x-nextjs-data":"1"})}).then(x=>!x.ok&&I>1&&x.status>=500?Ut(K,I-1,A):x)}function It(K){try{return JSON.parse(K)}catch{return null}}function fe({dataHref:K,inflightCache:I,isPrefetch:A,hasMiddleware:x,isServerRender:M,parseJSON:W,persistCache:se,isBackground:he,unstable_skipClientCache:me}){const{href:ne}=new URL(K,window.location.href),ce=(0,H.getDeploymentId)(),be=re=>Ut(K,M?3:1,{headers:Object.assign({},A?{purpose:"prefetch"}:{},A&&x?{"x-middleware-prefetch":"1"}:{},ce?{"x-deployment-id":ce}:{}),method:(re==null?void 0:re.method)??"GET"}).then(G=>G.ok&&(re==null?void 0:re.method)==="HEAD"?{dataHref:K,response:G,text:"",json:{},cacheKey:ne}:G.text().then(oe=>{var ee;if(!G.ok){if(x&&[301,302,307,308].includes(G.status))return{dataHref:K,response:G,text:oe,json:{},cacheKey:ne};if(G.status===404&&(ee=It(oe))!=null&&ee.notFound)return{dataHref:K,json:{notFound:Ft},response:G,text:oe,cacheKey:ne};const Ee=Object.defineProperty(new Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw M||(0,a.markAssetError)(Ee),Ee}let X=G.headers.get(D.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(X!=null&&X!==ce){const Ee=Object.defineProperty(new Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw M||(0,a.markAssetError)(Ee),Ee}return{dataHref:K,json:W?It(oe):null,response:G,text:oe,cacheKey:ne}})).then(G=>((!se||G.response.headers.get("x-middleware-cache")==="no-cache")&&delete I[ne],G)).catch(G=>{throw me||delete I[ne],(G.message==="Failed to fetch"||G.message==="NetworkError when attempting to fetch resource."||G.message==="Load failed")&&(0,a.markAssetError)(G),G});return me&&se?be({}).then(re=>(re.response.headers.get("x-middleware-cache")!=="no-cache"&&(I[ne]=Promise.resolve(re)),re)):I[ne]!==void 0?I[ne]:I[ne]=be(he?{method:"HEAD"}:{})}function Te(){return Math.random().toString(36).slice(2,10)}function we({url:K,router:I}){if(K===(0,y.addBasePath)((0,v.addLocale)(I.asPath,I.locale)))throw Object.defineProperty(new Error(`Invariant: attempted to hard navigate to the same URL ${K} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=K}const $e=({route:K,router:I})=>{let A=!1;const x=I.clc=()=>{A=!0};return()=>{if(A){const M=Object.defineProperty(new Error(`Abort fetching component for route: "${K}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw M.cancelled=!0,M}x===I.clc&&(I.clc=null)}},De=class bt{constructor(I,A,x,{initialProps:M,pageLoader:W,App:se,wrapApp:he,Component:me,err:ne,subscription:ce,isFallback:be,locale:re,locales:G,defaultLocale:oe,domainLocales:ee,isPreview:X}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=Te(),this.onPopState=Ge=>{const{isFirstPopStateEvent:Bt}=this;this.isFirstPopStateEvent=!1;const rt=Ge.state;if(!rt){const{pathname:st,query:Sn}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,y.addBasePath)(st),query:Sn}),(0,l.getURL)());return}if(rt.__NA){window.location.reload();return}if(!rt.__N||Bt&&this.locale===rt.options.locale&&rt.as===this.asPath)return;let Be;const{url:Ke,as:_e,options:xe,key:Re}=rt;if(__OM_EMBED_CONFIG__.__NEXT_SCROLL_RESTORATION&&xt&&this._key!==Re){try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}try{const st=sessionStorage.getItem("__next_scroll_"+Re);Be=JSON.parse(st)}catch{Be={x:0,y:0}}}this._key=Re;const{pathname:Xe}=(0,h.parseRelativeUrl)(Ke);this.isSsr&&_e===(0,y.addBasePath)(this.asPath)&&Xe===(0,y.addBasePath)(this.pathname)||this._bps&&!this._bps(rt)||this.change("replaceState",Ke,_e,Object.assign({},xe,{shallow:xe.shallow&&this._shallow,locale:xe.locale||this.defaultLocale,_h:0}),Be)};const Ee=(0,o.removeTrailingSlash)(I);this.components={},I!=="/_error"&&(this.components[Ee]={Component:me,initial:!0,props:M,err:ne,__N_SSG:M&&M.__N_SSG,__N_SSP:M&&M.__N_SSP}),this.components["/_app"]={Component:se,styleSheets:[]},this.events=bt.events,this.pageLoader=W;const Fe=(0,d.isDynamicRoute)(I)&&self.__NEXT_DATA__.autoExport;if(this.basePath=__OM_EMBED_CONFIG__.__NEXT_ROUTER_BASEPATH||"",this.sub=ce,this.clc=null,this._wrapApp=he,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!Fe&&!self.location.search&&!__OM_EMBED_CONFIG__.__NEXT_HAS_REWRITES),__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT&&(this.locales=G,this.defaultLocale=oe,this.domainLocales=ee,this.isLocaleDomain=!!(0,b.detectDomainLocale)(ee,self.location.hostname)),this.state={route:Ee,pathname:I,query:A,asPath:Fe?I:x,isPreview:!!X,locale:__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT?re:void 0,isFallback:be},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),typeof window<"u"){if(!x.startsWith("//")){const Ge={locale:re},Bt=(0,l.getURL)();this._initialMatchesMiddlewarePromise=ie({router:this,locale:re,asPath:Bt}).then(rt=>(Ge._shouldResolveHref=x!==I,this.changeState("replaceState",rt?Bt:(0,g.formatWithValidation)({pathname:(0,y.addBasePath)(I),query:A}),Bt,Ge),rt))}window.addEventListener("popstate",this.onPopState),__OM_EMBED_CONFIG__.__NEXT_SCROLL_RESTORATION&&xt&&(window.history.scrollRestoration="manual")}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(I,A,x={}){if((0,Z.isJavaScriptURLString)(I.toString())||A&&(0,Z.isJavaScriptURLString)(A.toString()))throw Object.defineProperty(new Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});if(__OM_EMBED_CONFIG__.__NEXT_SCROLL_RESTORATION&&xt)try{sessionStorage.setItem("__next_scroll_"+this._key,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}return{url:I,as:A}=Pe(this,I,A),this.change("pushState",I,A,x)}replace(I,A,x={}){if((0,Z.isJavaScriptURLString)(I.toString())||A&&(0,Z.isJavaScriptURLString)(A.toString()))throw Object.defineProperty(new Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:I,as:A}=Pe(this,I,A),this.change("replaceState",I,A,x)}async _bfl(I,A,x,M){var W,se,he;if(__OM_EMBED_CONFIG__.__NEXT_CLIENT_ROUTER_FILTER_ENABLED){if(!this._bfl_s&&!this._bfl_d){const{BloomFilter:be}=CI();let re,G;try{({__routerFilterStatic:re,__routerFilterDynamic:G}=await(0,a.getClientBuildManifest)())}catch(X){return console.error(X),M?!0:(we({url:(0,y.addBasePath)((0,v.addLocale)(I,x||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{}))}const oe=__OM_EMBED_CONFIG__.__NEXT_CLIENT_ROUTER_S_FILTER;!re&&oe&&(re=oe||void 0);const ee=__OM_EMBED_CONFIG__.__NEXT_CLIENT_ROUTER_D_FILTER;!G&&ee&&(G=ee||void 0),re!=null&&re.numHashes&&(this._bfl_s=new be(re.numItems,re.errorRate),this._bfl_s.import(re)),G!=null&&G.numHashes&&(this._bfl_d=new be(G.numItems,G.errorRate),this._bfl_d.import(G))}let me=!1,ne=!1;const ce=[{as:I},{as:A}];for(const{as:be,allowMatchCurrent:re}of ce)if(be){const G=(0,o.removeTrailingSlash)(new URL(be,"http://n").pathname),oe=(0,y.addBasePath)((0,v.addLocale)(G,x||this.locale));if(re||G!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){me=me||!!((W=this._bfl_s)!=null&&W.contains(G))||!!((se=this._bfl_s)!=null&&se.contains(oe));for(const ee of[G,oe]){const X=ee.split("/");for(let Ee=0;!ne&&Ee<X.length+1;Ee++){const Fe=X.slice(0,Ee).join("/");if(Fe&&(he=this._bfl_d)!=null&&he.contains(Fe)){ne=!0;break}}}if(me||ne)return M?!0:(we({url:(0,y.addBasePath)((0,v.addLocale)(I,x||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{}))}}}return!1}async change(I,A,x,M,W){var se,he,me,ne,ce,be,re,G;if(!(0,C.isLocalURL)(A))return we({url:A,router:this}),!1;const oe=M._h===1;!oe&&!M.shallow&&await this._bfl(x,void 0,M.locale);let ee=oe||M._shouldResolveHref||(0,R.parsePath)(A).pathname===(0,R.parsePath)(x).pathname;const X={...this.state},Ee=this.isReady!==!0;this.isReady=!0;const Fe=this.isSsr;if(oe||(this.isSsr=!1),oe&&this.clc)return!1;const Ge=X.locale;if(__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT){X.locale=M.locale===!1?this.defaultLocale:M.locale||X.locale,typeof M.locale>"u"&&(M.locale=X.locale);const q=(0,h.parseRelativeUrl)((0,P.hasBasePath)(x)?(0,S.removeBasePath)(x):x),tt=(0,u.normalizeLocalePath)(q.pathname,this.locales);tt.detectedLocale&&(X.locale=tt.detectedLocale,q.pathname=(0,y.addBasePath)(q.pathname),x=(0,g.formatWithValidation)(q),A=(0,y.addBasePath)((0,u.normalizeLocalePath)((0,P.hasBasePath)(A)?(0,S.removeBasePath)(A):A,this.locales).pathname));let ct=!1;__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT&&((se=this.locales)!=null&&se.includes(X.locale)||(q.pathname=(0,v.addLocale)(q.pathname,X.locale),we({url:(0,g.formatWithValidation)(q),router:this}),ct=!0));const ot=(0,b.detectDomainLocale)(this.domainLocales,void 0,X.locale);if(__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT&&!ct&&ot&&this.isLocaleDomain&&self.location.hostname!==ot.domain){const At=(0,S.removeBasePath)(x);we({url:`http${ot.http?"":"s"}://${ot.domain}${(0,y.addBasePath)(`${X.locale===ot.defaultLocale?"":`/${X.locale}`}${At==="/"?"":At}`||"/")}`,router:this}),ct=!0}if(ct)return new Promise(()=>{})}l.ST&&performance.mark("routeChange");const{shallow:Bt=!1,scroll:rt=!0}=M,Be={shallow:Bt};this._inFlightRoute&&this.clc&&(Fe||bt.events.emit("routeChangeError",ye(),this._inFlightRoute,Be),this.clc(),this.clc=null),x=(0,y.addBasePath)((0,v.addLocale)((0,P.hasBasePath)(x)?(0,S.removeBasePath)(x):x,M.locale,this.defaultLocale));const Ke=(0,E.removeLocale)((0,P.hasBasePath)(x)?(0,S.removeBasePath)(x):x,X.locale);this._inFlightRoute=x;const _e=Ge!==X.locale;if(!oe&&this.onlyAHashChange(Ke)&&!_e){X.asPath=Ke,bt.events.emit("hashChangeStart",x,Be),this.changeState(I,A,x,{...M,scroll:!1}),rt&&this.scrollToHash(Ke);try{await this.set(X,this.components[X.route],null)}catch(q){throw(0,s.default)(q)&&q.cancelled&&bt.events.emit("routeChangeError",q,Ke,Be),q}return bt.events.emit("hashChangeComplete",x,Be),!0}let xe=(0,h.parseRelativeUrl)(A),{pathname:Re,query:Xe}=xe,st,Sn;try{[st,{__rewrites:Sn}]=await Promise.all([this.pageLoader.getPageList(),(0,a.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch{return we({url:x,router:this}),!1}!this.urlIsNew(Ke)&&!_e&&(I="replaceState");let He=x;Re=Re&&(0,o.removeTrailingSlash)((0,S.removeBasePath)(Re));let qe=(0,o.removeTrailingSlash)(Re);const ja=x.startsWith("/")&&(0,h.parseRelativeUrl)(x).pathname;if((he=this.components[Re])!=null&&he.__appRouter)return we({url:x,router:this}),new Promise(()=>{});const Tg=!!(ja&&qe!==ja&&(!(0,d.isDynamicRoute)(qe)||!(0,f.getRouteMatcher)((0,m.getRouteRegex)(qe))(ja))),wn=!M.shallow&&await ie({asPath:x,locale:X.locale,router:this});if(oe&&wn&&(ee=!1),ee&&Re!=="/_error")if(M._shouldResolveHref=!0,__OM_EMBED_CONFIG__.__NEXT_HAS_REWRITES&&x.startsWith("/")){const q=te((0,y.addBasePath)((0,v.addLocale)(Ke,X.locale),!0),st,Sn,Xe,tt=>ve(tt,st),this.locales);if(q.externalDest)return we({url:x,router:this}),!0;wn||(He=q.asPath),q.matchedPage&&q.resolvedHref&&(Re=q.resolvedHref,xe.pathname=(0,y.addBasePath)(Re),wn||(A=(0,g.formatWithValidation)(xe)))}else xe.pathname=ve(Re,st),xe.pathname!==Re&&(Re=xe.pathname,xe.pathname=(0,y.addBasePath)(Re),wn||(A=(0,g.formatWithValidation)(xe)));if(!oe&&!M.shallow&&__OM_EMBED_CONFIG__.__NEXT_CLIENT_ROUTER_FILTER_ENABLED&&this._bfl_d&&(0,d.isDynamicRoute)(Re)){const q=(0,o.removeTrailingSlash)((0,h.parseRelativeUrl)(Ke).pathname);if((0,_.hasDynamicFilterCandidate)(Re,q,tt=>{var ct;return!!((ct=this._bfl_d)!=null&&ct.contains(tt))}))return we({url:x,router:this}),new Promise(()=>{})}if(!(0,C.isLocalURL)(x))return we({url:x,router:this}),!1;He=(0,E.removeLocale)((0,S.removeBasePath)(He),X.locale),qe=(0,o.removeTrailingSlash)(Re);let Rn=!1;if((0,d.isDynamicRoute)(qe)){const q=(0,h.parseRelativeUrl)(He),tt=q.pathname,ct=(0,m.getRouteRegex)(qe);Rn=(0,f.getRouteMatcher)(ct)(tt);const ot=qe===tt,At=ot?(0,z.interpolateAs)(qe,tt,Xe):{};if(!Rn||ot&&!At.result){const Xn=Object.keys(ct.groups).filter(Ne=>!Xe[Ne]&&!ct.groups[Ne].optional);if(Xn.length>0&&!wn)throw Object.defineProperty(new Error((ot?`The provided \`href\` (${A}) value is missing query values (${Xn.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${tt}) is incompatible with the \`href\` value (${qe}). `)+`Read more: https://nextjs.org/docs/messages/${ot?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}else ot?x=(0,g.formatWithValidation)(Object.assign({},q,{pathname:At.result,query:(0,F.omit)(Xe,At.params)})):Object.assign(Xe,Rn)}oe||bt.events.emit("routeChangeStart",x,Be);const Og=this.pathname==="/404"||this.pathname==="/_error";try{let q=await this.getRouteInfo({route:qe,pathname:Re,query:Xe,as:x,resolvedAs:He,routeProps:Be,locale:X.locale,isPreview:X.isPreview,hasMiddleware:wn,unstable_skipClientCache:M.unstable_skipClientCache,isQueryUpdating:oe&&!this.isFallback,isMiddlewareRewrite:Tg});if(!oe&&!M.shallow&&await this._bfl(x,"resolvedAs"in q?q.resolvedAs:void 0,X.locale),"route"in q&&wn){Re=q.route||qe,qe=Re,Be.shallow||(Xe=Object.assign({},q.query||{},Xe));const Ne=(0,P.hasBasePath)(xe.pathname)?(0,S.removeBasePath)(xe.pathname):xe.pathname;if(Rn&&Re!==Ne&&Object.keys(Rn).forEach(ut=>{Rn&&Xe[ut]===Rn[ut]&&delete Xe[ut]}),(0,d.isDynamicRoute)(Re)){let ut=!Be.shallow&&q.resolvedAs?q.resolvedAs:(0,y.addBasePath)((0,v.addLocale)(new URL(x,location.href).pathname,X.locale),!0);if((0,P.hasBasePath)(ut)&&(ut=(0,S.removeBasePath)(ut)),__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT){const Tc=(0,u.normalizeLocalePath)(ut,this.locales);X.locale=Tc.detectedLocale||X.locale,ut=Tc.pathname}const $a=(0,m.getRouteRegex)(Re),co=(0,f.getRouteMatcher)($a)(new URL(ut,location.href).pathname);co&&Object.assign(Xe,co)}}if("type"in q)return q.type==="redirect-internal"?this.change(I,q.newUrl,q.newAs,M):(we({url:q.destination,router:this}),new Promise(()=>{}));const tt=q.Component;if(tt&&tt.unstable_scriptLoader&&[].concat(tt.unstable_scriptLoader()).forEach(Ne=>{(0,i.handleClientScriptLoad)(Ne.props)}),(q.__N_SSG||q.__N_SSP)&&q.props){if(q.props.pageProps&&q.props.pageProps.__N_REDIRECT){M.locale=!1;const Ne=q.props.pageProps.__N_REDIRECT;if(Ne.startsWith("/")&&q.props.pageProps.__N_REDIRECT_BASE_PATH!==!1){const ut=(0,h.parseRelativeUrl)(Ne);ut.pathname=ve(ut.pathname,st);const{url:$a,as:co}=Pe(this,Ne,Ne);return this.change(I,$a,co,M)}return we({url:Ne,router:this}),new Promise(()=>{})}if(X.isPreview=!!q.props.__N_PREVIEW,q.props.notFound===Ft){let Ne;try{await this.fetchComponent("/404"),Ne="/404"}catch{Ne="/_error"}if(q=await this.getRouteInfo({route:Ne,pathname:Ne,query:Xe,as:x,resolvedAs:He,routeProps:{shallow:!1},locale:X.locale,isPreview:X.isPreview,isNotFound:!0}),"type"in q)throw Object.defineProperty(new Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}oe&&this.pathname==="/_error"&&((ne=(me=self.__NEXT_DATA__.props)==null?void 0:me.pageProps)==null?void 0:ne.statusCode)===500&&(ce=q.props)!=null&&ce.pageProps&&(q.props.pageProps.statusCode=500);const ct=M.shallow&&X.route===(q.route??qe),ot=M.scroll??(!oe&&!ct),At=W??(ot?{x:0,y:0}:null),Xn={...X,route:qe,pathname:Re,query:Xe,asPath:Ke,isFallback:!1};if(oe&&Og){if(q=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:Xe,as:x,resolvedAs:He,routeProps:{shallow:!1},locale:X.locale,isPreview:X.isPreview,isQueryUpdating:oe&&!this.isFallback}),"type"in q)throw Object.defineProperty(new Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});this.pathname==="/_error"&&((re=(be=self.__NEXT_DATA__.props)==null?void 0:be.pageProps)==null?void 0:re.statusCode)===500&&(G=q.props)!=null&&G.pageProps&&(q.props.pageProps.statusCode=500);try{await this.set(Xn,q,At)}catch(Ne){throw(0,s.default)(Ne)&&Ne.cancelled&&bt.events.emit("routeChangeError",Ne,Ke,Be),Ne}return!0}if(bt.events.emit("beforeHistoryChange",x,Be),this.changeState(I,A,x,M),!(oe&&!At&&!Ee&&!_e&&(0,B.compareRouterStates)(Xn,this.state))){try{await this.set(Xn,q,At)}catch(Ne){if(Ne.cancelled)q.error=q.error||Ne;else throw Ne}if(q.error)throw oe||bt.events.emit("routeChangeError",q.error,Ke,Be),q.error;__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT&&X.locale&&(document.documentElement.lang=X.locale),oe||bt.events.emit("routeChangeComplete",x,Be),ot&&/#.+$/.test(x)&&this.scrollToHash(x)}return!0}catch(q){if((0,s.default)(q)&&q.cancelled)return!1;throw q}}changeState(I,A,x,M={}){(I!=="pushState"||(0,l.getURL)()!==x)&&(this._shallow=M.shallow,window.history[I]({url:A,as:x,options:M,__N:!0,key:this._key=I!=="pushState"?this._key:Te()},"",x))}async handleRouteInfoError(I,A,x,M,W,se){if(I.cancelled)throw I;if((0,a.isAssetError)(I)||se)throw bt.events.emit("routeChangeError",I,M,W),we({url:M,router:this}),ye();console.error(I);try{let he;const{page:me,styleSheets:ne}=await this.fetchComponent("/_error"),ce={props:he,Component:me,styleSheets:ne,err:I,error:I};if(!ce.props)try{ce.props=await this.getInitialProps(me,{err:I,pathname:A,query:x})}catch(be){console.error("Error in error page `getInitialProps`: ",be),ce.props={}}return ce}catch(he){return this.handleRouteInfoError((0,s.default)(he)?he:Object.defineProperty(new Error(he+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),A,x,M,W,!0)}}async getRouteInfo({route:I,pathname:A,query:x,as:M,resolvedAs:W,routeProps:se,locale:he,hasMiddleware:me,isPreview:ne,unstable_skipClientCache:ce,isQueryUpdating:be,isMiddlewareRewrite:re,isNotFound:G}){var oe,ee,X,Ee;let Fe=I;try{let Ge=this.components[Fe];if(se.shallow&&Ge&&this.route===Fe)return Ge;const Bt=$e({route:Fe,router:this});me&&(Ge=void 0);let rt=Ge&&!("initial"in Ge)?Ge:void 0;const Be=be,Ke={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:A,query:x}),skipInterpolation:!0,asPath:G?"/404":W,locale:he}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:Be?this.sbc:this.sdc,persistCache:!ne,isPrefetch:!1,unstable_skipClientCache:ce,isBackground:Be};let _e=be&&!re?null:await nt({fetchData:()=>fe(Ke),asPath:G?"/404":W,locale:he,router:this}).catch(He=>{if(be)return null;throw He});if(_e&&(A==="/_error"||A==="/404")&&(_e.effect=void 0),be&&(_e?_e.json=self.__NEXT_DATA__.props:_e={json:self.__NEXT_DATA__.props}),Bt(),((oe=_e==null?void 0:_e.effect)==null?void 0:oe.type)==="redirect-internal"||((ee=_e==null?void 0:_e.effect)==null?void 0:ee.type)==="redirect-external")return _e.effect;if(((X=_e==null?void 0:_e.effect)==null?void 0:X.type)==="rewrite"){const He=(0,o.removeTrailingSlash)(_e.effect.resolvedHref),qe=await this.pageLoader.getPageList();if((!be||qe.includes(He))&&(Fe=He,A=_e.effect.resolvedHref,x={...x,..._e.effect.parsedAs.query},W=(0,S.removeBasePath)((0,u.normalizeLocalePath)(_e.effect.parsedAs.pathname,this.locales).pathname),Ge=this.components[Fe],se.shallow&&Ge&&this.route===Fe&&!me))return{...Ge,route:Fe}}if((0,O.isAPIRoute)(Fe))return we({url:M,router:this}),new Promise(()=>{});const xe=rt||await this.fetchComponent(Fe).then(He=>({Component:He.page,styleSheets:He.styleSheets,__N_SSG:He.mod.__N_SSG,__N_SSP:He.mod.__N_SSP})),Re=(Ee=_e==null?void 0:_e.response)==null?void 0:Ee.headers.get("x-middleware-skip"),Xe=xe.__N_SSG||xe.__N_SSP;Re&&_e!=null&&_e.dataHref&&delete this.sdc[_e.dataHref];const{props:st,cacheKey:Sn}=await this._getData(async()=>{if(Xe){if(_e!=null&&_e.json&&!Re)return{cacheKey:_e.cacheKey,props:_e.json};const He=_e!=null&&_e.dataHref?_e.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:A,query:x}),asPath:W,locale:he}),qe=await fe({dataHref:He,isServerRender:this.isSsr,parseJSON:!0,inflightCache:Re?{}:this.sdc,persistCache:!ne,isPrefetch:!1,unstable_skipClientCache:ce});return{cacheKey:qe.cacheKey,props:qe.json||{}}}return{headers:{},props:await this.getInitialProps(xe.Component,{pathname:A,query:x,asPath:M,locale:he,locales:this.locales,defaultLocale:this.defaultLocale})}});return xe.__N_SSP&&Ke.dataHref&&Sn&&delete this.sdc[Sn],!this.isPreview&&xe.__N_SSG&&!be&&fe(Object.assign({},Ke,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),st.pageProps=Object.assign({},st.pageProps),xe.props=st,xe.route=Fe,xe.query=x,xe.resolvedAs=W,this.components[Fe]=xe,xe}catch(Ge){return this.handleRouteInfoError((0,s.getProperError)(Ge),A,x,M,se)}}set(I,A,x){return this.state=I,this.sub(A,this.components["/_app"].Component,x)}beforePopState(I){this._bps=I}onlyAHashChange(I){if(!this.asPath)return!1;const[A,x]=this.asPath.split("#",2),[M,W]=I.split("#",2);return W&&A===M&&x===W?!0:A!==M?!1:x!==W}scrollToHash(I){const[,A=""]=I.split("#",2);(0,$.disableSmoothScrollDuringRouteTransition)(()=>{if(A===""||A==="top"){window.scrollTo(0,0);return}const x=decodeURIComponent(A),M=document.getElementById(x);if(M){M.scrollIntoView();return}const W=document.getElementsByName(x)[0];W&&W.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(I)})}urlIsNew(I){return this.asPath!==I}async prefetch(I,A=I,x={}){if(typeof window<"u"&&(0,j.isBot)(window.navigator.userAgent))return;let M=(0,h.parseRelativeUrl)(I);const W=M.pathname;let{pathname:se,query:he}=M;const me=se;if(__OM_EMBED_CONFIG__.__NEXT_I18N_SUPPORT&&x.locale===!1){se=(0,u.normalizeLocalePath)(se,this.locales).pathname,M.pathname=se,I=(0,g.formatWithValidation)(M);let ee=(0,h.parseRelativeUrl)(A);const X=(0,u.normalizeLocalePath)(ee.pathname,this.locales);ee.pathname=X.pathname,x.locale=X.detectedLocale||this.defaultLocale,A=(0,g.formatWithValidation)(ee)}const ne=await this.pageLoader.getPageList();let ce=A;const be=typeof x.locale<"u"?x.locale||void 0:this.locale,re=await ie({asPath:A,locale:be,router:this});if(__OM_EMBED_CONFIG__.__NEXT_HAS_REWRITES&&A.startsWith("/")){let ee;({__rewrites:ee}=await(0,a.getClientBuildManifest)());const X=te((0,y.addBasePath)((0,v.addLocale)(A,this.locale),!0),ne,ee,M.query,Ee=>ve(Ee,ne),this.locales);if(X.externalDest)return;re||(ce=(0,E.removeLocale)((0,S.removeBasePath)(X.asPath),this.locale)),X.matchedPage&&X.resolvedHref&&(se=X.resolvedHref,M.pathname=se,re||(I=(0,g.formatWithValidation)(M)))}M.pathname=ve(M.pathname,ne),(0,d.isDynamicRoute)(M.pathname)&&(se=M.pathname,M.pathname=se,Object.assign(he,(0,f.getRouteMatcher)((0,m.getRouteRegex)(M.pathname))((0,R.parsePath)(A).pathname)||{}),re||(I=(0,g.formatWithValidation)(M)));const G=__OM_EMBED_CONFIG__.__NEXT_MIDDLEWARE_PREFETCH==="strict"?null:await nt({fetchData:()=>fe({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:me,query:he}),skipInterpolation:!0,asPath:ce,locale:be}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:A,locale:be,router:this});if((G==null?void 0:G.effect.type)==="rewrite"&&(M.pathname=G.effect.resolvedHref,se=G.effect.resolvedHref,he={...he,...G.effect.parsedAs.query},ce=G.effect.parsedAs.pathname,I=(0,g.formatWithValidation)(M)),(G==null?void 0:G.effect.type)==="redirect-external")return;const oe=(0,o.removeTrailingSlash)(se);await this._bfl(A,ce,x.locale,!0)&&(this.components[W]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(oe).then(ee=>ee?fe({dataHref:G!=null&&G.json?G==null?void 0:G.dataHref:this.pageLoader.getDataHref({href:I,asPath:ce,locale:be}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:x.unstable_skipClientCache||x.priority&&!!__OM_EMBED_CONFIG__.__NEXT_OPTIMISTIC_CLIENT_CACHE}).then(()=>!1).catch(()=>!1):!1),this.pageLoader[x.priority?"loadPage":"prefetch"](oe)])}async fetchComponent(I){const A=$e({route:I,router:this});try{const x=await this.pageLoader.loadPage(I);return A(),x}catch(x){throw A(),x}}_getData(I){let A=!1;const x=()=>{A=!0};return this.clc=x,I().then(M=>{if(x===this.clc&&(this.clc=null),A){const W=Object.defineProperty(new Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw W.cancelled=!0,W}return M})}getInitialProps(I,A){const{Component:x}=this.components["/_app"],M=this._wrapApp(x);return A.AppTree=M,(0,l.loadGetInitialProps)(x,{AppTree:M,Component:I,router:this,ctx:A})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}};De.events=(0,p.default)();let ze=De})(lh)),lh}var sg={},cg;function MI(){return cg||(cg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return t}});const t=On()._(Ro).default.createContext(null)})(sg)),sg}var vc={exports:{}},ug;function LI(){return ug||(ug=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});const n=lu,r=pg();function o(a){function i(s){return(0,n.jsx)(a,{router:(0,r.useRouter)(),...s})}return i.getInitialProps=a.getInitialProps,i.origGetInitialProps=a.origGetInitialProps,i}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(vc,vc.exports)),vc.exports}var lg;function pg(){return lg||(lg=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(b,R){for(var v in R)Object.defineProperty(b,v,{enumerable:!0,get:R[v]})}n(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return f},makePublicRouterInstance:function(){return g},useRouter:function(){return m},withRouter:function(){return c.default}});const r=On(),o=r._(Ro),a=r._(NI()),i=MI(),s=r._(Lh()),c=r._(LI()),u={router:null,readyCallbacks:[],ready(b){if(this.router)return b();typeof window<"u"&&this.readyCallbacks.push(b)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],l=["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"],d=["push","replace","reload","back","prefetch","beforePopState"];Object.defineProperty(u,"events",{get(){return a.default.events}});function h(){if(!u.router){const b=`No router instance found.
|
|
492
|
-
You should only use "next/router" on the client side of your app.
|
|
493
|
-
`;throw Object.defineProperty(new Error(b),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,configurable:!0})}return u.router}p.forEach(b=>{Object.defineProperty(u,b,{get(){return h()[b]}})}),d.forEach(b=>{u[b]=(...R)=>h()[b](...R)}),l.forEach(b=>{u.ready(()=>{a.default.events.on(b,(...R)=>{const v=`on${b.charAt(0).toUpperCase()}${b.substring(1)}`,E=u;if(E[v])try{E[v](...R)}catch(S){console.error(`Error when running the Router event: ${v}`),console.error((0,s.default)(S)?`${S.message}
|
|
494
|
-
${S.stack}`:S+"")}})})});const f=u;function m(){const b=o.default.useContext(i.RouterContext);if(!b)throw Object.defineProperty(new Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return b}function _(...b){return u.router=new a.default(...b),u.readyCallbacks.forEach(R=>R()),u.readyCallbacks=[],u.router}function g(b){const R=b,v={};for(const E of p){if(typeof R[E]=="object"){v[E]=Object.assign(Array.isArray(R[E])?[]:{},R[E]);continue}v[E]=R[E]}return v.events=a.default.events,d.forEach(E=>{v[E]=(...S)=>R[E](...S)}),v}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Gs,Gs.exports)),Gs.exports}var dg,fg;function DI(){return fg||(fg=1,dg=pg()),dg}var jI=DI();const bc=ry(jI),$I=bc.events?bc:bc.default,Ec=L;function FI(){let e;const t=Ec.document.getElementById("__NEXT_DATA__");if(t!=null&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{Ot&&w.warn("Could not extract __NEXT_DATA__")}if(!e)return{};const n={},{page:r,query:o,props:a}=e;return n.route=r,n.params=o,a!=null&&a.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}function UI(e){const{route:t,params:n,sentryTrace:r,baggage:o}=FI(),a=oy(o);let i=t||Ec.location.pathname;a!=null&&a["sentry-transaction"]&&i==="/_error"&&(i=a["sentry-transaction"],i=i.replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));const s=Qe();ln(e,{name:i,startTime:s?s/1e3:void 0,attributes:{[Se]:"pageload",[Q]:"auto.pageload.nextjs.pages_router_instrumentation",[ue]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:o})}function BI(e){$I.events.on("routeChangeStart",t=>{const n=hi(t),r=HI(n);let o,a;r?(o=r,a="route"):(o=n,a="url"),jt(e,{name:o,attributes:{[Se]:"navigation",[Q]:"auto.navigation.nextjs.pages_router_instrumentation",[ue]:a}})})}function HI(e){var t;const n=(t=Ec.__BUILD_MANIFEST)==null?void 0:t.sortedPages;if(n)return n.find(r=>{const o=qI(r);return e.match(o)})}function qI(e){var t;const n=e.split("/");let r="";(t=n[n.length-1])!=null&&t.match(/^\[\[\.\.\..+\]\]$/)&&(n.pop(),r="(?:/(.+?))?");const o=n.map(a=>a.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return new RegExp(`^${o}${r}(?:/)?$`)}function WI(e){L.document.getElementById("__NEXT_DATA__")?UI(e):Dx(e)}function zI(e){L.document.getElementById("__NEXT_DATA__")?BI(e):jx(e)}function hg(e={}){const t=gr({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...o){var a;const[i,{headers:s}]=o;return s!=null&&s.get("next-router-prefetch")&&(i==null||i.setAttribute("http.request.prefetch",!0)),(a=e.onRequestSpanStart)==null?void 0:a.call(e,...o)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(o){r&&zI(o),t.afterAllSetup(o),n&&WI(o)}}}const GI=({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...Sl({iteratee:o=>{var a,i,s,c,u,p,l,d;if(r){const h=typeof window<"u"&&window.location?window.location.origin:"";if((a=o.filename)!=null&&a.startsWith(h)&&!o.filename.endsWith(".js"))return o;if(e)(i=o.filename)!=null&&i.startsWith(e)&&(o.filename=o.filename.replace(e,"app://"));else if(t)try{const{origin:f}=new URL(o.filename);f===h&&(o.filename=(s=o.filename)==null?void 0:s.replace(f,"app://").replace(t,""))}catch{}}else try{const{origin:h}=new URL(o.filename);o.filename=(c=o.filename)==null?void 0:c.replace(h,"app://").replace(n,"")}catch{}return r?((u=o.filename)!=null&&u.includes("/_next")&&(o.filename=decodeURI(o.filename)),(p=o.filename)!=null&&p.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(o.in_app=!1)):((l=o.filename)!=null&&l.startsWith("app:///_next")&&(o.filename=decodeURI(o.filename)),(d=o.filename)!=null&&d.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(o.in_app=!1)),o}}),name:"NextjsClientStackFrameNormalization"}),Sc=new GS(100);function XI(e){const t=to(e)||e,n=Sc.get(t);if(n!==void 0)return n;const r=oh();if(!(r!=null&&r.isrRoutes)||!Array.isArray(r.isrRoutes)||r.isrRoutes.length===0)return Sc.set(t,!1),!1;const o=r.isrRoutes.includes(t);return Sc.set(t,o),o}function VI(){if(!L.document||!XI(L.location.pathname))return;function e(t){try{const n=L.document.querySelector(`meta[name="${t}"]`);n&&n.remove()}catch{}}e("sentry-trace"),e("baggage")}const JI=de;function KI(e){const t=__OM_EMBED_CONFIG__._sentryRewritesTunnelPath||JI._sentryRewritesTunnelPath;if(t&&e.dsn){const n=Fc(e.dsn);if(!n)return;const r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){const o=r[1],a=r[2];let i=`${t}?o=${o}&p=${n.projectId}`;a&&(i+=`&r=${a}`),e.tunnel=i,Ot&&w.log(`Tunneling events to "${i}"`)}else Ot&&w.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}var wc={exports:{}},mg,_g;function YI(){return _g||(_g=1,mg=["chrome 111","edge 111","firefox 111","safari 16.4"]),mg}var gg={},yg;function QI(){return yg||(yg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(i,s){for(var c in s)Object.defineProperty(i,c,{enumerable:!0,get:s[c]})}t(e,{UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return o},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return a},UNDERSCORE_NOT_FOUND_ROUTE:function(){return n},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return r}});const n="/_not-found",r=`${n}/page`,o="/_global-error",a=`${o}/page`})(gg)),gg}var vg;function ZI(){return vg||(vg=1,(function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0});function r(ee,X){for(var Ee in X)Object.defineProperty(ee,Ee,{enumerable:!0,get:X[Ee]})}r(t,{APP_CLIENT_INTERNALS:function(){return De},APP_PATHS_MANIFEST:function(){return g},APP_PATH_ROUTES_MANIFEST:function(){return b},AdapterOutputType:function(){return c},BARREL_OPTIMIZATION_PREFIX:function(){return nt},BLOCKED_PAGES:function(){return ie},BUILD_ID_FILE:function(){return ye},BUILD_MANIFEST:function(){return R},CLIENT_PUBLIC_FILES_PATH:function(){return pe},CLIENT_REFERENCE_MANIFEST:function(){return xt},CLIENT_STATIC_FILES_PATH:function(){return Pe},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return we},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return $e},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return I},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return A},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ze},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return K},COMPILER_INDEXES:function(){return s},COMPILER_NAMES:function(){return i},CONFIG_FILES:function(){return te},DEFAULT_RUNTIME_WEBPACK:function(){return x},DEFAULT_SANS_SERIF_FONT:function(){return me},DEFAULT_SERIF_FONT:function(){return he},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return D},DEV_CLIENT_PAGES_MANIFEST:function(){return C},DYNAMIC_CSS_MANIFEST:function(){return Te},EDGE_RUNTIME_WEBPACK:function(){return M},EDGE_UNSUPPORTED_NODE_APIS:function(){return G},EXPORT_DETAIL:function(){return P},EXPORT_MARKER:function(){return y},FUNCTIONS_CONFIG_MANIFEST:function(){return v},IMAGES_MANIFEST:function(){return k},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return fe},MIDDLEWARE_BUILD_MANIFEST:function(){return Ut},MIDDLEWARE_MANIFEST:function(){return F},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return It},MODERN_BROWSERSLIST_TARGET:function(){return o.default},NEXT_BUILTIN_DOCUMENT:function(){return Je},NEXT_FONT_MANIFEST:function(){return S},PAGES_MANIFEST:function(){return _},PHASE_ANALYZE:function(){return p},PHASE_DEVELOPMENT_SERVER:function(){return h},PHASE_EXPORT:function(){return u},PHASE_INFO:function(){return m},PHASE_PRODUCTION_BUILD:function(){return l},PHASE_PRODUCTION_SERVER:function(){return d},PHASE_TEST:function(){return f},PREFETCH_HINTS:function(){return O},PRERENDER_MANIFEST:function(){return T},REACT_LOADABLE_MANIFEST:function(){return H},REQUEST_INSIGHTS_DEV_ENDPOINT:function(){return j},ROUTES_MANIFEST:function(){return N},RSC_MODULE_TYPES:function(){return re},SERVER_DIRECTORY:function(){return Z},SERVER_FILES_MANIFEST:function(){return B},SERVER_PROPS_ID:function(){return se},SERVER_REFERENCE_MANIFEST:function(){return Ft},STATIC_PROPS_ID:function(){return W},STATIC_STATUS_PAGES:function(){return ne},STRING_LITERAL_DROP_BUNDLE:function(){return ve},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return E},SYSTEM_ENTRYPOINTS:function(){return oe},TRACE_OUTPUT_VERSION:function(){return ce},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return $},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return z},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return be},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return a.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return a.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return a.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return a.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY}});const o=On()._(YI()),a=QI(),i={client:"client",server:"server",edgeServer:"edge-server"},s={[i.client]:0,[i.server]:1,[i.edgeServer]:2};var c=(function(ee){return ee.PAGES="PAGES",ee.PAGES_API="PAGES_API",ee.APP_PAGE="APP_PAGE",ee.APP_ROUTE="APP_ROUTE",ee.PRERENDER="PRERENDER",ee.STATIC_FILE="STATIC_FILE",ee.MIDDLEWARE="MIDDLEWARE",ee})({});const u="phase-export",p="phase-analyze",l="phase-production-build",d="phase-production-server",h="phase-development-server",f="phase-test",m="phase-info",_="pages-manifest.json",g="app-paths-manifest.json",b="app-path-routes-manifest.json",R="build-manifest.json",v="functions-config-manifest.json",E="subresource-integrity-manifest",S="next-font-manifest",y="export-marker.json",P="export-detail.json",T="prerender-manifest.json",O="prefetch-hints.json",N="routes-manifest.json",k="images-manifest.json",B="required-server-files",C="_devPagesManifest.json",j="/_next/development/request-insights",F="middleware-manifest.json",z="_clientMiddlewareManifest.js",$="client-build-manifest.json",D="_devMiddlewareManifest.json",H="react-loadable-manifest.json",Z="server",te=["next.config.js","next.config.mjs","next.config.ts",...(n=process==null?void 0:process.features)!=null&&n.typescript?["next.config.mts"]:[]],ye="BUILD_ID",ie=["/_document","/_app","/_error"],pe="public",Pe="static",ve="__NEXT_DROP_CLIENT_FILE__",Je="__NEXT_BUILTIN_DOCUMENT__",nt="__barrel_optimize__",xt="client-reference-manifest",Ft="server-reference-manifest",Ut="middleware-build-manifest",It="middleware-react-loadable-manifest",fe="interception-route-rewrite-manifest",Te="dynamic-css-manifest",we="main",$e=`${we}-app`,De="app-pages-internals",ze="react-refresh",K="webpack",I="polyfills",A=Symbol(I),x="webpack-runtime",M="edge-runtime-webpack",W="__N_SSG",se="__N_SSP",he={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},me={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ne=["/500"],ce=1,be=6e3,re={client:"client",server:"server"},G=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],oe=new Set([we,ze,$e]);(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(wc,wc.exports)),wc.exports}var bg,Eg;function eA(){return Eg||(Eg=1,bg=ZI()),bg}var tA=eA();function Gn(){return __OM_EMBED_CONFIG__.NEXT_PHASE===tA.PHASE_PRODUCTION_BUILD}const nA="sentry.route_backfill";function Sr(e){return async function(...t){try{return await e.apply(this,t)}catch(n){throw ge(n,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),n}}}function io(e,t,n,r){return async function(...o){const a=el(t);ae().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),Ze().setSDKProcessingMetadata({normalizedRequest:a});const i=Ie();i&&r.requestedRouteName!=="/_error"&&Me(i).setAttribute(nA,r.requestedRouteName);const{"sentry-trace":s,baggage:c}=Mo();return{sentryTrace:s,baggage:c,data:await e.apply(this,o)}}}async function rA(e,t){try{return await e(...t)}catch(n){throw ge(n,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),n}}function oA(e,t){return new Proxy(e,{apply:async(n,r,o)=>{if(Gn())return n.apply(r,o);const a=Sr(n);return rA(a,o)}})}function aA(e){return new Proxy(e,{apply:async(t,n,r)=>{if(Gn())return t.apply(n,r);const[o]=r,{req:a,res:i}=o,s=Sr(t);if(a&&i){const c=io(s,a,i,{dataFetcherRouteName:o.pathname,requestedRouteName:o.pathname,dataFetchingMethodName:"getInitialProps"}),{data:u,baggage:p,sentryTrace:l}=await c.apply(n,r)??{};return typeof u=="object"&&u!==null&&(l&&(u._sentryTraceData=l),p&&(u._sentryBaggage=p)),u}else return s.apply(n,r)}})}function iA(e){return new Proxy(e,{apply:async(t,n,r)=>{if(Gn())return t.apply(n,r);const[o]=r,{req:a,res:i}=o.ctx,s=Sr(t);if(a&&i){const c=io(s,a,i,{dataFetcherRouteName:"/_app",requestedRouteName:o.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:u,sentryTrace:p,baggage:l}=await c.apply(n,r);return typeof u=="object"&&u!==null&&(u.pageProps||(u.pageProps={}),p&&(u.pageProps._sentryTraceData=p),l&&(u.pageProps._sentryBaggage=l)),u}else return s.apply(n,r)}})}function sA(e){return new Proxy(e,{apply:async(t,n,r)=>{if(Gn())return t.apply(n,r);const[o]=r,{req:a,res:i}=o,s=Sr(t);if(a&&i){const c=io(s,a,i,{dataFetcherRouteName:"/_document",requestedRouteName:o.pathname,dataFetchingMethodName:"getInitialProps"}),{data:u}=await c.apply(n,r);return u}else return s.apply(n,r)}})}function cA(e){return new Proxy(e,{apply:async(t,n,r)=>{if(Gn())return t.apply(n,r);const[o]=r,{req:a,res:i}=o,s=Sr(t);if(a&&i){const c=io(s,a,i,{dataFetcherRouteName:"/_error",requestedRouteName:o.pathname,dataFetchingMethodName:"getInitialProps"}),{data:u,baggage:p,sentryTrace:l}=await c.apply(n,r);return typeof u=="object"&&u!==null&&(l&&(u._sentryTraceData=l),p&&(u._sentryBaggage=p)),u}else return s.apply(n,r)}})}function uA(e,t){return new Proxy(e,{apply:async(n,r,o)=>{if(Gn())return n.apply(r,o);const[a]=o,{req:i,res:s}=a,c=Sr(n),u=io(c,i,s,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:p,baggage:l,sentryTrace:d}=await u.apply(r,o);return typeof p=="object"&&p!==null&&"props"in p&&(d&&(p.props._sentryTraceData=d),l&&(p.props._sentryBaggage=l)),p}})}async function bn(){try{Ot&&w.log("Flushing events..."),await Kc(2e3),Ot&&w.log("Done flushing events")}catch(e){Ot&&w.log(`Error while flushing events:
|
|
495
|
-
`,e)}}function En(e){if(pA()){lA(e);return}XS(e)}function Sg(){var e;const t=Symbol.for("__cloudflare-context__");return(e=de[t])==null?void 0:e.ctx}function lA(e){var t;(t=Sg())==null||t.waitUntil(e)}function pA(){var e;return typeof((e=Sg())==null?void 0:e.waitUntil)=="function"}function dA(e,t){return new Proxy(e,{apply:(n,r,o)=>{const a=Ze(),i=t.headers?Lo(t.headers):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),Gt(()=>n.apply(r,o),s=>{const c=Ie(),{componentRoute:u,componentType:p}=t;let l=!0;a.setTransactionName(`${p} Server Component (${u})`),c&&(ka(s)?(l=!1,c.setStatus({code:Oe,message:"not_found"})):eo(s)?(l=!1,c.setStatus({code:fo})):c.setStatus({code:Oe,message:"internal_error"})),l&&ge(s,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{En(bn())})}})}const wg=new WeakMap;function fA(e){if(typeof e=="object"&&e){const t=wg.get(e);if(t)return t;{const n=new yo;return wg.set(e,n),n}}else return new yo}function hA(e,t){const{method:n,parameterizedRoute:r,headers:o}=t;return new Proxy(e,{apply:async(a,i,s)=>{const c=Ie(),u=c?Me(c):void 0;let p;if(u&&__OM_EMBED_CONFIG__.NEXT_RUNTIME==="edge"){const l=fA(o),{scope:d}=Ha(u);Xa(u,d??new yo,l),p=l,u.updateName(`${n} ${r}`),u.setAttribute(ue,"route"),u.setAttribute(Se,"http.server")}return Zn(__OM_EMBED_CONFIG__.NEXT_RUNTIME==="edge"?p:Ze(),()=>Ye(async l=>{if(l.setTransactionName(`${n} ${r}`),__OM_EMBED_CONFIG__.NEXT_RUNTIME==="edge"){const h=o?Lo(o):{},f=Ja(h["sentry-trace"],h.baggage);l.setPropagationContext(f),l.setSDKProcessingMetadata({normalizedRequest:{method:n,headers:h}})}const d=await Gt(()=>a.apply(i,s),h=>{eo(h)||(ka(h)?(c&&qt(c,404),u&&qt(u,404)):ge(h,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{En(bn())});try{d.status&&(c&&qt(c,d.status),u&&qt(u,d.status))}catch{}return d}))}})}function mA(e,t){return new Proxy(e,{apply:(n,r,o)=>{if(!(o!=null&&o[0]))return n.apply(r,o);const[a]=o;let i;const s="nextUrl"in a?a.nextUrl.pathname:a.url,c="nextUrl"in a?a.headers.get("user-agent"):a.headers["user-agent"];if(!t||!(c!=null&&c.includes("vercel-cron")))return n.apply(r,o);const u=t.find(f=>f.path===s);if(!(u!=null&&u.path)||!u.schedule)return n.apply(r,o);const p=u.path,l=vo({monitorSlug:p,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:u.schedule}}),d=bo()/1e3,h=()=>{vo({checkInId:l,monitorSlug:p,status:"error",duration:bo()/1e3-d})};try{i=n.apply(r,o)}catch(f){throw h(),f}return typeof i=="object"&&i!==null&&"then"in i?(Promise.resolve(i).then(()=>{vo({checkInId:l,monitorSlug:p,status:"ok",duration:bo()/1e3-d})},()=>{h()}),i):(vo({checkInId:l,monitorSlug:p,status:"ok",duration:bo()/1e3-d}),i)}})}function _A(e){return new Proxy(e,{apply:async(t,n,r)=>{const o="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(o&&typeof o=="string"){const a=r[0];if(a instanceof Request&&new URL(a.url).pathname.startsWith(o))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}return Zn(a=>{const i=r[0],s=ae();let c,u;i instanceof Request?(a.setSDKProcessingMetadata({normalizedRequest:Kv(i)}),c=`middleware ${i.method}`,u="url"):(c="middleware",u="component"),s.setTransactionName(c);const p=Ie();if(p){c="middleware",u="component";const l=Me(p);l&&Xa(l,s,a)}return Rt({name:c,op:"http.server.middleware",attributes:{[ue]:u,[Q]:"auto.function.nextjs.wrap_middleware"}},()=>Gt(()=>t.apply(n,r),l=>{ge(l,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{En(bn())}))})}})}function gA(e){var t;return typeof e=="function"&&((t=e==null?void 0:e.prototype)==null?void 0:t.isReactComponent)}function yA(e){return gA(e)?class extends e{render(...t){return Zn(()=>{const n=ae(),r=typeof this.props=="object"&&this.props!==null&&"_sentryTraceData"in this.props&&typeof this.props._sentryTraceData=="string"?this.props._sentryTraceData:void 0;if(r){const o=Yc(r);n.setContext("trace",{span_id:o==null?void 0:o.parentSpanId,trace_id:o==null?void 0:o.traceId})}try{return super.render(...t)}catch(o){throw ge(o,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}}),o}})}}:typeof e=="function"?new Proxy(e,{apply(t,n,r){return Zn(()=>{var o;const a=ae(),i=(o=r==null?void 0:r[0])==null?void 0:o._sentryTraceData;if(i){const s=Yc(i);a.setContext("trace",{span_id:s==null?void 0:s.parentSpanId,trace_id:s==null?void 0:s.traceId})}try{return t.apply(n,r)}catch(s){throw ge(s,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}}),s}})}}):e}function vA(e,t){return new Proxy(e,{apply:(n,r,o)=>{var a,i;const s=Ze();let c;try{c=(i=(a=t.requestAsyncStorage)==null?void 0:a.getStore())==null?void 0:i.headers}catch{}const u=c?Lo(c):void 0;return s.setSDKProcessingMetadata({normalizedRequest:{headers:u}}),Gt(()=>n.apply(r,o),p=>{const l=Ie(),{componentRoute:d,componentType:h,generationFunctionIdentifier:f}=t;let m=!0;s.setTransactionName(`${h}.${f} (${d})`),l&&(ka(p)?(m=!1,l.setStatus({code:Oe,message:"not_found"})):eo(p)?(m=!1,l.setStatus({code:fo})):l.setStatus({code:Oe,message:"internal_error"})),m&&ge(p,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:f}}})},()=>{En(bn())})}})}function bA(...e){if(typeof e[1]=="function"){const[t,n]=e;return Rg(t,{},n)}else{const[t,n,r]=e;return Rg(t,n,r)}}async function Rg(e,t,n){return Zn(async r=>{var o;const a=(o=J())==null?void 0:o.getOptions().sendDefaultPii;let i,s;const c={};try{const u=await t.headers;i=(u==null?void 0:u.get("sentry-trace"))??void 0,s=u==null?void 0:u.get("baggage"),u==null||u.forEach((p,l)=>{c[l]=p})}catch{Ot&&w.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:c}}),(Ie()?(u,p)=>p():Eu)({sentryTrace:i,baggage:s},async()=>{try{return await Rt({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[ue]:"route",[Q]:"auto.function.nextjs.server_action"}},async u=>{const p=await Gt(n,l=>{ka(l)?u.setStatus({code:Oe,message:"not_found"}):eo(l)||(u.setStatus({code:Oe,message:"internal_error"}),ge(l,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(t.recordResponse!==void 0?t.recordResponse:a)&&Ze().setExtra("server_action_result",p),t.formData&&t.formData.forEach((l,d)=>{Ze().setExtra(`server_action_form_data.${d}`,typeof l=="string"?l:"[non-string value]")}),p})}finally{En(bn())}})})}function EA(e,t,n){Ye(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:Zu(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(`${t.method} ${n.routePath}`),ge(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),En(bn())})}async function SA(e){const{req:t,res:n,err:r}=e,o=(n==null?void 0:n.statusCode)||e.statusCode;if(o&&o<500||!e.pathname)return;if(r&&ay(r))return En(bn()),Ze().lastEventId();const a=Ye(i=>{if(t){const s=el(t);i.setSDKProcessingMetadata({normalizedRequest:s})}return ge(r||`_error.js called with falsy error (${r})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return En(bn()),a}function wA(e){const t=parseInt(e.slice(0,2),16),n=t>>7&1,r=t>>1&63,o=t&1,a=Array(6);for(let i=0;i<6;i++){const s=5-i,c=r>>s&1;a[i]=c===1}return{type:n===1?"use-cache":"server-action",usedArgs:a,hasRestArgs:o===1}}function RA(e){return e.$$typeof===Symbol.for("react.server.reference")}function PA(e){if(!RA(e))return!1;const{type:t}=wA(e.$$id);return t==="use-cache"}function Rc(e){const t=Gn(),n=e?PA(e):!1;return n&&Ot&&w.log("Skipping span creation in Cache Components context"),t||n}function Pc(){return new Mt({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function TA(e,t){return Rc(t)?t(Pc()):Rt(e,t)}function OA(e,t){if(Rc(t)){const n=Pc();return t(n,()=>n.end())}return Xt(e,t)}function xA(e){return Rc()?Pc():mt(e)}let Pg=!1;const so=de;function IA(e){Pg&&Ar(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),Pg=!0,!Ot&&e.debug&&Ar(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&VI();const t={environment:e.environment||__OM_EMBED_CONFIG__.SENTRY_ENVIRONMENT||Mx(!0)||"production",defaultIntegrations:AA(),release:__OM_EMBED_CONFIG__._sentryRelease||so._sentryRelease,...e};KI(t),ki(t,"nextjs",["nextjs","react"]);const n=SO(t),r=i=>i.type==="transaction"&&i.transaction==="/404"?null:i;r.id="NextClient404Filter",Eo(r);const o=i=>i.type==="transaction"&&i.transaction===ah?null:i;o.id="IncompleteTransactionFilter",Eo(o);const a=(i,s)=>{var c,u,p;return eo(s==null?void 0:s.originalException)||((p=(u=(c=i.exception)==null?void 0:c.values)==null?void 0:u[0])==null?void 0:p.value)==="NEXT_REDIRECT"?null:i};a.id="NextRedirectErrorFilter",Eo(a);try{process.turbopack&&Tn().setTag("turbopack",!0)}catch{}return n}function AA(e){const t=ys();(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&t.push(hg());const n=__OM_EMBED_CONFIG__._sentryRewriteFramesAssetPrefixPath||so._sentryRewriteFramesAssetPrefixPath||"",r=__OM_EMBED_CONFIG__._sentryAssetPrefix||so._sentryAssetPrefix,o=__OM_EMBED_CONFIG__._sentryBasePath||so._sentryBasePath,a=__OM_EMBED_CONFIG__._experimentalThirdPartyOriginStackFrames==="true"||so._experimentalThirdPartyOriginStackFrames==="true";return t.push(GI({assetPrefix:r,basePath:o,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:a})),t}function kA(e){return e}export{Kp as BrowserClient,Rf as ErrorBoundary,No as MULTIPLEXED_TRANSPORT_EXTRA_KEY,pO as OpenFeatureIntegrationHook,Ns as Profiler,ho as SDK_VERSION,Se as SEMANTIC_ATTRIBUTE_SENTRY_OP,Q as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Va as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,ue as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,yo as Scope,L as WINDOW,Nt as addBreadcrumb,Eo as addEventProcessor,bi as addIntegration,id as breadcrumbsIntegration,sd as browserApiErrorsIntegration,sO as browserProfilingIntegration,ud as browserSessionIntegration,hg as browserTracingIntegration,uO as buildLaunchDarklyFlagUsedHandler,_0 as captureConsoleIntegration,Qn as captureEvent,ge as captureException,Il as captureFeedback,Vc as captureMessage,ks as captureReactException,EA as captureRequestError,$x as captureRouterTransitionStart,go as captureSession,SA as captureUnderscoreErrorException,td as chromeStackLineParser,iy as close,Ab as consoleLoggingIntegration,LP as contextLinesIntegration,Eu as continueTrace,Db as createConsolaReporter,CS as createLangChainCallbackHandler,qO as createReduxEnhancer,Du as createTransport,OR as createUserFeedbackEnvelope,ld as cultureContextIntegration,ml as dedupeIntegration,Ts as defaultRequestInstrumentationOptions,rd as defaultStackLineParsers,od as defaultStackParser,_O as diagnoseSdkConnectivity,sy as endSession,al as eventFiltersIntegration,Vp as eventFromException,Jp as eventFromMessage,pa as exceptionFromError,P0 as extraErrorDataIntegration,ub as featureFlagsIntegration,lw as feedbackAsyncIntegration,Gp as feedbackIntegration,Gp as feedbackSyncIntegration,Kc as flush,fP as forceLoad,ol as functionToStringIntegration,nd as geckoStackLineParser,Ie as getActiveSpan,J as getClient,ae as getCurrentScope,ys as getDefaultIntegrations,b1 as getFeedback,Tn as getGlobalScope,Ze as getIsolationScope,Fy as getReplay,Me as getRootSpan,xr as getSpanDescendants,cy as getSpanStatusFromHttpCode,Mo as getTraceData,pd as globalHandlersIntegration,qP as graphqlClientIntegration,hO as growthbookIntegration,EP as httpClientIntegration,_d as httpContextIntegration,il as inboundFiltersIntegration,IA as init,pS as instrumentAnthropicAiClient,RS as instrumentGoogleGenAIClient,US as instrumentLangGraph,zE as instrumentOpenAiClient,zd as instrumentOutgoingRequests,Pl as instrumentSupabaseClient,Uc as isEnabled,uy as isInitialized,Xc as lastEventId,cO as launchDarklyIntegration,zp as lazyLoadIntegration,gd as linkedErrorsIntegration,Tb as logger,MT as makeBrowserOfflineTransport,gs as makeFetchTransport,zv as makeMultiplexedTransport,Mb as metrics,d0 as moduleMetadataIntegration,hP as onLoad,lO as openFeatureIntegration,wR as opera10StackLineParser,TR as opera11StackLineParser,Qu as parameterize,PO as reactErrorHandler,WO as reactRouterV3BrowserTracingIntegration,XO as reactRouterV4BrowserTracingIntegration,VO as reactRouterV5BrowserTracingIntegration,Rx as reactRouterV6BrowserTracingIntegration,Ix as reactRouterV7BrowserTracingIntegration,hu as registerSpanErrorInstrumentation,bO as registerWebWorker,cT as replayCanvasIntegration,Uy as replayIntegration,TT as reportPageLoaded,yP as reportingObserverIntegration,Sl as rewriteFramesIntegration,fp as sendFeedback,OT as setActiveSpanInBrowser,Jc as setContext,Ku as setCurrentClient,ly as setExtra,py as setExtras,qt as setHttpStatus,_u as setMeasurement,dy as setTag,fy as setTags,hy as setUser,vs as showReportDialog,my as spanToBaggageHeader,Y as spanToJSON,Bc as spanToTraceHeader,cP as spotlightBrowserIntegration,jt as startBrowserTracingNavigationSpan,ln as startBrowserTracingPageLoadSpan,xA as startInactiveSpan,wu as startNewTrace,ii as startSession,TA as startSpan,OA as startSpanManual,mO as statsigIntegration,z0 as supabaseIntegration,Su as suppressTracing,GO as tanstackRouterBrowserTracingIntegration,tb as thirdPartyErrorFilterIntegration,oR as uiProfiler,dO as unleashIntegration,_y as updateSpanName,jO as useProfiler,yO as webWorkerIntegration,bR as winjsStackLineParser,An as withActiveSpan,FO as withErrorBoundary,Zn as withIsolationScope,DO as withProfiler,Ye as withScope,kA as withSentryConfig,xx as withSentryReactRouterV6Routing,Ax as withSentryReactRouterV7Routing,KO as withSentryRouting,bA as withServerActionInstrumentation,mA as wrapApiHandlerWithSentryVercelCrons,iA as wrapAppGetInitialPropsWithSentry,Tx as wrapCreateBrowserRouterV6,kx as wrapCreateBrowserRouterV7,Ox as wrapCreateMemoryRouterV6,Cx as wrapCreateMemoryRouterV7,sA as wrapDocumentGetInitialPropsWithSentry,cA as wrapErrorGetInitialPropsWithSentry,vA as wrapGenerationFunctionWithSentry,aA as wrapGetInitialPropsWithSentry,uA as wrapGetServerSidePropsWithSentry,oA as wrapGetStaticPropsWithSentry,_A as wrapMiddlewareWithSentry,yA as wrapPageComponentWithSentry,hA as wrapRouteHandlerWithSentry,dA as wrapServerComponentWithSentry,Px as wrapUseRoutesV6,Nx as wrapUseRoutesV7,eb as zodErrorsIntegration};
|
|
496
|
-
/*!
|
|
497
|
-
* cookie
|
|
498
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
499
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
500
|
-
* MIT Licensed
|
|
501
|
-
*/
|