@dcl/blog-site 0.3.0 → 0.3.1-24101748563.commit-5dd23bd
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/assets/{QueryClientProvider-DVt1z-lo.js → QueryClientProvider-D8JGfTJZ.js} +1 -1
- package/assets/{SignInRedirect-DQ2EXIlf.js → SignInRedirect-B22Or21E.js} +3 -3
- package/assets/{X-_bf2yze4.js → X-BO8TUwpx.js} +1 -1
- package/assets/{__federation_expose_App-DpSY-Y9d.js → __federation_expose_App-CWaPdzVQ.js} +1 -1
- package/assets/{__federation_fn_import-D82-s3kA.js → __federation_fn_import-BZzr9p5I.js} +1 -1
- package/assets/__federation_shared_@dcl/{hooks-35itWugh.js → hooks-XkzV3bRk.js} +3 -3
- package/assets/__federation_shared_@emotion/react-BhDT4KPC.js +1 -0
- package/assets/__federation_shared_@emotion/{styled-CER0OT-8.js → styled-BVF-ZKxF.js} +1 -1
- package/assets/{__federation_shared_decentraland-ui2-qV0BHWTj.js → __federation_shared_decentraland-ui2-CXg36SD8.js} +4 -4
- package/assets/{__federation_shared_react-redux-7pAtHZvO.js → __federation_shared_react-redux-NgrasIXv.js} +1 -1
- package/assets/{__federation_shared_react-router-dom-DM3U0-DJ.js → __federation_shared_react-router-dom-l5xPnLcY.js} +1 -1
- package/assets/{__federation_shared_viem-B7de3aIh.js → __federation_shared_viem-BVxLUNAk.js} +1 -1
- package/assets/{__federation_shared_wagmi-B-FL62eC.js → __federation_shared_wagmi-AT48iUUQ.js} +1 -1
- package/assets/{add-D95ShjVd.js → add-DsbBlWlM.js} +1 -1
- package/assets/{all-wallets-BY6r5fcR.js → all-wallets-B2MkoXVx.js} +1 -1
- package/assets/{app-store-SmbPBgEb.js → app-store-CjTy6Aou.js} +1 -1
- package/assets/{apple-D8pqe3de.js → apple-C42DI4gz.js} +1 -1
- package/assets/{arrow-bottom-circle-OyHlN-U-.js → arrow-bottom-circle-CiqHtGRW.js} +1 -1
- package/assets/{arrow-bottom-DQy0lFo0.js → arrow-bottom-pdzlDD-Z.js} +1 -1
- package/assets/{arrow-left-CXPqeZRE.js → arrow-left-08APJrdW.js} +1 -1
- package/assets/{arrow-right-BI45gebZ.js → arrow-right-DUgVHYNJ.js} +1 -1
- package/assets/{arrow-top-BxYGxPQg.js → arrow-top-Ca_tExYU.js} +1 -1
- package/assets/{auto-track-IXpT7xap.js → auto-track-WztB0WEY.js} +1 -1
- package/assets/{bank-DvWpLZQG.js → bank-x_nSAJBk.js} +1 -1
- package/assets/{basic-DENnvNSD.js → basic-BrMvAX6u.js} +1 -1
- package/assets/{biconomy-GzbQEJRq.js → biconomy-CYCfPY-1.js} +1 -1
- package/assets/{browser-COUlM8GK.js → browser-Dge4C11C.js} +1 -1
- package/assets/{card-DCZ4hxW7.js → card-CIoGdXXo.js} +1 -1
- package/assets/{ccip-DGW5U0-8.js → ccip-DuOQXVmH.js} +1 -1
- package/assets/{checkmark-C3MmlUGU.js → checkmark-BUTpQBAq.js} +1 -1
- package/assets/{checkmark-bold-BZz12uQW.js → checkmark-bold-wisdjxwy.js} +1 -1
- package/assets/{chevron-bottom-BITHvcvn.js → chevron-bottom-tgYS2nxV.js} +1 -1
- package/assets/{chevron-left-DLcgw6J3.js → chevron-left-CVi7nRwx.js} +1 -1
- package/assets/{chevron-right-CgvlwKH_.js → chevron-right-qhPosP7c.js} +1 -1
- package/assets/{chevron-top-E2kQk6Yb.js → chevron-top-DGNdu6kp.js} +1 -1
- package/assets/{chrome-store-IGBWJmfs.js → chrome-store-Cirv8vTS.js} +1 -1
- package/assets/{clock-Dnnqv_UX.js → clock-DusO0auP.js} +1 -1
- package/assets/{close-h_pw4dRD.js → close-BiCrbcWh.js} +1 -1
- package/assets/{coinPlaceholder-CpzdwguN.js → coinPlaceholder-Boe6JGgf.js} +1 -1
- package/assets/{compass-CLIqD2Io.js → compass-BtKHBveM.js} +1 -1
- package/assets/{controller-DOHoljGI.js → controller-CwvKDb2m.js} +2 -2
- package/assets/{copy-56eIYa9K.js → copy-D8aKsSJt.js} +1 -1
- package/assets/{core-iy2F1EJT.js → core-Bf1Copq6.js} +3 -3
- package/assets/{createBundlerClient-Cb3DWn31.js → createBundlerClient-DbsEHJ4Z.js} +1 -1
- package/assets/{createClient-BJ5w543s.js → createClient-CTGnCkcz.js} +1 -1
- package/assets/{cursor-DHAIalN2.js → cursor-DghXh_g_.js} +1 -1
- package/assets/{cursor-transparent-USINvuuv.js → cursor-transparent-B7SlxiQh.js} +1 -1
- package/assets/{decimals-CVjZGYo0.js → decimals-BsDfmgVP.js} +1 -1
- package/assets/{decimals-DIZDmdnI.js → decimals-D9AvtxfV.js} +1 -1
- package/assets/{desktop-Ck9zNNDL.js → desktop-Pzo63lfj.js} +1 -1
- package/assets/{detectExtension-DQNsMd7m.js → detectExtension-mP3NQwTG.js} +1 -1
- package/assets/{disconnect-B6rD3ARw.js → disconnect-BIV5nbxd.js} +1 -1
- package/assets/{discord-QyDy6H2Z.js → discord-nMOsPVZo.js} +1 -1
- package/assets/{emotion-react.browser.esm-BHtRLI5r.js → emotion-react.browser.esm-B33-U3sx.js} +1 -1
- package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-DxyPSsfO.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-DBOXbAB5.js} +1 -1
- package/assets/{encode-JOmK-dAM.js → encode-dCkbk3AQ.js} +2 -2
- package/assets/{engine-Cr6ElJJw.js → engine-r9qQuN5M.js} +1 -1
- package/assets/{estimate-gas-CMPxVjuF.js → estimate-gas-DZC98WAc.js} +3 -3
- package/assets/{estimate-l1-fee-B90S_dRF.js → estimate-l1-fee-BqktBe1N.js} +1 -1
- package/assets/{eth_getStorageAt-BzWA0XEw.js → eth_getStorageAt-2wC3xick.js} +1 -1
- package/assets/{etherscan-BSyc5b_s.js → etherscan-DwU0ZuSh.js} +1 -1
- package/assets/{exclamation-triangle-Cbq68j9M.js → exclamation-triangle-VqIj0jCQ.js} +1 -1
- package/assets/{extension-Ef7aJ2Fj.js → extension-mw9o_4yJ.js} +1 -1
- package/assets/{external-link-bVFEWzQf.js → external-link-BEb6h2zw.js} +1 -1
- package/assets/{extractIPFS-kNuMOSPp.js → extractIPFS-iuWdTU-T.js} +1 -1
- package/assets/{facebook-KWDQXnqW.js → facebook-CtNr4Jq4.js} +1 -1
- package/assets/{farcaster-OZKU6ag9.js → farcaster-6ksO-rAC.js} +1 -1
- package/assets/{fee-data-BCMgs11D.js → fee-data-Bea8WIXf.js} +1 -1
- package/assets/{fetchTokenMetadata-BPHUGga-.js → fetchTokenMetadata-Dm2AtYtD.js} +2 -2
- package/assets/{filters-hVFxrfbM.js → filters-C_s4jUrY.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-mPW-S8xG.js → get-ecosystem-wallet-info-Bms1j5h1.js} +1 -1
- package/assets/{getBalance-B1iUU342.js → getBalance-a-vaaoih.js} +1 -1
- package/assets/{getInstalledModules-BnNuIBJw.js → getInstalledModules-D7sZQpkY.js} +1 -1
- package/assets/{getNFT-DF0DVjz_.js → getNFT-DcuzkXO1.js} +2 -2
- package/assets/{getNFT-BPxN7Ctt.js → getNFT-_r5vGHFJ.js} +1 -1
- package/assets/{github-BzQnkFuN.js → github-BmI1Y3Mq.js} +1 -1
- package/assets/{google-Gdkba30S.js → google-sF2KogsG.js} +1 -1
- package/assets/{help-circle-CzuLd4UT.js → help-circle-DSRpOqA6.js} +1 -1
- package/assets/{id--DiZoCMN.js → id-iHUbf3q0.js} +1 -1
- package/assets/{image-S2doqbWs.js → image--QGVCz5N.js} +1 -1
- package/assets/{in-app-wallet-calls-C1SY2oWN.js → in-app-wallet-calls-Bv1Gy8VE.js} +1 -1
- package/assets/{index-CfDhCkmV.js → index-0Lc22N7_.js} +1 -1
- package/assets/{index-CgkAqmHX.js → index-BdC5gkgz.js} +1 -1
- package/assets/{index-D7VWCQbE.js → index-BgKyyaW6.js} +1 -1
- package/assets/index-BjzJcZq6.js +1 -1
- package/assets/{index-C52TjtZ8.js → index-CFlkkEji.js} +1 -1
- package/assets/{index-1ERaFZsE.js → index-ChmbYVEY.js} +1 -1
- package/assets/{index-T692f3s9.js → index-DQX07DEN.js} +1 -1
- package/assets/{index-f2LDpGwT.js → index-DZJu62Lr.js} +3 -3
- package/assets/{index-CwwTvCG6.js → index-DdPrHjBq.js} +1 -1
- package/assets/index-Dot3cU3_.js +1 -0
- package/assets/index-Dy0yjznp.js +1 -1
- package/assets/{index-ww85HWCV.js → index-DyIEPOp8.js} +1 -1
- package/assets/{index-b9i0Ibxp.js → index-XySjXoqx.js} +2 -2
- package/assets/{index-Dg2V4ned.js → index-aTooKCfO.js} +1 -1
- package/assets/{index-CH2z5aZN.js → index-vgC1T0K1.js} +2 -2
- package/assets/{index.es-CzqZMQ08.js → index.es-B7NpsfKw.js} +3 -3
- package/assets/{index.es-D_Iyl52g.js → index.es-DsAmcMC8.js} +1 -1
- package/assets/{info-DEpm9K4l.js → info-Slo6gOQz.js} +1 -1
- package/assets/{info-circle-BFBSJV6L.js → info-circle-dZrAOaJf.js} +1 -1
- package/assets/jsx-runtime-DncYoG30.js +1 -1
- package/assets/{lightbulb-GZWMuOVt.js → lightbulb-B5ard69F.js} +1 -1
- package/assets/{localBatchGatewayRequest-Df9EBRM7.js → localBatchGatewayRequest-CRyf88kF.js} +1 -1
- package/assets/{mail-CUdb6dNj.js → mail-BFUvh_js.js} +1 -1
- package/assets/{mobile-BeQz2cn_.js → mobile-Brs476ln.js} +1 -1
- package/assets/{more-TsN-CR-t.js → more-t7x11Ar7.js} +1 -1
- package/assets/{network-placeholder-DwFC6B_7.js → network-placeholder-BzBIrmUa.js} +1 -1
- package/assets/{nftPlaceholder-CiT4A3-l.js → nftPlaceholder-D10ThqXV.js} +1 -1
- package/assets/{off-CUv-83kc.js → off-CO1Tb2Ra.js} +1 -1
- package/assets/{openzeppelin-BBJIIsPB.js → openzeppelin-CwvUITdR.js} +1 -1
- package/assets/{ownerOf-DYtTCeNU.js → ownerOf-DIbB8-Pu.js} +1 -1
- package/assets/{parseNft-Buclbv5Y.js → parseNft-DEGeShRT.js} +2 -2
- package/assets/{play-store-RQqRTPUT.js → play-store-tFVQP-h8.js} +1 -1
- package/assets/{plus-C7MITUNH.js → plus-CU1RvNcK.js} +1 -1
- package/assets/preload-helper-BLohficu.js +1 -0
- package/assets/{qr-code-CpEPSAYR.js → qr-code-DutEJOZ7.js} +1 -1
- package/assets/{qr-overlay-DryFOQCX.js → qr-overlay-DYDcnTaw.js} +1 -1
- package/assets/{recycle-horizontal-B1QKxNTd.js → recycle-horizontal-CFph0tAQ.js} +1 -1
- package/assets/{refresh-DdqLkUQx.js → refresh-Bnog49AD.js} +1 -1
- package/assets/remoteEntry.js +1 -1
- package/assets/{reown-logo-_t3NoThE.js → reown-logo-OCpE5bKV.js} +1 -1
- package/assets/{resolveImplementation--gaCsV-s.js → resolveImplementation-DWPGoMu1.js} +1 -1
- package/assets/{search-B8WbQmvE.js → search-qNuV9lyV.js} +1 -1
- package/assets/{secp256k1-DtCHzlC3.js → secp256k1-BV4QVD29.js} +1 -1
- package/assets/{send-BFNT_o0R.js → send-Dii2Pw7R.js} +1 -1
- package/assets/{send-batch-transaction-ZanhTs8a.js → send-batch-transaction-B5a_BUBh.js} +1 -1
- package/assets/{send-eip712-transaction-CxRy-sD1.js → send-eip712-transaction-1K3ti4op.js} +2 -2
- package/assets/{send-gasless-transaction-Iz8ZLiHO.js → send-gasless-transaction-DI77vCwk.js} +2 -2
- package/assets/{serializeTransaction-BufQeOel.js → serializeTransaction-JIZ3RKrK.js} +1 -1
- package/assets/{session-proposal-BD47nRI-.js → session-proposal-noyeBULg.js} +1 -1
- package/assets/{session-request-TkgpbjLp.js → session-request-YLRKLINI.js} +2 -2
- package/assets/{signing-TLGj9K79.js → signing-BuBuOxhe.js} +3 -3
- package/assets/{swapHorizontal-BiFAMUuS.js → swapHorizontal-22C2KQaF.js} +1 -1
- package/assets/{swapHorizontalBold-CP3dUSZb.js → swapHorizontalBold-BfcrMuey.js} +1 -1
- package/assets/{swapHorizontalMedium-BRNlkDrO.js → swapHorizontalMedium-BHDs4ZZW.js} +1 -1
- package/assets/{swapHorizontalRoundedBold-CHqEVcBs.js → swapHorizontalRoundedBold-DU6UvZ-c.js} +1 -1
- package/assets/{swapVertical-Du0QoNAI.js → swapVertical-C4tNz6XG.js} +1 -1
- package/assets/{telegram-DQef1ILU.js → telegram-BfTKby3L.js} +1 -1
- package/assets/{thirdweb-E-fErz2x.js → thirdweb-BQj4AreN.js} +3 -3
- package/assets/{three-dots-ByXtSGCV.js → three-dots-Bal3nsdA.js} +1 -1
- package/assets/{totalSupply-DNIfxfBv.js → totalSupply-C0h1Q6z_.js} +1 -1
- package/assets/{twitch-DIxDFqku.js → twitch-K-DI4jqQ.js} +1 -1
- package/assets/{twitterIcon-B-SNXvpz.js → twitterIcon-uj4yS-Ve.js} +1 -1
- package/assets/{uid-Bq9ktEE-.js → uid-BPvHxAG-.js} +3 -3
- package/assets/{verify-BT-sFhiZ.js → verify-BXUso18-.js} +1 -1
- package/assets/{verify-filled-DUDJcSxD.js → verify-filled-CAuC0tVY.js} +1 -1
- package/assets/{w3m-modal-Ck71GkBa.js → w3m-modal-C0c69JDZ.js} +1 -1
- package/assets/{wait-for-tx-receipt-C5afrCK7.js → wait-for-tx-receipt-RNMBP9Yx.js} +1 -1
- package/assets/{wallet-DiXkPY80.js → wallet-BJobAv1p.js} +1 -1
- package/assets/{wallet-placeholder-DHuJakoz.js → wallet-placeholder-Bi5Qwdj0.js} +1 -1
- package/assets/{walletconnect-LtvddLlL.js → walletconnect-qUwOWdk_.js} +1 -1
- package/assets/{wallets-BmZ-KVbp.js → wallets-BQJnnz7M.js} +5 -5
- package/assets/{warning-circle-DEf5ta8Y.js → warning-circle-D80mCLLJ.js} +1 -1
- package/assets/{web-connector-6KYcG8gr.js → web-connector-zH75MT1q.js} +3 -3
- package/assets/{webSocket-2Mm3WVrI.js → webSocket-Dj4mcolG.js} +1 -1
- package/assets/{x-Cl1yAHbN.js → x-BRO0JOIq.js} +1 -1
- package/index.html +17 -17
- package/package.json +3 -3
- package/assets/__federation_shared_@emotion/react-LISJiiTk.js +0 -1
- package/assets/index-DIxygMtO.js +0 -1
- package/assets/preload-helper-BokH5fd6.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__fileDeps=["assets/index-
|
|
2
|
-
import{c as qe}from"../_commonjsHelpers-C4iS2aBk.js";import{d as lw}from"../index-CpR9p5nk.js";import{r as fw}from"../___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{_ as dw}from"../preload-helper-
|
|
1
|
+
const __vite__fileDeps=["assets/index-vgC1T0K1.js","assets/preload-helper-BLohficu.js","assets/tslib.es6-DbvBTznf.js","assets/_commonjsHelpers-C4iS2aBk.js","assets/inherits_browser-BlmhoU4v.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{c as qe}from"../_commonjsHelpers-C4iS2aBk.js";import{d as lw}from"../index-CpR9p5nk.js";import{r as fw}from"../___vite-browser-external_commonjs-proxy-BqV5D26a.js";import{_ as dw}from"../preload-helper-BLohficu.js";import{importShared as Nn}from"../__federation_fn_import-BZzr9p5I.js";import{j as sy}from"../jsx-runtime-DncYoG30.js";import{b as Le,d as ur,e as hw,c as Pr}from"../tslib.es6-DbvBTznf.js";var ay={},vd={};Object.defineProperty(vd,"__esModule",{value:!0});var cy={},Au={},ku={},uy={},_f={exports:{}};/*! eth-connect {
|
|
3
3
|
"date": "2024-01-01T15:10:57.542Z",
|
|
4
4
|
"commit": "b2fa64415d297ccce86d2a5d59d8705388f77db9",
|
|
5
5
|
"ref": "refs/tags/6.2.4"
|
|
@@ -511,7 +511,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
511
511
|
`).reduce((n,r)=>{const[i,o]=r.split(": ");return o&&(n[i.toLowerCase()]=o),n},{}):{}}function JP(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return ZP(e.response,e.responseType)}catch(n){t.push(n)}return He&&Ue.warn("Failed to get xhr response body",...t),[void 0]}function ZP(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return He&&Ue.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return He&&Ue.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function QP(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return il(n)}catch{return}}function eL(e){const t=Ae();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>tL(a,c,u))}catch{}}function tL(e,t,n){if(t.data)try{nL(t)&&iL(n)&&(XP(t,n),qP(t,n,e)),rL(t)&&oL(n)&&(BP(t,n),DP(t,n,e))}catch(r){He&&Ue.exception(r,"Error when enriching network breadcrumb")}}function nL(e){return e.category==="xhr"}function rL(e){return e.category==="fetch"}function iL(e){return e?.xhr}function oL(e){return e?.response}function sL(e){const t=Ae();ib(LM(e)),Zu(NP(e)),SP(e),eL(e);const n=CP(e);H0(n),t&&(t.on("beforeSendEvent",vP(e)),t.on("afterSendEvent",yP(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const o=e.getSessionId();i?.includeReplay&&e.isEnabled()&&o&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=o)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function aL(e){try{return Promise.all(rl(e,[cL(Rt.performance.memory)]))}catch{return[]}}function cL(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function uL(e,t,n){return Fx(e,t,{...n,setTimeoutImpl:aa})}const bc=$e.navigator;function lL(){return/iPhone|iPad|iPod/i.test(bc?.userAgent??"")||/Macintosh/i.test(bc?.userAgent??"")&&bc?.maxTouchPoints&&bc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function fL(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){He&&Ue.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&RM(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!Eh(e,n,i))return!0;if(!i)return!1;const o=e.session;if(hL(e,i),e.recordingMode==="buffer"&&o&&e.eventBuffer){const s=e.eventBuffer.getEarliestTimestamp();s&&(He&&Ue.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),o.started=s,e.getOptions().stickySession&&Sh(o))}return o?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function dL(e){const t=e.getOptions();return{type:rt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function hL(e,t){!t||!e.session||e.session.segmentId!==0||Eh(e,dL(e),!1)}function pL(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function mL(e,t,n,r){return Yr(C0(e,Fd(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function gL({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
|
512
512
|
`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function yL({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:i};e.emit("preprocessEvent",r,o);const s=await L0(e.getOptions(),r,o,t,e,Zt());if(!s)return null;e.emit("postprocessEvent",s,o),s.platform=s.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function _L({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=gL({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:h}=r,d=Ae(),m=et(),g=d?.getTransport(),w=d?.getDsn();if(!d||!g||!w||!o.sampled)return zr({});const T={type:qO,replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},L=await yL({scope:m,client:d,replayId:t,event:T});if(!L)return d.recordDroppedEvent("event_processor","replay"),He&&Ue.log("An event processor returned `null`, will not send event."),zr({});delete L.sdkProcessingMetadata;const U=mL(L,s,w,d.getOptions().tunnel);let K;try{K=await g.send(U)}catch(F){const Y=new Error(fh);try{Y.cause=F}catch{}throw Y}if(typeof K.statusCode=="number"&&(K.statusCode<200||K.statusCode>=300))throw new fv(K.statusCode);const V=Q0({},K);if(Z0(V,"replay"))throw new Ih(V);return K}class fv extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Ih extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function dv(e,t={count:0,interval:QO}){const{recordingData:n,onError:r}=e;if(n.length)try{return await _L(e),!0}catch(i){if(i instanceof fv||i instanceof Ih)throw i;if(D0("Replays",{_retryCount:t.count}),r&&r(i),t.count>=e2){const o=new Error(`${fh} - max retries exceeded`);try{o.cause=i}catch{}throw o}return t.interval*=++t.count,new Promise((o,s)=>{aa(async()=>{try{await dv(e,t),o(!0)}catch(a){s(a)}},t.interval)})}}const hv="__THROTTLED",bL="__SKIPPED";function vL(e,t,n){const r=new Map,i=a=>{const c=a-n;r.forEach((u,h)=>{h<c&&r.delete(h)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let s=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(i(c),o()>=t){const h=s;return s=!0,h?bL:hv}s=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class wL{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:XO,sessionIdleExpire:YO},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=t,this._debouncedFlush=uL(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=vL((s,a)=>pP(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(t2,r),timeout:r,scrollTimeout:n2,ignoreSelector:i?i.join(","):""}:void 0;if(o&&(this.clickDetector=new xM(this,o)),He){const s=t._experiments;Ue.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{Rt.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=vr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=vr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{HM(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){He&&Ue.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){He&&Ue.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",He&&Ue.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){He&&Ue.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){He&&Ue.log("Buffering is in progress, call `flush()` to save the replay");return}He&&Ue.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=ef({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){He&&Ue.log("Buffering is in progress, call `flush()` to save the replay");return}He&&Ue.infoTick("Starting replay in buffer mode");const t=ef({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Fr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:ZO}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:fL(this),...lL(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{He&&Ue.log(`Stopping Replay${n?` triggered by ${n}`:""}`),sv(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,uP(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),He&&Ue.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),He&&Ue.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();He&&Ue.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();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(){return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&nd(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Rt.location.pathname}${Rt.location.hash}${Rt.location.search}`,n=`${Rt.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===hv){const i=vr({category:"replay.throttled"});this.addUpdate(()=>!Eh(this,{type:bM,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Qt(),n=t&&Jt(t),i=(n&&Ze(n).data||{})[Fn];if(!(!n||!i||!["route","custom"].includes(i)))return Ze(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=sP({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=ef({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return nv(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Rt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Rt.addEventListener("blur",this._handleWindowBlur),Rt.addEventListener("focus",this._handleWindowFocus),Rt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(sL(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=QM(this)}_removeListeners(){try{Rt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Rt.removeEventListener("blur",this._handleWindowBlur),Rt.removeEventListener("focus",this._handleWindowFocus),Rt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||tv(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){He&&Ue.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:rt.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=GM(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(rl(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={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(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){He&&Ue.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await aL(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await dv({replayId:t,recordingData:o,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Ae();if(r){const i=n instanceof Ih?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){He&&Ue.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const o=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(o||s){He&&Ue.log(`Session duration (${Math.floor(i/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&He&&Ue.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Sh(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=pL(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,s=i&&r>i;if(r>o||s){const a=vr({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function _s(e,t){return[...e,...t].join(",")}function SL({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const o=["base","iframe[srcdoc]:not([src])"],s=_s(e,[".sentry-mask","[data-sentry-mask]"]),a=_s(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:_s(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:_s(r,[]),ignoreSelector:_s(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function EL({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const tg='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',TL=["content-length","content-type","accept"];let ng=!1;const IL=e=>new xL(e);class xL{constructor({flushMinDelay:t=KO,flushMaxDelay:n=JO,minReplayDuration:r=r2,maxReplayDuration:i=Pm,stickySession:o=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:h=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:m=750,mutationLimit:g=1e4,slowClickTimeout:w=7e3,slowClickIgnoreSelectors:T=[],networkDetailAllowUrls:L=[],networkDetailDenyUrls:U=[],networkCaptureBodies:K=!0,networkRequestHeaders:V=[],networkResponseHeaders:F=[],mask:Y=[],maskAttributes:D=["title","placeholder","aria-label"],unmask:G=[],block:ae=[],unblock:P=[],ignore:j=[],maskFn:z,beforeAddRecordingEvent:X,beforeErrorSampling:se,onError:we}={}){this.name="Replay";const fe=SL({mask:Y,unmask:G,block:ae,unblock:P,ignore:j});if(this._recordingOptions={maskAllInputs:h,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:z,maskInputFn:z,maskAttributeFn:(ce,Q,_e)=>EL({maskAttributes:D,maskAllText:u,privacyOptions:fe,key:ce,value:Q,el:_e}),...fe,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:ce=>{try{ce.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,i2),maxReplayDuration:Math.min(i,Pm),stickySession:o,useCompression:s,workerUrl:a,blockAllMedia:d,maskAllInputs:h,maskAllText:u,mutationBreadcrumbLimit:m,mutationLimit:g,slowClickTimeout:w,slowClickIgnoreSelectors:T,networkDetailAllowUrls:L,networkDetailDenyUrls:U,networkCaptureBodies:K,networkRequestHeaders:rg(V),networkResponseHeaders:rg(F),beforeAddRecordingEvent:X,beforeErrorSampling:se,onError:we,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${tg}`:tg),this._isInitialized&&Hf())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ng}set _isInitialized(t){ng=t}afterAllSetup(t){!Hf()||this._replay||(this._setup(t),this._initialize(t))}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(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=AL(this._initialOptions,t);this._replay=new wL({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function AL(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=ji(n.replaysSessionSampleRate),o=ji(n.replaysOnErrorSampleRate);return i==null&&o==null&&bi(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),o!=null&&(r.errorSampleRate=o),r}function rg(e){return[...TL,...e.map(t=>t.toLowerCase())]}function kL(){return Ae()?.getIntegrationByName("Replay")}var CL=Object.defineProperty,RL=(e,t,n)=>t in e?CL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ig=(e,t,n)=>RL(e,typeof t!="symbol"?t+"":t,n);class NL{constructor(){ig(this,"idNodeMap",new Map),ig(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function OL(){return new NL}function ML(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function od(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:od(e.parentNode,t,n,r+1)}function og(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(ML(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const wo=`Please stop import mirror directly. Instead of that,\r
|
|
513
513
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
514
|
-
or you can use record.mirror to access the mirror instance during recording.`;let sg={map:{},getId(){return console.error(wo),-1},getNode(){return console.error(wo),null},removeNodeFromMap(){console.error(wo)},has(){return console.error(wo),!1},reset(){console.error(wo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(sg=new Proxy(sg,{get(e,t,n){return t==="map"&&console.error(wo),Reflect.get(e,t,n)}}));function xh(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){mv(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>xh(e,t,o||{},!0)}function Ah(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function PL(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ol(e,t,n,r,i){if(!e)return!1;const o=PL(e);if(!o)return!1;const s=og(t,n),a=od(o,s);let c=-1;return a<0?!1:(r&&(c=od(o,og(null,r))),a>-1&&c<0?!0:a<c)}const ag={};function pv(e){const t=ag[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return ag[e]=r.bind(window)}function Ai(...e){return pv("requestAnimationFrame")(...e)}function mv(...e){return pv("setTimeout")(...e)}var zo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(zo||{});let jc;function LL(e){jc=e}const tf=e=>jc?(...n)=>{try{return e(...n)}catch(r){if(jc&&jc(r)===!0)return()=>{};throw r}}:e;var Ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DL=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var vc=0;vc<Ao.length;vc++)DL[Ao.charCodeAt(vc)]=vc;var BL=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=Ao[t[n]>>2],i+=Ao[(t[n]&3)<<4|t[n+1]>>4],i+=Ao[(t[n+1]&15)<<2|t[n+2]>>6],i+=Ao[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const cg=new Map;function FL(e,t){let n=cg.get(e);return n||(n=new Map,cg.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const gv=(e,t,n)=>{if(!e||!(_v(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=FL(n,r);let o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o};function Gc(e,t,n){if(e instanceof Array)return e.map(r=>Gc(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=BL(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Gc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Gc(e.data,t,n),e.width,e.height]};if(_v(e,t)||typeof e=="object"){const r=e.constructor.name,i=gv(e,t,n);return{rr_type:r,index:i}}}}return e}const yv=(e,t,n)=>e.map(r=>Gc(r,t,n)),_v=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function HL(e,t,n,r,i){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Ah(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...h){return ol(this.canvas,n,r,i,!0)||mv(()=>{const d=yv(h,t,this);e(this.canvas,{type:zo["2D"],property:a,args:d})},0),u.apply(this,h)}});o.push(c)}catch{const c=xh(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:zo["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function UL(e){return e==="experimental-webgl"?"webgl":e}function ug(e,t,n,r,i){const o=[];try{const s=Ah(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!ol(this,t,n,r,!0)){const h=UL(c);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function lg(e,t,n,r,i,o,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const h of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const d=Ah(e,h,function(m){return function(...g){const w=m.apply(this,g);if(gv(w,a,this),"tagName"in this.canvas&&!ol(this.canvas,r,i,o,!0)){const T=yv(g,a,this),L={type:t,property:h,args:T};n(this.canvas,L)}return w}});c.push(d)}catch{const d=xh(e,h,{set(m){n(this.canvas,{type:t,property:h,args:[m],setter:!0})}});c.push(d)}return c}function $L(e,t,n,r,i,o){const s=[];return s.push(...lg(t.WebGLRenderingContext.prototype,zo.WebGL,e,n,r,i,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...lg(t.WebGL2RenderingContext.prototype,zo.WebGL2,e,n,r,i,o,t)),()=>{s.forEach(a=>a())}}const jL='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function GL(){const e=new Blob([jL]);return URL.createObjectURL(e)}class WL{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:o,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&LL(s),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&tf(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}tf(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,o),s&&typeof n=="number"){const c=ug(t,r,i,o,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Ai(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(GL());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:c}=r;this.mutationCb({id:i,type:zo["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=Ai(n)};t=Ai(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const o=ug(t,n,r,i,!1),s=HL(this.processMutation.bind(this),t,n,r,i),a=$L(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}getCanvasElements(t,n,r){const i=[],o=s=>{s.querySelectorAll("canvas").forEach(a=>{ol(a,t,n,r)||i.push(a)})};for(const s of this.windows){const a=s.deref();let c;try{c=a&&a.document}catch{}c&&o(c)}for(const s of this.shadowDoms){const a=s.deref();a&&o(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:o,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,d=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,s,a)).forEach(w=>{const T=this.mirror.getId(w);if(!(!this.mirror.hasNode(w)||!w.width||!w.height||this.snapshotInProgressMap.get(T))){if(this.snapshotInProgressMap.set(T,!0),!n&&["webgl","webgl2"].includes(w.__context)){const L=w.getContext(w.__context);L?.getContextAttributes()?.preserveDrawingBuffer===!1&&L.clear(L.COLOR_BUFFER_BIT)}createImageBitmap(w).then(L=>{this.worker?.postMessage({id:T,bitmap:L,width:w.width,height:w.height,dataURLOptions:c,maxCanvasSize:u},[L])}).catch(L=>{tf(()=>{throw this.snapshotInProgressMap.delete(T),L})()})}}),!0)}startPendingCanvasMutationFlusher(){Ai(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Ai(t)};Ai(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Ai(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(s=>{const{type:a,...c}=s;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}OL();var fg;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(fg||(fg={}));const dg={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},zL="ReplayCanvas",wc=1280,VL=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,wc):wc,n?Math.min(n,wc):wc]};let i;const o=new Promise(s=>i=s);return{name:zL,getOptions(){const{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const h=new WL({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return i(h),h},...dg[s]||dg.medium}},async snapshot(s,a){(await o).snapshot(s,a)}}},qL=VL;function gr(e=0){return((pn()||performance.timeOrigin)+e)/1e3}function XL(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=tb(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return pn()?[...t,["http.request.redirect_start",gr(e.redirectStart)],["http.request.fetch_start",gr(e.fetchStart)],["http.request.domain_lookup_start",gr(e.domainLookupStart)],["http.request.domain_lookup_end",gr(e.domainLookupEnd)],["http.request.connect_start",gr(e.connectStart)],["http.request.secure_connection_start",gr(e.secureConnectionStart)],["http.request.connection_end",gr(e.connectEnd)],["http.request.request_start",gr(e.requestStart)],["http.request.response_start",gr(e.responseStart)],["http.request.response_end",gr(e.responseEnd)]]:t}const hg=new WeakMap,nf=new Map,kh={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function bv(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c}={...kh,...t},u=typeof o=="function"?o:m=>!0,h=m=>KL(m,a),d={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(g=>{if(g.op==="http.client"){const w=nf.get(g.span_id);w&&(g.timestamp=w/1e3,nf.delete(g.span_id))}}),m)),i&&dk(m=>{if(m.response){const g=hg.get(m.response);g&&m.endTimestamp&&nf.set(g,m.endTimestamp)}}),qd(m=>{const g=QA(m,u,h,d);if(m.response&&m.fetchData.__span&&hg.set(m.response,m.fetchData.__span),g){const w=vv(m.fetchData.url),T=w?Hi(w).host:void 0;g.setAttributes({"http.url":w,"server.address":T}),s&&pg(g),c?.(g,{headers:m.headers})}})),r&&ah(m=>{const g=JL(m,u,h,d);if(g){s&&pg(g);let w;try{w=new Headers(m.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(g,{headers:w})}})}function YL(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function pg(e){const{url:t}=Ze(e).data;if(!t||typeof t!="string")return;const n=zi("resource",({entries:r})=>{r.forEach(i=>{YL(i)&&i.name.endsWith(t)&&(XL(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function KL(e,t){const n=Yi();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?or(r.toString(),t)||o&&or(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?or(e,t):r}}function JL(e,t,n,r){const i=e.xhr,o=i?.[Lr];if(!i||i.__sentry_own_request__||!o)return;const{url:s,method:a}=o,c=gi()&&t(s);if(e.endTimestamp&&c){const T=i.__sentry_xhr_span_id__;if(!T)return;const L=r[T];L&&o.status_code!==void 0&&(Ps(L,o.status_code),L.end(),delete r[T]);return}const u=vv(s),h=Hi(u||s),d=y_(s),m=!!Qt(),g=c&&m?Qi({name:`${a} ${d}`,attributes:{url:s,type:"xhr","http.method":a,"http.url":u,"server.address":h?.host,[Bt]:"auto.http.browser",[Un]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new Wr;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(s)&&ZL(i,gi()&&m?g:void 0);const w=Ae();return w&&w.emit("beforeOutgoingRequestSpan",g,e),g}function ZL(e,t){const{"sentry-trace":n,baggage:r}=Wd({span:t});n&&QL(e,n,r)}function QL(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!eD(i))&&e.setRequestHeader("baggage",n)}}catch{}}function eD(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function vv(e){try{return new URL(e,De.location.origin).href}catch{return}}function tD(){De.document?De.document.addEventListener("visibilitychange",()=>{const e=Qt();if(!e)return;const t=Jt(e);if(De.document.hidden&&t){const n="cancelled",{op:r,status:i}=Ze(t);ot&&q.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:Gt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ot&&q.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const nD=3600,wv="sentry_previous_trace",rD="sentry.previous_trace";function iD(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?aD():void 0;e.on("spanStart",s=>{if(Jt(s)!==s)return;const a=et().getPropagationContext();i=oD(i,s,a),r&&sD(i)});let o=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const a=et(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(sd(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=sd(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[a0]:i.sampleRate}})}function oD(e,t,n){const r=Ze(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Uu])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=nD&&(ot&&q.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[NT]:"previous_trace"}}),t.setAttribute(rD,`${s.traceId}-${s.spanId}-${sd(s)?1:0}`)),o)}function sD(e){try{De.sessionStorage.setItem(wv,JSON.stringify(e))}catch(t){ot&&q.warn("Could not store previous trace in sessionStorage",t)}}function aD(){try{const e=De.sessionStorage?.getItem(wv);return JSON.parse(e)}catch{return}}function sd(e){return e.traceFlags===1}const cD="BrowserTracing",uD={...Nc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...kh},lD=(e={})=>{const t={name:void 0,source:void 0},n=De.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:h,idleTimeout:d,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:w,traceFetch:T,traceXHR:L,trackFetchStreamPerformance:U,shouldCreateSpanForRequest:K,enableHTTPTimings:V,ignoreResourceSpans:F,ignorePerformanceApiSpans:Y,instrumentPageLoad:D,instrumentNavigation:G,detectRedirects:ae,linkPreviousTrace:P,consistentTraceSampling:j,onRequestSpanStart:z}={...uD,...e};let X,se;function we(fe,ce,Q=!0){const _e=ce.op==="pageload",pe=h?h(ce):ce,le=pe.attributes||{};if(ce.name!==pe.name&&(le[Fn]="custom",pe.attributes=le),!Q){const oe=Ki();Qi({...pe,startTime:oe}).end(oe);return}t.name=pe.name,t.source=le[Fn];const be=M0(pe,{idleTimeout:d,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:_e,beforeSpanEnd:oe=>{X?.(),GR(oe,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:F,ignorePerformanceApiSpans:Y}),gg(fe,void 0);const Be=et(),bt=Be.getPropagationContext();Be.setPropagationContext({...bt,traceId:be.spanContext().traceId,sampled:Ji(be),dsc:ar(oe)})}});gg(fe,be);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&fe.emit("idleSpanEnableAutoFinish",be)}_e&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:cD,setup(fe){if(S0(),X=LR({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:fe}),r&&fN(),i&&QR(),s&&$e.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?BR():o&&DR(),a&&FR(),ae&&n){const Q=()=>{se=qt()};addEventListener("click",Q,{capture:!0}),addEventListener("keydown",Q,{capture:!0,passive:!0})}function ce(){const Q=Us(fe);Q&&!Ze(Q).timestamp&&(ot&&q.log(`[Tracing] Finishing current active span with op: ${Ze(Q).op}`),Q.setAttribute(eu,"cancelled"),Q.end())}fe.on("startNavigationSpan",(Q,_e)=>{if(Ae()!==fe)return;if(_e?.isRedirect){ot&&q.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),we(fe,{op:"navigation.redirect",...Q},!1);return}ce(),Zt().setPropagationContext({traceId:Gr(),sampleRand:Math.random()});const pe=et();pe.setPropagationContext({traceId:Gr(),sampleRand:Math.random()}),pe.setSDKProcessingMetadata({normalizedRequest:void 0}),we(fe,{op:"navigation",...Q})}),fe.on("startPageLoadSpan",(Q,_e={})=>{if(Ae()!==fe)return;ce();const pe=_e.sentryTrace||mg("sentry-trace"),le=_e.baggage||mg("baggage"),be=p0(pe,le),Xe=et();Xe.setPropagationContext(be),Xe.setSDKProcessingMetadata({normalizedRequest:Qd()}),we(fe,{op:"pageload",...Q})})},afterAllSetup(fe){let ce=Yi();if(P!=="off"&&iD(fe,{linkPreviousTrace:P,consistentTraceSampling:j}),De.location){if(D){const Q=pn();Sv(fe,{name:De.location.pathname,startTime:Q?Q/1e3:void 0,attributes:{[Fn]:"url",[Bt]:"auto.pageload.browser"}})}G&&Zu(({to:Q,from:_e})=>{if(_e===void 0&&ce?.indexOf(Q)!==-1){ce=void 0;return}ce=void 0;const pe=g_(Q),le=Us(fe),be=le&&ae&&dD(le,se);Ev(fe,{name:pe?.pathname||De.location.pathname,attributes:{[Fn]:"url",[Bt]:"auto.navigation.browser"}},{url:Q,isRedirect:be})})}w&&tD(),a&&fD(fe,d,m,g,t),r&&pN(),bv(fe,{traceFetch:T,traceXHR:L,trackFetchStreamPerformance:U,tracePropagationTargets:fe.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:V,onRequestSpanStart:z})}}};function Sv(e,t,n){e.emit("startPageLoadSpan",t,n),et().setTransactionName(t.name);const r=Us(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Ev(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=et();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...Qd(),url:r}}),Us(e)}function mg(e){return De.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function fD(e,t,n,r,i){const o=De.document;let s;const a=()=>{const c="ui.action.click",u=Us(e);if(u){const h=Ze(u).op;if(["navigation","pageload"].includes(h)){ot&&q.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(eu,"interactionInterrupted"),s.end(),s=void 0),!i.name){ot&&q.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=M0({name:i.name,op:c,attributes:{[Fn]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const Tv="_sentry_idleSpan";function Us(e){return e[Tv]}function gg(e,t){Rn(e,Tv,t)}const yg=.3;function dD(e,t){const n=Ze(e),r=Ki(),i=n.start_timestamp;return!(r-i>yg||t&&r-t<=yg)}function Vo(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function hD(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Vo(n);return i=>r.then(o=>i(o.transaction(t,"readwrite").objectStore(t)))}function Ch(e){return Vo(e.getAllKeys())}function pD(e,t,n){return e(r=>Ch(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Vo(r.transaction)}))}function mD(e,t,n){return e(r=>Ch(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Vo(r.transaction)}))}function gD(e){return e(t=>Ch(t).then(n=>{const r=n[0];if(r!=null)return Vo(t.get(r)).then(i=>(t.delete(r),Vo(t.transaction).then(()=>i)))}))}function yD(e){let t;function n(){return t==null&&(t=hD(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await ru(r);await pD(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await ru(r);await mD(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await gD(n());if(r)return oI(r)}catch{}}}}function _D(e){return t=>{const n=e({...t,createStore:yD});return De.addEventListener("online",async r=>{await n.flush()}),n}}function bD(e=uh){return _D(Ax(e))}const _g=1e6,Wc=String(0),vD="main",Tu=De.navigator;let Iv="",xv="",Av="",ad=Tu?.userAgent||"",kv="";const wD=Tu?.language||Tu?.languages?.[0]||"";function SD(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const bg=Tu?.userAgentData;SD(bg)&&bg.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Iv=e.platform||"",Av=e.architecture||"",kv=e.model||"",xv=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];ad=`${t.brand} ${t.version}`}}).catch(e=>{});function ED(e){return!("thread_metadata"in e)}function TD(e){return ED(e)?AD(e):e}function ID(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&ot&&q.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function xD(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=ID(r),o=TD(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:qt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:qt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||$u,runtime:{name:"javascript",version:De.navigator.userAgent},os:{name:Iv,version:xv,build_number:ad},device:{locale:wD,model:kv,manufacturer:ad,architecture:Av,is_emulator:!1},debug_meta:{images:RD(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||En(),trace_id:i,active_thread_id:Wc,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function Cv(e){return Ze(e).op==="pageload"}function AD(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Wc]:{name:vD}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,s=pn(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,h)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[h]={elapsed_since_start_ns:((u.timestamp+c-o)*_g).toFixed(0),stack_id:t,thread_id:Wc};return}let d=e.stacks[u.stackId];const m=[];for(;d;){m.push(d.frameId);const w=e.frames[d.frameId];w&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:w.name,abs_path:typeof w.resourceId=="number"?e.resources[w.resourceId]:void 0,lineno:w.line,colno:w.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const g={elapsed_since_start_ns:((u.timestamp+c-o)*_g).toFixed(0),stack_id:n,thread_id:Wc};r.stacks[n]=m,r.samples[h]=g,n++}),r}function kD(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function CD(e){const t=[];return Gi(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function RD(e){const r=Ae()?.getOptions()?.stackParser;return r?LI(r,e):[]}function ND(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(ot&&q.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(ot&&q.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function OD(e){return e.samples.length<2?(ot&&q.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(ot&&q.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Rv=!1;const Nv=3e4;function MD(e){return typeof e=="function"}function PD(){const e=De.Profiler;if(!MD(e)){ot&&q.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Nv/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{ot&&(q.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),q.log("[Profiling] Disabling profiling for current user session.")),Rv=!0}}function vg(e){if(Rv)return ot&&q.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return ot&&q.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=Ae()?.getOptions();if(!n)return ot&&q.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return ND(r)?r?(r===!0?!0:Math.random()<r)?!0:(ot&&q.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(ot&&q.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(ot&&q.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function LD(e,t,n,r){return OD(n)?xD(e,t,n,r):null}const Di=new Map;function DD(){return Di.size}function BD(e){const t=Di.get(e);return t&&Di.delete(e),t}function FD(e,t){if(Di.set(e,t),Di.size>30){const n=Di.keys().next().value;Di.delete(n)}}function wg(e){let t;Cv(e)&&(t=qt()*1e3);const n=PD();if(!n)return;ot&&q.log(`[Profiling] started profiling span: ${Ze(e).description}`);const r=En();et().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(o&&(De.clearTimeout(o),o=void 0),ot&&q.log(`[Profiling] stopped profiling of span: ${Ze(e).description}`),!c){ot&&q.log(`[Profiling] profiler returned null profile for: ${Ze(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}FD(r,c)}).catch(c=>{ot&&q.log("[Profiling] error while stopping profiler:",c)})}let o=De.setTimeout(()=>{ot&&q.log("[Profiling] max profile duration elapsed, stopping profiling for:",Ze(e).description),i()},Nv);const s=e.end.bind(e);function a(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}e.end=a}const HD="BrowserProfiling",UD=()=>({name:HD,setup(e){const t=Qt(),n=t&&Jt(t);n&&Cv(n)&&vg(n)&&wg(n),e.on("spanStart",r=>{r===Jt(r)&&vg(r)&&wg(r)}),e.on("beforeEnvelope",r=>{if(!DD())return;const i=CD(r);if(!i.length)return;const o=[];for(const s of i){const a=s?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){ot&&q.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){ot&&q.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const h=BD(c);if(!h){ot&&q.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const d=LD(c,u,h,s);d&&o.push(d)}kD(r,o)})}}),$D=UD,jD="SpotlightBrowser",GD=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:jD,setup:()=>{ot&&q.log("Using Sidecar URL",t)},processEvent:n=>VD(n)?null:n,afterAllSetup:n=>{WD(n,t)}}};function WD(e,t){const n=sh("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){q.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:ru(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,q.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const zD=GD;function VD(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const qD=()=>({name:"LaunchDarkly",processEvent(e,t,n){return ta(e)}});function XD(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Po(e,t.value),Lo(e,t.value)}}}const YD=()=>({name:"OpenFeature",processEvent(e,t,n){return ta(e)}});class KD{after(t,n){Po(n.flagKey,n.value),Lo(n.flagKey,n.value)}error(t,n,r){Po(t.flagKey,t.defaultValue),Lo(t.flagKey,t.defaultValue)}}const JD=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;Sn(t,"isEnabled",ZD)},processEvent(t,n,r){return ta(t)}});function ZD(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Po(n,r),Lo(n,r)):ot&&q.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const QD=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Po(n.gate.name,n.gate.value),Lo(n.gate.name,n.gate.value)})},processEvent(t,n,r){return ta(t)}});async function eB(){const e=Ae();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const tB="WebWorker",nB=({worker:e})=>({name:tB,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>Sg(t))},addWorker:t=>Sg(t)});function Sg(e){e.addEventListener("message",t=>{iB(t.data)&&(t.stopImmediatePropagation(),ot&&q.log("Sentry debugId web worker message received",t.data),De._sentryDebugIds={...t.data._sentryDebugIds,...De._sentryDebugIds})})}function rB({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function iB(e){return $r(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&($r(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const oB=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:$_,OpenFeatureIntegrationHook:KD,SDK_VERSION:Br,SEMANTIC_ATTRIBUTE_SENTRY_OP:Un,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Bt,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:Uu,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Fn,Scope:sr,WINDOW:De,addBreadcrumb:Er,addEventProcessor:H0,addIntegration:Mf,breadcrumbsIntegration:fb,browserApiErrorsIntegration:db,browserProfilingIntegration:$D,browserSessionIntegration:hb,browserTracingIntegration:lD,buildLaunchDarklyFlagUsedHandler:XD,captureConsoleIntegration:iA,captureEvent:ea,captureException:Wi,captureFeedback:__,captureMessage:au,captureSession:Of,chromeStackLineParser:sb,close:ZI,consoleLoggingIntegration:ak,contextLinesIntegration:FO,continueTrace:vI,createTransport:e_,createUserFeedbackEnvelope:DN,dedupeIntegration:l_,defaultRequestInstrumentationOptions:kh,defaultStackLineParsers:cb,defaultStackParser:ub,diagnoseSdkConnectivity:eB,endSession:jd,eventFiltersIntegration:o_,eventFromException:H_,eventFromMessage:U_,exceptionFromError:qu,extraErrorDataIntegration:hA,featureFlagsIntegration:KA,feedbackAsyncIntegration:LC,feedbackIntegration:Em,feedbackSyncIntegration:Em,flush:JI,forceLoad:mO,functionToStringIntegration:i_,geckoStackLineParser:ab,getActiveSpan:Qt,getClient:Ae,getCurrentScope:et,getDefaultIntegrations:_b,getFeedback:zk,getGlobalScope:Hu,getIsolationScope:Zt,getReplay:kL,getRootSpan:Jt,getSpanDescendants:xs,getSpanStatusFromHttpCode:c0,getTraceData:Wd,globalHandlersIntegration:pb,graphqlClientIntegration:VO,httpClientIntegration:TO,httpContextIntegration:gb,inboundFiltersIntegration:s_,init:pO,instrumentOutgoingRequests:bv,instrumentSupabaseClient:p_,isEnabled:F0,isInitialized:QI,lastEventId:B0,launchDarklyIntegration:qD,lazyLoadIntegration:B_,linkedErrorsIntegration:yb,logger:jC,makeBrowserOfflineTransport:bD,makeFetchTransport:uh,makeMultiplexedTransport:Rx,moduleMetadataIntegration:eA,onLoad:gO,openFeatureIntegration:YD,opera10StackLineParser:ON,opera11StackLineParser:LN,parameterize:r_,registerSpanErrorInstrumentation:S0,registerWebWorker:rB,replayCanvasIntegration:qL,replayIntegration:IL,reportingObserverIntegration:wO,rewriteFramesIntegration:SA,sendFeedback:E_,setContext:D0,setCurrentClient:Y0,setExtra:qI,setExtras:VI,setHttpStatus:Ps,setMeasurement:R0,setTag:YI,setTags:XI,setUser:KI,showReportDialog:yO,spanToBaggageHeader:KT,spanToJSON:Ze,spanToTraceHeader:_0,spotlightBrowserIntegration:zD,startBrowserTracingNavigationSpan:Ev,startBrowserTracingPageLoadSpan:Sv,startInactiveSpan:Qi,startNewTrace:SI,startSession:Nf,startSpan:Gu,startSpanManual:bI,statsigIntegration:QD,supabaseIntegration:LA,suppressTracing:wI,thirdPartyErrorFilterIntegration:zA,unleashIntegration:JD,updateSpanName:WT,webWorkerIntegration:nB,winjsStackLineParser:CN,withActiveSpan:Zs,withIsolationScope:kT,withScope:Xn,zodErrorsIntegration:WA},Symbol.toStringTag,{value:"Module"})),sl=e=>{typeof window<"u"&&window.Sentry&&e(oB)},{useEffect:sB}=await Nn("react"),Ov=(e,t)=>sB(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),sl(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:aB,useMemo:cB,useRef:uB,useState:lB}=await Nn("react"),Mv=aB(null),T3=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,o=uB(null),[s,a]=lB(!1);Ov(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(X1(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:d}=await dw(async()=>{const{AnalyticsBrowser:m}=await import("../index-CH2z5aZN.js").then(g=>g.q);return{AnalyticsBrowser:m}},__vite__mapDeps([0,1,2,3,4]));o.current=d.load({writeKey:t}),n&&o.current.identify(n,r),a(!0)}catch(d){console.error("[Analytics] Failed to initialize:",d),o.current=null}},[t,n,r]);const c=cB(()=>!o.current||!s?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,h)=>{o.current?.track(u,h)},identify:(u,h)=>{o.current?.identify(u,h)},page:(u,h)=>{o.current?.page(u,h)}},[s]);return sy.jsx(Mv.Provider,{value:c,children:i})},{createContext:fB}=await Nn("react"),Pv=fB(null);function _r(e,t){var n=t&&t.cache?t.cache:_B,r=t&&t.serializer?t.serializer:gB,i=t&&t.strategy?t.strategy:pB;return i(e,{cache:n,serializer:r})}function dB(e){return e==null||typeof e=="number"||typeof e=="boolean"}function hB(e,t,n,r){var i=dB(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function Lv(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function Dv(e,t,n,r,i){return n.bind(t,e,r,i)}function pB(e,t){var n=e.length===1?hB:Lv;return Dv(e,this,n,t.cache.create(),t.serializer)}function mB(e,t){return Dv(e,this,Lv,t.cache.create(),t.serializer)}var gB=function(){return JSON.stringify(arguments)},yB=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),_B={create:function(){return new yB}},br={variadic:mB},ft;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ft||(ft={}));var Nt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Nt||(Nt={}));var qo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(qo||(qo={}));function Eg(e){return e.type===Nt.literal}function bB(e){return e.type===Nt.argument}function Bv(e){return e.type===Nt.number}function Fv(e){return e.type===Nt.date}function Hv(e){return e.type===Nt.time}function Uv(e){return e.type===Nt.select}function $v(e){return e.type===Nt.plural}function vB(e){return e.type===Nt.pound}function jv(e){return e.type===Nt.tag}function Gv(e){return!!(e&&typeof e=="object"&&e.type===qo.number)}function cd(e){return!!(e&&typeof e=="object"&&e.type===qo.dateTime)}var Wv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wB=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function SB(e){var t={};return e.replace(wB,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var EB=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function TB(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(EB).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function IB(e){return e.replace(/^(.*?)-/,"")}var Tg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zv=/^(@+)?(\+|#+)?[rs]?$/g,xB=/(\*)(0+)|(#+)(0+)|(0+)/g,Vv=/^(0+)$/;function Ig(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(zv,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function qv(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function AB(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Vv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xg(e){var t={},n=qv(e);return n||t}function kB(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=IB(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Le(Le(Le({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return Le(Le({},c),xg(u))},{}));continue;case"engineering":t=Le(Le(Le({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return Le(Le({},c),xg(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(xB,function(c,u,h,d,m,g){if(u)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Vv.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Tg.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Tg,function(c,u,h,d,m,g){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=Le(Le({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Le(Le({},t),Ig(o)));continue}if(zv.test(i.stem)){t=Le(Le({},t),Ig(i.stem));continue}var s=qv(i.stem);s&&(t=Le(Le({},t),s));var a=AB(i.stem);a&&(t=Le(Le({},t),a))}return t}var Sc={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function CB(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=RB(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function RB(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Sc[r||""]||Sc[n||""]||Sc["".concat(n,"-001")]||Sc["001"];return i[0]}var rf,NB=new RegExp("^".concat(Wv.source,"*")),OB=new RegExp("".concat(Wv.source,"*$"));function ht(e,t){return{start:e,end:t}}var MB=!!String.prototype.startsWith&&"_a".startsWith("a",1),PB=!!String.fromCodePoint,LB=!!Object.fromEntries,DB=!!String.prototype.codePointAt,BB=!!String.prototype.trimStart,FB=!!String.prototype.trimEnd,HB=!!Number.isSafeInteger,UB=HB?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ud=!0;try{var $B=Yv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ud=((rf=$B.exec("a"))===null||rf===void 0?void 0:rf[0])==="a"}catch{ud=!1}var Ag=MB?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ld=PB?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},kg=LB?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Xv=DB?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},jB=BB?function(t){return t.trimStart()}:function(t){return t.replace(NB,"")},GB=FB?function(t){return t.trimEnd()}:function(t){return t.replace(OB,"")};function Yv(e,t){return new RegExp(e,t)}var fd;if(ud){var Cg=Yv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fd=function(t,n){var r;Cg.lastIndex=n;var i=Cg.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else fd=function(t,n){for(var r=[];;){var i=Xv(t,n);if(i===void 0||Kv(i)||qB(i))break;r.push(i),n+=i>=65536?2:1}return ld.apply(void 0,r)};var WB=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Nt.pound,location:ht(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,ht(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&dd(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Nt.literal,value:"<".concat(i,"/>"),location:ht(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!dd(this.char()))return this.error(ft.INVALID_TAG,ht(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ft.UNMATCHED_CLOSING_TAG,ht(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Nt.tag,value:i,children:s,location:ht(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,ht(a,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,ht(r,this.clonePosition()))}else return this.error(ft.INVALID_TAG,ht(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&VB(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=ht(r,this.clonePosition());return{val:{type:Nt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zB(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ld.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ld(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,ht(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,ht(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Nt.argument,value:i,location:ht(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ft.MALFORMED_ARGUMENT,ht(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fd(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=ht(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,ht(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=GB(d.val);if(m.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,ht(this.clonePosition(),this.clonePosition()));var g=ht(h,this.clonePosition());u={style:m,styleLocation:g}}var w=this.tryParseArgumentClose(i);if(w.err)return w;var T=ht(i,this.clonePosition());if(u&&Ag(u?.style,"::",0)){var L=jB(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(L,u.styleLocation);return d.err?d:{val:{type:Nt.number,value:r,location:T,style:d.val},err:null}}else{if(L.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,T);var U=L;this.locale&&(U=CB(L,this.locale));var m={type:qo.dateTime,pattern:U,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?SB(U):{}},K=a==="date"?Nt.date:Nt.time;return{val:{type:K,value:r,location:T,style:m},err:null}}}return{val:{type:a==="number"?Nt.number:a==="date"?Nt.date:Nt.time,value:r,location:T,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var V=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,ht(V,Le({},V)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),Y=0;if(a!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ht(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),F=this.parseIdentifierIfPossible(),Y=d.val}var D=this.tryParsePluralOrSelectOptions(t,a,n,F);if(D.err)return D;var w=this.tryParseArgumentClose(i);if(w.err)return w;var G=ht(i,this.clonePosition());return a==="select"?{val:{type:Nt.select,value:r,options:kg(D.val),location:G},err:null}:{val:{type:Nt.plural,value:r,options:kg(D.val),offset:Y,pluralType:a==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,ht(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ht(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=TB(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,n)}return{val:{type:qo.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?kB(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=ht(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ht(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,n,r);if(w.err)return w;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([u,{value:w.val,location:ht(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return a.length===0?this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ht(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,ht(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=ht(i,this.clonePosition());return o?(s*=r,UB(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Xv(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ag(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Kv(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function dd(e){return e>=97&&e<=122||e>=65&&e<=90}function zB(e){return dd(e)||e===47}function VB(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Kv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function qB(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function hd(e){e.forEach(function(t){if(delete t.location,Uv(t)||$v(t))for(var n in t.options)delete t.options[n].location,hd(t.options[n].value);else Bv(t)&&Gv(t.style)||(Fv(t)||Hv(t))&&cd(t.style)?delete t.style.location:jv(t)&&hd(t.children)})}function XB(e,t){t===void 0&&(t={}),t=Le({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new WB(e,t).parse();if(n.err){var r=SyntaxError(ft[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||hd(n.val),n.val}var Tr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Tr||(Tr={}));var Ei=function(e){ur(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rg=function(e){ur(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Tr.INVALID_VALUE,o)||this}return t}(Ei),YB=function(e){ur(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Tr.INVALID_VALUE,i)||this}return t}(Ei),KB=function(e){ur(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Tr.MISSING_VALUE,r)||this}return t}(Ei),bn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(bn||(bn={}));function JB(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==bn.literal||n.type!==bn.literal?t.push(n):r.value+=n.value,t},[])}function ZB(e){return typeof e=="function"}function zc(e,t,n,r,i,o,s){if(e.length===1&&Eg(e[0]))return[{type:bn.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var h=u[c];if(Eg(h)){a.push({type:bn.literal,value:h.value});continue}if(vB(h)){typeof o=="number"&&a.push({type:bn.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new KB(d,s);var m=i[d];if(bB(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?bn.literal:bn.object,value:m});continue}if(Fv(h)){var g=typeof h.style=="string"?r.date[h.style]:cd(h.style)?h.style.parsedOptions:void 0;a.push({type:bn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Hv(h)){var g=typeof h.style=="string"?r.time[h.style]:cd(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:bn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Bv(h)){var g=typeof h.style=="string"?r.number[h.style]:Gv(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:bn.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(jv(h)){var w=h.children,T=h.value,L=i[T];if(!ZB(L))throw new YB(T,"function",s);var U=zc(w,t,n,r,i,o),K=L(U.map(function(Y){return Y.value}));Array.isArray(K)||(K=[K]),a.push.apply(a,K.map(function(Y){return{type:typeof Y=="string"?bn.literal:bn.object,value:Y}}))}if(Uv(h)){var V=h.options[m]||h.options.other;if(!V)throw new Rg(h.value,m,Object.keys(h.options),s);a.push.apply(a,zc(V.value,t,n,r,i));continue}if($v(h)){var V=h.options["=".concat(m)];if(!V){if(!Intl.PluralRules)throw new Ei(`Intl.PluralRules is not available in this environment.
|
|
514
|
+
or you can use record.mirror to access the mirror instance during recording.`;let sg={map:{},getId(){return console.error(wo),-1},getNode(){return console.error(wo),null},removeNodeFromMap(){console.error(wo)},has(){return console.error(wo),!1},reset(){console.error(wo)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(sg=new Proxy(sg,{get(e,t,n){return t==="map"&&console.error(wo),Reflect.get(e,t,n)}}));function xh(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){mv(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>xh(e,t,o||{},!0)}function Ah(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function PL(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ol(e,t,n,r,i){if(!e)return!1;const o=PL(e);if(!o)return!1;const s=og(t,n),a=od(o,s);let c=-1;return a<0?!1:(r&&(c=od(o,og(null,r))),a>-1&&c<0?!0:a<c)}const ag={};function pv(e){const t=ag[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return ag[e]=r.bind(window)}function Ai(...e){return pv("requestAnimationFrame")(...e)}function mv(...e){return pv("setTimeout")(...e)}var zo=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(zo||{});let jc;function LL(e){jc=e}const tf=e=>jc?(...n)=>{try{return e(...n)}catch(r){if(jc&&jc(r)===!0)return()=>{};throw r}}:e;var Ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DL=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var vc=0;vc<Ao.length;vc++)DL[Ao.charCodeAt(vc)]=vc;var BL=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=Ao[t[n]>>2],i+=Ao[(t[n]&3)<<4|t[n+1]>>4],i+=Ao[(t[n+1]&15)<<2|t[n+2]>>6],i+=Ao[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const cg=new Map;function FL(e,t){let n=cg.get(e);return n||(n=new Map,cg.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const gv=(e,t,n)=>{if(!e||!(_v(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=FL(n,r);let o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o};function Gc(e,t,n){if(e instanceof Array)return e.map(r=>Gc(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=BL(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Gc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Gc(e.data,t,n),e.width,e.height]};if(_v(e,t)||typeof e=="object"){const r=e.constructor.name,i=gv(e,t,n);return{rr_type:r,index:i}}}}return e}const yv=(e,t,n)=>e.map(r=>Gc(r,t,n)),_v=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function HL(e,t,n,r,i){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Ah(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...h){return ol(this.canvas,n,r,i,!0)||mv(()=>{const d=yv(h,t,this);e(this.canvas,{type:zo["2D"],property:a,args:d})},0),u.apply(this,h)}});o.push(c)}catch{const c=xh(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:zo["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function UL(e){return e==="experimental-webgl"?"webgl":e}function ug(e,t,n,r,i){const o=[];try{const s=Ah(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!ol(this,t,n,r,!0)){const h=UL(c);if("__context"in this||(this.__context=h),i&&["webgl","webgl2"].includes(h))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function lg(e,t,n,r,i,o,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const h of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h))try{if(typeof e[h]!="function")continue;const d=Ah(e,h,function(m){return function(...g){const w=m.apply(this,g);if(gv(w,a,this),"tagName"in this.canvas&&!ol(this.canvas,r,i,o,!0)){const T=yv(g,a,this),L={type:t,property:h,args:T};n(this.canvas,L)}return w}});c.push(d)}catch{const d=xh(e,h,{set(m){n(this.canvas,{type:t,property:h,args:[m],setter:!0})}});c.push(d)}return c}function $L(e,t,n,r,i,o){const s=[];return s.push(...lg(t.WebGLRenderingContext.prototype,zo.WebGL,e,n,r,i,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...lg(t.WebGL2RenderingContext.prototype,zo.WebGL2,e,n,r,i,o,t)),()=>{s.forEach(a=>a())}}const jL='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function GL(){const e=new Blob([jL]);return URL.createObjectURL(e)}class WL{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:o,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&LL(s),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&tf(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}tf(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,o),s&&typeof n=="number"){const c=ug(t,r,i,o,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Ai(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(GL());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:c}=r;this.mutationCb({id:i,type:zo["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=Ai(n)};t=Ai(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const o=ug(t,n,r,i,!1),s=HL(this.processMutation.bind(this),t,n,r,i),a=$L(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}getCanvasElements(t,n,r){const i=[],o=s=>{s.querySelectorAll("canvas").forEach(a=>{ol(a,t,n,r)||i.push(a)})};for(const s of this.windows){const a=s.deref();let c;try{c=a&&a.document}catch{}c&&o(c)}for(const s of this.shadowDoms){const a=s.deref();a&&o(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:o,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,d=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,s,a)).forEach(w=>{const T=this.mirror.getId(w);if(!(!this.mirror.hasNode(w)||!w.width||!w.height||this.snapshotInProgressMap.get(T))){if(this.snapshotInProgressMap.set(T,!0),!n&&["webgl","webgl2"].includes(w.__context)){const L=w.getContext(w.__context);L?.getContextAttributes()?.preserveDrawingBuffer===!1&&L.clear(L.COLOR_BUFFER_BIT)}createImageBitmap(w).then(L=>{this.worker?.postMessage({id:T,bitmap:L,width:w.width,height:w.height,dataURLOptions:c,maxCanvasSize:u},[L])}).catch(L=>{tf(()=>{throw this.snapshotInProgressMap.delete(T),L})()})}}),!0)}startPendingCanvasMutationFlusher(){Ai(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Ai(t)};Ai(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Ai(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(s=>{const{type:a,...c}=s;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}OL();var fg;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(fg||(fg={}));const dg={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},zL="ReplayCanvas",wc=1280,VL=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,wc):wc,n?Math.min(n,wc):wc]};let i;const o=new Promise(s=>i=s);return{name:zL,getOptions(){const{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const h=new WL({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return i(h),h},...dg[s]||dg.medium}},async snapshot(s,a){(await o).snapshot(s,a)}}},qL=VL;function gr(e=0){return((pn()||performance.timeOrigin)+e)/1e3}function XL(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=tb(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return pn()?[...t,["http.request.redirect_start",gr(e.redirectStart)],["http.request.fetch_start",gr(e.fetchStart)],["http.request.domain_lookup_start",gr(e.domainLookupStart)],["http.request.domain_lookup_end",gr(e.domainLookupEnd)],["http.request.connect_start",gr(e.connectStart)],["http.request.secure_connection_start",gr(e.secureConnectionStart)],["http.request.connection_end",gr(e.connectEnd)],["http.request.request_start",gr(e.requestStart)],["http.request.response_start",gr(e.responseStart)],["http.request.response_end",gr(e.responseEnd)]]:t}const hg=new WeakMap,nf=new Map,kh={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function bv(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c}={...kh,...t},u=typeof o=="function"?o:m=>!0,h=m=>KL(m,a),d={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(g=>{if(g.op==="http.client"){const w=nf.get(g.span_id);w&&(g.timestamp=w/1e3,nf.delete(g.span_id))}}),m)),i&&dk(m=>{if(m.response){const g=hg.get(m.response);g&&m.endTimestamp&&nf.set(g,m.endTimestamp)}}),qd(m=>{const g=QA(m,u,h,d);if(m.response&&m.fetchData.__span&&hg.set(m.response,m.fetchData.__span),g){const w=vv(m.fetchData.url),T=w?Hi(w).host:void 0;g.setAttributes({"http.url":w,"server.address":T}),s&&pg(g),c?.(g,{headers:m.headers})}})),r&&ah(m=>{const g=JL(m,u,h,d);if(g){s&&pg(g);let w;try{w=new Headers(m.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(g,{headers:w})}})}function YL(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function pg(e){const{url:t}=Ze(e).data;if(!t||typeof t!="string")return;const n=zi("resource",({entries:r})=>{r.forEach(i=>{YL(i)&&i.name.endsWith(t)&&(XL(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function KL(e,t){const n=Yi();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?or(r.toString(),t)||o&&or(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?or(e,t):r}}function JL(e,t,n,r){const i=e.xhr,o=i?.[Lr];if(!i||i.__sentry_own_request__||!o)return;const{url:s,method:a}=o,c=gi()&&t(s);if(e.endTimestamp&&c){const T=i.__sentry_xhr_span_id__;if(!T)return;const L=r[T];L&&o.status_code!==void 0&&(Ps(L,o.status_code),L.end(),delete r[T]);return}const u=vv(s),h=Hi(u||s),d=y_(s),m=!!Qt(),g=c&&m?Qi({name:`${a} ${d}`,attributes:{url:s,type:"xhr","http.method":a,"http.url":u,"server.address":h?.host,[Bt]:"auto.http.browser",[Un]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new Wr;i.__sentry_xhr_span_id__=g.spanContext().spanId,r[i.__sentry_xhr_span_id__]=g,n(s)&&ZL(i,gi()&&m?g:void 0);const w=Ae();return w&&w.emit("beforeOutgoingRequestSpan",g,e),g}function ZL(e,t){const{"sentry-trace":n,baggage:r}=Wd({span:t});n&&QL(e,n,r)}function QL(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!eD(i))&&e.setRequestHeader("baggage",n)}}catch{}}function eD(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function vv(e){try{return new URL(e,De.location.origin).href}catch{return}}function tD(){De.document?De.document.addEventListener("visibilitychange",()=>{const e=Qt();if(!e)return;const t=Jt(e);if(De.document.hidden&&t){const n="cancelled",{op:r,status:i}=Ze(t);ot&&q.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:Gt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ot&&q.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const nD=3600,wv="sentry_previous_trace",rD="sentry.previous_trace";function iD(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?aD():void 0;e.on("spanStart",s=>{if(Jt(s)!==s)return;const a=et().getPropagationContext();i=oD(i,s,a),r&&sD(i)});let o=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const a=et(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(sd(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=sd(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[a0]:i.sampleRate}})}function oD(e,t,n){const r=Ze(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Uu])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=nD&&(ot&&q.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[NT]:"previous_trace"}}),t.setAttribute(rD,`${s.traceId}-${s.spanId}-${sd(s)?1:0}`)),o)}function sD(e){try{De.sessionStorage.setItem(wv,JSON.stringify(e))}catch(t){ot&&q.warn("Could not store previous trace in sessionStorage",t)}}function aD(){try{const e=De.sessionStorage?.getItem(wv);return JSON.parse(e)}catch{return}}function sd(e){return e.traceFlags===1}const cD="BrowserTracing",uD={...Nc,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...kh},lD=(e={})=>{const t={name:void 0,source:void 0},n=De.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:h,idleTimeout:d,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:w,traceFetch:T,traceXHR:L,trackFetchStreamPerformance:U,shouldCreateSpanForRequest:K,enableHTTPTimings:V,ignoreResourceSpans:F,ignorePerformanceApiSpans:Y,instrumentPageLoad:D,instrumentNavigation:G,detectRedirects:ae,linkPreviousTrace:P,consistentTraceSampling:j,onRequestSpanStart:z}={...uD,...e};let X,se;function we(fe,ce,Q=!0){const _e=ce.op==="pageload",pe=h?h(ce):ce,le=pe.attributes||{};if(ce.name!==pe.name&&(le[Fn]="custom",pe.attributes=le),!Q){const oe=Ki();Qi({...pe,startTime:oe}).end(oe);return}t.name=pe.name,t.source=le[Fn];const be=M0(pe,{idleTimeout:d,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:_e,beforeSpanEnd:oe=>{X?.(),GR(oe,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:F,ignorePerformanceApiSpans:Y}),gg(fe,void 0);const Be=et(),bt=Be.getPropagationContext();Be.setPropagationContext({...bt,traceId:be.spanContext().traceId,sampled:Ji(be),dsc:ar(oe)})}});gg(fe,be);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&fe.emit("idleSpanEnableAutoFinish",be)}_e&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:cD,setup(fe){if(S0(),X=LR({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:fe}),r&&fN(),i&&QR(),s&&$e.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?BR():o&&DR(),a&&FR(),ae&&n){const Q=()=>{se=qt()};addEventListener("click",Q,{capture:!0}),addEventListener("keydown",Q,{capture:!0,passive:!0})}function ce(){const Q=Us(fe);Q&&!Ze(Q).timestamp&&(ot&&q.log(`[Tracing] Finishing current active span with op: ${Ze(Q).op}`),Q.setAttribute(eu,"cancelled"),Q.end())}fe.on("startNavigationSpan",(Q,_e)=>{if(Ae()!==fe)return;if(_e?.isRedirect){ot&&q.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),we(fe,{op:"navigation.redirect",...Q},!1);return}ce(),Zt().setPropagationContext({traceId:Gr(),sampleRand:Math.random()});const pe=et();pe.setPropagationContext({traceId:Gr(),sampleRand:Math.random()}),pe.setSDKProcessingMetadata({normalizedRequest:void 0}),we(fe,{op:"navigation",...Q})}),fe.on("startPageLoadSpan",(Q,_e={})=>{if(Ae()!==fe)return;ce();const pe=_e.sentryTrace||mg("sentry-trace"),le=_e.baggage||mg("baggage"),be=p0(pe,le),Xe=et();Xe.setPropagationContext(be),Xe.setSDKProcessingMetadata({normalizedRequest:Qd()}),we(fe,{op:"pageload",...Q})})},afterAllSetup(fe){let ce=Yi();if(P!=="off"&&iD(fe,{linkPreviousTrace:P,consistentTraceSampling:j}),De.location){if(D){const Q=pn();Sv(fe,{name:De.location.pathname,startTime:Q?Q/1e3:void 0,attributes:{[Fn]:"url",[Bt]:"auto.pageload.browser"}})}G&&Zu(({to:Q,from:_e})=>{if(_e===void 0&&ce?.indexOf(Q)!==-1){ce=void 0;return}ce=void 0;const pe=g_(Q),le=Us(fe),be=le&&ae&&dD(le,se);Ev(fe,{name:pe?.pathname||De.location.pathname,attributes:{[Fn]:"url",[Bt]:"auto.navigation.browser"}},{url:Q,isRedirect:be})})}w&&tD(),a&&fD(fe,d,m,g,t),r&&pN(),bv(fe,{traceFetch:T,traceXHR:L,trackFetchStreamPerformance:U,tracePropagationTargets:fe.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:K,enableHTTPTimings:V,onRequestSpanStart:z})}}};function Sv(e,t,n){e.emit("startPageLoadSpan",t,n),et().setTransactionName(t.name);const r=Us(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Ev(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=et();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...Qd(),url:r}}),Us(e)}function mg(e){return De.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function fD(e,t,n,r,i){const o=De.document;let s;const a=()=>{const c="ui.action.click",u=Us(e);if(u){const h=Ze(u).op;if(["navigation","pageload"].includes(h)){ot&&q.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(eu,"interactionInterrupted"),s.end(),s=void 0),!i.name){ot&&q.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=M0({name:i.name,op:c,attributes:{[Fn]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const Tv="_sentry_idleSpan";function Us(e){return e[Tv]}function gg(e,t){Rn(e,Tv,t)}const yg=.3;function dD(e,t){const n=Ze(e),r=Ki(),i=n.start_timestamp;return!(r-i>yg||t&&r-t<=yg)}function Vo(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function hD(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Vo(n);return i=>r.then(o=>i(o.transaction(t,"readwrite").objectStore(t)))}function Ch(e){return Vo(e.getAllKeys())}function pD(e,t,n){return e(r=>Ch(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Vo(r.transaction)}))}function mD(e,t,n){return e(r=>Ch(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Vo(r.transaction)}))}function gD(e){return e(t=>Ch(t).then(n=>{const r=n[0];if(r!=null)return Vo(t.get(r)).then(i=>(t.delete(r),Vo(t.transaction).then(()=>i)))}))}function yD(e){let t;function n(){return t==null&&(t=hD(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await ru(r);await pD(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await ru(r);await mD(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await gD(n());if(r)return oI(r)}catch{}}}}function _D(e){return t=>{const n=e({...t,createStore:yD});return De.addEventListener("online",async r=>{await n.flush()}),n}}function bD(e=uh){return _D(Ax(e))}const _g=1e6,Wc=String(0),vD="main",Tu=De.navigator;let Iv="",xv="",Av="",ad=Tu?.userAgent||"",kv="";const wD=Tu?.language||Tu?.languages?.[0]||"";function SD(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const bg=Tu?.userAgentData;SD(bg)&&bg.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Iv=e.platform||"",Av=e.architecture||"",kv=e.model||"",xv=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];ad=`${t.brand} ${t.version}`}}).catch(e=>{});function ED(e){return!("thread_metadata"in e)}function TD(e){return ED(e)?AD(e):e}function ID(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&ot&&q.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function xD(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=ID(r),o=TD(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:qt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:qt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||$u,runtime:{name:"javascript",version:De.navigator.userAgent},os:{name:Iv,version:xv,build_number:ad},device:{locale:wD,model:kv,manufacturer:ad,architecture:Av,is_emulator:!1},debug_meta:{images:RD(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||En(),trace_id:i,active_thread_id:Wc,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function Cv(e){return Ze(e).op==="pageload"}function AD(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Wc]:{name:vD}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,s=pn(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,h)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[h]={elapsed_since_start_ns:((u.timestamp+c-o)*_g).toFixed(0),stack_id:t,thread_id:Wc};return}let d=e.stacks[u.stackId];const m=[];for(;d;){m.push(d.frameId);const w=e.frames[d.frameId];w&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:w.name,abs_path:typeof w.resourceId=="number"?e.resources[w.resourceId]:void 0,lineno:w.line,colno:w.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const g={elapsed_since_start_ns:((u.timestamp+c-o)*_g).toFixed(0),stack_id:n,thread_id:Wc};r.stacks[n]=m,r.samples[h]=g,n++}),r}function kD(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function CD(e){const t=[];return Gi(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function RD(e){const r=Ae()?.getOptions()?.stackParser;return r?LI(r,e):[]}function ND(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(ot&&q.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(ot&&q.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function OD(e){return e.samples.length<2?(ot&&q.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(ot&&q.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Rv=!1;const Nv=3e4;function MD(e){return typeof e=="function"}function PD(){const e=De.Profiler;if(!MD(e)){ot&&q.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Nv/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{ot&&(q.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),q.log("[Profiling] Disabling profiling for current user session.")),Rv=!0}}function vg(e){if(Rv)return ot&&q.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return ot&&q.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=Ae()?.getOptions();if(!n)return ot&&q.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return ND(r)?r?(r===!0?!0:Math.random()<r)?!0:(ot&&q.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(ot&&q.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(ot&&q.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function LD(e,t,n,r){return OD(n)?xD(e,t,n,r):null}const Di=new Map;function DD(){return Di.size}function BD(e){const t=Di.get(e);return t&&Di.delete(e),t}function FD(e,t){if(Di.set(e,t),Di.size>30){const n=Di.keys().next().value;Di.delete(n)}}function wg(e){let t;Cv(e)&&(t=qt()*1e3);const n=PD();if(!n)return;ot&&q.log(`[Profiling] started profiling span: ${Ze(e).description}`);const r=En();et().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n)return n.stop().then(c=>{if(o&&(De.clearTimeout(o),o=void 0),ot&&q.log(`[Profiling] stopped profiling of span: ${Ze(e).description}`),!c){ot&&q.log(`[Profiling] profiler returned null profile for: ${Ze(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}FD(r,c)}).catch(c=>{ot&&q.log("[Profiling] error while stopping profiler:",c)})}let o=De.setTimeout(()=>{ot&&q.log("[Profiling] max profile duration elapsed, stopping profiling for:",Ze(e).description),i()},Nv);const s=e.end.bind(e);function a(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}e.end=a}const HD="BrowserProfiling",UD=()=>({name:HD,setup(e){const t=Qt(),n=t&&Jt(t);n&&Cv(n)&&vg(n)&&wg(n),e.on("spanStart",r=>{r===Jt(r)&&vg(r)&&wg(r)}),e.on("beforeEnvelope",r=>{if(!DD())return;const i=CD(r);if(!i.length)return;const o=[];for(const s of i){const a=s?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){ot&&q.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){ot&&q.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const h=BD(c);if(!h){ot&&q.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const d=LD(c,u,h,s);d&&o.push(d)}kD(r,o)})}}),$D=UD,jD="SpotlightBrowser",GD=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:jD,setup:()=>{ot&&q.log("Using Sidecar URL",t)},processEvent:n=>VD(n)?null:n,afterAllSetup:n=>{WD(n,t)}}};function WD(e,t){const n=sh("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){q.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:ru(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,q.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const zD=GD;function VD(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const qD=()=>({name:"LaunchDarkly",processEvent(e,t,n){return ta(e)}});function XD(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Po(e,t.value),Lo(e,t.value)}}}const YD=()=>({name:"OpenFeature",processEvent(e,t,n){return ta(e)}});class KD{after(t,n){Po(n.flagKey,n.value),Lo(n.flagKey,n.value)}error(t,n,r){Po(t.flagKey,t.defaultValue),Lo(t.flagKey,t.defaultValue)}}const JD=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;Sn(t,"isEnabled",ZD)},processEvent(t,n,r){return ta(t)}});function ZD(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Po(n,r),Lo(n,r)):ot&&q.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const QD=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Po(n.gate.name,n.gate.value),Lo(n.gate.name,n.gate.value)})},processEvent(t,n,r){return ta(t)}});async function eB(){const e=Ae();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const tB="WebWorker",nB=({worker:e})=>({name:tB,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>Sg(t))},addWorker:t=>Sg(t)});function Sg(e){e.addEventListener("message",t=>{iB(t.data)&&(t.stopImmediatePropagation(),ot&&q.log("Sentry debugId web worker message received",t.data),De._sentryDebugIds={...t.data._sentryDebugIds,...De._sentryDebugIds})})}function rB({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function iB(e){return $r(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&($r(e._sentryDebugIds)||e._sentryDebugIds===void 0)}const oB=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:$_,OpenFeatureIntegrationHook:KD,SDK_VERSION:Br,SEMANTIC_ATTRIBUTE_SENTRY_OP:Un,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Bt,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:Uu,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:Fn,Scope:sr,WINDOW:De,addBreadcrumb:Er,addEventProcessor:H0,addIntegration:Mf,breadcrumbsIntegration:fb,browserApiErrorsIntegration:db,browserProfilingIntegration:$D,browserSessionIntegration:hb,browserTracingIntegration:lD,buildLaunchDarklyFlagUsedHandler:XD,captureConsoleIntegration:iA,captureEvent:ea,captureException:Wi,captureFeedback:__,captureMessage:au,captureSession:Of,chromeStackLineParser:sb,close:ZI,consoleLoggingIntegration:ak,contextLinesIntegration:FO,continueTrace:vI,createTransport:e_,createUserFeedbackEnvelope:DN,dedupeIntegration:l_,defaultRequestInstrumentationOptions:kh,defaultStackLineParsers:cb,defaultStackParser:ub,diagnoseSdkConnectivity:eB,endSession:jd,eventFiltersIntegration:o_,eventFromException:H_,eventFromMessage:U_,exceptionFromError:qu,extraErrorDataIntegration:hA,featureFlagsIntegration:KA,feedbackAsyncIntegration:LC,feedbackIntegration:Em,feedbackSyncIntegration:Em,flush:JI,forceLoad:mO,functionToStringIntegration:i_,geckoStackLineParser:ab,getActiveSpan:Qt,getClient:Ae,getCurrentScope:et,getDefaultIntegrations:_b,getFeedback:zk,getGlobalScope:Hu,getIsolationScope:Zt,getReplay:kL,getRootSpan:Jt,getSpanDescendants:xs,getSpanStatusFromHttpCode:c0,getTraceData:Wd,globalHandlersIntegration:pb,graphqlClientIntegration:VO,httpClientIntegration:TO,httpContextIntegration:gb,inboundFiltersIntegration:s_,init:pO,instrumentOutgoingRequests:bv,instrumentSupabaseClient:p_,isEnabled:F0,isInitialized:QI,lastEventId:B0,launchDarklyIntegration:qD,lazyLoadIntegration:B_,linkedErrorsIntegration:yb,logger:jC,makeBrowserOfflineTransport:bD,makeFetchTransport:uh,makeMultiplexedTransport:Rx,moduleMetadataIntegration:eA,onLoad:gO,openFeatureIntegration:YD,opera10StackLineParser:ON,opera11StackLineParser:LN,parameterize:r_,registerSpanErrorInstrumentation:S0,registerWebWorker:rB,replayCanvasIntegration:qL,replayIntegration:IL,reportingObserverIntegration:wO,rewriteFramesIntegration:SA,sendFeedback:E_,setContext:D0,setCurrentClient:Y0,setExtra:qI,setExtras:VI,setHttpStatus:Ps,setMeasurement:R0,setTag:YI,setTags:XI,setUser:KI,showReportDialog:yO,spanToBaggageHeader:KT,spanToJSON:Ze,spanToTraceHeader:_0,spotlightBrowserIntegration:zD,startBrowserTracingNavigationSpan:Ev,startBrowserTracingPageLoadSpan:Sv,startInactiveSpan:Qi,startNewTrace:SI,startSession:Nf,startSpan:Gu,startSpanManual:bI,statsigIntegration:QD,supabaseIntegration:LA,suppressTracing:wI,thirdPartyErrorFilterIntegration:zA,unleashIntegration:JD,updateSpanName:WT,webWorkerIntegration:nB,winjsStackLineParser:CN,withActiveSpan:Zs,withIsolationScope:kT,withScope:Xn,zodErrorsIntegration:WA},Symbol.toStringTag,{value:"Module"})),sl=e=>{typeof window<"u"&&window.Sentry&&e(oB)},{useEffect:sB}=await Nn("react"),Ov=(e,t)=>sB(()=>{const n=e().catch(r=>{console.error("AsyncEffect error: ",r),sl(i=>i.captureException("AsyncEffect error: "+r.message,{extra:r}))});return function(){n.then(r=>{typeof r=="function"&&r()})}},t),{createContext:aB,useMemo:cB,useRef:uB,useState:lB}=await Nn("react"),Mv=aB(null),T3=e=>{const{writeKey:t,userId:n,traits:r,children:i}=e,o=uB(null),[s,a]=lB(!1);Ov(async()=>{if(!t){console.log("[Analytics] No writeKey provided");return}const u=navigator.userAgent;if(X1(u)){console.log("[Analytics] Skipping load: bot detected");return}try{const{AnalyticsBrowser:d}=await dw(async()=>{const{AnalyticsBrowser:m}=await import("../index-vgC1T0K1.js").then(g=>g.q);return{AnalyticsBrowser:m}},__vite__mapDeps([0,1,2,3,4]));o.current=d.load({writeKey:t}),n&&o.current.identify(n,r),a(!0)}catch(d){console.error("[Analytics] Failed to initialize:",d),o.current=null}},[t,n,r]);const c=cB(()=>!o.current||!s?{isInitialized:!1,track:()=>{},identify:()=>{},page:()=>{}}:{isInitialized:!0,track:(u,h)=>{o.current?.track(u,h)},identify:(u,h)=>{o.current?.identify(u,h)},page:(u,h)=>{o.current?.page(u,h)}},[s]);return sy.jsx(Mv.Provider,{value:c,children:i})},{createContext:fB}=await Nn("react"),Pv=fB(null);function _r(e,t){var n=t&&t.cache?t.cache:_B,r=t&&t.serializer?t.serializer:gB,i=t&&t.strategy?t.strategy:pB;return i(e,{cache:n,serializer:r})}function dB(e){return e==null||typeof e=="number"||typeof e=="boolean"}function hB(e,t,n,r){var i=dB(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function Lv(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function Dv(e,t,n,r,i){return n.bind(t,e,r,i)}function pB(e,t){var n=e.length===1?hB:Lv;return Dv(e,this,n,t.cache.create(),t.serializer)}function mB(e,t){return Dv(e,this,Lv,t.cache.create(),t.serializer)}var gB=function(){return JSON.stringify(arguments)},yB=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),_B={create:function(){return new yB}},br={variadic:mB},ft;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ft||(ft={}));var Nt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Nt||(Nt={}));var qo;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(qo||(qo={}));function Eg(e){return e.type===Nt.literal}function bB(e){return e.type===Nt.argument}function Bv(e){return e.type===Nt.number}function Fv(e){return e.type===Nt.date}function Hv(e){return e.type===Nt.time}function Uv(e){return e.type===Nt.select}function $v(e){return e.type===Nt.plural}function vB(e){return e.type===Nt.pound}function jv(e){return e.type===Nt.tag}function Gv(e){return!!(e&&typeof e=="object"&&e.type===qo.number)}function cd(e){return!!(e&&typeof e=="object"&&e.type===qo.dateTime)}var Wv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wB=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function SB(e){var t={};return e.replace(wB,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var EB=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function TB(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(EB).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function IB(e){return e.replace(/^(.*?)-/,"")}var Tg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zv=/^(@+)?(\+|#+)?[rs]?$/g,xB=/(\*)(0+)|(#+)(0+)|(0+)/g,Vv=/^(0+)$/;function Ig(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(zv,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function qv(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function AB(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Vv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xg(e){var t={},n=qv(e);return n||t}function kB(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=IB(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Le(Le(Le({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return Le(Le({},c),xg(u))},{}));continue;case"engineering":t=Le(Le(Le({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return Le(Le({},c),xg(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(xB,function(c,u,h,d,m,g){if(u)t.minimumIntegerDigits=h.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Vv.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Tg.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Tg,function(c,u,h,d,m,g){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=Le(Le({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Le(Le({},t),Ig(o)));continue}if(zv.test(i.stem)){t=Le(Le({},t),Ig(i.stem));continue}var s=qv(i.stem);s&&(t=Le(Le({},t),s));var a=AB(i.stem);a&&(t=Le(Le({},t),a))}return t}var Sc={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function CB(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=RB(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function RB(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Sc[r||""]||Sc[n||""]||Sc["".concat(n,"-001")]||Sc["001"];return i[0]}var rf,NB=new RegExp("^".concat(Wv.source,"*")),OB=new RegExp("".concat(Wv.source,"*$"));function ht(e,t){return{start:e,end:t}}var MB=!!String.prototype.startsWith&&"_a".startsWith("a",1),PB=!!String.fromCodePoint,LB=!!Object.fromEntries,DB=!!String.prototype.codePointAt,BB=!!String.prototype.trimStart,FB=!!String.prototype.trimEnd,HB=!!Number.isSafeInteger,UB=HB?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ud=!0;try{var $B=Yv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ud=((rf=$B.exec("a"))===null||rf===void 0?void 0:rf[0])==="a"}catch{ud=!1}var Ag=MB?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ld=PB?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},kg=LB?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Xv=DB?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},jB=BB?function(t){return t.trimStart()}:function(t){return t.replace(NB,"")},GB=FB?function(t){return t.trimEnd()}:function(t){return t.replace(OB,"")};function Yv(e,t){return new RegExp(e,t)}var fd;if(ud){var Cg=Yv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fd=function(t,n){var r;Cg.lastIndex=n;var i=Cg.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else fd=function(t,n){for(var r=[];;){var i=Xv(t,n);if(i===void 0||Kv(i)||qB(i))break;r.push(i),n+=i>=65536?2:1}return ld.apply(void 0,r)};var WB=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Nt.pound,location:ht(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ft.UNMATCHED_CLOSING_TAG,ht(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&dd(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Nt.literal,value:"<".concat(i,"/>"),location:ht(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!dd(this.char()))return this.error(ft.INVALID_TAG,ht(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ft.UNMATCHED_CLOSING_TAG,ht(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Nt.tag,value:i,children:s,location:ht(r,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,ht(a,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,ht(r,this.clonePosition()))}else return this.error(ft.INVALID_TAG,ht(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&VB(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=ht(r,this.clonePosition());return{val:{type:Nt.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zB(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ld.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ld(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,ht(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,ht(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Nt.argument,value:i,location:ht(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(ft.MALFORMED_ARGUMENT,ht(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fd(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=ht(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,ht(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=GB(d.val);if(m.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,ht(this.clonePosition(),this.clonePosition()));var g=ht(h,this.clonePosition());u={style:m,styleLocation:g}}var w=this.tryParseArgumentClose(i);if(w.err)return w;var T=ht(i,this.clonePosition());if(u&&Ag(u?.style,"::",0)){var L=jB(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(L,u.styleLocation);return d.err?d:{val:{type:Nt.number,value:r,location:T,style:d.val},err:null}}else{if(L.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,T);var U=L;this.locale&&(U=CB(L,this.locale));var m={type:qo.dateTime,pattern:U,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?SB(U):{}},K=a==="date"?Nt.date:Nt.time;return{val:{type:K,value:r,location:T,style:m},err:null}}}return{val:{type:a==="number"?Nt.number:a==="date"?Nt.date:Nt.time,value:r,location:T,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var V=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,ht(V,Le({},V)));this.bumpSpace();var F=this.parseIdentifierIfPossible(),Y=0;if(a!=="select"&&F.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ht(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),F=this.parseIdentifierIfPossible(),Y=d.val}var D=this.tryParsePluralOrSelectOptions(t,a,n,F);if(D.err)return D;var w=this.tryParseArgumentClose(i);if(w.err)return w;var G=ht(i,this.clonePosition());return a==="select"?{val:{type:Nt.select,value:r,options:kg(D.val),location:G},err:null}:{val:{type:Nt.plural,value:r,options:kg(D.val),offset:Y,pluralType:a==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,ht(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,ht(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ht(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=TB(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,n)}return{val:{type:qo.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?kB(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=ht(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ht(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,n,r);if(w.err)return w;var T=this.tryParseArgumentClose(g);if(T.err)return T;a.push([u,{value:w.val,location:ht(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return a.length===0?this.error(n==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ht(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,ht(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=ht(i,this.clonePosition());return o?(s*=r,UB(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Xv(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ag(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Kv(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function dd(e){return e>=97&&e<=122||e>=65&&e<=90}function zB(e){return dd(e)||e===47}function VB(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Kv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function qB(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function hd(e){e.forEach(function(t){if(delete t.location,Uv(t)||$v(t))for(var n in t.options)delete t.options[n].location,hd(t.options[n].value);else Bv(t)&&Gv(t.style)||(Fv(t)||Hv(t))&&cd(t.style)?delete t.style.location:jv(t)&&hd(t.children)})}function XB(e,t){t===void 0&&(t={}),t=Le({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new WB(e,t).parse();if(n.err){var r=SyntaxError(ft[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||hd(n.val),n.val}var Tr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Tr||(Tr={}));var Ei=function(e){ur(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rg=function(e){ur(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Tr.INVALID_VALUE,o)||this}return t}(Ei),YB=function(e){ur(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Tr.INVALID_VALUE,i)||this}return t}(Ei),KB=function(e){ur(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Tr.MISSING_VALUE,r)||this}return t}(Ei),bn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(bn||(bn={}));function JB(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==bn.literal||n.type!==bn.literal?t.push(n):r.value+=n.value,t},[])}function ZB(e){return typeof e=="function"}function zc(e,t,n,r,i,o,s){if(e.length===1&&Eg(e[0]))return[{type:bn.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var h=u[c];if(Eg(h)){a.push({type:bn.literal,value:h.value});continue}if(vB(h)){typeof o=="number"&&a.push({type:bn.literal,value:n.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new KB(d,s);var m=i[d];if(bB(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?bn.literal:bn.object,value:m});continue}if(Fv(h)){var g=typeof h.style=="string"?r.date[h.style]:cd(h.style)?h.style.parsedOptions:void 0;a.push({type:bn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Hv(h)){var g=typeof h.style=="string"?r.time[h.style]:cd(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:bn.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Bv(h)){var g=typeof h.style=="string"?r.number[h.style]:Gv(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:bn.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(jv(h)){var w=h.children,T=h.value,L=i[T];if(!ZB(L))throw new YB(T,"function",s);var U=zc(w,t,n,r,i,o),K=L(U.map(function(Y){return Y.value}));Array.isArray(K)||(K=[K]),a.push.apply(a,K.map(function(Y){return{type:typeof Y=="string"?bn.literal:bn.object,value:Y}}))}if(Uv(h)){var V=h.options[m]||h.options.other;if(!V)throw new Rg(h.value,m,Object.keys(h.options),s);a.push.apply(a,zc(V.value,t,n,r,i));continue}if($v(h)){var V=h.options["=".concat(m)];if(!V){if(!Intl.PluralRules)throw new Ei(`Intl.PluralRules is not available in this environment.
|
|
515
515
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
516
516
|
`,Tr.MISSING_INTL_API,s);var F=n.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));V=h.options[F]||h.options.other}if(!V)throw new Rg(h.value,m,Object.keys(h.options),s);a.push.apply(a,zc(V.value,t,n,r,i,m-(h.offset||0)));continue}}return JB(a)}function QB(e,t){return t?Le(Le(Le({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Le(Le({},e[r]),t[r]||{}),n},{})):e}function eF(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=QB(e[r],t[r]),n},Le({},e)):e}function of(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function tF(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_r(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Pr([void 0],n,!1)))},{cache:of(e.number),strategy:br.variadic}),getDateTimeFormat:_r(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Pr([void 0],n,!1)))},{cache:of(e.dateTime),strategy:br.variadic}),getPluralRules:_r(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Pr([void 0],n,!1)))},{cache:of(e.pluralRules),strategy:br.variadic})}}var Jv=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var h=u.reduce(function(d,m){return!d.length||m.type!==bn.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return zc(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=hw(s,["formatters"]);this.ast=e.__parse(t,Le(Le({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=eF(e.formats,r),this.formatters=i&&i.formatters||tF(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=XB,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Vi;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Vi||(Vi={}));var la=function(e){ur(t,e);function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
|
517
517
|
`).concat(s?`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../__federation_fn_import-BZzr9p5I.js";import{C as o,b as t,G as r,T as h,d as i,_ as C,j as c,a as n,j as T,k as l,u,w as _,e as d}from"../emotion-react.browser.esm-B33-U3sx.js";import"../emotion-use-insertion-effect-with-fallbacks.browser.esm-DBOXbAB5.js";export{o as CacheProvider,t as ClassNames,r as Global,h as ThemeContext,i as ThemeProvider,C as __unsafe_useEmotionCache,c as createElement,n as css,T as jsx,l as keyframes,u as useTheme,_ as withEmotionCache,d as withTheme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{importShared as O}from"../__federation_fn_import-
|
|
1
|
+
import{importShared as O}from"../__federation_fn_import-BZzr9p5I.js";import{m as E,g as I,s as L,_ as M,r as H,u as N,i as U}from"../emotion-use-insertion-effect-with-fallbacks.browser.esm-DBOXbAB5.js";var D=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=E(function(a){return D.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91});const{withEmotionCache:B,ThemeContext:V}=await O("@emotion/react"),m=await O("react");var W=q,X=function(e){return e!=="theme"},_=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?W:X},A=function(e,i,l){var t;if(i){var o=i.shouldForwardProp;t=e.__emotion_forwardProp&&o?function(d){return e.__emotion_forwardProp(d)&&o(d)}:o}return typeof t!="function"&&l&&(t=e.__emotion_forwardProp),t},j=function(e){var i=e.cache,l=e.serialized,t=e.isStringTag;return H(i,l,t),N(function(){return U(i,l,t)}),null},Y=function a(e,i){var l=e.__emotion_real===e,t=l&&e.__emotion_base||e,o,d;i!==void 0&&(o=i.label,d=i.target);var b=A(e,i,l),S=b||_(t),k=!S("as");return function(){var u=arguments,s=l&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&s.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)s.push.apply(s,u);else{var P=u[0];s.push(P[0]);for(var F=u.length,f=1;f<F;f++)s.push(u[f],P[f])}var n=B(function(r,c,h){var x=k&&r.as||t,p="",w=[],g=r;if(r.theme==null){g={};for(var T in r)g[T]=r[T];g.theme=m.useContext(V)}typeof r.className=="string"?p=I(c.registered,w,r.className):r.className!=null&&(p=r.className+" ");var C=L(s.concat(w),c.registered,g);p+=c.key+"-"+C.name,d!==void 0&&(p+=" "+d);var z=k&&b===void 0?_(x):S,y={};for(var v in r)k&&v==="as"||z(v)&&(y[v]=r[v]);return y.className=p,h&&(y.ref=h),m.createElement(m.Fragment,null,m.createElement(j,{cache:c,serialized:C,isStringTag:typeof x=="string"}),m.createElement(x,y))});return n.displayName=o!==void 0?o:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",n.defaultProps=e.defaultProps,n.__emotion_real=n,n.__emotion_base=t,n.__emotion_styles=s,n.__emotion_forwardProp=b,Object.defineProperty(n,"toString",{value:function(){return"."+d}}),n.withComponent=function(r,c){var h=a(r,M({},i,c,{shouldForwardProp:A(n,c,!0)}));return h.apply(void 0,s)},n}},G=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=Y.bind(null);G.forEach(function(a){R[a]=R(a)});export{R as default};
|