(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,988871,e=>{"use strict";var t=e.i(942347),n=e.i(939050),r=e.i(162115);if("u">typeof document){let e=document.getElementById("feedback-tool-styles-annotation-popup-css-styles");e||((e=document.createElement("style")).id="feedback-tool-styles-annotation-popup-css-styles",e.textContent='.styles-module__popup___IhzrD svg[fill=none] {\n fill: none !important;\n}\n.styles-module__popup___IhzrD svg[fill=none] :not([fill]) {\n fill: none !important;\n}\n\n@keyframes styles-module__popupEnter___AuQDN {\n from {\n opacity: 0;\n transform: translateX(-50%) scale(0.95) translateY(4px);\n }\n to {\n opacity: 1;\n transform: translateX(-50%) scale(1) translateY(0);\n }\n}\n@keyframes styles-module__popupExit___JJKQX {\n from {\n opacity: 1;\n transform: translateX(-50%) scale(1) translateY(0);\n }\n to {\n opacity: 0;\n transform: translateX(-50%) scale(0.95) translateY(4px);\n }\n}\n@keyframes styles-module__shake___jdbWe {\n 0%, 100% {\n transform: translateX(-50%) scale(1) translateY(0) translateX(0);\n }\n 20% {\n transform: translateX(-50%) scale(1) translateY(0) translateX(-3px);\n }\n 40% {\n transform: translateX(-50%) scale(1) translateY(0) translateX(3px);\n }\n 60% {\n transform: translateX(-50%) scale(1) translateY(0) translateX(-2px);\n }\n 80% {\n transform: translateX(-50%) scale(1) translateY(0) translateX(2px);\n }\n}\n.styles-module__popup___IhzrD {\n position: fixed;\n transform: translateX(-50%);\n width: 280px;\n padding: 0.75rem 1rem 14px;\n background: #1a1a1a;\n border-radius: 16px;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);\n cursor: default;\n z-index: 100001;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n will-change: transform, opacity;\n opacity: 0;\n}\n.styles-module__popup___IhzrD.styles-module__enter___L7U7N {\n animation: styles-module__popupEnter___AuQDN 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;\n}\n.styles-module__popup___IhzrD.styles-module__entered___COX-w {\n opacity: 1;\n transform: translateX(-50%) scale(1) translateY(0);\n}\n.styles-module__popup___IhzrD.styles-module__exit___5eGjE {\n animation: styles-module__popupExit___JJKQX 0.15s ease-in forwards;\n}\n.styles-module__popup___IhzrD.styles-module__entered___COX-w.styles-module__shake___jdbWe {\n animation: styles-module__shake___jdbWe 0.25s ease-out;\n}\n\n.styles-module__header___wWsSi {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 0.5625rem;\n}\n\n.styles-module__element___fTV2z {\n font-size: 0.75rem;\n font-weight: 400;\n color: rgba(255, 255, 255, 0.5);\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 1;\n}\n\n.styles-module__headerToggle___WpW0b {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n flex: 1;\n min-width: 0;\n text-align: left;\n}\n.styles-module__headerToggle___WpW0b .styles-module__element___fTV2z {\n flex: 1;\n}\n\n.styles-module__chevron___ZZJlR {\n color: rgba(255, 255, 255, 0.5);\n transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n flex-shrink: 0;\n}\n.styles-module__chevron___ZZJlR.styles-module__expanded___2Hxgv {\n transform: rotate(90deg);\n}\n\n.styles-module__stylesWrapper___pnHgy {\n display: grid;\n grid-template-rows: 0fr;\n transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);\n}\n.styles-module__stylesWrapper___pnHgy.styles-module__expanded___2Hxgv {\n grid-template-rows: 1fr;\n}\n\n.styles-module__stylesInner___YYZe2 {\n overflow: hidden;\n}\n\n.styles-module__stylesBlock___VfQKn {\n background: rgba(255, 255, 255, 0.05);\n border-radius: 0.375rem;\n padding: 0.5rem 0.625rem;\n margin-bottom: 0.5rem;\n font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;\n font-size: 0.6875rem;\n line-height: 1.5;\n}\n\n.styles-module__styleLine___1YQiD {\n color: rgba(255, 255, 255, 0.85);\n word-break: break-word;\n}\n\n.styles-module__styleProperty___84L1i {\n color: #c792ea;\n}\n\n.styles-module__styleValue___q51-h {\n color: rgba(255, 255, 255, 0.85);\n}\n\n.styles-module__timestamp___Dtpsv {\n font-size: 0.625rem;\n font-weight: 500;\n color: rgba(255, 255, 255, 0.35);\n font-variant-numeric: tabular-nums;\n margin-left: 0.5rem;\n flex-shrink: 0;\n}\n\n.styles-module__quote___mcMmQ {\n font-size: 12px;\n font-style: italic;\n color: rgba(255, 255, 255, 0.6);\n margin-bottom: 0.5rem;\n padding: 0.4rem 0.5rem;\n background: rgba(255, 255, 255, 0.05);\n border-radius: 0.25rem;\n line-height: 1.45;\n}\n\n.styles-module__textarea___jrSae {\n width: 100%;\n padding: 0.5rem 0.625rem;\n font-size: 0.8125rem;\n font-family: inherit;\n background: rgba(255, 255, 255, 0.05);\n color: #fff;\n border: 1px solid rgba(255, 255, 255, 0.15);\n border-radius: 8px;\n resize: none;\n outline: none;\n transition: border-color 0.15s ease;\n}\n.styles-module__textarea___jrSae:focus {\n border-color: #3c82f7;\n}\n.styles-module__textarea___jrSae.styles-module__green___99l3h:focus {\n border-color: #34c759;\n}\n.styles-module__textarea___jrSae::placeholder {\n color: rgba(255, 255, 255, 0.35);\n}\n.styles-module__textarea___jrSae::-webkit-scrollbar {\n width: 6px;\n}\n.styles-module__textarea___jrSae::-webkit-scrollbar-track {\n background: transparent;\n}\n.styles-module__textarea___jrSae::-webkit-scrollbar-thumb {\n background: rgba(255, 255, 255, 0.2);\n border-radius: 3px;\n}\n\n.styles-module__actions___D6x3f {\n display: flex;\n justify-content: flex-end;\n gap: 0.375rem;\n margin-top: 0.5rem;\n}\n\n.styles-module__cancel___hRjnL,\n.styles-module__submit___K-mIR {\n padding: 0.4rem 0.875rem;\n font-size: 0.75rem;\n font-weight: 500;\n border-radius: 1rem;\n border: none;\n cursor: pointer;\n transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;\n}\n\n.styles-module__cancel___hRjnL {\n background: transparent;\n color: rgba(255, 255, 255, 0.5);\n}\n.styles-module__cancel___hRjnL:hover {\n background: rgba(255, 255, 255, 0.1);\n color: rgba(255, 255, 255, 0.8);\n}\n\n.styles-module__submit___K-mIR {\n color: white;\n}\n.styles-module__submit___K-mIR:hover:not(:disabled) {\n filter: brightness(0.9);\n}\n.styles-module__submit___K-mIR:disabled {\n cursor: not-allowed;\n}\n\n.styles-module__deleteWrapper___oSjdo {\n margin-right: auto;\n}\n\n.styles-module__deleteButton___4VuAE {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n border-radius: 50%;\n border: none;\n background: transparent;\n color: rgba(255, 255, 255, 0.4);\n transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;\n}\n.styles-module__deleteButton___4VuAE:hover {\n background: rgba(255, 59, 48, 0.25);\n color: #ff3b30;\n}\n.styles-module__deleteButton___4VuAE:active {\n transform: scale(0.92);\n}\n\n.styles-module__light___6AaSQ.styles-module__popup___IhzrD {\n background: #fff;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);\n}\n.styles-module__light___6AaSQ .styles-module__element___fTV2z {\n color: rgba(0, 0, 0, 0.6);\n}\n.styles-module__light___6AaSQ .styles-module__timestamp___Dtpsv {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__chevron___ZZJlR {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__stylesBlock___VfQKn {\n background: rgba(0, 0, 0, 0.03);\n}\n.styles-module__light___6AaSQ .styles-module__styleLine___1YQiD {\n color: rgba(0, 0, 0, 0.75);\n}\n.styles-module__light___6AaSQ .styles-module__styleProperty___84L1i {\n color: #7c3aed;\n}\n.styles-module__light___6AaSQ .styles-module__styleValue___q51-h {\n color: rgba(0, 0, 0, 0.75);\n}\n.styles-module__light___6AaSQ .styles-module__quote___mcMmQ {\n color: rgba(0, 0, 0, 0.55);\n background: rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___6AaSQ .styles-module__textarea___jrSae {\n background: rgba(0, 0, 0, 0.03);\n color: #1a1a1a;\n border-color: rgba(0, 0, 0, 0.12);\n}\n.styles-module__light___6AaSQ .styles-module__textarea___jrSae::placeholder {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__textarea___jrSae::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n}\n.styles-module__light___6AaSQ .styles-module__cancel___hRjnL {\n color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___6AaSQ .styles-module__cancel___hRjnL:hover {\n background: rgba(0, 0, 0, 0.06);\n color: rgba(0, 0, 0, 0.75);\n}\n.styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___6AaSQ .styles-module__deleteButton___4VuAE:hover {\n background: rgba(255, 59, 48, 0.15);\n color: #ff3b30;\n}',document.head.appendChild(e))}var o="styles-module__element___fTV2z",s="styles-module__expanded___2Hxgv";if("u">typeof document){let e=document.getElementById("feedback-tool-styles-components-icon-transitions");e||((e=document.createElement("style")).id="feedback-tool-styles-components-icon-transitions",e.textContent=".icon-transitions-module__iconState___uqK9J {\n transition: opacity 0.2s ease, transform 0.2s ease;\n transform-origin: center;\n}\n\n.icon-transitions-module__iconStateFast___HxlMm {\n transition: opacity 0.15s ease, transform 0.15s ease;\n transform-origin: center;\n}\n\n.icon-transitions-module__iconFade___nPwXg {\n transition: opacity 0.2s ease;\n}\n\n.icon-transitions-module__iconFadeFast___Ofb2t {\n transition: opacity 0.15s ease;\n}\n\n.icon-transitions-module__visible___PlHsU {\n opacity: 1 !important;\n}\n\n.icon-transitions-module__visibleScaled___8Qog- {\n opacity: 1 !important;\n transform: scale(1);\n}\n\n.icon-transitions-module__hidden___ETykt {\n opacity: 0 !important;\n}\n\n.icon-transitions-module__hiddenScaled___JXn-m {\n opacity: 0 !important;\n transform: scale(0.8);\n}\n\n.icon-transitions-module__sending___uaLN- {\n opacity: 0.5 !important;\n transform: scale(0.8);\n}",document.head.appendChild(e))}var i="icon-transitions-module__iconState___uqK9J",a="icon-transitions-module__iconStateFast___HxlMm",l="icon-transitions-module__iconFade___nPwXg",c="icon-transitions-module__iconFadeFast___Ofb2t",u="icon-transitions-module__visible___PlHsU",d="icon-transitions-module__visibleScaled___8Qog-",_="icon-transitions-module__hidden___ETykt",p="icon-transitions-module__hiddenScaled___JXn-m",h=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})},m=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M8 3v10M3 8h10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})},f=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",children:(0,r.jsx)("path",{d:"M3 8l3.5 3.5L13 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},g=e=>{let{size:t=14}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",children:(0,r.jsx)("path",{d:"M3.9375 7L6.125 9.1875L10.5 4.8125",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},y=e=>{let{size:t=24,style:n={}}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:n,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_list_sparkle)",children:[(0,r.jsx)("path",{d:"M11.5 12L5.5 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M18.5 6.75L5.5 6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9.25 17.25L5.5 17.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16 12.75L16.5179 13.9677C16.8078 14.6494 17.3506 15.1922 18.0323 15.4821L19.25 16L18.0323 16.5179C17.3506 16.8078 16.8078 17.3506 16.5179 18.0323L16 19.25L15.4821 18.0323C15.1922 17.3506 14.6494 16.8078 13.9677 16.5179L12.75 16L13.9677 15.4821C14.6494 15.1922 15.1922 14.6494 15.4821 13.9677L16 12.75Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_list_sparkle",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},b=e=>{let{size:t=20}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",children:[(0,r.jsx)("circle",{cx:"10",cy:"10.5",r:"5.25",stroke:"currentColor",strokeWidth:"1.25"}),(0,r.jsx)("path",{d:"M8.5 8.75C8.5 7.92 9.17 7.25 10 7.25C10.83 7.25 11.5 7.92 11.5 8.75C11.5 9.58 10.83 10.25 10 10.25V11",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("circle",{cx:"10",cy:"13",r:"0.75",fill:"currentColor"})]})},v=e=>{let{size:t=14}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",children:[(0,r.jsx)("style",{children:` @keyframes checkDraw { 0% { stroke-dashoffset: 12; } 100% { stroke-dashoffset: 0; } } @keyframes checkBounce { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.12); opacity: 1; } 75% { transform: scale(0.95); } 100% { transform: scale(1); } } .check-path-animated { stroke-dasharray: 12; stroke-dashoffset: 0; transform-origin: center; animation: checkDraw 0.18s ease-out, checkBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); } `}),(0,r.jsx)("path",{className:"check-path-animated",d:"M3.9375 7L6.125 9.1875L10.5 4.8125",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},x=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M4.75 11.25C4.75 10.4216 5.42157 9.75 6.25 9.75H12.75C13.5784 9.75 14.25 10.4216 14.25 11.25V17.75C14.25 18.5784 13.5784 19.25 12.75 19.25H6.25C5.42157 19.25 4.75 18.5784 4.75 17.75V11.25Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.jsx)("path",{d:"M17.25 14.25H17.75C18.5784 14.25 19.25 13.5784 19.25 12.75V6.25C19.25 5.42157 18.5784 4.75 17.75 4.75H11.25C10.4216 4.75 9.75 5.42157 9.75 6.25V6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})},w=e=>{let{size:t=24,copied:n=!1}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsxs)("g",{className:`${i} ${n?p:d}`,children:[(0,r.jsx)("path",{d:"M4.75 11.25C4.75 10.4216 5.42157 9.75 6.25 9.75H12.75C13.5784 9.75 14.25 10.4216 14.25 11.25V17.75C14.25 18.5784 13.5784 19.25 12.75 19.25H6.25C5.42157 19.25 4.75 18.5784 4.75 17.75V11.25Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.jsx)("path",{d:"M17.25 14.25H17.75C18.5784 14.25 19.25 13.5784 19.25 12.75V6.25C19.25 5.42157 18.5784 4.75 17.75 4.75H11.25C10.4216 4.75 9.75 5.42157 9.75 6.25V6.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),(0,r.jsxs)("g",{className:`${i} ${n?d:p}`,children:[(0,r.jsx)("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]})},k=e=>{let{size:t=24,state:n="idle"}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("g",{className:`${a} ${"idle"===n?d:"sending"===n?"icon-transitions-module__sending___uaLN-":p}`,children:(0,r.jsx)("path",{d:"M9.875 14.125L12.3506 19.6951C12.7184 20.5227 13.9091 20.4741 14.2083 19.6193L18.8139 6.46032C19.0907 5.6695 18.3305 4.90933 17.5397 5.18611L4.38072 9.79174C3.52589 10.0909 3.47731 11.2816 4.30494 11.6494L9.875 14.125ZM9.875 14.125L13.375 10.625",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,r.jsxs)("g",{className:`${a} ${"sent"===n?d:p}`,children:[(0,r.jsx)("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsxs)("g",{className:`${a} ${"failed"===n?d:p}`,children:[(0,r.jsx)("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 8V12",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("circle",{cx:"12",cy:"15",r:"0.5",fill:"#ef4444",stroke:"#ef4444",strokeWidth:"1"})]})]})},S=e=>{let{size:t=24,sent:n=!1}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 22 21",fill:"none",children:[(0,r.jsxs)("g",{className:`${i} ${n?p:d}`,children:[(0,r.jsx)("path",{d:"M9.5 5H6.5C4.84315 5 3.5 6.34315 3.5 8V15C3.5 16.6569 4.84315 18 6.5 18H13.5C15.1569 18 16.5 16.6569 16.5 15V12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M13.5 8.5L18.5 3.5M18.5 3.5L14.4524 3.5M18.5 3.5L18.5 7.54762",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M7.5 13.75H12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M7.5 10.75H10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),(0,r.jsxs)("g",{className:`${i} ${n?d:p}`,children:[(0,r.jsx)("path",{d:"M11 19C6.58172 19 3 15.4182 3 11C3 6.58172 6.58172 3 11 3C15.4182 3 19 6.58172 19 11C19 15.4182 15.4182 19 11 19Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14 9L10 13.25L8.25 11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]})},C=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M4.91516 12.7108C4.63794 12.2883 4.63705 11.7565 4.91242 11.3328C5.84146 9.9033 8.30909 6.74994 12 6.74994C15.6909 6.74994 18.1585 9.9033 19.0876 11.3328C19.3629 11.7565 19.3621 12.2883 19.0848 12.7108C18.1537 14.13 15.6873 17.2499 12 17.2499C8.31272 17.2499 5.8463 14.13 4.91516 12.7108Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 14.25C13.2426 14.25 14.25 13.2426 14.25 12C14.25 10.7574 13.2426 9.75 12 9.75C10.7574 9.75 9.75 10.7574 9.75 12C9.75 13.2426 10.7574 14.25 12 14.25Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},E=e=>{let{size:t=24}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M3.91752 12.7539C3.65127 12.2996 3.65037 11.7515 3.9149 11.2962C4.9042 9.59346 7.72688 5.49994 12 5.49994C16.2731 5.49994 19.0958 9.59346 20.0851 11.2962C20.3496 11.7515 20.3487 12.2996 20.0825 12.7539C19.0908 14.4459 16.2694 18.4999 12 18.4999C7.73064 18.4999 4.90918 14.4459 3.91752 12.7539Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 14.8261C13.5608 14.8261 14.8261 13.5608 14.8261 12C14.8261 10.4392 13.5608 9.17392 12 9.17392C10.4392 9.17392 9.17391 10.4392 9.17391 12C9.17391 13.5608 10.4392 14.8261 12 14.8261Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},I=e=>{let{size:t=24}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M18.6025 9.28503C18.9174 8.9701 19.4364 8.99481 19.7015 9.35271C20.1484 9.95606 20.4943 10.507 20.7342 10.9199C21.134 11.6086 21.1329 12.4454 20.7303 13.1328C20.2144 14.013 19.2151 15.5225 17.7723 16.8193C16.3293 18.1162 14.3852 19.2497 12.0008 19.25C11.4192 19.25 10.8638 19.1823 10.3355 19.0613C9.77966 18.934 9.63498 18.2525 10.0382 17.8493C10.2412 17.6463 10.5374 17.573 10.8188 17.6302C11.1993 17.7076 11.5935 17.75 12.0008 17.75C13.8848 17.7497 15.4867 16.8568 16.7693 15.7041C18.0522 14.5511 18.9606 13.1867 19.4363 12.375C19.5656 12.1543 19.5659 11.8943 19.4373 11.6729C19.2235 11.3049 18.921 10.8242 18.5364 10.3003C18.3085 9.98991 18.3302 9.5573 18.6025 9.28503ZM12.0008 4.75C12.5814 4.75006 13.1358 4.81803 13.6632 4.93953C14.2182 5.06741 14.362 5.74812 13.9593 6.15091C13.7558 6.35435 13.4589 6.42748 13.1771 6.36984C12.7983 6.29239 12.4061 6.25006 12.0008 6.25C10.1167 6.25 8.51415 7.15145 7.23028 8.31543C5.94678 9.47919 5.03918 10.8555 4.56426 11.6729C4.43551 11.8945 4.43582 12.1542 4.56524 12.375C4.77587 12.7343 5.07189 13.2012 5.44718 13.7105C5.67623 14.0213 5.65493 14.4552 5.38193 14.7282C5.0671 15.0431 4.54833 15.0189 4.28292 14.6614C3.84652 14.0736 3.50813 13.5369 3.27129 13.1328C2.86831 12.4451 2.86717 11.6088 3.26739 10.9199C3.78185 10.0345 4.77959 8.51239 6.22247 7.2041C7.66547 5.89584 9.61202 4.75 12.0008 4.75Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5 19L19 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})},L=e=>{let{size:t=24,isOpen:n=!0}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsxs)("g",{className:`${l} ${n?u:_}`,children:[(0,r.jsx)("path",{d:"M3.91752 12.7539C3.65127 12.2996 3.65037 11.7515 3.9149 11.2962C4.9042 9.59346 7.72688 5.49994 12 5.49994C16.2731 5.49994 19.0958 9.59346 20.0851 11.2962C20.3496 11.7515 20.3487 12.2996 20.0825 12.7539C19.0908 14.4459 16.2694 18.4999 12 18.4999C7.73064 18.4999 4.90918 14.4459 3.91752 12.7539Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12 14.8261C13.5608 14.8261 14.8261 13.5608 14.8261 12C14.8261 10.4392 13.5608 9.17392 12 9.17392C10.4392 9.17392 9.17391 10.4392 9.17391 12C9.17391 13.5608 10.4392 14.8261 12 14.8261Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsxs)("g",{className:`${l} ${n?_:u}`,children:[(0,r.jsx)("path",{d:"M18.6025 9.28503C18.9174 8.9701 19.4364 8.99481 19.7015 9.35271C20.1484 9.95606 20.4943 10.507 20.7342 10.9199C21.134 11.6086 21.1329 12.4454 20.7303 13.1328C20.2144 14.013 19.2151 15.5225 17.7723 16.8193C16.3293 18.1162 14.3852 19.2497 12.0008 19.25C11.4192 19.25 10.8638 19.1823 10.3355 19.0613C9.77966 18.934 9.63498 18.2525 10.0382 17.8493C10.2412 17.6463 10.5374 17.573 10.8188 17.6302C11.1993 17.7076 11.5935 17.75 12.0008 17.75C13.8848 17.7497 15.4867 16.8568 16.7693 15.7041C18.0522 14.5511 18.9606 13.1867 19.4363 12.375C19.5656 12.1543 19.5659 11.8943 19.4373 11.6729C19.2235 11.3049 18.921 10.8242 18.5364 10.3003C18.3085 9.98991 18.3302 9.5573 18.6025 9.28503ZM12.0008 4.75C12.5814 4.75006 13.1358 4.81803 13.6632 4.93953C14.2182 5.06741 14.362 5.74812 13.9593 6.15091C13.7558 6.35435 13.4589 6.42748 13.1771 6.36984C12.7983 6.29239 12.4061 6.25006 12.0008 6.25C10.1167 6.25 8.51415 7.15145 7.23028 8.31543C5.94678 9.47919 5.03918 10.8555 4.56426 11.6729C4.43551 11.8945 4.43582 12.1542 4.56524 12.375C4.77587 12.7343 5.07189 13.2012 5.44718 13.7105C5.67623 14.0213 5.65493 14.4552 5.38193 14.7282C5.0671 15.0431 4.54833 15.0189 4.28292 14.6614C3.84652 14.0736 3.50813 13.5369 3.27129 13.1328C2.86831 12.4451 2.86717 11.6088 3.26739 10.9199C3.78185 10.0345 4.77959 8.51239 6.22247 7.2041C7.66547 5.89584 9.61202 4.75 12.0008 4.75Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5 19L19 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})]})},T=e=>{let{size:t=24,isPaused:n=!1}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsxs)("g",{className:`${c} ${n?_:u}`,children:[(0,r.jsx)("path",{d:"M8 6L8 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M16 18L16 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),(0,r.jsx)("path",{className:`${c} ${n?u:_}`,d:"M17.75 10.701C18.75 11.2783 18.75 12.7217 17.75 13.299L8.75 18.4952C7.75 19.0725 6.5 18.3509 6.5 17.1962L6.5 6.80384C6.5 5.64914 7.75 4.92746 8.75 5.50481L17.75 10.701Z",stroke:"currentColor",strokeWidth:"1.5"})]})},M=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M4.91516 12.7108C4.63794 12.2883 4.63705 11.7565 4.91242 11.3328C5.84146 9.9033 8.30909 6.74994 12 6.74994C15.6909 6.74994 18.1585 9.9033 19.0876 11.3328C19.3629 11.7565 19.3621 12.2883 19.0848 12.7108C18.1537 14.13 15.6873 17.2499 12 17.2499C8.31272 17.2499 5.8463 14.13 4.91516 12.7108Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M9 12H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})},N=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M10.6504 5.81117C10.9939 4.39628 13.0061 4.39628 13.3496 5.81117C13.5715 6.72517 14.6187 7.15891 15.4219 6.66952C16.6652 5.91193 18.0881 7.33479 17.3305 8.57815C16.8411 9.38134 17.2748 10.4285 18.1888 10.6504C19.6037 10.9939 19.6037 13.0061 18.1888 13.3496C17.2748 13.5715 16.8411 14.6187 17.3305 15.4219C18.0881 16.6652 16.6652 18.0881 15.4219 17.3305C14.6187 16.8411 13.5715 17.2748 13.3496 18.1888C13.0061 19.6037 10.9939 19.6037 10.6504 18.1888C10.4285 17.2748 9.38135 16.8411 8.57815 17.3305C7.33479 18.0881 5.91193 16.6652 6.66952 15.4219C7.15891 14.6187 6.72517 13.5715 5.81117 13.3496C4.39628 13.0061 4.39628 10.9939 5.81117 10.6504C6.72517 10.4285 7.15891 9.38134 6.66952 8.57815C5.91193 7.33479 7.33479 5.91192 8.57815 6.66952C9.38135 7.15891 10.4285 6.72517 10.6504 5.81117Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"2.5",stroke:"currentColor",strokeWidth:"1.5"})]})},j=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M9.25 5.75C9.80228 5.75 10.25 6.19772 10.25 6.75L10.25 17.25C10.25 17.8023 9.80228 18.25 9.25 18.25L6.75 18.25C6.19772 18.25 5.75 17.8023 5.75 17.25L5.75 6.75C5.75 6.19772 6.19772 5.75 6.75 5.75L9.25 5.75Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,r.jsx)("path",{d:"M17.25 5.75C17.8023 5.75 18.25 6.19772 18.25 6.75L18.25 17.25C18.25 17.8023 17.8023 18.25 17.25 18.25L14.75 18.25C14.1977 18.25 13.75 17.8023 13.75 17.25L13.75 6.75C13.75 6.19772 14.1977 5.75 14.75 5.75L17.25 5.75Z",stroke:"currentColor",strokeWidth:"1.5"})]})},$=e=>{let{size:t=24}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M8 6L8 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M16 18L16 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})},R=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{d:"M17.75 10.701C18.75 11.2783 18.75 12.7217 17.75 13.299L8.75 18.4952C7.75 19.0725 6.5 18.3509 6.5 17.1962L6.5 6.80384C6.5 5.64914 7.75 4.92746 8.75 5.50481L17.75 10.701Z",stroke:"currentColor",strokeWidth:"1.5"})})},A=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{d:"M13.5 4C14.7426 4 15.75 5.00736 15.75 6.25V7H18.5C18.9142 7 19.25 7.33579 19.25 7.75C19.25 8.16421 18.9142 8.5 18.5 8.5H17.9678L17.6328 16.2217C17.61 16.7475 17.5912 17.1861 17.5469 17.543C17.5015 17.9087 17.4225 18.2506 17.2461 18.5723C16.9747 19.0671 16.5579 19.4671 16.0518 19.7168C15.7227 19.8791 15.3772 19.9422 15.0098 19.9717C14.6514 20.0004 14.2126 20 13.6865 20H10.3135C9.78735 20 9.34856 20.0004 8.99023 19.9717C8.62278 19.9422 8.27729 19.8791 7.94824 19.7168C7.44205 19.4671 7.02532 19.0671 6.75391 18.5723C6.57751 18.2506 6.49853 17.9087 6.45312 17.543C6.40883 17.1861 6.39005 16.7475 6.36719 16.2217L6.03223 8.5H5.5C5.08579 8.5 4.75 8.16421 4.75 7.75C4.75 7.33579 5.08579 7 5.5 7H8.25V6.25C8.25 5.00736 9.25736 4 10.5 4H13.5ZM7.86621 16.1562C7.89013 16.7063 7.90624 17.0751 7.94141 17.3584C7.97545 17.6326 8.02151 17.7644 8.06934 17.8516C8.19271 18.0763 8.38239 18.2577 8.6123 18.3711C8.70153 18.4151 8.83504 18.4545 9.11035 18.4766C9.39482 18.4994 9.76335 18.5 10.3135 18.5H13.6865C14.2367 18.5 14.6052 18.4994 14.8896 18.4766C15.165 18.4545 15.2985 18.4151 15.3877 18.3711C15.6176 18.2577 15.8073 18.0763 15.9307 17.8516C15.9785 17.7644 16.0245 17.6326 16.0586 17.3584C16.0938 17.0751 16.1099 16.7063 16.1338 16.1562L16.4668 8.5H7.5332L7.86621 16.1562ZM9.97656 10.75C10.3906 10.7371 10.7371 11.0626 10.75 11.4766L10.875 15.4766C10.8879 15.8906 10.5624 16.2371 10.1484 16.25C9.73443 16.2629 9.38794 15.9374 9.375 15.5234L9.25 11.5234C9.23706 11.1094 9.56255 10.7629 9.97656 10.75ZM14.0244 10.75C14.4384 10.7635 14.7635 11.1105 14.75 11.5244L14.6201 15.5244C14.6066 15.9384 14.2596 16.2634 13.8457 16.25C13.4317 16.2365 13.1067 15.8896 13.1201 15.4756L13.251 11.4756C13.2645 11.0617 13.6105 10.7366 14.0244 10.75ZM10.5 5.5C10.0858 5.5 9.75 5.83579 9.75 6.25V7H14.25V6.25C14.25 5.83579 13.9142 5.5 13.5 5.5H10.5Z",fill:"currentColor"})})},P=e=>{let{size:t=16,style:n={}}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:n,children:[(0,r.jsx)("path",{d:"M18.8875 19.25L19.6112 19.0533C19.6823 19.3148 19.6068 19.5943 19.4137 19.7844C19.2206 19.9746 18.9399 20.0457 18.6795 19.9706L18.8875 19.25ZM14.9631 18.244L15.263 18.9314L14.9631 18.244ZM18.0914 15.6309L17.4669 15.2156L18.0914 15.6309ZM4.75 11.8041H5.5C5.5 15.2664 8.39065 18.1081 12 18.1081V18.8581V19.6081C7.60123 19.6081 4 16.1334 4 11.8041H4.75ZM19.25 11.8041H18.5C18.5 8.34166 15.6094 5.5 12 5.5V4.75V4C16.3988 4 20 7.47476 20 11.8041H19.25ZM12 4.75V5.5C8.39065 5.5 5.5 8.34166 5.5 11.8041H4.75H4C4 7.47476 7.60123 4 12 4V4.75ZM18.0914 15.6309L17.4669 15.2156C18.1213 14.2315 18.5 13.0612 18.5 11.8041H19.25H20C20 13.3681 19.5276 14.8257 18.716 16.0462L18.0914 15.6309ZM18.8875 19.25L18.1638 19.4467L17.2953 16.2517L18.019 16.055L18.7428 15.8583L19.6112 19.0533L18.8875 19.25ZM12 18.8581V18.1081C12.9509 18.1081 13.8518 17.9105 14.6632 17.5565L14.9631 18.244L15.263 18.9314C14.2652 19.3667 13.1603 19.6081 12 19.6081V18.8581ZM15.3144 18.2188L15.5224 17.4982L19.0955 18.5294L18.8875 19.25L18.6795 19.9706L15.1064 18.9394L15.3144 18.2188ZM14.9631 18.244L14.6632 17.5565C14.925 17.4423 15.2286 17.4134 15.5224 17.4982L15.3144 18.2188L15.1064 18.9394C15.1677 18.957 15.223 18.9489 15.263 18.9314L14.9631 18.244ZM18.0914 15.6309L18.716 16.0462C18.7451 16.0024 18.7636 15.9351 18.7428 15.8583L18.019 16.055L17.2953 16.2517C17.1957 15.8853 17.2716 15.5093 17.4669 15.2156L18.0914 15.6309Z",fill:"currentColor"}),(0,r.jsx)("circle",{cx:"15",cy:"11.75",r:"1",fill:"currentColor"}),(0,r.jsx)("circle",{cx:"12",cy:"11.75",r:"1",fill:"currentColor"}),(0,r.jsx)("circle",{cx:"9",cy:"11.75",r:"1",fill:"currentColor"})]})},O=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_2_45)",children:(0,r.jsx)("path",{d:"M16.25 8.75L10 15.25L7.25 12.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_2_45",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},D=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_2_37)",children:(0,r.jsx)("path",{d:"M17.5962 7.75L9.42308 16.25L6.15385 12.6538",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_2_37",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},B=e=>{let{size:t=24}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_checkmark_circle)",children:[(0,r.jsx)("path",{d:"M12 20C7.58172 20 4 16.4182 4 12C4 7.58172 7.58172 4 12 4C16.4182 4 20 7.58172 20 12C20 16.4182 16.4182 20 12 20Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M15 10L11 14.25L9.25 12.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_checkmark_circle",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},z=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_2_53)",children:[(0,r.jsx)("path",{d:"M16.25 16.25L7.75 7.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M7.75 16.25L16.25 7.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_2_53",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},W=e=>{let{size:t=24}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{d:"M16.7198 6.21973C17.0127 5.92683 17.4874 5.92683 17.7803 6.21973C18.0732 6.51262 18.0732 6.9874 17.7803 7.28027L13.0606 12L17.7803 16.7197C18.0732 17.0126 18.0732 17.4874 17.7803 17.7803C17.4875 18.0731 17.0127 18.0731 16.7198 17.7803L12.0001 13.0605L7.28033 17.7803C6.98746 18.0731 6.51268 18.0731 6.21979 17.7803C5.92689 17.4874 5.92689 17.0126 6.21979 16.7197L10.9395 12L6.21979 7.28027C5.92689 6.98738 5.92689 6.51262 6.21979 6.21973C6.51268 5.92683 6.98744 5.92683 7.28033 6.21973L12.0001 10.9395L16.7198 6.21973Z",fill:"currentColor"})})},F=e=>{let{size:t=16}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",children:[(0,r.jsx)("path",{d:"M9.99999 12.7082C11.4958 12.7082 12.7083 11.4956 12.7083 9.99984C12.7083 8.50407 11.4958 7.2915 9.99999 7.2915C8.50422 7.2915 7.29166 8.50407 7.29166 9.99984C7.29166 11.4956 8.50422 12.7082 9.99999 12.7082Z",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M10 3.9585V5.05698",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M10 14.9429V16.0414",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.7269 5.72656L6.50682 6.50649",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.4932 13.4932L14.2731 14.2731",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M3.95834 10H5.05683",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.9432 10H16.0417",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.7269 14.2731L6.50682 13.4932",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.4932 6.50649L14.2731 5.72656",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})]})},H=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",children:(0,r.jsx)("path",{d:"M15.5 10.4955C15.4037 11.5379 15.0124 12.5314 14.3721 13.3596C13.7317 14.1878 12.8688 14.8165 11.8841 15.1722C10.8995 15.5278 9.83397 15.5957 8.81217 15.3679C7.79038 15.1401 6.8546 14.6259 6.11434 13.8857C5.37408 13.1454 4.85995 12.2096 4.63211 11.1878C4.40427 10.166 4.47215 9.10048 4.82781 8.11585C5.18346 7.13123 5.81218 6.26825 6.64039 5.62791C7.4686 4.98756 8.46206 4.59634 9.5045 4.5C8.89418 5.32569 8.60049 6.34302 8.67685 7.36695C8.75321 8.39087 9.19454 9.35339 9.92058 10.0794C10.6466 10.8055 11.6091 11.2468 12.6331 11.3231C13.657 11.3995 14.6743 11.1058 15.5 10.4955Z",stroke:"currentColor",strokeWidth:"1.13793",strokeLinecap:"round",strokeLinejoin:"round"})})},U=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M11.3799 6.9572L9.05645 4.63375M11.3799 6.9572L6.74949 11.5699C6.61925 11.6996 6.45577 11.791 6.277 11.8339L4.29549 12.3092C3.93194 12.3964 3.60478 12.0683 3.69297 11.705L4.16585 9.75693C4.20893 9.57947 4.29978 9.4172 4.42854 9.28771L9.05645 4.63375M11.3799 6.9572L12.3455 5.98759C12.9839 5.34655 12.9839 4.31002 12.3455 3.66897C11.7033 3.02415 10.6594 3.02415 10.0172 3.66897L9.06126 4.62892L9.05645 4.63375",stroke:"currentColor",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"})})},Y=e=>{let{size:t=24}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M13.5 4C14.7426 4 15.75 5.00736 15.75 6.25V7H18.5C18.9142 7 19.25 7.33579 19.25 7.75C19.25 8.16421 18.9142 8.5 18.5 8.5H17.9678L17.6328 16.2217C17.61 16.7475 17.5912 17.1861 17.5469 17.543C17.5015 17.9087 17.4225 18.2506 17.2461 18.5723C16.9747 19.0671 16.5579 19.4671 16.0518 19.7168C15.7227 19.8791 15.3772 19.9422 15.0098 19.9717C14.6514 20.0004 14.2126 20 13.6865 20H10.3135C9.78735 20 9.34856 20.0004 8.99023 19.9717C8.62278 19.9422 8.27729 19.8791 7.94824 19.7168C7.44205 19.4671 7.02532 19.0671 6.75391 18.5723C6.57751 18.2506 6.49853 17.9087 6.45312 17.543C6.40883 17.1861 6.39005 16.7475 6.36719 16.2217L6.03223 8.5H5.5C5.08579 8.5 4.75 8.16421 4.75 7.75C4.75 7.33579 5.08579 7 5.5 7H8.25V6.25C8.25 5.00736 9.25736 4 10.5 4H13.5ZM7.86621 16.1562C7.89013 16.7063 7.90624 17.0751 7.94141 17.3584C7.97545 17.6326 8.02151 17.7644 8.06934 17.8516C8.19271 18.0763 8.38239 18.2577 8.6123 18.3711C8.70153 18.4151 8.83504 18.4545 9.11035 18.4766C9.39482 18.4994 9.76335 18.5 10.3135 18.5H13.6865C14.2367 18.5 14.6052 18.4994 14.8896 18.4766C15.165 18.4545 15.2985 18.4151 15.3877 18.3711C15.6176 18.2577 15.8073 18.0763 15.9307 17.8516C15.9785 17.7644 16.0245 17.6326 16.0586 17.3584C16.0938 17.0751 16.1099 16.7063 16.1338 16.1562L16.4668 8.5H7.5332L7.86621 16.1562ZM9.97656 10.75C10.3906 10.7371 10.7371 11.0626 10.75 11.4766L10.875 15.4766C10.8879 15.8906 10.5624 16.2371 10.1484 16.25C9.73443 16.2629 9.38794 15.9374 9.375 15.5234L9.25 11.5234C9.23706 11.1094 9.56255 10.7629 9.97656 10.75ZM14.0244 10.75C14.4383 10.7635 14.7635 11.1105 14.75 11.5244L14.6201 15.5244C14.6066 15.9384 14.2596 16.2634 13.8457 16.25C13.4317 16.2365 13.1067 15.8896 13.1201 15.4756L13.251 11.4756C13.2645 11.0617 13.6105 10.7366 14.0244 10.75ZM10.5 5.5C10.0858 5.5 9.75 5.83579 9.75 6.25V7H14.25V6.25C14.25 5.83579 13.9142 5.5 13.5 5.5H10.5Z",fill:"currentColor"})})},X=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8.5 3.5L4 8L8.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},q=e=>{let{size:t=16}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M8.5 11.5L12 8L8.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},Q=e=>{let{size:t=20,color:n="#4C74FF"}=e;return(0,r.jsxs)("svg",{width:t,height:t,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("style",{children:` @keyframes bunnyEnterEar { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } } @keyframes bunnyEnterFace { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } } @keyframes bunnyEnterEye { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } } @keyframes leftEyeLook { 0%, 8% { transform: translate(0, 0); } 10%, 18% { transform: translate(1.5px, 0); } 20%, 22% { transform: translate(1.5px, 0) scaleY(0.1); } 24%, 32% { transform: translate(1.5px, 0); } 35%, 48% { transform: translate(-0.8px, -0.6px); } 52%, 54% { transform: translate(0, 0) scaleY(0.1); } 56%, 68% { transform: translate(0, 0); } 72%, 82% { transform: translate(-0.5px, 0.5px); } 85%, 100% { transform: translate(0, 0); } } @keyframes rightEyeLook { 0%, 8% { transform: translate(0, 0); } 10%, 18% { transform: translate(0.8px, 0); } 20%, 22% { transform: translate(0.8px, 0) scaleY(0.1); } 24%, 32% { transform: translate(0.8px, 0); } 35%, 48% { transform: translate(-1.5px, -0.6px); } 52%, 54% { transform: translate(0, 0) scaleY(0.1); } 56%, 68% { transform: translate(0, 0); } 72%, 82% { transform: translate(-1.2px, 0.5px); } 85%, 100% { transform: translate(0, 0); } } @keyframes leftEarTwitch { 0%, 9% { transform: rotate(0deg); } 12% { transform: rotate(-8deg); } 16%, 34% { transform: rotate(0deg); } 38% { transform: rotate(-12deg); } 42% { transform: rotate(-6deg); } 48%, 100% { transform: rotate(0deg); } } @keyframes rightEarTwitch { 0%, 9% { transform: rotate(0deg); } 12% { transform: rotate(6deg); } 16%, 34% { transform: rotate(0deg); } 38% { transform: rotate(10deg); } 42% { transform: rotate(4deg); } 48%, 71% { transform: rotate(0deg); } 74% { transform: rotate(8deg); } 78%, 100% { transform: rotate(0deg); } } .bunny-eye-left { opacity: 0; animation: bunnyEnterEye 0.3s ease-out 0.35s forwards, leftEyeLook 5s ease-in-out 0.65s infinite; transform-origin: center; transform-box: fill-box; } .bunny-eye-right { opacity: 0; animation: bunnyEnterEye 0.3s ease-out 0.4s forwards, rightEyeLook 5s ease-in-out 0.7s infinite; transform-origin: center; transform-box: fill-box; } .bunny-ear-left { opacity: 0; animation: bunnyEnterEar 0.3s ease-out 0.1s forwards, leftEarTwitch 5s ease-in-out 0.4s infinite; transform-origin: bottom center; transform-box: fill-box; } .bunny-ear-right { opacity: 0; animation: bunnyEnterEar 0.3s ease-out 0.15s forwards, rightEarTwitch 5s ease-in-out 0.45s infinite; transform-origin: bottom center; transform-box: fill-box; } .bunny-face { opacity: 0; animation: bunnyEnterFace 0.3s ease-out 0.25s forwards; transform-origin: center; transform-box: fill-box; } svg:hover .bunny-eye-left, svg:hover .bunny-eye-right { opacity: 0; transition: opacity 0.2s ease; } .bunny-happy-face { opacity: 0; transition: opacity 0.2s ease; } svg:hover .bunny-happy-face { opacity: 1; } `}),(0,r.jsx)("rect",{width:"28",height:"28",fill:"transparent"}),(0,r.jsx)("path",{className:"bunny-ear-left",d:"M3.738 10.2164L7.224 2.007H9.167L5.676 10.2164H3.738ZM10.791 6.42705C10.791 5.90346 10.726 5.42764 10.596 4.99959C10.47 4.57155 10.292 4.16643 10.063 3.78425C9.833 3.39825 9.56 3.01797 9.243 2.64343C8.926 2.26507 8.767 2.07589 8.767 2.07589L10.24 0.957996C10.24 0.957996 10.433 1.17203 10.819 1.60007C11.209 2.0243 11.559 2.49056 11.869 2.99886C12.178 3.50717 12.413 4.04222 12.574 4.60403C12.734 5.16584 12.814 5.77352 12.814 6.42705C12.814 7.10734 12.73 7.7303 12.562 8.29593C12.394 8.85774 12.153 9.3966 11.84 9.9126C11.526 10.4247 11.181 10.8833 10.802 11.2884C10.428 11.6974 10.24 11.9018 10.24 11.9018L8.767 10.7839C8.767 10.7839 8.924 10.5948 9.237 10.2164C9.554 9.8419 9.83 9.4597 10.063 9.06985C10.3 8.6762 10.479 8.26726 10.602 7.84304C10.728 7.41499 10.791 6.943 10.791 6.42705Z",fill:n}),(0,r.jsx)("path",{className:"bunny-ear-right",d:"M15.003 10.2164L18.489 2.007H20.432L16.941 10.2164H15.003ZM22.056 6.42705C22.056 5.90346 21.991 5.42764 21.861 4.99959C21.735 4.57155 21.557 4.16643 21.328 3.78425C21.098 3.39825 20.825 3.01797 20.508 2.64343C20.191 2.26507 20.032 2.07589 20.032 2.07589L21.505 0.957996C21.505 0.957996 21.698 1.17203 22.084 1.60007C22.474 2.0243 22.824 2.49056 23.133 2.99886C23.443 3.50717 23.678 4.04222 23.839 4.60403C23.999 5.16584 24.079 5.77352 24.079 6.42705C24.079 7.10734 23.995 7.7303 23.827 8.29593C23.659 8.85774 23.418 9.3966 23.105 9.9126C22.791 10.4247 22.445 10.8833 22.067 11.2884C21.693 11.6974 21.505 11.9018 21.505 11.9018L20.032 10.7839C20.032 10.7839 20.189 10.5948 20.502 10.2164C20.819 9.8419 21.094 9.4597 21.328 9.06985C21.565 8.6762 21.744 8.26726 21.866 7.84304C21.993 7.41499 22.056 6.943 22.056 6.42705Z",fill:n}),(0,r.jsx)("path",{className:"bunny-face",d:"M2.03 20.4328C2.03 20.9564 2.093 21.4322 2.219 21.8602C2.345 22.2883 2.523 22.6953 2.752 23.0813C2.981 23.4635 3.254 23.8419 3.572 24.2164C3.889 24.5948 4.047 24.7839 4.047 24.7839L2.574 25.9018C2.574 25.9018 2.379 25.6878 1.989 25.2598C1.603 24.8355 1.256 24.3693 0.946 23.861C0.636 23.3527 0.401 22.8176 0.241 22.2558C0.08 21.694 0 21.0863 0 20.4328C0 19.7525 0.084 19.1314 0.252 18.5696C0.421 18.004 0.661 17.4651 0.975 16.953C1.288 16.4371 1.632 15.9765 2.007 15.5714C2.385 15.1625 2.574 14.958 2.574 14.958L4.047 16.0759C4.047 16.0759 3.889 16.2651 3.572 16.6434C3.258 17.018 2.983 17.4021 2.746 17.7957C2.513 18.1855 2.335 18.5945 2.213 19.0225C2.091 19.4467 2.03 19.9168 2.03 20.4328ZM23.687 20.4271C23.687 19.9035 23.622 19.4276 23.492 18.9996C23.366 18.5715 23.188 18.1664 22.959 17.7843C22.729 17.3982 22.456 17.018 22.139 16.6434C21.822 16.2651 21.663 16.0759 21.663 16.0759L23.136 14.958C23.136 14.958 23.329 15.172 23.715 15.6001C24.105 16.0243 24.455 16.4906 24.765 16.9989C25.074 17.5072 25.309 18.0422 25.47 18.604C25.63 19.1658 25.71 19.7735 25.71 20.4271C25.71 21.1073 25.626 21.7303 25.458 22.2959C25.29 22.8577 25.049 23.3966 24.736 23.9126C24.422 24.4247 24.077 24.8833 23.698 25.2884C23.324 25.6974 23.136 25.9018 23.136 25.9018L21.663 24.7839C21.663 24.7839 21.82 24.5948 22.133 24.2164C22.45 23.8419 22.726 23.4597 22.959 23.0698C23.196 22.6762 23.375 22.2673 23.498 21.843C23.624 21.415 23.687 20.943 23.687 20.4271Z",fill:n}),(0,r.jsx)("circle",{className:"bunny-eye-left",cx:"8.277",cy:"20.466",r:"1.8",fill:n}),(0,r.jsx)("circle",{className:"bunny-eye-right",cx:"19.878",cy:"20.466",r:"1.8",fill:n}),(0,r.jsx)("text",{className:"bunny-happy-face",x:"14",y:"26",textAnchor:"middle",fontSize:"12",fontWeight:"bold",fill:n,fontFamily:"system-ui, -apple-system, sans-serif",children:"˃ ᵕ ˂"})]})},V=["data-feedback-toolbar","data-annotation-popup","data-annotation-marker"],J=V.flatMap(e=>[`:not([${e}])`,`:not([${e}] *)`]).join(""),Z="feedback-freeze-styles",G="__agentation_freeze",K=function(){if("u"0,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]};let e=window;return e[G]||(e[G]={frozen:!1,installed:!1,origSetTimeout:null,origSetInterval:null,origRAF:null,pausedAnimations:[],frozenTimeoutQueue:[],frozenRAFQueue:[]}),e[G]}();"u">typeof window&&!K.installed&&(K.origSetTimeout=window.setTimeout.bind(window),K.origSetInterval=window.setInterval.bind(window),K.origRAF=window.requestAnimationFrame.bind(window),window.setTimeout=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;oe(...n)):e(...n)},t,...r)},window.setInterval=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;oK.origRAF(t=>{K.frozen?K.frozenRAFQueue.push(e):e(t)}),K.installed=!0);var ee=K.origSetTimeout,et=K.origSetInterval;function en(){if("u"{if(K.frozen)return void K.frozenTimeoutQueue.push(t);try{t()}catch(e){console.warn("[agentation] Error replaying queued timeout:",e)}},0);let t=K.frozenRAFQueue;for(let e of(K.frozenRAFQueue=[],t))K.origRAF(t=>{K.frozen?K.frozenRAFQueue.push(e):e(t)});for(let e of K.pausedAnimations)try{e.play()}catch(e){console.warn("[agentation] Error resuming animation:",e)}K.pausedAnimations=[],document.getElementById(Z)?.remove(),document.querySelectorAll("video").forEach(e=>{"false"===e.dataset.wasPaused&&(e.play().catch(()=>{}),delete e.dataset.wasPaused)})}function er(e){if(!e)return;let t=e=>e.stopImmediatePropagation();document.addEventListener("focusin",t,!0),document.addEventListener("focusout",t,!0);try{e.focus()}finally{document.removeEventListener("focusin",t,!0),document.removeEventListener("focusout",t,!0)}}var eo=(0,t.forwardRef)(function(e,n){let{element:i,timestamp:a,selectedText:l,placeholder:c="What should change?",initialValue:u="",submitLabel:d="Add",onSubmit:_,onCancel:p,onDelete:h,style:m,accentColor:f="#3c82f7",isExiting:g=!1,lightMode:y=!1,computedStyles:b}=e,[v,x]=(0,t.useState)(u),[w,k]=(0,t.useState)(!1),[S,C]=(0,t.useState)("initial"),[E,I]=(0,t.useState)(!1),[L,T]=(0,t.useState)(!1),M=(0,t.useRef)(null),N=(0,t.useRef)(null),j=(0,t.useRef)(null),$=(0,t.useRef)(null);(0,t.useEffect)(()=>{g&&"exit"!==S&&C("exit")},[g,S]),(0,t.useEffect)(()=>{ee(()=>{C("enter")},0);let e=ee(()=>{C("entered")},200),t=ee(()=>{let e=M.current;e&&(er(e),e.selectionStart=e.selectionEnd=e.value.length,e.scrollTop=e.scrollHeight)},50);return()=>{clearTimeout(e),clearTimeout(t),j.current&&clearTimeout(j.current),$.current&&clearTimeout($.current)}},[]);let R=(0,t.useCallback)(()=>{$.current&&clearTimeout($.current),k(!0),$.current=ee(()=>{k(!1),er(M.current)},250)},[]);(0,t.useImperativeHandle)(n,()=>({shake:R}),[R]);let A=(0,t.useCallback)(()=>{C("exit"),j.current=ee(()=>{p()},150)},[p]),P=(0,t.useCallback)(()=>{v.trim()&&_(v.trim())},[v,_]),O=(0,t.useCallback)(e=>{e.stopPropagation(),e.nativeEvent.isComposing||("Enter"!==e.key||e.shiftKey||(e.preventDefault(),P()),"Escape"===e.key&&A())},[P,A]),D=["styles-module__popup___IhzrD",y?"styles-module__light___6AaSQ":"","enter"===S?"styles-module__enter___L7U7N":"","entered"===S?"styles-module__entered___COX-w":"","exit"===S?"styles-module__exit___5eGjE":"",w?"styles-module__shake___jdbWe":""].filter(Boolean).join(" ");return(0,r.jsxs)("div",{ref:N,className:D,"data-annotation-popup":!0,style:m,onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"styles-module__header___wWsSi",children:[b&&Object.keys(b).length>0?(0,r.jsxs)("button",{className:"styles-module__headerToggle___WpW0b",onClick:()=>{T(!L),L&&ee(()=>er(M.current),0)},type:"button",children:[(0,r.jsx)("svg",{className:`styles-module__chevron___ZZJlR ${L?s:""}`,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M5.5 10.25L9 7.25L5.75 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,r.jsx)("span",{className:o,children:i})]}):(0,r.jsx)("span",{className:o,children:i}),a&&(0,r.jsx)("span",{className:"styles-module__timestamp___Dtpsv",children:a})]}),b&&Object.keys(b).length>0&&(0,r.jsx)("div",{className:`styles-module__stylesWrapper___pnHgy ${L?s:""}`,children:(0,r.jsx)("div",{className:"styles-module__stylesInner___YYZe2",children:(0,r.jsx)("div",{className:"styles-module__stylesBlock___VfQKn",children:Object.entries(b).map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{className:"styles-module__styleLine___1YQiD",children:[(0,r.jsx)("span",{className:"styles-module__styleProperty___84L1i",children:t.replace(/([A-Z])/g,"-$1").toLowerCase()}),": ",(0,r.jsx)("span",{className:"styles-module__styleValue___q51-h",children:n}),";"]},t)})})})}),l&&(0,r.jsxs)("div",{className:"styles-module__quote___mcMmQ",children:["“",l.slice(0,80),l.length>80?"...":"","”"]}),(0,r.jsx)("textarea",{ref:M,className:"styles-module__textarea___jrSae",style:{borderColor:E?f:void 0},placeholder:c,value:v,onChange:e=>x(e.target.value),onFocus:()=>I(!0),onBlur:()=>I(!1),rows:2,onKeyDown:O}),(0,r.jsxs)("div",{className:"styles-module__actions___D6x3f",children:[h&&(0,r.jsx)("div",{className:"styles-module__deleteWrapper___oSjdo",children:(0,r.jsx)("button",{className:"styles-module__deleteButton___4VuAE",onClick:h,type:"button",children:(0,r.jsx)(Y,{size:22})})}),(0,r.jsx)("button",{className:"styles-module__cancel___hRjnL",onClick:A,children:"Cancel"}),(0,r.jsx)("button",{className:"styles-module__submit___K-mIR",style:{backgroundColor:f,opacity:v.trim()?1:.4},onClick:P,disabled:!v.trim(),children:d})]})]})});function es(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}function ei(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=es(n)}return null}function ea(e){return e.getRootNode()instanceof ShadowRoot}function el(e){let t=e.getRootNode();return t instanceof ShadowRoot?t.host:null}function ec(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=[],r=e,o=0;for(;r&&oe.length>2&&!e.match(/^[a-z]{1,2}$/)&&!e.match(/[A-Z0-9]{5,}/));e&&(t=`.${e.split("_")[0]}`)}let s=es(r);!r.parentElement&&s&&(t=`\u27E8shadow\u27E9 ${t}`),n.unshift(t),r=s,o++}return n.join(" > ")}function eu(e){let t=ec(e);if(e.dataset.element)return{name:e.dataset.element,path:t};let n=e.tagName.toLowerCase();if(["path","circle","rect","line","g"].includes(n)){let n=ei(e,"svg");if(n){let e=es(n);if(e instanceof HTMLElement){let n=eu(e).name;return{name:`graphic in ${n}`,path:t}}}return{name:"graphic element",path:t}}if("svg"===n){let n=es(e);if(n?.tagName.toLowerCase()==="button"){let e=n.textContent?.trim();return{name:e?`icon in "${e}" button`:"button icon",path:t}}return{name:"icon",path:t}}if("button"===n){let n=e.textContent?.trim(),r=e.getAttribute("aria-label");return r?{name:`button [${r}]`,path:t}:{name:n?`button "${n.slice(0,25)}"`:"button",path:t}}if("a"===n){let n=e.textContent?.trim(),r=e.getAttribute("href");return n?{name:`link "${n.slice(0,25)}"`,path:t}:r?{name:`link to ${r.slice(0,30)}`,path:t}:{name:"link",path:t}}if("input"===n){let n=e.getAttribute("type")||"text",r=e.getAttribute("placeholder"),o=e.getAttribute("name");return r?{name:`input "${r}"`,path:t}:o?{name:`input [${o}]`,path:t}:{name:`${n} input`,path:t}}if(["h1","h2","h3","h4","h5","h6"].includes(n)){let r=e.textContent?.trim();return{name:r?`${n} "${r.slice(0,35)}"`:n,path:t}}if("p"===n){let n=e.textContent?.trim();return n?{name:`paragraph: "${n.slice(0,40)}${n.length>40?"...":""}"`,path:t}:{name:"paragraph",path:t}}if("span"===n||"label"===n){let r=e.textContent?.trim();return r&&r.length<40?{name:`"${r}"`,path:t}:{name:n,path:t}}if("li"===n){let n=e.textContent?.trim();return n&&n.length<40?{name:`list item: "${n.slice(0,35)}"`,path:t}:{name:"list item",path:t}}if("blockquote"===n)return{name:"blockquote",path:t};if("code"===n){let n=e.textContent?.trim();return n&&n.length<30?{name:`code: \`${n}\``,path:t}:{name:"code",path:t}}if("pre"===n)return{name:"code block",path:t};if("img"===n){let n=e.getAttribute("alt");return{name:n?`image "${n.slice(0,30)}"`:"image",path:t}}if("video"===n)return{name:"video",path:t};if(["div","section","article","nav","header","footer","aside","main"].includes(n)){let r=e.className,o=e.getAttribute("role"),s=e.getAttribute("aria-label");if(s)return{name:`${n} [${s}]`,path:t};if(o)return{name:`${o}`,path:t};if("string"==typeof r&&r){let e=r.split(/[\s_-]+/).map(e=>e.replace(/[A-Z0-9]{5,}.*$/,"")).filter(e=>e.length>2&&!/^[a-z]{1,2}$/.test(e)).slice(0,2);if(e.length>0)return{name:e.join(" "),path:t}}return{name:"div"===n?"container":n,path:t}}return{name:n,path:t}}function ed(e){let t=[],n=e.textContent?.trim();n&&n.length<100&&t.push(n);let r=e.previousElementSibling;if(r){let e=r.textContent?.trim();e&&e.length<50&&t.unshift(`[before: "${e.slice(0,40)}"]`)}let o=e.nextElementSibling;if(o){let e=o.textContent?.trim();e&&e.length<50&&t.push(`[after: "${e.slice(0,40)}"]`)}return t.join(" ")}function e_(e){if(e.dataset.element)return e.dataset.element;let t=e.tagName.toLowerCase();if("path"===t)return"path";if("circle"===t)return"circle";if("rect"===t)return"rectangle";if("line"===t)return"line";if("ellipse"===t)return"ellipse";if("polygon"===t)return"polygon";if("g"===t)return"group";if("svg"===t)return"svg";if("button"===t){let t=e.textContent?.trim();return t?`button "${t}"`:"button"}if("input"===t){let t=e.getAttribute("type")||"text";return`input (${t})`}if("span"===t||"p"===t||"label"===t){let t=e.textContent?.trim();return t&&t.length<30?`"${t}"`:"text"}if("div"===t){let t=e.className;if("string"==typeof t&&t){let e=t.split(/[\s_-]+/).map(e=>e.replace(/[A-Z0-9]{5,}.*$/,"")).filter(e=>e.length>2&&!/^[a-z]{1,2}$/.test(e)).slice(0,2);if(e.length>0)return e.join(" ")}return"container"}return t}function ep(e){let t=es(e);if(!t)return"";let n=(e.getRootNode()instanceof ShadowRoot&&e.parentElement?Array.from(e.parentElement.children):Array.from(t.children)).filter(t=>t!==e&&t instanceof HTMLElement);if(0===n.length)return"";let r=n.slice(0,4).map(e=>{let t=e.tagName.toLowerCase(),n=e.className,r="";if("string"==typeof n&&n){let e=n.split(/\s+/).map(e=>e.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(e=>e.length>2&&!/^[a-z]{1,2}$/.test(e));e&&(r=`.${e}`)}if("button"===t||"a"===t){let n=e.textContent?.trim().slice(0,15);if(n)return`${t}${r} "${n}"`}return`${t}${r}`}),o=t.tagName.toLowerCase();if("string"==typeof t.className&&t.className){let e=t.className.split(/\s+/).map(e=>e.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(e=>e.length>2&&!/^[a-z]{1,2}$/.test(e));e&&(o=`.${e}`)}let s=t.children.length,i=s>r.length+1?` (${s} total in ${o})`:"";return r.join(", ")+i}function eh(e){let t=e.className;return"string"==typeof t&&t?t.split(/\s+/).filter(e=>e.length>0).map(e=>{let t=e.match(/^([a-zA-Z][a-zA-Z0-9_-]*?)(?:_[a-zA-Z0-9]{5,})?$/);return t?t[1]:e}).filter((e,t,n)=>n.indexOf(e)===t).join(", "):""}var em=new Set(["none","normal","auto","0px","rgba(0, 0, 0, 0)","transparent","static","visible"]),ef=new Set(["p","span","h1","h2","h3","h4","h5","h6","label","li","td","th","blockquote","figcaption","caption","legend","dt","dd","pre","code","em","strong","b","i","a","time","cite","q"]),eg=new Set(["input","textarea","select"]),ey=new Set(["img","video","canvas","svg"]),eb=new Set(["div","section","article","nav","header","footer","aside","main","ul","ol","form","fieldset"]);function ev(e){if("u"e.replace(/[_][a-zA-Z0-9]{5,}.*$/,"")).find(e=>e.length>2);t&&(r=`${e}.${t}`)}let o=es(n);!n.parentElement&&o&&(r=`\u27E8shadow\u27E9 ${r}`),t.unshift(r),n=o}return t.join(" > ")}var eC="feedback-annotations-";function eE(e){return`${eC}${e}`}function eI(e){if("u"!e.timestamp||e.timestamp>r)}catch{return[]}}function eL(e,t){if("u">typeof window)try{localStorage.setItem(eE(e),JSON.stringify(t))}catch{}}function eT(e,t,n){eL(e,t.map(e=>({...e,_syncedTo:n})))}var eM="agentation-session-";function eN(e){return`${eM}${e}`}function ej(e,t){if("u">typeof window)try{localStorage.setItem(eN(e),t)}catch{}}var e$=`${eM}toolbar-hidden`;async function eR(e,t){let n=await fetch(`${e}/sessions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t})});if(!n.ok)throw Error(`Failed to create session: ${n.status}`);return n.json()}async function eA(e,t){let n=await fetch(`${e}/sessions/${t}`);if(!n.ok)throw Error(`Failed to get session: ${n.status}`);return n.json()}async function eP(e,t,n){let r=await fetch(`${e}/sessions/${t}/annotations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw Error(`Failed to sync annotation: ${r.status}`);return r.json()}async function eO(e,t,n){let r=await fetch(`${e}/annotations/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw Error(`Failed to update annotation: ${r.status}`);return r.json()}async function eD(e,t){let n=await fetch(`${e}/annotations/${t}`,{method:"DELETE"});if(!n.ok)throw Error(`Failed to delete annotation: ${n.status}`)}var eB=new Set(["Component","PureComponent","Fragment","Suspense","Profiler","StrictMode","Routes","Route","Outlet","Root","ErrorBoundaryHandler","HotReload","Hot"]),ez=[/Boundary$/,/BoundaryHandler$/,/Provider$/,/Consumer$/,/^(Inner|Outer)/,/Router$/,/^Client(Page|Segment|Root)/,/^Segment(ViewNode|Node)$/,/^LayoutSegment/,/^Server(Root|Component|Render)/,/^RSC/,/Context$/,/^Hot(Reload)?$/,/^(Dev|React)(Overlay|Tools|Root)/,/Overlay$/,/Handler$/,/^With[A-Z]/,/Wrapper$/,/^Root$/],eW=[/Page$/,/View$/,/Screen$/,/Section$/,/Card$/,/List$/,/Item$/,/Form$/,/Modal$/,/Dialog$/,/Button$/,/Nav$/,/Header$/,/Footer$/,/Layout$/,/Panel$/,/Tab$/,/Menu$/],eF=null,eH=new WeakMap;function eU(e){return Object.keys(e).some(e=>e.startsWith("__reactFiber$")||e.startsWith("__reactInternalInstance$")||e.startsWith("__reactProps$"))}function eY(e){return e?e.displayName?e.displayName:e.name?e.name:null:null}function eX(e){if(!e.type||"string"==typeof e.type)return null;if("object"==typeof e.type||"function"==typeof e.type){let t=e.type;if(t.displayName)return t.displayName;if(t.name)return t.name}return null}var eq=new Map;function eQ(e){let n=function(e){if(!e||"object"!=typeof e)return null;let t=Object.keys(e),n=t.find(e=>e.startsWith("__reactFiber$"));if(n)return e[n]||null;let r=t.find(e=>e.startsWith("__reactInternalInstance$"));if(r)return e[r]||null;let o=t.find(t=>{if(!t.startsWith("__react"))return!1;let n=e[t];return n&&"object"==typeof n&&"_debugSource"in n});return o&&e[o]||null}(e);if(!n)return{found:!1,reason:"no-fiber",isReactApp:!1,isProduction:!1};let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=e,r=0;for(;n&&r1&&void 0!==arguments[1]?arguments[1]:15,r=e,o=0;for(;r&&on.H,set:e=>{n.H=e}};let r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;if(r){let e=r.ReactCurrentDispatcher;if(e&&"current"in e)return{get:()=>e.current,set:t=>{e.current=t}}}return null}();if(!r)return eq.set(n,null),null;let o=r.get(),s=null;try{let t=new Proxy({},{get(){throw Error("probe")}});r.set(t);try{n({})}catch(t){if(t instanceof Error&&"probe"===t.message&&t.stack){let n=function(e){let t=e.split("\n"),n=[/source-location/,/\/dist\/index\./,/node_modules\//,/react-dom/,/react\.development/,/react\.production/,/chunk-[A-Z0-9]+/i,/react-stack-bottom-frame/,/react-reconciler/,/scheduler/,//],r=/^\s*at\s+(?:.*?\s+\()?(.+?):(\d+):(\d+)\)?$/,o=/^[^@]*@(.+?):(\d+):(\d+)$/;for(let e of t){let t=e.trim();if(!t||n.some(e=>e.test(t)))continue;let s=r.exec(t)||o.exec(t);if(s)return{fileName:s[1],line:parseInt(s[2],10),column:parseInt(s[3],10)}}return null}(t.stack);n&&(s={fileName:n.fileName.replace(/[?#].*$/,"").replace(/^turbopack:\/\/\/\[project\]\//,"").replace(/^webpack-internal:\/\/\/\.\//,"").replace(/^webpack-internal:\/\/\//,"").replace(/^webpack:\/\/\/\.\//,"").replace(/^webpack:\/\/\//,"").replace(/^turbopack:\/\/\//,"").replace(/^https?:\/\/[^/]+\//,"").replace(/^file:\/\/\//,"/").replace(/^\([^)]+\)\/\.\//,"").replace(/^\.\//,""),lineNumber:n.line,columnNumber:n.column,componentName:eX(e)||void 0})}}}finally{r.set(o)}return eq.set(n,s),s}(r);if(e)return e;r=r.return,o++}return null}(n);return o?{found:!0,source:o,isReactApp:!0,isProduction:!1}:{found:!1,reason:"no-debug-source",isReactApp:!0,isProduction:!1}}if("u">typeof document){let e=document.getElementById("feedback-tool-styles-page-toolbar-css-styles");e||((e=document.createElement("style")).id="feedback-tool-styles-page-toolbar-css-styles",e.textContent='.styles-module__toolbar___wNsdK svg[fill=none],\n.styles-module__markersLayer___-25j1 svg[fill=none],\n.styles-module__fixedMarkersLayer___ffyX6 svg[fill=none] {\n fill: none !important;\n}\n.styles-module__toolbar___wNsdK svg[fill=none] :not([fill]),\n.styles-module__markersLayer___-25j1 svg[fill=none] :not([fill]),\n.styles-module__fixedMarkersLayer___ffyX6 svg[fill=none] :not([fill]) {\n fill: none !important;\n}\n\n.styles-module__toolbar___wNsdK :where(button, input, select, textarea, label) {\n background: unset;\n border: unset;\n border-radius: unset;\n padding: unset;\n margin: unset;\n color: unset;\n font: unset;\n letter-spacing: unset;\n text-transform: unset;\n text-decoration: unset;\n box-shadow: unset;\n outline: unset;\n}\n\n@keyframes styles-module__toolbarEnter___u8RRu {\n from {\n opacity: 0;\n transform: scale(0.5) rotate(90deg);\n }\n to {\n opacity: 1;\n transform: scale(1) rotate(0deg);\n }\n}\n@keyframes styles-module__toolbarHide___y8kaT {\n from {\n opacity: 1;\n transform: scale(1);\n }\n to {\n opacity: 0;\n transform: scale(0.8);\n }\n}\n@keyframes styles-module__badgeEnter___mVQLj {\n from {\n opacity: 0;\n transform: scale(0);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes styles-module__scaleIn___c-r1K {\n from {\n opacity: 0;\n transform: scale(0.85);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes styles-module__scaleOut___Wctwz {\n from {\n opacity: 1;\n transform: scale(1);\n }\n to {\n opacity: 0;\n transform: scale(0.85);\n }\n}\n@keyframes styles-module__slideUp___kgD36 {\n from {\n opacity: 0;\n transform: scale(0.85) translateY(8px);\n }\n to {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n}\n@keyframes styles-module__slideDown___zcdje {\n from {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n to {\n opacity: 0;\n transform: scale(0.85) translateY(8px);\n }\n}\n@keyframes styles-module__markerIn___5FaAP {\n 0% {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.3);\n }\n 100% {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n}\n@keyframes styles-module__markerOut___GU5jX {\n 0% {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) scale(0.3);\n }\n}\n@keyframes styles-module__fadeIn___b9qmf {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes styles-module__fadeOut___6Ut6- {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n@keyframes styles-module__tooltipIn___0N31w {\n from {\n opacity: 0;\n transform: translateX(-50%) translateY(2px) scale(0.891);\n }\n to {\n opacity: 1;\n transform: translateX(-50%) translateY(0) scale(0.909);\n }\n}\n@keyframes styles-module__hoverHighlightIn___6WYHY {\n from {\n opacity: 0;\n transform: scale(0.98);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes styles-module__hoverTooltipIn___FYGQx {\n from {\n opacity: 0;\n transform: scale(0.95) translateY(4px);\n }\n to {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n}\n@keyframes styles-module__settingsPanelIn___MGfO8 {\n from {\n opacity: 0;\n transform: translateY(10px) scale(0.95);\n filter: blur(5px);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n filter: blur(0px);\n }\n}\n@keyframes styles-module__settingsPanelOut___Zfymi {\n from {\n opacity: 1;\n transform: translateY(0) scale(1);\n filter: blur(0px);\n }\n to {\n opacity: 0;\n transform: translateY(20px) scale(0.95);\n filter: blur(5px);\n }\n}\n.styles-module__toolbar___wNsdK {\n position: fixed;\n bottom: 1.25rem;\n right: 1.25rem;\n width: 297px;\n z-index: 100000;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n pointer-events: none;\n transition: left 0s, top 0s, right 0s, bottom 0s;\n}\n\n.styles-module__toolbarContainer___dIhma {\n user-select: none;\n margin-left: auto;\n align-self: flex-end;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #1a1a1a;\n color: #fff;\n border: none;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);\n pointer-events: auto;\n cursor: grab;\n transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__toolbarContainer___dIhma.styles-module__dragging___xrolZ {\n transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n cursor: grabbing;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__entrance___sgHd8 {\n animation: styles-module__toolbarEnter___u8RRu 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__hiding___1td44 {\n animation: styles-module__toolbarHide___y8kaT 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;\n pointer-events: none;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn {\n width: 44px;\n height: 44px;\n border-radius: 22px;\n padding: 0;\n cursor: pointer;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn svg {\n margin-top: -1px;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {\n background: #2a2a2a;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:active {\n transform: scale(0.95);\n}\n.styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx {\n height: 44px;\n border-radius: 1.5rem;\n padding: 0.375rem;\n width: 257px;\n}\n.styles-module__toolbarContainer___dIhma.styles-module__expanded___ofKPx.styles-module__serverConnected___Gfbou {\n width: 297px;\n}\n\n.styles-module__toggleContent___0yfyP {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: opacity 0.1s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__toggleContent___0yfyP.styles-module__visible___KHwEW {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n.styles-module__toggleContent___0yfyP.styles-module__hidden___Ae8H4 {\n opacity: 0;\n pointer-events: none;\n}\n\n.styles-module__controlsContent___9GJWU {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n transition: filter 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__controlsContent___9GJWU.styles-module__visible___KHwEW {\n opacity: 1;\n filter: blur(0px);\n transform: scale(1);\n visibility: visible;\n pointer-events: auto;\n}\n.styles-module__controlsContent___9GJWU.styles-module__hidden___Ae8H4 {\n pointer-events: none;\n opacity: 0;\n filter: blur(10px);\n transform: scale(0.4);\n}\n\n.styles-module__badge___2XsgF {\n position: absolute;\n top: -13px;\n right: -13px;\n user-select: none;\n min-width: 18px;\n height: 18px;\n padding: 0 5px;\n border-radius: 9px;\n background: #3c82f7;\n color: white;\n font-size: 0.625rem;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.04);\n opacity: 1;\n transition: transform 0.3s ease, opacity 0.2s ease;\n transform: scale(1);\n}\n.styles-module__badge___2XsgF.styles-module__fadeOut___6Ut6- {\n opacity: 0;\n transform: scale(0);\n pointer-events: none;\n}\n.styles-module__badge___2XsgF.styles-module__entrance___sgHd8 {\n animation: styles-module__badgeEnter___mVQLj 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) 0.4s both;\n}\n\n.styles-module__controlButton___8Q0jc {\n position: relative;\n cursor: pointer !important;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 34px;\n height: 34px;\n border-radius: 50%;\n border: none;\n background: transparent;\n color: rgba(255, 255, 255, 0.85);\n transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, opacity 0.2s ease;\n}\n.styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {\n background: rgba(255, 255, 255, 0.12);\n color: #fff;\n}\n.styles-module__controlButton___8Q0jc:active:not(:disabled) {\n transform: scale(0.92);\n}\n.styles-module__controlButton___8Q0jc:disabled {\n opacity: 0.35;\n cursor: not-allowed;\n}\n.styles-module__controlButton___8Q0jc[data-active=true] {\n color: #3c82f7;\n background: rgba(60, 130, 247, 0.25);\n}\n.styles-module__controlButton___8Q0jc[data-error=true] {\n color: #ff3b30;\n background: rgba(255, 59, 48, 0.25);\n}\n.styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {\n background: rgba(255, 59, 48, 0.25);\n color: #ff3b30;\n}\n.styles-module__controlButton___8Q0jc[data-no-hover=true], .styles-module__controlButton___8Q0jc.styles-module__statusShowing___te6iu {\n cursor: default !important;\n pointer-events: none;\n background: transparent !important;\n}\n.styles-module__controlButton___8Q0jc[data-auto-sync=true] {\n color: #34c759;\n background: transparent;\n cursor: default;\n}\n.styles-module__controlButton___8Q0jc[data-failed=true] {\n color: #ff3b30;\n background: rgba(255, 59, 48, 0.25);\n}\n\n.styles-module__buttonBadge___NeFWb {\n position: absolute;\n top: 0px;\n right: 0px;\n min-width: 16px;\n height: 16px;\n padding: 0 4px;\n border-radius: 8px;\n background: #3c82f7;\n color: white;\n font-size: 0.625rem;\n font-weight: 600;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 0 0 2px #1a1a1a, 0 1px 3px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n}\n.styles-module__buttonBadge___NeFWb.styles-module__light___r6n4Y {\n box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, 0.2);\n}\n\n@keyframes styles-module__mcpIndicatorPulseConnected___EDodZ {\n 0%, 100% {\n box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);\n }\n 50% {\n box-shadow: 0 0 0 5px rgba(52, 199, 89, 0);\n }\n}\n@keyframes styles-module__mcpIndicatorPulseConnecting___cCYte {\n 0%, 100% {\n box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5);\n }\n 50% {\n box-shadow: 0 0 0 5px rgba(245, 166, 35, 0);\n }\n}\n.styles-module__mcpIndicator___zGJeL {\n position: absolute;\n top: 3px;\n right: 3px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n pointer-events: none;\n transition: background 0.3s ease, opacity 0.15s ease, transform 0.15s ease;\n opacity: 1;\n transform: scale(1);\n}\n.styles-module__mcpIndicator___zGJeL.styles-module__connected___7c28g {\n background: #34c759;\n animation: styles-module__mcpIndicatorPulseConnected___EDodZ 2.5s ease-in-out infinite;\n}\n.styles-module__mcpIndicator___zGJeL.styles-module__connecting___uo-CW {\n background: #f5a623;\n animation: styles-module__mcpIndicatorPulseConnecting___cCYte 1.5s ease-in-out infinite;\n}\n.styles-module__mcpIndicator___zGJeL.styles-module__hidden___Ae8H4 {\n opacity: 0;\n transform: scale(0);\n animation: none;\n}\n\n@keyframes styles-module__connectionPulse___-Zycw {\n 0%, 100% {\n opacity: 1;\n transform: scale(1);\n }\n 50% {\n opacity: 0.6;\n transform: scale(0.9);\n }\n}\n.styles-module__connectionIndicatorWrapper___L-e-3 {\n width: 8px;\n height: 34px;\n margin-left: 6px;\n margin-right: 6px;\n}\n\n.styles-module__connectionIndicator___afk9p {\n position: relative;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n opacity: 0;\n transition: opacity 0.3s ease, background 0.3s ease;\n cursor: default;\n}\n\n.styles-module__connectionIndicatorVisible___C-i5B {\n opacity: 1;\n}\n\n.styles-module__connectionIndicatorConnected___IY8pR {\n background: #34c759;\n animation: styles-module__connectionPulse___-Zycw 2.5s ease-in-out infinite;\n}\n\n.styles-module__connectionIndicatorDisconnected___kmpaZ {\n background: #ff3b30;\n animation: none;\n}\n\n.styles-module__connectionIndicatorConnecting___QmSLH {\n background: #f59e0b;\n animation: styles-module__connectionPulse___-Zycw 1s ease-in-out infinite;\n}\n\n.styles-module__buttonWrapper___rBcdv {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {\n opacity: 1;\n visibility: visible;\n transform: translateX(-50%) scale(1);\n transition-delay: 0.85s;\n}\n.styles-module__buttonWrapper___rBcdv:has(.styles-module__controlButton___8Q0jc:disabled):hover .styles-module__buttonTooltip___Burd9 {\n opacity: 0;\n visibility: hidden;\n}\n\n.styles-module__tooltipsInSession___-0lHH .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {\n transition-delay: 0s;\n}\n\n.styles-module__sendButtonWrapper___UUxG6 {\n width: 0;\n opacity: 0;\n overflow: hidden;\n pointer-events: none;\n margin-left: -0.375rem;\n transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1), margin 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__sendButtonWrapper___UUxG6 .styles-module__controlButton___8Q0jc {\n transform: scale(0.8);\n transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n}\n.styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU {\n width: 34px;\n opacity: 1;\n overflow: visible;\n pointer-events: auto;\n margin-left: 0;\n}\n.styles-module__sendButtonWrapper___UUxG6.styles-module__sendButtonVisible___WPSQU .styles-module__controlButton___8Q0jc {\n transform: scale(1);\n}\n\n.styles-module__buttonTooltip___Burd9 {\n position: absolute;\n bottom: calc(100% + 14px);\n left: 50%;\n transform: translateX(-50%) scale(0.95);\n padding: 6px 10px;\n background: #1a1a1a;\n color: rgba(255, 255, 255, 0.9);\n font-size: 12px;\n font-weight: 500;\n border-radius: 8px;\n white-space: nowrap;\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n z-index: 100001;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);\n transition: opacity 0.135s ease, transform 0.135s ease, visibility 0.135s ease;\n}\n.styles-module__buttonTooltip___Burd9::after {\n content: "";\n position: absolute;\n top: calc(100% - 4px);\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n width: 8px;\n height: 8px;\n background: #1a1a1a;\n border-radius: 0 0 2px 0;\n}\n\n.styles-module__shortcut___lEAQk {\n margin-left: 4px;\n opacity: 0.5;\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9 {\n bottom: auto;\n top: calc(100% + 14px);\n transform: translateX(-50%) scale(0.95);\n}\n.styles-module__tooltipBelow___m6ats .styles-module__buttonTooltip___Burd9::after {\n top: -4px;\n bottom: auto;\n border-radius: 2px 0 0 0;\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapper___rBcdv:hover .styles-module__buttonTooltip___Burd9 {\n transform: translateX(-50%) scale(1);\n}\n\n.styles-module__tooltipsHidden___VtLJG .styles-module__buttonTooltip___Burd9 {\n opacity: 0 !important;\n visibility: hidden !important;\n transition: none !important;\n}\n\n.styles-module__tooltipVisible___0jcCv,\n.styles-module__tooltipsHidden___VtLJG .styles-module__tooltipVisible___0jcCv {\n opacity: 1 !important;\n visibility: visible !important;\n transform: translateX(-50%) scale(1) !important;\n transition-delay: 0s !important;\n}\n\n.styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {\n left: 50%;\n transform: translateX(-12px) scale(0.95);\n}\n.styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9::after {\n left: 16px;\n}\n.styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {\n transform: translateX(-12px) scale(1);\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp .styles-module__buttonTooltip___Burd9 {\n transform: translateX(-12px) scale(0.95);\n}\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignLeft___myzIp:hover .styles-module__buttonTooltip___Burd9 {\n transform: translateX(-12px) scale(1);\n}\n\n.styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {\n left: 50%;\n transform: translateX(calc(-100% + 12px)) scale(0.95);\n}\n.styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9::after {\n left: auto;\n right: 8px;\n}\n.styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {\n transform: translateX(calc(-100% + 12px)) scale(1);\n}\n\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR .styles-module__buttonTooltip___Burd9 {\n transform: translateX(calc(-100% + 12px)) scale(0.95);\n}\n.styles-module__tooltipBelow___m6ats .styles-module__buttonWrapperAlignRight___HCQFR:hover .styles-module__buttonTooltip___Burd9 {\n transform: translateX(calc(-100% + 12px)) scale(1);\n}\n\n.styles-module__divider___c--s1 {\n width: 1px;\n height: 12px;\n background: rgba(255, 255, 255, 0.15);\n margin: 0 0.125rem;\n}\n\n.styles-module__overlay___Q1O9y {\n position: fixed;\n inset: 0;\n z-index: 99997;\n pointer-events: none;\n}\n.styles-module__overlay___Q1O9y > * {\n pointer-events: auto;\n}\n\n.styles-module__hoverHighlight___ogakW {\n position: fixed;\n border: 2px solid rgba(60, 130, 247, 0.5);\n border-radius: 4px;\n pointer-events: none !important;\n background: rgba(60, 130, 247, 0.04);\n box-sizing: border-box;\n will-change: opacity;\n contain: layout style;\n}\n.styles-module__hoverHighlight___ogakW.styles-module__enter___WFIki {\n animation: styles-module__hoverHighlightIn___6WYHY 0.12s ease-out forwards;\n}\n\n.styles-module__multiSelectOutline___cSJ-m {\n position: fixed;\n border: 2px dashed rgba(52, 199, 89, 0.6);\n border-radius: 4px;\n pointer-events: none !important;\n background: rgba(52, 199, 89, 0.05);\n box-sizing: border-box;\n will-change: opacity;\n}\n.styles-module__multiSelectOutline___cSJ-m.styles-module__enter___WFIki {\n animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;\n}\n.styles-module__multiSelectOutline___cSJ-m.styles-module__exit___fyOJ0 {\n animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;\n}\n\n.styles-module__singleSelectOutline___QhX-O {\n position: fixed;\n border: 2px solid rgba(60, 130, 247, 0.6);\n border-radius: 4px;\n pointer-events: none !important;\n background: rgba(60, 130, 247, 0.05);\n box-sizing: border-box;\n will-change: opacity;\n}\n.styles-module__singleSelectOutline___QhX-O.styles-module__enter___WFIki {\n animation: styles-module__fadeIn___b9qmf 0.15s ease-out forwards;\n}\n.styles-module__singleSelectOutline___QhX-O.styles-module__exit___fyOJ0 {\n animation: styles-module__fadeOut___6Ut6- 0.15s ease-out forwards;\n}\n\n.styles-module__hoverTooltip___bvLk7 {\n position: fixed;\n font-size: 0.6875rem;\n font-weight: 500;\n color: #fff;\n background: rgba(0, 0, 0, 0.85);\n padding: 0.35rem 0.6rem;\n border-radius: 0.375rem;\n pointer-events: none !important;\n white-space: nowrap;\n max-width: 280px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.styles-module__hoverTooltip___bvLk7.styles-module__enter___WFIki {\n animation: styles-module__hoverTooltipIn___FYGQx 0.1s ease-out forwards;\n}\n\n.styles-module__hoverReactPath___gx1IJ {\n font-size: 0.625rem;\n color: rgba(255, 255, 255, 0.6);\n margin-bottom: 0.15rem;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.styles-module__hoverElementName___QMLMl {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.styles-module__markersLayer___-25j1 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 0;\n z-index: 99998;\n pointer-events: none;\n}\n.styles-module__markersLayer___-25j1 > * {\n pointer-events: auto;\n}\n\n.styles-module__fixedMarkersLayer___ffyX6 {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99998;\n pointer-events: none;\n}\n.styles-module__fixedMarkersLayer___ffyX6 > * {\n pointer-events: auto;\n}\n\n.styles-module__marker___6sQrs {\n position: absolute;\n width: 22px;\n height: 22px;\n background: #3c82f7;\n color: white;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 0.6875rem;\n font-weight: 600;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n cursor: pointer;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.04);\n user-select: none;\n will-change: transform, opacity;\n contain: layout style;\n z-index: 1;\n}\n.styles-module__marker___6sQrs:hover {\n z-index: 2;\n}\n.styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7) {\n transition: background-color 0.15s ease, transform 0.1s ease;\n}\n.styles-module__marker___6sQrs.styles-module__enter___WFIki {\n animation: styles-module__markerIn___5FaAP 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;\n}\n.styles-module__marker___6sQrs.styles-module__exit___fyOJ0 {\n animation: styles-module__markerOut___GU5jX 0.2s ease-out both;\n pointer-events: none;\n}\n.styles-module__marker___6sQrs.styles-module__clearing___FQ--7 {\n animation: styles-module__markerOut___GU5jX 0.15s ease-out both;\n pointer-events: none;\n}\n.styles-module__marker___6sQrs:not(.styles-module__enter___WFIki):not(.styles-module__exit___fyOJ0):not(.styles-module__clearing___FQ--7):hover {\n transform: translate(-50%, -50%) scale(1.1);\n}\n.styles-module__marker___6sQrs.styles-module__pending___2IHLC {\n position: fixed;\n background: #3c82f7;\n}\n.styles-module__marker___6sQrs.styles-module__fixed___dBMHC {\n position: fixed;\n}\n.styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz {\n background: #34c759;\n width: 26px;\n height: 26px;\n border-radius: 6px;\n font-size: 0.75rem;\n}\n.styles-module__marker___6sQrs.styles-module__multiSelect___YWiuz.styles-module__pending___2IHLC {\n background: #34c759;\n}\n.styles-module__marker___6sQrs.styles-module__hovered___ZgXIy {\n background: #ff3b30;\n}\n\n.styles-module__renumber___nCTxD {\n display: block;\n animation: styles-module__renumberRoll___Wgbq3 0.2s ease-out;\n}\n\n@keyframes styles-module__renumberRoll___Wgbq3 {\n 0% {\n transform: translateX(-40%);\n opacity: 0;\n }\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n.styles-module__markerTooltip___aLJID {\n position: absolute;\n top: calc(100% + 10px);\n left: 50%;\n transform: translateX(-50%) scale(0.909);\n z-index: 100002;\n background: #1a1a1a;\n padding: 8px 0.75rem;\n border-radius: 0.75rem;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n font-weight: 400;\n color: #fff;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);\n min-width: 120px;\n max-width: 200px;\n pointer-events: none;\n cursor: default;\n}\n.styles-module__markerTooltip___aLJID.styles-module__enter___WFIki {\n animation: styles-module__tooltipIn___0N31w 0.1s ease-out forwards;\n}\n\n.styles-module__markerQuote___FHmrz {\n display: block;\n font-size: 12px;\n font-style: italic;\n color: rgba(255, 255, 255, 0.6);\n margin-bottom: 0.3125rem;\n line-height: 1.4;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.styles-module__markerNote___QkrrS {\n display: block;\n font-size: 13px;\n font-weight: 400;\n line-height: 1.4;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 2px;\n}\n\n.styles-module__markerHint___2iF-6 {\n display: block;\n font-size: 0.625rem;\n font-weight: 400;\n color: rgba(255, 255, 255, 0.6);\n margin-top: 0.375rem;\n white-space: nowrap;\n}\n\n.styles-module__settingsPanel___OxX3Y {\n position: absolute;\n right: 5px;\n bottom: calc(100% + 0.5rem);\n z-index: 1;\n overflow: hidden;\n background: #1c1c1c;\n border-radius: 1rem;\n padding: 13px 0 16px;\n min-width: 205px;\n cursor: default;\n opacity: 1;\n box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);\n transition: background 0.25s ease, box-shadow 0.25s ease;\n}\n.styles-module__settingsPanel___OxX3Y::before, .styles-module__settingsPanel___OxX3Y::after {\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n width: 16px;\n z-index: 2;\n pointer-events: none;\n}\n.styles-module__settingsPanel___OxX3Y::before {\n left: 0;\n background: linear-gradient(to right, #1c1c1c 0%, transparent 100%);\n}\n.styles-module__settingsPanel___OxX3Y::after {\n right: 0;\n background: linear-gradient(to left, #1c1c1c 0%, transparent 100%);\n}\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2,\n.styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX,\n.styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw,\n.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY,\n.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz,\n.styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa,\n.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax,\n.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr,\n.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp,\n.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56,\n.styles-module__settingsPanel___OxX3Y .styles-module__themeToggle___2rUjA {\n transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__enter___WFIki {\n opacity: 1;\n transform: translateY(0) scale(1);\n filter: blur(0px);\n transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__exit___fyOJ0 {\n opacity: 0;\n transform: translateY(8px) scale(0.95);\n filter: blur(5px);\n pointer-events: none;\n transition: opacity 0.1s ease, transform 0.1s ease, filter 0.1s ease;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf {\n background: #1a1a1a;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsLabel___8UjfX {\n color: rgba(255, 255, 255, 0.6);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12 {\n color: rgba(255, 255, 255, 0.85);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12:hover {\n background: rgba(255, 255, 255, 0.1);\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {\n background: rgba(255, 255, 255, 0.15);\n color: #fff;\n}\n.styles-module__settingsPanel___OxX3Y.styles-module__dark___ILIQf .styles-module__toggleLabel___Xm8Aa {\n color: rgba(255, 255, 255, 0.85);\n}\n\n.styles-module__settingsPanelContainer___Xksv8 {\n overflow: visible;\n position: relative;\n display: flex;\n padding: 0 1rem;\n}\n.styles-module__settingsPanelContainer___Xksv8.styles-module__transitioning___qxzCk {\n overflow-x: clip;\n overflow-y: visible;\n}\n\n.styles-module__settingsPage___6YfHH {\n min-width: 100%;\n flex-shrink: 0;\n transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease-out;\n opacity: 1;\n}\n\n.styles-module__settingsPage___6YfHH.styles-module__slideLeft___Ps01J {\n transform: translateX(-100%);\n opacity: 0;\n}\n\n.styles-module__automationsPage___uvCq6 {\n position: absolute;\n top: 0;\n left: 100%;\n width: 100%;\n height: 100%;\n padding: 3px 1rem 0;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease-out 0.1s;\n opacity: 0;\n}\n\n.styles-module__automationsPage___uvCq6.styles-module__slideIn___4-qXe {\n transform: translateX(-100%);\n opacity: 1;\n}\n\n.styles-module__settingsNavLink___wCzJt {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n padding: 0;\n border: none;\n background: transparent;\n font-family: inherit;\n font-size: 0.8125rem;\n font-weight: 400;\n color: rgba(255, 255, 255, 0.5);\n cursor: pointer;\n transition: color 0.15s ease;\n}\n.styles-module__settingsNavLink___wCzJt:hover {\n color: rgba(255, 255, 255, 0.9);\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y:hover {\n color: rgba(0, 0, 0, 0.8);\n}\n.styles-module__settingsNavLink___wCzJt svg {\n color: rgba(255, 255, 255, 0.4);\n transition: color 0.15s ease;\n}\n.styles-module__settingsNavLink___wCzJt:hover svg {\n color: #fff;\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y svg {\n color: rgba(0, 0, 0, 0.25);\n}\n.styles-module__settingsNavLink___wCzJt.styles-module__light___r6n4Y:hover svg {\n color: rgba(0, 0, 0, 0.8);\n}\n\n.styles-module__settingsNavLinkRight___ZWwhj {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.styles-module__mcpNavIndicator___cl9pO {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n.styles-module__mcpNavIndicator___cl9pO.styles-module__connected___7c28g {\n background: #34c759;\n animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;\n}\n.styles-module__mcpNavIndicator___cl9pO.styles-module__connecting___uo-CW {\n background: #f5a623;\n animation: styles-module__mcpPulse___uNggr 1.5s ease-in-out infinite;\n}\n\n.styles-module__settingsBackButton___bIe2j {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 6px 0 12px 0;\n margin: -6px 0 0.5rem 0;\n border: none;\n border-bottom: 1px solid rgba(255, 255, 255, 0.07);\n border-radius: 0;\n background: transparent;\n font-family: inherit;\n font-size: 0.8125rem;\n font-weight: 500;\n letter-spacing: -0.15px;\n color: #fff;\n cursor: pointer;\n transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1);\n}\n.styles-module__settingsBackButton___bIe2j svg {\n opacity: 0.4;\n flex-shrink: 0;\n transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);\n}\n.styles-module__settingsBackButton___bIe2j:hover {\n border-bottom-color: rgba(255, 255, 255, 0.07);\n}\n.styles-module__settingsBackButton___bIe2j:hover svg {\n opacity: 1;\n}\n.styles-module__settingsBackButton___bIe2j.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.85);\n border-bottom-color: rgba(0, 0, 0, 0.08);\n}\n.styles-module__settingsBackButton___bIe2j.styles-module__light___r6n4Y:hover {\n border-bottom-color: rgba(0, 0, 0, 0.08);\n}\n\n.styles-module__automationHeader___InP0r {\n display: flex;\n align-items: center;\n gap: 0.125rem;\n font-size: 0.8125rem;\n font-weight: 400;\n color: #fff;\n}\n.styles-module__automationHeader___InP0r .styles-module__helpIcon___xQg56 svg {\n transform: none;\n}\n.styles-module__automationHeader___InP0r.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.85);\n}\n\n.styles-module__automationDescription___NKlmo {\n font-size: 0.6875rem;\n font-weight: 300;\n color: rgba(255, 255, 255, 0.5);\n margin-top: 2px;\n line-height: 14px;\n}\n.styles-module__automationDescription___NKlmo.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__learnMoreLink___8xv-x {\n color: rgba(255, 255, 255, 0.8);\n text-decoration: underline dotted;\n text-decoration-color: rgba(255, 255, 255, 0.2);\n text-underline-offset: 2px;\n transition: color 0.15s ease;\n}\n.styles-module__learnMoreLink___8xv-x:hover {\n color: #fff;\n}\n.styles-module__learnMoreLink___8xv-x.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.6);\n text-decoration-color: rgba(0, 0, 0, 0.2);\n}\n.styles-module__learnMoreLink___8xv-x.styles-module__light___r6n4Y:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n\n.styles-module__autoSendRow___UblX5 {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.styles-module__autoSendLabel___icDc2 {\n font-size: 0.6875rem;\n font-weight: 400;\n color: rgba(255, 255, 255, 0.4);\n transition: color 0.15s ease;\n}\n.styles-module__autoSendLabel___icDc2.styles-module__active___-zoN6 {\n color: #66b8ff;\n}\n.styles-module__autoSendLabel___icDc2.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__autoSendLabel___icDc2.styles-module__light___r6n4Y.styles-module__active___-zoN6 {\n color: #3c82f7;\n}\n\n.styles-module__webhookUrlInput___2375C {\n display: block;\n width: 100%;\n flex: 1;\n min-height: 60px;\n box-sizing: border-box;\n margin-top: 11px;\n padding: 8px 10px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n border-radius: 6px;\n background: rgba(255, 255, 255, 0.03);\n font-family: inherit;\n font-size: 0.75rem;\n font-weight: 400;\n color: #fff;\n outline: none;\n resize: none;\n cursor: text !important;\n user-select: text;\n transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;\n}\n.styles-module__webhookUrlInput___2375C::placeholder {\n color: rgba(255, 255, 255, 0.3);\n}\n.styles-module__webhookUrlInput___2375C:focus {\n border-color: rgba(255, 255, 255, 0.3);\n background: rgba(255, 255, 255, 0.08);\n}\n.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y {\n border-color: rgba(0, 0, 0, 0.1);\n background: rgba(0, 0, 0, 0.03);\n color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y::placeholder {\n color: rgba(0, 0, 0, 0.3);\n}\n.styles-module__webhookUrlInput___2375C.styles-module__light___r6n4Y:focus {\n border-color: rgba(0, 0, 0, 0.25);\n background: rgba(0, 0, 0, 0.05);\n}\n\n.styles-module__settingsHeader___pwDY9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 24px;\n margin-bottom: 0.5rem;\n padding-bottom: 9px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.07);\n}\n\n.styles-module__settingsBrand___0gJeM {\n font-size: 0.8125rem;\n font-weight: 600;\n letter-spacing: -0.0094em;\n color: #fff;\n}\n\n.styles-module__settingsBrandSlash___uTG18 {\n color: rgba(255, 255, 255, 0.5);\n}\n\n.styles-module__settingsVersion___TUcFq {\n font-size: 11px;\n font-weight: 400;\n color: rgba(255, 255, 255, 0.4);\n margin-left: auto;\n letter-spacing: -0.0094em;\n}\n\n.styles-module__settingsSection___m-YM2 + .styles-module__settingsSection___m-YM2 {\n margin-top: 0.5rem;\n padding-top: 0.5rem;\n border-top: 1px solid rgba(255, 255, 255, 0.07);\n}\n.styles-module__settingsSection___m-YM2.styles-module__settingsSectionExtraPadding___jdhFV {\n padding-top: calc(0.5rem + 4px);\n}\n\n.styles-module__settingsSectionGrow___h-5HZ {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n\n.styles-module__settingsRow___3sdhc {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 24px;\n}\n.styles-module__settingsRow___3sdhc.styles-module__settingsRowMarginTop___zA0Sp {\n margin-top: 8px;\n}\n\n.styles-module__dropdownContainer___BVnxe {\n position: relative;\n}\n\n.styles-module__dropdownButton___16NPz {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.25rem 0.5rem;\n border: none;\n border-radius: 0.375rem;\n background: transparent;\n font-size: 0.8125rem;\n font-weight: 600;\n color: #fff;\n cursor: pointer;\n transition: background-color 0.15s ease, color 0.15s ease;\n letter-spacing: -0.0094em;\n}\n.styles-module__dropdownButton___16NPz:hover {\n background: rgba(255, 255, 255, 0.08);\n}\n.styles-module__dropdownButton___16NPz svg {\n opacity: 0.6;\n}\n\n.styles-module__cycleButton___FMKfw {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0;\n border: none;\n background: transparent;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #fff;\n cursor: pointer;\n letter-spacing: -0.0094em;\n}\n.styles-module__cycleButton___FMKfw.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__cycleButton___FMKfw:disabled {\n opacity: 0.35;\n cursor: not-allowed;\n}\n\n.styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX {\n color: rgba(255, 255, 255, 0.2);\n}\n.styles-module__settingsRowDisabled___EgS0V .styles-module__settingsLabel___8UjfX.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.2);\n}\n.styles-module__settingsRowDisabled___EgS0V .styles-module__toggleSwitch___l4Ygm {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n@keyframes styles-module__cycleTextIn___Q6zJf {\n 0% {\n opacity: 0;\n transform: translateY(-6px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n}\n.styles-module__cycleButtonText___fD1LR {\n display: inline-block;\n animation: styles-module__cycleTextIn___Q6zJf 0.2s ease-out;\n}\n\n.styles-module__cycleDots___LWuoQ {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.styles-module__cycleDot___nPgLY {\n width: 3px;\n height: 3px;\n border-radius: 50%;\n background: rgba(255, 255, 255, 0.3);\n transform: scale(0.667);\n transition: background-color 0.25s ease-out, transform 0.25s ease-out;\n}\n.styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {\n background: #fff;\n transform: scale(1);\n}\n.styles-module__cycleDot___nPgLY.styles-module__light___r6n4Y {\n background: rgba(0, 0, 0, 0.2);\n}\n.styles-module__cycleDot___nPgLY.styles-module__light___r6n4Y.styles-module__active___-zoN6 {\n background: rgba(0, 0, 0, 0.7);\n}\n\n.styles-module__dropdownMenu___k73ER {\n position: absolute;\n right: 0;\n top: calc(100% + 0.25rem);\n background: #1a1a1a;\n border-radius: 0.5rem;\n padding: 0.25rem;\n min-width: 120px;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);\n z-index: 10;\n animation: styles-module__scaleIn___c-r1K 0.15s ease-out;\n}\n\n.styles-module__dropdownItem___ylsLj {\n width: 100%;\n display: flex;\n align-items: center;\n padding: 0.5rem 0.625rem;\n border: none;\n border-radius: 0.375rem;\n background: transparent;\n font-size: 0.8125rem;\n font-weight: 500;\n color: rgba(255, 255, 255, 0.85);\n cursor: pointer;\n text-align: left;\n transition: background-color 0.15s ease, color 0.15s ease;\n letter-spacing: -0.0094em;\n}\n.styles-module__dropdownItem___ylsLj:hover {\n background: rgba(255, 255, 255, 0.08);\n}\n.styles-module__dropdownItem___ylsLj.styles-module__selected___OwRqP {\n background: rgba(255, 255, 255, 0.12);\n color: #fff;\n font-weight: 600;\n}\n\n.styles-module__settingsLabel___8UjfX {\n font-size: 0.8125rem;\n font-weight: 400;\n letter-spacing: -0.0094em;\n color: rgba(255, 255, 255, 0.5);\n display: flex;\n align-items: center;\n gap: 0.125rem;\n}\n.styles-module__settingsLabel___8UjfX.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__settingsLabelMarker___ewdtV {\n padding-top: 3px;\n margin-bottom: 10px;\n}\n\n.styles-module__settingsOptions___LyrBA {\n display: flex;\n gap: 0.25rem;\n}\n\n.styles-module__settingsOption___UNa12 {\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.25rem;\n padding: 0.375rem 0.5rem;\n border: none;\n border-radius: 0.375rem;\n background: transparent;\n font-size: 0.6875rem;\n font-weight: 500;\n color: rgba(0, 0, 0, 0.7);\n cursor: pointer;\n transition: background-color 0.15s ease, color 0.15s ease;\n}\n.styles-module__settingsOption___UNa12:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.styles-module__settingsOption___UNa12.styles-module__selected___OwRqP {\n background: rgba(60, 130, 247, 0.15);\n color: #3c82f7;\n}\n\n.styles-module__sliderContainer___ducXj {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.styles-module__slider___GLdxp {\n -webkit-appearance: none;\n appearance: none;\n width: 100%;\n height: 4px;\n background: rgba(255, 255, 255, 0.15);\n border-radius: 2px;\n outline: none;\n cursor: pointer;\n}\n.styles-module__slider___GLdxp::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 14px;\n height: 14px;\n background: white;\n border-radius: 50%;\n cursor: pointer;\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n}\n.styles-module__slider___GLdxp::-moz-range-thumb {\n width: 14px;\n height: 14px;\n background: white;\n border: none;\n border-radius: 50%;\n cursor: pointer;\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n}\n.styles-module__slider___GLdxp:hover::-webkit-slider-thumb {\n transform: scale(1.15);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);\n}\n.styles-module__slider___GLdxp:hover::-moz-range-thumb {\n transform: scale(1.15);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);\n}\n\n.styles-module__sliderLabels___FhLDB {\n display: flex;\n justify-content: space-between;\n}\n\n.styles-module__sliderLabel___U8sPr {\n font-size: 0.625rem;\n font-weight: 500;\n color: rgba(255, 255, 255, 0.4);\n cursor: pointer;\n transition: color 0.15s ease;\n}\n.styles-module__sliderLabel___U8sPr:hover {\n color: rgba(255, 255, 255, 0.7);\n}\n.styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {\n color: rgba(255, 255, 255, 0.9);\n}\n\n.styles-module__colorOptions___iHCNX {\n display: flex;\n gap: 0.5rem;\n margin-top: 0.375rem;\n margin-bottom: 1px;\n}\n\n.styles-module__colorOption___IodiY {\n display: block;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid transparent;\n cursor: pointer;\n transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);\n}\n.styles-module__colorOption___IodiY:hover {\n transform: scale(1.15);\n}\n.styles-module__colorOption___IodiY.styles-module__selected___OwRqP {\n transform: scale(0.83);\n}\n\n.styles-module__colorOptionRing___U2xpo {\n display: flex;\n width: 24px;\n height: 24px;\n border: 2px solid transparent;\n border-radius: 50%;\n transition: border-color 0.3s ease;\n}\n.styles-module__settingsToggle___fBrFn {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n cursor: pointer;\n}\n.styles-module__settingsToggle___fBrFn + .styles-module__settingsToggle___fBrFn {\n margin-top: calc(0.5rem + 6px);\n}\n.styles-module__settingsToggle___fBrFn input[type=checkbox] {\n position: absolute;\n opacity: 0;\n width: 0;\n height: 0;\n}\n.styles-module__settingsToggle___fBrFn.styles-module__settingsToggleMarginBottom___MZUyF {\n margin-bottom: calc(0.5rem + 6px);\n}\n\n.styles-module__customCheckbox___U39ax {\n position: relative;\n width: 14px;\n height: 14px;\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.05);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: background 0.25s ease, border-color 0.25s ease;\n}\n.styles-module__customCheckbox___U39ax svg {\n color: #1a1a1a;\n opacity: 1;\n transition: opacity 0.15s ease;\n}\ninput[type=checkbox]:checked + .styles-module__customCheckbox___U39ax {\n border-color: rgba(255, 255, 255, 0.3);\n background: rgb(255, 255, 255);\n}\n.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y {\n border: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n}\n.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y.styles-module__checked___mnZLo {\n border-color: #1a1a1a;\n background: #1a1a1a;\n}\n.styles-module__customCheckbox___U39ax.styles-module__light___r6n4Y.styles-module__checked___mnZLo svg {\n color: #fff;\n}\n\n.styles-module__toggleLabel___Xm8Aa {\n font-size: 0.8125rem;\n font-weight: 400;\n color: rgba(255, 255, 255, 0.5);\n letter-spacing: -0.0094em;\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n.styles-module__toggleLabel___Xm8Aa.styles-module__light___r6n4Y {\n color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__toggleSwitch___l4Ygm {\n position: relative;\n display: inline-block;\n width: 24px;\n height: 16px;\n flex-shrink: 0;\n cursor: pointer;\n transition: opacity 0.15s ease;\n}\n.styles-module__toggleSwitch___l4Ygm input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n.styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn {\n background: #3c82f7;\n}\n.styles-module__toggleSwitch___l4Ygm input:checked + .styles-module__toggleSlider___wprIn::before {\n transform: translateX(8px);\n}\n.styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw {\n opacity: 0.4;\n pointer-events: none;\n}\n.styles-module__toggleSwitch___l4Ygm.styles-module__disabled___332Jw .styles-module__toggleSlider___wprIn {\n cursor: not-allowed;\n}\n\n.styles-module__toggleSlider___wprIn {\n position: absolute;\n cursor: pointer;\n inset: 0;\n border-radius: 16px;\n background: #484848;\n}\n.styles-module__light___r6n4Y .styles-module__toggleSlider___wprIn {\n background: #dddddd;\n}\n.styles-module__toggleSlider___wprIn::before {\n content: "";\n position: absolute;\n height: 12px;\n width: 12px;\n left: 2px;\n bottom: 2px;\n background: white;\n border-radius: 50%;\n transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n}\n\n@keyframes styles-module__mcpPulse___uNggr {\n 0% {\n box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);\n }\n 70% {\n box-shadow: 0 0 0 6px rgba(52, 199, 89, 0);\n }\n 100% {\n box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);\n }\n}\n@keyframes styles-module__mcpPulseError___fov9B {\n 0% {\n box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5);\n }\n 70% {\n box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);\n }\n 100% {\n box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);\n }\n}\n.styles-module__mcpStatusDot___ibgkc {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n.styles-module__mcpStatusDot___ibgkc.styles-module__connecting___uo-CW {\n background: #f5a623;\n animation: styles-module__mcpPulse___uNggr 1.5s infinite;\n}\n.styles-module__mcpStatusDot___ibgkc.styles-module__connected___7c28g {\n background: #34c759;\n animation: styles-module__mcpPulse___uNggr 2.5s ease-in-out infinite;\n}\n.styles-module__mcpStatusDot___ibgkc.styles-module__disconnected___cHPxR {\n background: #ff3b30;\n animation: styles-module__mcpPulseError___fov9B 2s infinite;\n}\n\n.styles-module__helpIcon___xQg56 {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: help;\n margin-left: 0;\n}\n.styles-module__helpIcon___xQg56 svg {\n display: block;\n transform: translateY(1px);\n color: rgba(255, 255, 255, 0.2);\n transition: color 0.15s ease;\n}\n.styles-module__helpIcon___xQg56:hover svg {\n color: rgba(255, 255, 255, 0.5);\n}\n.styles-module__helpIcon___xQg56.styles-module__helpIconNudgeDown___0cqpM svg {\n transform: translateY(1px);\n}\n.styles-module__helpIcon___xQg56.styles-module__helpIconNoNudge___abogC svg {\n transform: translateY(0.5px);\n}\n.styles-module__helpIcon___xQg56.styles-module__helpIconNudge1-5___DM2TQ svg {\n transform: translateY(1.5px);\n}\n.styles-module__helpIcon___xQg56.styles-module__helpIconNudge2___TfWgC svg {\n transform: translateY(2px);\n}\n\n.styles-module__dragSelection___kZLq2 {\n position: fixed;\n top: 0;\n left: 0;\n border: 2px solid rgba(52, 199, 89, 0.6);\n border-radius: 4px;\n background: rgba(52, 199, 89, 0.08);\n pointer-events: none;\n z-index: 99997;\n will-change: transform, width, height;\n contain: layout style;\n}\n\n.styles-module__dragCount___KM90j {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: #34c759;\n color: white;\n font-size: 0.875rem;\n font-weight: 600;\n padding: 0.25rem 0.5rem;\n border-radius: 1rem;\n min-width: 1.5rem;\n text-align: center;\n}\n\n.styles-module__highlightsContainer___-0xzG {\n position: fixed;\n top: 0;\n left: 0;\n pointer-events: none;\n z-index: 99996;\n}\n\n.styles-module__selectedElementHighlight___fyVlI {\n position: fixed;\n top: 0;\n left: 0;\n border: 2px solid rgba(52, 199, 89, 0.5);\n border-radius: 4px;\n background: rgba(52, 199, 89, 0.06);\n pointer-events: none;\n will-change: transform, width, height;\n contain: layout style;\n}\n\n.styles-module__light___r6n4Y.styles-module__toolbarContainer___dIhma {\n background: #fff;\n color: rgba(0, 0, 0, 0.85);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___r6n4Y.styles-module__toolbarContainer___dIhma.styles-module__collapsed___Rydsn:hover {\n background: #f5f5f5;\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc {\n color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc:hover:not(:disabled):not([data-active=true]):not([data-failed=true]):not([data-auto-sync=true]):not([data-error=true]):not([data-no-hover=true]) {\n background: rgba(0, 0, 0, 0.06);\n color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-active=true] {\n color: #3c82f7;\n background: rgba(60, 130, 247, 0.15);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-error=true] {\n color: #ff3b30;\n background: rgba(255, 59, 48, 0.15);\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-danger]:hover:not(:disabled):not([data-active=true]):not([data-failed=true]) {\n background: rgba(255, 59, 48, 0.15);\n color: #ff3b30;\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-auto-sync=true] {\n color: #34c759;\n background: transparent;\n}\n.styles-module__light___r6n4Y.styles-module__controlButton___8Q0jc[data-failed=true] {\n color: #ff3b30;\n background: rgba(255, 59, 48, 0.15);\n}\n.styles-module__light___r6n4Y.styles-module__buttonTooltip___Burd9 {\n background: #fff;\n color: rgba(0, 0, 0, 0.85);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___r6n4Y.styles-module__buttonTooltip___Burd9::after {\n background: #fff;\n}\n.styles-module__light___r6n4Y.styles-module__divider___c--s1 {\n background: rgba(0, 0, 0, 0.1);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID {\n background: #fff;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerQuote___FHmrz {\n color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerNote___QkrrS {\n color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__markerTooltip___aLJID .styles-module__markerHint___2iF-6 {\n color: rgba(0, 0, 0, 0.35);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y {\n background: #fff;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y::before {\n background: linear-gradient(to right, #fff 0%, transparent 100%);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y::after {\n background: linear-gradient(to left, #fff 0%, transparent 100%);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsHeader___pwDY9 {\n border-bottom-color: rgba(0, 0, 0, 0.08);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrand___0gJeM {\n color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsBrandSlash___uTG18 {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsVersion___TUcFq {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsSection___m-YM2 {\n border-top-color: rgba(0, 0, 0, 0.08);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__settingsLabel___8UjfX {\n color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleButton___FMKfw {\n color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY {\n background: rgba(0, 0, 0, 0.2);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__cycleDot___nPgLY.styles-module__active___-zoN6 {\n background: rgba(0, 0, 0, 0.7);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz {\n color: rgba(0, 0, 0, 0.85);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__dropdownButton___16NPz:hover {\n background: rgba(0, 0, 0, 0.05);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__toggleLabel___Xm8Aa {\n color: rgba(0, 0, 0, 0.5);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax {\n border: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo {\n border-color: #1a1a1a;\n background: #1a1a1a;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__customCheckbox___U39ax.styles-module__checked___mnZLo svg {\n color: #fff;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr:hover {\n color: rgba(0, 0, 0, 0.7);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__sliderLabel___U8sPr.styles-module__active___-zoN6 {\n color: rgba(0, 0, 0, 0.9);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp {\n background: rgba(0, 0, 0, 0.1);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-webkit-slider-thumb {\n background: #1a1a1a;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__slider___GLdxp::-moz-range-thumb {\n background: #1a1a1a;\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56 svg {\n color: rgba(0, 0, 0, 0.2);\n}\n.styles-module__light___r6n4Y.styles-module__settingsPanel___OxX3Y .styles-module__helpIcon___xQg56:hover svg {\n color: rgba(0, 0, 0, 0.5);\n}\n\n.styles-module__themeToggle___2rUjA {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n margin-left: 0.5rem;\n border: none;\n border-radius: 6px;\n background: transparent;\n color: rgba(255, 255, 255, 0.4);\n cursor: pointer;\n transition: background-color 0.15s ease, color 0.15s ease;\n}\n.styles-module__themeToggle___2rUjA:hover {\n background: rgba(255, 255, 255, 0.1);\n color: rgba(255, 255, 255, 0.8);\n}\n.styles-module__light___r6n4Y .styles-module__themeToggle___2rUjA {\n color: rgba(0, 0, 0, 0.4);\n}\n.styles-module__light___r6n4Y .styles-module__themeToggle___2rUjA:hover {\n background: rgba(0, 0, 0, 0.06);\n color: rgba(0, 0, 0, 0.7);\n}\n\n.styles-module__themeIconWrapper___LsJIM {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 20px;\n height: 20px;\n}\n\n.styles-module__themeIcon___lCCmo {\n display: flex;\n align-items: center;\n justify-content: center;\n animation: styles-module__themeIconIn___TU6ML 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;\n}\n\n@keyframes styles-module__themeIconIn___TU6ML {\n 0% {\n opacity: 0;\n transform: scale(0.8) rotate(-30deg);\n }\n 100% {\n opacity: 1;\n transform: scale(1) rotate(0deg);\n }\n}',document.head.appendChild(e))}var eV={toolbar:"styles-module__toolbar___wNsdK",markersLayer:"styles-module__markersLayer___-25j1",fixedMarkersLayer:"styles-module__fixedMarkersLayer___ffyX6",toolbarContainer:"styles-module__toolbarContainer___dIhma",dragging:"styles-module__dragging___xrolZ",entrance:"styles-module__entrance___sgHd8",toolbarEnter:"styles-module__toolbarEnter___u8RRu",hiding:"styles-module__hiding___1td44",toolbarHide:"styles-module__toolbarHide___y8kaT",collapsed:"styles-module__collapsed___Rydsn",expanded:"styles-module__expanded___ofKPx",serverConnected:"styles-module__serverConnected___Gfbou",toggleContent:"styles-module__toggleContent___0yfyP",visible:"styles-module__visible___KHwEW",hidden:"styles-module__hidden___Ae8H4",controlsContent:"styles-module__controlsContent___9GJWU",badge:"styles-module__badge___2XsgF",fadeOut:"styles-module__fadeOut___6Ut6-",badgeEnter:"styles-module__badgeEnter___mVQLj",controlButton:"styles-module__controlButton___8Q0jc",statusShowing:"styles-module__statusShowing___te6iu",buttonBadge:"styles-module__buttonBadge___NeFWb",light:"styles-module__light___r6n4Y",mcpIndicator:"styles-module__mcpIndicator___zGJeL",connected:"styles-module__connected___7c28g",mcpIndicatorPulseConnected:"styles-module__mcpIndicatorPulseConnected___EDodZ",connecting:"styles-module__connecting___uo-CW",mcpIndicatorPulseConnecting:"styles-module__mcpIndicatorPulseConnecting___cCYte",connectionIndicatorWrapper:"styles-module__connectionIndicatorWrapper___L-e-3",connectionIndicator:"styles-module__connectionIndicator___afk9p",connectionIndicatorVisible:"styles-module__connectionIndicatorVisible___C-i5B",connectionIndicatorConnected:"styles-module__connectionIndicatorConnected___IY8pR",connectionPulse:"styles-module__connectionPulse___-Zycw",connectionIndicatorDisconnected:"styles-module__connectionIndicatorDisconnected___kmpaZ",connectionIndicatorConnecting:"styles-module__connectionIndicatorConnecting___QmSLH",buttonWrapper:"styles-module__buttonWrapper___rBcdv",buttonTooltip:"styles-module__buttonTooltip___Burd9",tooltipsInSession:"styles-module__tooltipsInSession___-0lHH",sendButtonWrapper:"styles-module__sendButtonWrapper___UUxG6",sendButtonVisible:"styles-module__sendButtonVisible___WPSQU",shortcut:"styles-module__shortcut___lEAQk",tooltipBelow:"styles-module__tooltipBelow___m6ats",tooltipsHidden:"styles-module__tooltipsHidden___VtLJG",tooltipVisible:"styles-module__tooltipVisible___0jcCv",buttonWrapperAlignLeft:"styles-module__buttonWrapperAlignLeft___myzIp",buttonWrapperAlignRight:"styles-module__buttonWrapperAlignRight___HCQFR",divider:"styles-module__divider___c--s1",overlay:"styles-module__overlay___Q1O9y",hoverHighlight:"styles-module__hoverHighlight___ogakW",enter:"styles-module__enter___WFIki",hoverHighlightIn:"styles-module__hoverHighlightIn___6WYHY",multiSelectOutline:"styles-module__multiSelectOutline___cSJ-m",fadeIn:"styles-module__fadeIn___b9qmf",exit:"styles-module__exit___fyOJ0",singleSelectOutline:"styles-module__singleSelectOutline___QhX-O",hoverTooltip:"styles-module__hoverTooltip___bvLk7",hoverTooltipIn:"styles-module__hoverTooltipIn___FYGQx",hoverReactPath:"styles-module__hoverReactPath___gx1IJ",hoverElementName:"styles-module__hoverElementName___QMLMl",marker:"styles-module__marker___6sQrs",clearing:"styles-module__clearing___FQ--7",markerIn:"styles-module__markerIn___5FaAP",markerOut:"styles-module__markerOut___GU5jX",pending:"styles-module__pending___2IHLC",fixed:"styles-module__fixed___dBMHC",multiSelect:"styles-module__multiSelect___YWiuz",hovered:"styles-module__hovered___ZgXIy",renumber:"styles-module__renumber___nCTxD",renumberRoll:"styles-module__renumberRoll___Wgbq3",markerTooltip:"styles-module__markerTooltip___aLJID",tooltipIn:"styles-module__tooltipIn___0N31w",markerQuote:"styles-module__markerQuote___FHmrz",markerNote:"styles-module__markerNote___QkrrS",markerHint:"styles-module__markerHint___2iF-6",settingsPanel:"styles-module__settingsPanel___OxX3Y",settingsHeader:"styles-module__settingsHeader___pwDY9",settingsBrand:"styles-module__settingsBrand___0gJeM",settingsBrandSlash:"styles-module__settingsBrandSlash___uTG18",settingsVersion:"styles-module__settingsVersion___TUcFq",settingsSection:"styles-module__settingsSection___m-YM2",settingsLabel:"styles-module__settingsLabel___8UjfX",cycleButton:"styles-module__cycleButton___FMKfw",cycleDot:"styles-module__cycleDot___nPgLY",dropdownButton:"styles-module__dropdownButton___16NPz",toggleLabel:"styles-module__toggleLabel___Xm8Aa",customCheckbox:"styles-module__customCheckbox___U39ax",sliderLabel:"styles-module__sliderLabel___U8sPr",slider:"styles-module__slider___GLdxp",helpIcon:"styles-module__helpIcon___xQg56",themeToggle:"styles-module__themeToggle___2rUjA",dark:"styles-module__dark___ILIQf",settingsOption:"styles-module__settingsOption___UNa12",selected:"styles-module__selected___OwRqP",settingsPanelContainer:"styles-module__settingsPanelContainer___Xksv8",transitioning:"styles-module__transitioning___qxzCk",settingsPage:"styles-module__settingsPage___6YfHH",slideLeft:"styles-module__slideLeft___Ps01J",automationsPage:"styles-module__automationsPage___uvCq6",slideIn:"styles-module__slideIn___4-qXe",settingsNavLink:"styles-module__settingsNavLink___wCzJt",settingsNavLinkRight:"styles-module__settingsNavLinkRight___ZWwhj",mcpNavIndicator:"styles-module__mcpNavIndicator___cl9pO",mcpPulse:"styles-module__mcpPulse___uNggr",settingsBackButton:"styles-module__settingsBackButton___bIe2j",automationHeader:"styles-module__automationHeader___InP0r",automationDescription:"styles-module__automationDescription___NKlmo",learnMoreLink:"styles-module__learnMoreLink___8xv-x",autoSendRow:"styles-module__autoSendRow___UblX5",autoSendLabel:"styles-module__autoSendLabel___icDc2",active:"styles-module__active___-zoN6",webhookUrlInput:"styles-module__webhookUrlInput___2375C",settingsSectionExtraPadding:"styles-module__settingsSectionExtraPadding___jdhFV",settingsSectionGrow:"styles-module__settingsSectionGrow___h-5HZ",settingsRow:"styles-module__settingsRow___3sdhc",settingsRowMarginTop:"styles-module__settingsRowMarginTop___zA0Sp",dropdownContainer:"styles-module__dropdownContainer___BVnxe",settingsRowDisabled:"styles-module__settingsRowDisabled___EgS0V",toggleSwitch:"styles-module__toggleSwitch___l4Ygm",cycleButtonText:"styles-module__cycleButtonText___fD1LR",cycleTextIn:"styles-module__cycleTextIn___Q6zJf",cycleDots:"styles-module__cycleDots___LWuoQ",dropdownMenu:"styles-module__dropdownMenu___k73ER",scaleIn:"styles-module__scaleIn___c-r1K",dropdownItem:"styles-module__dropdownItem___ylsLj",settingsLabelMarker:"styles-module__settingsLabelMarker___ewdtV",settingsOptions:"styles-module__settingsOptions___LyrBA",sliderContainer:"styles-module__sliderContainer___ducXj",sliderLabels:"styles-module__sliderLabels___FhLDB",colorOptions:"styles-module__colorOptions___iHCNX",colorOption:"styles-module__colorOption___IodiY",colorOptionRing:"styles-module__colorOptionRing___U2xpo",settingsToggle:"styles-module__settingsToggle___fBrFn",settingsToggleMarginBottom:"styles-module__settingsToggleMarginBottom___MZUyF",checked:"styles-module__checked___mnZLo",toggleSlider:"styles-module__toggleSlider___wprIn",disabled:"styles-module__disabled___332Jw",mcpStatusDot:"styles-module__mcpStatusDot___ibgkc",disconnected:"styles-module__disconnected___cHPxR",mcpPulseError:"styles-module__mcpPulseError___fov9B",helpIconNudgeDown:"styles-module__helpIconNudgeDown___0cqpM",helpIconNoNudge:"styles-module__helpIconNoNudge___abogC","helpIconNudge1-5":"styles-module__helpIconNudge1-5___DM2TQ",helpIconNudge2:"styles-module__helpIconNudge2___TfWgC",dragSelection:"styles-module__dragSelection___kZLq2",dragCount:"styles-module__dragCount___KM90j",highlightsContainer:"styles-module__highlightsContainer___-0xzG",selectedElementHighlight:"styles-module__selectedElementHighlight___fyVlI",themeIconWrapper:"styles-module__themeIconWrapper___LsJIM",themeIcon:"styles-module__themeIcon___lCCmo",themeIconIn:"styles-module__themeIconIn___TU6ML",scaleOut:"styles-module__scaleOut___Wctwz",slideUp:"styles-module__slideUp___kgD36",slideDown:"styles-module__slideDown___zcdje",settingsPanelIn:"styles-module__settingsPanelIn___MGfO8",settingsPanelOut:"styles-module__settingsPanelOut___Zfymi"};function eJ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"filtered",{name:n,path:r}=eu(e);if("off"===t)return{name:n,elementName:n,path:r,reactComponents:null};let o=function(e,t){let n,r,o=(n=t?.mode??"filtered",r=eB,t?.skipExact&&(r=new Set([...eB,...t.skipExact instanceof Set?t.skipExact:new Set(t.skipExact)])),{maxComponents:t?.maxComponents??6,maxDepth:t?.maxDepth??30,mode:n,skipExact:r,skipPatterns:t?.skipPatterns?[...ez,...t.skipPatterns]:ez,userPatterns:t?.userPatterns??eW,filter:t?.filter}),s="all"===o.mode;if(s){let t=eH.get(e);if(void 0!==t)return t}if(!function(){if(null!==eF)return eF;if("u"1&&void 0!==arguments[1]?arguments[1]:10,n=new Set,r=e,o=0;for(;r&&o{if(e.length>1){let t=e.replace(/[_][a-zA-Z0-9]{5,}.*$/,"").toLowerCase();t.length>1&&n.add(t)}}),r=r.parentElement,o++;return n}(e):void 0,a=[];try{var l;let t,n=(l=e,(t=Object.keys(l).find(e=>e.startsWith("__reactFiber$")||e.startsWith("__reactInternalInstance$"))||null)?l[t]:null),r=0;for(;n&&rt.test(e)))return!1;return!0;case"smart":if(n.skipExact.has(e)||n.skipPatterns.some(t=>t.test(e)))return!1;if(r&&function(e,t){let n=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").toLowerCase();for(let e of t){if(e===n)return!0;let t=n.split("-").filter(e=>e.length>2),r=e.split("-").filter(e=>e.length>2);for(let e of t)for(let t of r)if(e===t||e.includes(t)||t.includes(e))return!0}return!1}(e,r)||n.userPatterns.some(t=>t.test(e)))return!0;return!1}}(e,r,o,i)&&a.push(e),n=n.return,r++}}catch{let t={path:null,components:[]};return s&&eH.set(e,t),t}if(0===a.length){let t={path:null,components:[]};return s&&eH.set(e,t),t}let c={path:a.slice().reverse().map(e=>`<${e}>`).join(" "),components:a};return s&&eH.set(e,c),c}(e,{mode:t});return{name:o.path?`${o.path} ${n}`:n,elementName:n,path:r,reactComponents:o.path}}var eZ=!1,eG={outputDetail:"standard",autoClearAfterCopy:!1,annotationColor:"#3c82f7",blockInteractions:!0,reactEnabled:!0,markerClickBehavior:"edit",webhookUrl:"",webhooksEnabled:!0},eK=e=>{if(!e||!e.trim())return!1;try{let t=new URL(e.trim());return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}},e0=[{value:"compact",label:"Compact"},{value:"standard",label:"Standard"},{value:"detailed",label:"Detailed"},{value:"forensic",label:"Forensic"}],e1=[{value:"#AF52DE",label:"Purple"},{value:"#3c82f7",label:"Blue"},{value:"#5AC8FA",label:"Cyan"},{value:"#34C759",label:"Green"},{value:"#FFD60A",label:"Yellow"},{value:"#FF9500",label:"Orange"},{value:"#FF3B30",label:"Red"}];function e5(e,t){let n=document.elementFromPoint(e,t);if(!n)return null;for(;n?.shadowRoot;){let r=n.shadowRoot.elementFromPoint(e,t);if(!r||r===n)break;n=r}return n}function e2(e){let t=e;for(;t&&t!==document.body;){let e=window.getComputedStyle(t).position;if("fixed"===e||"sticky"===e)return!0;t=t.parentElement}return!1}function e4(e){return"resolved"!==e.status&&"dismissed"!==e.status}function e3(e){let t=eQ(e),n=t.found?t:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=e,r=0;for(;n&&r1&&void 0!==arguments[1]?arguments[1]:"path",{fileName:n,lineNumber:r,columnNumber:o}=e,s=`${n}:${r}`;return(void 0!==o&&(s+=`:${o}`),"vscode"===t)?`vscode://file${n.startsWith("/")?"":"/"}${s}`:s}(n.source,"path")}function e6(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if(arguments.length>3&&void 0!==arguments[3]&&arguments[3],0===e.length)return"";let r="u">typeof window?`${window.innerWidth}\xd7${window.innerHeight}`:"unknown",o=`## Page Feedback: ${t} `;return"forensic"===n?(o+=` **Environment:** - Viewport: ${r} `,"u">typeof window&&(o+=`- URL: ${window.location.href} - User Agent: ${navigator.userAgent} - Timestamp: ${new Date().toISOString()} - Device Pixel Ratio: ${window.devicePixelRatio} `),o+=` --- `):"compact"!==n&&(o+=`**Viewport:** ${r} `),o+="\n",e.forEach((e,t)=>{"compact"===n?(o+=`${t+1}. **${e.element}**${e.sourceFile?` (${e.sourceFile})`:""}: ${e.comment}`,e.selectedText&&(o+=` (re: "${e.selectedText.slice(0,30)}${e.selectedText.length>30?"...":""}")`),o+="\n"):("forensic"===n?(o+=`### ${t+1}. ${e.element} `,e.isMultiSelect&&e.fullPath&&(o+=`*Forensic data shown for first element of selection* `),e.fullPath&&(o+=`**Full DOM Path:** ${e.fullPath} `),e.cssClasses&&(o+=`**CSS Classes:** ${e.cssClasses} `),e.boundingBox&&(o+=`**Position:** x:${Math.round(e.boundingBox.x)}, y:${Math.round(e.boundingBox.y)} (${Math.round(e.boundingBox.width)}\xd7${Math.round(e.boundingBox.height)}px) `),o+=`**Annotation at:** ${e.x.toFixed(1)}% from left, ${Math.round(e.y)}px from top `,e.selectedText&&(o+=`**Selected text:** "${e.selectedText}" `),e.nearbyText&&!e.selectedText&&(o+=`**Context:** ${e.nearbyText.slice(0,100)} `),e.computedStyles&&(o+=`**Computed Styles:** ${e.computedStyles} `),e.accessibility&&(o+=`**Accessibility:** ${e.accessibility} `),e.nearbyElements&&(o+=`**Nearby Elements:** ${e.nearbyElements} `),e.sourceFile&&(o+=`**Source:** ${e.sourceFile} `),e.reactComponents&&(o+=`**React:** ${e.reactComponents} `)):(o+=`### ${t+1}. ${e.element} **Location:** ${e.elementPath} `,e.sourceFile&&(o+=`**Source:** ${e.sourceFile} `),e.reactComponents&&(o+=`**React:** ${e.reactComponents} `),"detailed"===n&&(e.cssClasses&&(o+=`**Classes:** ${e.cssClasses} `),e.boundingBox&&(o+=`**Position:** ${Math.round(e.boundingBox.x)}px, ${Math.round(e.boundingBox.y)}px (${Math.round(e.boundingBox.width)}\xd7${Math.round(e.boundingBox.height)}px) `)),e.selectedText&&(o+=`**Selected text:** "${e.selectedText}" `),"detailed"===n&&e.nearbyText&&!e.selectedText&&(o+=`**Context:** ${e.nearbyText.slice(0,100)} `)),o+=`**Feedback:** ${e.comment} `)}),o.trim()}function e8(){let e,o,s,i,a,l,{demoAnnotations:c,demoDelay:u=1e3,enableDemoMode:d=!1,onAnnotationAdd:_,onAnnotationDelete:p,onAnnotationUpdate:f,onAnnotationsClear:g,onCopy:x,onSubmit:S,copyToClipboard:C=!0,endpoint:E,sessionId:I,onSessionCreated:M,webhookUrl:j,className:$}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[R,P]=(0,t.useState)(!1),[O,D]=(0,t.useState)([]),[B,Y]=(0,t.useState)(!0),[q,Q]=(0,t.useState)(()=>(function(){if("u"{let e=e=>{let t=es.current;t&&t.contains(e.target)&&e.stopPropagation()},t=["mousedown","click","pointerdown"];return t.forEach(t=>document.body.addEventListener(t,e)),()=>{t.forEach(t=>document.body.removeEventListener(t,e))}},[]);let[ea,el]=(0,t.useState)(!1),[ec,e_]=(0,t.useState)(!1),[em,ef]=(0,t.useState)(null),[eg,ey]=(0,t.useState)({x:0,y:0}),[eb,ex]=(0,t.useState)(null),[eM,eB]=(0,t.useState)(!1),[ez,eW]=(0,t.useState)("idle"),[eF,eH]=(0,t.useState)(!1),[eU,eY]=(0,t.useState)(!1),[eX,eq]=(0,t.useState)(null),[eQ,e8]=(0,t.useState)(null),[e7,e9]=(0,t.useState)([]),[te,tt]=(0,t.useState)(null),[tn,tr]=(0,t.useState)(null),[to,ts]=(0,t.useState)(null),[ti,ta]=(0,t.useState)(null),[tl,tc]=(0,t.useState)([]),[tu,td]=(0,t.useState)(0),[t_,tp]=(0,t.useState)(!1),[th,tm]=(0,t.useState)(!1),[tf,tg]=(0,t.useState)(!1),[ty,tb]=(0,t.useState)(!1),[tv,tx]=(0,t.useState)(!1),[tw,tk]=(0,t.useState)("main"),[tS,tC]=(0,t.useState)(!1),[tE,tI]=(0,t.useState)(!1),[tL,tT]=(0,t.useState)(!1),tM=(0,t.useRef)(null),[tN,tj]=(0,t.useState)([]),t$=(0,t.useRef)({cmd:!1,shift:!1}),tR=()=>{tI(!0)};(0,t.useEffect)(()=>()=>{tM.current&&clearTimeout(tM.current)},[]);let tA=e=>{let{content:o,children:s}=e,[i,a]=(0,t.useState)(!1),[l,c]=(0,t.useState)(!1),[u,d]=(0,t.useState)(!1),[_,p]=(0,t.useState)({top:0,right:0}),h=(0,t.useRef)(null),m=(0,t.useRef)(null),f=(0,t.useRef)(null);return(0,t.useEffect)(()=>()=>{m.current&&clearTimeout(m.current),f.current&&clearTimeout(f.current)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{ref:h,onMouseEnter:()=>{if(a(!0),d(!0),f.current&&(clearTimeout(f.current),f.current=null),h.current){let e=h.current.getBoundingClientRect();p({top:e.top+e.height/2,right:window.innerWidth-e.left+8})}m.current=ee(()=>{c(!0)},500)},onMouseLeave:()=>{a(!1),m.current&&(clearTimeout(m.current),m.current=null),c(!1),f.current=ee(()=>{d(!1)},150)},children:s}),u&&(0,n.createPortal)((0,r.jsx)("div",{"data-feedback-toolbar":!0,style:{position:"fixed",top:_.top,right:_.right,transform:"translateY(-50%)",padding:"6px 10px",background:"#383838",color:"rgba(255, 255, 255, 0.7)",fontSize:"11px",fontWeight:400,lineHeight:"14px",borderRadius:"10px",width:"180px",textAlign:"left",zIndex:100020,pointerEvents:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.28)",opacity:l&&!tS?1:0,transition:"opacity 0.15s ease"},children:o}),document.body)]})},[tP,tO]=(0,t.useState)(eG),[tD,tB]=(0,t.useState)(!0),[tz,tW]=(0,t.useState)(!1),[tF,tH]=(0,t.useState)(I??null),tU=(0,t.useRef)(!1),[tY,tX]=(0,t.useState)(E?"connecting":"disconnected"),[tq,tQ]=(0,t.useState)(null),[tV,tJ]=(0,t.useState)(!1),[tZ,tG]=(0,t.useState)(null),[tK,t0]=(0,t.useState)(0),t1=(0,t.useRef)(!1),[t5,t2]=(0,t.useState)(new Set),[t4,t3]=(0,t.useState)(new Set),[t6,t8]=(0,t.useState)(!1),[t7,t9]=(0,t.useState)(!1),[ne,nt]=(0,t.useState)(!1),nn=(0,t.useRef)(null),nr=(0,t.useRef)(null),no=(0,t.useRef)(null),ns=(0,t.useRef)(null),ni=(0,t.useRef)(!1),na=(0,t.useRef)(0),nl=(0,t.useRef)(null),nc=(0,t.useRef)(null),nu=(0,t.useRef)(null),nd=(0,t.useRef)(null),n_=(0,t.useRef)(null),np="u">typeof window?window.location.pathname:"/";(0,t.useEffect)(()=>{if(ty)tx(!0);else{tI(!1),tk("main");let e=ee(()=>tx(!1),0);return()=>clearTimeout(e)}},[ty]),(0,t.useEffect)(()=>{tC(!0);let e=ee(()=>tC(!1),350);return()=>clearTimeout(e)},[tw]);let nh=R&&B;(0,t.useEffect)(()=>{if(nh){e_(!1),el(!0),t2(new Set);let e=ee(()=>{t2(e=>{let t=new Set(e);return O.forEach(e=>t.add(e.id)),t})},350);return()=>clearTimeout(e)}if(ea){e_(!0);let e=ee(()=>{el(!1),e_(!1)},250);return()=>clearTimeout(e)}},[nh]),(0,t.useEffect)(()=>{tm(!0),td(window.scrollY),D(eI(np).filter(e4)),eZ||(tW(!0),eZ=!0,ee(()=>tW(!1),750));try{let e=localStorage.getItem("feedback-toolbar-settings");e&&tO({...eG,...JSON.parse(e)})}catch(e){}try{let e=localStorage.getItem("feedback-toolbar-theme");null!==e&&tB("dark"===e)}catch(e){}try{let e=localStorage.getItem("feedback-toolbar-position");if(e){let t=JSON.parse(e);"number"==typeof t.x&&"number"==typeof t.y&&tQ(t)}}catch(e){}},[np]),(0,t.useEffect)(()=>{th&&localStorage.setItem("feedback-toolbar-settings",JSON.stringify(tP))},[tP,th]),(0,t.useEffect)(()=>{th&&localStorage.setItem("feedback-toolbar-theme",tD?"dark":"light")},[tD,th]);let nm=(0,t.useRef)(!1);(0,t.useEffect)(()=>{let e=nm.current;nm.current=tV,e&&!tV&&tq&&th&&localStorage.setItem("feedback-toolbar-position",JSON.stringify(tq))},[tV,tq,th]),(0,t.useEffect)(()=>{E&&th&&!tU.current&&(tU.current=!0,tX("connecting"),(async()=>{try{let e=function(e){if("u"e.id)),s=r.filter(e=>!o.has(e.id));if(s.length>0){let t="u">typeof window?window.location.origin:"",n=`${t}${np}`,r=(await Promise.allSettled(s.map(t=>eP(E,e.id,{...t,sessionId:e.id,url:n})))).map((e,t)=>"fulfilled"===e.status?e.value:(console.warn("[Agentation] Failed to sync annotation:",e.reason),s[t])),o=[...e.annotations,...r];D(o.filter(e4)),eT(np,o.filter(e4),e.id)}else D(e.annotations.filter(e4)),eT(np,e.annotations.filter(e4),e.id)}catch(e){console.warn("[Agentation] Could not join session, creating new:",e);if("u">typeof window)try{localStorage.removeItem(eN(np))}catch{}}if(!n){let e="u">typeof window?window.location.href:"/",t=await eR(E,e);tH(t.id),tX("connected"),ej(np,t.id),M?.(t.id);let n=function(){let e=new Map;if("u"!e.timestamp||e.timestamp>t);r.length>0&&e.set(n,r)}}}}catch{}return e}(),r="u">typeof window?window.location.origin:"",o=[];for(let[e,s]of n){let n=s.filter(e=>!e._syncedTo);if(0===n.length)continue;let i=`${r}${e}`,a=e===np;o.push((async()=>{try{let r=a?t:await eR(E,i),o=(await Promise.allSettled(n.map(e=>eP(E,r.id,{...e,sessionId:r.id,url:i})))).map((e,t)=>"fulfilled"===e.status?e.value:(console.warn("[Agentation] Failed to sync annotation:",e.reason),n[t])).filter(e4);if(eT(e,o,r.id),a){let e=new Set(n.map(e=>e.id));D(t=>{let n=t.filter(t=>!e.has(t.id));return[...o,...n]})}}catch(t){console.warn(`[Agentation] Failed to sync annotations for ${e}:`,t)}})())}await Promise.allSettled(o)}}catch(e){tX("disconnected"),console.warn("[Agentation] Failed to initialize session, using local storage:",e)}})())},[E,I,th,M,np]),(0,t.useEffect)(()=>{if(!E||!th)return;let e=async()=>{try{(await fetch(`${E}/health`)).ok?tX("connected"):tX("disconnected")}catch{tX("disconnected")}};e();let t=et(e,1e4);return()=>clearInterval(t)},[E,th]),(0,t.useEffect)(()=>{if(!E||!th||!tF)return;let e=new EventSource(`${E}/sessions/${tF}/events`),t=["resolved","dismissed"],n=e=>{try{let n=JSON.parse(e.data);if(t.includes(n.payload?.status)){let e=n.payload.id;t3(t=>new Set(t).add(e)),ee(()=>{D(t=>t.filter(t=>t.id!==e)),t3(t=>{let n=new Set(t);return n.delete(e),n})},150)}}catch{}};return e.addEventListener("annotation.updated",n),()=>{e.removeEventListener("annotation.updated",n),e.close()}},[E,th,tF]),(0,t.useEffect)(()=>{if(!E||!th)return;let e="disconnected"===nc.current,t="connected"===tY;nc.current=tY,e&&t&&(async()=>{try{let e=eI(np);if(0===e.length)return;let t="u">typeof window?window.location.origin:"",n=`${t}${np}`,r=tF,o=[];if(r)try{o=(await eA(E,r)).annotations}catch{r=null}r||(r=(await eR(E,n)).id,tH(r),ej(np,r));let s=new Set(o.map(e=>e.id)),i=e.filter(e=>!s.has(e.id));if(i.length>0){let e=(await Promise.allSettled(i.map(e=>eP(E,r,{...e,sessionId:r,url:n})))).map((e,t)=>"fulfilled"===e.status?e.value:(console.warn("[Agentation] Failed to sync annotation on reconnect:",e.reason),i[t])),t=[...o,...e].filter(e4);D(t),eT(np,t,r)}}catch(e){console.warn("[Agentation] Failed to sync on reconnect:",e)}})()},[tY,E,th,tF,np]);let nf=(0,t.useCallback)(()=>{G||(er(!0),tb(!1),P(!1),ee(()=>{if("u">typeof window)try{sessionStorage.setItem(e$,"1")}catch{}Q(!0),er(!1)},400))},[G]);(0,t.useEffect)(()=>{if(!d||!th||!c||0===c.length||O.length>0)return;let e=[];return e.push(ee(()=>{P(!0)},u-200)),c.forEach((t,n)=>{e.push(ee(()=>{let e=document.querySelector(t.selector);if(!e)return;let r=e.getBoundingClientRect(),{name:o,path:s}=eu(e),i={id:`demo-${Date.now()}-${n}`,x:(r.left+r.width/2)/window.innerWidth*100,y:r.top+r.height/2+window.scrollY,comment:t.comment,element:o,elementPath:s,timestamp:Date.now(),selectedText:t.selectedText,boundingBox:{x:r.left,y:r.top+window.scrollY,width:r.width,height:r.height},nearbyText:ed(e),cssClasses:eh(e)};D(e=>[...e,i])},u+300*n))}),()=>{e.forEach(clearTimeout)}},[d,th,c,u]),(0,t.useEffect)(()=>{let e=()=>{td(window.scrollY),tp(!0),n_.current&&clearTimeout(n_.current),n_.current=ee(()=>{tp(!1)},150)};return window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),n_.current&&clearTimeout(n_.current)}},[]),(0,t.useEffect)(()=>{th&&O.length>0?tF?eT(np,O,tF):eL(np,O):th&&0===O.length&&localStorage.removeItem(eE(np))},[O,np,th,tF]);let ng=(0,t.useCallback)(()=>{tf||(!function(){if("u"{var t;"running"===e.playState&&((t=e.effect?.target)&&V.some(e=>!!t.closest?.(`[${e}]`))||(e.pause(),K.pausedAnimations.push(e)))})}catch{}document.querySelectorAll("video").forEach(e=>{e.paused||(e.dataset.wasPaused="false",e.pause())})}(),tg(!0))},[tf]),ny=(0,t.useCallback)(()=>{tf&&(en(),tg(!1))},[tf]),nb=(0,t.useCallback)(()=>{tf?ny():ng()},[tf,ng,ny]),nv=(0,t.useCallback)(()=>{if(0===tN.length)return;let e=tN[0],t=e.element,n=tN.length>1,r=tN.map(e=>e.element.getBoundingClientRect());if(n){let e={left:Math.min(...r.map(e=>e.left)),top:Math.min(...r.map(e=>e.top)),right:Math.max(...r.map(e=>e.right)),bottom:Math.max(...r.map(e=>e.bottom))},n=tN.slice(0,5).map(e=>e.name).join(", "),o=tN.length>5?` +${tN.length-5} more`:"",s=r.map(e=>({x:e.left,y:e.top+window.scrollY,width:e.width,height:e.height})),i=tN[tN.length-1].element,a=r[r.length-1],l=a.left+a.width/2,c=a.top+a.height/2,u=e2(i);ex({x:l/window.innerWidth*100,y:u?c:c+window.scrollY,clientY:c,element:`${tN.length} elements: ${n}${o}`,elementPath:"multi-select",boundingBox:{x:e.left,y:e.top+window.scrollY,width:e.right-e.left,height:e.bottom-e.top},isMultiSelect:!0,isFixed:u,elementBoundingBoxes:s,multiSelectElements:tN.map(e=>e.element),targetElement:i,fullPath:eS(t),accessibility:ek(t),computedStyles:ew(t),computedStylesObj:ev(t),nearbyElements:ep(t),cssClasses:eh(t),nearbyText:ed(t),sourceFile:e3(t)})}else{let n=r[0],o=e2(t);ex({x:n.left/window.innerWidth*100,y:o?n.top:n.top+window.scrollY,clientY:n.top,element:e.name,elementPath:e.path,boundingBox:{x:n.left,y:o?n.top:n.top+window.scrollY,width:n.width,height:n.height},isFixed:o,fullPath:eS(t),accessibility:ek(t),computedStyles:ew(t),computedStylesObj:ev(t),nearbyElements:ep(t),cssClasses:eh(t),nearbyText:ed(t),reactComponents:e.reactComponents,sourceFile:e3(t)})}tj([]),ef(null)},[tN]);(0,t.useEffect)(()=>{!R&&(ex(null),ts(null),ta(null),tc([]),ef(null),tb(!1),tj([]),t$.current={cmd:!1,shift:!1},tf&&ny())},[R,tf,ny]),(0,t.useEffect)(()=>()=>{en()},[]),(0,t.useEffect)(()=>{if(!R)return;let e=document.createElement("style");return e.id="feedback-cursor-styles",e.textContent=` body * { cursor: crosshair !important; } body p, body span, body h1, body h2, body h3, body h4, body h5, body h6, body li, body td, body th, body label, body blockquote, body figcaption, body caption, body legend, body dt, body dd, body pre, body code, body em, body strong, body b, body i, body u, body s, body a, body time, body address, body cite, body q, body abbr, body dfn, body mark, body small, body sub, body sup, body [contenteditable], body p *, body span *, body h1 *, body h2 *, body h3 *, body h4 *, body h5 *, body h6 *, body li *, body a *, body label *, body pre *, body code *, body blockquote *, body [contenteditable] * { cursor: text !important; } [data-feedback-toolbar], [data-feedback-toolbar] * { cursor: default !important; } [data-feedback-toolbar] textarea, [data-feedback-toolbar] input[type="text"], [data-feedback-toolbar] input[type="url"] { cursor: text !important; } [data-feedback-toolbar] button, [data-feedback-toolbar] button *, [data-feedback-toolbar] label, [data-feedback-toolbar] label *, [data-feedback-toolbar] a, [data-feedback-toolbar] a *, [data-feedback-toolbar] [role="button"], [data-feedback-toolbar] [role="button"] * { cursor: pointer !important; } [data-annotation-marker], [data-annotation-marker] * { cursor: pointer !important; } `,document.head.appendChild(e),()=>{let e=document.getElementById("feedback-cursor-styles");e&&e.remove()}},[R]),(0,t.useEffect)(()=>{if(!R||eb)return;let e=e=>{if(ei(e.composedPath()[0]||e.target,"[data-feedback-toolbar]"))return void ef(null);let t=e5(e.clientX,e.clientY);if(!t||ei(t,"[data-feedback-toolbar]"))return void ef(null);let{name:n,elementName:r,path:o,reactComponents:s}=eJ(t,"off");ef({element:n,elementName:r,elementPath:o,rect:t.getBoundingClientRect(),reactComponents:s}),ey({x:e.clientX,y:e.clientY})};return document.addEventListener("mousemove",e),()=>document.removeEventListener("mousemove",e)},[R,eb,"off"]),(0,t.useEffect)(()=>{if(!R)return;let e=e=>{let t;if(ni.current){ni.current=!1;return}let n=e.composedPath()[0]||e.target;if(ei(n,"[data-feedback-toolbar]")||ei(n,"[data-annotation-popup]")||ei(n,"[data-annotation-marker]"))return;if(e.metaKey&&e.shiftKey&&!eb&&!to){e.preventDefault(),e.stopPropagation();let t=e5(e.clientX,e.clientY);if(!t)return;let n=t.getBoundingClientRect(),{name:r,path:o,reactComponents:s}=eJ(t,"off"),i=tN.findIndex(e=>e.element===t);i>=0?tj(e=>e.filter((e,t)=>t!==i)):tj(e=>[...e,{element:t,rect:n,name:r,path:o,reactComponents:s??void 0}]);return}let r=ei(n,"button, a, input, select, textarea, [role='button'], [onclick]");if(tP.blockInteractions&&r&&(e.preventDefault(),e.stopPropagation()),eb){if(r&&!tP.blockInteractions)return;e.preventDefault(),nu.current?.shake();return}if(to){if(r&&!tP.blockInteractions)return;e.preventDefault(),nd.current?.shake();return}e.preventDefault();let o=e5(e.clientX,e.clientY);if(!o)return;let{name:s,path:i,reactComponents:a}=eJ(o,"off"),l=o.getBoundingClientRect(),c=e.clientX/window.innerWidth*100,u=e2(o),d=u?e.clientY:e.clientY+window.scrollY,_=window.getSelection();_&&_.toString().trim().length>0&&(t=_.toString().trim().slice(0,500));let p=ev(o),h=ew(o);ex({x:c,y:d,clientY:e.clientY,element:s,elementPath:i,selectedText:t,boundingBox:{x:l.left,y:u?l.top:l.top+window.scrollY,width:l.width,height:l.height},nearbyText:ed(o),cssClasses:eh(o),isFixed:u,fullPath:eS(o),accessibility:ek(o),computedStyles:h,computedStylesObj:p,nearbyElements:ep(o),reactComponents:a??void 0,sourceFile:e3(o),targetElement:o}),ef(null)};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[R,eb,to,tP.blockInteractions,"off",tN]),(0,t.useEffect)(()=>{if(!R)return;let e=e=>{"Meta"===e.key&&(t$.current.cmd=!0),"Shift"===e.key&&(t$.current.shift=!0)},t=e=>{let t=t$.current.cmd&&t$.current.shift;"Meta"===e.key&&(t$.current.cmd=!1),"Shift"===e.key&&(t$.current.shift=!1);let n=t$.current.cmd&&t$.current.shift;t&&!n&&tN.length>0&&nv()},n=()=>{t$.current={cmd:!1,shift:!1},tj([])};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),window.addEventListener("blur",n),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t),window.removeEventListener("blur",n)}},[R,tN,nv]),(0,t.useEffect)(()=>{if(!R||eb)return;let e=e=>{let t=e.composedPath()[0]||e.target;ei(t,"[data-feedback-toolbar]")||ei(t,"[data-annotation-marker]")||ei(t,"[data-annotation-popup]")||new Set(["P","SPAN","H1","H2","H3","H4","H5","H6","LI","TD","TH","LABEL","BLOCKQUOTE","FIGCAPTION","CAPTION","LEGEND","DT","DD","PRE","CODE","EM","STRONG","B","I","U","S","A","TIME","ADDRESS","CITE","Q","ABBR","DFN","MARK","SMALL","SUB","SUP"]).has(t.tagName)||t.isContentEditable||(nn.current={x:e.clientX,y:e.clientY})};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[R,eb]),(0,t.useEffect)(()=>{if(!R||eb)return;let e=e=>{if(!nn.current)return;let t=e.clientX-nn.current.x,n=e.clientY-nn.current.y,r=t*t+n*n;if(!ne&&r>=64&&(nr.current=nn.current,nt(!0)),(ne||r>=64)&&nr.current){if(no.current){let t=Math.min(nr.current.x,e.clientX),n=Math.min(nr.current.y,e.clientY),r=Math.abs(e.clientX-nr.current.x),o=Math.abs(e.clientY-nr.current.y);no.current.style.transform=`translate(${t}px, ${n}px)`,no.current.style.width=`${r}px`,no.current.style.height=`${o}px`}let t=Date.now();if(t-na.current<50)return;na.current=t;let n=nr.current.x,r=nr.current.y,o=Math.min(n,e.clientX),s=Math.min(r,e.clientY),i=Math.max(n,e.clientX),a=Math.max(r,e.clientY),l=(o+i)/2,c=(s+a)/2,u=new Set;for(let[e,t]of[[o,s],[i,s],[o,a],[i,a],[l,c],[l,s],[l,a],[o,c],[i,c]])for(let n of document.elementsFromPoint(e,t))n instanceof HTMLElement&&u.add(n);for(let e of document.querySelectorAll("button, a, input, img, p, h1, h2, h3, h4, h5, h6, li, label, td, th, div, span, section, article, aside, nav"))if(e instanceof HTMLElement){let t=e.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/2,l=n>=o&&n<=i&&r>=s&&r<=a,c=Math.min(t.right,i)-Math.max(t.left,o),d=Math.min(t.bottom,a)-Math.max(t.top,s),_=c>0&&d>0?c*d:0,p=t.width*t.height,h=p>0?_/p:0;(l||h>.5)&&u.add(e)}let d=[],_=new Set(["BUTTON","A","INPUT","IMG","P","H1","H2","H3","H4","H5","H6","LI","LABEL","TD","TH","SECTION","ARTICLE","ASIDE","NAV"]);for(let e of u){if(ei(e,"[data-feedback-toolbar]")||ei(e,"[data-annotation-marker]"))continue;let t=e.getBoundingClientRect();if((!(t.width>.8*window.innerWidth)||!(t.height>.5*window.innerHeight))&&!(t.width<10)&&!(t.height<10)&&t.lefto&&t.tops){let n=e.tagName,r=_.has(n);if(!r&&("DIV"===n||"SPAN"===n)){let t=e.textContent&&e.textContent.trim().length>0,n=null!==e.onclick||"button"===e.getAttribute("role")||"link"===e.getAttribute("role")||e.classList.contains("clickable")||e.hasAttribute("data-clickable");(t||n)&&!e.querySelector("p, h1, h2, h3, h4, h5, h6, button, a")&&(r=!0)}if(r){let e=!1;for(let n of d)if(n.left<=t.left&&n.right>=t.right&&n.top<=t.top&&n.bottom>=t.bottom){e=!0;break}e||d.push(t)}}}if(ns.current){let e=ns.current;for(;e.children.length>d.length;)e.removeChild(e.lastChild);d.forEach((t,n)=>{let r=e.children[n];r||((r=document.createElement("div")).className=eV.selectedElementHighlight,e.appendChild(r)),r.style.transform=`translate(${t.left}px, ${t.top}px)`,r.style.width=`${t.width}px`,r.style.height=`${t.height}px`})}}};return document.addEventListener("mousemove",e,{passive:!0}),()=>document.removeEventListener("mousemove",e)},[R,eb,ne,8]),(0,t.useEffect)(()=>{if(!R)return;let e=e=>{let t=nr.current;if(ne&&t){ni.current=!0;let n=Math.min(t.x,e.clientX),r=Math.min(t.y,e.clientY),o=Math.max(t.x,e.clientX),s=Math.max(t.y,e.clientY),i=[];document.querySelectorAll("button, a, input, img, p, h1, h2, h3, h4, h5, h6, li, label, td, th").forEach(e=>{if(!(e instanceof HTMLElement)||ei(e,"[data-feedback-toolbar]")||ei(e,"[data-annotation-marker]"))return;let t=e.getBoundingClientRect();t.width>.8*window.innerWidth&&t.height>.5*window.innerHeight||!(t.width<10)&&!(t.height<10)&&t.leftn&&t.topr&&i.push({element:e,rect:t})});let a=i.filter(e=>{let{element:t}=e;return!i.some(e=>{let{element:n}=e;return n!==t&&t.contains(n)})}),l=e.clientX/window.innerWidth*100,c=e.clientY+window.scrollY;if(a.length>0){let t=a.reduce((e,t)=>{let{rect:n}=t;return{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top),right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)}},{left:1/0,top:1/0,right:-1/0,bottom:-1/0}),n=a.slice(0,5).map(e=>{let{element:t}=e;return eu(t).name}).join(", "),r=a.length>5?` +${a.length-5} more`:"",o=a[0].element,s=ev(o),i=ew(o);ex({x:l,y:c,clientY:e.clientY,element:`${a.length} elements: ${n}${r}`,elementPath:"multi-select",boundingBox:{x:t.left,y:t.top+window.scrollY,width:t.right-t.left,height:t.bottom-t.top},isMultiSelect:!0,fullPath:eS(o),accessibility:ek(o),computedStyles:i,computedStylesObj:s,nearbyElements:ep(o),cssClasses:eh(o),nearbyText:ed(o),sourceFile:e3(o)})}else{let t=Math.abs(o-n),i=Math.abs(s-r);t>20&&i>20&&ex({x:l,y:c,clientY:e.clientY,element:"Area selection",elementPath:`region at (${Math.round(n)}, ${Math.round(r)})`,boundingBox:{x:n,y:r+window.scrollY,width:t,height:i},isMultiSelect:!0})}ef(null)}else ne&&(ni.current=!0);nn.current=null,nr.current=null,nt(!1),ns.current&&(ns.current.innerHTML="")};return document.addEventListener("mouseup",e),()=>document.removeEventListener("mouseup",e)},[R,ne]);let nx=(0,t.useCallback)(async(e,t,n)=>{let r=tP.webhookUrl||j;if(!r||!tP.webhooksEnabled&&!n)return!1;try{return(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:e,timestamp:Date.now(),url:"u">typeof window?window.location.href:void 0,...t})})).ok}catch(e){return console.warn("[Agentation] Webhook failed:",e),!1}},[j,tP.webhookUrl,tP.webhooksEnabled]),nw=(0,t.useCallback)(e=>{if(!eb)return;let t={id:Date.now().toString(),x:eb.x,y:eb.y,comment:e,element:eb.element,elementPath:eb.elementPath,timestamp:Date.now(),selectedText:eb.selectedText,boundingBox:eb.boundingBox,nearbyText:eb.nearbyText,cssClasses:eb.cssClasses,isMultiSelect:eb.isMultiSelect,isFixed:eb.isFixed,fullPath:eb.fullPath,accessibility:eb.accessibility,computedStyles:eb.computedStyles,nearbyElements:eb.nearbyElements,reactComponents:eb.reactComponents,sourceFile:eb.sourceFile,elementBoundingBoxes:eb.elementBoundingBoxes,...E&&tF?{sessionId:tF,url:"u">typeof window?window.location.href:void 0,status:"pending"}:{}};D(e=>[...e,t]),nl.current=t.id,ee(()=>{nl.current=null},300),ee(()=>{t2(e=>new Set(e).add(t.id))},250),_?.(t),nx("annotation.add",{annotation:t}),t8(!0),ee(()=>{ex(null),t8(!1)},150),window.getSelection()?.removeAllRanges(),E&&tF&&eP(E,tF,t).then(e=>{e.id!==t.id&&(D(n=>n.map(n=>n.id===t.id?{...n,id:e.id}:n)),t2(n=>{let r=new Set(n);return r.delete(t.id),r.add(e.id),r}))}).catch(e=>{console.warn("[Agentation] Failed to sync annotation:",e)})},[eb,_,nx,E,tF]),nk=(0,t.useCallback)(()=>{t8(!0),ee(()=>{ex(null),t8(!1)},150)},[]),nS=(0,t.useCallback)(e=>{let t=O.findIndex(t=>t.id===e),n=O[t];to?.id===e&&(t9(!0),ee(()=>{ts(null),ta(null),tc([]),t9(!1)},150)),tt(e),t3(t=>new Set(t).add(e)),n&&(p?.(n),nx("annotation.delete",{annotation:n})),E&&eD(E,e).catch(e=>{console.warn("[Agentation] Failed to delete annotation from server:",e)}),ee(()=>{D(t=>t.filter(t=>t.id!==e)),t3(t=>{let n=new Set(t);return n.delete(e),n}),tt(null),ttr(null),200))},150)},[O,to,p,nx,E]),nC=(0,t.useCallback)(e=>{if(ts(e),eq(null),e8(null),e9([]),e.elementBoundingBoxes?.length){let t=[];for(let n of e.elementBoundingBoxes){let e=e5(n.x+n.width/2,n.y+n.height/2-window.scrollY);e&&t.push(e)}tc(t),ta(null)}else if(e.boundingBox){let t=e.boundingBox,n=e5(t.x+t.width/2,e.isFixed?t.y+t.height/2:t.y+t.height/2-window.scrollY);if(n){let e=n.getBoundingClientRect(),r=e.width/t.width,o=e.height/t.height;r<.5||o<.5?ta(null):ta(n)}else ta(null);tc([])}else ta(null),tc([])},[]),nE=(0,t.useCallback)(e=>{if(!e){eq(null),e8(null),e9([]);return}if(eq(e.id),e.elementBoundingBoxes?.length){let t=[];for(let n of e.elementBoundingBoxes){let e=n.x+n.width/2,r=n.y+n.height/2-window.scrollY,o=document.elementsFromPoint(e,r).find(e=>!e.closest("[data-annotation-marker]")&&!e.closest("[data-agentation-root]"));o&&t.push(o)}e9(t),e8(null)}else if(e.boundingBox){let t=e.boundingBox,n=e5(t.x+t.width/2,e.isFixed?t.y+t.height/2:t.y+t.height/2-window.scrollY);if(n){let e=n.getBoundingClientRect(),r=e.width/t.width,o=e.height/t.height;r<.5||o<.5?e8(null):e8(n)}else e8(null);e9([])}else e8(null),e9([])},[]),nI=(0,t.useCallback)(e=>{if(!to)return;let t={...to,comment:e};D(e=>e.map(e=>e.id===to.id?t:e)),f?.(t),nx("annotation.update",{annotation:t}),E&&eO(E,to.id,{comment:e}).catch(e=>{console.warn("[Agentation] Failed to update annotation on server:",e)}),t9(!0),ee(()=>{ts(null),ta(null),tc([]),t9(!1)},150)},[to,f,nx,E]),nL=(0,t.useCallback)(()=>{t9(!0),ee(()=>{ts(null),ta(null),tc([]),t9(!1)},150)},[]),nT=(0,t.useCallback)(()=>{let e=O.length;0!==e&&(g?.(O),nx("annotations.clear",{annotations:O}),E&&Promise.all(O.map(e=>eD(E,e.id).catch(e=>{console.warn("[Agentation] Failed to delete annotation from server:",e)}))),eY(!0),eH(!0),ee(()=>{D([]),t2(new Set),localStorage.removeItem(eE(np)),eY(!1)},30*e+200),ee(()=>eH(!1),1500))},[np,O,g,nx,E]),nM=(0,t.useCallback)(async()=>{let e=e6(O,"u">typeof window?window.location.pathname+window.location.search+window.location.hash:np,tP.outputDetail,"off");if(e){if(C)try{await navigator.clipboard.writeText(e)}catch{}x?.(e),eB(!0),ee(()=>eB(!1),2e3),tP.autoClearAfterCopy&&ee(()=>nT(),500)}},[O,np,tP.outputDetail,"off",tP.autoClearAfterCopy,nT,C,x]),nN=(0,t.useCallback)(async()=>{let e=e6(O,"u">typeof window?window.location.pathname+window.location.search+window.location.hash:np,tP.outputDetail,"off");if(!e)return;S&&S(e,O),eW("sending"),await new Promise(e=>ee(e,150));let t=await nx("submit",{output:e,annotations:O},!0);eW(t?"sent":"failed"),ee(()=>eW("idle"),2500),t&&tP.autoClearAfterCopy&&ee(()=>nT(),500)},[S,nx,O,np,tP.outputDetail,"off",tP.autoClearAfterCopy,nT]);(0,t.useEffect)(()=>{if(!tZ)return;let e=e=>{let t=e.clientX-tZ.x,n=e.clientY-tZ.y,r=Math.sqrt(t*t+n*n);if(!tV&&r>10&&tJ(!0),tV||r>10){let e=tZ.toolbarX+t,r=tZ.toolbarY+n;tQ({x:e=Math.max(20-(297-(R?"connected"===tY?297:257:44)),Math.min(window.innerWidth-20-297,e)),y:r=Math.max(20,Math.min(window.innerHeight-44-20,r))})}},t=()=>{tV&&(t1.current=!0),tJ(!1),tG(null)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[tZ,tV,R,tY]);let nj=(0,t.useCallback)(e=>{if(e.target.closest("button")||e.target.closest(`.${eV.settingsPanel}`))return;let t=e.currentTarget.parentElement;if(!t)return;let n=t.getBoundingClientRect(),r=tq?.x??n.left,o=tq?.y??n.top;t0((Math.random()-.5)*10),tG({x:e.clientX,y:e.clientY,toolbarX:r,toolbarY:o})},[tq]);if((0,t.useEffect)(()=>{if(!tq)return;let e=()=>{let e=tq.x,t=tq.y;e=Math.max(20-(297-(R?"connected"===tY?297:257:44)),Math.min(window.innerWidth-20-297,e)),t=Math.max(20,Math.min(window.innerHeight-44-20,t)),(e!==tq.x||t!==tq.y)&&tQ({x:e,y:t})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[tq,R,tY]),(0,t.useEffect)(()=>{let e=e=>{let t=e.target,n="INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable;if("Escape"===e.key){if(tN.length>0)return void tj([]);eb||R&&(tR(),P(!1))}if((e.metaKey||e.ctrlKey)&&e.shiftKey&&("f"===e.key||"F"===e.key)){e.preventDefault(),tR(),P(e=>!e);return}if(!n&&!e.metaKey&&!e.ctrlKey&&(("p"===e.key||"P"===e.key)&&(e.preventDefault(),tR(),nb()),("h"===e.key||"H"===e.key)&&O.length>0&&(e.preventDefault(),tR(),Y(e=>!e)),("c"===e.key||"C"===e.key)&&O.length>0&&(e.preventDefault(),tR(),nM()),("x"===e.key||"X"===e.key)&&O.length>0&&(e.preventDefault(),tR(),nT()),"s"===e.key||"S"===e.key)){let t=eK(tP.webhookUrl)||eK(j||"");O.length>0&&t&&"idle"===ez&&(e.preventDefault(),tR(),nN())}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[R,eb,O.length,tP.webhookUrl,j,ez,nN,nb,nM,nT,tN]),!th||q)return null;let n$=O.length>0,nR=O.filter(e=>!t4.has(e.id)&&e4(e)),nA=O.filter(e=>t4.has(e.id)),nP=e=>{let t=e.x/100*window.innerWidth,n="string"==typeof e.y?parseFloat(e.y):e.y,r={};window.innerHeight-n-22-10<80&&(r.top="auto",r.bottom="calc(100% + 10px)");let o=t-100;if(o<10)r.left=`calc(50% + ${10-o}px)`;else if(o+200>window.innerWidth-10){let e=o+200-(window.innerWidth-10);r.left=`calc(50% - ${e}px)`}return r};return(0,n.createPortal)((0,r.jsxs)("div",{ref:es,style:{display:"contents"},children:[(0,r.jsx)("div",{className:`${eV.toolbar}${$?` ${$}`:""}`,"data-feedback-toolbar":!0,style:tq?{left:tq.x,top:tq.y,right:"auto",bottom:"auto"}:void 0,children:(0,r.jsxs)("div",{className:`${eV.toolbarContainer} ${!tD?eV.light:""} ${R?eV.expanded:eV.collapsed} ${tz?eV.entrance:""} ${G?eV.hiding:""} ${tV?eV.dragging:""} ${!tP.webhooksEnabled&&(eK(tP.webhookUrl)||eK(j||""))?eV.serverConnected:""}`,onClick:R?void 0:e=>{if(t1.current){t1.current=!1,e.preventDefault();return}P(!0)},onMouseDown:nj,role:R?void 0:"button",tabIndex:R?-1:0,title:R?void 0:"Start feedback mode",style:{...tV&&{transform:`scale(1.05) rotate(${tK}deg)`,cursor:"grabbing"}},children:[(0,r.jsxs)("div",{className:`${eV.toggleContent} ${!R?eV.visible:eV.hidden}`,children:[(0,r.jsx)(y,{size:24}),n$&&(0,r.jsx)("span",{className:`${eV.badge} ${R?eV.fadeOut:""} ${tz?eV.entrance:""}`,style:{backgroundColor:tP.annotationColor},children:O.length})]}),(0,r.jsxs)("div",{className:`${eV.controlsContent} ${R?eV.visible:eV.hidden} ${tq&&tq.y<100?eV.tooltipBelow:""} ${tE||ty?eV.tooltipsHidden:""} ${tL?eV.tooltipsInSession:""}`,onMouseEnter:()=>{tL||(tM.current=setTimeout(()=>tT(!0),850))},onMouseLeave:()=>{tM.current&&(clearTimeout(tM.current),tM.current=null),tT(!1),tI(!1)},children:[(0,r.jsxs)("div",{className:`${eV.buttonWrapper} ${tq&&tq.x<120?eV.buttonWrapperAlignLeft:""}`,children:[(0,r.jsx)("button",{className:`${eV.controlButton} ${!tD?eV.light:""}`,onClick:e=>{e.stopPropagation(),tR(),nb()},"data-active":tf,children:(0,r.jsx)(T,{size:24,isPaused:tf})}),(0,r.jsxs)("span",{className:eV.buttonTooltip,children:[tf?"Resume animations":"Pause animations",(0,r.jsx)("span",{className:eV.shortcut,children:"P"})]})]}),(0,r.jsxs)("div",{className:eV.buttonWrapper,children:[(0,r.jsx)("button",{className:`${eV.controlButton} ${!tD?eV.light:""}`,onClick:e=>{e.stopPropagation(),tR(),Y(!B)},disabled:!n$,children:(0,r.jsx)(L,{size:24,isOpen:B})}),(0,r.jsxs)("span",{className:eV.buttonTooltip,children:[B?"Hide markers":"Show markers",(0,r.jsx)("span",{className:eV.shortcut,children:"H"})]})]}),(0,r.jsxs)("div",{className:eV.buttonWrapper,children:[(0,r.jsx)("button",{className:`${eV.controlButton} ${!tD?eV.light:""} ${eM?eV.statusShowing:""}`,onClick:e=>{e.stopPropagation(),tR(),nM()},disabled:!n$,"data-active":eM,children:(0,r.jsx)(w,{size:24,copied:eM})}),(0,r.jsxs)("span",{className:eV.buttonTooltip,children:["Copy feedback",(0,r.jsx)("span",{className:eV.shortcut,children:"C"})]})]}),(0,r.jsxs)("div",{className:`${eV.buttonWrapper} ${eV.sendButtonWrapper} ${R&&!tP.webhooksEnabled&&(eK(tP.webhookUrl)||eK(j||""))?eV.sendButtonVisible:""}`,children:[(0,r.jsxs)("button",{className:`${eV.controlButton} ${!tD?eV.light:""} ${"sent"===ez||"failed"===ez?eV.statusShowing:""}`,onClick:e=>{e.stopPropagation(),tR(),nN()},disabled:!n$||!eK(tP.webhookUrl)&&!eK(j||"")||"sending"===ez,"data-no-hover":"sent"===ez||"failed"===ez,tabIndex:eK(tP.webhookUrl)||eK(j||"")?0:-1,children:[(0,r.jsx)(k,{size:24,state:ez}),n$&&"idle"===ez&&(0,r.jsx)("span",{className:`${eV.buttonBadge} ${!tD?eV.light:""}`,style:{backgroundColor:tP.annotationColor},children:O.length})]}),(0,r.jsxs)("span",{className:eV.buttonTooltip,children:["Send Annotations",(0,r.jsx)("span",{className:eV.shortcut,children:"S"})]})]}),(0,r.jsxs)("div",{className:eV.buttonWrapper,children:[(0,r.jsx)("button",{className:`${eV.controlButton} ${!tD?eV.light:""}`,onClick:e=>{e.stopPropagation(),tR(),nT()},disabled:!n$,"data-danger":!0,children:(0,r.jsx)(A,{size:24})}),(0,r.jsxs)("span",{className:eV.buttonTooltip,children:["Clear all",(0,r.jsx)("span",{className:eV.shortcut,children:"X"})]})]}),(0,r.jsxs)("div",{className:eV.buttonWrapper,children:[(0,r.jsx)("button",{className:`${eV.controlButton} ${!tD?eV.light:""}`,onClick:e=>{e.stopPropagation(),tR(),tb(!ty)},children:(0,r.jsx)(N,{size:24})}),E&&"disconnected"!==tY&&(0,r.jsx)("span",{className:`${eV.mcpIndicator} ${!tD?eV.light:""} ${eV[tY]} ${ty?eV.hidden:""}`,title:"connected"===tY?"MCP Connected":"MCP Connecting..."}),(0,r.jsx)("span",{className:eV.buttonTooltip,children:"Settings"})]}),(0,r.jsx)("div",{className:`${eV.divider} ${!tD?eV.light:""}`}),(0,r.jsxs)("div",{className:`${eV.buttonWrapper} ${tq&&"u">typeof window&&tq.x>window.innerWidth-120?eV.buttonWrapperAlignRight:""}`,children:[(0,r.jsx)("button",{className:`${eV.controlButton} ${!tD?eV.light:""}`,onClick:e=>{e.stopPropagation(),tR(),P(!1)},children:(0,r.jsx)(W,{size:24})}),(0,r.jsxs)("span",{className:eV.buttonTooltip,children:["Exit",(0,r.jsx)("span",{className:eV.shortcut,children:"Esc"})]})]})]}),(0,r.jsx)("div",{className:`${eV.settingsPanel} ${tD?eV.dark:eV.light} ${tv?eV.enter:eV.exit}`,onClick:e=>e.stopPropagation(),style:tq&&tq.y<230?{bottom:"auto",top:"calc(100% + 0.5rem)"}:void 0,children:(0,r.jsxs)("div",{className:`${eV.settingsPanelContainer} ${tS?eV.transitioning:""}`,children:[(0,r.jsxs)("div",{className:`${eV.settingsPage} ${"automations"===tw?eV.slideLeft:""}`,children:[(0,r.jsxs)("div",{className:eV.settingsHeader,children:[(0,r.jsxs)("span",{className:eV.settingsBrand,children:[(0,r.jsx)("span",{className:eV.settingsBrandSlash,style:{color:tP.annotationColor,transition:"color 0.2s ease"},children:"/"}),"agentation"]}),(0,r.jsxs)("span",{className:eV.settingsVersion,children:["v","2.3.2"]}),(0,r.jsx)("button",{className:eV.themeToggle,onClick:()=>tB(!tD),title:tD?"Switch to light mode":"Switch to dark mode",children:(0,r.jsx)("span",{className:eV.themeIconWrapper,children:(0,r.jsx)("span",{className:eV.themeIcon,children:tD?(0,r.jsx)(F,{size:20}):(0,r.jsx)(H,{size:20})},tD?"sun":"moon")})})]}),(0,r.jsxs)("div",{className:eV.settingsSection,children:[(0,r.jsxs)("div",{className:eV.settingsRow,children:[(0,r.jsxs)("div",{className:`${eV.settingsLabel} ${!tD?eV.light:""}`,children:["Output Detail",(0,r.jsx)(tA,{content:"Controls how much detail is included in the copied output",children:(0,r.jsx)("span",{className:eV.helpIcon,children:(0,r.jsx)(b,{size:20})})})]}),(0,r.jsxs)("button",{className:`${eV.cycleButton} ${!tD?eV.light:""}`,onClick:()=>{let e=(e0.findIndex(e=>e.value===tP.outputDetail)+1)%e0.length;tO(t=>({...t,outputDetail:e0[e].value}))},children:[(0,r.jsx)("span",{className:eV.cycleButtonText,children:e0.find(e=>e.value===tP.outputDetail)?.label},tP.outputDetail),(0,r.jsx)("span",{className:eV.cycleDots,children:e0.map((e,t)=>(0,r.jsx)("span",{className:`${eV.cycleDot} ${!tD?eV.light:""} ${tP.outputDetail===e.value?eV.active:""}`},e.value))})]})]}),(0,r.jsxs)("div",{className:`${eV.settingsRow} ${eV.settingsRowMarginTop} ${eV.settingsRowDisabled}`,children:[(0,r.jsxs)("div",{className:`${eV.settingsLabel} ${!tD?eV.light:""}`,children:["React Components",(0,r.jsx)(tA,{content:"Disabled — production builds minify component names, making detection unreliable. Use in development mode.",children:(0,r.jsx)("span",{className:eV.helpIcon,children:(0,r.jsx)(b,{size:20})})})]}),(0,r.jsxs)("label",{className:`${eV.toggleSwitch} ${eV.disabled}`,children:[(0,r.jsx)("input",{type:"checkbox",checked:!1,disabled:!0,onChange:()=>tO(e=>({...e,reactEnabled:!e.reactEnabled}))}),(0,r.jsx)("span",{className:eV.toggleSlider})]})]}),(0,r.jsxs)("div",{className:`${eV.settingsRow} ${eV.settingsRowMarginTop}`,children:[(0,r.jsxs)("div",{className:`${eV.settingsLabel} ${!tD?eV.light:""}`,children:["Hide Until Restart",(0,r.jsx)(tA,{content:"Hides the toolbar until you open a new tab",children:(0,r.jsx)("span",{className:eV.helpIcon,children:(0,r.jsx)(b,{size:20})})})]}),(0,r.jsxs)("label",{className:eV.toggleSwitch,children:[(0,r.jsx)("input",{type:"checkbox",checked:!1,onChange:e=>{e.target.checked&&nf()}}),(0,r.jsx)("span",{className:eV.toggleSlider})]})]})]}),(0,r.jsxs)("div",{className:eV.settingsSection,children:[(0,r.jsx)("div",{className:`${eV.settingsLabel} ${eV.settingsLabelMarker} ${!tD?eV.light:""}`,children:"Marker Colour"}),(0,r.jsx)("div",{className:eV.colorOptions,children:e1.map(e=>(0,r.jsx)("div",{role:"button",onClick:()=>tO(t=>({...t,annotationColor:e.value})),style:{borderColor:tP.annotationColor===e.value?e.value:"transparent"},className:`${eV.colorOptionRing} ${tP.annotationColor===e.value?eV.selected:""}`,children:(0,r.jsx)("div",{className:`${eV.colorOption} ${tP.annotationColor===e.value?eV.selected:""}`,style:{backgroundColor:e.value},title:e.label})},e.value))})]}),(0,r.jsxs)("div",{className:eV.settingsSection,children:[(0,r.jsxs)("label",{className:eV.settingsToggle,children:[(0,r.jsx)("input",{type:"checkbox",id:"autoClearAfterCopy",checked:tP.autoClearAfterCopy,onChange:e=>tO(t=>({...t,autoClearAfterCopy:e.target.checked}))}),(0,r.jsx)("label",{className:`${eV.customCheckbox} ${tP.autoClearAfterCopy?eV.checked:""}`,htmlFor:"autoClearAfterCopy",children:tP.autoClearAfterCopy&&(0,r.jsx)(v,{size:14})}),(0,r.jsxs)("span",{className:`${eV.toggleLabel} ${!tD?eV.light:""}`,children:["Clear on copy/send",(0,r.jsx)(tA,{content:"Automatically clear annotations after copying",children:(0,r.jsx)("span",{className:`${eV.helpIcon} ${eV.helpIconNudge2}`,children:(0,r.jsx)(b,{size:20})})})]})]}),(0,r.jsxs)("label",{className:`${eV.settingsToggle} ${eV.settingsToggleMarginBottom}`,children:[(0,r.jsx)("input",{type:"checkbox",id:"blockInteractions",checked:tP.blockInteractions,onChange:e=>tO(t=>({...t,blockInteractions:e.target.checked}))}),(0,r.jsx)("label",{className:`${eV.customCheckbox} ${tP.blockInteractions?eV.checked:""}`,htmlFor:"blockInteractions",children:tP.blockInteractions&&(0,r.jsx)(v,{size:14})}),(0,r.jsx)("span",{className:`${eV.toggleLabel} ${!tD?eV.light:""}`,children:"Block page interactions"})]})]}),(0,r.jsx)("div",{className:`${eV.settingsSection} ${eV.settingsSectionExtraPadding}`,children:(0,r.jsxs)("button",{className:`${eV.settingsNavLink} ${!tD?eV.light:""}`,onClick:()=>tk("automations"),children:[(0,r.jsx)("span",{children:"Manage MCP & Webhooks"}),(0,r.jsxs)("span",{className:eV.settingsNavLinkRight,children:[E&&"disconnected"!==tY&&(0,r.jsx)("span",{className:`${eV.mcpNavIndicator} ${eV[tY]}`}),(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M7.5 12.5L12 8L7.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})]}),(0,r.jsxs)("div",{className:`${eV.settingsPage} ${eV.automationsPage} ${"automations"===tw?eV.slideIn:""}`,children:[(0,r.jsxs)("button",{className:`${eV.settingsBackButton} ${!tD?eV.light:""}`,onClick:()=>tk("main"),children:[(0,r.jsx)(X,{size:16}),(0,r.jsx)("span",{children:"Manage MCP & Webhooks"})]}),(0,r.jsxs)("div",{className:eV.settingsSection,children:[(0,r.jsxs)("div",{className:eV.settingsRow,children:[(0,r.jsxs)("span",{className:`${eV.automationHeader} ${!tD?eV.light:""}`,children:["MCP Connection",(0,r.jsx)(tA,{content:"Connect via Model Context Protocol to let AI agents like Claude Code receive annotations in real-time.",children:(0,r.jsx)("span",{className:`${eV.helpIcon} ${eV.helpIconNudgeDown}`,children:(0,r.jsx)(b,{size:20})})})]}),E&&(0,r.jsx)("div",{className:`${eV.mcpStatusDot} ${eV[tY]}`,title:"connected"===tY?"Connected":"connecting"===tY?"Connecting...":"Disconnected"})]}),(0,r.jsxs)("p",{className:`${eV.automationDescription} ${!tD?eV.light:""}`,style:{paddingBottom:6},children:["MCP connection allows agents to receive and act on annotations."," ",(0,r.jsx)("a",{href:"https://agentation.dev/mcp",target:"_blank",rel:"noopener noreferrer",className:`${eV.learnMoreLink} ${!tD?eV.light:""}`,children:"Learn more"})]})]}),(0,r.jsxs)("div",{className:`${eV.settingsSection} ${eV.settingsSectionGrow}`,children:[(0,r.jsxs)("div",{className:eV.settingsRow,children:[(0,r.jsxs)("span",{className:`${eV.automationHeader} ${!tD?eV.light:""}`,children:["Webhooks",(0,r.jsx)(tA,{content:"Send annotation data to any URL endpoint when annotations change. Useful for custom integrations.",children:(0,r.jsx)("span",{className:`${eV.helpIcon} ${eV.helpIconNoNudge}`,children:(0,r.jsx)(b,{size:20})})})]}),(0,r.jsxs)("div",{className:eV.autoSendRow,children:[(0,r.jsx)("span",{className:`${eV.autoSendLabel} ${!tD?eV.light:""} ${tP.webhooksEnabled?eV.active:""}`,children:"Auto-Send"}),(0,r.jsxs)("label",{className:`${eV.toggleSwitch} ${!tP.webhookUrl?eV.disabled:""}`,children:[(0,r.jsx)("input",{type:"checkbox",checked:tP.webhooksEnabled,disabled:!tP.webhookUrl,onChange:()=>tO(e=>({...e,webhooksEnabled:!e.webhooksEnabled}))}),(0,r.jsx)("span",{className:eV.toggleSlider})]})]})]}),(0,r.jsx)("p",{className:`${eV.automationDescription} ${!tD?eV.light:""}`,children:"The webhook URL will receive live annotation changes and annotation data."}),(0,r.jsx)("textarea",{className:`${eV.webhookUrlInput} ${!tD?eV.light:""}`,placeholder:"Webhook URL",value:tP.webhookUrl,style:{"--marker-color":tP.annotationColor},onKeyDown:e=>e.stopPropagation(),onChange:e=>tO(t=>({...t,webhookUrl:e.target.value}))})]})]})]})})]})}),(0,r.jsxs)("div",{className:eV.markersLayer,"data-feedback-toolbar":!0,children:[ea&&nR.filter(e=>!e.isFixed).map((e,t)=>{let n=!ec&&eX===e.id,o=te===e.id,s=(n||o)&&!to,i=e.isMultiSelect,a=i?"#34C759":tP.annotationColor,l=O.findIndex(t=>t.id===e.id),c=!t5.has(e.id),u=ec?eV.exit:eU?eV.clearing:c?eV.enter:"",d=s&&"delete"===tP.markerClickBehavior;return(0,r.jsxs)("div",{className:`${eV.marker} ${i?eV.multiSelect:""} ${u} ${d?eV.hovered:""}`,"data-annotation-marker":!0,style:{left:`${e.x}%`,top:e.y,backgroundColor:d?void 0:a,animationDelay:ec?`${(nR.length-1-t)*20}ms`:`${20*t}ms`},onMouseEnter:()=>!ec&&e.id!==nl.current&&nE(e),onMouseLeave:()=>nE(null),onClick:t=>{t.stopPropagation(),ec||("delete"===tP.markerClickBehavior?nS(e.id):nC(e))},onContextMenu:t=>{"delete"===tP.markerClickBehavior&&(t.preventDefault(),t.stopPropagation(),ec||nC(e))},children:[s?d?(0,r.jsx)(z,{size:i?18:16}):(0,r.jsx)(U,{size:16}):(0,r.jsx)("span",{className:null!==tn&&l>=tn?eV.renumber:void 0,children:l+1}),n&&!to&&(0,r.jsxs)("div",{className:`${eV.markerTooltip} ${!tD?eV.light:""} ${eV.enter}`,style:nP(e),children:[(0,r.jsxs)("span",{className:eV.markerQuote,children:[e.element,e.selectedText&&` "${e.selectedText.slice(0,30)}${e.selectedText.length>30?"...":""}"`]}),(0,r.jsx)("span",{className:eV.markerNote,children:e.comment})]})]},e.id)}),ea&&!ec&&nA.filter(e=>!e.isFixed).map(e=>{let t=e.isMultiSelect;return(0,r.jsx)("div",{className:`${eV.marker} ${eV.hovered} ${t?eV.multiSelect:""} ${eV.exit}`,"data-annotation-marker":!0,style:{left:`${e.x}%`,top:e.y},children:(0,r.jsx)(z,{size:t?12:10})},e.id)})]}),(0,r.jsxs)("div",{className:eV.fixedMarkersLayer,"data-feedback-toolbar":!0,children:[ea&&nR.filter(e=>e.isFixed).map((e,t)=>{let n=nR.filter(e=>e.isFixed),o=!ec&&eX===e.id,s=te===e.id,i=(o||s)&&!to,a=e.isMultiSelect,l=a?"#34C759":tP.annotationColor,c=O.findIndex(t=>t.id===e.id),u=!t5.has(e.id),d=ec?eV.exit:eU?eV.clearing:u?eV.enter:"",_=i&&"delete"===tP.markerClickBehavior;return(0,r.jsxs)("div",{className:`${eV.marker} ${eV.fixed} ${a?eV.multiSelect:""} ${d} ${_?eV.hovered:""}`,"data-annotation-marker":!0,style:{left:`${e.x}%`,top:e.y,backgroundColor:_?void 0:l,animationDelay:ec?`${(n.length-1-t)*20}ms`:`${20*t}ms`},onMouseEnter:()=>!ec&&e.id!==nl.current&&nE(e),onMouseLeave:()=>nE(null),onClick:t=>{t.stopPropagation(),ec||("delete"===tP.markerClickBehavior?nS(e.id):nC(e))},onContextMenu:t=>{"delete"===tP.markerClickBehavior&&(t.preventDefault(),t.stopPropagation(),ec||nC(e))},children:[i?_?(0,r.jsx)(z,{size:a?18:16}):(0,r.jsx)(U,{size:16}):(0,r.jsx)("span",{className:null!==tn&&c>=tn?eV.renumber:void 0,children:c+1}),o&&!to&&(0,r.jsxs)("div",{className:`${eV.markerTooltip} ${!tD?eV.light:""} ${eV.enter}`,style:nP(e),children:[(0,r.jsxs)("span",{className:eV.markerQuote,children:[e.element,e.selectedText&&` "${e.selectedText.slice(0,30)}${e.selectedText.length>30?"...":""}"`]}),(0,r.jsx)("span",{className:eV.markerNote,children:e.comment})]})]},e.id)}),ea&&!ec&&nA.filter(e=>e.isFixed).map(e=>{let t=e.isMultiSelect;return(0,r.jsx)("div",{className:`${eV.marker} ${eV.fixed} ${eV.hovered} ${t?eV.multiSelect:""} ${eV.exit}`,"data-annotation-marker":!0,style:{left:`${e.x}%`,top:e.y},children:(0,r.jsx)(h,{size:t?12:10})},e.id)})]}),R&&(0,r.jsxs)("div",{className:eV.overlay,"data-feedback-toolbar":!0,style:eb||to?{zIndex:99999}:void 0,children:[em?.rect&&!eb&&!t_&&!ne&&(0,r.jsx)("div",{className:`${eV.hoverHighlight} ${eV.enter}`,style:{left:em.rect.left,top:em.rect.top,width:em.rect.width,height:em.rect.height,borderColor:`${tP.annotationColor}80`,backgroundColor:`${tP.annotationColor}0A`}}),tN.filter(e=>document.contains(e.element)).map((e,t)=>{let n=e.element.getBoundingClientRect(),o=tN.length>1;return(0,r.jsx)("div",{className:o?eV.multiSelectOutline:eV.singleSelectOutline,style:{position:"fixed",left:n.left,top:n.top,width:n.width,height:n.height,...o?{}:{borderColor:`${tP.annotationColor}99`,backgroundColor:`${tP.annotationColor}0D`}}},t)}),eX&&!eb&&(()=>{let e=O.find(e=>e.id===eX);if(!e?.boundingBox)return null;if(e.elementBoundingBoxes?.length)return e7.length>0?e7.filter(e=>document.contains(e)).map((e,t)=>{let n=e.getBoundingClientRect();return(0,r.jsx)("div",{className:`${eV.multiSelectOutline} ${eV.enter}`,style:{left:n.left,top:n.top,width:n.width,height:n.height}},`hover-outline-live-${t}`)}):e.elementBoundingBoxes.map((e,t)=>(0,r.jsx)("div",{className:`${eV.multiSelectOutline} ${eV.enter}`,style:{left:e.x,top:e.y-tu,width:e.width,height:e.height}},`hover-outline-${t}`));let t=eQ&&document.contains(eQ)?eQ.getBoundingClientRect():null,n=t?{x:t.left,y:t.top,width:t.width,height:t.height}:{x:e.boundingBox.x,y:e.isFixed?e.boundingBox.y:e.boundingBox.y-tu,width:e.boundingBox.width,height:e.boundingBox.height},o=e.isMultiSelect;return(0,r.jsx)("div",{className:`${o?eV.multiSelectOutline:eV.singleSelectOutline} ${eV.enter}`,style:{left:n.x,top:n.y,width:n.width,height:n.height,...o?{}:{borderColor:`${tP.annotationColor}99`,backgroundColor:`${tP.annotationColor}0D`}}})})(),em&&!eb&&!t_&&!ne&&(0,r.jsxs)("div",{className:`${eV.hoverTooltip} ${eV.enter}`,style:{left:Math.max(8,Math.min(eg.x,window.innerWidth-100)),top:Math.max(eg.y-(em.reactComponents?48:32),8)},children:[em.reactComponents&&(0,r.jsx)("div",{className:eV.hoverReactPath,children:em.reactComponents}),(0,r.jsx)("div",{className:eV.hoverElementName,children:em.elementName})]}),eb&&(0,r.jsxs)(r.Fragment,{children:[eb.multiSelectElements?.length?eb.multiSelectElements.filter(e=>document.contains(e)).map((e,t)=>{let n=e.getBoundingClientRect();return(0,r.jsx)("div",{className:`${eV.multiSelectOutline} ${t6?eV.exit:eV.enter}`,style:{left:n.left,top:n.top,width:n.width,height:n.height}},`pending-multi-${t}`)}):eb.targetElement&&document.contains(eb.targetElement)?(e=eb.targetElement.getBoundingClientRect(),(0,r.jsx)("div",{className:`${eV.singleSelectOutline} ${t6?eV.exit:eV.enter}`,style:{left:e.left,top:e.top,width:e.width,height:e.height,borderColor:`${tP.annotationColor}99`,backgroundColor:`${tP.annotationColor}0D`}})):eb.boundingBox&&(0,r.jsx)("div",{className:`${eb.isMultiSelect?eV.multiSelectOutline:eV.singleSelectOutline} ${t6?eV.exit:eV.enter}`,style:{left:eb.boundingBox.x,top:eb.boundingBox.y-tu,width:eb.boundingBox.width,height:eb.boundingBox.height,...eb.isMultiSelect?{}:{borderColor:`${tP.annotationColor}99`,backgroundColor:`${tP.annotationColor}0D`}}}),(o=eb.x,s=eb.isFixed?eb.y:eb.y-tu,(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`${eV.marker} ${eV.pending} ${eb.isMultiSelect?eV.multiSelect:""} ${t6?eV.exit:eV.enter}`,style:{left:`${o}%`,top:s,backgroundColor:eb.isMultiSelect?"#34C759":tP.annotationColor},children:(0,r.jsx)(m,{size:12})}),(0,r.jsx)(eo,{ref:nu,element:eb.element,selectedText:eb.selectedText,computedStyles:eb.computedStylesObj,placeholder:"Area selection"===eb.element?"What should change in this area?":eb.isMultiSelect?"Feedback for this group of elements...":"What should change?",onSubmit:nw,onCancel:nk,isExiting:t6,lightMode:!tD,accentColor:eb.isMultiSelect?"#34C759":tP.annotationColor,style:{left:Math.max(160,Math.min(window.innerWidth-160,o/100*window.innerWidth)),...s>window.innerHeight-290?{bottom:window.innerHeight-s+20}:{top:s+20}}})]}))]}),to&&(0,r.jsxs)(r.Fragment,{children:[to.elementBoundingBoxes?.length?tl.length>0?tl.filter(e=>document.contains(e)).map((e,t)=>{let n=e.getBoundingClientRect();return(0,r.jsx)("div",{className:`${eV.multiSelectOutline} ${eV.enter}`,style:{left:n.left,top:n.top,width:n.width,height:n.height}},`edit-multi-live-${t}`)}):to.elementBoundingBoxes.map((e,t)=>(0,r.jsx)("div",{className:`${eV.multiSelectOutline} ${eV.enter}`,style:{left:e.x,top:e.y-tu,width:e.width,height:e.height}},`edit-multi-${t}`)):(a=(i=ti&&document.contains(ti)?ti.getBoundingClientRect():null)?{x:i.left,y:i.top,width:i.width,height:i.height}:to.boundingBox?{x:to.boundingBox.x,y:to.isFixed?to.boundingBox.y:to.boundingBox.y-tu,width:to.boundingBox.width,height:to.boundingBox.height}:null)?(0,r.jsx)("div",{className:`${to.isMultiSelect?eV.multiSelectOutline:eV.singleSelectOutline} ${eV.enter}`,style:{left:a.x,top:a.y,width:a.width,height:a.height,...to.isMultiSelect?{}:{borderColor:`${tP.annotationColor}99`,backgroundColor:`${tP.annotationColor}0D`}}}):null,(0,r.jsx)(eo,{ref:nd,element:to.element,selectedText:to.selectedText,computedStyles:function(e){if(!e)return;let t={};for(let n of e.split(";").map(e=>e.trim()).filter(Boolean)){let e=n.indexOf(":");if(e>0){let r=n.slice(0,e).trim(),o=n.slice(e+1).trim();r&&o&&(t[r]=o)}}return Object.keys(t).length>0?t:void 0}(to.computedStyles),placeholder:"Edit your feedback...",initialValue:to.comment,submitLabel:"Save",onSubmit:nI,onCancel:nL,onDelete:()=>nS(to.id),isExiting:t7,lightMode:!tD,accentColor:to.isMultiSelect?"#34C759":tP.annotationColor,style:(l=to.isFixed?to.y:to.y-tu,{left:Math.max(160,Math.min(window.innerWidth-160,to.x/100*window.innerWidth)),...l>window.innerHeight-290?{bottom:window.innerHeight-l+20}:{top:l+20}})})]}),ne&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:no,className:eV.dragSelection}),(0,r.jsx)("div",{ref:ns,className:eV.highlightsContainer})]})]})]}),document.body)}e.s(["Agentation",()=>e8,"AnimatedBunny",()=>Q,"AnnotationPopupCSS",()=>eo,"IconChatEllipsis",()=>P,"IconCheck",()=>f,"IconCheckSmall",()=>g,"IconCheckSmallAnimated",()=>v,"IconCheckmark",()=>O,"IconCheckmarkCircle",()=>B,"IconCheckmarkLarge",()=>D,"IconChevronLeft",()=>X,"IconChevronRight",()=>q,"IconClose",()=>h,"IconCopyAlt",()=>x,"IconCopyAnimated",()=>w,"IconEdit",()=>U,"IconEye",()=>C,"IconEyeAlt",()=>E,"IconEyeAnimated",()=>L,"IconEyeClosed",()=>I,"IconEyeMinus",()=>M,"IconGear",()=>N,"IconHelp",()=>b,"IconListSparkle",()=>y,"IconMoon",()=>H,"IconPause",()=>$,"IconPauseAlt",()=>j,"IconPausePlayAnimated",()=>T,"IconPlayAlt",()=>R,"IconPlus",()=>m,"IconSendAnimated",()=>S,"IconSendArrow",()=>k,"IconSun",()=>F,"IconTrash",()=>Y,"IconTrashAlt",()=>A,"IconXmark",()=>z,"IconXmarkLarge",()=>W,"PageFeedbackToolbarCSS",()=>e8,"closestCrossingShadow",()=>ei,"getElementClasses",()=>eh,"getElementPath",()=>ec,"getNearbyText",()=>ed,"getShadowHost",()=>el,"getStorageKey",()=>eE,"identifyAnimationElement",()=>e_,"identifyElement",()=>eu,"isInShadowDOM",()=>ea,"loadAnnotations",()=>eI,"saveAnnotations",()=>eL])},208571,e=>{"use strict";var t=e.i(406205),n=e.i(169508);let r=0;function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;r=e}function s(){(0,t.c)("[nuqs] Aborting queues"),n.t.abortAll(),n.n.abort().forEach(e=>n.t.queuedQuerySync.emit(e))}var i=e.i(942347),a=e.i(893936);function l(){o(0),s()}function c(){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;(r=Math.max(0,r-1))>0||e()}(()=>{queueMicrotask(s)})}function u(){return(0,i.useEffect)(()=>(!function(){var e;if(e="next/app","u"window.removeEventListener("popstate",l)),[]),null}let d=(0,t.n)(function(){let e=(0,a.useRouter)(),[n,r]=(0,i.useOptimistic)((0,a.useSearchParams)());return{searchParams:n,updateUrl:(0,i.useCallback)((n,s)=>{(0,i.startTransition)(()=>{s.shallow||r(n);let i=function(e){let{origin:n,pathname:r,hash:o}=location;return n+r+(0,t.o)(e)+o}(n);(0,t.c)("[nuqs next/app] Updating url: %s",i);let a="push"===s.history?history.pushState:history.replaceState;o(3),a.call(history,null,"",i),s.scroll&&window.scrollTo(0,0),s.shallow||e.replace(i,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!0}});function _(e){let{children:t,...n}=e;return(0,i.createElement)(d,{...n,children:[(0,i.createElement)(i.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,i.createElement)(u)}),t]})}e.s(["NuqsAdapter",()=>_],208571)},780633,e=>{"use strict";let t,n;Array.prototype.toSpliced||(Array.prototype.toSpliced=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o{let{children:t}=e;return t}])},207670,e=>{"use strict";var t=e.i(162115);e.i(816688);var n=e.i(586743),r=e.i(218422);function o(e){let{locale:o,resource:s,children:i}=e,a=(0,r.createI18nextInstance)(o,s);return(0,t.jsx)(n.I18nextProvider,{i18n:a,children:i})}e.s(["I18nClientProvider",()=>o])},570303,e=>{"use strict";let t,n,r,o,s,i,a,l,c,u,d,_,p,h,m,f,g,y,b,v,x,w,k,S,C,E,I,L,T="10.43.0",M=globalThis;function N(){return j(M),M}function j(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||T,t[T]=t[T]||{}}function $(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,r=n.__SENTRY__=n.__SENTRY__||{},o=r[T]=r[T]||{};return o[e]||(o[e]=t())}let R="u"typeof Event&&X(e,Event)}function Y(e){return!!(e?.then&&"function"==typeof e.then)}function X(e,t){try{return e instanceof t}catch{return!1}}function q(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Q(e){return"u">typeof Request&&X(e,Request)}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";try{let n,r=e,o=[],s=0,i=0,a=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&s++<5&&(n=function(e,t){let n=[];if(!e?.tagName)return"";if(M.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let r=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(r?.length)r.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&z(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,a),"html"!==n&&(!(s>1)||!(i+3*o.length+n.length>=l)));)o.push(n),i+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch{return""}}function J(){try{return M.document.location.href}catch{return""}}function Z(e){if(!M.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}let G=["debug","info","warn","error","log","assert","trace"],K={};function ee(e){if(!("console"in M))return e();let t=M.console,n={},r=Object.keys(K);r.forEach(e=>{let r=K[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function et(){return er().enabled}function en(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{M.console[e](`Sentry Logger [${e}]:`,...n)})}function er(){return R?$("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let eo={enable:function(){er().enabled=!0},disable:function(){er().enabled=!1},isEnabled:et,log:function(){for(var e=arguments.length,t=Array(e),n=0;ntypeof CustomEvent&&X(e,CustomEvent)&&(t.detail=e.detail),t}}function eu(e){try{return"u">typeof Element&&X(e,Element)?V(e):Object.prototype.toString.call(e)}catch{return""}}function ed(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function e_(e){if(void 0!==t)return t?t(e):e();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in M&&"function"==typeof M[n]?(t=M[n])(e):(t=null,e())}function ep(){return e_(()=>Math.random())}function eh(){return e_(()=>Date.now())}let em=/\(error: (.*)\)/,ef=/captureMessage|captureException/;function eg(){for(var e=arguments.length,t=Array(e),n=0;ne[0]-t[0]).map(e=>e[1]);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[],s=e.split("\n");for(let e=t;e1024&&(t=t.slice(0,1024));let i=em.test(t)?t.replace(em,"$1"):t;if(!i.match(/\S*Error: /)){for(let e of r){let t=e(i);if(t){o.push(t);break}}if(o.length>=50+n)break}}var i=o.slice(n);if(!i.length)return[];let a=Array.from(i);return/sentryWrapped/.test(ey(a).function||"")&&a.pop(),a.reverse(),ef.test(ey(a).function||"")&&(a.pop(),ef.test(ey(a).function||"")&&a.pop()),a.slice(0,50).map(e=>({...e,filename:e.filename||ey(a).filename,function:e.function||"?"}))}}function ey(e){return e[e.length-1]||{}}let eb="";function ev(e){try{if(!e||"function"!=typeof e)return eb;return e.name||eb}catch{return eb}}function ex(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function ew(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function ek(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function eS(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t2&&void 0!==arguments[2]&&arguments[2];return!!z(e)&&(O(t,"RegExp")?t.test(e):!!z(t)&&(n?e===t:e.includes(t)))}function eE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.some(t=>eC(e,t,n))}function eI(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M.crypto||M.msCrypto;try{if(e?.randomUUID)return e_(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*ep())>>e/4).toString(16))}function eL(e){return e.exception?.values?.[0]}function eT(e){let{message:t,event_id:n}=e;if(t)return t;let r=eL(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function eM(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function eN(e,t){let n=eL(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function ej(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{ei(e,"__sentry_captured__",!0)}catch{}return!1}function e$(){return eh()/1e3}function eR(){return(r??(r=function(){let{performance:e}=M;if(!e?.now||!e.timeOrigin)return e$;let t=e.timeOrigin;return()=>(t+e_(()=>e.now()))/1e3}()))()}let eA=null;function eP(){return null===eA&&(eA=function(){let{performance:e}=M;if(!e?.now)return;let t=e_(()=>e.now()),n=eh(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let o=e.timing?.navigationStart;return"number"==typeof o&&3e5>Math.abs(o+t-n)?o:n-t}()),eA}function eO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||eR(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:eI()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eD(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=eD(r[e],t[e],n-1));return r}function eB(){return eI().substring(16)}let ez="_sentrySpan";function eW(e,t){t?ei(e,ez,t):delete e[ez]}class eF{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:eI(),sampleRand:ep()}}clone(){let e=new eF;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,eW(e,this[ez]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&eO(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:o,user:s,contexts:i,level:a,fingerprint:l=[],propagationContext:c,conversationId:u}=(t instanceof eF?t.getScopeData():H(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...i},s&&Object.keys(s).length&&(this._user=s),a&&(this._level=a),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),u&&(this._conversationId=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,eW(this,void 0),this._attachments=[],this.setPropagationContext({traceId:eI(),sampleRand:ep()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:e$(),...e,message:e.message?ek(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[ez],conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=eD(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||eI();if(!this._client)return R&&eo.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||eI();if(!this._client)return R&&eo.warn("No client configured on scope - will not capture message!"),r;let o=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||eI();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):R&&eo.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}class eH{constructor(e,t){let n,r;n=e||new eF,r=t||new eF,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return Y(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function eU(){let e=j(N());return e.stack=e.stack||new eH($("defaultCurrentScope",()=>new eF),$("defaultIsolationScope",()=>new eF))}function eY(e){return eU().withScope(e)}function eX(e,t){let n=eU();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function eq(e){return eU().withScope(()=>e(eU().getIsolationScope()))}function eQ(e){let t=j(e);return t.acs?t.acs:{withIsolationScope:eq,withScope:eY,withSetScope:eX,withSetIsolationScope:(e,t)=>eq(t),getCurrentScope:()=>eU().getScope(),getIsolationScope:()=>eU().getIsolationScope()}}function eV(){return eQ(N()).getCurrentScope()}function eJ(){return eQ(N()).getIsolationScope()}function eZ(){for(var e=arguments.length,t=Array(e),n=0;n(Object.entries(tr(t)).forEach(t=>{let[n,r]=t;e[n]=r}),e),{}):tr(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,t)=>{let[n,r]=t;return n.match(tt)&&(e[n.slice(te.length)]=r),e},{});return Object.keys(n).length>0?n:void 0}function tr(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,t)=>{let[n,r]=t;return n&&r&&(e[n]=r),e},{})}function to(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||eG()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function ts(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}function ti(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}let ta="_sentryScope",tl="_sentryIsolationScope";function tc(e){return{scope:e[ta],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[tl])}}let tu=/^o(\d+)\./,td=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function t_(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function tp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}let th=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eI(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eB(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function tf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eI(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eB(),n=arguments.length>2?arguments[2]:void 0;return`00-${e}-${t}-${n?"01":"00"}`}let tg=!1;function ty(e){return e&&e.length>0?e.map(e=>{let{context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:s}=e;return{span_id:t,trace_id:n,sampled:1===r,attributes:s,...o}}):void 0}function tb(e){return"number"==typeof e?tv(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tv(e.getTime()):eR()}function tv(e){return e>0x2540be3ff?e/1e3:e}function tx(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:n,traceId:r}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:o,name:s,endTime:i,status:a,links:l}=e;return{span_id:n,trace_id:r,data:t,description:s,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:tb(o),timestamp:tb(i)||void 0,status:tk(a),op:t[e5],origin:t[e2],links:ty(l)}}return{span_id:n,trace_id:r,start_timestamp:0,data:{}}}function tw(e){let{traceFlags:t}=e.spanContext();return 1===t}function tk(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}let tS="_sentryChildSpans",tC="_sentryRootSpan";function tE(e,t){let n=e[tC]||e;ei(t,tC,n),e[tS]?e[tS].add(t):ei(e,tS,new Set([t]))}function tI(e){let t=new Set;return!function e(n){if(!t.has(n)&&tw(n))for(let r of(t.add(n),n[tS]?Array.from(n[tS]):[]))e(r)}(e),Array.from(t)}function tL(e){return e[tC]||e}function tT(){let e=eQ(N());return e.getActiveSpan?e.getActiveSpan():eV()[ez]}function tM(){tg||(ee(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),tg=!0)}let tN="production",tj="_frozenDsc";function t$(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||tN,release:n.release,public_key:r,trace_id:e,org_id:function(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;r&&(e=r.match(tu),t=e?.[1])}return t}(t)};return t.emit("createDsc",o),o}function tR(e,t){let n=t.getPropagationContext();return n.dsc||t$(n.traceId,e)}function tA(e){let t=eG();if(!t)return{};let n=tL(e),r=tx(n),o=r.data,s=n.spanContext().traceState,i=s?.get("sentry.sample_rate")??o[e0]??o[e1];function a(e){return("number"==typeof i||"string"==typeof i)&&(e.sample_rate=`${i}`),e}let l=n[tj];if(l)return a(l);let c=s?.get("sentry.dsc"),u=c&&tn(c);if(u)return a(u);let d=t$(e.spanContext().traceId,t),_=o[eK],p=r.description;return"url"!==_&&p&&(d.transaction=p),to()&&(d.sampled=String(tw(n)),d.sample_rand=s?.get("sentry.sample_rand")??tc(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}class tP{constructor(e={}){this._traceId=e.traceId||eI(),this._spanId=e.spanId||eB()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function tO(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity;try{return function t(n,r){let o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Infinity,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(o=new WeakSet,[function(e){return!!o.has(e)||(o.add(e),!1)},function(e){o.delete(e)}]),[l,c]=a;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let u=function(t,n){try{var r;let o;if("domain"===t&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(n===e.g)return"[Global]";if("u">typeof window&&n===window)return"[Window]";if("u">typeof document&&n===document)return"[Document]";if(q(n))return ew(n);if(H(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${ev(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;let s=(r=n,o=Object.getPrototypeOf(r),o?.constructor?o.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(e){return`**non-serializable** (${e})`}}(n,r);if(!u.startsWith("[object "))return u;if(r.__sentry_skip_normalization__)return r;let d="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:s;if(0===d)return u.replace("object ","");if(l(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let e=r.toJSON();return t("",e,d-1,i,a)}catch{}let _=Array.isArray(r)?[]:{},p=0,h=ec(r);for(let e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(p>=i){_[e]="[MaxProperties ~]";break}let n=h[e];_[e]=t(e,n,d-1,i,a),p++}return c(r),_}("",t,n,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function tB(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function tz(e){let t=j(M);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let tW={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function tF(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function tH(e,t,n,r){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:t_(r)},...o&&{trace:o}}}function tU(e){eo.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function tY(e,t){if(!t?.length||!e.description)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(eC(e.description,r))return R&&tU(e),!0;continue}if(!r.name&&!r.op)continue;let t=!r.name||eC(e.description,r.name),o=!r.op||e.op&&eC(e.op,r.op);if(t&&o)return R&&tU(e),!0}return!1}function tX(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[e3],o=n[e6];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})}),t}class tq{constructor(e={}){this._traceId=e.traceId||eI(),this._spanId=e.spanId||eB(),this._startTime=e.startTimestamp||eR(),this._links=e.links,this._attributes={},this.setAttributes({[e2]:"manual",[e5]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=tb(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eK,"custom"),this}end(e){this._endTime||(this._endTime=tb(e),function(e){if(!R)return;let{description:t="< unknown name >",op:n="< unknown op >"}=tx(e),{spanId:r}=e.spanContext(),o=tL(e)===e,s=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;eo.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[e5],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:tk(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[e2],profile_id:this._attributes[e7],exclusive_time:this._attributes[e9],measurements:tX(this._events),is_segment:this._isStandaloneSpan&&tL(this)===this||void 0,segment_id:this._isStandaloneSpan?tL(this).spanContext().spanId:void 0,links:ty(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){R&&eo.log("[Tracing] Adding an event to span:",e);let r=tQ(t)?t:n||eR(),o=tQ(t)?{}:t||{},s={name:e,time:tb(r),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=eG();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===tL(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=eG();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=tA(e[0]),r=t?.getDsn(),o=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!o&&r&&{dsn:t_(r)}},{beforeSendSpan:i,ignoreSpans:a}=t?.getOptions()||{},l=a?.length?e.filter(e=>!tY(tx(e),a)):e,c=e.length-l.length;c&&t?.recordDroppedEvent("before_send","span",c);let u=i?e=>{let t=tx(e),n=i(t);return n||(tM(),t)}:tx,d=[];for(let e of l){let t=u(e);t&&d.push([{type:"span"},t])}return tD(s,d)}([this],e)):(R&&eo.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&(tc(this).scope||eV()).captureEvent(t)}_convertSpanToTransaction(){if(!tV(tx(this)))return;this._name||(R&&eo.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:e,isolationScope:t}=tc(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=tI(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof tq&&t.isStandaloneSpan())}).map(e=>tx(e)).filter(tV),o=this._attributes[eK];delete this._attributes[e8],r.forEach(e=>{delete e.data[e8]});let s={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:s,status:i,origin:a,links:l}=tx(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:o,status:i,origin:a,links:l}}(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:tA(this)},request:n,...o&&{transaction_info:{source:o}}},i=tX(this._events);return i&&Object.keys(i).length&&(R&&eo.log("[Measurements] Adding measurements to transaction event",JSON.stringify(i,void 0,2)),s.measurements=i),s}}function tQ(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tV(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let tJ="__SENTRY_SUPPRESS_TRACING__";function tZ(e){let t=eQ(N());if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=t0(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>eZ(e.scope,t):void 0!==o?e=>tG(o,e):e=>e())(()=>{let t=eV(),s=t5(t,o);return e.onlyIfParent&&!s?new tP:tK({parentSpan:s,spanArguments:n,forceTransaction:r,scope:t})})}function tG(e,t){let n=eQ(N());return n.withActiveSpan?n.withActiveSpan(e,t):eZ(n=>(eW(n,e||void 0),t(n)))}function tK(e){var t;let n,{parentSpan:r,spanArguments:o,forceTransaction:s,scope:i}=e;if(!to()){let e=new tP;if(s||!r){let t={sampled:"false",sample_rate:"0",transaction:o.name,...tA(e)};ei(e,tj,t)}return e}let a=eJ();if(r&&!s)n=function(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[tJ]&&tw(e),i=s?new tq({...n,parentSpanId:r,traceId:o,sampled:s}):new tP({traceId:o});tE(e,i);let a=eG();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}(r,i,o),tE(r,n);else if(r){let e=tA(r),{traceId:t,spanId:s}=r.spanContext(),a=tw(r);ei(n=t1({traceId:t,parentSpanId:s,...o},i,a),tj,e)}else{let{traceId:e,dsc:t,parentSpanId:r,sampled:s}={...a.getPropagationContext(),...i.getPropagationContext()};n=t1({traceId:e,parentSpanId:r,...o},i,s),t&&ei(n,tj,t)}return!function(e){if(!R)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=tx(e),{spanId:o}=e.spanContext(),s=tw(e),i=tL(e),a=i===e,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&c.push(`parent ID: ${r}`),!a){let{op:e,description:t}=tx(i);c.push(`root ID: ${i.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}eo.log(`${l} ${c.join("\n ")}`)}(n),(t=n)&&(ei(t,tl,function(e){try{let t=M.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(a)),ei(t,ta,i)),n}function t0(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=tb(e.startTime),delete n.startTime,n}return t}function t1(e,t,n){let r=eG(),o=r?.getOptions()||{},{name:s=""}=e,i={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",i,{decision:!1});let a=i.parentSampled??n,l=i.spanAttributes,c=t.getPropagationContext(),[u,d,_]=t.getScopeData().sdkProcessingMetadata[tJ]?[!1]:function(e,t,n){let r,o;if(!to(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),o=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,o=!0);let s=ts(r);if(void 0===s)return R&&eo.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return R&&eo.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,o];let i=n{t(e)})}function t4(e){return new t3((t,n)=>{n(e)})}class t3{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new t3((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new t3((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(Y(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function t6(e,t){let{extra:n,tags:r,attributes:o,user:s,contexts:i,level:a,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:_,propagationContext:p,transactionName:h,span:m}=t;t8(e,"extra",n),t8(e,"tags",r),t8(e,"attributes",o),t8(e,"user",s),t8(e,"contexts",i),e.sdkProcessingMetadata=eD(e.sdkProcessingMetadata,l,2),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),_.length&&(e.attachments=[...e.attachments,..._]),e.propagationContext={...e.propagationContext,...p}}function t8(e,t,n){e[t]=eD(e[t],n,1)}function t7(e,t){let n=$("globalScope",()=>new eF).getScopeData();return e&&t6(n,e.getScopeData()),t&&t6(n,t.getScopeData()),n}function t9(e,t,n,r,l,c){var u,d,_;let p,{normalizeDepth:h=3,normalizeMaxBreadth:m=1e3}=e,f={...t,event_id:t.event_id||n.event_id||eI(),timestamp:t.timestamp||e$()},g=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:o,maxValueLength:s}=t;e.environment=e.environment||n||tN,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let i=e.request;i?.url&&s&&(i.url=ek(i.url,s)),s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=ek(e.value,s))})})(f,e),u=f,(d=g).length>0&&(u.sdk=u.sdk||{},u.sdk.integrations=[...u.sdk.integrations||[],...d]),l&&l.emit("applyFrameMetadata",t),void 0===t.type&&(_=f,p=function(e){let t=M._sentryDebugIds,n=M._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],l=n?Object.keys(n):[];if(a&&r.length===s&&l.length===i)return a;s=r.length,i=l.length,a={},o||(o={});let c=(t,n)=>{for(let r of t){let t=n[r],s=o?.[r];if(s&&a&&t)a[s[0]]=t,o&&(o[r]=[s[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let s=n[e],i=s?.filename;if(i&&a&&o){a[i]=t,o[r]=[i,t];break}}}}};return t&&c(r,t),n&&c(l,n),a}(e.stackParser),_.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=p[e.filename])})}));let y=function(e,t){if(!t)return e;let n=e?e.clone():new eF;return n.update(t),n}(r,n.captureContext);n.mechanism&&eN(f,n.mechanism);let b=l?l.getEventProcessors():[],v=t7(c,y),x=[...n.attachments||[],...v.attachments];x.length&&(n.attachments=x),function(e,t){var n,r,o,s,i,a,l,c;let u,d,{fingerprint:_,span:p,breadcrumbs:h,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),i&&(e.level=i),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),p&&((n=e).contexts={trace:function(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:tx(e).parent_span_id,s=tc(e).scope;return{parent_span_id:o,span_id:r?s?.getPropagationContext().propagationSpanId||eB():t,trace_id:n}}(r=p),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:tA(r),...n.sdkProcessingMetadata},(u=tx(tL(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=u)),o=e,s=_,o.fingerprint=o.fingerprint?Array.isArray(o.fingerprint)?o.fingerprint:[o.fingerprint]:[],s&&(o.fingerprint=o.fingerprint.concat(s)),o.fingerprint.length||delete o.fingerprint,i=e,a=h,d=[...i.breadcrumbs||[],...a],i.breadcrumbs=d.length?d:void 0,l=e,c=m,l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...c}}(f,v);let w=[...b,...v.eventProcessors];return(n.data&&!0===n.data.__sentry__?t2(f):function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{let o=function e(t,n,r,o){let s=r[o];if(!t||!s)return t;let i=s({...t},n);return(R&&null===i&&eo.log(`Event processor "${s.id||"?"}" dropped event`),Y(i))?i.then(t=>e(t,n,r,o+1)):e(i,n,r,o+1)}(t,n,e,r);return Y(o)?o:t2(o)}catch(e){return t4(e)}}(w,f,n)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(e=>{let[t,r]=e;n.push({type:"sourcemap",code_file:t,debug_id:r})})}(e),"number"==typeof h&&h>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:tO(e.data,t,n)}}))},...e.user&&{user:tO(e.user,t,n)},...e.contexts&&{contexts:tO(e.contexts,t,n)},...e.extra&&{extra:tO(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=tO(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:tO(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=tO(e.contexts.flags,3,n)),r}(e,h,m):e)}let ne=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function nt(e,t){return eV().captureException(e,function(e){if(e){var t;return(t=e)instanceof eF||"function"==typeof t||Object.keys(e).some(e=>ne.includes(e))?{captureContext:e}:e}}(t))}function nn(e,t){return eV().captureEvent(e,t)}function nr(e,t){eJ().setContext(e,t)}function no(e){var t;let n,r,o=eJ(),{user:s}=t7(o,eV()),{userAgent:i}=M.navigator||{},a=(t={user:s,...i&&{userAgent:i},...e},n=eR(),r={sid:eI(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}},t&&eO(r,t),r),l=o.getSession();return l?.status==="ok"&&eO(l,{status:"exited"}),ns(),o.setSession(a),a}function ns(){let e,t=eJ(),n=eV().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),eO(n,e)),ni(),t.setSession()}function ni(){let e=eJ(),t=eG(),n=e.getSession();n&&t&&t.captureSession(n)}function na(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e?ns():ni()}let nl=[];function nc(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function nu(e,t,n){if(n[t.name]){R&&eo.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,nl.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),nl.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}R&&eo.log(`Integration installed: ${t.name}`)}function nd(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}let n_=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],np=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"EventFilters",setup(n){e=nm(t,n.getOptions())},processEvent:(n,r,o)=>(e||(e=nm(t,o.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&eE(n,t)}(e,t.ignoreTransactions))return R&&eo.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${eT(e)}`),!0}else{var n,r,o;if(n=e,r=t.ignoreErrors,r?.length&&nd(n).some(e=>eE(e,r)))return R&&eo.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${eT(e)}`),!0;if(o=e,o.exception?.values?.length&&!o.message&&!o.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return R&&eo.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${eT(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=nf(e);return!!n&&eE(n,t)}(e,t.denyUrls))return R&&eo.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${eT(e)}. Url: ${nf(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=nf(e);return!n||eE(n,t)}(e,t.allowUrls))return R&&eo.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${eT(e)}. Url: ${nf(e)}`),!0}return!1}(n,e)?n:null)}},nh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...np(e),name:"InboundFilters"}};function nm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:n_],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function nf(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return R&&eo.error(`Cannot extract url for event ${eT(e)}`),null}}let ng=new WeakMap;function ny(e,t){let n=ex(e),r=ex(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;enew WeakMap)}function nk(e,t){var n,r,o,s;let i,a=t??(s=e,nS().get(s))??[];if(0===a.length)return;let l=e.getOptions(),c=(n=l._metadata,r=l.tunnel,o=e.getDsn(),i={},n?.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&o&&(i.dsn=t_(o)),tD(i,[[{type:"trace_metric",item_count:a.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:a}]]));nS().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(c)}function nS(){return $("clientToMetricBufferMap",()=>new WeakMap)}function nC(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let nE=Symbol.for("SentryBufferFullError");function nI(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return t2(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>nC(setTimeout(()=>t(!1),e)))]):n}}}function nL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh();return(e[t]||e.all||0)>n}function nT(e,t){let{statusCode:n,headers:r}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh(),s={...e},i=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,n,,,r]=e.split(":",5),i=parseInt(t,10),a=(isNaN(i)?60:i)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!r||r.split(";").includes("custom"))&&(s[e]=o+a):s[e]=o+a;else s.all=o+a}else a?s.all=o+function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eh(),n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,o):429===n&&(s.all=o+6e4);return s}let nM="Not capturing exception because it's already been captured.",nN="Discarded session because of missing or non-string release",nj=Symbol.for("SentryInternalError"),n$=Symbol.for("SentryDoNotSendEventError");function nR(e){return{message:e,[nj]:!0}}function nA(e){return{message:e,[n$]:!0}}function nP(e){return!!e&&"object"==typeof e&&nj in e}function nO(e){return!!e&&"object"==typeof e&&n$ in e}function nD(e,t,n,r,o){let s,i=0,a=!1;e.on(n,()=>{i=0,clearTimeout(s),a=!1}),e.on(t,t=>{(i+=r(t))>=8e5?o(e):a||(a=!0,s=nC(setTimeout(()=>{o(e)},5e3)))}),e.on("flush",()=>{o(e)})}class nB{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=nI(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=td.exec(e);if(!t)return void ee(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,o="",s="",i="",a=""]=t.slice(1),l="",c=a,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return tp({host:s,pass:o,path:l,projectId:c,port:i,protocol:n,publicKey:r})}(e):tp(e);if(t&&function(e){if(!R)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(eo.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(eo.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(t&&isNaN(parseInt(t,10)))||(eo.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(eo.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):R&&eo.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,n){let r,o,s;return t||`${r=e.protocol?`${e.protocol}:`:"",o=e.port?`:${e.port}`:"",`${r}//${e.host}${o}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${s={sentry_version:"7"},e.publicKey&&(s.sentry_key=e.publicKey),n&&(s.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(s).toString()}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&nD(this,"afterCaptureLog","flushLogs",nU,nx),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&nD(this,"afterCaptureMetric","flushMetrics",nH,nk)}captureException(e,t,n){let r=eI();if(ej(e))return R&&eo.log(nM),r;let o={event_id:r,...t};return this._process(()=>this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n)).then(e=>e),"error"),o.event_id}captureMessage(e,t,n,r){let o={event_id:eI(),...n},s=W(e)?e:String(e),i=F(e),a=i?this.eventFromMessage(s,t,o):this.eventFromException(e,o);return this._process(()=>a.then(e=>this._captureEvent(e,o,r)),i?"unknown":"error"),o.event_id}captureEvent(e,t,n){let r=eI();if(t?.originalException&&ej(t.originalException))return R&&eo.log(nM),r;let o={event_id:r,...t},s=e.sdkProcessingMetadata||{},i=s.capturedSpanScope,a=s.capturedSpanIsolationScope,l=nz(e.type);return this._process(()=>this._captureEvent(e,o,i||n,a),l),o.event_id}captureSession(e){this.sendSession(e),eO(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){nx(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(e=>{let{name:t}=e;return t.startsWith("Spotlight")}))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];nu(this,e,this._integrations),t||nc(this,[e])}sendEvent(e){var t,n,r;let o,s,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,a);let l=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,o=tF(n),s=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk),i=tH(e,o,r,t),delete e.sdkProcessingMetadata,tD(i,[[{type:s},e]]));for(let e of a.attachments||[])l=function(e,t){let[n,r]=e;return[n,[...r,t]]}(l,function(e){let t="string"==typeof e.data?tz(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(l).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,r;let o,{release:s,environment:i=tN}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!s){R&&eo.warn(nN);return}t.release=t.release||s,t.environment=t.environment||i,e.attrs=t}else{if(!e.release&&!s){R&&eo.warn(nN);return}e.release=e.release||s,e.environment=e.environment||i}this.emit("beforeSendSession",e);let a=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,o=tF(n),tD({sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:t_(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(a)}recordDroppedEvent(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this._options.sendClientReports){let r=`${e}:${t}`;R&&eo.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=function(){for(var e=arguments.length,n=Array(e),r=0;r{n.delete(r)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;re(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return R&&eo.error("Error while sending envelope:",e),{}}return R&&eo.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(n=>{n&&nu(e,n,t)}),t),nc(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,o=t.exception?.values;if(o){for(let e of(r=!0,n=!1,o))if(e.mechanism?.handled===!1){n=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&(eO(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||tsetTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s?.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),t9(o,e,t,n,this,r).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...function(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),o={trace_id:t,span_id:r||eB()};return n&&(o.parent_span_id=n),o}(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tR(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eV(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:eJ();return R&&nW(e)&&eo.log(`Captured error event \`${nd(e)[0]||""}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{R&&(nO(e)?eo.log(e.message):nP(e)?eo.warn(e.message):eo.warn(e))})}_processEvent(e,t,n,r){let o=this.getOptions(),{sampleRate:s}=o,i=nF(e),a=nW(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===s?void 0:ts(s);if(a&&"number"==typeof u&&ep()>u)return this.recordDroppedEvent("sample_rate","error"),t4(nA(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let d=nz(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),nA("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Y(e))return e.then(e=>{if(!H(e)&&null!==e)throw nR(n);return e},e=>{throw nR(`${t} rejected with ${e}`)});if(!H(e)&&null!==e)throw nR(n);return e}(function(e,t,n,r){let{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i,ignoreSpans:a}=t,l=n;if(nW(l)&&o)return o(l,r);if(nF(l)){if(i||a){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:s,data:i,op:a}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:i?.[e7],exclusive_time:i?.[e9],measurements:e.measurements,is_segment:!0}}(l);if(a?.length&&tY(t,a))return null;if(i){let e=i(t);if(e)l=eD(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[e7]:e.profile_id},...e.exclusive_time&&{[e9]:e.exclusive_time}}}},measurements:e.measurements});else tM()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(a?.length&&tY(e,a)){!function(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}(n,e);continue}if(i){let n=i(e);n?t.push(n):(tM(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(l,r)}}return l}(this,o,e,t),c)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),i){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw nA(`${c} returned \`null\`, will not send event.`)}let s=n.getSession()||r.getSession();if(a&&s&&this._updateSessionFromEvent(s,o),i){let e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=o.transaction_info;return i&&l&&o.transaction!==e.transaction&&(o.transaction_info={...l,source:"custom"}),this.sendEvent(o,t),o}).then(null,e=>{if(nO(e)||nP(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),nR(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===nE&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(e=>{let[t,n]=e,[r,o]=t.split(":");return{reason:r,category:o,quantity:n}})}_flushOutcomes(){var e;R&&eo.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){R&&eo.log("No outcomes to send");return}if(!this._dsn){R&&eo.log("No dsn provided, will not send outcomes");return}R&&eo.log("Sending outcomes:",t);let n=tD((e=this._options.tunnel&&t_(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:e$(),discarded_events:t}]]);this.sendEnvelope(n)}}function nz(e){return"replay_event"===e?"replay":e||"error"}function nW(e){return void 0===e.type}function nF(e){return"transaction"===e.type}function nH(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+nY(e.attributes)}function nU(e){let t=0;return e.message&&(t+=2*e.message.length),t+nY(e.attributes)}function nY(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*nX(e[0]):F(e)?t+=nX(e):t+=100}),t}function nX(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function nq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:T})),o.version=T)}function nQ(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function nV(e){return P(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function nJ(e,t){var n,r;let o,s,i=nG(e,t),a={type:(n=t,!(o=n?.name)&&n0(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":o),value:(r=t,s=r?.message,n0(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":s?s.error&&"string"==typeof s.error.message?nV(s.error):nV(r):"No error message")};return i.length&&(a.stacktrace={frames:i}),void 0===a.type&&""===a.value&&(a.value="Unrecoverable error caught"),a}function nZ(e,t){return{exception:{values:[nJ(e,t)]}}}function nG(e,t){var n,r;let o=t.stacktrace||t.stack||"",s=(n=t)&&nK.test(n.message)?1:0,i="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(o,s,i)}catch{}return[]}let nK=/Minified React error #\d+;/i;function n0(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function n1(e,t,n,r,o){let s;if(D(t)&&t.error)return nZ(e,t.error);if(B(t)||O(t,"DOMException")){if("stack"in t)s=nZ(e,t);else{let o=t.name||(B(t)?"DOMError":"DOMException"),i=t.message?`${o}: ${t.message}`:o;eM(s=n5(e,i,n,r),i)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return P(t)?nZ(e,t):(H(t)||U(t)?eN(s=function(e,t,n,r){let o=eG(),s=o?.getOptions().normalizeDepth,i=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,o=tO(t,n);return~-encodeURI(JSON.stringify(o)).split(/%..|./).length>r?e(t,n-1,r):o}(t,s)};if(i)return{exception:{values:[nJ(e,i)]},extra:a};let l={exception:{values:[{type:U(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,t){let n,{isUnhandledRejection:r}=t,o=((n=Object.keys(ec(e))).sort(),n[0]?n.join(", "):"[object has no keys]"),s=r?"promise rejection":"exception";if(D(e))return`Event \`ErrorEvent\` captured as ${s} with message \`${e.message}\``;if(U(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${s}`}return`Object captured as ${s} with keys: ${o}`}(t,{isUnhandledRejection:r})}]},extra:a};if(n){let t=nG(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,o),{synthetic:!0}):(eM(s=n5(e,t,n,r),`${t}`,void 0),eN(s,{synthetic:!0})),s)}function n5(e,t,n,r){let o={};if(r&&n){let r=nG(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),eN(o,{synthetic:!0})}if(W(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}let n2=0;function n4(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if(el(e))return e}catch{return e}let n=function(){for(var n=arguments.length,r=Array(n),o=0;on4(e,t));return e.apply(this,n)}catch(e){throw n2++,setTimeout(()=>{n2--}),eZ(n=>{n.addEventProcessor(e=>(t.mechanism&&(eM(e,void 0,void 0),eN(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),nt(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}ea(n,e),ei(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function n3(){let e=J(),{referrer:t}=M.document||{},{userAgent:n}=M.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class n6 extends nB{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:M.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);nq(t,"browser",["browser"],M.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:n,sendClientReports:r,enableLogs:o,_experiments:s,enableMetrics:i}=this._options,a=i??s?.enableMetrics??!0;M.document&&(r||o||a)&&M.document.addEventListener("visibilitychange",()=>{"hidden"===M.document.visibilityState&&(r&&this._flushOutcomes(),o&&nx(this),a&&nk(this))}),n&&this.on("beforeSendSession",nQ)}eventFromException(e,t){var n,r;let o;return n=this._options.stackParser,r=this._options.attachStacktrace,eN(o=n1(n,e,t?.syntheticException||void 0,r)),o.level="error",t?.event_id&&(o.event_id=t.event_id),t2(o)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=n5(e,t,r?.syntheticException||void 0,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),t2(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}let n8={},n7={};function n9(e,t){n8[e]=n8[e]||[],n8[e].push(t)}function re(e,t){if(!n7[e]){n7[e]=!0;try{t()}catch(t){R&&eo.error(`Error while instrumenting ${e}`,t)}}}function rt(e,t){let n=e&&n8[e];if(n)for(let r of n)try{r(t)}catch(t){R&&eo.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${ev(r)} Error:`,t)}}function rn(){"console"in M&&G.forEach(function(e){e in M.console&&es(M.console,e,function(t){return K[e]=t,function(){for(var t=arguments.length,n=Array(t),r=0;rrs(void 0,t))}function rs(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in M))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(rr(M.fetch))return!0;let e=!1,t=M.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=rr(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){R&&eo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&es(M,"fetch",function(t){return function(){for(var n=arguments.length,r=Array(n),o=0;o(e?e(t):rt("fetch",{...l,endTimestamp:1e3*eR(),response:t}),t),e=>{rt("fetch",{...l,endTimestamp:1e3*eR(),error:e}),P(e)&&void 0===e.stack&&(e.stack=s.stack,ei(e,"framesToPop",1));let t=eG(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(l.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:ei(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function ri(e,t){if(e?.body){let n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:o}=await r.read();clearTimeout(e),o&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function ra(e){let t;try{t=e.clone()}catch{return}ri(t,()=>{rt("fetch-body-resolved",{endTimestamp:1e3*eR(),response:e})})}function rl(e,t){return!!e&&"object"==typeof e&&!!e[t]}function rc(e){return"string"==typeof e?e:e?rl(e,"url")?e.url:e.toString?e.toString():"":""}function ru(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function rd(e,t){let n=eG(),r=eJ();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:s=100}=n.getOptions();if(s<=0)return;let i={timestamp:e$(),...e},a=o?ee(()=>o(i,t)):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}function r_(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function rp(e){return"isRelative"in e}function rh(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function rm(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function rf(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),s=e.indexOf(","),i="";if(t&&-1!==s){let t=e.slice(s+1);i=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${o?",base64":""}${i?`,${i}`:""}`}return e}function rg(e){n9("dom",e),re("dom",ry)}function ry(){if(!M.document)return;let e=rt.bind(null,"dom"),t=rb(e,!0);M.document.addEventListener("click",t,!1),M.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=M[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(es(n,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=rb(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch{}return t.call(this,n,r,o)}}),es(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function rb(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{var r;if(!n||n._sentryCaptured)return;let o=function(e){try{return e.target}catch{return null}}(n);if(r=n.type,"keypress"===r&&(!o?.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;ei(n,"_sentryCaptured",!0),o&&!o._sentryId&&ei(o,"_sentryId",eI());let s="keypress"===n.type?"input":n.type;!function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==d)return!1}catch{}return!0}(n)&&(e({event:n,name:s,global:t}),u=n.type,d=o?o._sentryId:void 0),clearTimeout(c),c=M.setTimeout(()=>{d=void 0,u=void 0},1e3)}}let rv="__sentry_xhr_v3__";function rx(e){n9("xhr",e),re("xhr",rw)}function rw(){if(!M.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),o=1e3*eR(),s=z(n[0])?n[0].toUpperCase():void 0,i=function(e){if(z(e))return e;try{return e.toString()}catch{}}(n[1]);if(!s||!i)return e.apply(t,n);t[rv]={method:s,url:i,request_headers:{}},"POST"===s&&i.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[rv];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}rt("xhr",{endTimestamp:1e3*eR(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,o]=n,s=t[rv];return s&&z(r)&&z(o)&&(s.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[rv];return r&&(void 0!==n[0]&&(r.body=n[0]),rt("xhr",{startTimestamp:1e3*eR(),xhr:t})),e.apply(t,n)}})}function rk(e){let t="history";n9(t,e),re(t,rS)}function rS(){function e(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r2?n[2]:void 0;if(o){let t=_,r=function(e){try{return new URL(e,M.location.origin).toString()}catch{return e}}(String(o));if(_=r,t===r)return e.apply(this,n);rt("history",{from:t,to:r})}return e.apply(this,n)}}M.addEventListener("popstate",()=>{let e=M.location.href,t=_;_=e,t===e||rt("history",{from:t,to:e})}),"history"in M&&M.history&&(es(M.history,"pushState",e),es(M.history,"replaceState",e))}let rC="u"0&&void 0!==arguments[0]?arguments[0]:{},t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,o,s,i,a,l;let c;t.console&&(n=e,n9(c="console",function(e){if(eG()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:ru(e.level),message:eS(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${eS(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);rd(t,{input:e.args,level:e.level})}),re(c,rn)),t.dom&&rg((r=e,o=t.dom,function(e){let t,n;if(eG()!==r)return;let s="object"==typeof o?o.serializeAttribute:void 0,i="object"==typeof o&&"number"==typeof o.maxStringLength?o.maxStringLength:void 0;i&&i>1024&&(rC&&eo.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s]);try{var a;let r=e.event,o=(a=r)&&a.target?r.target:r;t=V(o,{keyAttrs:s,maxStringLength:i}),n=Z(o)}catch{t=""}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),rd(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&rx((s=e,function(e){if(eG()!==s)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[rv];if(!t||!n||!r)return;let{method:o,url:i,status_code:a,body:l}=r,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},u={category:"xhr",data:{method:o,url:i,status_code:a},type:"http",level:r_(a)};s.emit("beforeOutgoingRequestBreadcrumb",u,c),rd(u,c)})),t.fetch&&ro((i=e,function(e){if(eG()!==i)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let r=e.fetchData,o={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:r,level:"error",type:"http"};i.emit("beforeOutgoingRequestBreadcrumb",s,o),rd(s,o)}else{let r=e.response,o={...e.fetchData,status_code:r?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,r?.status;let s={input:e.args,response:r,startTimestamp:t,endTimestamp:n},a={category:"fetch",data:o,type:"http",level:r_(o.status_code)};i.emit("beforeOutgoingRequestBreadcrumb",a,s),rd(a,s)}})),t.history&&rk((a=e,function(e){if(eG()!==a)return;let t=e.from,n=e.to,r=rm(M.location.href),o=t?rm(t):void 0,s=rm(n);o?.path||(o=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===o.protocol&&r.host===o.host&&(t=o.relative),rd({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){eG()===l&&rd({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:eT(e)},{event:e})}))}}},rI=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rL=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&es(M,"setTimeout",rT),t.setInterval&&es(M,"setInterval",rT),t.requestAnimationFrame&&es(M,"requestAnimationFrame",rM),t.XMLHttpRequest&&"XMLHttpRequest"in M&&es(XMLHttpRequest.prototype,"send",rN);let e=t.eventTarget;e&&(Array.isArray(e)?e:rI).forEach(e=>{var n,r;let o;return n=e,r=t,o=M[n]?.prototype,void(o?.hasOwnProperty?.("addEventListener")&&(es(o,"addEventListener",function(e){return function(t,o,s){var i,a,l,c;try{i=o,"function"==typeof i.handleEvent&&(o.handleEvent=n4(o.handleEvent,{mechanism:{data:{handler:ev(o),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(a=this,l=t,c=o,a&&"object"==typeof a&&"removeEventListener"in a&&"function"==typeof a.removeEventListener&&a.removeEventListener(l,c)),e.apply(this,[t,n4(o,{mechanism:{data:{handler:ev(o),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),es(o,"removeEventListener",function(e){return function(t,n,r){try{let o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}})))})}}};function rT(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r{e in o&&"function"==typeof o[e]&&es(o,e,function(t){let n={mechanism:{data:{handler:ev(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=el(t);return r&&(n.mechanism.data.handler=ev(r)),n4(t,n)})}),e.apply(this,n)}}let rj=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===M.document){rC&&eo.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}no({ignoreDuration:!0}),na();let e=eJ(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(na(),n=t)}),"route"===t&&rk(e=>{let{from:t,to:n}=e;t!==n&&(no({ignoreDuration:!0}),na())})}}},r$=null;function rR(e){let t="error";n9(t,e),re(t,rA)}function rA(){r$=M.onerror,M.onerror=function(e,t,n,r,o){return rt("error",{column:r,error:o,line:n,msg:e,url:t}),!!r$&&r$.apply(this,arguments)},M.onerror.__SENTRY_INSTRUMENTED__=!0}let rP=null;function rO(e){let t="unhandledrejection";n9(t,e),re(t,rD)}function rD(){rP=M.onunhandledrejection,M.onunhandledrejection=function(e){return rt("unhandledrejection",e),!rP||rP.apply(this,arguments)},M.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let rB=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,rR(e=>{var t,r,o,s;let i,a,l,c,u,d,{stackParser:_,attachStacktrace:p}=rW();if(eG()!==n||n2>0)return;let{msg:h,url:m,line:f,column:g,error:y}=e,b=(t=n1(_,y||h,void 0,p,!1),r=m,o=f,s=g,u=(c=(l=(a=(i=t.exception=t.exception||{}).values=i.values||[])[0]=a[0]||{}).stacktrace=l.stacktrace||{}).frames=c.frames||[],d=function(e){if(z(e)&&0!==e.length)return e.startsWith("data:")?`<${rf(e,!1)}>`:e}(r)??J(),0===u.length&&u.push({colno:s,filename:d,function:"?",in_app:!0,lineno:o}),t);b.level="error",nn(b,{originalException:y,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),rz("onerror")),t.onunhandledrejection&&(r=e,rO(e=>{var t;let{stackParser:n,attachStacktrace:o}=rW();if(eG()!==r||n2>0)return;let s=function(e){if(F(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(e),i=F(s)?(t=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):n1(n,s,void 0,o,!0);i.level="error",nn(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),rz("onunhandledrejection"))}}};function rz(e){rC&&eo.log(`Global Handler attached: ${e}`)}function rW(){let e=eG();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function rF(e){return Array.isArray(e.errors)}function rH(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...rF(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function rU(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let rY=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){!function(e,t,n,r,o,s){if(!o.exception?.values||!s||!X(s.originalException,Error))return;let i=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;i&&(o.exception.values=function e(t,n,r,o,s,i,a,l){if(i.length>=r+1)return i;let c=[...i];if(X(o[s],Error)){rH(a,l,o);let i=t(n,o[s]),u=c.length;rU(i,s,u,l),c=e(t,n,r,o[s],s,[i,...c],i,u)}return rF(o)&&o.errors.forEach((i,u)=>{if(X(i,Error)){rH(a,l,o);let d=t(n,i),_=c.length;rU(d,`errors[${u}]`,_,l),c=e(t,n,r,i,s,[d,...c],d,_)}}),c}(e,t,r,s.originalException,n,o.exception.values,i,0))}(nJ,o.getOptions().stackParser,n,t,e,r)}}};function rX(e,t,n,r){let o={filename:e,function:""===t?"?":t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}let rq=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rQ=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rV=/\((\S*)(?::(\d+))(?::(\d+))\)/,rJ=/at (.+?) ?\(data:(.+?),/,rZ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rG=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rK=eg([30,e=>{let t=e.match(rJ);if(t)return{filename:``,function:t[1]};let n=rq.exec(e);if(n){let[,e,t,r]=n;return rX(e,"?",+t,+r)}let r=rQ.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){let e=rV.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=r0(r[1]||"?",r[2]);return rX(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{let t=rZ.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=rG.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=r0(n,e),rX(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),r0=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},r1="u"1&&void 0!==arguments[1]?arguments[1]:r2("fetch"),n=0,r=0;async function o(o){let s=o.body.length;n+=s,r++;let i={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw r5.fetch=void 0,e}finally{n-=s,r--}}return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nI(e.bufferSize||64),r={};return{send:function(o){let s=[];if(tB(o,(t,n)=>{let o=tW[n];nL(r,o)?e.recordDroppedEvent("ratelimit_backoff",o):s.push(t)}),0===s.length)return Promise.resolve({});let i=tD(o[0],s),a=t=>{var n;if(n=["client_report"],tB(i,(e,t)=>n.includes(t))){R&&eo.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}tB(i,(n,r)=>{e.recordDroppedEvent(t,tW[r])})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[tz(r),e]:r.push("string"==typeof e?tz(e):e)}for(let e of n){let[t,n]=e;if(o(` ${JSON.stringify(t)} `),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(tO(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(i)}).then(e=>(413===e.statusCode?(R&&eo.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),a("send_error")):(R&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&eo.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=nT(r,e)),e),e=>{throw a("network_error"),R&&eo.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===nE)return R&&eo.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,o,nI(e.bufferSize||40))}var r6,r8,r7,r9,oe,ot,on,or,oo,os=e.i(942347);let oi={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function oa(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Map,s=!1,i="externalFinish",a=!r.disableAutoFinish,l=[],{idleTimeout:c=oi.idleTimeout,finalTimeout:u=oi.finalTimeout,childSpanTimeout:d=oi.childSpanTimeout,beforeSpanEnd:_,trimIdleSpanEndTimestamp:p=!0}=r,h=eG();if(!h||!to()){let e=new tP,t={sample_rate:"0",sampled:"false",...tA(e)};return ei(e,tj,t),e}let m=eV(),f=tT(),g=(t=tZ(e),eW(eV(),t),R&&eo.log("[Tracing] Started span is an idle span"),t);function y(){n&&(clearTimeout(n),n=void 0)}function b(e){y(),n=setTimeout(()=>{!s&&0===o.size&&a&&(i="idleTimeout",g.end(e))},c)}function v(e){n=setTimeout(()=>{!s&&a&&(i="heartbeatFailed",g.end(e))},d)}function x(e){s=!0,o.clear(),l.forEach(e=>e()),eW(m,f);let t=tx(g),{start_timestamp:n}=t;if(!n)return;t.data[e4]||g.setAttribute(e4,i);let r=t.status;r&&"unknown"!==r||g.setStatus({code:1}),eo.log(`[Tracing] Idle span "${t.op}" finished`);let a=tI(g).filter(e=>e!==g),d=0;a.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),R&&eo.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=tx(t),o=r<=e,s=n-r<=(u+c)/1e3;if(R){let e=JSON.stringify(t,void 0,2);o?s||eo.log("[Tracing] Discarding span since it finished after idle span final timeout",e):eo.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!s||!o)&&(g[tS]&&g[tS].delete(t),d++)}),d>0&&g.setAttribute("sentry.idle_span_discarded_spans",d)}return g.end=new Proxy(g.end,{apply(e,t,n){if(_&&_(g),t instanceof tP)return;let[r,...o]=n,s=tb(r||eR()),i=tI(g).filter(e=>e!==g),a=tx(g);if(!i.length||!p)return x(s),Reflect.apply(e,t,[s,...o]);let l=h.getOptions().ignoreSpans,c=i?.reduce((e,t)=>{let n=tx(t);return!n.timestamp||l&&tY(n,l)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=a.start_timestamp,m=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(s,c||1/0)));return x(m),Reflect.apply(e,t,[m,...o])}}),l.push(h.on("spanStart",e=>{var t;!(s||e===g||tx(e).timestamp||e instanceof tq&&e.isStandaloneSpan())&&tI(g).includes(e)&&(t=e.spanContext().spanId,y(),o.set(t,!0),v(eR()+d/1e3))})),l.push(h.on("spanEnd",e=>{if(!s){var t;t=e.spanContext().spanId,o.has(t)&&o.delete(t),0===o.size&&b(eR()+c/1e3)}})),l.push(h.on("idleSpanEnableAutoFinish",e=>{e===g&&(a=!0,b(),o.size&&v())})),r.disableAutoFinish||b(),setTimeout(()=>{s||(g.setStatus({code:2,message:"deadline_exceeded"}),i="finalTimeout",g.end())},u),g}let ol=!1;var oc=e.i(722428);function ou(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==oc.default?oc.default:0))||(e=M.process,e?.type==="renderer"))}let od=(e,t,n,r)=>{let o,s;return i=>{if(t.value>=0&&(i||r)&&((s=t.value-(o??0))||void 0===o)){var a;o=t.value,t.delta=s,a=t.value,t.rating=a>n[1]?"poor":a>n[0]?"needs-improvement":"good",e(t)}}},o_=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=M.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart{let e=o_();return e?.activationStart??0};function oh(e,t,n){M.document&&M.addEventListener(e,t,n)}function om(e,t,n){M.document&&M.removeEventListener(e,t,n)}let of=-1,og=new Set,oy=e=>{if(("pagehide"===e.type||M.document?.visibilityState==="hidden")&&of>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of og)e();isFinite(of)||(of="visibilitychange"===e.type?e.timeStamp:0,om("prerenderingchange",oy,!0))}},ob=()=>{if(M.document&&of<0){let e=op();of=(M.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(M.document?.visibilityState!=="hidden"||M.document?.prerendering?1/0:0),oh("visibilitychange",oy,!0),oh("pagehide",oy,!0),oh("prerenderingchange",oy,!0)}return{get firstHiddenTime(){return of},onHidden(e){og.add(e)}}},ov=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=o_(),r="navigate";return n&&(M.document?.prerendering||op()>0?r="prerender":M.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},ox=new WeakMap;function ow(e,t){try{return ox.get(e)||ox.set(e,new t),ox.get(e)}catch(e){return new t}}class ok{constructor(){ok.prototype.__init.call(this),ok.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let oS=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},oC=e=>{let t=!1;return()=>{t||(e(),t=!0)}},oE=e=>{M.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},oI=[1800,3e3],oL=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oE(()=>{let n,r=ob(),o=ov("FCP"),s=oS("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime1&&void 0!==arguments[1]?arguments[1]:{};oL(oC(()=>{let n,r=ov("CLS",0),o=ob(),s=ow(t,ok),i=e=>{for(let t of e)s._processEntry(t);s._sessionValue>r.value&&(r.value=s._sessionValue,r.entries=s._sessionEntries,n())},a=oS("layout-shift",i);a&&(n=od(e,r,oT,t.reportAllChanges),o.onHidden(()=>{i(a.takeRecords()),n(!0)}),M?.setTimeout?.(n))}))},oN=0,oj=1/0,o$=0,oR=e=>{e.forEach(e=>{e.interactionId&&(oj=Math.min(oj,e.interactionId),oN=(o$=Math.max(o$,e.interactionId))?(o$-oj)/7+1:0)})},oA=()=>p?oN:performance.interactionCount||0,oP=0;class oO{constructor(){oO.prototype.__init.call(this),oO.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){oP=oA(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((oA()-oP)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let oD=e=>{let t=M.requestIdleCallback||M.setTimeout;M.document?.visibilityState==="hidden"?e():(oh("visibilitychange",e=oC(e),{once:!0,capture:!0}),oh("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),om("visibilitychange",e,{capture:!0}),om("pagehide",e,{capture:!0})}))},oB=[200,500],oz=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=ob();oE(()=>{let r;"interactionCount"in performance||p||(p=oS("event",oR,{type:"event",buffered:!0,durationThreshold:0}));let o=ov("INP"),s=ow(t,oO),i=e=>{oD(()=>{for(let t of e)s._processEntry(t);let t=s._estimateP98LongestInteraction();t&&t._latency!==o.value&&(o.value=t._latency,o.entries=t.entries,r())})},a=oS("event",i,{durationThreshold:t.durationThreshold??40});r=od(e,o,oB,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(a.takeRecords()),r(!0)}))})};class oW{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let oF=[2500,4e3],oH=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oE(()=>{let n,r=ob(),o=ov("LCP"),s=ow(t,oW),i=e=>{for(let i of(t.reportAllChanges||(e=e.slice(-1)),e))s._processEntry(i),i.startTime{i(a.takeRecords()),a.disconnect(),n(!0)}),s=e=>{e.isTrusted&&(oD(r),om(e.type,s,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])oh(e,s,{capture:!0})}})},oU=[800,1800],oY=e=>{M.document?.prerendering?oE(()=>oY(e)):M.document?.readyState!=="complete"?addEventListener("load",()=>oY(e),!0):setTimeout(e)},oX=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ov("TTFB"),r=od(e,n,oU,t.reportAllChanges);oY(()=>{let e=o_();e&&(n.value=Math.max(e.responseStart-op(),0),n.entries=[e],r(!0))})},oq={},oQ={};function oV(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o4("cls",e,o0,h,t)}function oJ(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o4("lcp",e,o1,m,t)}function oZ(e){return o4("inp",e,o2,g)}function oG(e,t){var n;let r;return o3(e,t),oQ[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),oS(n,e=>{oK(n,{entries:e})},r),oQ[e]=!0),o6(e,t)}function oK(e,t){let n=oq[e];if(n?.length)for(let r of n)try{r(t)}catch(t){r1&&eo.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${ev(r)} Error:`,t)}}function o0(){return oM(e=>{oK("cls",{metric:e}),h=e},{reportAllChanges:!0})}function o1(){return oH(e=>{oK("lcp",{metric:e}),m=e},{reportAllChanges:!0})}function o5(){return oX(e=>{oK("ttfb",{metric:e}),f=e})}function o2(){return oz(e=>{oK("inp",{metric:e}),g=e})}function o4(e,t,n,r){let o,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o3(e,t),oQ[e]||(o=n(),oQ[e]=!0),r&&t({metric:r}),o6(e,t,s?o:void 0)}function o3(e,t){oq[e]=oq[e]||[],oq[e].push(t)}function o6(e,t,n){return()=>{n&&n();let r=oq[e];if(!r)return;let o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function o8(e){return"number"==typeof e&&isFinite(e)}function o7(e,t,n,r){let{...o}=r,s=tx(e).start_timestamp;return s&&s>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),tG(e,()=>{let e=tZ({startTime:t,...o});return e&&e.end(n),e})}function o9(e){let t,n=eG();if(!n)return;let{name:r,transaction:o,attributes:s,startTime:i}=e,{release:a,environment:l,sendDefaultPii:c}=n.getOptions(),u=n.getIntegrationByName("Replay"),d=u?.getReplayId(),_=eV(),p=_.getUser(),h=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=_.getScopeData().contexts.profile.profile_id}catch{}return tZ({name:r,attributes:{release:a,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:o,"user_agent.original":M.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s},startTime:i,experimental:{standalone:!0}})}function se(){return M.addEventListener&&M.performance}function st(e){return e/1e3}function sn(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function sr(e,t){let n,r,o=!1;function s(e){!o&&r&&t(e,r),o=!0}oh("visibilitychange",n=e=>{("pagehide"===e.type||M.document?.visibilityState==="hidden")&&(()=>{s("pagehide")})(e)},{capture:!0,once:!0}),oh("pagehide",n,{capture:!0,once:!0});let i=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(s("navigation"),i(),a())}),a=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,a()})}let so=[],ss=new Map,si=new Map,sa={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},sl=e=>{let{metric:t}=e;if(void 0==t.value)return;let n=st(t.value);if(n>60)return;let r=t.entries.find(e=>e.duration===t.value&&sa[e.name]);if(!r)return;let{interactionId:o}=r,s=sa[r.name],i=st(eP()+r.startTime),a=tT(),l=a?tL(a):void 0,c=null!=o?ss.get(o):void 0,u=c?.span||l,d=u?tx(u).description:eV().getScopeData().transactionName,_=o9({name:c?.elementName||V(r.target),transaction:d,attributes:{[e2]:"auto.http.browser.inp",[e5]:`ui.interaction.${s}`,[e9]:r.duration},startTime:i});_&&(_.addEvent("inp",{[e3]:"millisecond",[e6]:t.value}),_.end(i+n))};function sc(e){return e?((eP()||performance.timeOrigin)+e)/1e3:e}function su(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return eP()||se()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":sc(e.redirectStart),"http.request.redirect_end":sc(e.redirectEnd),"http.request.worker_start":sc(e.workerStart),"http.request.fetch_start":sc(e.fetchStart),"http.request.domain_lookup_start":sc(e.domainLookupStart),"http.request.domain_lookup_end":sc(e.domainLookupEnd),"http.request.connect_start":sc(e.connectStart),"http.request.secure_connection_start":sc(e.secureConnectionStart),"http.request.connection_end":sc(e.connectEnd),"http.request.request_start":sc(e.requestStart),"http.request.response_start":sc(e.responseStart),"http.request.response_end":sc(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(e=>{let[,t]=e;return null!=t})):t}let sd=0,s_={};function sp(e,t,n,r){var o;let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n,i=t["secureConnection"===(o=n)?"connectEnd":"fetch"===o?"domainLookupStart":`${o}End`],a=t[`${n}Start`];a&&i&&o7(e,r+st(a),r+st(i),{op:`browser.${s}`,name:t.name,attributes:{[e2]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let sh=e=>{let{entries:t}=e,n=tT(),r=n?tL(n):void 0,o=r?tx(r).description:eV().getScopeData().transactionName;t.forEach(e=>{if(!e.identifier)return;let t=e.name,n=e.renderTime,r=e.loadTime,[s,i]=r?[st(r),"load-time"]:n?[st(n),"render-time"]:[eR(),"entry-emission"],a="image-paint"===t?st(Math.max(0,(n??0)-(r??0))):0,l={[e2]:"auto.ui.browser.elementtiming",[e5]:"ui.elementtiming",[eK]:"component","sentry.span_start_time_source":i,"sentry.transaction_name":o,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":n,"element.load_time":r,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let n=eQ(N());if(n.startSpan)return n.startSpan(e,t);let r=t0(e),{forceTransaction:o,parentSpan:s,scope:i}=e;eZ(i?.clone(),()=>{var n;return(void 0!==(n=s)?e=>tG(n,e):e=>e())(()=>{let n=eV(),i=t5(n,s),a=e.onlyIfParent&&!i?new tP:tK({parentSpan:i,spanArguments:r,forceTransaction:o,scope:n});return eW(n,a),function(e,t){var n,r,o,s;let i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};try{i=e()}catch(e){throw t(e),a(),e}return n=i,r=t,o=a,s=l,Y(n)?n.then(e=>(o(),s(e),e),e=>{throw r(e),o(),e}):(o(),s(n),n)}(()=>t(a),()=>{let{status:e}=tx(a);a.isRecording()&&(!e||"ok"===e)&&a.setStatus({code:2,message:"internal_error"})},()=>{a.end()})})})}({name:`element[${e.identifier}]`,attributes:l,startTime:s,onlyIfParent:!0},e=>{e.end(s+a)})})},sm="sentry_previous_trace";function sf(e){return 1===e.traceFlags}function sg(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.client||eG();if(e=eG(),!(e?.getOptions().enabled!==!1&&e?.getTransport())||!n)return{};let r=eQ(N());if(r.getTraceData)return r.getTraceData(t);let o=t.scope||eV(),s=t.span||tT(),i=s?function(e){let{traceId:t,spanId:n}=e.spanContext();return tm(t,n,tw(e))}(s):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return tm(t,r,n)}(o),a=function(e){if(e){var t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r&&(e[`${te}${n}`]=r),e},{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,t,n)=>{let[r,o]=t,s=`${encodeURIComponent(r)}=${encodeURIComponent(o)}`,i=0===n?s:`${e},${s}`;return i.length>8192?(R&&eo.warn(`Not adding key: ${r} with val: ${o} to baggage header due to exceeding baggage size limits.`),e):i},""):void 0}}(s?tA(s):tR(n,o));if(!th.test(i))return eo.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let l={"sentry-trace":i,baggage:a};return t.propagateTraceparent&&(l.traceparent=s?function(e){let{traceId:t,spanId:n}=e.spanContext();return tf(t,n,tw(e))}(s):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return tf(t,r,n)}(o)),l}function sy(e){return e.split(",").some(e=>e.trim().startsWith(te))}function sb(e,t,n,r){let o={url:rf(e),type:"fetch","http.method":n,[e2]:r,[e5]:"http.client"};return t&&(rp(t)||(o["http.url"]=rf(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}let sv=Symbol.for("sentry__originalRequestBody");function sx(e){return new URLSearchParams(e).toString()}function sw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[sx(e)];if(!e)return[void 0]}catch(n){return r1&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return r1&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function sk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][sv];if(void 0!==t)return t}}function sS(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return r1&&eo.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}function sC(e){try{return new URL(e,M.location.origin).href}catch{return}}function sE(e){try{return new Headers(e)}catch{return}}let sI=new WeakMap,sL=new Map,sT={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function sM(e){let{url:t}=tx(e).data;if(!t||"string"!=typeof t)return;let n=oG("resource",r=>{let{entries:o}=r;o.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&(e.setAttributes(su(r)),setTimeout(n))})})}let sN={...oi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...sT},sj=function(){let e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={name:void 0,source:void 0},s=M.document,{enableInp:i,enableElementTiming:a,enableLongTask:l,enableLongAnimationFrame:c,_experiments:{enableInteractions:u,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:_},beforeStartSpan:p,idleTimeout:h,finalTimeout:m,childSpanTimeout:g,markBackgroundSpan:v,traceFetch:x,traceXHR:w,trackFetchStreamPerformance:k,shouldCreateSpanForRequest:S,enableHTTPTimings:C,ignoreResourceSpans:E,ignorePerformanceApiSpans:I,instrumentPageLoad:L,instrumentNavigation:T,detectRedirects:N,linkPreviousTrace:j,consistentTraceSampling:$,enableReportPageLoaded:A,onRequestSpanStart:P,onRequestSpanEnd:O}={...sN,...r};function D(t,r){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a="pageload"===r.op,l=r.name,c=p?p(r):r,u=c.attributes||{};if(l!==c.name&&(u[eK]="custom",c.attributes=u),!i){let e=e$();tZ({...c,startTime:e}).end(e);return}o.name=c.name,o.source=u[eK];let f=oa(c,{idleTimeout:h,finalTimeout:m,childSpanTimeout:g,disableAutoFinish:a,beforeSpanEnd:r=>{e?.(),function(e,t){var n,r;let o=se(),s=eP();if(!o?.getEntries||!s)return;let i=st(s),a=o.getEntries(),{op:l,start_timestamp:c}=tx(e);a.slice(sd).forEach(n=>{let r=st(n.startTime),o=st(Math.max(0,n.duration));if("navigation"!==l||!c||!(i+r{sp(s,a,e,u)}),sp(s,a,"secureConnection",u,"TLS/SSL"),sp(s,a,"fetch",u,"cache"),sp(s,a,"domainLookup",u,"DNS"),d=s,_=a,h=(p=u)+st(_.requestStart),m=p+st(_.responseEnd),f=p+st(_.responseStart),_.responseEnd&&(o7(d,h,m,{op:"browser.request",name:_.name,attributes:{[e2]:"auto.ui.browser.metrics"}}),o7(d,f,m,{op:"browser.response",name:_.name,attributes:{[e2]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o,s){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&eE(t.name,s))return;let i=o_(!1),a=o+Math.max(n,st(i?i.requestStart:0)),l=o+n,c=l+r,u={[e2]:"auto.resource.browser.metrics"};a!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=a),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&F(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(F(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(u,t),a<=c&&o7(e,a,c,{name:t.name,op:t.entryType,attributes:u})}(e,n,r,o,i,t.ignorePerformanceApiSpans);let s=ob(),a=n.startTime{let[t,n]=e,r=a[t];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[n]=r)});let _={...u,...su(t)},p=s+r;o7(e,p,p+o,{name:n.replace(M.location.origin,""),op:c,attributes:_})}(e,n,n.name,r,o,i,t.ignoreResourceSpans)}}),sd=Math.max(a.length-1,0),function(e){let t=M.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),o8(n.rtt)&&(s_["connection.rtt"]={value:n.rtt,unit:"millisecond"})),o8(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),o8(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=o_(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(s_),t.recordClsOnPageloadSpan||delete s_.cls,t.recordLcpOnPageloadSpan||delete s_.lcp,Object.entries(s_).forEach(e=>{let[t,n]=e;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tT(),o=r&&tL(r);o&&(R&&eo.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[e6]:t,[e3]:n}))}(t,n.value,n.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",op()),n=e,r=t,y&&r.recordLcpOnPageloadSpan&&(y.element&&n.setAttribute("lcp.element",V(y.element)),y.id&&n.setAttribute("lcp.id",y.id),y.url&&n.setAttribute("lcp.url",y.url.trim().slice(0,200)),null!=y.loadTime&&n.setAttribute("lcp.loadTime",y.loadTime),null!=y.renderTime&&n.setAttribute("lcp.renderTime",y.renderTime),n.setAttribute("lcp.size",y.size)),b?.sources&&r.recordClsOnPageloadSpan&&b.sources.forEach((e,t)=>n.setAttribute(`cls.source.${t+1}`,V(e.node)))),y=void 0,b=void 0,s_={}}(r,{recordClsOnPageloadSpan:!d,recordLcpOnPageloadSpan:!_,ignoreResourceSpans:E,ignorePerformanceApiSpans:I}),ei(t,sA,void 0);let o=eV(),s=o.getPropagationContext();o.setPropagationContext({...s,traceId:f.spanContext().traceId,sampled:tw(f),dsc:tA(r)}),a&&(n=void 0)},trimIdleSpanEndTimestamp:!A});function v(){s&&["interactive","complete"].includes(s.readyState)&&t.emit("idleSpanEnableAutoFinish",f)}a&&A&&(n=f),ei(t,sA,f),a&&!A&&s&&(s.addEventListener("readystatechange",()=>{v()}),v())}return{name:"BrowserTracing",setup(r){function o(){let e=tT(),t=e&&tL(e);if(t){let e="internal_error";R&&eo.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}if(ol||(o.tag="sentry_tracingErrorCallback",ol=!0,rR(o),rO(o)),e=function(e){let{recordClsStandaloneSpans:t,recordLcpStandaloneSpans:n,client:r}=e,o=se();if(o&&eP()){o.mark&&M.performance.mark("sentry-tracing-init");let e=n?function(e){let t,n=0;if(!sn("largest-contentful-paint"))return;let r=oJ(e=>{let{metric:r}=e,o=r.entries[r.entries.length-1];o&&(n=r.value,t=o)},!0);sr(e,(e,o)=>{var s,i,a,l;let c,u,d,_,p;s=n,i=t,a=o,l=e,r1&&eo.log(`Sending LCP span (${s})`),c=st((eP()||0)+(i?.startTime||0)),u=eV().getScopeData().transactionName,d=i?V(i.element):"Largest contentful paint",_={[e2]:"auto.http.browser.lcp",[e5]:"ui.webvital.lcp",[e9]:0,"sentry.pageload.span_id":a,"sentry.report_event":l},i&&(i.element&&(_["lcp.element"]=V(i.element)),i.id&&(_["lcp.id"]=i.id),i.url&&(_["lcp.url"]=i.url),null!=i.loadTime&&(_["lcp.loadTime"]=i.loadTime),null!=i.renderTime&&(_["lcp.renderTime"]=i.renderTime),null!=i.size&&(_["lcp.size"]=i.size)),(p=o9({name:d,transaction:u,attributes:_,startTime:c}))&&(p.addEvent("lcp",{[e3]:"millisecond",[e6]:s}),p.end(c)),r()})}(r):oJ(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(s_.lcp={value:t.value,unit:"millisecond"},y=n)},!0),s=o4("ttfb",e=>{let{metric:t}=e;t.entries[t.entries.length-1]&&(s_.ttfb={value:t.value,unit:"millisecond"})},o5,f),i=t?function(e){let t,n=0;if(!sn("layout-shift"))return;let r=oV(e=>{let{metric:r}=e,o=r.entries[r.entries.length-1];o&&(n=r.value,t=o)},!0);sr(e,(e,o)=>{var s,i,a,l;let c,u,d,_,p;s=n,i=t,a=o,l=e,r1&&eo.log(`Sending CLS span (${s})`),c=i?st((eP()||0)+i.startTime):eR(),u=eV().getScopeData().transactionName,d=i?V(i.sources[0]?.node):"Layout shift",_={[e2]:"auto.http.browser.cls",[e5]:"ui.webvital.cls",[e9]:0,"sentry.pageload.span_id":a,"sentry.report_event":l},i?.sources&&i.sources.forEach((e,t)=>{_[`cls.source.${t+1}`]=V(e.node)}),(p=o9({name:d,transaction:u,attributes:_,startTime:c}))&&(p.addEvent("cls",{[e3]:"",[e6]:s}),p.end(c)),r()})}(r):oV(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(s_.cls={value:t.value,unit:""},b=n)},!0);return()=>{e?.(),s(),i?.()}}return()=>void 0}({recordClsStandaloneSpans:d||!1,recordLcpStandaloneSpans:_||!1,client:r}),i&&function(){if(se()&&eP()){let e=oZ(sl);()=>{e()}}}(),a&&se()&&eP()&&oG("element",sh),c&&M.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=tT();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=st(eP()+n.startTime),{start_timestamp:r,op:o}=tx(t);if("navigation"===o&&r&&e{let{entries:t}=e,n=tT();if(!n)return;let{op:r,start_timestamp:o}=tx(n);for(let e of t){let t=st(eP()+e.startTime),s=st(e.duration);"navigation"===r&&o&&t{let{entries:t}=e,n=tT();if(n){for(let e of t)if("click"===e.name){let t=st(eP()+e.startTime),r=st(e.duration),o={name:V(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[e2]:"auto.ui.browser.metrics"}},s=Z(e.target);s&&(o.attributes["ui.component_name"]=s),o7(n,t,t+r,o)}}}),N&&s){let e=()=>{t=eR()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function p(){let e=r[sA];e&&!tx(e).timestamp&&(rC&&eo.log(`[Tracing] Finishing current active span with op: ${tx(e).op}`),e.setAttribute(e4,"cancelled"),e.end())}r.on("startNavigationSpan",(e,n)=>{if(eG()!==r)return;if(n?.isRedirect){rC&&eo.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),D(r,{op:"navigation.redirect",...e},!1);return}t=void 0,p(),eJ().setPropagationContext({traceId:eI(),sampleRand:Math.random(),propagationSpanId:to()?void 0:eB()});let o=eV();o.setPropagationContext({traceId:eI(),sampleRand:Math.random(),propagationSpanId:to()?void 0:eB()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),D(r,{op:"navigation",...e,parentSpan:null,forceTransaction:!0})}),r.on("startPageLoadSpan",function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(eG()!==r)return;p();let n=function(e,t){let n=function(e){let t;if(!e)return;let n=e.match(th);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=tn(t);if(!n?.traceId)return{traceId:eI(),sampleRand:ep()};let o=function(e,t){let n=ts(t?.sample_rand);if(void 0!==n)return n;let r=ts(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?ep()*r:r+ep()*(1-r):ep()}(n,r);r&&(r.sample_rand=o.toString());let{traceId:s,parentSpanId:i,parentSampled:a}=n;return{traceId:s,parentSpanId:i,sampled:a,dsc:r||{},sampleRand:o}}(t.sentryTrace||s$("sentry-trace")||sR("sentry-trace"),t.baggage||s$("baggage")||sR("baggage")),o=eV();o.setPropagationContext(n),to()||(o.getPropagationContext().propagationSpanId=eB()),o.setSDKProcessingMetadata({normalizedRequest:n3()}),D(r,{op:"pageload",...e})}),r.on("endPageloadSpan",()=>{A&&n&&(n.setAttribute(e4,"reportPageLoaded"),n.end())})},afterAllSetup(e){var n,r,s,a,l,c,d;let _,p=J();if("off"!==j&&function(e,t){let{linkPreviousTrace:n,consistentTraceSampling:r}=t,o="session-storage"===n,s=o?function(){try{let e=M.sessionStorage?.getItem(sm);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if(tL(e)!==e)return;let t=eV().getPropagationContext();s=function(e,t,n){let r=tx(t),o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[e0])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return o;let s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(rC&&eo.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${s.traceId}-${s.spanId}-${+!!sf(s)}`)),o)}(s,e,t),o&&function(e){try{M.sessionStorage.setItem(sm,JSON.stringify(e))}catch(e){rC&&eo.warn("Could not store previous trace in sessionStorage",e)}}(s)});let i=!0;r&&e.on("beforeSampling",e=>{if(!s)return;let t=eV(),n=t.getPropagationContext();if(i&&n.parentSpanId){i=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(s.sampleRate),sampled:String(sf(s.spanContext))},sampleRand:s.sampleRand}),e.parentSampled=sf(s.spanContext),e.parentSampleRate=s.sampleRate,e.spanAttributes={...e.spanAttributes,[e1]:s.sampleRate}})}(e,{linkPreviousTrace:j,consistentTraceSampling:$}),M.location){if(L){let t,o=eP();n=e,r={name:M.location.pathname,startTime:o?o/1e3:void 0,attributes:{[eK]:"url",[e2]:"auto.pageload.browser"}},n.emit("startPageLoadSpan",r,void 0),eV().setTransactionName(r.name),(t=function(e){return e[sA]}(n))&&n.emit("afterStartPageLoadSpan",t)}T&&rk(n=>{var r,o;let s,i,{to:a,from:l}=n;if(void 0===l&&p?.indexOf(a)!==-1){p=void 0;return}p=void 0;let c=rh(a),u=e[sA],d=u&&N&&(r=u,o=t,s=tx(r),!((i=e$())-s.start_timestamp>1.5)&&(!o||!(i-o<=1.5)));!function(e,t,n){let{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});let s=eV();s.setTransactionName(t.name),r&&!o&&s.setSDKProcessingMetadata({normalizedRequest:{...n3(),url:r}}),function(e){e[sA]}(e)}(e,{name:c?.pathname||M.location.pathname,attributes:{[eK]:"url",[e2]:"auto.navigation.browser"}},{url:a,isRedirect:d})})}v&&(M.document?M.document.addEventListener("visibilitychange",()=>{let e=tT();if(!e)return;let t=tL(e);if(M.document.hidden&&t){let e="cancelled",{op:n,status:r}=tx(t);rC&&eo.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):rC&&eo.warn("[Tracing] Could not set up background tab detection due to lack of global document")),u&&(s=e,a=h,l=m,c=g,d=o,M.document&&addEventListener("click",()=>{let e="ui.action.click",t=function(e){return e[sA]}(s);if(t&&["navigation","pageload"].includes(tx(t).op)){rC&&eo.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(_&&(_.setAttribute(e4,"interactionInterrupted"),_.end(),_=void 0),!d.name){rC&&eo.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}_=oa({name:d.name,op:e,attributes:{[eK]:d.source||"url"}},{idleTimeout:a,finalTimeout:l,childSpanTimeout:c})},{capture:!0})),i&&function(){let e=Object.keys(sa);function t(e){let t=e.target;if(!t)return;let n=V(t),r=Math.round(e.timeStamp);if(si.set(r,n),si.size>50){let e=si.keys().next().value;void 0!==e&&si.delete(e)}}ou()&&e.forEach(e=>{M.addEventListener(e,t,{capture:!0,passive:!0})});let n=e=>{let{entries:t}=e,n=tT(),r=n&&tL(n);t.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||ss.has(t))return;let n=e.target?V(e.target):function(e){let t=Math.round(e.startTime),n=si.get(t);if(!n)for(let e=-5;e<=5;e++){let r=si.get(t+e);if(r){n=r;break}}return n||""}(e);if(so.length>10){let e=so.shift();ss.delete(e)}so.push(t),ss.set(t,{span:r,elementName:n})})};oG("event",n),oG("first-input",n)}(),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:i,tracePropagationTargets:a,onRequestSpanStart:l,onRequestSpanEnd:c}={...sT,...t},u="function"==typeof s?s:e=>!0,d=e=>(function(e,t){let n=J();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}let s=r.origin===o;return t?eE(r.toString(),t)||s&&eE(r.pathname,t):s}{let n=!!e.match(/^\/(?!\/)/);return t?eE(e,t):n}})(e,a),_={},p=e.getOptions().propagateTraceparent;if(n){let t;e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=sL.get(e.span_id);t&&(e.timestamp=t/1e3,sL.delete(e.span_id))}}),e)),o&&(n9(t="fetch-body-resolved",e=>{if(e.response){let t=sI.get(e.response);t&&e.endTimestamp&&sL.set(t,e.endTimestamp)}}),re(t,()=>rs(ra))),ro(e=>{let t=function(e,t,n,r,o){if(!e.fetchData)return;let{method:s,url:i}=e.fetchData,a=to()&&t(i);if(e.endTimestamp){var l,c,u;let t,n=e.fetchData.__span;if(!n)return;let s=r[n];s&&(a&&(function(e,t){if(t.response){ti(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(s,e),l=s,c=e,t="object"==typeof(u=o)&&null!==u?u.onRequestSpanEnd:void 0,t?.(l,{headers:c.response?.headers,error:c.error})),delete r[n]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:_=!1}="object"==typeof o?o:{spanOrigin:o},p=!!tT(),h=a&&p?tZ(function(e,t,n){if(e.startsWith("data:")){let r=rf(e);return{name:`${t} ${r}`,attributes:sb(e,void 0,t,n)}}let r=rh(e),o=r?function(e){if(rp(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(r):e;return{name:`${t} ${o}`,attributes:sb(e,r,t,n)}}(i,s,d)):new tP;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var o;let s=sg({span:n,propagateTraceparent:r}),i=s["sentry-trace"],a=s.baggage,l=s.traceparent;if(!i)return;let c=t.headers||(Q(e)?e.headers:void 0);if(!c)return{...s};if(o=c,"u">typeof Headers&&X(o,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",i),r&&l&&!e.get("traceparent")&&e.set("traceparent",l),a){let t=e.get("baggage");t?sy(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(Array.isArray(c)){let e=[...c];c.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]),r&&l&&!c.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=c.find(e=>"baggage"===e[0]&&sy(e[1]));return a&&!t&&e.push(["baggage",a]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],s=n&&(Array.isArray(n)?n.find(e=>sy(e)):sy(n));a&&!s&&o.push(a);let u={...c,"sentry-trace":e??i,baggage:o.length>0?o.join(","):void 0};return r&&l&&!t&&(u.traceparent=l),u}}(t,n,to()&&p?h:void 0,_);r&&(e.args[1]=n,n.headers=r)}let m=eG();if(m){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};m.emit("beforeOutgoingRequestSpan",h,t)}return h}(e,u,d,_,{propagateTraceparent:p,onRequestSpanEnd:c});if(e.response&&e.fetchData.__span&&sI.set(e.response,e.fetchData.__span),t){let n=sC(e.fetchData.url),r=n?rm(n).host:void 0;t.setAttributes({"http.url":n?rf(n):void 0,"server.address":r}),i&&sM(t),l?.(t,{headers:e.headers})}})}r&&rx(e=>{let t=function(e,t,n,r,o,s){let i=e.xhr,a=i?.[rv];if(!i||i.__sentry_own_request__||!a)return;let{url:l,method:c}=a,u=to()&&t(l);if(e.endTimestamp){let t=i.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&void 0!==a.status_code&&(ti(n,a.status_code),n.end(),s?.(n,{headers:sE(sS(i)),error:e.error})),delete r[t]);return}let d=sC(l),_=d?rm(d):rm(l),p=rf(l.split(/[?#]/,1)[0]),h=!!tT(),m=u&&h?tZ({name:`${c} ${p}`,attributes:{url:rf(l),type:"xhr","http.method":c,"http.url":d?rf(d):void 0,"server.address":_?.host,[e2]:"auto.http.browser",[e5]:"http.client",..._?.search&&{"http.query":_?.search},..._?.hash&&{"http.fragment":_?.hash}}}):new tP;i.__sentry_xhr_span_id__=m.spanContext().spanId,r[i.__sentry_xhr_span_id__]=m,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:o,traceparent:s}=sg({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let o=e.__sentry_xhr_v3__?.request_headers;if(!o?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=o?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,o,s)}(i,to()&&h?m:void 0,o);let f=eG();return f&&f.emit("beforeOutgoingRequestSpan",m,e),m}(e,u,d,_,p,c);t&&(i&&sM(t),l?.(t,{headers:sE(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:x,traceXHR:w,trackFetchStreamPerformance:k,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:S,enableHTTPTimings:C,onRequestSpanStart:P,onRequestSpanEnd:O})}}};function s$(e){let t=M.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function sR(e){let t=M.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let sA="_sentry_idleSpan";function sP(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let sO="sentryReplaySession",sD="Unable to send Replay";var sB=Object.defineProperty,sz=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?sB(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},sW=((r6=sW||{})[r6.Document=0]="Document",r6[r6.DocumentType=1]="DocumentType",r6[r6.Element=2]="Element",r6[r6.Text=3]="Text",r6[r6.CDATA=4]="CDATA",r6[r6.Comment=5]="Comment",r6);function sF(e){let t=e?.host;return t?.shadowRoot===e}function sH(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function sU(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,sY).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function sY(e){let t;if("styleSheet"in e)try{t=sU(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;nthis.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function sq(e){let{maskInputOptions:t,tagName:n,type:r}=e;return"OPTION"===n&&(n="SELECT"),!!(t[n.toLowerCase()]||r&&t[r]||"password"===r||"INPUT"===n&&!r&&t.text)}function sQ(e){let{isMasked:t,element:n,value:r,maskInputFn:o}=e,s=r||"";return t?(o&&(s=o(s,n)),"*".repeat(s.length)):s}function sV(e){return e.toLowerCase()}function sJ(e){return e.toUpperCase()}let sZ="__rrweb_original__";function sG(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?sV(t):null}function sK(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function s0(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}let r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}let s1={};function s5(e){let t=s1[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return s1[e]=r.bind(window)}function s2(){for(var e=arguments.length,t=Array(e),n=0;n{let a=r||s||i,l=n||o||"";if(!a)return e;if(ie.test(a)||it.test(a)||ir.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let c=t.split("/"),u=a.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}let is=/^[^ \t\n\r\u000c]+/,ii=/^[, \t\n\r\u000c]+/,ia=new WeakMap;function il(e,t){return t&&""!==t.trim()?ic(e,t):t}function ic(e,t){let n=ia.get(e);if(n||(n=e.createElement("a"),ia.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function iu(e,t,n,r,o,s,i){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0])return il(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return il(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}let o=[];for(;r(ii),!(n>=t.length);){let s=r(is);if(","===s.slice(-1))s=il(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=il(e,s);let i=!1;for(;;){let e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else if(","===e){n+=1,o.push((s+r).trim());break}else"("===e&&(i=!0);r+=e,n+=1}}}return o.join(", ")}(e,r);if("style"===n){let t=io(r,ic(e));return i&&i.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let n=e.split(";"),r=[];for(let e of n){if(!(e=e.trim()))continue;let n=e.indexOf(":");if(-1===n){r.push(e);continue}let o=e.slice(0,n).trim();t.has(o)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,i)),t}else if("object"===t&&"data"===n)return il(e,r);return"function"==typeof s?s(n,r,o):r}function id(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function i_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:i_(e.parentNode,t,n,r+1)}function ip(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function ih(e,t,n,r,o,s){try{let i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){let e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(s){if((l=i_(i,ip(r,o)))<0)return!0;a=i_(i,ip(t,n),l>=0?l:1/0)}else{if((a=i_(i,ip(t,n)))<0)return!1;l=i_(i,ip(r,o),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!s}catch(e){}return!!s}function im(e){return null==e?"":e.toLowerCase()}function ig(e,t){let n,{doc:r,mirror:o,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:f,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:w={},inlineImages:k=!1,recordCanvas:S=!1,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:I=5e3,onBlockedImageLoad:L,onStylesheetLoad:T,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:j=!1,ignoreCSSAttributes:$}=t,{preserveWhiteSpace:R=!0}=t,A=function(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:f,dataURLOptions:g={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:k=!1,ignoreCSSAttributes:S}=t,C=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:sW.Document,childNodes:[],compatMode:e.compatMode};return{type:sW.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:sW.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return function(e,t){let n,{doc:r,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:a,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:_,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:f,maskTextClass:g,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:w,ignoreCSSAttributes:k}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,o,s,i),C=function(e){if(e instanceof HTMLFormElement)return"form";let t=sV(e.tagName);return s8.test(t)?"div":t}(e),E={},I=e.attributes.length;for(let t=0;tt.href===e.href),n=null;t&&(n=sU(t)),n&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=io(n,t.href))}if("style"===C&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=sU(e.sheet);t&&(E._cssText=io(t,ic(r)))}if("input"===C||"textarea"===C||"select"===C||"option"===C){let t=sG(e),n=sK(e,sJ(C),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=ih(e,g,b,y,w,sq({type:t,tagName:sJ(C),maskInputOptions:l}));E.value=sQ({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(E.checked=r)}if("option"===C&&(e.selected&&!l.select?E.selected=!0:delete E.selected),"canvas"===C&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e))return!1}return!0}(e)&&(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(E.rr_dataURL=t)}}if("img"===C&&_){v||(x=(v=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"",n=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{v.width=e.naturalWidth,v.height=e.naturalHeight,x.drawImage(e,0,0),E.rr_dataURL=v.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?E.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(("audio"===C||"video"===C)&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),S){let{width:t,height:n}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==C||h(E.src)||(S||s3(e)||(E.rr_src=E.src),delete E.src);try{customElements.get(C)&&(n=!0)}catch(e){}return{type:sW.Element,tagName:C,attributes:E,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:S,rootId:f,isCustom:n}}(e,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:h,maskInputFn:f,dataURLOptions:g,inlineImages:y,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:k,rootId:C,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,ignoreCSSAttributes:S});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,_=e.textContent,p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&_){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(_=sU(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}_=io(_,ic(t.doc))}h&&(_="SCRIPT_PLACEHOLDER");let f=ih(e,r,s,o,i,n);return p||h||m||!_||!f||(_=a?a(_,e.parentElement):_.replace(/[\S]/g,"*")),m&&_&&(l.textarea||f)&&(_=c?c(_,e.parentNode):_.replace(/[\S]/g,"*")),"OPTION"===d&&_&&(_=sQ({isMasked:ih(e,r,s,o,i,sq({type:null,tagName:d,maskInputOptions:l})),element:e,value:_,maskInputFn:c})),{type:sW.Text,textContent:_||"",isStyle:p,rootId:u}}(e,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,maskTextFn:m,maskInputOptions:h,maskInputFn:f,rootId:C});case e.CDATA_SECTION_NODE:return{type:sW.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:sW.Comment,textContent:e.textContent||"",rootId:C};default:return!1}}(e,{doc:r,mirror:o,blockClass:s,blockSelector:i,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:f,maskTextFn:g,maskInputFn:y,dataURLOptions:w,inlineImages:k,recordCanvas:S,keepIframeSrcFn:N,newlyAddedElement:j,ignoreCSSAttributes:$});if(!A)return console.warn(e,"not serialized"),null;n=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===sW.Comment)return!0;if(e.type===sW.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===s0(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(im(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===im(e.attributes.name)||"icon"===im(e.attributes.rel)||"apple-touch-icon"===im(e.attributes.rel)||"shortcut icon"===im(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&im(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(im(e.attributes.property).match(/^(og|twitter|fb):/)||im(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===im(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===im(e.attributes.name)||"googlebot"===im(e.attributes.name)||"bingbot"===im(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===im(e.attributes.name)||"generator"===im(e.attributes.name)||"framework"===im(e.attributes.name)||"publisher"===im(e.attributes.name)||"progid"===im(e.attributes.name)||im(e.attributes.property).match(/^article:/)||im(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===im(e.attributes.name)||"yandex-verification"===im(e.attributes.name)||"csrf-token"===im(e.attributes.name)||"p:domain_verify"===im(e.attributes.name)||"verify-v1"===im(e.attributes.name)||"verification"===im(e.attributes.name)||"shopify-checkout-api-token"===im(e.attributes.name)))return!0}}return!1}(A,b)&&(R||A.type!==sW.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?s7():-2;let P=Object.assign(A,{id:n});if(o.add(e,P),-2===n)return null;C&&C(e);let O=!p;if(P.type===sW.Element){O=O&&!P.needBlock;let t=e.shadowRoot;t&&sH(t)&&(P.isShadowHost=!0)}if((P.type===sW.Document||P.type===sW.Element)&&O){b.headWhitespace&&P.type===sW.Element&&"head"===P.tagName&&(R=!1);let t={doc:r,mirror:o,blockClass:s,blockSelector:i,maskAllText:l,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,skipChild:p,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:f,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:w,inlineImages:k,recordCanvas:S,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:I,onBlockedImageLoad:L,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:N,ignoreCSSAttributes:$};for(let n of e.childNodes?Array.from(e.childNodes):[]){let e=ig(n,t);e&&P.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=ig(n,t);r&&(sH(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}if(e.parentNode&&sF(e.parentNode)&&sH(e.parentNode)&&(P.isShadow=!0),P.type!==sW.Element||"iframe"!==P.tagName||P.needBlock||function(e,t,n){let r,o=e.contentWindow;if(!o)return;let s=!1;try{r=o.document.readyState}catch(e){return}if("complete"!==r){let r=s2(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{s4(r),s=!0,t()});return}let i="about:blank";if(o.location.href!==i||e.src===i||""===e.src)return s2(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=s3(e);if(t&&E){let n=ig(t,{doc:t,mirror:o,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:f,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:w,inlineImages:k,recordCanvas:S,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:N,ignoreCSSAttributes:$});n&&E(e,n)}},I),P.type===sW.Element&&"img"===P.tagName&&!e.complete&&P.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&L)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&L(e,P,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return P.type===sW.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===s0(P.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;let s=s2(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{s4(s),o=!0,t()})}(e,()=>{if(T){let t=ig(e,{doc:r,mirror:o,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:f,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:w,inlineImages:k,recordCanvas:S,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:M,keepIframeSrcFn:N,ignoreCSSAttributes:$});t&&T(e,t)}},M),P.type===sW.Element&&delete P.needBlock,P}function iy(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let ib="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",iv={map:{},getId:()=>(console.error(ib),-1),getNode:()=>(console.error(ib),null),removeNodeFromMap(){console.error(ib)},has:()=>(console.error(ib),!1),reset(){console.error(ib)}};function ix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(){for(var s=arguments.length,i=Array(s),a=0;at?(r&&(function(){for(var e=arguments.length,t=Array(e),n=0;n{o=!1===n.leading?0:Date.now(),r=null,e.apply(u,i)},c))}}function iw(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(iv=new Proxy(iv,{get:(e,t,n)=>("map"===t&&console.error(ib),Reflect.get(e,t,n))}));let ik=Date.now;function iS(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function iC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iE(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iI(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function iL(e,t,n,r,o){if(!e)return!1;let s=iI(e);if(!s)return!1;let i=ip(t,n);if(!o){let e=r&&s.matches(r);return i(s)&&!e}let a=i_(s,i),l=-1;return!(a<0)&&(r&&(l=i_(s,ip(null,r))),a>-1&&l<0||anew Date().getTime());class iR{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function iA(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function iP(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=iA(n);)n=t;return n}(e);return t.contains(n)}(e))}let iO={};function iD(e){let t=iO[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return iO[e]=r.bind(window)}function iB(){for(var e=arguments.length,t=Array(e),n=0;n=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n`${e}@${t}`;class iQ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new iX,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!iP(o))return;let s=sF(o.parentNode)?this.mirror.getId(iA(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);let a=ig(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{iN(e,this.mirror)&&!iL(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ij(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),i$(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{iL(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,n)=>{let{width:r,height:o}=n;this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${o}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:s,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!iJ(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&o(e);for(let e of this.addedSet)iZ(this.droppedSet,e)||iJ(this.removes,e,this.mirror)?iZ(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let s=null;for(;n.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}let i={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!iT(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;iL(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ih(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,iI(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=sG(t),o=t.tagName;r=sK(t,o,n);let s=sq({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=sQ({isMasked:ih(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(iL(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(iY(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!id(t.tagName,n)&&(o.attributes[n]=iu(this.doc,sV(t.tagName),sV(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),s=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||s!==n.style.getPropertyPriority(r)?""===s?o.styleDiff[r]=e:o.styleDiff[r]=[e,s]:o._unchangedStyles[r]=[e,s]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(iL(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=sF(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);iL(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||iT(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(iV(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(sF(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[iq(n,r)]?iV(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(sF(e.target)&&sH(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(iT(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[iq(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!iL(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),i$(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function iV(e,t){e.delete(t),t.childNodes?.forEach(t=>iV(e,t))}function iJ(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function iZ(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let iG=e=>w?function(){for(var t=arguments.length,n=Array(t),r=0;r{};throw e}}:e,iK=[];function i0(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function i1(e,t){let n=new iQ;iK.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);let s=new r(iG(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function i5(e){let{scrollCb:t,doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,sampling:a}=e;return iy("scroll",iG(ix(iG(e=>{let a=i0(e);if(!a||iL(a,o,s,i,!0))return;let l=r.getId(a);if(a===n&&n.defaultView){let e=iS(n.defaultView);t({id:l,x:e.left,y:e.top})}else t({id:l,x:a.scrollLeft,y:a.scrollTop})}),a.scroll||100)),n)}let i2=["INPUT","TEXTAREA","SELECT"],i4=new WeakMap;function i3(e){var t=[];if(i9("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||i9("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||i9("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||i9("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function i6(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function i8(e,t){let{mirror:n,stylesheetManager:r}=e,o=null;o="#document"===t.nodeName?n.getId(t):n.getId(t.host);let s="#document"===t.nodeName?t.defaultView?.Document:t.ownerDocument?.defaultView?.ShadowRoot,i=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&s&&i?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){let t=i.set?.call(this,e);if(null!==o&&-1!==o)try{r.adoptStyleSheets(e,o)}catch(e){}return t}}),iG(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function i7(e){let t;arguments.length>1&&void 0!==arguments[1]&&arguments[1];let n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(t=i1(e,e.doc));let r=function(e){let t,{mousemoveCb:n,sampling:r,doc:o,mirror:s}=e;if(!1===r.mousemove)return()=>{};let i="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,l=[],c=ix(iG(e=>{let r=Date.now()-t;n(l.map(e=>(e.timeOffset-=r,e)),e),l=[],t=null}),a),u=iG(ix(iG(e=>{let n=i0(e),{clientX:r,clientY:o}=iM(e)?e.changedTouches[0]:e;t||(t=ik()),l.push({x:r,y:o,id:s.getId(n),timeOffset:ik()-t}),c("u">typeof DragEvent&&e instanceof DragEvent?iW.Drag:e instanceof MouseEvent?iW.MouseMove:iW.TouchMove)}),i,{trailing:!1})),d=[iy("mousemove",u,o),iy("touchmove",u,o),iy("drag",u,o)];return iG(()=>{d.forEach(e=>e())})}(e),o=function(e){let{mouseInteractionCb:t,doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,sampling:a}=e;if(!1===a.mouseInteraction)return()=>{};let l=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[],u=null;return Object.keys(iF).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==l[e]).forEach(e=>{let a=sV(e),l=n=>{let a=i0(n);if(iL(a,o,s,i,!0))return;let l=null,c=e;if("pointerType"in n){switch(n.pointerType){case"mouse":l=iH.Mouse;break;case"touch":l=iH.Touch;break;case"pen":l=iH.Pen}l===iH.Touch?iF[e]===iF.MouseDown?c="TouchStart":iF[e]===iF.MouseUp&&(c="TouchEnd"):iH.Pen}else iM(n)&&(l=iH.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===iH.Touch||c.startsWith("Mouse")&&l===iH.Mouse)&&(l=null)):iF[e]===iF.Click&&(l=u,u=null);let d=iM(n)?n.changedTouches[0]:n;if(!d)return;let _=r.getId(a),{clientX:p,clientY:h}=d;iG(t)({type:iF[c],id:_,x:p,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(iF[e]){case iF.MouseDown:case iF.MouseUp:a=a.replace("mouse","pointer");break;case iF.TouchStart:case iF.TouchEnd:return}c.push(iy(a,l,n))}),iG(()=>{c.forEach(e=>e())})}(e),s=i5(e),i=function(e,t){let{viewportResizeCb:n}=e,{win:r}=t,o=-1,s=-1;return iy("resize",iG(ix(iG(()=>{let e=iC(),t=iE();(o!==e||s!==t)&&(n({width:Number(t),height:Number(e)}),o=e,s=t)}),200)),r)}(e,{win:n}),a=function(e){let{inputCb:t,doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,ignoreClass:a,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:_,maskTextClass:p,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:f}=e;function g(e){let t=i0(e),r=e.isTrusted,d=t&&sJ(t.tagName);if("OPTION"===d&&(t=t.parentElement),!t||!d||0>i2.indexOf(d)||iL(t,o,s,i,!0))return;let g=t;if(g.classList.contains(a)||l&&g.matches(l))return;let b=sG(t),v=sK(g,d,b),x=!1,w=sq({maskInputOptions:c,tagName:d,type:b}),k=ih(t,p,m,h,f,w);("radio"===b||"checkbox"===b)&&(x=t.checked),v=sQ({isMasked:k,element:t,value:v,maskInputFn:u}),y(t,_?{text:v,isChecked:x,userTriggered:r}:{text:v,isChecked:x});let S=t.name;"radio"===b&&S&&x&&n.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach(e=>{if(e!==t){let t=sQ({isMasked:k,element:e,value:sK(e,d,b),maskInputFn:u});y(e,_?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function y(e,n){let o=i4.get(e);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){i4.set(e,n);let o=r.getId(e);iG(t)({...n,id:o})}}let b=("last"===d.input?["change"]:["input","change"]).map(e=>iy(e,iG(g),n)),v=n.defaultView;if(!v)return()=>{b.forEach(e=>e())};let x=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),w=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&b.push(...w.map(e=>(function e(t,n,r,o){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,o?r:{set(e){iB(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>e(t,n,i||{},!0)})(e[0],e[1],{set(){iG(g)({target:this,isTrusted:!1})}},!1,v))),iG(()=>{b.forEach(e=>e())})}(e),l=function(e){let{mediaInteractionCb:t,blockClass:n,blockSelector:r,unblockSelector:o,mirror:s,sampling:i,doc:a}=e,l=iG(e=>ix(iG(i=>{let a=i0(i);if(!a||iL(a,n,r,o,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=a;t({type:e,id:s.getId(a),currentTime:l,volume:c,muted:u,playbackRate:d})}),i.media||500)),c=[iy("play",l(iU.Play),a),iy("pause",l(iU.Pause),a),iy("seeked",l(iU.Seeked),a),iy("volumechange",l(iU.VolumeChange),a),iy("ratechange",l(iU.RateChange),a)];return iG(()=>{c.forEach(e=>e())})}(e),c=()=>{},u=()=>{},d=()=>{},_=()=>{};e.recordDOM&&(c=function(e,t){let n,r,{styleSheetRuleCb:o,mirror:s,stylesheetManager:i}=e,{win:a}=t;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};let l=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(l,{apply:iG((e,t,n)=>{let[r,a]=n,{id:l,styleId:c}=i6(t,s,i.styleMirror);return(l&&-1!==l||c&&-1!==c)&&o({id:l,styleId:c,adds:[{rule:r,index:a}]}),e.apply(t,n)})});let c=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:iG((e,t,n)=>{let[r]=n,{id:a,styleId:l}=i6(t,s,i.styleMirror);return(a&&-1!==a||l&&-1!==l)&&o({id:a,styleId:l,removes:[{index:r}]}),e.apply(t,n)})}),a.CSSStyleSheet.prototype.replace&&(n=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:iG((e,t,n)=>{let[r]=n,{id:a,styleId:l}=i6(t,s,i.styleMirror);return(a&&-1!==a||l&&-1!==l)&&o({id:a,styleId:l,replace:r}),e.apply(t,n)})})),a.CSSStyleSheet.prototype.replaceSync&&(r=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:iG((e,t,n)=>{let[r]=n,{id:a,styleId:l}=i6(t,s,i.styleMirror);return(a&&-1!==a||l&&-1!==l)&&o({id:a,styleId:l,replaceSync:r}),e.apply(t,n)})}));let u={};ae("CSSGroupingRule")?u.CSSGroupingRule=a.CSSGroupingRule:(ae("CSSMediaRule")&&(u.CSSMediaRule=a.CSSMediaRule),ae("CSSConditionRule")&&(u.CSSConditionRule=a.CSSConditionRule),ae("CSSSupportsRule")&&(u.CSSSupportsRule=a.CSSSupportsRule));let d={};return Object.entries(u).forEach(e=>{let[t,n]=e;d[t]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(d[t].insertRule,{apply:iG((e,t,n)=>{let[r,a]=n,{id:l,styleId:c}=i6(t.parentStyleSheet,s,i.styleMirror);return(l&&-1!==l||c&&-1!==c)&&o({id:l,styleId:c,adds:[{rule:r,index:[...i3(t),a||0]}]}),e.apply(t,n)})}),n.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:iG((e,t,n)=>{let[r]=n,{id:a,styleId:l}=i6(t.parentStyleSheet,s,i.styleMirror);return(a&&-1!==a||l&&-1!==l)&&o({id:a,styleId:l,removes:[{index:[...i3(t),r]}]}),e.apply(t,n)})})}),iG(()=>{a.CSSStyleSheet.prototype.insertRule=l,a.CSSStyleSheet.prototype.deleteRule=c,n&&(a.CSSStyleSheet.prototype.replace=n),r&&(a.CSSStyleSheet.prototype.replaceSync=r),Object.entries(u).forEach(e=>{let[t,n]=e;n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule})})}(e,{win:n}),u=i8(e,e.doc),d=function(e,t){let{styleDeclarationCb:n,mirror:r,ignoreCSSAttributes:o,stylesheetManager:s}=e,{win:i}=t,a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:iG((e,t,i)=>{let[l,c,u]=i;if(o.has(l))return a.apply(t,[l,c,u]);let{id:d,styleId:_}=i6(t.parentRule?.parentStyleSheet,r,s.styleMirror);return(d&&-1!==d||_&&-1!==_)&&n({id:d,styleId:_,set:{property:l,value:c,priority:u},index:i3(t.parentRule)}),e.apply(t,i)})});let l=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:iG((e,t,i)=>{let[a]=i;if(o.has(a))return l.apply(t,[a]);let{id:c,styleId:u}=i6(t.parentRule?.parentStyleSheet,r,s.styleMirror);return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,remove:{property:a},index:i3(t.parentRule)}),e.apply(t,i)})}),iG(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=l})}(e,{win:n}),e.collectFonts&&(_=function(e){let{fontCb:t,doc:n}=e,r=n.defaultView;if(!r)return()=>{};let o=[],s=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,n){let r=new i(e,t,n);return s.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let a=iw(n.fonts,"add",function(e){return function(n){return iB(iG(()=>{let e=s.get(n);e&&(t(e),s.delete(n))}),0),e.apply(this,[n])}});return o.push(()=>{r.FontFace=i}),o.push(a),iG(()=>{o.forEach(e=>e())})}(e)));let p=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=e,a=!0,l=iG(()=>{let e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t{}}(e),m=[];for(let t of e.plugins)m.push(t.observer(t.callback,n,t.options));return iG(()=>{iK.forEach(e=>e.reset()),t?.disconnect(),r(),o(),s(),i(),a(),l(),c(),u(),d(),_(),p(),h(),m.forEach(e=>e())})}function i9(e){return void 0!==window[e]}function ae(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class at{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e),i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let o=r.get(t);return o||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class an{constructor(){this.crossOriginIframeMirror=new at(s7),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ar{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new at(s7),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new at(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let n=iY(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case iz.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:iz.IncrementalSnapshot,data:{source:iW.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case iz.Meta:case iz.Load:case iz.DomContentLoaded:break;case iz.Plugin:return t;case iz.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iz.IncrementalSnapshot:switch(t.data.source){case iW.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iW.Drag:case iW.TouchMove:case iW.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iW.ViewportResize:return!1;case iW.MediaInteraction:case iW.MouseInteraction:case iW.Scroll:case iW.CanvasMutation:case iW.Input:return this.replaceIds(t.data,e,["id"]),t;case iW.StyleSheetRule:case iW.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case iW.Font:return t;case iW.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case iW.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(let o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===sW.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ao{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class as{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!sH(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=i1({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(i5({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),iB(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(i8({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=iY(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(iw(e.prototype,"attachShadow",function(e){return function(r){let o=e.call(this,r);return this.shadowRoot&&iP(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var ai="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aa="u"({rule:sY(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ad{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(){for(var e=arguments.length,t=Array(e),n=0;n{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let 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)}let a_=new sX;function ap(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{emit:n,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:_=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:f,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:b,maskInputFn:v,maskTextFn:x,maxCanvasSize:C=null,packFn:E,sampling:I={},dataURLOptions:L={},mousemoveWait:T,recordDOM:M=!0,recordCanvas:N=!1,recordCrossOriginIframes:j=!1,recordAfter:$="DOMContentLoaded"===t.recordAfter?t.recordAfter:"load",userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:P=!1,plugins:O,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:B=new Set([]),errorHandler:z,onMutation:W,getCanvasManager:F}=t;w=z;let H=!j||window.parent===window,U=!1;if(!H)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(H&&!n)throw Error("emit function is required");if(!H&&!U)return()=>{};void 0!==T&&void 0===I.mousemove&&(I.mousemove=T),a_.reset();let Y=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},X=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if("NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),!Node.prototype.contains){var t=this;Node.prototype.contains=function(){for(var e=arguments.length,n=Array(e),r=0;r{for(let t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!U&&(e=E(e)),e};k=(t,s)=>{if(t.timestamp=ik(),iK[0]?.isFrozen()&&t.type!==iz.FullSnapshot&&(t.type!==iz.IncrementalSnapshot||t.data.source!==iW.Mutation)&&iK.forEach(e=>e.unfreeze()),H)n?.(Q(t),s);else if(U){let e={type:"rrweb",event:Q(t),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(t.type===iz.FullSnapshot)e=t,q=0;else if(t.type===iz.IncrementalSnapshot){if(t.data.source===iW.Mutation&&t.data.isAttachIframe)return;q++;let n=o&&q>=o,s=r&&e&&t.timestamp-e.timestamp>r;(n||s)&&er(!0)}};let V=e=>{k({type:iz.IncrementalSnapshot,data:{source:iW.Mutation,...e}})},J=e=>k({type:iz.IncrementalSnapshot,data:{source:iW.Scroll,...e}}),Z=e=>k({type:iz.IncrementalSnapshot,data:{source:iW.CanvasMutation,...e}}),G=new au({mutationCb:V,adoptedStyleSheetCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.AdoptedStyleSheet,...e}})}),K="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new an:new ar({mirror:a_,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:j,wrappedEmit:k});for(let e of O||[])e.getMirror&&e.getMirror({nodeMirror:a_,crossOriginIframeMirror:K.crossOriginIframeMirror,crossOriginIframeStyleMirror:K.crossOriginIframeStyleMirror});let ee=new ad,et=function(e,t){try{return e?e(t):new ac}catch{return console.warn("Unable to initialize CanvasManager"),new ac}}(F,{mirror:a_,win:window,mutationCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.CanvasMutation,...e}}),recordCanvas:N,blockClass:s,blockSelector:i,unblockSelector:a,maxCanvasSize:C,sampling:I.canvas,dataURLOptions:L,errorHandler:z}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ao:new as({mutationCb:V,scrollCb:J,bypassOptions:{onMutation:W,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:_,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:Y,dataURLOptions:L,maskAttributeFn:b,maskTextFn:x,maskInputFn:v,recordCanvas:N,inlineImages:P,sampling:I,slimDOMOptions:X,iframeManager:K,stylesheetManager:G,canvasManager:et,keepIframeSrcFn:D,processedNodeManager:ee,ignoreCSSAttributes:B},mirror:a_}),er=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!M)return;k({type:iz.Meta,data:{href:window.location.href,width:iE(),height:iC()}},e),G.reset(),en.init(),iK.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new sX,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:_=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:f,maskInputFn:g,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:v,onSerialize:x,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:S,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:L=new Set([])}=t||{};return ig(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:f,maskInputFn:g,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:b,inlineImages:_,recordCanvas:p,preserveWhiteSpace:v,onSerialize:x,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:S,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:I,newlyAddedElement:!1,ignoreCSSAttributes:L})}(document,{mirror:a_,blockClass:s,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:_,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:Y,maskAttributeFn:b,maskInputFn:v,maskTextFn:x,slimDOM:X,dataURLOptions:L,recordCanvas:N,inlineImages:P,onSerialize:e=>{iN(e,a_)&&K.addIframe(e),ij(e,a_)&&G.trackLinkElement(e),i$(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{K.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,n)=>{let{width:r,height:o}=n;V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${o}px`}}}]})},keepIframeSrcFn:D,ignoreCSSAttributes:B});if(!t)return console.warn("Failed to snapshot the document");k({type:iz.FullSnapshot,data:{node:t,initialOffset:iS(window)}}),iK.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,a_.getId(document))};S=er;try{let e=[],t=e=>iG(i7)({onMutation:W,mutationCb:V,mousemoveCb:(e,t)=>k({type:iz.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.ViewportResize,...e}}),inputCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.Input,...e}}),mediaInteractionCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.MediaInteraction,...e}}),styleSheetRuleCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.StyleSheetRule,...e}}),styleDeclarationCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>k({type:iz.IncrementalSnapshot,data:{source:iW.Font,...e}}),selectionCb:e=>{k({type:iz.IncrementalSnapshot,data:{source:iW.Selection,...e}})},customElementCb:e=>{k({type:iz.IncrementalSnapshot,data:{source:iW.CustomElement,...e}})},blockClass:s,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:_,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:Y,inlineStylesheet:m,sampling:I,recordDOM:M,recordCanvas:N,inlineImages:P,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:b,maskInputFn:v,maskTextFn:x,keepIframeSrcFn:D,blockSelector:i,unblockSelector:a,slimDOMOptions:X,dataURLOptions:L,mirror:a_,iframeManager:K,stylesheetManager:G,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:B,plugins:O?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>k({type:iz.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});K.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(iy("DOMContentLoaded",()=>{k({type:iz.DomContentLoaded,data:{}}),"DOMContentLoaded"===$&&n()})),e.push(iy("load",()=>{k({type:iz.Load,data:{}}),"load"===$&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),S=void 0,w=void 0}}catch(e){console.warn(e)}}function ah(e){return e>0x2540be3ff?e:1e3*e}function am(e){return e>0x2540be3ff?e/1e3:e}function af(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:iz.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:tO(t,10,1e3)}}),"console"===t.category)))}function ag(e){return e.closest("button,a")||e}function ay(e){let t=ab(e);return t&&t instanceof Element?ag(t):t}function ab(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}ap.mirror=a_,ap.takeFullSnapshot=function(e){if(!S)throw Error("please take full snapshot after start recording");S(e)},(on=oo||(oo={}))[on.NotStarted=0]="NotStarted",on[on.Running=1]="Running",on[on.Stopped=2]="Stopped";let av=new Set([iW.Mutation,iW.StyleSheetRule,iW.StyleDeclaration,iW.AdoptedStyleSheet,iW.CanvasMutation,iW.Selection,iW.MediaInteraction]);class ax{constructor(e,t,n=af){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=ak()},C||(C=[],es(M,"open",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;re())}catch{}return e.apply(M,n)}})),C.push(e),()=>{let t=C?C.indexOf(e):-1;t>-1&&C.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r,o;if(n=t,r=this._ignoreSelector,!aw.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r)||!((o=e).data&&"number"==typeof o.data.nodeId&&o.timestamp))return;let s={timestamp:am(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===s.node&&1>Math.abs(e.timestamp-s.timestamp))||(this._clicks.push(s),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=am(e)}registerScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=am(e)}registerClick(e){let t=ag(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=ak();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:o,clickBreadcrumb:s}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:M.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,i);return}if(o>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:M.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=r4(()=>this._checkClicks(),1e3)}}let aw=["A","BUTTON","INPUT"];function ak(){return Date.now()/1e3}function aS(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var aC=((or=aC||{})[or.Document=0]="Document",or[or.DocumentType=1]="DocumentType",or[or.Element=2]="Element",or[or.Text=3]="Text",or[or.CDATA=4]="CDATA",or[or.Comment=5]="Comment",or);let aE=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function aI(e,t){let n=ap.mirror.getId(e),r=n&&ap.mirror.getNode(n),o=r&&ap.mirror.getMeta(r),s=o&&o.type===aC.Element?o:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===aC.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(aE.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(s.attributes)}}:{}}}let aL={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:aN(s),end:aN(o),name:r,data:{size:c,statusCode:l,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:o}=e,s=aN(o);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:_,startTime:p,transferSize:h,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:aN(p),end:aN(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:_}}}};function aT(e,t){return n=>{let{metric:r}=n;t.replayPerformanceEntries.push(e(r))}}function aM(e){let t=aL[e.entryType];return t?t(e):null}function aN(e){return((eP()||M.performance.timeOrigin)+e)/1e3}function aj(e){let t=e.entries[e.entries.length-1];return aA(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function a$(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=ap.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return aA(e,"cumulative-layout-shift",n,t)}function aR(e){let t=e.entries[e.entries.length-1];return aA(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function aA(e,t,n,r){let o=e.value,s=e.rating,i=aN(o);return{type:"web-vital",name:t,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map(e=>ap.mirror.getId(e)):void 0,attributions:r}}}let aP="u"1&&void 0!==arguments[1]?arguments[1]:"info";rd({category:"console",data:{logger:"replay"},level:t,message:`${aD}${e}`},{level:t})}let az=(E=!1,I=!1,L={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{E=!!e.captureExceptions,I=!!e.traceInternals}},aP?(aO.forEach(e=>{L[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r1?t-1:0),r=1;raB(t[0]),0)}):aO.forEach(e=>{L[e]=()=>void 0}),L);class aW extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class aF{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new aW;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?ah(e):null}}class aH{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",n=>{let{data:r}=n;r.success?e():(aP&&az.warn("Received worker message with unsuccessful status",r),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{aP&&az.warn("Failed to load Replay compression worker",e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){aP&&az.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,o)=>{let s=t=>{let{data:i}=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",s),!i.success){aP&&az.error("Error in compression worker: ",i.response),o(Error("Error in compression worker"));return}r(i.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class aU{constructor(e){this._worker=new aH(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=ah(e.timestamp);(!this._earliestTimestamp||t2e7)?Promise.reject(new aW):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{aP&&az.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class aY{constructor(e){this._fallback=new aF,this._compression=new aU(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){aP&&az.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){aP&&az.exception(e,"Failed to add events when switching buffers.")}}}function aX(){try{return"sessionStorage"in M&&!!M.sessionStorage}catch{return!1}}function aq(e){return void 0!==e&&Math.random()1&&void 0!==arguments[1]?arguments[1]:{},s=aV({sampled:aq(t)?"session":!!n&&"buffer",previousSessionId:o});return r&&aQ(s),s}function aZ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function aG(e,t){let{maxReplayDuration:n,sessionIdleExpire:r,targetTime:o=Date.now()}=t;return aZ(e.started,n,o)||aZ(e.lastActivity,r,o)}function aK(e,t){let{sessionIdleExpire:n,maxReplayDuration:r}=t;return!!aG(e,{sessionIdleExpire:n,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function a0(e,t){let{sessionIdleExpire:n,maxReplayDuration:r,previousSessionId:o}=e,s=t.stickySession&&function(){if(!aX())return null;try{let e=M.sessionStorage.getItem(sO);if(!e)return null;let t=JSON.parse(e);return aP&&az.infoTick("Loading existing session"),aV(t)}catch{return null}}();return s?aK(s,{sessionIdleExpire:n,maxReplayDuration:r})?(aP&&az.infoTick("Session in sessionStorage is expired, creating new one..."),aJ(t,{previousSessionId:s.id})):s:(aP&&az.infoTick("Creating new session"),aJ(t,{previousSessionId:o}))}function a1(e,t,n){return!!a2(e,t)&&(a5(e,t,n),!0)}async function a5(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let s=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===iz.Custom)return t(e)}catch(e){return aP&&az.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,s.beforeAddRecordingEvent);if(!i)return;return await r.addEvent(i)}catch(s){let t=s&&s instanceof aW,n=eG();if(n&&n.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function a2(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=ah(t.timestamp);return!(n+e.timeouts.sessionIdlePausee.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(aP&&az.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function a4(e){return"transaction"===e.type}function a3(e){return"feedback"===e.type}function a6(e){return!!e.category}function a8(){let e=eV().getPropagationContext().dsc;e&&delete e.replay_id;let t=tT();if(t){let e=tA(t);delete e.replay_id}}function a7(e,t){return t.map(t=>{let{type:n,start:r,end:o,name:s,data:i}=t,a=e.throttledAddEvent({type:iz.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:o,data:i}}});return"string"==typeof a?Promise.resolve(null):a})}function a9(e,t){e.isEnabled()&&null!==t&&!function(e,t){var n,r,o,s,i;let a,l,c;if(aP&&e.getOptions()._experiments.traceInternals)return!1;return n=eG(),a=n?.getDsn(),l=n?.getOptions().tunnel,r=t,o=a,!(!(c=rh(r))||rp(c))&&!!o&&c.host.includes(o.host)&&/(^|&|\?)sentry_key=/.test(c.search)||(s=t,!!(i=l)&&sP(s)===sP(i))}(e,t.name)&&e.addUpdate(()=>(a7(e,[t]),!0))}function le(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=sx(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function lt(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function ln(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function lr(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:s,statusCode:i,request:a,response:l}}}function lo(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ls(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:o,warnings:s}=function(e){var t;let n,r;if(!e||"string"!=typeof e)return{body:e};let o=e.length>15e4,s=(n=(t=e)[0],r=t[t.length-1],"["===n&&"]"===r||"{"===n&&"}"===r);if(o){let t=e.slice(0,15e4);return s?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(s)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,s?.length&&(r._meta={warnings:s}),r}function li(e,t){return Object.entries(e).reduce((n,r)=>{let[o,s]=r,i=o.toLowerCase();return t.includes(i)&&e[o]&&(n[i]=s),n},{})}function la(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(M.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function ll(e,t,n){try{let r=await lc(e,t,n),o=lr("resource.fetch",r);a9(n.replay,o)}catch(e){aP&&az.exception(e,"Failed to capture fetch breadcrumb")}}async function lc(e,t,n){var r,o;let s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:_}=e.data,p=(r=n.networkDetailAllowUrls,eE(la(l),r)&&(o=n.networkDetailDenyUrls,!eE(la(l),o)));return{startTimestamp:i,endTimestamp:a,url:l,method:c,statusCode:u,request:p?function(e,t,n){var r,o;let{networkCaptureBodies:s,networkRequestHeaders:i}=e,a=t?(r=t,o=i,1===r.length&&"string"!=typeof r[0]?lp(r[0],o):2===r.length?lp(r[1],o):{}):{};if(!s)return ls(a,n,void 0);let[l,c]=sw(sk(t),az),u=ls(a,n,l);return c?ln(u,c):u}(n,t.input,d):lo(d),response:await lu(p,n,t.response,_)}}async function lu(e,t,n,r){let{networkCaptureBodies:o,networkResponseHeaders:s}=t;if(!e&&void 0!==r)return lo(r);let i=n?l_(n.headers,s):{};if(!n||!o&&void 0!==r)return ls(i,r,void 0);let[a,l]=await ld(n),c=function(e,t){let{networkCaptureBodies:n,responseBodySize:r,captureDetails:o,headers:s}=t;try{let t=e?.length&&void 0===r?le(e):r;if(!o)return lo(t);if(n)return ls(s,t,e);return ls(s,t,void 0)}catch(e){return aP&&az.exception(e,"Failed to serialize response body"),ls(s,r,void 0)}}(a,{networkCaptureBodies:o,responseBodySize:r,captureDetails:e,headers:i});return l?ln(c,l):c}async function ld(e){let t=function(e){try{return e.clone()}catch(e){aP&&az.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var n;return[await (n=t,new Promise((e,t)=>{let r=r4(()=>t(Error("Timeout while trying to read response body")),500);lh(n).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(r))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return aP&&az.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return aP&&az.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function l_(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function lp(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?l_(n,t):Array.isArray(n)?{}:li(n,t):{}}async function lh(e){return await e.text()}async function lm(e,t,n){try{let r=function(e,t,n){var r,o;let s=Date.now(),{startTimestamp:i=s,endTimestamp:a=s,input:l,xhr:c}=t,{url:u,method:d,status_code:_=0,request_body_size:p,response_body_size:h}=e.data;if(!u)return null;if(!c||(r=n.networkDetailAllowUrls,!eE(la(u),r))||(o=n.networkDetailDenyUrls,eE(la(u),o))){let e=lo(p);return{startTimestamp:i,endTimestamp:a,url:u,method:d,statusCode:_,request:e,response:lo(h)}}let m=c[rv],f=m?li(m.request_headers,n.networkRequestHeaders):{},g=li(sS(c),n.networkResponseHeaders),[y,b]=n.networkCaptureBodies?sw(l,az):[void 0],[v,x]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var n=e.response,r=e.responseType;try{if("string"==typeof n)return[n];if(n instanceof Document)return[n.body.outerHTML];if("json"===r&&n&&"object"==typeof n)return[JSON.stringify(n)];if(!n)return[void 0]}catch(e){return aP&&az.exception(e,"Failed to serialize body",n),[void 0,"BODY_PARSE_ERROR"]}return aP&&az.log("Skipping network body because of body type",n),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return aP&&az.warn("Failed to get xhr response body",...t),[void 0]}(c):[void 0],w=ls(f,p,y),k=ls(g,h,v);return{startTimestamp:i,endTimestamp:a,url:u,method:d,statusCode:_,request:b?ln(w,b):w,response:x?ln(k,x):k}}(e,t,n),o=lr("resource.xhr",r);a9(n.replay,o)}catch(e){aP&&az.exception(e,"Failed to capture xhr breadcrumb")}}async function lf(e){try{return Promise.all(a7(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(M.performance.memory)]))}catch{return[]}}let lg=M.navigator;async function ly(e){let{client:t,scope:n,replayId:r,event:o}=e,s={event_id:r,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",o,s);let i=await t9(t.getOptions(),o,s,n,t,eJ());if(!i)return null;t.emit("postprocessEvent",i,s),i.platform=i.platform||"javascript";let a=t.getSdkMetadata(),{name:l,version:c,settings:u}=a?.sdk||{};return i.sdk={...i.sdk,name:l||"sentry.javascript.unknown",version:c||"0.0.0",settings:u},i}async function lb(e){var t;let n,{recordingData:r,replayId:o,segmentId:s,eventContext:i,timestamp:a,session:l}=e,c=function(e){let t,{recordingData:n,headers:r}=e,o=`${JSON.stringify(r)} `;if("string"==typeof n)t=`${o}${n}`;else{let e=new TextEncoder().encode(o);(t=new Uint8Array(e.length+n.length)).set(e),t.set(n,e.length)}return t}({recordingData:r,headers:{segment_id:s}}),{urls:u,errorIds:d,traceIds:_,initialTimestamp:p}=i,h=eG(),m=eV(),f=h?.getTransport(),g=h?.getDsn();if(!h||!f||!g||!l.sampled)return Promise.resolve({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:a/1e3,error_ids:d,trace_ids:_,urls:u,replay_id:o,segment_id:s,replay_type:l.sampled},b=await ly({scope:m,client:h,replayId:o,event:y});if(!b)return h.recordDroppedEvent("event_processor","replay"),aP&&az.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete b.sdkProcessingMetadata;let v=(t=h.getOptions().tunnel,tD(tH(b,tF(b),t,g),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof c?new TextEncoder().encode(c).length:c.length},c]]));try{n=await f.send(v)}catch(t){let e=Error(sD);try{e.cause=t}catch{}throw e}let x=nT({},n);if(nL(x,"replay"))throw new lx(x);if("number"==typeof n.statusCode&&(n.statusCode<200||n.statusCode>=300))throw new lv(n.statusCode);return n}class lv extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class lx extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class lw extends Error{constructor(){super("Session is too long, not sending replay")}}async function lk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3},{recordingData:n,onError:r}=e;if(n.length)try{return await lb(e),!0}catch(n){if(n instanceof lv||n instanceof lx)throw n;if(nr("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${sD} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{r4(async()=>{try{await lk(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let lS="__THROTTLED";class lC{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},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=t,this._options=e,this._debouncedFlush=function(e,t,n){return function(e,t,n){let r,o,s,i=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function l(){return c(),r=e()}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function u(){return o&&clearTimeout(o),o=a(l,t),i&&void 0===s&&(s=a(l,i)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==s?l():r},u}(e,t,{...n,setTimeoutImpl:r4})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,o=!1;return function(){let s;for(var i=arguments.length,a=Array(i),l=0;l{te+t,0)>=t){let e=o;return o=!0,e?"__SKIPPED":lS}o=!1;let u=r.get(c)||0;return r.set(c,u+1),e(...a)}}((e,t)=>a2(this,e)?a5(this,e,t):Promise.resolve(null),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new ax(this,o)),aP){const t=e._experiments;az.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===M.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=aS({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=aS({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:o,altKey:s,key:i,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!i)return null;let l=n||o||s,c=1===i.length;if(!l&&c)return null;let u=V(a,{maxStringLength:200})||"",d=aI(a,u);return aS({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:o,altKey:s,key:i}})}(t);n&&af(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){aP&&az.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){aP&&az.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",aP&&az.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){aP&&az.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){aP&&az.log("Buffering is in progress, call `flush()` to save the replay");return}aP&&az.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=a0({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){aP&&az.log("Buffering is in progress, call `flush()` to save the replay");return}aP&&az.infoTick("Starting replay in buffer mode");let e=a0({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,n=this._canvas;this._stopRecording=ap({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession()){aP&&az.warn("Received replay event after session expired.");return}let o=r||!t;t=!0,e.clickDetector&&function(e,t){try{var n;if(n=t,3!==n.type)return;let{source:r}=t.data;if(av.has(r)&&e.registerMutation(t.timestamp),r===iW.Scroll&&e.registerScroll(t.timestamp),t.data.source===iW.MouseInteraction){let{type:n,id:r}=t.data,o=ap.mirror.getNode(r);o instanceof HTMLElement&&n===iF.Click&&e.registerClick(o)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!a1(e,n,o))return!0;if(!o)return!1;let t=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;a1(e,(t=e.getOptions(),{type:iz.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&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(aP&&az.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&aQ(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(lg?.userAgent??"")||/Macintosh/i.test(lg?.userAgent??"")&&lg?.maxTouchPoints&&lg?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop(){let{forceFlush:e=!1,reason:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{aP&&az.log(`Stopping Replay${t?` triggered by ${t}`:""}`),a8(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(aX())try{M.sessionStorage.removeItem(sO)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),aP&&az.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),aP&&az.log("Resuming replay"))}async sendBufferedReplayOrFlush(){let{continueRecording:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();aP&&az.log("Converting buffer to session"),await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&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"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}checkAndHandleExpiredSession(){return this._lastActivity&&aZ(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${M.location.pathname}${M.location.hash}${M.location.search}`,t=`${M.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===lS){let e=aS({category:"replay.throttled"});this.addUpdate(()=>!a1(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||tT(),t=e&&tL(e),n=(t&&tx(t).data||{})[eK];if(t&&n&&["route","custom"].includes(n))return tx(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(e){let{useCompression:t,workerUrl:n}=e;if(t&&window.Worker){let e=function(e){try{let t=e||function(){if("u">1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s>f]=l}else for(o=new n(i),s=0;s>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;sd&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<e))break;w+=m-(1<>=y;w>0;){var M=o[s].s;p[M]=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;oi.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});']),URL.createObjectURL(e)}return""}();if(!t)return;aP&&az.log(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new aY(n)}catch(e){aP&&az.exception(e,"Failed to create compression worker")}}(n);if(e)return e}return aP&&az.log("Using simple buffer"),new aF}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=a0({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!aK(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{M.document.addEventListener("visibilitychange",this._handleVisibilityChange),M.addEventListener("blur",this._handleWindowBlur),M.addEventListener("focus",this._handleWindowFocus),M.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t;let n,r=eG();rg(t=>{var n,r;if(!e.isEnabled())return;let o=function(e){let{target:t,message:n}=function(e){let t,n="click"===e.name,r=null;try{r=n?ay(e.event):ab(e.event),t=V(r,{maxStringLength:200})||""}catch{t=""}return{target:r,message:t}}(e);return aS({category:`ui.${e.name}`,...aI(t,n)})}(t);if(!o)return;let s="click"===t.name,i=s?t.event:void 0;s&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&(n=e.clickDetector,r=ay(t.event),n.handleClick(o,r)),af(e,o)}),rk(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(a7(e,[n]),!1)))}),(n=eG())&&n.on("beforeAddBreadcrumb",t=>(function(e,t){var n;if(!e.isEnabled()||!a6(t))return;let r=(n=t,!a6(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui.")?null:"console"===n.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return aS(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=tO(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return aS({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(n):aS(n));r&&af(e,r)})(e,t));let o=eG();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:r,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:r,networkRequestHeaders:s,networkResponseHeaders:i};o&&o.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,o,s,i;r=t,"xhr"===r.category&&(o=n,o?.xhr)&&(!function(e,t){let{xhr:n,input:r}=t;if(!n)return;let o=le(r),s=n.getResponseHeader("content-length")?lt(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return le(n)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}(t,n),lm(t,n,e)),s=t,"fetch"===s.category&&(i=n,i?.response)&&(!function(e,t){let{input:n,response:r}=t,o=le(n?sk(n):void 0),s=r?lt(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==s&&(e.data.response_body_size=s)}(t,n),ll(t,n,e))}catch(e){aP&&az.exception(e,"Error when enriching network breadcrumb")}})(a,e,t))}catch{}t=Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!a4(t)&&!a3(t))return t;if(!e.checkAndHandleExpiredSession())return a8(),t;if(a3(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:iz.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&n.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return aP&&az.log("Ignoring error from rrweb internals",t),null;let r="buffer"===e.recordingMode&&t.message!==sD&&!!t.exception&&!t.type&&aq(e.getOptions().errorSampleRate);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&aQ(t)}return t},{id:"Replay"}),eJ().addEventProcessor(t),r&&(r.on("beforeSendEvent",t=>{var n,r;let o;e.isEnabled()&&!t.type&&(n=e,r=t,o=r.exception?.values?.[0]?.value,"string"==typeof o&&(o.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||o.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&af(n,aS({category:"replay.hydrate-error",data:{url:J()}})))}),r.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!a4(t))return;let r=n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(a4(t)){var o,s;let n;return void(o=e,s=t,n=o.getContext(),s.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(s.contexts.trace.trace_id))}!function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&r4(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n(e){let{entries:n}=e;n.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(oG(e,n))}),r.push(oJ(aT(aj,e)),oV(aT(a$,e)),oZ(aT(aR,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{M.document.removeEventListener("visibilitychange",this._handleVisibilityChange),M.removeEventListener("blur",this._handleWindowBlur),M.removeEventListener("focus",this._handleWindowFocus),M.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||aG(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){aP&&az.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:iz.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(aM).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(a7(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new lw;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let o=await this.eventBuffer.finish();await lk({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=eG();e&&e.recordDroppedEvent(t instanceof lx?"ratelimit_backoff":t instanceof lw?"invalid":"send_error","replay")}}}async _flush(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){aP&&az.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=nthis._options.maxReplayDuration+5e3;if(r||o){aP&&az.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),r&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&aP&&az.log("Flushing initial segment without checkout.");let i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&aQ(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,s=r&&n>r;if(n>o||s){let e=aS({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function lE(e,t){return[...e,...t].join(",")}let lI='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lL=["content-length","content-type","accept"],lT=Symbol.for("sentry__originalRequestBody"),lM=!1,lN=!1;class lj{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:_=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:f=[],networkCaptureBodies:g=!0,networkRequestHeaders:y=[],networkResponseHeaders:b=[],mask:v=[],maskAttributes:x=["title","placeholder","aria-label"],unmask:w=[],block:k=[],unblock:S=[],ignore:C=[],maskFn:E,beforeAddRecordingEvent:I,beforeErrorSampling:L,onError:T,attachRawBodyFromRequest:M=!1}={}){this.name="Replay";const N=function(e){let{mask:t,unmask:n,block:r,unblock:o,ignore:s}=e;return{maskTextSelector:lE(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:lE(n,[]),blockSelector:lE(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:lE(o,[]),ignoreSelector:lE(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:v,unmask:w,block:k,unblock:S,ignore:C});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>(function(e){let{el:t,key:n,maskAttributes:r,maskAllText:o,privacyOptions:s,value:i}=e;return!o||s.unmaskTextSelector&&t.matches(s.unmaskTextSelector)?i:r.includes(n)||"value"===n&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i})({maskAttributes:x,maskAllText:l,privacyOptions:N,key:e,value:t,el:n}),...N,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,36e5),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:_,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:f,networkCaptureBodies:g,networkRequestHeaders:l$(y),networkResponseHeaders:l$(b),beforeAddRecordingEvent:I,beforeErrorSampling:L,onError:T,attachRawBodyFromRequest:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${lI}`:lI,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&ou())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lM}set _isInitialized(e){lM=e}afterAllSetup(e){ou()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=o&&(r.sessionSampleRate=o),null!=s&&(r.errorSampleRate=s),r);this._replay=new lC({options:i,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function l$(e){return[...lL,...e.map(e=>e.toLowerCase())]}var lR=e.i(925521),lA=e.i(831082);e.s(["default",0,e=>{let{children:t}=e;return(0,os.useEffect)(()=>{let e,t,n=lA.env.NEXT_PUBLIC_SENTRY_DSN;!lR.IS_DEV&&n&&(nq(t={...{dsn:n,integrations:[sj(),new lj(e)],tracesSampleRate:.1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1}},"react"),nr("react",{version:os.version}),function(){var e,t;let n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=!o.skipBrowserExtensionCheck&&!!function(){if(void 0===M.window||M.nw)return!1;let e=M.chrome||M.browser;if(!e?.runtime?.id)return!1;let t=J();return!(M===M.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`)))}()&&(rC&&ee(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),i=null==o.defaultIntegrations?[nh(),{name:"FunctionToString",setupOnce(){l=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=eV().getScopeData(),n=eJ().getScopeData(),r=t.conversationId||n.conversationId;r&&e.setAttribute("gen_ai.conversation.id",r)})}},rL(),rE(),rB(),rY(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,r,o,s,i,a;let l,c,u,d;if(t=e,(r=n)&&(o=t,s=r,l=o.message,c=s.message,(l||c)&&(!l||c)&&(l||!c)&&l===c&&nb(o,s)&&ny(o,s)&&1||(i=t,a=r,u=nv(a),d=nv(i),u&&d&&u.type===d.type&&u.value===d.value&&nb(i,a)&&ny(i,a))))return R&&eo.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return n=e}},{name:"HttpContext",preprocessEvent(e){if(!M.navigator&&!M.location&&!M.document)return;let t=n3(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}},{name:"CultureContext",preprocessEvent(e){let t=function(){try{let e=M.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}},rj()]:o.defaultIntegrations,a={...o,enabled:!s&&o.enabled,stackParser:Array.isArray(e=o.stackParser||rK)?eg(...e):e,integrations:function(e){let t,n,r=e.defaultIntegrations||[],o=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(o))t=[...r,...o];else if("function"==typeof o){let e=o(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:o.integrations,defaultIntegrations:i}),transport:o.transport||r3};!0===a.debug&&(R?eo.enable():ee(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),eV().update(a.initialScope),t=r=new n6(a),eV().setClient(t),r.init()}(t))},[]),t}],570303)},385772,e=>{"use strict";var t=e.i(893936),n=e.i(942347),r=e.i(168014);function o(){let e=(0,t.usePathname)();return(0,n.useEffect)(()=>{let e;r.basePath&&(e=e=>{let t=new URL(e.src);t.pathname.slice(0,r.basePath.length)===r.basePath||t.href.startsWith("blob:")||t.href.startsWith("data:")||t.href.startsWith("http")||(t.pathname=r.basePath+t.pathname,e.src=t.toString())},new MutationObserver(t=>{for(let n of t)"childList"===n.type?n.addedNodes.forEach(t=>{"IMG"===t.tagName&&e(t)}):"attributes"===n.type&&"IMG"===n.target.tagName&&"src"===n.attributeName&&e(n.target)}).observe(document.body,{childList:!0,attributes:!0,subtree:!0,attributeFilter:["src"]}))},[e]),null}e.s(["default",()=>o])}]);