@outmarket-ai/react-sdk 0.1.0-alpha.8 → 0.2.0-alpha.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-CtI_gK37.js +0 -1
- package/dist/AlertDialog-CDCLewdq.js +0 -1
- package/dist/ApproveWorkflowsList-gQPUKmsu.js +0 -5
- package/dist/BORLetterEditor-CtC1RNsd.js +0 -119
- package/dist/BillDetailModal-CSpiLdgX.js +0 -1
- package/dist/CoiIssueHolderModal-AqiyBjQB.js +0 -1
- package/dist/DeletePromptDialog-BW7-t3_K.js +0 -1
- package/dist/EmailFormatSelectionDialog-Bhd6XCR9.js +0 -1
- package/dist/ExcelExportPreviewDialog-9yQjpEkL.js +0 -1
- package/dist/ExplainPanel-BCrxH-TO.js +0 -1
- package/dist/ExportDialog-CmXbHvzi.js +0 -30
- package/dist/ExportToAmsDialog-D_sLtoUw.js +0 -1
- package/dist/ExportToDriveDialog-9RqwCXvf.js +0 -1
- package/dist/FeedbackTool-C-rdNsQg.js +0 -30
- package/dist/LayerDetailModal-FaHB2Fwo.js +0 -1
- package/dist/LogoEditor-CWAjO24l.js +0 -1
- package/dist/MarkdownExportPreviewDialog-B0hq98OI.js +0 -5
- package/dist/NotificationDrawer-DgXso6g6.js +0 -7
- package/dist/PhoneNumbersDisplay-DDVahO0Y.js +0 -1
- package/dist/PlanSelector-DuJ2COOd.js +0 -26
- package/dist/PlanSettingsModal-CKt_38mR.js +0 -1
- package/dist/PlanWizardModal-BRqRx_zd.js +0 -1
- package/dist/RenameAssetDialog-8tVgvt3e.js +0 -1
- package/dist/SaveBlockDialog-C-XzIiXh.js +0 -1
- package/dist/SaveOutlineDialog-D4Qf8r76.js +0 -1
- package/dist/SavePromptDialog-DnSn86Xo.js +0 -1
- package/dist/ShareResourceDialog-CyJhB5mN.js +0 -1
- package/dist/TermsNoticeModal-BP7Xzyhm.js +0 -1
- package/dist/TowerAlertModal-xd7eZMIG.js +0 -1
- package/dist/TowerSummaryModal-BUFMF3A_.js +0 -1
- package/dist/VaultSettingsDialog-F6t83h6l.js +0 -1
- package/dist/ViewNoteDialog-DwfqHxX1.js +0 -1
- package/dist/WhatsNewProvider-CK0qY7YM.js +0 -36
- package/dist/WidgetRawDataView-Cw5pYPdW.js +0 -1
- package/dist/abap-BigKSa9N.js +0 -1
- package/dist/abnf-BEKfesOh.js +0 -1
- package/dist/actionscript-BnYqs9d1.js +0 -1
- package/dist/activityLog-BM7Ys0nb.js +0 -1
- package/dist/ada-2chomyqz.js +0 -1
- package/dist/agda-DTLXyPqy.js +0 -1
- package/dist/al-DRkhEx34.js +0 -1
- package/dist/antlr4-DDcUto5E.js +0 -1
- package/dist/apacheconf-CfJR2qHt.js +0 -1
- package/dist/apex-CGjyJzwB.js +0 -1
- package/dist/apl-D69Jjkp7.js +0 -1
- package/dist/applescript-CoKpps5B.js +0 -1
- package/dist/aql-BqUPvvHz.js +0 -1
- package/dist/arduino-C4cnBiGd.js +0 -1
- package/dist/arff-Ccd9Pakj.js +0 -1
- package/dist/asciidoc-BYegHcbW.js +0 -1
- package/dist/asm6502-BDaaQVIG.js +0 -1
- package/dist/asmatmel-C6P_xAbC.js +0 -1
- package/dist/aspnet-DOhXlT7M.js +0 -1
- package/dist/autohotkey-DvjRUflM.js +0 -1
- package/dist/autoit-Dcj5pjfb.js +0 -1
- package/dist/avisynth-BDCVHRAQ.js +0 -1
- package/dist/avro-idl-CEV-UGbG.js +0 -1
- package/dist/bash-ByvLEQlI.js +0 -1
- package/dist/bash-Jzmc6JlP.js +0 -1
- package/dist/basic-CC56mfFq.js +0 -1
- package/dist/basic-ls-wiqfo.js +0 -1
- package/dist/batch-ss5XsQIU.js +0 -1
- package/dist/bbcode-DAkvoCH-.js +0 -1
- package/dist/bell-DqiMrNBx.js +0 -7
- package/dist/bicep-BG_rbI36.js +0 -1
- package/dist/birb-BgYNM4Pn.js +0 -1
- package/dist/bison-0I-Wg9Pc.js +0 -1
- package/dist/blockEditorContent-CaeAHPm0.js +0 -166
- package/dist/bnf-B_0dznK9.js +0 -1
- package/dist/brainfuck-BisSTe70.js +0 -1
- package/dist/brightscript-FDH5YSTo.js +0 -1
- package/dist/bro-2B9t-bP5.js +0 -1
- package/dist/bsl-aIN2VVV1.js +0 -1
- package/dist/c-DA5TVlGb.js +0 -1
- package/dist/c-DxU1mQAV.js +0 -1
- package/dist/calendar-Bh3E9TOa.js +0 -7
- package/dist/cfscript-XDo0eDox.js +0 -1
- package/dist/chaiscript-CTWxrZcm.js +0 -1
- package/dist/cil-D89i6eBC.js +0 -1
- package/dist/clike--ZeWcJ3A.js +0 -1
- package/dist/clike-CStN-Ul5.js +0 -1
- package/dist/clojure-CMCWg_re.js +0 -1
- package/dist/cmake-Bg2gYZ__.js +0 -1
- package/dist/cobol-DwYLmC0z.js +0 -1
- package/dist/coffeescript-jKNXvfQ6.js +0 -1
- package/dist/concurnas-BxkckrkA.js +0 -1
- package/dist/confetti.module-gccwWOTG.js +0 -2
- package/dist/contactsList-vjrRYBPD.js +0 -18
- package/dist/copyPreviewToClipboard-BmYPe99R.js +0 -170
- package/dist/coq-Dadg3jQc.js +0 -1
- package/dist/core-D642znGO.js +0 -9
- package/dist/cpp-BAHXzibF.js +0 -1
- package/dist/cpp-DBmYs6pK.js +0 -1
- package/dist/crystal-BJBx4zfk.js +0 -1
- package/dist/csharp-BSNDnTjx.js +0 -1
- package/dist/csharp-CzFXtKq-.js +0 -1
- package/dist/cshtml-RC67RCZp.js +0 -1
- package/dist/csp-DdcBaGqa.js +0 -1
- package/dist/css-Bl9dOP35.js +0 -1
- package/dist/css-Dr8mrUZQ.js +0 -1
- package/dist/css-extras-BQ4aFk5g.js +0 -1
- package/dist/csv-1jUnSjhX.js +0 -1
- package/dist/cypher-DPkjYFtT.js +0 -1
- package/dist/d-DWIEaiKV.js +0 -1
- package/dist/dart-CrSwIAAl.js +0 -1
- package/dist/dataweave-8-FEDOkr.js +0 -1
- package/dist/dax-ClTqwT3r.js +0 -1
- package/dist/dhall-1x4hqvo9.js +0 -1
- package/dist/diff-B4I3FKw8.js +0 -3
- package/dist/django-CoLVd_OV.js +0 -1
- package/dist/dns-zone-file-B2KtUizB.js +0 -1
- package/dist/docker-DuiH_UdX.js +0 -1
- package/dist/dot-C2lF4s5C.js +0 -1
- package/dist/ebnf-0WeNGLY2.js +0 -1
- package/dist/editCarrierDialog-D8l5Zkqs.js +0 -1
- package/dist/editorconfig-m5rFhjF3.js +0 -1
- package/dist/eiffel-3Dh2kC0E.js +0 -1
- package/dist/ejs-BnCRSbOY.js +0 -1
- package/dist/elixir-CmgpudFb.js +0 -1
- package/dist/elm-B95NdPu4.js +0 -1
- package/dist/erb-_vDPqKB-.js +0 -1
- package/dist/erlang-C9B1Kx_G.js +0 -1
- package/dist/etlua-B7hEAAwg.js +0 -1
- package/dist/excel-formula-By4pLUZC.js +0 -1
- package/dist/exportFileGeneration-6fmb_tx0.js +0 -1
- package/dist/exportImageReadiness-4DNgsDvg.js +0 -1
- package/dist/exportImageReadinessNotifier-Cs2rfFjc.js +0 -1
- package/dist/exportPageHtml-BqFWTnEr.js +0 -5
- package/dist/exportPreviewToDocx-CxKmJOqe.js +0 -11
- package/dist/exportPreviewToPdf-Cv8DTpKD.js +0 -1
- package/dist/factor-Cv9tR1SR.js +0 -1
- package/dist/false-DOZHi-aq.js +0 -1
- package/dist/firestore-security-rules-NYVjMKAl.js +0 -1
- package/dist/flask-conical-DpitmQtV.js +0 -7
- package/dist/flow-C-49d_tB.js +0 -1
- package/dist/fortran-CdiJrZyz.js +0 -1
- package/dist/fsharp-C14gmM5p.js +0 -1
- package/dist/ftl-MX-RQzr7.js +0 -1
- package/dist/gap-CB7uoA88.js +0 -1
- package/dist/gcode-BC_-ipdZ.js +0 -1
- package/dist/gdscript-DyBYFPqm.js +0 -1
- package/dist/gedcom-BYnrtsDd.js +0 -1
- package/dist/gherkin-MvPsMZmW.js +0 -1
- package/dist/git-DSS8FvZZ.js +0 -1
- package/dist/glsl-GPyVYkxf.js +0 -1
- package/dist/gml-Dm54KvUs.js +0 -1
- package/dist/gn-t9O2QGL1.js +0 -1
- package/dist/go-CYGjl6kj.js +0 -1
- package/dist/go-module-DRbnf0cn.js +0 -1
- package/dist/graphql-BzZg4Qwb.js +0 -1
- package/dist/groovy-C4KhwcqI.js +0 -1
- package/dist/haml-CdBkE7y6.js +0 -1
- package/dist/handlebars-Z4lCsQhM.js +0 -1
- package/dist/haskell-LuiK7YZl.js +0 -1
- package/dist/haskell-fKcSYgFk.js +0 -1
- package/dist/haxe-Zw6q4JKZ.js +0 -1
- package/dist/hcl-BLOrpNqb.js +0 -1
- package/dist/highlighter-c4HdBTFz.js +0 -7
- package/dist/hlsl-C4fU7plE.js +0 -1
- package/dist/hoon-gGIQ6Dkx.js +0 -1
- package/dist/hpkp-DtmiqChs.js +0 -1
- package/dist/hsts-B1Tmkew4.js +0 -1
- package/dist/http-Bs3t9rtJ.js +0 -1
- package/dist/ichigojam-pQVgmhYa.js +0 -1
- package/dist/icon-3FOMR7dH.js +0 -1
- package/dist/icu-message-format-BUr0P3yI.js +0 -1
- package/dist/idris-lDH_n5Xg.js +0 -1
- package/dist/iecst-CqKy9noR.js +0 -1
- package/dist/ignore-CTAyeFmo.js +0 -1
- package/dist/image-plus-CfFQ94Dn.js +0 -7
- package/dist/index-7Bvh8xSP.js +0 -3
- package/dist/index-ANHSUwCh.js +0 -1
- package/dist/index-BXTkj5Ak.js +0 -1
- package/dist/index-BYll8ylX.js +0 -2
- package/dist/index-Baw4I3pJ.js +0 -1
- package/dist/index-BlyRtISc.js +0 -1
- package/dist/index-D0rFU7Uv.js +0 -1
- package/dist/index-uRfHkpFY.js +0 -13
- package/dist/index.client-Butbf4aW.js +0 -501
- package/dist/inform7-BoUMB1D5.js +0 -1
- package/dist/ini-CCzIyMfH.js +0 -1
- package/dist/io-B2_1aGUA.js +0 -1
- package/dist/j-xA_DUOS8.js +0 -1
- package/dist/java-CZIvhO6U.js +0 -1
- package/dist/java-D9Q8lVB9.js +0 -1
- package/dist/javadoc-CEHCIazZ.js +0 -1
- package/dist/javadoclike-DwY6wGSo.js +0 -1
- package/dist/javadoclike-odLU89VS.js +0 -1
- package/dist/javascript-CEunhhi4.js +0 -1
- package/dist/javascript-DiwhnYcG.js +0 -1
- package/dist/javastacktrace-pznAVNA0.js +0 -1
- package/dist/jexl-DyO8zf5J.js +0 -1
- package/dist/jolie-DmjbNYj5.js +0 -1
- package/dist/jq-BQdchS5O.js +0 -1
- package/dist/js-extras-DUZJMQmp.js +0 -1
- package/dist/js-templates-ElrBZ4Jj.js +0 -1
- package/dist/jsdoc-DDY_r3XT.js +0 -1
- package/dist/json-D4kK7Ph_.js +0 -1
- package/dist/json-Dzxqqkw_.js +0 -1
- package/dist/json5-BQCDImut.js +0 -1
- package/dist/jsonp-1nF5d-m0.js +0 -1
- package/dist/jsstacktrace-Czz9f9TU.js +0 -1
- package/dist/jsx-DWljo3VN.js +0 -1
- package/dist/jsx-DjXnni8N.js +0 -1
- package/dist/julia-CgJyRSoZ.js +0 -1
- package/dist/keepalived-CKgtcYPy.js +0 -1
- package/dist/keyman-B5dUl8kS.js +0 -1
- package/dist/kotlin-4Ach-elT.js +0 -1
- package/dist/kumir-C39UWCtm.js +0 -1
- package/dist/kusto-BXtE2zdp.js +0 -1
- package/dist/latex-BQGmGHxE.js +0 -1
- package/dist/latte-BOFejG7p.js +0 -1
- package/dist/less-BX5L49KW.js +0 -1
- package/dist/lilypond-DPahznE-.js +0 -1
- package/dist/link-2-off-CMbHcTf_.js +0 -7
- package/dist/liquid-Cw9vTIA8.js +0 -1
- package/dist/lisp-CzmgnmUB.js +0 -1
- package/dist/livescript-DboYDqCd.js +0 -1
- package/dist/llvm-CasUVKDw.js +0 -1
- package/dist/lock-keyhole-skFCqrBJ.js +0 -7
- package/dist/log-DV1uFCzE.js +0 -1
- package/dist/lolcode-DFzEO90r.js +0 -1
- package/dist/lua-BeIBSVZf.js +0 -1
- package/dist/lua-ChXESMGf.js +0 -1
- package/dist/lucide-react-Dan38t30.js +0 -7
- package/dist/luckyexcel.umd-CsZuNgrx.js +0 -12
- package/dist/magma-D1C3mHFR.js +0 -1
- package/dist/makefile-yrEONDTY.js +0 -1
- package/dist/markdown-C6L9M0GJ.js +0 -1
- package/dist/markup-BNcl78br.js +0 -1
- package/dist/markup-C46YaeBf.js +0 -1
- package/dist/markup-templating-CAdeHZjM.js +0 -1
- package/dist/markup-templating-RD0xxf_6.js +0 -1
- package/dist/matlab-BikbQ3P2.js +0 -1
- package/dist/maxscript-CfOquEzh.js +0 -1
- package/dist/mel-DwFsKvA4.js +0 -1
- package/dist/mermaid-CuO9em6F.js +0 -1
- package/dist/mizar-YuVnMTcD.js +0 -1
- package/dist/mongodb-CJC50hN4.js +0 -1
- package/dist/monkey-C0tN6iOw.js +0 -1
- package/dist/moonscript-B5NmiNug.js +0 -1
- package/dist/n1ql-C_BTxR_c.js +0 -1
- package/dist/n4js-CWusHex8.js +0 -1
- package/dist/nand2tetris-hdl-C7unHrcs.js +0 -1
- package/dist/naniscript-nVkx-cYy.js +0 -1
- package/dist/nasm-BDM7idC1.js +0 -1
- package/dist/neon-CnVTuon3.js +0 -1
- package/dist/nevod-CYuH-ySb.js +0 -1
- package/dist/nginx-lQiVIXkB.js +0 -1
- package/dist/nim-CRlcXtJ9.js +0 -1
- package/dist/nix-ChwdhUur.js +0 -1
- package/dist/nsis-BfTALRZP.js +0 -1
- package/dist/objectivec-BSrWJQWY.js +0 -1
- package/dist/ocaml-X1xISUjg.js +0 -1
- package/dist/opencl-C_OU6qPJ.js +0 -1
- package/dist/openqasm-CMiI3r9f.js +0 -1
- package/dist/oz-CUf7bFcn.js +0 -1
- package/dist/paintbrush-B_X7HjOd.js +0 -7
- package/dist/parigp-BVxcUg_C.js +0 -1
- package/dist/parser-C95naRnb.js +0 -1
- package/dist/pascal-CBBBasGg.js +0 -1
- package/dist/pascaligo-CWXvUYF0.js +0 -1
- package/dist/pcaxis-DnIDNGMw.js +0 -1
- package/dist/pen-tool-BdZiFVJ6.js +0 -7
- package/dist/peoplecode-Cae0EjdQ.js +0 -1
- package/dist/perl-TkSaDmje.js +0 -1
- package/dist/php-CGiqlrR_.js +0 -1
- package/dist/php-D0A5Cwxv.js +0 -1
- package/dist/php-extras-BAy5MOU1.js +0 -1
- package/dist/phpdoc-Dxo-DmkJ.js +0 -1
- package/dist/plsql-CX-1gCkd.js +0 -1
- package/dist/plyr-gOKkmcqP.js +0 -2
- package/dist/powerquery-DcMps1jW.js +0 -1
- package/dist/powershell-Cx-jb2qD.js +0 -1
- package/dist/processing-BjBT8hyL.js +0 -1
- package/dist/prolog-BTZeSK5I.js +0 -1
- package/dist/promql-BHleUnWL.js +0 -1
- package/dist/properties-CBor_cSr.js +0 -1
- package/dist/protobuf-DJWscUIM.js +0 -1
- package/dist/psl-BxdcX3BL.js +0 -1
- package/dist/pug-DclmtQmP.js +0 -1
- package/dist/puppet-jaG0CSXm.js +0 -1
- package/dist/pure-C69IVJc3.js +0 -1
- package/dist/purebasic-DIC-A5ep.js +0 -1
- package/dist/purescript-BUNAfPC-.js +0 -1
- package/dist/python-rIkUqkQ0.js +0 -1
- package/dist/q-Cstncgn0.js +0 -1
- package/dist/qml-CL3VBB9P.js +0 -1
- package/dist/qore-B-amTDNq.js +0 -1
- package/dist/qsharp-B5BHMvCC.js +0 -1
- package/dist/quill-B-naCi4q.js +0 -49
- package/dist/r-APudhEur.js +0 -1
- package/dist/racket-CVuEe0Tl.js +0 -1
- package/dist/react-sdk.css +0 -7
- package/dist/reason-rBd1jIdG.js +0 -1
- package/dist/regex-B-MxZiYP.js +0 -1
- package/dist/rego-zUUwRzpM.js +0 -1
- package/dist/renpy-BuTRu9-N.js +0 -1
- package/dist/rest-CuAMHAW1.js +0 -1
- package/dist/rip-qjJiVkq_.js +0 -1
- package/dist/roboconf-CyLJe0f8.js +0 -1
- package/dist/robotframework-ejhk4yJi.js +0 -1
- package/dist/ruby-3lCor9Ik.js +0 -1
- package/dist/ruby-Cwm614mA.js +0 -1
- package/dist/runtime-CibjLEeg.js +0 -6691
- package/dist/rust-DuMYvT1v.js +0 -1
- package/dist/sas-Dq5ROmS5.js +0 -1
- package/dist/sass-CT7CA30X.js +0 -1
- package/dist/scala-C8kOt561.js +0 -1
- package/dist/scheme-CNuKRS_6.js +0 -1
- package/dist/scheme-DkN0sF0_.js +0 -1
- package/dist/scss-Br-uSdM8.js +0 -1
- package/dist/shell-session-BPKy2Ckf.js +0 -1
- package/dist/smali-CXHHrEeQ.js +0 -1
- package/dist/smalltalk-DNqgAHMK.js +0 -1
- package/dist/smarty-DjHYZDHb.js +0 -1
- package/dist/sml-DRHzgHNn.js +0 -1
- package/dist/solidity-ADULtXu_.js +0 -1
- package/dist/solution-file-DE2F1vOl.js +0 -1
- package/dist/soy-B0jOfz80.js +0 -1
- package/dist/sparql-ClksZgj3.js +0 -1
- package/dist/splunk-spl-D7alx5ZN.js +0 -1
- package/dist/sqf-B5a31L0s.js +0 -1
- package/dist/sql-aYT6xcy6.js +0 -1
- package/dist/sql-iuoHJ8bA.js +0 -1
- package/dist/squirrel-CyCLIa4Y.js +0 -1
- package/dist/stan-wgky0trQ.js +0 -1
- package/dist/stylus-DIcwztzA.js +0 -1
- package/dist/swift-CKBzYtqx.js +0 -1
- package/dist/systemd-pIM4bqVc.js +0 -2
- package/dist/t4-cs-IfbZM4JS.js +0 -1
- package/dist/t4-templating-BzJ2F4We.js +0 -1
- package/dist/t4-templating-DGcfhvVA.js +0 -1
- package/dist/t4-vb-Cye0aSSV.js +0 -1
- package/dist/table-DN2koBCx.js +0 -7
- package/dist/tableToMarkdown-CNmfuY27.js +0 -3
- package/dist/tap-BhTyrvey.js +0 -1
- package/dist/tcl-DmjKcL1J.js +0 -1
- package/dist/templateSelectorDialog-BX2-EJvZ.js +0 -2
- package/dist/textile-_ilJnCXS.js +0 -1
- package/dist/toml-BbjsRWrK.js +0 -1
- package/dist/tremor-CN2Ht8wM.js +0 -1
- package/dist/tsx-CZycUjyE.js +0 -1
- package/dist/tt2-CxJcLeDR.js +0 -1
- package/dist/turtle-BfhtjCXi.js +0 -1
- package/dist/turtle-BflTzccL.js +0 -1
- package/dist/twig-7UfrcV8Q.js +0 -1
- package/dist/typescript-CWeb9VVb.js +0 -1
- package/dist/typescript-y5LBWDhp.js +0 -1
- package/dist/typoscript-ET-mHbFM.js +0 -1
- package/dist/unrealscript-B1Y3_VNT.js +0 -1
- package/dist/uorazor-BVmb_lng.js +0 -1
- package/dist/uri-jbUzxzsV.js +0 -1
- package/dist/usePromptLibraryMutations-DQBI3ONR.js +0 -1
- package/dist/useSupabaseBlobUrl-CxUoSWWI.js +0 -1
- package/dist/useTermsNotice-BSpg3LAO.js +0 -1
- package/dist/user-plus-Dj7lKnj0.js +0 -7
- package/dist/user-round-plus-D5xAPK10.js +0 -7
- package/dist/v-C8TFFdxb.js +0 -1
- package/dist/vala-C9GyKzEF.js +0 -1
- package/dist/vbnet-B9cwVitP.js +0 -1
- package/dist/vbnet-LHlE90my.js +0 -1
- package/dist/velocity-DFvFsaxo.js +0 -1
- package/dist/verilog-k1spd5cM.js +0 -1
- package/dist/vhdl-O3rPSkCA.js +0 -1
- package/dist/vim-CmotMnrj.js +0 -1
- package/dist/visual-basic-0XAKyAK4.js +0 -1
- package/dist/warpscript-nADAJd0E.js +0 -1
- package/dist/wasm-K9_P5vbl.js +0 -1
- package/dist/web-idl-npQgudyp.js +0 -1
- package/dist/wiki-DThAp1y0.js +0 -1
- package/dist/wolfram-DtbTHzjH.js +0 -1
- package/dist/wren-CYQqTQWB.js +0 -1
- package/dist/xeora-dwv5x1j8.js +0 -1
- package/dist/xlsx-uaO0TYvF.js +0 -142
- package/dist/xml-doc-Du_R6ixA.js +0 -1
- package/dist/xojo-MYL7sEQ5.js +0 -1
- package/dist/xquery-BcdvyyBB.js +0 -1
- package/dist/yaml-CR6k8AEh.js +0 -1
- package/dist/yaml-GRhlHhYd.js +0 -1
- package/dist/yang-CRntRkKI.js +0 -1
- package/dist/zig-DgOGGGG3.js +0 -1
package/dist/hsts-B1Tmkew4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-CibjLEeg.js";function f(e,n){for(var o=0;o<n.length;o++){const t=n[o];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function l(){if(s)return i;s=1,i=e,e.displayName="hsts",e.aliases=[];function e(n){n.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return i}var u=l();const p=c(u),g=f({__proto__:null,default:p},[u]);export{g as h};
|
package/dist/http-Bs3t9rtJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as m}from"./runtime-CibjLEeg.js";function y(n,o){for(var e=0;e<o.length;e++){const a=o[e];if(typeof a!="string"&&!Array.isArray(a)){for(const t in a)if(t!=="default"&&!(t in n)){const r=Object.getOwnPropertyDescriptor(a,t);r&&Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>a[t]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var l,u;function T(){if(u)return l;u=1,l=n,n.displayName="http",n.aliases=[];function n(o){(function(e){function a(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:a(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:a(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:a(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:a(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var t=e.languages,r={"application/javascript":t.javascript,"application/json":t.json||t.javascript,"application/xml":t.xml,"text/xml":t.xml,"text/html":t.html,"text/css":t.css,"text/plain":t.plain},d={"application/json":!0,"application/xml":!0};function h(p){var f=p.replace(/^[a-z]+\//,""),b="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+b+")"}var i;for(var s in r)if(r[s]){i=i||{};var g=d[s]?h(s):s;i[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+g+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:r[s]}}i&&e.languages.insertBefore("http","header",i)})(o)}return l}var c=T();const v=m(c),P=y({__proto__:null,default:v},[c]);export{P as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as R}from"./runtime-CibjLEeg.js";function S(E,t){for(var n=0;n<t.length;n++){const e=t[n];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in E)){const o=Object.getOwnPropertyDescriptor(e,r);o&&Object.defineProperty(E,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var i,N;function a(){if(N)return i;N=1,i=E,E.displayName="ichigojam",E.aliases=[];function E(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return i}var T=a();const L=R(T),O=S({__proto__:null,default:L},[T]);export{O as i};
|
package/dist/icon-3FOMR7dH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-CibjLEeg.js";function u(e,n){for(var i=0;i<n.length;i++){const t=n[i];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o,l;function d(){if(l)return o;l=1,o=e,e.displayName="icon",e.aliases=[];function e(n){n.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return o}var s=d();const p=c(s),b=u({__proto__:null,default:p},[s]);export{b as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as m}from"./runtime-CibjLEeg.js";function f(n,a){for(var t=0;t<a.length;t++){const e=a[t];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in n)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var o,c;function y(){if(c)return o;c=1,o=n,n.displayName="icuMessageFormat",n.aliases=[];function n(a){(function(t){function e(u,d){return d<=0?/[]/.source:u.replace(/<SELF>/g,function(){return e(u,d-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,s={pattern:/''/,greedy:!0,alias:"operator"},g={pattern:r,greedy:!0,inside:{escape:s}},l=e(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),i={pattern:RegExp(l),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(l),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":i,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":i,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+e(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:s,string:g},i.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(a)}return o}var p=y();const b=m(p),S=f({__proto__:null,default:b},[p]);export{S as i};
|
package/dist/idris-lDH_n5Xg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as p}from"./runtime-CibjLEeg.js";import{r as u}from"./haskell-fKcSYgFk.js";function c(r,t){for(var e=0;e<t.length;e++){const i=t[e];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in r)){const n=Object.getOwnPropertyDescriptor(i,a);n&&Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var o,s;function d(){if(s)return o;s=1;var r=u();o=t,t.displayName="idris",t.aliases=["idr"];function t(e){e.register(r),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}return o}var l=d();const f=p(l),m=c({__proto__:null,default:f},[l]);export{m as i};
|
package/dist/iecst-CqKy9noR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as A}from"./runtime-CibjLEeg.js";function I(T,t){for(var N=0;N<t.length;N++){const e=t[N];if(typeof e!="string"&&!Array.isArray(e)){for(const E in e)if(E!=="default"&&!(E in T)){const r=Object.getOwnPropertyDescriptor(e,E);r&&Object.defineProperty(T,E,r.get?r:{enumerable:!0,get:()=>e[E]})}}}return Object.freeze(Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}))}var O,n;function o(){if(n)return O;n=1,O=T,T.displayName="iecst",T.aliases=[];function T(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return O}var R=o();const a=A(R),i=I({__proto__:null,default:a},[R]);export{i};
|
package/dist/ignore-CTAyeFmo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as u}from"./runtime-CibjLEeg.js";function l(e,o){for(var n=0;n<o.length;n++){const r=o[n];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const g=Object.getOwnPropertyDescriptor(r,t);g&&Object.defineProperty(e,t,g.get?g:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,a;function f(){if(a)return i;a=1,i=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(o){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(o)}return i}var s=f();const p=u(s),c=l({__proto__:null,default:p},[s]);export{c as i};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{cx as a}from"./runtime-CibjLEeg.js";const e=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],p=a("image-plus",e);export{p as I};
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.539.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
package/dist/index-7Bvh8xSP.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{jsxs as f,jsx as i}from"react/jsx-runtime";import{useRef as h,useState as O,useMemo as D,useEffect as j,useCallback as Y}from"react";import{fK as V,fL as K,bC as v,ch as $,cN as q,cE as J,fM as Q,cj as P,ei as T,ck as k,v as W,bD as Z,bE as ee,el as ne,cY as te,c3 as re,c4 as se,bG as _,bH as ae,j as ie,c5 as le,cy as oe,fN as ce}from"./runtime-CibjLEeg.js";import{i as L,a as ue}from"./useTermsNotice-BSpg3LAO.js";const de=async e=>{const n=await V(),t=await K(n),{error:r}=await n.from("user_dismissed_announcements").upsert({user_id:t,announcement_key:e},{onConflict:"user_id,announcement_key",ignoreDuplicates:!0});if(r)throw r},me=()=>{const{user:e,setUser:n}=v(),{captureException:t}=$(),r=q(),s=h(e);return s.current=e,J({mutationFn:a=>{var l;const o=(l=s.current)==null?void 0:l.id;return de(a).then(()=>o)},onSuccess:(a,l)=>{const o=s.current;o&&o.id===a&&n({...o,dismissedAnnouncements:{...o.dismissedAnnouncements,[l]:new Date().toISOString()}}),Q(r)},onError:(a,l)=>{t({error:a,contexts:{payload:{key:l}}})}})},pe={DESIGN_STUDIO_LAUNCH:"designStudioLaunch"},fe=()=>{var e;const{user:n,isAdmin:t}=v(),{isFeatureEnabled:r}=P(),s=!!(n!=null&&n.isImpersonating),a=!!((e=n==null?void 0:n.dismissedAnnouncements)!=null&&e[pe.DESIGN_STUDIO_LAUNCH]);return T()&&r(k.TEMPLATE_PAGE_STYLES)&&r(k.PAGE_STYLES_ANNOUNCEMENT)&&t&&!s&&!a},he="popup_announcements",ye=__OM_EMBED_CONFIG__.NEXT_PUBLIC_APP_ENV==="production"?"active":"active_staging",be="Got it",ge=3.2,Ae=e=>typeof e=="string"&&e.length>0&&W(e)===e,c=e=>typeof e=="string"&&e.length>0,M=e=>{if(!Array.isArray(e))return;const n=e.filter(t=>!!t&&typeof t=="object").filter(t=>c(t.name)).map(t=>({name:t.name,...c(t.description)?{description:t.description}:{}}));return n.length>0?n:void 0},U=e=>{if(!e||typeof e!="object")return;const n=e;if(!(!c(n.label)||!L(n.href)))return{label:n.label,href:n.href}},F=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0,G=e=>{if(!e||typeof e!="object")return;const n=e;if(!L(n.src))return;const t=F(n.width),r=F(n.height);return{src:n.src,...c(n.alt)?{alt:n.alt}:{},...t&&r?{width:t,height:r}:{}}},Ne=e=>e.replace(/</g,"<"),ve=e=>{if(!Array.isArray(e))return;const n=e.filter(c);return n.length>0?n:void 0},R=["roles","plans","includeInstances","excludeInstances"],ke=new Set(["adminOnly",...R]),_e=e=>{if(e==null)return;if(typeof e!="object"||Array.isArray(e))return null;const n=e;if(Object.keys(n).some(r=>!ke.has(r))||n.adminOnly!==void 0&&typeof n.adminOnly!="boolean")return null;const t={};n.adminOnly===!0&&(t.adminOnly=!0);for(const r of R){if(n[r]===void 0)continue;const s=ve(n[r]);if(!s)return null;t[r]=s}return Object.keys(t).length>0?t:void 0},g=e=>{if(!(!c(e)||Number.isNaN(Date.parse(e))))return e},xe=e=>{if(!e||typeof e!="object")return null;const n=e;if(!Ae(n.key)||!c(n.title)||n.enabled!==void 0&&typeof n.enabled!="boolean")return null;const t=Array.isArray(n.body)?n.body.filter(c).map(Ne):[];if(t.length===0)return null;const r=_e(n.audience);return r===null?null:{key:n.key,title:n.title,body:t,...n.enabled===!1?{enabled:!1}:{},...G(n.image)?{image:G(n.image)}:{},...M(n.bullets)?{bullets:M(n.bullets)}:{},...U(n.link)?{link:U(n.link)}:{},...c(n.confirmCta)?{confirmCta:n.confirmCta}:{},...r?{audience:r}:{},...g(n.startsAt)?{startsAt:g(n.startsAt)}:{},...g(n.expiresAt)?{expiresAt:g(n.expiresAt)}:{},...typeof n.priority=="number"&&Number.isFinite(n.priority)?{priority:n.priority}:{}}},Ee=e=>{if(!Array.isArray(e))return[];const n=new Set;return e.reduce((t,r)=>{const s=xe(r);return!s||n.has(s.key)||(n.add(s.key),t.push(s)),t},[])};let x=!1;const Ie=(e,{isAdmin:n,role:t,planName:r,clientInstanceId:s})=>{var a,l,o,p,y,b;return e?e.adminOnly&&!n||(a=e.roles)!=null&&a.length&&!e.roles.includes(t)||(l=e.plans)!=null&&l.length&&!e.plans.includes(r)||((o=e.includeInstances)!=null&&o.length||(p=e.excludeInstances)!=null&&p.length)&&!s?!1:(y=e.includeInstances)!=null&&y.length?e.includeInstances.includes(s):(b=e.excludeInstances)!=null&&b.length?!e.excludeInstances.includes(s):!0:!0},we=(e,n)=>!!e&&Object.prototype.hasOwnProperty.call(e,n),Ce=(e,n)=>!(e.startsAt&&Date.parse(e.startsAt)>n||e.expiresAt&&Date.parse(e.expiresAt)<=n),Se=(e,n)=>(e.priority??Number.MAX_SAFE_INTEGER)-(n.priority??Number.MAX_SAFE_INTEGER),Oe=()=>{const e=ne.useParameterStore(he);return D(()=>{try{return Ee(e.get(ye,null))}catch(n){return console.error("[ProductAnnouncement] failed to read the popup_announcements store",n),[]}},[e])},De=()=>{const{user:e,isAdmin:n,isInstanceSwitching:t}=v(),{currentPlan:r,initialDataLoaded:s}=Z(),{clientInstanceId:a}=ee(),{isFeatureEnabled:l}=P(),{mutate:o}=me(),p=Oe(),y=ue(),b=fe(),[B,E]=O(!1),u=e==null?void 0:e.id,I=e==null?void 0:e.dismissedAnnouncements,w=T()&&l(k.PRODUCT_ANNOUNCEMENTS),C=!!(e!=null&&e.isImpersonating)||t||!s||y||b,d=D(()=>{if(!w||C)return null;const H=Date.now(),X={isAdmin:n,role:(e==null?void 0:e.role)||"",planName:(r==null?void 0:r.planName)||"",clientInstanceId:a||""};return p.filter(m=>m.enabled!==!1).filter(m=>!we(I,m.key)).filter(m=>Ce(m,H)).filter(m=>Ie(m.audience,X)).sort(Se)[0]??null},[p,w,C,n,e==null?void 0:e.role,r==null?void 0:r.planName,a,I]),S=h(u),A=h(null),N=h(!1);j(()=>{S.current!==u&&(S.current=u,x=!1,N.current=!1,A.current=null)},[u]),j(()=>{!d||x||!u||A.current===u||(A.current=u,E(!0))},[d,u]);const z=Y(()=>{E(!1),x=!0,!(N.current||!d)&&(N.current=!0,o(d.key))},[d,o]);return{announcement:d,open:B&&!!d,onDismiss:z}},je=({image:e})=>{const[n,t]=O({src:e.src,status:"loading"}),r=n.src===e.src?n.status:"loading";if(r==="error")return null;const s=e.width&&e.height?e.width/e.height:ge;return f("div",{className:"relative -mx-6 -mt-6 mb-5 w-[calc(100%+3rem)] shrink-0 overflow-hidden rounded-t-lg",style:{aspectRatio:s},"data-testid":"product-announcement-banner",children:[i("img",{src:e.src,alt:e.alt||"",className:"absolute inset-0 h-full w-full object-cover",onLoad:()=>t({src:e.src,status:"loaded"}),onError:()=>t({src:e.src,status:"error"})}),r==="loading"&&i(te,{className:"absolute inset-0 rounded-none","data-testid":"product-announcement-banner-skeleton"})]})},Pe=({children:e,...n})=>i("a",{...n,target:"_blank",rel:"noopener noreferrer",children:e}),Te={a:Pe},Le=({announcement:e,open:n,onDismiss:t})=>{const r=h(null);return i(re,{open:n,onOpenChange:s=>{s||t()},children:f(se,{className:"!w-[600px] max-w-[calc(100vw-2rem)] flex max-h-[85vh] flex-col gap-0 overflow-hidden bg-card p-6",onOpenAutoFocus:s=>{r.current&&(s.preventDefault(),r.current.focus())},hideCloseButton:!0,"data-testid":"product-announcement-dialog",children:[i(_,{variant:"ghost",size:"iconSm",onClick:t,"aria-label":"Close",className:ie("absolute right-3 top-3 z-10",e.image&&"bg-black/50 text-white hover:bg-black/70 hover:text-white"),"data-testid":"product-announcement-close",children:i(ae,{className:"h-4 w-4"})}),e.image&&i(je,{image:e.image}),i(le,{className:"mb-4 shrink-0 text-lg font-semibold text-foreground",children:e.title}),i(oe,{asChild:!0,className:"min-h-0 flex-1 space-y-4 overflow-y-auto px-0 text-sm text-muted-foreground",children:f("div",{children:[i(ce,{className:"product-announcement",content:e.body.join(`
|
|
2
|
-
|
|
3
|
-
`),components:Te,disableVirtualization:!0}),e.bullets&&i("ul",{className:"list-disc space-y-1.5 pl-5",children:e.bullets.map(({name:s,description:a},l)=>f("li",{children:[i("span",{className:"font-medium text-foreground",children:s}),a?` \u2014 ${a}`:null]},l))})]})}),f("div",{className:"mt-6 flex shrink-0 justify-end gap-2",children:[i(_,{variant:e.link?"outline":"primary",onClick:t,"data-testid":"product-announcement-dismiss",children:e.confirmCta||be}),e.link&&i(_,{asChild:!0,variant:"primary","data-testid":"product-announcement-link",children:i("a",{ref:r,href:e.link.href,target:"_blank",rel:"noopener noreferrer",onClick:t,children:e.link.label})})]})]})})},Me=()=>{const{announcement:e,open:n,onDismiss:t}=De();return e?i(Le,{announcement:e,open:n,onDismiss:t}):null};export{Me as ProductAnnouncement};
|
package/dist/index-ANHSUwCh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a}from"./runtime-CibjLEeg.js";import{A as s,a as e,b as t,c as i,D as r,E,F as o,G as n,H as c,L as A,M as l,d as S,f as I,g as _,h as d,i as C,j as R,k as T,l as g,m as F,n as L,o as h,p as m,q as D,r as N,t as O,u as f,v as P,w as p,x as y,y as u,z as K,B as U,C as B,I as H,J as M,K as k,N as b,O as v,P as G,Q as x,R as Y,S as J,T as V,U as z,V as W,W as w}from"./runtime-CibjLEeg.js";export{s as AAL,e as APP_BASE_FONT_FAMILY,t as AUTH_RESPONSE_HEADERS,i as AVAILABLE_PLANS,r as DOCUMENT_BUILDER_ASSET_IDENTIFIER,E as EXPORT_RENDER_DEBUG_STORAGE_KEY,o as FONT_FAMILIES,n as GENERIC_FILE_URI_IDENTIFIER,c as HEADER_KEYS,A as LOCAL_STORAGE_KEYS,l as MAX_L2_BYTES,S as MODULE_CATEGORIES,I as camelCaseKeys,_ as checkIfSessionIsInvalid,d as checkNeedsMFAVerification,C as clampFraction,R as cn,T as decodeJWTPayload,g as deleteCachedFile,F as derivePersistentKey,L as fetchBlob,h as fetchWithRetry,m as formatValue,D as generateSectionHeadingId,N as generateTraceId,O as getAvatarColor,f as getCachedFile,P as getCamelCasedKey,p as getHeaders,y as getInitials,u as getSnakeCasedKey,K as googleFontsService,U as isBrowser,B as isCacheStorageAvailable,H as isClientAccessTokenExpired,M as isExportRenderDebugEnabled,k as isNoInstanceAccessMessage,b as isSessionAuthenticated,v as parseDateOnlyAsLocal,G as putCachedFile,x as safeParseJSON,Y as safeParseJson,J as sanitizeDocumentHtml,V as sanitizeHtmlContent,a as secureStorage,z as shouldRefreshClientAccessToken,W as snakeCaseKeys,w as transformSupabaseUrlToProxyUrl};
|
package/dist/index-BXTkj5Ak.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cL as s}from"./runtime-CibjLEeg.js";var n=s.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(i=>e.updateAttributes(i,{textAlign:t})).some(i=>i):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).some(e=>e),toggleTextAlign:t=>({editor:e,commands:i})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?i.unsetTextAlign():i.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),o=n;export{o as i};
|
package/dist/index-BYll8ylX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function z(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),e&&(r.href=e),o.href=t,o.href}const W=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function d(t){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(t[n]);return e}let m=null;function P(t={}){return m||(t.includeStyleProperties?(m=t.includeStyleProperties,m):(m=d(window.getComputedStyle(document.documentElement)),m))}function w(t,e){const n=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function _(t){const e=w(t,"border-left-width"),n=w(t,"border-right-width");return t.clientWidth+e+n}function G(t){const e=w(t,"border-top-width"),n=w(t,"border-bottom-width");return t.clientHeight+e+n}function S(t,e={}){const n=e.width||_(t),r=e.height||G(t);return{width:n,height:r}}function J(){let t,e;try{e=process}catch{}const n=e&&e.env?e.env.devicePixelRatio:null;return n&&(t=parseInt(n,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}const u=16384;function Q(t){(t.width>u||t.height>u)&&(t.width>u&&t.height>u?t.width>t.height?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u):t.width>u?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u))}function X(t,e={}){return t.toBlob?new Promise(n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(n=>{const r=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),o=r.length,i=new Uint8Array(o);for(let a=0;a<o;a+=1)i[a]=r.charCodeAt(a);n(new Blob([i],{type:e.type?e.type:"image/png"}))})}function y(t){return new Promise((e,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>e(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function K(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Y(t,e,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${e}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${e} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(t),K(o)}const l=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return n===null?!1:n.constructor.name===e.name||l(n,e)};function Z(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function tt(t,e){return P(e).map(n=>{const r=t.getPropertyValue(n),o=t.getPropertyPriority(n);return`${n}: ${r}${o?" !important":""};`}).join(" ")}function et(t,e,n,r){const o=`.${t}:${e}`,i=n.cssText?Z(n):tt(n,r);return document.createTextNode(`${o}{${i}}`)}function R(t,e,n,r){const o=window.getComputedStyle(t,n),i=o.getPropertyValue("content");if(i===""||i==="none")return;const a=W();try{e.className=`${e.className} ${a}`}catch{return}const c=document.createElement("style");c.appendChild(et(a,n,o,r)),e.appendChild(c)}function nt(t,e,n){R(t,e,":before",n),R(t,e,":after",n)}const T="application/font-woff",A="image/jpeg",rt={woff:T,woff2:T,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:A,jpeg:A,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ot(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function x(t){const e=ot(t).toLowerCase();return rt[e]||""}function it(t){return t.split(/,/)[1]}function v(t){return t.search(/^(data:)/)!==-1}function at(t,e){return`data:${e};base64,${t}`}async function L(t,e,n){const r=await fetch(t,e);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((i,a)=>{const c=new FileReader;c.onerror=a,c.onloadend=()=>{try{i(n({res:r,result:c.result}))}catch(s){a(s)}},c.readAsDataURL(o)})}const C={};function ct(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}async function $(t,e,n){const r=ct(t,e,n.includeQueryParams);if(C[r]!=null)return C[r];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let o;try{const i=await L(t,n.fetchRequestInit,({res:a,result:c})=>(e||(e=a.headers.get("Content-Type")||""),it(c)));o=at(i,e)}catch(i){o=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${t}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return C[r]=o,o}async function st(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):y(e)}async function lt(t,e){if(t.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=t.clientWidth,i.height=t.clientHeight,a==null||a.drawImage(t,0,0,i.width,i.height);const c=i.toDataURL();return y(c)}const n=t.poster,r=x(n),o=await $(n,r,e);return y(o)}async function ut(t,e){var n;try{if(!((n=t==null?void 0:t.contentDocument)===null||n===void 0)&&n.body)return await b(t.contentDocument.body,e,!0)}catch{}return t.cloneNode(!1)}async function ht(t,e){return l(t,HTMLCanvasElement)?st(t):l(t,HTMLVideoElement)?lt(t,e):l(t,HTMLIFrameElement)?ut(t,e):t.cloneNode(N(t))}const dt=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",N=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function ft(t,e,n){var r,o;if(N(e))return e;let i=[];return dt(t)&&t.assignedNodes?i=d(t.assignedNodes()):l(t,HTMLIFrameElement)&&!((r=t.contentDocument)===null||r===void 0)&&r.body?i=d(t.contentDocument.body.childNodes):i=d(((o=t.shadowRoot)!==null&&o!==void 0?o:t).childNodes),i.length===0||l(t,HTMLVideoElement)||await i.reduce((a,c)=>a.then(()=>b(c,n)).then(s=>{s&&e.appendChild(s)}),Promise.resolve()),e}function gt(t,e,n){const r=e.style;if(!r)return;const o=window.getComputedStyle(t);o.cssText?(r.cssText=o.cssText,r.transformOrigin=o.transformOrigin):P(n).forEach(i=>{let a=o.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),l(t,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&e.getAttribute("d")&&(a=`path(${e.getAttribute("d")})`),r.setProperty(i,a,o.getPropertyPriority(i))})}function mt(t,e){l(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),l(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function pt(t,e){if(l(t,HTMLSelectElement)){const n=e,r=Array.from(n.children).find(o=>t.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function wt(t,e,n){return l(e,Element)&&(gt(t,e,n),nt(t,e,n),mt(t,e),pt(t,e)),e}async function yt(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(n.length===0)return t;const r={};for(let i=0;i<n.length;i++){const a=n[i].getAttribute("xlink:href");if(a){const c=t.querySelector(a),s=document.querySelector(a);!c&&s&&!r[a]&&(r[a]=await b(s,e,!0))}}const o=Object.values(r);if(o.length){const i="http://www.w3.org/1999/xhtml",a=document.createElementNS(i,"svg");a.setAttribute("xmlns",i),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const c=document.createElementNS(i,"defs");a.appendChild(c);for(let s=0;s<o.length;s++)c.appendChild(o[s]);t.appendChild(a)}return t}async function b(t,e,n){return!n&&e.filter&&!e.filter(t)?null:Promise.resolve(t).then(r=>ht(r,e)).then(r=>ft(t,r,e)).then(r=>wt(t,r,e)).then(r=>yt(r,e))}const k=/url\((['"]?)([^'"]+?)\1\)/g,bt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Et=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function St(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function xt(t){const e=[];return t.replace(k,(n,r,o)=>(e.push(o),n)),e.filter(n=>!v(n))}async function vt(t,e,n,r,o){try{const i=n?z(e,n):e,a=x(e);let c;return o||(c=await $(i,a,r)),t.replace(St(e),`$1${c}$3`)}catch{}return t}function Ct(t,{preferredFontFormat:e}){return e?t.replace(Et,n=>{for(;;){const[r,,o]=bt.exec(n)||[];if(!o)return"";if(o===e)return`src: ${r};`}}):t}function I(t){return t.search(k)!==-1}async function D(t,e,n){if(!I(t))return t;const r=Ct(t,n);return xt(r).reduce((o,i)=>o.then(a=>vt(a,i,e,n)),Promise.resolve(r))}async function g(t,e,n){var r;const o=(r=e.style)===null||r===void 0?void 0:r.getPropertyValue(t);if(o){const i=await D(o,null,n);return e.style.setProperty(t,i,e.style.getPropertyPriority(t)),!0}return!1}async function $t(t,e){await g("background",t,e)||await g("background-image",t,e),await g("mask",t,e)||await g("-webkit-mask",t,e)||await g("mask-image",t,e)||await g("-webkit-mask-image",t,e)}async function Pt(t,e){const n=l(t,HTMLImageElement);if(!(n&&!v(t.src))&&!(l(t,SVGImageElement)&&!v(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,o=await $(r,x(r),e);await new Promise((i,a)=>{t.onload=i,t.onerror=e.onImageErrorHandler?(...s)=>{try{i(e.onImageErrorHandler(...s))}catch(f){a(f)}}:a;const c=t;c.decode&&(c.decode=i),c.loading==="lazy"&&(c.loading="eager"),n?(t.srcset="",t.src=o):t.href.baseVal=o})}async function Rt(t,e){const n=d(t.childNodes).map(r=>H(r,e));await Promise.all(n).then(()=>t)}async function H(t,e){l(t,Element)&&(await $t(t,e),await Pt(t,e),await Rt(t,e))}function Tt(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),t}const F={};async function M(t){let e=F[t];if(e!=null)return e;const n=await(await fetch(t)).text();return e={url:t,cssText:n},F[t]=e,e}async function V(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,t.url).href),L(a,e.fetchRequestInit,({result:c})=>(n=n.replace(i,`url(${c})`),[i,c]))});return Promise.all(o).then(()=>n)}function U(t){if(t==null)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const s=o.exec(r);if(s===null)break;e.push(s[0])}r=r.replace(o,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",c=new RegExp(a,"gi");for(;;){let s=i.exec(r);if(s===null){if(s=c.exec(r),s===null)break;i.lastIndex=c.lastIndex}else c.lastIndex=i.lastIndex;e.push(s[0])}return e}async function At(t,e){const n=[],r=[];return t.forEach(o=>{if("cssRules"in o)try{d(o.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let c=a+1;const s=i.href,f=M(s).then(h=>V(h,e)).then(h=>U(h).forEach(E=>{try{o.insertRule(E,E.startsWith("@import")?c+=1:o.cssRules.length)}catch(B){console.error("Error inserting rule from remote css",{rule:E,error:B})}})).catch(h=>{console.error("Error loading remote css",h.toString())});r.push(f)}})}catch(i){const a=t.find(c=>c.href==null)||document.styleSheets[0];o.href!=null&&r.push(M(o.href).then(c=>V(c,e)).then(c=>U(c).forEach(s=>{a.insertRule(s,a.cssRules.length)})).catch(c=>{console.error("Error loading remote stylesheet",c)})),console.error("Error inlining remote css file",i)}}),Promise.all(r).then(()=>(t.forEach(o=>{if("cssRules"in o)try{d(o.cssRules||[]).forEach(i=>{n.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${o.href}`,i)}}),n))}function Lt(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>I(e.style.getPropertyValue("src")))}async function Nt(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=d(t.ownerDocument.styleSheets),r=await At(n,e);return Lt(r)}function q(t){return t.trim().replace(/["']/g,"")}function kt(t){const e=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(o=>{e.add(q(o))}),Array.from(r.children).forEach(o=>{o instanceof HTMLElement&&n(o)})}return n(t),e}async function j(t,e){const n=await Nt(t,e),r=kt(t);return(await Promise.all(n.filter(o=>r.has(q(o.style.fontFamily))).map(o=>{const i=o.parentStyleSheet?o.parentStyleSheet.href:null;return D(o.cssText,i,e)}))).join(`
|
|
2
|
-
`)}async function It(t,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await j(t,e);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}}async function O(t,e={}){const{width:n,height:r}=S(t,e),o=await b(t,e,!0);return await It(o,e),await H(o,e),Tt(o,e),await Y(o,n,r)}async function p(t,e={}){const{width:n,height:r}=S(t,e),o=await O(t,e),i=await y(o),a=document.createElement("canvas"),c=a.getContext("2d"),s=e.pixelRatio||J(),f=e.canvasWidth||n,h=e.canvasHeight||r;return a.width=f*s,a.height=h*s,e.skipAutoScale||Q(a),a.style.width=`${f}`,a.style.height=`${h}`,e.backgroundColor&&(c.fillStyle=e.backgroundColor,c.fillRect(0,0,a.width,a.height)),c.drawImage(i,0,0,a.width,a.height),a}async function Dt(t,e={}){const{width:n,height:r}=S(t,e);return(await p(t,e)).getContext("2d").getImageData(0,0,n,r).data}async function Ht(t,e={}){return(await p(t,e)).toDataURL()}async function Ft(t,e={}){return(await p(t,e)).toDataURL("image/jpeg",e.quality||1)}async function Mt(t,e={}){const n=await p(t,e);return await X(n)}async function Vt(t,e={}){return j(t,e)}export{Vt as getFontEmbedCSS,Mt as toBlob,p as toCanvas,Ft as toJpeg,Dt as toPixelData,Ht as toPng,O as toSvg};
|
package/dist/index-Baw4I3pJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bx as o}from"./runtime-CibjLEeg.js";import{by as r,bz as a,bA as s}from"./runtime-CibjLEeg.js";export{r as AcordFormConversationView,a as AcordFormDownloadButton,s as AcordFormExportButton,o as AcordFormPdfViewer};
|
package/dist/index-BlyRtISc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{X as a}from"./runtime-CibjLEeg.js";import{Y as s,Z as e,_ as t,$ as r,a0 as o,a1 as i,a2 as l,a3 as n,a4 as p,a5 as b,a6 as c,a7 as m,a8 as d,a9 as u,aa as g,ab as P,ac as h,ad as S,ae as D,af as C,ag as F,ah as T,ai as w,aj as M,ak as f,al as L,am as k,an as A,ao as v,ap as y,aq as I,ar as B,as as E,at as R,au as V,av as N,aw as x,ax as _,ay as W,az as z,aA as G,aB as K,aC as Y,aD as H,aE as O,aF as U,aG as j,aH as q,aI as Q,aJ as X,aK as Z,aL as $,aM as J,aN as aa,aO as sa,aP as ea,aQ as ta,aR as ra,aS as oa,aT as ia,aU as la,aV as na,aW as pa,aX as ba,aY as ca,aZ as ma,a_ as da,a$ as ua,b0 as ga,b1 as Pa,b2 as ha,b3 as Sa,b4 as Da,b5 as Ca,b6 as Fa,b7 as Ta,b8 as wa,b9 as Ma,ba as fa,bb as La,bc as ka,bd as Aa,be as va,bf as ya,bg as Ia,bh as Ba,bi as Ea,bj as Ra,bk as Va,bl as Na,bm as xa,bn as _a,bo as Wa,bp as za,bq as Ga,br as Ka,bs as Ya,bt as Ha,bu as Oa,bv as Ua,bw as ja}from"./runtime-CibjLEeg.js";import{AlertDialog as qa}from"./AlertDialog-CDCLewdq.js";import{C as Qa,P as Xa,S as Za,U as $a,d as Ja,a as as,f as ss,g as es,b as ts,c as rs,e as os,h as is,i as ls,j as ns,k as ps,l as bs,s as cs}from"./PlanSelector-DuJ2COOd.js";import"react/jsx-runtime";import"react";import{ViewNoteDialog as ms}from"./ViewNoteDialog-DwfqHxX1.js";import{SavePromptDialog as ds}from"./SavePromptDialog-DnSn86Xo.js";import{DeletePromptDialog as us}from"./DeletePromptDialog-BW7-t3_K.js";import{P as gs}from"./PhoneNumbersDisplay-DDVahO0Y.js";import{MarkdownExportPreviewDialog as Ps}from"./MarkdownExportPreviewDialog-B0hq98OI.js";import{S as hs,a as Ss}from"./ShareResourceDialog-CyJhB5mN.js";export{s as AddCarrierDialog,qa as AlertDialog,e as AmsClientTagBadges,t as AssetSelector,r as AttachmentsTable,o as AutomationMentionsPopover,i as BigNumberChart,l as BookmarkPromptButton,n as ChartRenderer,p as ChatSidebarSkeleton,b as ClickableFolderPath,c as ColorPickerWrapper,m as ConfirmationDialog,d as ConversationFilesPanel,Qa as CouponNote,us as DeletePromptDialog,u as Disclaimer,g as DocumentMentions,P as DuplicateFilesViewer,h as DynamicIconLoader,S as DynamicInput,D as EpicAttachmentsTableV2,C as EpicTable,F as EpicView,T as ErrorBoundary,w as ErrorBoundaryClass,M as FeatureLock,f as FileAttachmentDisplay,L as FileDropAttachOverlay,k as FileList,A as FileMentions,v as FilePreviewHeader,y as FileViewer,I as FilterChips,B as FilterMenu,E as FolderNameDialog,R as FontPickerWrapper,V as ImagePicker,N as InputWithPopover,x as KpiAccessDenied,_ as LibraryCard,W as LibraryDrawer,z as LibraryTabs,G as Loader,K as LoaderWithText,Y as LockedModule,H as MarkdownExportPreviewContent,Ps as MarkdownExportPreviewDialog,O as MarketSelector,U as MultiDateFilter,j as MultiKPIDataGrid,q as MultiKpiBigNumber,Q as MultiMetricCombinedChart,X as PROMPT_LIBRARY_CARD_TEST_IDS,Z as PROMPT_LIBRARY_TABS,a as PdfSkimmer,gs as PhoneNumbersDisplay,Xa as PlanSelector,$ as ProcessingStatusBadge,J as ProtectedImage,aa as RawDataViewer,sa as RawDataViewerDialog,ea as RichTextEditor,ta as SQLInfoSection,ds as SavePromptDialog,ra as SavedPromptsPopover,oa as ScrollableTabs,ia as SearchInput,la as SearchResultItem,na as SearchResults,Za as SeatTotal,pa as SharePromptDialog,hs as ShareResourceContent,Ss as ShareResourceDialog,ba as SharedLabel,ca as SupportLink,ma as Textarea,da as TimeWindowSelectV2,ua as ToolFileCard,ga as TooltipInput,Pa as UnifiedInputPopover,$a as UpgradeDialog,ms as ViewNoteDialog,ha as buildEpicClientColumns,Sa as buildEpicClientLookupColumn,Da as buildEpicClientNameColumn,Ca as buildEpicClientPhoneColumn,Fa as calculateTabCounts,Ta as createBadgeClickHandler,wa as createTabCountGetter,Ja as describeCouponValue,as as describeSeatTotal,Ma as filterByModule,fa as filterBySearch,La as filterByTab,ss as formatPricePerMonth,es as getBillingInfo,ts as getBillingPeriodName,rs as getCouponApplicableIntervals,os as getDiscountedAmount,ka as getFileIcon,Aa as getFilteredLibraryData,va as getGrowthFontSize,is as getIntervalInMonths,ya as getKpiAccessDenied,Ia as getLabelFontSize,Ba as getPaddingClass,ls as getPlanSubtitle,ns as getPricePerMonth,ps as getSeatListPricePerPeriod,Ea as getSizeCategory,Ra as getSparklineHeight,Va as getTabLabelForPromptLevel,Na as getValueFontSize,xa as highlightMatch,_a as highlightTagMatch,Wa as isPromptLibraryExcludedElement,bs as isYearlyPlan,za as resolveModuleLabel,cs as shouldApplyDiscountToPrice,Ga as shouldShowGrowth,Ka as shouldShowPriorPeriod,Ya as shouldShowSparkline,Ha as stripFileMentions,Oa as useFileDropAttach,Ua as useFontPreferences,ja as validateFolderName};
|
package/dist/index-D0rFU7Uv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as v,jsx as a}from"react/jsx-runtime";import{lazy as R,useState as b,useLayoutEffect as X,useSyncExternalStore as x,Suspense as h}from"react";const c="production",S=["production","qa","staging"],g={api:"NEXT_PUBLIC_API_BASE_URL",nexus:"NEXT_PUBLIC_NEXUS_BASE_URL",gateway:"NEXT_PUBLIC_GATEWAY_BASE_URL"},$={NODE_ENV:"production",NEXT_PUBLIC_PDF_WORKER_URL:"https://cdn.jsdelivr.net/npm/pdfjs-dist@4.10.38/build/pdf.worker.min.mjs"},_={production:{NEXT_PUBLIC_APP_ENV:"production",NEXT_PUBLIC_API_BASE_URL:"https://api.prod.outmarket.ai/v1",NEXT_PUBLIC_NEXUS_BASE_URL:"https://nexus.prod.outmarket.ai/api/v1",NEXT_PUBLIC_GATEWAY_BASE_URL:"https://gateway.outmarket.ai/api/v1",NEXT_PUBLIC_USE_OPTIMUS:"true",NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX:"@outmarket",NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY:"OYgxUAznYZZjedB08lRQ9i7BR5QaTRVF",NEXT_PUBLIC_STATSIG_CLIENT_KEY:"client-acTBiSi4StL0uGJe2dzAwS306PfF0hNLrMbYSmm3K2W"},qa:{NEXT_PUBLIC_APP_ENV:"qa",NEXT_PUBLIC_API_BASE_URL:"https://api-qa.outmarket.ai/v1",NEXT_PUBLIC_NEXUS_BASE_URL:"https://nexus-qa.outmarket.ai/api/v1",NEXT_PUBLIC_GATEWAY_BASE_URL:"https://gateway.stage.outmarket.ai/api/v1",NEXT_PUBLIC_USE_OPTIMUS:"true",NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX:"@outmarket",NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY:"OYgxUAznYZZjedB08lRQ9i7BR5QaTRVF",NEXT_PUBLIC_STATSIG_CLIENT_KEY:"client-acTBiSi4StL0uGJe2dzAwS306PfF0hNLrMbYSmm3K2W"},staging:{NEXT_PUBLIC_APP_ENV:"staging",NEXT_PUBLIC_API_BASE_URL:"https://api-g.stage.outmarket.ai/v1",NEXT_PUBLIC_NEXUS_BASE_URL:"https://nexus.stage.outmarket.ai/api/v1",NEXT_PUBLIC_GATEWAY_BASE_URL:"https://gateway.stage.outmarket.ai/api/v1",NEXT_PUBLIC_USE_OPTIMUS:"true",NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX:"@outmarket",NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY:"OYgxUAznYZZjedB08lRQ9i7BR5QaTRVF",NEXT_PUBLIC_STATSIG_CLIENT_KEY:"client-acTBiSi4StL0uGJe2dzAwS306PfF0hNLrMbYSmm3K2W"}},j={production:{...$,..._.production}},Y=j.production,s="[@outmarket-ai/react-sdk]",p='an absolute http(s) URL ("https://host/path") or a root-relative path ("/path")',T="http://root-relative.invalid",W=t=>typeof t=="string"&&S.includes(t),G=Object.keys(g),F=t=>G.includes(t),A=t=>typeof t=="string"?JSON.stringify(t):t===null?"null":typeof t;function K(t,e){try{return new URL(t,e)}catch{return null}}function M(t){if(typeof t!="string")return{error:`expected a string, got ${A(t)}`};const e=t.trim();if(!e)return{error:"it is empty"};const n=e.startsWith("/"),r=K(e,n?T:void 0);if(!r)return{error:`expected ${p}`};if(n&&r.origin!==T)return{error:`a path must start with a single "/" (a value starting "//" points at another host); expected ${p}`};if(!n&&r.protocol!=="http:"&&r.protocol!=="https:")return{error:`only http and https are supported; expected ${p}`};if(r.username||r.password)return{error:"it must not carry credentials"};if(e.includes("?")||e.includes("#"))return{error:"it must not carry a query or fragment"};const o=(n?e:r.href).replace(/\/+$/,"");return o?{url:o}:{error:'a bare "/" is not a base URL; include the path, e.g. "/proxy/api/v1"'}}function H(t,e){return t===void 0||W(t)?t??c:(e(`${s} Ignoring environment ${A(t)}: expected ${S.map(n=>`'${n}'`).join(", ")}. Using '${c}'.`),c)}function q(t,e,n){if(t===void 0)return{};if(t===null||typeof t!="object"||Array.isArray(t))return n(`${s} Ignoring apiUrls: expected an object such as { nexus: 'https://\u2026' }.`),{};const r={};for(const[o,U]of Object.entries(t)){if(!F(o)){n(`${s} Ignoring apiUrls.${o}: not an Outmarket API (expected api, nexus or gateway).`);continue}if(U===void 0)continue;const L=g[o],u=M(U);if(u.url!==void 0){r[L]=u.url;continue}n(`${s} Ignoring apiUrls.${o}: ${u.error}. Using the '${e}' URL instead: ${_[e][L]}.`)}return r}function z(t){return t===void 0?!1:t===null||typeof t!="object"||Array.isArray(t)?!0:Object.values(t).some(e=>e!==void 0)}function V(t,e){const{environment:n,apiUrls:r}=t;if(n===void 0&&!z(r))return{};const o=H(n,e);return{..._[o],...q(r,o,e)}}const f="__OM_EMBED_CONFIG__",Q="[@outmarket-ai/react-sdk]";function B(){const t=globalThis;return t[f]||(t[f]={}),t[f]}function P(){if(typeof globalThis>"u")return;const t=B();for(const[e,n]of Object.entries(Y))t[e]===void 0&&n!==void 0&&(t[e]=n)}let i=null,I=!1;const k=new Set;function Z(t){k.has(t)||(k.add(t),console.error(t))}function C(t){return JSON.stringify(Object.keys(t).sort().map(e=>[e,t[e]]))}function J(t){I||(I=!0,console.warn(`${Q} OutmarketProvider got an environment or apiUrls that differs from the configuration this page already uses. The SDK applies its configuration once per page load (when the first OutmarketProvider mounts, or on the first signOut() if that came first); reload the page to use the new one. Still using api ${t.NEXT_PUBLIC_API_BASE_URL}, nexus ${t.NEXT_PUBLIC_NEXUS_BASE_URL}, gateway ${t.NEXT_PUBLIC_GATEWAY_BASE_URL}.`))}function d(t){const e=V(t,Z),n=B();if(i===null){P();const r={...n};Object.assign(n,e),i={base:r,signature:C(n)};return}C({...i.base,...e})!==i.signature&&J(n)}function D(){i===null&&d({})}P();const N={flex:1,minHeight:160,display:"flex",alignItems:"center",justifyContent:"center"},tt={position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"};function E(){return v("div",{role:"status","aria-live":"polite","data-testid":"om-embed-loading",style:N,children:[a("span",{style:tt,children:"Loading\u2026"}),a("svg",{"aria-hidden":"true",className:"animate-spin",width:32,height:32,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",style:{opacity:.6},children:a("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})]})}function et(){return a("div",{role:"alert","data-testid":"om-embed-load-failed",style:{...N,padding:16,textAlign:"center"},children:"Outmarket could not load. Check your connection and reload the page."})}let m=null;function y(){return m===null&&(D(),m=import("./runtime-CibjLEeg.js").then(t=>t.oT)),m}function w(t){return R(async()=>{try{return{default:t(await y())}}catch(e){return console.error("[@outmarket-ai/react-sdk] Could not load the Outmarket components.",e),{default:et}}})}function nt(t,e){const[n,r]=b(!1);return X(()=>{d({environment:t,apiUrls:e}),r(!0)},[t,e]),n}const rt=w(t=>t.OutmarketProviderTree),ot=()=>()=>{},at=()=>!0,it=()=>!1;function st({environment:t,apiUrls:e,...n}){const r=x(ot,at,it),o=nt(t,e);return!r||!o?a(E,{}):a(h,{fallback:a(E,{}),children:a(rt,{...n})})}async function lt(t){typeof window>"u"||(t&&d({environment:t.environment,apiUrls:t.apiUrls}),await(await y()).signOut())}function l(t,e){const n=w(e);function r(o){return a(h,{fallback:a(E,{}),children:a(n,{...o})})}return r.displayName=t,r}const ut=l("OutmarketWorkflowsList",t=>t.OutmarketWorkflowsList),ct=l("OutmarketWorkflowForm",t=>t.OutmarketWorkflowForm),_t=l("OutmarketWorkflowConversation",t=>t.OutmarketWorkflowConversation),pt=l("OutmarketWorkflowHistory",t=>t.OutmarketWorkflowHistory),ft={commercial_lines:"workflows",personal_lines:"personal_lines",benefits:"benefits"},dt={workflows:"commercial_lines",personal_lines:"personal_lines",benefits:"benefits"},Et={workflows:"/workflows",personal_lines:"/personal_lines",benefits:"/benefits"};function mt(t,e){var n;const r=(n=(t||[]).find(o=>o.name===e))==null?void 0:n.parentName;return r==="benefits"||r==="personal_lines"||r==="workflows"?r:"workflows"}const Ut={commercial_lines:"Commercial Insurance",personal_lines:"Personal Lines",benefits:"Employee Benefits"},O=new Set(["fill_acord_form","advanced_quote_comparer","account_and_policy_creation"]);function Lt(t){const e={commercial_lines:[],personal_lines:[],benefits:[]};for(const n of t||[]){if(!n||n.isInternal||O.has(n.name))continue;const r=n.parentName;if(!r)continue;const o=dt[r];o&&e[o].push({name:n.name,label:n.label||n.name})}for(const n of Object.keys(e))e[n].sort((r,o)=>r.label.localeCompare(o.label));return e}export{O as E,Ut as M,st as O,Et as P,ft as a,_t as b,ct as c,pt as d,ut as e,Lt as g,mt as r,lt as s};
|
package/dist/index-uRfHkpFY.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{k5 as Ve,k6 as st,k7 as Hn,k8 as Zs,k9 as jn,ka as dt,kb as Ke,kc as Je,kd as ct,ke as qn,kf as to,kg as Vn,kh as Ut,ki as Kn,kj as Jn,kk as Ye,kl as re,km as Yn,kn as Gn,ko as eo,kp as Xn,kq as no,kr as Qn,ks as ro,kt as so,ku as oo,kv as Zn,kw as io,kx as ao,ky as co,kz as lo,kA as uo}from"./runtime-CibjLEeg.js";const se={},tr={};function oe(t,e){se[t]=se[t]||[],se[t].push(e)}function ie(t,e){if(!tr[t]){tr[t]=!0;try{e()}catch(n){Ve&&st.error(`Error while instrumenting ${t}`,n)}}}function kt(t,e){const n=t&&se[t];if(n)for(const r of n)try{r(e)}catch(s){Ve&&st.error(`Error while triggering instrumentation handler.
|
|
2
|
-
Type: ${t}
|
|
3
|
-
Name: ${Hn(r)}
|
|
4
|
-
Error:`,s)}}function er(t,e=[]){return[t,e]}function ho(t,e){const[n,r]=t;return[n,[...r,e]]}function nr(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function po(t,e){return nr(t,(n,r)=>e.includes(r))}function ae(t){const e=jn(dt);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function mo(t){const e=jn(dt);return e.decodePolyfill?e.decodePolyfill(t):new TextDecoder().decode(t)}function fo(t){const[e,n]=t;let r=JSON.stringify(e);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[ae(r),o]:r.push(typeof o=="string"?ae(o):o)}for(const o of n){const[i,a]=o;if(s(`
|
|
5
|
-
${JSON.stringify(i)}
|
|
6
|
-
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Ke(a))}s(c)}}return typeof r=="string"?r:yo(r)}function yo(t){const e=t.reduce((s,o)=>s+o.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function go(t){let e=typeof t=="string"?ae(t):t;function n(i){const a=e.subarray(0,i);return e=e.subarray(i+1),a}function r(){let i=e.indexOf(10);return i<0&&(i=e.length),JSON.parse(mo(n(i)))}const s=r(),o=[];for(;e.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function So(t){return[{type:"span"},t]}function vo(t){const e=typeof t.data=="string"?ae(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const ko={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function bo(t){return ko[t]}function rr(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function sr(t,e,n,r){var s;const o=(s=t.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Zs(r)},...o&&{trace:o}}}const _o=60*1e3;function or(t,e=Je()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?_o:r-e}function wo(t,e){return t[e]||t.all||0}function ir(t,e,n=Je()){return wo(t,e)>n}function ar(t,{statusCode:e,headers:n},r=Je()){const s={...t},o=n==null?void 0:n["x-sentry-rate-limits"],i=n==null?void 0:n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,l,,,u]=a.split(":",5),d=parseInt(c,10),h=(isNaN(d)?60:d)*1e3;if(!l)s.all=r+h;else for(const p of l.split(";"))p==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(s[p]=r+h):s[p]=r+h}else i?s.all=r+or(i,r):e===429&&(s.all=r+60*1e3);return s}const Eo="thismessage:/";function Ge(t){return"isRelative"in t}function cr(t,e){const n=t.indexOf("://")<=0&&t.indexOf("//")!==0,r=n?Eo:void 0;try{if("canParse"in URL&&!URL.canParse(t,r))return;const s=new URL(t,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function Io(t){if(Ge(t))return t.pathname;const e=new URL(t);return e.search="",e.hash="",["80","443"].includes(e.port)&&(e.port=""),e.password&&(e.password="%filtered%"),e.username&&(e.username="%filtered%"),e.toString()}function Co(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function To(t){return t.split(/[?#]/,1)[0]}function xo(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=t.includes(";base64,"),o=t.indexOf(",");let i="";if(e&&o!==-1){const a=t.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return t}function lr(t,e){const n=e==null?void 0:e.getDsn(),r=e==null?void 0:e.getOptions().tunnel;return Ro(t,n)||Mo(t,r)}function Mo(t,e){return e?ur(t)===ur(e):!1}function Ro(t,e){const n=cr(t);return!n||Ge(n)?!1:e?n.host.includes(e.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function ur(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function Oo(t,e,n){let r,s,o;const i=n!=null&&n.maxWait?Math.max(n.maxWait,e):0,a=(n==null?void 0:n.setTimeoutImpl)||setTimeout;function c(){return l(),r=t(),r}function l(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function u(){return s!==void 0||o!==void 0?c():r}function d(){return s&&clearTimeout(s),s=a(c,e),i&&o===void 0&&(o=a(c,i)),r}return d.cancel=l,d.flush=u,d}const Ao=100;function dr(t,e){const n=ct(),r=qn();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Ao}=n.getOptions();if(o<=0)return;const i={timestamp:to(),...t},a=s?Vn(()=>s(i,e)):i;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function hr(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const bt=dt;function Do(){return"history"in bt&&!!bt.history}function Lo(){if(!("fetch"in bt))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Xe(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function No(){var t;if(typeof EdgeRuntime=="string")return!0;if(!Lo())return!1;if(Xe(bt.fetch))return!0;let e=!1;const n=bt.document;if(n&&typeof n.createElement=="function")try{const r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),(t=r.contentWindow)!=null&&t.fetch&&(e=Xe(r.contentWindow.fetch)),n.head.removeChild(r)}catch(r){Ve&&st.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function Fo(){return"ReportingObserver"in bt}function Po(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Bo(){return"npm"}function Uo(){return!Po()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Qe(){return typeof window<"u"&&(!Uo()||zo())}function zo(){const t=dt.process;return(t==null?void 0:t.type)==="renderer"}const _t=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,x=dt,Wo=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",zt=(t,e,n,r)=>{let s,o;return i=>{e.value>=0&&(i||r)&&(o=e.value-(s??0),(o||s===void 0)&&(s=e.value,e.delta=o,e.rating=Wo(e.value,n),t(e)))}},ce=(t=!0)=>{var e,n;const r=(n=(e=x.performance)==null?void 0:e.getEntriesByType)==null?void 0:n.call(e,"navigation")[0];if(!t||r&&r.responseStart>0&&r.responseStart<performance.now())return r},wt=()=>{const t=ce();return(t==null?void 0:t.activationStart)??0};function St(t,e,n){x.document&&x.addEventListener(t,e,n)}function le(t,e,n){x.document&&x.removeEventListener(t,e,n)}let Et=-1;const pr=new Set,$o=()=>{var t,e;return((t=x.document)==null?void 0:t.visibilityState)==="hidden"&&!((e=x.document)!=null&&e.prerendering)?0:1/0},ue=t=>{if(Ho(t)&&Et>-1){if(t.type==="visibilitychange"||t.type==="pagehide")for(const e of pr)e();isFinite(Et)||(Et=t.type==="visibilitychange"?t.timeStamp:0,le("prerenderingchange",ue,!0))}},Wt=()=>{var t;if(x.document&&Et<0){const e=wt();Et=(x.document.prerendering||(t=globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0])==null?void 0:t.startTime)??$o(),St("visibilitychange",ue,!0),St("pagehide",ue,!0),St("prerenderingchange",ue,!0)}return{get firstHiddenTime(){return Et},onHidden(e){pr.add(e)}}};function Ho(t){var e;return t.type==="pagehide"||((e=x.document)==null?void 0:e.visibilityState)==="hidden"}const jo=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,$t=(t,e=-1)=>{var n,r;const s=ce();let o="navigate";return s&&((n=x.document)!=null&&n.prerendering||wt()>0?o="prerender":(r=x.document)!=null&&r.wasDiscarded?o="restore":s.type&&(o=s.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:jo(),navigationType:o}},Ze=new WeakMap;function tn(t,e){try{return Ze.get(t)||Ze.set(t,new e),Ze.get(t)}catch{return new e}}class Fe{constructor(){Fe.prototype.__init.call(this),Fe.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){var n;if(e.hadRecentInput)return;const r=this._sessionEntries[0],s=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&r&&s&&e.startTime-s.startTime<1e3&&e.startTime-r.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),(n=this._onAfterProcessingUnexpectedShift)==null||n.call(this,e)}}const It=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{e(s.getEntries())})});return r.observe({type:t,buffered:!0,...n}),r}}catch{}},en=t=>{let e=!1;return()=>{e||(t(),e=!0)}},de=t=>{var e;(e=x.document)!=null&&e.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},qo=[1800,3e3],Vo=(t,e={})=>{de(()=>{const n=Wt(),r=$t("FCP");let s;const o=It("paint",i=>{for(const a of i)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<n.firstHiddenTime&&(r.value=Math.max(a.startTime-wt(),0),r.entries.push(a),s(!0)))});o&&(s=zt(t,r,qo,e.reportAllChanges))})},Ko=[.1,.25],Jo=(t,e={})=>{Vo(en(()=>{var n;const r=$t("CLS",0);let s;const o=Wt(),i=tn(e,Fe),a=l=>{for(const u of l)i._processEntry(u);i._sessionValue>r.value&&(r.value=i._sessionValue,r.entries=i._sessionEntries,s())},c=It("layout-shift",a);c&&(s=zt(t,r,Ko,e.reportAllChanges),o.onHidden(()=>{a(c.takeRecords()),s(!0)}),(n=x==null?void 0:x.setTimeout)==null||n.call(x,s))}))};let mr=0,nn=1/0,he=0;const Yo=t=>{t.forEach(e=>{e.interactionId&&(nn=Math.min(nn,e.interactionId),he=Math.max(he,e.interactionId),mr=he?(he-nn)/7+1:0)})};let rn;const fr=()=>rn?mr:performance.interactionCount||0,Go=()=>{"interactionCount"in performance||rn||(rn=It("event",Yo,{type:"event",buffered:!0,durationThreshold:0}))},sn=10;let yr=0;const Xo=()=>fr()-yr;class Pe{constructor(){Pe.prototype.__init.call(this),Pe.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){yr=fr(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(Xo()/50));return this._longestInteractionList[e]}_processEntry(e){var n,r;if((n=this._onBeforeProcessingEntry)==null||n.call(this,e),!(e.interactionId||e.entryType==="first-input"))return;const s=this._longestInteractionList.at(-1);let o=this._longestInteractionMap.get(e.interactionId);if(o||this._longestInteractionList.length<sn||e.duration>s._latency){if(o?e.duration>o._latency?(o.entries=[e],o._latency=e.duration):e.duration===o._latency&&e.startTime===o.entries[0].startTime&&o.entries.push(e):(o={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(o.id,o),this._longestInteractionList.push(o)),this._longestInteractionList.sort((i,a)=>a._latency-i._latency),this._longestInteractionList.length>sn){const i=this._longestInteractionList.splice(sn);for(const a of i)this._longestInteractionMap.delete(a.id)}(r=this._onAfterProcessingINPCandidate)==null||r.call(this,o)}}}const gr=t=>{var e;const n=x.requestIdleCallback||x.setTimeout;((e=x.document)==null?void 0:e.visibilityState)==="hidden"?t():(t=en(t),St("visibilitychange",t,{once:!0,capture:!0}),St("pagehide",t,{once:!0,capture:!0}),n(()=>{t(),le("visibilitychange",t,{capture:!0}),le("pagehide",t,{capture:!0})}))},Qo=[200,500],Zo=40,ti=(t,e={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Wt();de(()=>{Go();const r=$t("INP");let s;const o=tn(e,Pe),i=c=>{gr(()=>{for(const u of c)o._processEntry(u);const l=o._estimateP98LongestInteraction();l&&l._latency!==r.value&&(r.value=l._latency,r.entries=l.entries,s())})},a=It("event",i,{durationThreshold:e.durationThreshold??Zo});s=zt(t,r,Qo,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(a.takeRecords()),s(!0)}))})};class ei{_processEntry(e){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,e)}}const ni=[2500,4e3],ri=(t,e={})=>{de(()=>{const n=Wt(),r=$t("LCP");let s;const o=tn(e,ei),i=c=>{e.reportAllChanges||(c=c.slice(-1));for(const l of c)o._processEntry(l),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-wt(),0),r.entries=[l],s())},a=It("largest-contentful-paint",i);if(a){s=zt(t,r,ni,e.reportAllChanges);const c=en(()=>{i(a.takeRecords()),a.disconnect(),s(!0)}),l=u=>{u.isTrusted&&(gr(c),le(u.type,l,{capture:!0}))};for(const u of["keydown","click","visibilitychange"])St(u,l,{capture:!0})}})},si=[800,1800],on=t=>{var e,n;(e=x.document)!=null&&e.prerendering?de(()=>on(t)):((n=x.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>on(t),!0):setTimeout(t)},oi=(t,e={})=>{const n=$t("TTFB"),r=zt(t,n,si,e.reportAllChanges);on(()=>{const s=ce();s&&(n.value=Math.max(s.responseStart-wt(),0),n.entries=[s],r(!0))})},Ht={},pe={};let Sr,vr,kr,br;function _r(t,e=!1){return me("cls",t,ai,Sr,e)}function wr(t,e=!1){return me("lcp",t,ci,vr,e)}function ii(t){return me("ttfb",t,li,kr)}function Er(t){return me("inp",t,ui,br)}function Ir(t,e){return Cr(t,e),pe[t]||(di(t),pe[t]=!0),Tr(t,e)}function jt(t,e){const n=Ht[t];if(n!=null&&n.length)for(const r of n)try{r(e)}catch(s){_t&&st.error(`Error while triggering instrumentation handler.
|
|
7
|
-
Type: ${t}
|
|
8
|
-
Name: ${Hn(r)}
|
|
9
|
-
Error:`,s)}}function ai(){return Jo(t=>{jt("cls",{metric:t}),Sr=t},{reportAllChanges:!0})}function ci(){return ri(t=>{jt("lcp",{metric:t}),vr=t},{reportAllChanges:!0})}function li(){return oi(t=>{jt("ttfb",{metric:t}),kr=t})}function ui(){return ti(t=>{jt("inp",{metric:t}),br=t})}function me(t,e,n,r,s=!1){Cr(t,e);let o;return pe[t]||(o=n(),pe[t]=!0),r&&e({metric:r}),Tr(t,e,s?o:void 0)}function di(t){const e={};t==="event"&&(e.durationThreshold=0),It(t,n=>{jt(t,{entries:n})},e)}function Cr(t,e){Ht[t]=Ht[t]||[],Ht[t].push(e)}function Tr(t,e,n){return()=>{n&&n();const r=Ht[t];if(!r)return;const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}function hi(t){return"duration"in t}const pi=1e3;let xr,an,cn;function Mr(t){oe("dom",t),ie("dom",mi)}function mi(){if(!x.document)return;const t=kt.bind(null,"dom"),e=Rr(t,!0);x.document.addEventListener("click",e,!1),x.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var r,s;const o=(r=x[n])==null?void 0:r.prototype;(s=o==null?void 0:o.hasOwnProperty)!=null&&s.call(o,"addEventListener")&&(Ut(o,"addEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[a]=u[a]||{refCount:0};if(!d.handler){const h=Rr(t);d.handler=h,i.call(this,a,h,l)}d.refCount++}catch{}return i.call(this,a,c,l)}}),Ut(o,"removeEventListener",function(i){return function(a,c,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,l),d.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,l)}}))})}function fi(t){if(t.type!==an)return!1;try{if(!t.target||t.target._sentryId!==cn)return!1}catch{}return!0}function yi(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Rr(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=gi(n);if(yi(n.type,r))return;Kn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Kn(r,"_sentryId",Jn());const s=n.type==="keypress"?"input":n.type;fi(n)||(t({event:n,name:s,global:e}),an=n.type,cn=r?r._sentryId:void 0),clearTimeout(xr),xr=x.setTimeout(()=>{cn=void 0,an=void 0},pi)}}function gi(t){try{return t.target}catch{return null}}let fe;function Or(t){const e="history";oe(e,t),ie(e,Si)}function Si(){if(x.addEventListener("popstate",()=>{const e=x.location.href,n=fe;fe=e,n!==e&&kt("history",{from:n,to:e})}),!Do())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=fe,o=vi(String(r));if(fe=o,s===o)return e.apply(this,n);kt("history",{from:s,to:o})}return e.apply(this,n)}}Ut(x.history,"pushState",t),Ut(x.history,"replaceState",t)}function vi(t){try{return new URL(t,x.location.origin).toString()}catch{return t}}const ye={};function Ar(t){const e=ye[t];if(e)return e;let n=x[t];if(Xe(n))return ye[t]=n.bind(x);const r=x.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o!=null&&o[t]&&(n=o[t]),r.head.removeChild(s)}catch(s){_t&&st.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(ye[t]=n.bind(x))}function ki(t){ye[t]=void 0}function qt(...t){return Ar("setTimeout")(...t)}const Ct="__sentry_xhr_v3__";function bi(t){oe("xhr",t),ie("xhr",_i)}function _i(){if(!x.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const s=new Error,o=Ye()*1e3,i=re(r[0])?r[0].toUpperCase():void 0,a=wi(r[1]);if(!i||!a)return e.apply(n,r);n[Ct]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[Ct];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const u={endTimestamp:Ye()*1e3,startTimestamp:o,xhr:n,virtualError:s};kt("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,u,d){return c(),l.apply(u,d)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,u,d){const[h,p]=d,m=u[Ct];return m&&re(h)&&re(p)&&(m.request_headers[h.toLowerCase()]=p),l.apply(u,d)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[Ct];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:Ye()*1e3,xhr:n};return kt("xhr",o),e.apply(n,r)}})}function wi(t){if(re(t))return t;try{return t.toString()}catch{}}const Ei=Symbol.for("sentry__originalRequestBody");function Dr(t){return new URLSearchParams(t).toString()}function ln(t,e=st){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[Dr(t)];if(!t)return[void 0]}catch(n){return _t&&e.error(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return _t&&e.log("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function un(t=[]){if(t.length>=2&&t[1]&&typeof t[1]=="object"&&"body"in t[1])return t[1].body;if(t.length>=1&&t[0]instanceof Request){const e=t[0][Ei];return e!==void 0?e:void 0}}function Lr(t){let e;try{e=t.getAllResponseHeaders()}catch(n){return _t&&st.error(n,"Failed to get xhr response headers",t),{}}return e?e.split(`\r
|
|
10
|
-
`).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}const L=dt,dn="sentryReplaySession",Ii="replay_event",hn="Unable to send Replay",Ci=3e5,Ti=9e5,xi=5e3,Mi=5500,Ri=6e4,Oi=5e3,Ai=3,Nr=15e4,ge=5e3,Di=3e3,Li=300,pn=2e7,Ni=4999,Fi=5e4,Fr=36e5;var Pi=Object.defineProperty,Bi=(t,e,n)=>e in t?Pi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pr=(t,e,n)=>Bi(t,typeof e!="symbol"?e+"":e,n),q=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(q||{});function Ui(t){return t.nodeType===t.ELEMENT_NODE}function Vt(t){const e=t==null?void 0:t.host;return(e==null?void 0:e.shadowRoot)===t}function Kt(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function zi(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Wi(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function Se(t){try{const e=t.rules||t.cssRules;return e?zi(Array.from(e,Br).join("")):null}catch{return null}}function $i(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,s=r[n],o=r.getPropertyPriority(s);e+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${t.selectorText} { ${e} }`}function Br(t){let e;if(ji(t))try{e=Se(t.styleSheet)||Wi(t)}catch{}else if(qi(t)){let n=t.cssText;const r=t.selectorText.includes(":"),s=typeof t.style.all=="string"&&t.style.all;if(s&&(n=$i(t)),r&&(n=Hi(n)),r||s)return n}return e||t.cssText}function Hi(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function ji(t){return"styleSheet"in t}function qi(t){return"selectorText"in t}class Ur{constructor(){Pr(this,"idNodeMap",new Map),Pr(this,"nodeMetaMap",new WeakMap)}getId(e){var n;return e?((n=this.getMeta(e))==null?void 0:n.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const n=this.getId(e);this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,n){const r=n.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,n)}replace(e,n){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Vi(){return new Ur}function ve({maskInputOptions:t,tagName:e,type:n}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||n==="password"||e==="INPUT"&&!n&&t.text)}function Jt({isMasked:t,element:e,value:n,maskInputFn:r}){let s=n||"";return t?(r&&(s=r(s,e)),"*".repeat(s.length)):s}function Tt(t){return t.toLowerCase()}function mn(t){return t.toUpperCase()}const zr="__rrweb_original__";function Ki(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let s=0;s<t.height;s+=n){const o=e.getImageData,i=zr in o?o[zr]:o;if(new Uint32Array(i.call(e,r,s,Math.min(n,t.width-r),Math.min(n,t.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function fn(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Tt(e):null}function ke(t,e,n){return e==="INPUT"&&(n==="radio"||n==="checkbox")?t.getAttribute("value")||"":t.value}function Wr(t,e){let n;try{n=new URL(t,e??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return(s==null?void 0:s[1])??null}const $r={};function Hr(t){const e=$r[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(s)}catch{}return $r[t]=r.bind(window)}function yn(...t){return Hr("setTimeout")(...t)}function jr(...t){return Hr("clearTimeout")(...t)}function qr(t){try{return t.contentDocument}catch{}}let Ji=1;const Yi=new RegExp("[^a-z0-9-_:]"),Yt=-2;function gn(){return Ji++}function Gi(t){if(t instanceof HTMLFormElement)return"form";const e=Tt(t.tagName);return Yi.test(e)?"div":e}function Xi(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let xt,Vr;const Qi=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zi=/^(?:[a-z+]+:)?\/\//i,ta=/^www\..*/i,ea=/^(data:)([^,]*),(.*)/i;function na(t,e){if(!t||e.size===0)return t;try{const n=t.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const o=s.indexOf(":");if(o===-1){r.push(s);continue}const i=s.slice(0,o).trim();e.has(i)||r.push(s)}return r.join("; ")+(r.length>0&&t.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),t}}function be(t,e){return(t||"").replace(Qi,(n,r,s,o,i,a)=>{const c=s||i||a,l=r||o||"";if(!c)return n;if(Zi.test(c)||ta.test(c))return`url(${l}${c}${l})`;if(ea.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${Xi(e)+c}${l})`;const u=e.split("/"),d=c.split("/");u.pop();for(const h of d)h!=="."&&(h===".."?u.pop():u.push(h));return`url(${l}${u.join("/")}${l})`})}const ra=/^[^ \t\n\r\u000c]+/,sa=/^[, \t\n\r\u000c]+/;function oa(t,e){if(e.trim()==="")return e;let n=0;function r(o){let i;const a=o.exec(e.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(sa),!(n>=e.length);){let o=r(ra);if(o.slice(-1)===",")o=Mt(t,o.substring(0,o.length-1)),s.push(o);else{let i="";o=Mt(t,o);let a=!1;for(;;){const c=e.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}const Kr=new WeakMap;function Mt(t,e){return!e||e.trim()===""?e:_e(t,e)}function ia(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function _e(t,e){let n=Kr.get(t);if(n||(n=t.createElement("a"),Kr.set(t,n)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return n.setAttribute("href",e),n.href}function Jr(t,e,n,r,s,o,i){if(!r)return r;if(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(e==="table"||e==="td"||e==="th"))return Mt(t,r);if(n==="srcset")return oa(t,r);if(n==="style"){let a=be(r,_e(t));return i&&i.size>0&&(a=na(a,i)),a}else if(e==="object"&&n==="data")return Mt(t,r);return typeof o=="function"?o(n,r,s):r}function Yr(t,e,n){return(t==="video"||t==="audio")&&e==="autoplay"}function aa(t,e,n,r){try{if(r&&t.matches(r))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let s=t.classList.length;s--;){const o=t.classList[s];if(e.test(o))return!0}if(n)return t.matches(n)}catch{}return!1}function ca(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function vt(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:vt(t.parentNode,e,n,r+1)}function Rt(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(`.${t}`))return!0}else if(ca(r,t))return!0}return!!(e&&r.matches(e))}catch{return!1}}}function Ot(t,e,n,r,s,o){try{const i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const l=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let a=-1,c=-1;if(o){if(c=vt(i,Rt(r,s)),c<0)return!0;a=vt(i,Rt(e,n),c>=0?c:1/0)}else{if(a=vt(i,Rt(e,n)),a<0)return!1;c=vt(i,Rt(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function la(t,e,n){const r=t.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=yn(()=>{s||(e(),s=!0)},n);t.addEventListener("load",()=>{jr(a),s=!0,e()});return}const i="about:blank";if(r.location.href!==i||t.src===i||t.src==="")return yn(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function ua(t,e,n){let r=!1,s;try{s=t.sheet}catch{return}if(s)return;const o=yn(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{jr(o),r=!0,e()})}function da(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:y,maskInputFn:_,dataURLOptions:v={},inlineImages:w,recordCanvas:M,keepIframeSrcFn:P,newlyAddedElement:B=!1,ignoreCSSAttributes:S}=e,f=ha(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:q.Document,childNodes:[],compatMode:t.compatMode}:{type:q.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:q.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:f};case t.ELEMENT_NODE:return ma(t,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:_,dataURLOptions:v,inlineImages:w,recordCanvas:M,keepIframeSrcFn:P,newlyAddedElement:B,rootId:f,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,ignoreCSSAttributes:S});case t.TEXT_NODE:return pa(t,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:y,maskInputOptions:m,maskInputFn:_,rootId:f});case t.CDATA_SECTION_NODE:return{type:q.CDATA,textContent:"",rootId:f};case t.COMMENT_NODE:return{type:q.Comment,textContent:t.textContent||"",rootId:f};default:return!1}}function ha(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function pa(t,e){var n;const{maskAllText:r,maskTextClass:s,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:a,maskTextFn:c,maskInputOptions:l,maskInputFn:u,rootId:d}=e,h=t.parentNode&&t.parentNode.tagName;let p=t.textContent;const m=h==="STYLE"?!0:void 0,y=h==="SCRIPT"?!0:void 0,_=h==="TEXTAREA"?!0:void 0;if(m&&p){try{t.nextSibling||t.previousSibling||(n=t.parentNode.sheet)!=null&&n.cssRules&&(p=Se(t.parentNode.sheet))}catch(w){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${w}`,t)}p=be(p,_e(e.doc))}y&&(p="SCRIPT_PLACEHOLDER");const v=Ot(t,s,i,o,a,r);if(!m&&!y&&!_&&p&&v&&(p=c?c(p,t.parentElement):p.replace(/[\S]/g,"*")),_&&p&&(l.textarea||v)&&(p=u?u(p,t.parentNode):p.replace(/[\S]/g,"*")),h==="OPTION"&&p){const w=ve({type:null,tagName:h,maskInputOptions:l});p=Jt({isMasked:Ot(t,s,i,o,a,w),element:t,value:p,maskInputFn:u})}return{type:q.Text,textContent:p||"",isStyle:m,rootId:d}}function ma(t,e){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:y,maskTextClass:_,unmaskTextClass:v,maskTextSelector:w,unmaskTextSelector:M,ignoreCSSAttributes:P}=e,B=aa(t,r,s,o),S=Gi(t);let f={};const j=t.attributes.length;for(let g=0;g<j;g++){const E=t.attributes[g];E.name&&!Yr(S,E.name,E.value)&&(f[E.name]=Jr(n,S,Tt(E.name),E.value,t,c,P))}if(S==="link"&&i){const g=Array.from(n.styleSheets).find(D=>D.href===t.href);let E=null;g&&(E=Se(g)),E&&(f.rel=null,f.href=null,f.crossorigin=null,f._cssText=be(E,g.href))}if(S==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const g=Se(t.sheet);g&&(f._cssText=be(g,_e(n)))}if(S==="input"||S==="textarea"||S==="select"||S==="option"){const g=t,E=fn(g),D=ke(g,mn(S),E),$=g.checked;if(E!=="submit"&&E!=="button"&&D){const G=Ot(g,_,w,v,M,ve({type:E,tagName:mn(S),maskInputOptions:a}));f.value=Jt({isMasked:G,element:g,value:D,maskInputFn:l})}$&&(f.checked=$)}if(S==="option"&&(t.selected&&!a.select?f.selected=!0:delete f.selected),S==="canvas"&&h){if(t.__context==="2d")Ki(t)||(f.rr_dataURL=t.toDataURL(u.type,u.quality));else if(!("__context"in t)){const g=t.toDataURL(u.type,u.quality),E=n.createElement("canvas");E.width=t.width,E.height=t.height;const D=E.toDataURL(u.type,u.quality);g!==D&&(f.rr_dataURL=g)}}if(S==="img"&&d){xt||(xt=n.createElement("canvas"),Vr=xt.getContext("2d"));const g=t,E=g.currentSrc||g.getAttribute("src")||"<unknown-src>",D=g.crossOrigin,$=()=>{g.removeEventListener("load",$);try{xt.width=g.naturalWidth,xt.height=g.naturalHeight,Vr.drawImage(g,0,0),f.rr_dataURL=xt.toDataURL(u.type,u.quality)}catch(G){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?$():g.addEventListener("load",$);return}else console.warn(`Cannot inline img src=${E}! Error: ${G}`)}g.crossOrigin==="anonymous"&&(D?f.crossOrigin=D:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?$():g.addEventListener("load",$)}if((S==="audio"||S==="video")&&(f.rr_mediaState=t.paused?"paused":"played",f.rr_mediaCurrentTime=t.currentTime),m||(t.scrollLeft&&(f.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(f.rr_scrollTop=t.scrollTop)),B){const{width:g,height:E}=t.getBoundingClientRect();f={class:f.class,rr_width:`${g}px`,rr_height:`${E}px`}}S==="iframe"&&!p(f.src)&&(!B&&!qr(t)&&(f.rr_src=f.src),delete f.src);let W;try{customElements.get(S)&&(W=!0)}catch{}return{type:q.Element,tagName:S,attributes:f,childNodes:[],isSVG:ia(t)||void 0,needBlock:B,rootId:y,isCustom:W}}function N(t){return t==null?"":t.toLowerCase()}function fa(t,e){return!!(e.comment&&t.type===q.Comment||t.type===q.Element&&(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&Wr(t.attributes.href)==="js")||e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(N(t.attributes.name).match(/^msapplication-tile(image|color)$/)||N(t.attributes.name)==="application-name"||N(t.attributes.rel)==="icon"||N(t.attributes.rel)==="apple-touch-icon"||N(t.attributes.rel)==="shortcut icon"))||t.tagName==="meta"&&(e.headMetaDescKeywords&&N(t.attributes.name).match(/^description|keywords$/)||e.headMetaSocial&&(N(t.attributes.property).match(/^(og|twitter|fb):/)||N(t.attributes.name).match(/^(og|twitter):/)||N(t.attributes.name)==="pinterest")||e.headMetaRobots&&(N(t.attributes.name)==="robots"||N(t.attributes.name)==="googlebot"||N(t.attributes.name)==="bingbot")||e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0||e.headMetaAuthorship&&(N(t.attributes.name)==="author"||N(t.attributes.name)==="generator"||N(t.attributes.name)==="framework"||N(t.attributes.name)==="publisher"||N(t.attributes.name)==="progid"||N(t.attributes.property).match(/^article:/)||N(t.attributes.property).match(/^product:/))||e.headMetaVerification&&(N(t.attributes.name)==="google-site-verification"||N(t.attributes.name)==="yandex-verification"||N(t.attributes.name)==="csrf-token"||N(t.attributes.name)==="p:domain_verify"||N(t.attributes.name)==="verify-v1"||N(t.attributes.name)==="verification"||N(t.attributes.name)==="shopify-checkout-api-token"))))}function At(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:y,maskTextFn:_,maskInputFn:v,slimDOMOptions:w,dataURLOptions:M={},inlineImages:P=!1,recordCanvas:B=!1,onSerialize:S,onIframeLoad:f,iframeLoadTimeout:j=5e3,onBlockedImageLoad:W,onStylesheetLoad:g,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:$=!1,ignoreCSSAttributes:G}=e;let{preserveWhiteSpace:Q=!0}=e;const K=da(t,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:y,maskTextFn:_,maskInputFn:v,dataURLOptions:M,inlineImages:P,recordCanvas:B,keepIframeSrcFn:D,newlyAddedElement:$,ignoreCSSAttributes:G});if(!K)return console.warn(t,"not serialized"),null;let V;r.hasNode(t)?V=r.getId(t):fa(K,w)||!Q&&K.type===q.Text&&!K.isStyle&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?V=Yt:V=gn();const T=Object.assign(K,{id:V});if(r.add(t,T),V===Yt)return null;S&&S(t);let it=!h;if(T.type===q.Element){it=it&&!T.needBlock;const z=t.shadowRoot;z&&Kt(z)&&(T.isShadowHost=!0)}if((T.type===q.Document||T.type===q.Element)&&it){w.headWhitespace&&T.type===q.Element&&T.tagName==="head"&&(Q=!1);const z={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:y,maskTextFn:_,maskInputFn:v,slimDOMOptions:w,dataURLOptions:M,inlineImages:P,recordCanvas:B,preserveWhiteSpace:Q,onSerialize:S,onIframeLoad:f,iframeLoadTimeout:j,onBlockedImageLoad:W,onStylesheetLoad:g,stylesheetLoadTimeout:E,keepIframeSrcFn:D,ignoreCSSAttributes:G},rt=t.childNodes?Array.from(t.childNodes):[];for(const at of rt){const tt=At(at,z);tt&&T.childNodes.push(tt)}if(Ui(t)&&t.shadowRoot)for(const at of Array.from(t.shadowRoot.childNodes)){const tt=At(at,z);tt&&(Kt(t.shadowRoot)&&(tt.isShadow=!0),T.childNodes.push(tt))}}if(t.parentNode&&Vt(t.parentNode)&&Kt(t.parentNode)&&(T.isShadow=!0),T.type===q.Element&&T.tagName==="iframe"&&!T.needBlock&&la(t,()=>{const z=qr(t);if(z&&f){const rt=At(z,{doc:z,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:y,maskTextFn:_,maskInputFn:v,slimDOMOptions:w,dataURLOptions:M,inlineImages:P,recordCanvas:B,preserveWhiteSpace:Q,onSerialize:S,onIframeLoad:f,iframeLoadTimeout:j,onStylesheetLoad:g,stylesheetLoadTimeout:E,keepIframeSrcFn:D,ignoreCSSAttributes:G});rt&&f(t,rt)}},j),T.type===q.Element&&T.tagName==="img"&&!t.complete&&T.needBlock){const z=t,rt=()=>{if(z.isConnected&&!z.complete&&W)try{const at=z.getBoundingClientRect();at.width>0&&at.height>0&&W(z,T,at)}catch{}z.removeEventListener("load",rt)};z.isConnected&&z.addEventListener("load",rt)}return T.type===q.Element&&T.tagName==="link"&&typeof T.attributes.rel=="string"&&(T.attributes.rel==="stylesheet"||T.attributes.rel==="preload"&&typeof T.attributes.href=="string"&&Wr(T.attributes.href)==="css")&&ua(t,()=>{if(g){const z=At(t,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:y,maskTextFn:_,maskInputFn:v,slimDOMOptions:w,dataURLOptions:M,inlineImages:P,recordCanvas:B,preserveWhiteSpace:Q,onSerialize:S,onIframeLoad:f,iframeLoadTimeout:j,onStylesheetLoad:g,stylesheetLoadTimeout:E,keepIframeSrcFn:D,ignoreCSSAttributes:G});z&&g(t,z)}},E),T.type===q.Element&&delete T.needBlock,T}function ya(t,e){const{mirror:n=new Ur,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:y,maskTextFn:_,maskInputFn:v,slimDOM:w=!1,dataURLOptions:M,preserveWhiteSpace:P,onSerialize:B,onIframeLoad:S,iframeLoadTimeout:f,onBlockedImageLoad:j,onStylesheetLoad:W,stylesheetLoadTimeout:g,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:D=new Set([])}=e||{};return At(t,{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:y,maskTextFn:_,maskInputFn:v,slimDOMOptions:w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:w==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:w===!1?{}:w,dataURLOptions:M,inlineImages:h,recordCanvas:p,preserveWhiteSpace:P,onSerialize:B,onIframeLoad:S,iframeLoadTimeout:f,onBlockedImageLoad:j,onStylesheetLoad:W,stylesheetLoadTimeout:g,keepIframeSrcFn:E,newlyAddedElement:!1,ignoreCSSAttributes:D})}function J(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Dt=`Please stop import mirror directly. Instead of that,\r
|
|
11
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
12
|
-
or you can use record.mirror to access the mirror instance during recording.`;let Gr={map:{},getId(){return console.error(Dt),-1},getNode(){return console.error(Dt),null},removeNodeFromMap(){console.error(Dt)},has(){return console.error(Dt),!1},reset(){console.error(Dt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Gr=new Proxy(Gr,{get(t,e,n){return e==="map"&&console.error(Dt),Reflect.get(t,e,n)}}));function Gt(t,e,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=e-(i-s),c=this;a<=0||a>e?(r&&(wa(r),r=null),s=i,t.apply(c,o)):!r&&n.trailing!==!1&&(r=Ee(()=>{s=n.leading===!1?0:Date.now(),r=null,t.apply(c,o)},a))}}function Xr(t,e,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(i){Ee(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>Xr(t,e,o||{},!0)}function Sn(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch{return()=>{}}}let we=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(we=()=>new Date().getTime());function Qr(t){var e,n,r,s,o,i;const a=t.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:(a==null?void 0:a.documentElement.scrollLeft)||((n=(e=a==null?void 0:a.body)==null?void 0:e.parentElement)==null?void 0:n.scrollLeft)||((r=a==null?void 0:a.body)==null?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||((o=(s=a==null?void 0:a.body)==null?void 0:s.parentElement)==null?void 0:o.scrollTop)||((i=a==null?void 0:a.body)==null?void 0:i.scrollTop)||0}}function Zr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ts(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function es(t){if(!t)return null;try{return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}catch{return null}}function X(t,e,n,r,s){if(!t)return!1;const o=es(t);if(!o)return!1;const i=Rt(e,n);if(!s){const l=r&&o.matches(r);return i(o)&&!l}const a=vt(o,i);let c=-1;return a<0?!1:(r&&(c=vt(o,Rt(null,r))),a>-1&&c<0?!0:a<c)}function ga(t,e){return e.getId(t)!==-1}function vn(t,e){return e.getId(t)===Yt}function ns(t,e){if(Vt(t))return!1;const n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?ns(t.parentNode,e):!0:!0}function kn(t){return!!t.changedTouches}function Sa(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let n=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function rs(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function ss(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function bn(t){return!!(t!=null&&t.shadowRoot)}class va{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function os(t){var e,n;let r=null;return((n=(e=t.getRootNode)==null?void 0:e.call(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(r=t.getRootNode().host),r}function ka(t){let e=t,n;for(;n=os(e);)e=n;return e}function ba(t){const e=t.ownerDocument;if(!e)return!1;const n=ka(t);return e.contains(n)}function is(t){const e=t.ownerDocument;return e?e.contains(t)||ba(t):!1}const as={};function _n(t){const e=as[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(s)}catch{}return as[t]=r.bind(window)}function _a(...t){return _n("requestAnimationFrame")(...t)}function Ee(...t){return _n("setTimeout")(...t)}function wa(...t){return _n("clearTimeout")(...t)}var C=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(C||{}),I=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(I||{}),Y=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(Y||{}),lt=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(lt||{}),Lt=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Lt||{});function wn(t){try{return t.contentDocument}catch{}}function Ea(t){try{return t.contentWindow}catch{}}function cs(t){return"__ln"in t}class Ia{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=(n==null?void 0:n.next)||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&cs(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&cs(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const ls=(t,e)=>`${t}@${e}`;class Ca{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new Ia,s=c=>{let l=c,u=Yt;for(;u===Yt;)l=l&&l.nextSibling,u=l&&this.mirror.getId(l);return u},o=c=>{if(!c.parentNode||!is(c))return;const l=Vt(c.parentNode)?this.mirror.getId(os(c)):this.mirror.getId(c.parentNode),u=s(c);if(l===-1||u===-1)return r.addNode(c);const d=At(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{rs(h,this.mirror)&&!X(h,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(h),ss(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),bn(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(h,p)=>{X(h,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(h,p),h.contentWindow&&this.canvasManager.addWindow(h.contentWindow),this.shadowDomManager.observeAttachShadow(h))},onStylesheetLoad:(h,p)=>{this.stylesheetManager.attachLinkElement(h,p)},onBlockedImageLoad:(h,p,{width:m,height:y})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:{style:{width:`${m}px`,height:`${y}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(e.push({parentId:l,nextId:u,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)us(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!ds(this.droppedSet,c)&&!us(this.removes,c,this.mirror)||ds(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const l=this.mirror.getId(i.value.parentNode),u=s(i.value);l!==-1&&u!==-1&&(c=i)}if(!c){let l=r.tail;for(;l;){const u=l;if(l=l.previous,u){const d=this.mirror.getId(u.value.parentNode);if(s(u.value)===-1)continue;if(d!==-1){c=u;break}else{const h=u.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=h.parentNode.host;if(this.mirror.getId(p)!==-1){c=u;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const u=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);u.length<l.style.length&&(u+d).split("var(").length===l.style.split("var(").length&&(l.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:l}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!vn(e.target,this.mirror))switch(e.type){case"characterData":{const n=e.target.textContent;!X(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:Ot(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,es(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,s=e.target.getAttribute(r);if(r==="value"){const i=fn(n),a=n.tagName;s=ke(n,a,i);const c=ve({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),l=Ot(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=Jt({isMasked:l,element:n,value:s,maskInputFn:this.maskInputFn})}if(X(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let o=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!wn(n))r="rr_src";else return;if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Yr(n.tagName,r)&&(o.attributes[r]=Jr(this.doc,Tt(n.tagName),Tt(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||l!==i.style.getPropertyPriority(a)?l===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,l]:o._unchangedStyles[a]=[c,l]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}case"childList":{if(X(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=Vt(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);X(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||vn(n,this.mirror)||!ga(n,this.mirror)||(this.addedSet.has(n)?(En(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||ns(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[ls(r,s)]?En(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:Vt(e.target)&&Kt(e.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(vn(e,this.mirror))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[ls(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);X(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(r=>this.genAdds(r)),bn(e)&&e.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function En(t,e){var n;t.delete(e),(n=e.childNodes)==null||n.forEach(r=>En(t,r))}function us(t,e,n){return t.length===0?!1:Ta(t,e,n)}function Ta(t,e,n){let r=e.parentNode;for(;r;){const s=n.getId(r);if(t.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function ds(t,e){return t.size===0?!1:hs(t,e)}function hs(t,e){const{parentNode:n}=e;return n?t.has(n)?!0:hs(t,n):!1}let Xt;function xa(t){Xt=t}function Ma(){Xt=void 0}const R=t=>Xt?(...e)=>{try{return t(...e)}catch(n){if(Xt&&Xt(n)===!0)return()=>{};throw n}}:t,Nt=[];function Qt(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function ps(t,e){var n,r;const s=new Ca;Nt.push(s),s.init(t);let o=window.MutationObserver||window.__rrMutationObserver;const i=(r=(n=window==null?void 0:window.Zone)==null?void 0:n.__symbol__)==null?void 0:r.call(n,"MutationObserver");i&&window[i]&&(o=window[i]);const a=new o(R(c=>{t.onMutation&&t.onMutation(c)===!1||s.processMutations.bind(s)(c)}));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Ra({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const s=typeof e.mousemove=="number"?e.mousemove:50,o=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let i=[],a;const c=Gt(R(d=>{const h=Date.now()-a;t(i.map(p=>(p.timeOffset-=h,p)),d),i=[],a=null}),o),l=R(Gt(R(d=>{const h=Qt(d),{clientX:p,clientY:m}=kn(d)?d.changedTouches[0]:d;a||(a=we()),i.push({x:p,y:m,id:r.getId(h),timeOffset:we()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?I.Drag:d instanceof MouseEvent?I.MouseMove:I.TouchMove)}),s,{trailing:!1})),u=[J("mousemove",l,n),J("touchmove",l,n),J("drag",l,n)];return R(()=>{u.forEach(d=>d())})}function Oa({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let l=null;const u=d=>h=>{const p=Qt(h);if(X(p,r,s,o,!0))return;let m=null,y=d;if("pointerType"in h){switch(h.pointerType){case"mouse":m=lt.Mouse;break;case"touch":m=lt.Touch;break;case"pen":m=lt.Pen;break}m===lt.Touch?Y[d]===Y.MouseDown?y="TouchStart":Y[d]===Y.MouseUp&&(y="TouchEnd"):lt.Pen}else kn(h)&&(m=lt.Touch);m!==null?(l=m,(y.startsWith("Touch")&&m===lt.Touch||y.startsWith("Mouse")&&m===lt.Mouse)&&(m=null)):Y[d]===Y.Click&&(m=l,l=null);const _=kn(h)?h.changedTouches[0]:h;if(!_)return;const v=n.getId(p),{clientX:w,clientY:M}=_;R(t)({type:Y[y],id:v,x:w,y:M,...m!==null&&{pointerType:m}})};return Object.keys(Y).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEach(d=>{let h=Tt(d);const p=u(d);if(window.PointerEvent)switch(Y[d]){case Y.MouseDown:case Y.MouseUp:h=h.replace("mouse","pointer");break;case Y.TouchStart:case Y.TouchEnd:return}c.push(J(h,p,e))}),R(()=>{c.forEach(d=>d())})}function ms({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=R(Gt(R(c=>{const l=Qt(c);if(!l||X(l,r,s,o,!0))return;const u=n.getId(l);if(l===e&&e.defaultView){const d=Qr(e.defaultView);t({id:u,x:d.left,y:d.top})}else t({id:u,x:l.scrollLeft,y:l.scrollTop})}),i.scroll||100));return J("scroll",a,e)}function Aa({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const s=R(Gt(R(()=>{const o=Zr(),i=ts();(n!==o||r!==i)&&(t({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return J("resize",s,e)}const Da=["INPUT","TEXTAREA","SELECT"],fs=new WeakMap;function La({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:y}){function _(S){let f=Qt(S);const j=S.isTrusted,W=f&&mn(f.tagName);if(W==="OPTION"&&(f=f.parentElement),!f||!W||Da.indexOf(W)<0||X(f,r,s,o,!0))return;const g=f;if(g.classList.contains(i)||a&&g.matches(a))return;const E=fn(f);let D=ke(g,W,E),$=!1;const G=ve({maskInputOptions:c,tagName:W,type:E}),Q=Ot(f,h,m,p,y,G);(E==="radio"||E==="checkbox")&&($=f.checked),D=Jt({isMasked:Q,element:f,value:D,maskInputFn:l}),v(f,d?{text:D,isChecked:$,userTriggered:j}:{text:D,isChecked:$});const K=f.name;E==="radio"&&K&&$&&e.querySelectorAll(`input[type="radio"][name="${K}"]`).forEach(V=>{if(V!==f){const T=Jt({isMasked:Q,element:V,value:ke(V,W,E),maskInputFn:l});v(V,d?{text:T,isChecked:!$,userTriggered:!1}:{text:T,isChecked:!$})}})}function v(S,f){const j=fs.get(S);if(!j||j.text!==f.text||j.isChecked!==f.isChecked){fs.set(S,f);const W=n.getId(S);R(t)({...f,id:W})}}const w=(u.input==="last"?["change"]:["input","change"]).map(S=>J(S,R(_),e)),M=e.defaultView;if(!M)return()=>{w.forEach(S=>S())};const P=M.Object.getOwnPropertyDescriptor(M.HTMLInputElement.prototype,"value"),B=[[M.HTMLInputElement.prototype,"value"],[M.HTMLInputElement.prototype,"checked"],[M.HTMLSelectElement.prototype,"value"],[M.HTMLTextAreaElement.prototype,"value"],[M.HTMLSelectElement.prototype,"selectedIndex"],[M.HTMLOptionElement.prototype,"selected"]];return P&&P.set&&w.push(...B.map(S=>Xr(S[0],S[1],{set(){R(_)({target:this,isTrusted:!1})}},!1,M))),R(()=>{w.forEach(S=>S())})}function Ie(t){const e=[];function n(r,s){if(Ce("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Ce("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Ce("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Ce("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(t,e)}function ht(t,e,n){let r,s;return t?(t.ownerNode?r=e.getId(t.ownerNode):s=n.getId(t),{styleId:s,id:r}):{}}function Na({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:R((u,d,h)=>{const[p,m]=h,{id:y,styleId:_}=ht(d,e,n.styleMirror);return(y&&y!==-1||_&&_!==-1)&&t({id:y,styleId:_,adds:[{rule:p,index:m}]}),u.apply(d,h)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:R((u,d,h)=>{const[p]=h,{id:m,styleId:y}=ht(d,e,n.styleMirror);return(m&&m!==-1||y&&y!==-1)&&t({id:m,styleId:y,removes:[{index:p}]}),u.apply(d,h)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:R((u,d,h)=>{const[p]=h,{id:m,styleId:y}=ht(d,e,n.styleMirror);return(m&&m!==-1||y&&y!==-1)&&t({id:m,styleId:y,replace:p}),u.apply(d,h)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:R((u,d,h)=>{const[p]=h,{id:m,styleId:y}=ht(d,e,n.styleMirror);return(m&&m!==-1||y&&y!==-1)&&t({id:m,styleId:y,replaceSync:p}),u.apply(d,h)})}));const c={};Te("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Te("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Te("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Te("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([u,d])=>{l[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(l[u].insertRule,{apply:R((h,p,m)=>{const[y,_]=m,{id:v,styleId:w}=ht(p.parentStyleSheet,e,n.styleMirror);return(v&&v!==-1||w&&w!==-1)&&t({id:v,styleId:w,adds:[{rule:y,index:[...Ie(p),_||0]}]}),h.apply(p,m)})}),d.prototype.deleteRule=new Proxy(l[u].deleteRule,{apply:R((h,p,m)=>{const[y]=m,{id:_,styleId:v}=ht(p.parentStyleSheet,e,n.styleMirror);return(_&&_!==-1||v&&v!==-1)&&t({id:_,styleId:v,removes:[{index:[...Ie(p),y]}]}),h.apply(p,m)})})}),R(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([u,d])=>{d.prototype.insertRule=l[u].insertRule,d.prototype.deleteRule=l[u].deleteRule})})}function ys({mirror:t,stylesheetManager:e},n){var r,s,o;let i=null;n.nodeName==="#document"?i=t.getId(n):i=t.getId(n.host);const a=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(o=(s=n.ownerDocument)==null?void 0:s.defaultView)==null?void 0:o.ShadowRoot,c=a!=null&&a.prototype?Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!a||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var l;return(l=c.get)==null?void 0:l.call(this)},set(l){var u;const d=(u=c.set)==null?void 0:u.call(this,l);if(i!==null&&i!==-1)try{e.adoptStyleSheets(l,i)}catch{}return d}}),R(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Fa({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:R((a,c,l)=>{var u;const[d,h,p]=l;if(n.has(d))return o.apply(c,[d,h,p]);const{id:m,styleId:y}=ht((u=c.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(m&&m!==-1||y&&y!==-1)&&t({id:m,styleId:y,set:{property:d,value:h,priority:p},index:Ie(c.parentRule)}),a.apply(c,l)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:R((a,c,l)=>{var u;const[d]=l;if(n.has(d))return i.apply(c,[d]);const{id:h,styleId:p}=ht((u=c.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(h&&h!==-1||p&&p!==-1)&&t({id:h,styleId:p,remove:{property:d},index:Ie(c.parentRule)}),a.apply(c,l)})}),R(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function Pa({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=R(l=>Gt(R(u=>{const d=Qt(u);if(!d||X(d,e,n,r,!0))return;const{currentTime:h,volume:p,muted:m,playbackRate:y}=d;t({type:l,id:s.getId(d),currentTime:h,volume:p,muted:m,playbackRate:y})}),o.media||500)),c=[J("play",a(Lt.Play),i),J("pause",a(Lt.Pause),i),J("seeked",a(Lt.Seeked),i),J("volumechange",a(Lt.VolumeChange),i),J("ratechange",a(Lt.RateChange),i)];return R(()=>{c.forEach(l=>l())})}function Ba({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(a,c,l){const u=new o(a,c,l);return s.set(u,{family:a,buffer:typeof c!="string",descriptors:l,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),u};const i=Sn(e.fonts,"add",function(a){return function(c){return Ee(R(()=>{const l=s.get(c);l&&(t(l),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),R(()=>{r.forEach(a=>a())})}function Ua(t){const{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=t;let a=!0;const c=R(()=>{const l=e.getSelection();if(!l||a&&l!=null&&l.isCollapsed)return;a=l.isCollapsed||!1;const u=[],d=l.rangeCount||0;for(let h=0;h<d;h++){const p=l.getRangeAt(h),{startContainer:m,startOffset:y,endContainer:_,endOffset:v}=p;X(m,r,s,o,!0)||X(_,r,s,o,!0)||u.push({start:n.getId(m),startOffset:y,end:n.getId(_),endOffset:v})}i({ranges:u})});return c(),J("selectionchange",c)}function za({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:Sn(n.customElements,"define",function(r){return function(s,o,i){try{e({define:{name:s}})}catch{}return r.apply(this,[s,o,i])}})}function Wa(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=ps(t,t.doc));const s=Ra(t),o=Oa(t),i=ms(t),a=Aa(t,{win:n}),c=La(t),l=Pa(t);let u=()=>{},d=()=>{},h=()=>{},p=()=>{};t.recordDOM&&(u=Na(t,{win:n}),d=ys(t,t.doc),h=Fa(t,{win:n}),t.collectFonts&&(p=Ba(t)));const m=Ua(t),y=za(t),_=[];for(const v of t.plugins)_.push(v.observer(v.callback,n,v.options));return R(()=>{Nt.forEach(v=>v.reset()),r==null||r.disconnect(),s(),o(),i(),a(),c(),l(),u(),d(),h(),p(),m(),y(),_.forEach(v=>v())})}function Ce(t){return typeof window[t]<"u"}function Te(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class In{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,n,r,s){const o=r||this.getIdToRemoteIdMap(e),i=s||this.getRemoteIdToIdMap(e);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(e,n){const r=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return n.map(o=>this.getId(e,o,r,s))}getRemoteId(e,n,r){const s=r||this.getRemoteIdToIdMap(e);return typeof n!="number"?n:s.get(n)||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(s=>this.getRemoteId(e,s,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}class $a{constructor(){this.crossOriginIframeMirror=new In(gn),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Ha{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new In(gn),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new In(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){var r,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e);const o=wn(e);o&&o.adoptedStyleSheets&&o.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(o.adoptedStyleSheets,this.mirror.getId(o))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const s=this.transformCrossOriginEvent(r,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case C.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:C.IncrementalSnapshot,data:{source:I.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case C.Meta:case C.Load:case C.DomContentLoaded:return!1;case C.Plugin:return n;case C.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case C.IncrementalSnapshot:switch(n.data.source){case I.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,e);const o=this.crossOriginIframeRootIdMap.get(e);o&&this.patchRootIdOnNode(s.node,o)}),n.data.removes.forEach(s=>{this.replaceIds(s,e,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,e,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,e,["id"])}),n;case I.Drag:case I.TouchMove:case I.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,e,["id"])}),n;case I.ViewportResize:return!1;case I.MediaInteraction:case I.MouseInteraction:case I.Scroll:case I.CanvasMutation:case I.Input:return this.replaceIds(n.data,e,["id"]),n;case I.StyleSheetRule:case I.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case I.Font:return n;case I.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,e,["start","end"])}),n;case I.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)==null||r.forEach(s=>{this.replaceStyleIds(s,e,["styleId"])}),n}}return!1}replace(e,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=e.getIds(r,n[o]):n[o]=e.getId(r,n[o]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==q.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class ja{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class qa{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!Kt(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=ps({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(ms({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ee(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(ys({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const n=wn(e),r=Ea(e);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(Sn(e.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&is(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=typeof Uint8Array>"u"?[]:new Uint8Array(256),xe=0;xe<gs.length;xe++)Va[gs.charCodeAt(xe)]=xe;class Ss{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ka{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new va,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of e){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:Br(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Ja{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(s=>s!==n)}add(e,n){this.active||(this.active=!0,_a(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let H,Me;var vs;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=((vs=t.contentWindow)==null?void 0:vs.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const nt=Vi();function ut(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:h=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:y,maskInputOptions:_,slimDOMOptions:v,maskAttributeFn:w,maskInputFn:M,maskTextFn:P,maxCanvasSize:B=null,packFn:S,sampling:f={},dataURLOptions:j={},mousemoveWait:W,recordDOM:g=!0,recordCanvas:E=!1,recordCrossOriginIframes:D=!1,recordAfter:$=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:G=!1,collectFonts:Q=!1,inlineImages:K=!1,plugins:V,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:it=new Set([]),errorHandler:z,onMutation:rt,getCanvasManager:at}=t;xa(z);const tt=D?window.parent===window:!0;let Pt=!1;if(!tt)try{window.parent.document&&(Pt=!1)}catch{Pt=!0}if(tt&&!e)throw new Error("emit function is required");if(!tt&&!Pt)return()=>{};W!==void 0&&f.mousemove===void 0&&(f.mousemove=W),nt.reset();const Be=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},Ue=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all"}:v||{};Sa();let ze,We=0;const Wn=O=>{for(const et of V||[])et.eventProcessor&&(O=et.eventProcessor(O));return S&&!Pt&&(O=S(O)),O};H=(O,et)=>{var F;const U=O;if(U.timestamp=we(),(F=Nt[0])!=null&&F.isFrozen()&&U.type!==C.FullSnapshot&&!(U.type===C.IncrementalSnapshot&&U.data.source===I.Mutation)&&Nt.forEach(Z=>Z.unfreeze()),tt)e==null||e(Wn(U),et);else if(Pt){const Z={type:"rrweb",event:Wn(U),origin:window.location.origin,isCheckout:et};window.parent.postMessage(Z,"*")}if(U.type===C.FullSnapshot)ze=U,We=0;else if(U.type===C.IncrementalSnapshot){if(U.data.source===I.Mutation&&U.data.isAttachIframe)return;We++;const Z=r&&We>=r,A=n&&ze&&U.timestamp-ze.timestamp>n;(Z||A)&&je(!0)}};const Bt=O=>{H({type:C.IncrementalSnapshot,data:{source:I.Mutation,...O}})},$n=O=>H({type:C.IncrementalSnapshot,data:{source:I.Scroll,...O}}),Xs=O=>H({type:C.IncrementalSnapshot,data:{source:I.CanvasMutation,...O}}),Qs=O=>H({type:C.IncrementalSnapshot,data:{source:I.AdoptedStyleSheet,...O}}),yt=new Ka({mutationCb:Bt,adoptedStyleSheetCb:Qs}),gt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new $a:new Ha({mirror:nt,mutationCb:Bt,stylesheetManager:yt,recordCrossOriginIframes:D,wrappedEmit:H});for(const O of V||[])O.getMirror&&O.getMirror({nodeMirror:nt,crossOriginIframeMirror:gt.crossOriginIframeMirror,crossOriginIframeStyleMirror:gt.crossOriginIframeStyleMirror});const $e=new Ja,He=Ga(at,{mirror:nt,win:window,mutationCb:O=>H({type:C.IncrementalSnapshot,data:{source:I.CanvasMutation,...O}}),recordCanvas:E,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:B,sampling:f.canvas,dataURLOptions:j,errorHandler:z}),ne=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ja:new qa({mutationCb:Bt,scrollCb:$n,bypassOptions:{onMutation:rt,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:Be,dataURLOptions:j,maskAttributeFn:w,maskTextFn:P,maskInputFn:M,recordCanvas:E,inlineImages:K,sampling:f,slimDOMOptions:Ue,iframeManager:gt,stylesheetManager:yt,canvasManager:He,keepIframeSrcFn:T,processedNodeManager:$e,ignoreCSSAttributes:it},mirror:nt}),je=(O=!1)=>{if(!g)return;H({type:C.Meta,data:{href:window.location.href,width:ts(),height:Zr()}},O),yt.reset(),ne.init(),Nt.forEach(F=>F.lock());const et=ya(document,{mirror:nt,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:Be,maskAttributeFn:w,maskInputFn:M,maskTextFn:P,slimDOM:Ue,dataURLOptions:j,recordCanvas:E,inlineImages:K,onSerialize:F=>{rs(F,nt)&>.addIframe(F),ss(F,nt)&&yt.trackLinkElement(F),bn(F)&&ne.addShadowRoot(F.shadowRoot,document)},onIframeLoad:(F,U)=>{gt.attachIframe(F,U),F.contentWindow&&He.addWindow(F.contentWindow),ne.observeAttachShadow(F)},onStylesheetLoad:(F,U)=>{yt.attachLinkElement(F,U)},onBlockedImageLoad:(F,U,{width:Z,height:A})=>{Bt({adds:[],removes:[],texts:[],attributes:[{id:U.id,attributes:{style:{width:`${Z}px`,height:`${A}px`}}}]})},keepIframeSrcFn:T,ignoreCSSAttributes:it});if(!et)return console.warn("Failed to snapshot the document");H({type:C.FullSnapshot,data:{node:et,initialOffset:Qr(window)}}),Nt.forEach(F=>F.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&yt.adoptStyleSheets(document.adoptedStyleSheets,nt.getId(document))};Me=je;try{const O=[],et=U=>{var Z;return R(Wa)({onMutation:rt,mutationCb:Bt,mousemoveCb:(A,qe)=>H({type:C.IncrementalSnapshot,data:{source:qe,positions:A}}),mouseInteractionCb:A=>H({type:C.IncrementalSnapshot,data:{source:I.MouseInteraction,...A}}),scrollCb:$n,viewportResizeCb:A=>H({type:C.IncrementalSnapshot,data:{source:I.ViewportResize,...A}}),inputCb:A=>H({type:C.IncrementalSnapshot,data:{source:I.Input,...A}}),mediaInteractionCb:A=>H({type:C.IncrementalSnapshot,data:{source:I.MediaInteraction,...A}}),styleSheetRuleCb:A=>H({type:C.IncrementalSnapshot,data:{source:I.StyleSheetRule,...A}}),styleDeclarationCb:A=>H({type:C.IncrementalSnapshot,data:{source:I.StyleDeclaration,...A}}),canvasMutationCb:Xs,fontCb:A=>H({type:C.IncrementalSnapshot,data:{source:I.Font,...A}}),selectionCb:A=>{H({type:C.IncrementalSnapshot,data:{source:I.Selection,...A}})},customElementCb:A=>{H({type:C.IncrementalSnapshot,data:{source:I.CustomElement,...A}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,maskInputOptions:Be,inlineStylesheet:m,sampling:f,recordDOM:g,recordCanvas:E,inlineImages:K,userTriggeredOnInput:G,collectFonts:Q,doc:U,maskAttributeFn:w,maskInputFn:M,maskTextFn:P,keepIframeSrcFn:T,blockSelector:o,unblockSelector:i,slimDOMOptions:Ue,dataURLOptions:j,mirror:nt,iframeManager:gt,stylesheetManager:yt,shadowDomManager:ne,processedNodeManager:$e,canvasManager:He,ignoreCSSAttributes:it,plugins:((Z=V==null?void 0:V.filter(A=>A.observer))==null?void 0:Z.map(A=>({observer:A.observer,options:A.options,callback:qe=>H({type:C.Plugin,data:{plugin:A.name,payload:qe}})})))||[]},{})};gt.addLoadListener(U=>{try{O.push(et(U.contentDocument))}catch(Z){console.warn(Z)}});const F=()=>{je(),O.push(et(document))};return document.readyState==="interactive"||document.readyState==="complete"?F():(O.push(J("DOMContentLoaded",()=>{H({type:C.DomContentLoaded,data:{}}),$==="DOMContentLoaded"&&F()})),O.push(J("load",()=>{H({type:C.Load,data:{}}),$==="load"&&F()},window))),()=>{O.forEach(U=>U()),$e.destroy(),Me=void 0,Ma()}}catch(O){console.warn(O)}}function Ya(t){if(!Me)throw new Error("please take full snapshot after start recording");Me(t)}ut.mirror=nt,ut.takeFullSnapshot=Ya;function Ga(t,e){try{return t?t(e):new Ss}catch{return console.warn("Unable to initialize CanvasManager"),new Ss}}var ks;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(ks||(ks={}));const Xa=3,Qa=5;function Cn(t){return t>9999999999?t:t*1e3}function Tn(t){return t>9999999999?t/1e3:t}function Zt(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:C.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ke(e,10,1e3)}}),e.category==="console")))}const Za="button,a";function bs(t){return t.closest(Za)||t}function _s(t){const e=ws(t);return!e||!(e instanceof Element)?e:bs(e)}function ws(t){return tc(t)?t.target:t}function tc(t){return typeof t=="object"&&!!t&&"target"in t}let pt;function ec(t){return pt||(pt=[],nc()),pt.push(t),()=>{const e=pt?pt.indexOf(t):-1;e>-1&&pt.splice(e,1)}}function nc(){Ut(L,"open",function(t){return function(...e){if(pt)try{pt.forEach(n=>n())}catch{}return t.apply(L,e)}})}const rc=new Set([I.Mutation,I.StyleSheetRule,I.StyleDeclaration,I.AdoptedStyleSheet,I.CanvasMutation,I.Selection,I.MediaInteraction]);function sc(t,e,n){t.handleClick(e,n)}class oc{constructor(e,n,r=Zt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=ec(()=>{this._lastMutation=Es()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,n){if(ac(n,this._ignoreSelector)||!cc(e))return;const r={timestamp:Tn(e.timestamp),clickBreadcrumb:e,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Tn(e)}registerScroll(e=Date.now()){this._lastScroll=Tn(e)}registerClick(e){const n=bs(e);this._handleMultiClick(n)}_handleMultiClick(e){this._getClicks(e).forEach(n=>{n.clickCount++})}_getClicks(e){return this._clicks.filter(n=>n.node===e)}_checkClicks(){const e=[],n=Es();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&e.push(r)});for(const r of e){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const n=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,s=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=e;if(o){const c=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,l=c<this._timeout*1e3?"mutation":"timeout",u={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:L.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:l,clickCount:i||1}};this._addBreadcrumbEvent(n,u);return}if(i>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:L.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=qt(()=>this._checkClicks(),1e3)}}const ic=["A","BUTTON","INPUT"];function ac(t,e){return!!(!ic.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function cc(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function Es(){return Date.now()/1e3}function lc(t,e){try{if(!uc(e))return;const{source:n}=e.data;if(rc.has(n)&&t.registerMutation(e.timestamp),n===I.Scroll&&t.registerScroll(e.timestamp),dc(e)){const{type:r,id:s}=e.data,o=ut.mirror.getNode(s);o instanceof HTMLElement&&r===Y.Click&&t.registerClick(o)}}catch{}}function uc(t){return t.type===Xa}function dc(t){return t.data.source===I.MouseInteraction}function ot(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var xn=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(xn||{});const hc=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function pc(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(hc.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),e[r]=t[n]}return e}const mc=t=>e=>{if(!t.isEnabled())return;const n=fc(e);if(!n)return;const r=e.name==="click",s=r?e.event:void 0;r&&t.clickDetector&&s!=null&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&sc(t.clickDetector,n,_s(e.event)),Zt(t,n)};function Is(t,e){const n=ut.mirror.getId(t),r=n&&ut.mirror.getNode(n),s=r&&ut.mirror.getMeta(r),o=s&&gc(s)?s:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===xn.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:pc(o.attributes)}}:{}}}function fc(t){const{target:e,message:n}=yc(t);return ot({category:`ui.${t.name}`,...Is(e,n)})}function yc(t){const e=t.name==="click";let n,r=null;try{r=e?_s(t.event):ws(t.event),n=Zn(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function gc(t){return t.type===xn.Element}function Sc(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=vc(e);n&&Zt(t,n)}function vc(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=t;if(!i||kc(i)||!o)return null;const a=e||r||s,c=o.length===1;if(!a&&c)return null;const l=Zn(i,{maxStringLength:200})||"<unknown>",u=Is(i,l);return ot({category:"ui.keyDown",message:l,data:{...u.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function kc(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const bc={resource:Cc,paint:Ec,navigation:Ic};function Mn(t,e){return({metric:n})=>void e.replayPerformanceEntries.push(t(n))}function _c(t){return t.map(wc).filter(Boolean)}function wc(t){const e=bc[t.entryType];return e?e(t):null}function Ft(t){return((co()||L.performance.timeOrigin)+t)/1e3}function Ec(t){const{duration:e,entryType:n,name:r,startTime:s}=t,o=Ft(s);return{type:n,name:r,start:o,end:o+e,data:void 0}}function Ic(t){const{entryType:e,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:m,type:y}=t;return s===0?null:{type:`${e}.${y}`,start:Ft(p),end:Ft(o),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}function Cc(t){const{entryType:e,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Ft(o),end:Ft(s),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function Tc(t){const e=t.entries[t.entries.length-1],n=e!=null&&e.element?[e.element]:void 0;return Rn(t,"largest-contentful-paint",n)}function xc(t){return t.sources!==void 0}function Mc(t){const e=[],n=[];for(const r of t.entries)if(xc(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const i=ut.mirror.getId(o.node);i&&s.push(i)}e.push({value:r.value,nodeIds:s.length?s:void 0})}return Rn(t,"cumulative-layout-shift",n,e)}function Rc(t){const e=t.entries[t.entries.length-1],n=e!=null&&e.target?[e.target]:void 0;return Rn(t,"interaction-to-next-paint",n)}function Rn(t,e,n,r){const s=t.value,o=t.rating,i=Ft(s);return{type:"web-vital",name:e,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(a=>ut.mirror.getId(a)):void 0,attributions:r}}}function Oc(t){function e(s){t.performanceEntries.includes(s)||t.performanceEntries.push(s)}function n({entries:s}){s.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Ir(s,n))}),r.push(wr(Mn(Tc,t)),_r(Mn(Mc,t)),Er(Mn(Rc,t))),()=>{r.forEach(s=>s())}}const k=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ac='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Dc(){const t=new Blob([Ac]);return URL.createObjectURL(t)}const Cs=["log","warn","error"],Re="[Replay] ";function On(t,e="info"){dr({category:"console",data:{logger:"replay"},level:e,message:`${Re}${t}`},{level:e})}function Lc(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{t=!!r.captureExceptions,e=!!r.traceInternals}};return k?(Cs.forEach(r=>{n[r]=(...s)=>{st[r](Re,...s),e&&On(s.join(""),hr(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),st.error(Re,r),t?uo(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):e&&On(r,"error")},n.infoTick=(...r)=>{st.log(Re,...r),e&&setTimeout(()=>On(r[0]),0)}):Cs.forEach(r=>{n[r]=()=>{}}),n}const b=Lc();class An extends Error{constructor(){super(`Event buffer exceeded maximum size of ${pn}.`)}}class Ts{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const n=JSON.stringify(e).length;if(this._totalSize+=n,this._totalSize>pn)throw new An;this.events.push(e)}finish(){return new Promise(e=>{const n=this.events;this.clear(),e(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(n=>n.timestamp).sort()[0];return e?Cn(e):null}}class Nc{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():(k&&b.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{k&&b.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){k&&b.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===e&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){k&&b.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:n})})}_getAndIncrementId(){return this._id++}}class Fc{constructor(e){this._worker=new Nc(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const n=Cn(e.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>pn?Promise.reject(new An):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{k&&b.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Pc{constructor(e){this._fallback=new Ts,this._compression=new Fc(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){k&&b.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const o of e)s.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(o){k&&b.exception(o,"Failed to add events when switching buffers.")}}}function Bc({useCompression:t,workerUrl:e}){if(t&&window.Worker){const n=Uc(e);if(n)return n}return k&&b.log("Using simple buffer"),new Ts}function Uc(t){try{const e=t||zc();if(!e)return;k&&b.log(`Using compression worker${t?` from ${t}`:""}`);const n=new Worker(e);return new Pc(n)}catch(e){k&&b.exception(e,"Failed to create compression worker")}}function zc(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Dc():""}function Dn(){try{return"sessionStorage"in L&&!!L.sessionStorage}catch{return!1}}function Wc(t){$c(),t.session=void 0}function $c(){if(Dn())try{L.sessionStorage.removeItem(dn)}catch{}}function xs(t){return t===void 0?!1:Math.random()<t}function Oe(t){if(Dn())try{L.sessionStorage.setItem(dn,JSON.stringify(t))}catch{}}function Ms(t){const e=Date.now(),n=t.id||Jn(),r=t.started||e,s=t.lastActivity||e,o=t.segmentId||0,i=t.sampled,a=t.previousSessionId,c=t.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:i,previousSessionId:a,dirty:c}}function Hc(t,e){return xs(t)?"session":e?"buffer":!1}function Rs({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const s=Hc(t,e),o=Ms({sampled:s,previousSessionId:r});return n&&Oe(o),o}function jc(){if(!Dn())return null;try{const t=L.sessionStorage.getItem(dn);if(!t)return null;const e=JSON.parse(t);return k&&b.infoTick("Loading existing session"),Ms(e)}catch{return null}}function Ln(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function Os(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ln(t.started,e,r)||Ln(t.lastActivity,n,r)}function As(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!Os(t,{sessionIdleExpire:e,maxReplayDuration:n})||t.sampled==="buffer"&&t.segmentId===0)}function Nn({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const s=r.stickySession&&jc();return s?As(s,{sessionIdleExpire:t,maxReplayDuration:e})?(k&&b.infoTick("Session in sessionStorage is expired, creating new one..."),Rs(r,{previousSessionId:s.id})):s:(k&&b.infoTick("Creating new session"),Rs(r,{previousSessionId:n}))}function qc(t){return t.type===C.Custom}function Fn(t,e,n){return Ls(t,e)?(Ds(t,e,n),!0):!1}function Vc(t,e,n){return Ls(t,e)?Ds(t,e,n):Promise.resolve(null)}async function Ds(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const s=t.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=t.getOptions(),i=Kc(e,o.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(o){const i=o&&o instanceof An,a=i?"addEventSizeExceeded":"addEvent",c=ct();if(c){const l=i?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(l,"replay")}if(i&&s)return r.clear(),r.waitForCheckout=!0,null;t.handleException(o),await t.stop({reason:a})}}function Ls(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Cn(e.timestamp);return n+t.timeouts.sessionIdlePause<Date.now()?!1:n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(k&&b.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Kc(t,e){try{if(typeof e=="function"&&qc(t))return e(t)}catch(n){return k&&b.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}function Pn(t){return!t.type}function Bn(t){return t.type==="transaction"}function Jc(t){return t.type==="replay_event"}function Ns(t){return t.type==="feedback"}function Yc(t){return(e,n)=>{if(!t.isEnabled()||!Pn(e)&&!Bn(e))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(Bn(e)){Gc(t,e);return}Xc(t,e)}}}function Gc(t,e){var n,r;const s=t.getContext();(r=(n=e.contexts)==null?void 0:n.trace)!=null&&r.trace_id&&s.traceIds.size<100&&s.traceIds.add(e.contexts.trace.trace_id)}function Xc(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();typeof r=="function"&&!r(e)||qt(async()=>{try{await t.sendBufferedReplayOrFlush()}catch(s){t.handleException(s)}})}function Qc(t){return e=>{!t.isEnabled()||!Pn(e)||Zc(t,e)}}function Zc(t,e){var n,r,s;const o=(s=(r=(n=e.exception)==null?void 0:n.values)==null?void 0:r[0])==null?void 0:s.value;if(typeof o=="string"&&(o.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||o.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const i=ot({category:"replay.hydrate-error",data:{url:io()}});Zt(t,i)}}function tl(t){const e=ct();e&&e.on("beforeAddBreadcrumb",n=>el(t,n))}function el(t,e){if(!t.isEnabled()||!Fs(e))return;const n=nl(e);n&&Zt(t,n)}function nl(t){return!Fs(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:t.category==="console"?rl(t):ot(t)}function rl(t){var e;const n=(e=t.data)==null?void 0:e.arguments;if(!Array.isArray(n)||n.length===0)return ot(t);let r=!1;const s=n.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>ge?(r=!0,`${o.slice(0,ge)}\u2026`):o;if(typeof o=="object")try{const i=Ke(o,7);return JSON.stringify(i).length>ge?(r=!0,`${JSON.stringify(i,null,2).slice(0,ge)}\u2026`):i}catch{}return o});return ot({...t,data:{...t.data,arguments:s,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Fs(t){return!!t.category}function sl(t,e){var n,r,s;return t.type||!((r=(n=t.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((s=e.originalException)!=null&&s.__rrweb__)}function Ps(){const t=Qn().getPropagationContext().dsc;t&&delete t.replay_id;const e=Gn();if(e){const n=ro(e);delete n.replay_id}}function ol(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:C.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function il(t,e){return t.recordingMode!=="buffer"||e.message===hn||!e.exception||e.type?!1:xs(t.getOptions().errorSampleRate)}function al(t){return Object.assign((e,n)=>{var r;if(!t.isEnabled()||t.isPaused())return e;if(Jc(e))return delete e.breadcrumbs,e;if(!Pn(e)&&!Bn(e)&&!Ns(e))return e;if(!t.checkAndHandleExpiredSession())return Ps(),e;if(Ns(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),ol(t,e),e;if(sl(e,n)&&!t.getOptions()._experiments.captureExceptions)return k&&b.log("Ignoring error from rrweb internals",e),null;const s=il(t,e);if((s||t.recordingMode==="session")&&(e.tags={...e.tags,replayId:t.getSessionId()}),s&&t.recordingMode==="buffer"&&((r=t.session)==null?void 0:r.sampled)==="buffer"){const o=t.session;o.dirty=!0,t.getOptions().stickySession&&Oe(o)}return e},{id:"Replay"})}function Ae(t,e){return e.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=t.throttledAddEvent({type:C.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function cl(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function ll(t){return e=>{if(!t.isEnabled())return;const n=cl(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(Ae(t,[n]),!1)))}}function ul(t,e){return k&&t.getOptions()._experiments.traceInternals?!1:lr(e,ct())}function Bs(t,e){t.isEnabled()&&e!==null&&(ul(t,e.name)||t.addUpdate(()=>(Ae(t,[e]),!0)))}function De(t){if(!t)return;const e=new TextEncoder;try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Dr(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function Us(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Le(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function zs(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:s,data:{method:o,statusCode:i,request:a,response:c}}}function te(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function mt(t,e,n){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:s,warnings:o}=dl(n);return r.body=s,o!=null&&o.length&&(r._meta={warnings:o}),r}function Un(t,e){return Object.entries(t).reduce((n,[r,s])=>{const o=r.toLowerCase();return e.includes(o)&&t[r]&&(n[o]=s),n},{})}function dl(t){if(!t||typeof t!="string")return{body:t};const e=t.length>Nr,n=hl(t);if(e){const r=t.slice(0,Nr);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function hl(t){const e=t[0],n=t[t.length-1];return e==="["&&n==="]"||e==="{"&&n==="}"}function Ne(t,e){const n=pl(t);return lo(n,e)}function pl(t,e=L.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(L.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function ml(t,e,n){try{const r=await yl(t,e,n),s=zs("resource.fetch",r);Bs(n.replay,s)}catch(r){k&&b.exception(r,"Failed to capture fetch breadcrumb")}}function fl(t,e){const{input:n,response:r}=e,s=n?un(n):void 0,o=De(s),i=r?Us(r.headers.get("content-length")):void 0;o!==void 0&&(t.data.request_body_size=o),i!==void 0&&(t.data.response_body_size=i)}async function yl(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=e,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=t.data,d=Ne(i,n.networkDetailAllowUrls)&&!Ne(i,n.networkDetailDenyUrls),h=d?gl(n,e.input,l):te(l),p=await Sl(d,n,e.response,u);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:h,response:p}}function gl({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const s=n?bl(n,e):{};if(!t)return mt(s,r,void 0);const o=un(n),[i,a]=ln(o,b),c=mt(s,r,i);return a?Le(c,a):c}async function Sl(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,s){if(!t&&s!==void 0)return te(s);const o=r?Ws(r.headers,n):{};if(!r||!e&&s!==void 0)return mt(o,s,void 0);const[i,a]=await kl(r),c=vl(i,{networkCaptureBodies:e,responseBodySize:s,captureDetails:t,headers:o});return a?Le(c,a):c}function vl(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:s}){try{const o=t!=null&&t.length&&n===void 0?De(t):n;return r?e?mt(s,o,t):mt(s,o,void 0):te(o)}catch(o){return k&&b.exception(o,"Failed to serialize response body"),mt(s,n,void 0)}}async function kl(t){const e=_l(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await wl(e)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(k&&b.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(k&&b.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Ws(t,e){const n={};return e.forEach(r=>{t.get(r)&&(n[r]=t.get(r))}),n}function bl(t,e){return t.length===1&&typeof t[0]!="string"?$s(t[0],e):t.length===2?$s(t[1],e):{}}function $s(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Ws(n,e):Array.isArray(n)?{}:Un(n,e):{}}function _l(t){try{return t.clone()}catch(e){k&&b.exception(e,"Failed to clone response body")}}function wl(t){return new Promise((e,n)=>{const r=qt(()=>n(new Error("Timeout while trying to read response body")),500);El(t).then(s=>e(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function El(t){return await t.text()}async function Il(t,e,n){try{const r=Tl(t,e,n),s=zs("resource.xhr",r);Bs(n.replay,s)}catch(r){k&&b.exception(r,"Failed to capture xhr breadcrumb")}}function Cl(t,e){const{xhr:n,input:r}=e;if(!n)return;const s=De(r),o=n.getResponseHeader("content-length")?Us(n.getResponseHeader("content-length")):Rl(n.response,n.responseType);s!==void 0&&(t.data.request_body_size=s),o!==void 0&&(t.data.response_body_size=o)}function Tl(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=e,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:h}=t.data;if(!c)return null;if(!a||!Ne(c,n.networkDetailAllowUrls)||Ne(c,n.networkDetailDenyUrls)){const S=te(d),f=te(h);return{startTimestamp:s,endTimestamp:o,url:c,method:l,statusCode:u,request:S,response:f}}const p=a[Ct],m=p?Un(p.request_headers,n.networkRequestHeaders):{},y=Un(Lr(a),n.networkResponseHeaders),[_,v]=n.networkCaptureBodies?ln(i,b):[void 0],[w,M]=n.networkCaptureBodies?xl(a):[void 0],P=mt(m,d,_),B=mt(y,h,w);return{startTimestamp:s,endTimestamp:o,url:c,method:l,statusCode:u,request:v?Le(P,v):P,response:M?Le(B,M):B}}function xl(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return Ml(t.response,t.responseType)}catch(n){e.push(n)}return k&&b.warn("Failed to get xhr response body",...e),[void 0]}function Ml(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return k&&b.exception(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return k&&b.log("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Rl(t,e){try{const n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return De(n)}catch{return}}function Ol(t){const e=ct();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};e&&e.on("beforeAddBreadcrumb",(c,l)=>Al(a,c,l))}catch{}}function Al(t,e,n){if(e.data)try{Dl(e)&&Nl(n)&&(Cl(e,n),Il(e,n,t)),Ll(e)&&Fl(n)&&(fl(e,n),ml(e,n,t))}catch(r){k&&b.exception(r,"Error when enriching network breadcrumb")}}function Dl(t){return t.category==="xhr"}function Ll(t){return t.category==="fetch"}function Nl(t){return t==null?void 0:t.xhr}function Fl(t){return t==null?void 0:t.response}function Pl(t){const e=ct();Mr(mc(t)),Or(ll(t)),tl(t),Ol(t);const n=al(t);so(n),e&&(e.on("beforeSendEvent",Qc(t)),e.on("afterSendEvent",Yc(t)),e.on("createDsc",r=>{const s=t.getSessionId();s&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(r.replay_id=s)}),e.on("spanStart",r=>{t.lastActiveSpan=r}),e.on("spanEnd",r=>{t.lastActiveSpan=r}),e.on("beforeSendFeedback",async(r,s)=>{var o;const i=t.getSessionId();s!=null&&s.includeReplay&&t.isEnabled()&&i&&(o=r.contexts)!=null&&o.feedback&&(r.contexts.feedback.source==="api"&&await t.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),e.on("openFeedbackWidget",async()=>{await t.sendBufferedReplayOrFlush()}))}async function Bl(t){try{return Promise.all(Ae(t,[Ul(L.performance.memory)]))}catch{return[]}}function Ul(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function zl(t,e,n){return Oo(t,e,{...n,setTimeoutImpl:qt})}const ft=dt.navigator;function Wl(){return/iPhone|iPad|iPod/i.test((ft==null?void 0:ft.userAgent)??"")||/Macintosh/i.test((ft==null?void 0:ft.userAgent)??"")&&ft!=null&&ft.maxTouchPoints&&(ft==null?void 0:ft.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function $l(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession()){k&&b.warn("Received replay event after session expired.");return}const s=r||!e;e=!0,t.clickDetector&&lc(t.clickDetector,n),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&s&&t.setInitialState(),!Fn(t,n,s))return!0;if(!s)return!1;const o=t.session;if(jl(t,s),t.recordingMode==="buffer"&&o&&t.eventBuffer&&!o.dirty){const i=t.eventBuffer.getEarliestTimestamp();i&&(k&&b.log(`Updating session start time to earliest event in buffer to ${new Date(i)}`),o.started=i,t.getOptions().stickySession&&Oe(o))}return o!=null&&o.previousSessionId||t.recordingMode==="session"&&t.flush(),!0})}}function Hl(t){const e=t.getOptions();return{type:C.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function jl(t,e){!e||!t.session||t.session.segmentId!==0||Fn(t,Hl(t),!1)}function ql(t){if(!t)return null;try{return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}catch{return null}}function Vl(t,e,n,r){return er(sr(t,rr(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function Kl({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}
|
|
13
|
-
`;if(typeof t=="string")n=`${r}${t}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+t.length),n.set(s),n.set(t,s.length)}return n}async function Jl({client:t,scope:e,replayId:n,event:r}){const s=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,o={event_id:n,integrations:s};t.emit("preprocessEvent",r,o);const i=await ao(t.getOptions(),r,o,e,t,qn());if(!i)return null;t.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const a=t.getSdkMetadata(),{name:c,version:l,settings:u}=(a==null?void 0:a.sdk)||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},i}async function Yl({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=Kl({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=ct(),h=Qn(),p=d==null?void 0:d.getTransport(),m=d==null?void 0:d.getDsn();if(!d||!p||!m||!o.sampled)return Promise.resolve({});const y={type:Ii,replay_start_timestamp:u/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:e,segment_id:n,replay_type:o.sampled},_=await Jl({scope:h,client:d,replayId:e,event:y});if(!_)return d.recordDroppedEvent("event_processor","replay"),k&&b.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete _.sdkProcessingMetadata;const v=Vl(_,i,m,d.getOptions().tunnel);let w;try{w=await p.send(v)}catch(P){const B=new Error(hn);try{B.cause=P}catch{}throw B}const M=ar({},w);if(ir(M,"replay"))throw new zn(M);if(typeof w.statusCode=="number"&&(w.statusCode<200||w.statusCode>=300))throw new Hs(w.statusCode);return w}class Hs extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class zn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class js extends Error{constructor(){super("Session is too long, not sending replay")}}async function qs(t,e={count:0,interval:Oi}){const{recordingData:n,onError:r}=t;if(n.length)try{return await Yl(t),!0}catch(s){if(s instanceof Hs||s instanceof zn)throw s;if(oo("Replays",{_retryCount:e.count}),r&&r(s),e.count>=Ai){const o=new Error(`${hn} - max retries exceeded`);try{o.cause=s}catch{}throw o}return e.interval*=++e.count,new Promise((o,i)=>{qt(async()=>{try{await qs(t,e),o(!0)}catch(a){i(a)}},e.interval)})}}const Vs="__THROTTLED",Gl="__SKIPPED";function Xl(t,e,n){const r=new Map,s=a=>{const c=a-n;r.forEach((l,u)=>{u<c&&r.delete(u)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=e){const u=i;return i=!0,u?Gl:Vs}i=!1;const l=r.get(c)||0;return r.set(c,l+1),t(...a)}}class Ql{constructor({options:e,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Ci,sessionIdleExpire:Ti},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=e,this._debouncedFlush=zl(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Xl((i,a)=>Vc(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(Di,r),timeout:r,scrollTimeout:Li,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new oc(this,o)),k){const i=e._experiments;b.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}this._handleVisibilityChange=()=>{L.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const i=ot({category:"ui.blur"});this._doChangeToBackgroundTasks(i)},this._handleWindowFocus=()=>{const i=ot({category:"ui.focus"});this._doChangeToForegroundTasks(i)},this._handleKeyboardEvent=i=>{Sc(this,i)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){k&&b.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(e),!this.session){k&&b.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",k&&b.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){k&&b.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){k&&b.log("Buffering is in progress, call `flush()` to save the replay");return}k&&b.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Nn({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){k&&b.log("Buffering is in progress, call `flush()` to save the replay");return}k&&b.infoTick("Starting replay in buffer mode");const e=Nn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=ut({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:Ri}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:$l(this),...Wl(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:n}={}){var r;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{k&&b.log(`Stopping Replay${n?` triggered by ${n}`:""}`),Ps(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),(r=this.eventBuffer)==null||r.destroy(),this.eventBuffer=null,Wc(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),k&&b.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),k&&b.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();k&&b.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!e||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const n=e();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){var n,r;if(!(e&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ln(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${L.location.pathname}${L.location.hash}${L.location.search}`,n=`${L.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(e,n){const r=this._throttledAddEvent(e,n);if(r===Vs){const s=ot({category:"replay.throttled"});this.addUpdate(()=>!Fn(this,{type:Qa,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastActiveSpan||Gn(),n=e&&eo(e),r=(n&&Xn(n).data||{})[no];if(!(!n||!r||!["route","custom"].includes(r)))return Xn(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Bc({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const n=this._options.errorSampleRate>0,r=Nn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return As(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{L.document.addEventListener("visibilitychange",this._handleVisibilityChange),L.addEventListener("blur",this._handleWindowBlur),L.addEventListener("focus",this._handleWindowFocus),L.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Pl(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=Oc(this)}_removeListeners(){try{L.document.removeEventListener("visibilitychange",this._handleVisibilityChange),L.removeEventListener("blur",this._handleWindowBlur),L.removeEventListener("focus",this._handleWindowFocus),L.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||Os(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){k&&b.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:C.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=_c(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;e=e.filter(r=>r.start>=n)}return Promise.all(Ae(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:n}=this;if(!e||!n||this._requiresManualStart||e.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){var e;const n=this.getSessionId();if(!this.session||!this.eventBuffer||!n){k&&b.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((e=this.eventBuffer)!=null&&e.hasEvents)&&(await Bl(this),!!this.eventBuffer&&n===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new js;const s=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await qs({replayId:n,recordingData:i,segmentId:o,eventContext:s,session:this.session,timestamp:r,onError:a=>this.handleException(a)})}catch(r){this.handleException(r),this.stop({reason:"sendReplay"});const s=ct();if(s){let o;r instanceof zn?o="ratelimit_backoff":r instanceof js?o="invalid":o="send_error",s.recordDroppedEvent(o,"replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){k&&b.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,r=Date.now()-n;this._debouncedFlush.cancel();const s=r<this._options.minReplayDuration,o=r>this._options.maxReplayDuration+5e3;if(s||o){k&&b.log(`Session duration (${Math.floor(r/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const i=this.eventBuffer;i&&this.session.segmentId===0&&!i.hasCheckout&&k&&b.log("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(c){this.handleException(c)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Oe(this.session)}_onMutationHandler(e){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&e.some(a=>{const c=ql(a.target),l=n.join(",");return c==null?void 0:c.matches(l)}))return!1;const r=e.length,s=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=s&&r>s;if(r>o||i){const a=ot({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(a)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function ee(t,e){return[...t,...e].join(",")}function Zl({mask:t,unmask:e,block:n,unblock:r,ignore:s}){const o=["base","iframe[srcdoc]:not([src])"],i=ee(t,[".sentry-mask","[data-sentry-mask]"]),a=ee(e,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:ee(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:ee(r,[]),ignoreSelector:ee(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function tu({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&t.matches(s.unmaskTextSelector)?o:n.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Ks='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',eu=["content-length","content-type","accept"],nu=Symbol.for("sentry__originalRequestBody");let Js=!1,Ys=!1;function ru(){if(typeof Request>"u"||Ys)return;const t=Request;try{const e=function(n,r){const s=new t(n,r);return(r==null?void 0:r.body)!=null&&(s[nu]=r.body),s};e.prototype=t.prototype,dt.Request=e,Ys=!0}catch{}}const su=(t=>new ou(t));class ou{constructor({flushMinDelay:e=xi,flushMaxDelay:n=Mi,minReplayDuration:r=Ni,maxReplayDuration:s=Fr,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:h=750,mutationLimit:p=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:v=[],networkCaptureBodies:w=!0,networkRequestHeaders:M=[],networkResponseHeaders:P=[],mask:B=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:f=[],block:j=[],unblock:W=[],ignore:g=[],maskFn:E,beforeAddRecordingEvent:D,beforeErrorSampling:$,onError:G,attachRawBodyFromRequest:Q=!1}={}){this.name="Replay";const K=Zl({mask:B,unmask:f,block:j,unblock:W,ignore:g});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(V,T,it)=>tu({maskAttributes:S,maskAllText:l,privacyOptions:K,key:V,value:T,el:it}),...K,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:V=>{try{V.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:n,minReplayDuration:Math.min(r,Fi),maxReplayDuration:Math.min(s,Fr),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:h,mutationLimit:p,slowClickTimeout:m,slowClickIgnoreSelectors:y,networkDetailAllowUrls:_,networkDetailDenyUrls:v,networkCaptureBodies:w,networkRequestHeaders:Gs(M),networkResponseHeaders:Gs(P),beforeAddRecordingEvent:D,beforeErrorSampling:$,onError:G,attachRawBodyFromRequest:Q,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ks}`:Ks,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Qe())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Js}set _isInitialized(e){Js=e}afterAllSetup(e){!Qe()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&ru(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){var e;if((e=this._replay)!=null&&e.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const n=iu(this._initialOptions,e);this._replay=new Ql({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const n=e.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function iu(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...t},s=Yn(n.replaysSessionSampleRate),o=Yn(n.replaysOnErrorSampleRate);return s==null&&o==null&&Vn(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function Gs(t){return[...eu,...t.map(e=>e.toLowerCase())]}function au(){const t=ct();return t==null?void 0:t.getIntegrationByName("Replay")}export{St as A,_r as B,wr as C,_t as D,Ir as E,ii as F,Wt as G,wt as H,Co as I,ce as J,Er as K,hi as L,Ar as M,ki as N,Mr as O,bi as P,Or as Q,Fo as R,Ct as S,lr as T,To as U,ln as V,x as W,un as X,Lr as Y,go as Z,su as _,oe as a,rr as b,sr as c,er as d,So as e,nr as f,au as g,po as h,bo as i,ir as j,ho as k,vo as l,ie as m,hr as n,dr as o,or as p,xo as q,cr as r,fo as s,kt as t,ar as u,Io as v,Ge as w,No as x,Qe as y,Bo as z};
|