const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/Index-_OMrzGzk.js","assets/js/ui-vendor-D7Fh8Ky-.js","assets/js/react-vendor-1IeSgoWF.js","assets/js/Header-REgKydzb.js","assets/js/logo-oficial-BW9aD_Pb.js","assets/js/icons-DJUmn7CM.js","assets/js/Footer-DMQjrSzU.js","assets/js/useScrollAnimation-7FAuyZQp.js","assets/js/SEOHead-alYn8TWl.js","assets/js/LazySection-Dhn8ncem.js","assets/js/supabase-vendor-Dr45T5gF.js","assets/js/NotFound-Cc_LtFs3.js","assets/js/card-D_Z8o0D5.js","assets/js/WhatsAppFormDialog-D2mgkH0d.js","assets/js/dialog-D4If9lg-.js","assets/js/input-CQR15hV0.js","assets/js/label-BFIgG7bz.js","assets/js/validators-B6ObMgjW.js","assets/js/useMutation-Cf5wvX-B.js","assets/js/registrarLead-Dw0HT5Fo.js","assets/js/Empresas-CzoyEzr3.js","assets/js/SEOBreadcrumb-fS-g4a0Y.js","assets/js/Assistencia24h-BRJKd67H.js","assets/js/Testimonials-fHIyCiGZ.js","assets/js/useQuery-Cj6JAPrq.js","assets/js/badge-D4henu3j.js","assets/js/BlogFloatingCTA-IB2xktn-.js","assets/js/accordion-d3aJDhJF.js","assets/js/Rastreamento-BBOHxnOw.js","assets/js/FrotasROICTA-DtkEJaws.js","assets/js/Seguros-mCklgLGv.js","assets/js/HubComplianceFooter-BJ3vld26.js","assets/js/GestaoFrotas-Cj_Ycyd6.js","assets/js/ContactFormDialog-BZcyt-K2.js","assets/js/CalculadoraRoiFrota-fDeS41l9.js","assets/js/FloatingWhatsAppButton-Bkp6ZnkM.js","assets/js/Suporte-DE-Lk7lI.js","assets/js/FacaParte-BfeHur8o.js","assets/js/select-DXdDgD3M.js","assets/js/carousel-BewhJPLN.js","assets/js/Blog-CoJPaCRJ.js","assets/js/BlogPost-Be6KcMw6.js","assets/js/AppDownload-CNkDVBlw.js","assets/js/blur-D_WzlEf2.js","assets/css/blur-DOfe2hmq.css","assets/js/app-screenshot-new-BdNMJL0p.js","assets/js/Glossario-C60xDGfN.js","assets/js/Afiliados-cmdZ_sKO.js","assets/js/textarea-CcI6uPoK.js","assets/js/Auth-CjkQiuYp.js","assets/js/tabs-DzZ2LIfO.js","assets/js/form-vendor-CmPuvPxq.js","assets/js/Install-BqyXKHr2.js","assets/js/Franquia-CfVzloaF.js","assets/js/FranquiaObrigado-VNh7jziU.js","assets/js/GuinchoCity-CCs8kYp5.js","assets/js/cityTldrVariants-DeO3WDy_.js","assets/js/alert-CU9csBcF.js","assets/js/TowRequestForm-BPjRhSa1.js","assets/js/ChaveiroCity-BH3KqEHw.js","assets/js/Chaveiro-Bq2aOnwt.js","assets/js/Guincho-Tq4dEqsK.js","assets/js/Reboque-xVrdo-MW.js","assets/js/ReboqueCity-UG3k-eZk.js","assets/js/Insta-SdJKP9z-.js","assets/js/ExternalRedirect-CnGVzkgN.js","assets/js/LandingPageApp-BZmSuJkG.js","assets/js/AppHub-4ql9pl3i.js","assets/js/AdminLayout-Dju11P_V.js","assets/js/separator-DTBb5qub.js","assets/js/Dashboard-fx5EozTf.js","assets/js/Articles-DBP1_yhw.js","assets/js/table-B1grrn8x.js","assets/js/pt-BR-BAHmWZhJ.js","assets/js/Images-DR31Gbo7.js","assets/js/progress-zK01-i9m.js","assets/js/Settings-CMKbF_0r.js","assets/js/TowRequests-bS4jqa5B.js","assets/js/CityImagesGenerator-kniM5v7O.js","assets/js/CityBatchGenerator-C1tRsp7U.js","assets/js/Users-DFfCKZnN.js","assets/js/ScriptGenerator-DYiH3OP3.js","assets/js/ImageGenerator-DGB03jD7.js","assets/js/http-BMbBvbEz.js","assets/js/LocksmithRequests-BbsV-Z4O.js","assets/js/Reviews-gQnWZV2N.js","assets/js/BatchArticleGenerator-DFCPv2Mo.js","assets/js/CityPagesStats-CGXg_ArY.js","assets/js/Avaliar-Clezc3Dh.js","assets/js/PortalFuncionario-lhL0hvru.js","assets/js/PoliticaPrivacidade-ClkaTiaV.js","assets/js/PoliticaCancelamentoDevolucao--mSOE42y.js","assets/js/Status-PesY1UUq.js"])))=>i.map(i=>d[i]);
var e,t,n,r,o,s,a,i,c,l,u,d,p,h,f,m,g,y,v,b,x,w,_,E,j,S,k,T,C,O,P,A,R,D,I,N,M,$,L,q,F,U,z,B,H,V=Object.defineProperty,W=e=>{throw TypeError(e)},G=(e,t,n)=>((e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),K=(e,t,n)=>t.has(e)||W("Cannot "+n),Y=(e,t,n)=>(K(e,t,"read from private field"),n?n.call(e):t.get(e)),Q=(e,t,n)=>t.has(e)?W("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),J=(e,t,n,r)=>(K(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(K(e,t,"access private method"),n),Z=(e,t,n,r)=>({set _(r){J(e,t,r,n)},get _(){return Y(e,t,r)}});import{j as ee,P as te,c as ne,b as re,u as oe,B as se,d as ae,e as ie,f as ce,g as le,R as ue,h as de,i as pe,k as he,l as fe,D as me,C as ge,m as ye,A as ve,n as be,o as xe,p as we,S as _e}from"./ui-vendor-D7Fh8Ky-.js";import{a as Ee,r as je,R as Se,v as ke,g as Te,u as Ce,N as Oe,B as Pe,c as Ae,d as Re,e as De}from"./react-vendor-1IeSgoWF.js";import{X as Ie,L as Ne,R as Me,T as $e}from"./icons-DJUmn7CM.js";import{c as Le}from"./supabase-vendor-Dr45T5gF.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var qe=Ee;H=qe.createRoot,qe.hydrateRoot;const Fe={},Ue=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),n=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));r=Promise.allSettled(t.map(e=>{if((e=function(e){return"/"+e}(e))in Fe)return;Fe[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,n&&o.setAttribute("nonce",n),document.head.appendChild(o),t?new Promise((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)})};let ze=0;const Be=new Map,He=e=>{if(Be.has(e))return;const t=setTimeout(()=>{Be.delete(e),Ke({type:"REMOVE_TOAST",toastId:e})},1e6);Be.set(e,t)},Ve=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?He(n):e.toasts.forEach(e=>{He(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},We=[];let Ge={toasts:[]};function Ke(e){Ge=Ve(Ge,e),We.forEach(e=>{e(Ge)})}function Ye({...e}){const t=(ze=(ze+1)%Number.MAX_SAFE_INTEGER,ze.toString()),n=()=>Ke({type:"DISMISS_TOAST",toastId:t});return Ke({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||n()}}}),{id:t,dismiss:n,update:e=>Ke({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function Qe(){const[e,t]=je.useState(Ge);return je.useEffect(()=>(We.push(t),()=>{const e=We.indexOf(t);e>-1&&We.splice(e,1)}),[e]),{...e,toast:Ye,dismiss:e=>Ke({type:"DISMISS_TOAST",toastId:e})}}var Je=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Xe=je.forwardRef((e,t)=>ee.jsx(te.span,{...e,ref:t,style:{...Je,...e.style}}));Xe.displayName="VisuallyHidden";var Ze=Xe,et="ToastProvider",[tt,nt,rt]=re("Toast"),[ot]=ne("Toast",[rt]),[st,at]=ot(et),it=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[i,c]=je.useState(null),[l,u]=je.useState(0),d=je.useRef(!1),p=je.useRef(!1);return n.trim(),ee.jsx(tt.Provider,{scope:t,children:ee.jsx(st,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:l,viewport:i,onViewportChange:c,onToastAdd:je.useCallback(()=>u(e=>e+1),[]),onToastRemove:je.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};it.displayName=et;var ct="ToastViewport",lt=["F8"],ut="toast.viewportPause",dt="toast.viewportResume",pt=je.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=lt,label:o="Notifications ({hotkey})",...s}=e,a=at(ct,n),i=nt(n),c=je.useRef(null),l=je.useRef(null),u=je.useRef(null),d=je.useRef(null),p=oe(t,d,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),f=a.toastCount>0;je.useEffect(()=>{const e=e=>{var t;0!==r.length&&r.every(t=>e[t]||e.code===t)&&(null==(t=d.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),je.useEffect(()=>{const e=c.current,t=d.current;if(f&&e&&t){const n=()=>{if(!a.isClosePausedRef.current){const e=new CustomEvent(ut);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(dt);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},s=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",s),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[f,a.isClosePausedRef]);const m=je.useCallback(({tabbingDirection:e})=>{const t=i().map(t=>{const n=t.ref.current,r=[n,...Pt(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?t.reverse():t).flat()},[i]);return je.useEffect(()=>{const e=d.current;if(e){const t=t=>{var n,r,o;const s=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!s){const s=document.activeElement,a=t.shiftKey;if(t.target===e&&a)return void(null==(n=l.current)||n.focus());const i=m({tabbingDirection:a?"backwards":"forwards"}),c=i.findIndex(e=>e===s);At(i.slice(c+1))?t.preventDefault():a?null==(r=l.current)||r.focus():null==(o=u.current)||o.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[i,m]),ee.jsxs(se,{ref:c,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:f?void 0:"none"},children:[f&&ee.jsx(ft,{ref:l,onFocusFromOutsideViewport:()=>{At(m({tabbingDirection:"forwards"}))}}),ee.jsx(tt.Slot,{scope:n,children:ee.jsx(te.ol,{tabIndex:-1,...s,ref:p})}),f&&ee.jsx(ft,{ref:u,onFocusFromOutsideViewport:()=>{At(m({tabbingDirection:"backwards"}))}})]})});pt.displayName=ct;var ht="ToastFocusProxy",ft=je.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=at(ht,n);return ee.jsx(Xe,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null==(t=s.viewport)?void 0:t.contains(n))&&r()}})});ft.displayName=ht;var mt="Toast",gt=je.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...a}=e,[i,c]=ae({prop:r,defaultProp:o??!0,onChange:s,caller:mt});return ee.jsx(ie,{present:n||i,children:ee.jsx(bt,{open:i,...a,ref:t,onClose:()=>c(!1),onPause:le(e.onPause),onResume:le(e.onResume),onSwipeStart:ce(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(e.onSwipeMove,e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)}),onSwipeCancel:ce(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(e.onSwipeEnd,e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),c(!1)})})})});gt.displayName=mt;var[yt,vt]=ot(mt,{onClose(){}}),bt=je.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:a,onEscapeKeyDown:i,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:h,...f}=e,m=at(mt,n),[g,y]=je.useState(null),v=oe(t,e=>y(e)),b=je.useRef(null),x=je.useRef(null),w=o||m.duration,_=je.useRef(0),E=je.useRef(w),j=je.useRef(0),{onToastAdd:S,onToastRemove:k}=m,T=le(()=>{var e;(null==g?void 0:g.contains(document.activeElement))&&(null==(e=m.viewport)||e.focus()),a()}),C=je.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(j.current),_.current=(new Date).getTime(),j.current=window.setTimeout(T,e))},[T]);je.useEffect(()=>{const e=m.viewport;if(e){const t=()=>{C(E.current),null==l||l()},n=()=>{const e=(new Date).getTime()-_.current;E.current=E.current-e,window.clearTimeout(j.current),null==c||c()};return e.addEventListener(ut,n),e.addEventListener(dt,t),()=>{e.removeEventListener(ut,n),e.removeEventListener(dt,t)}}},[m.viewport,w,c,l,C]),je.useEffect(()=>{s&&!m.isClosePausedRef.current&&C(w)},[s,w,m.isClosePausedRef,C]),je.useEffect(()=>(S(),()=>k()),[S,k]);const O=je.useMemo(()=>g?Tt(g):null,[g]);return m.viewport?ee.jsxs(ee.Fragment,{children:[O&&ee.jsx(xt,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0,children:O}),ee.jsx(yt,{scope:n,onClose:T,children:Ee.createPortal(ee.jsx(tt.ItemSlot,{scope:n,children:ee.jsx(ue,{asChild:!0,onEscapeKeyDown:ce(i,()=>{m.isFocusedToastEscapeKeyDownRef.current||T(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:ee.jsx(te.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...f,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ce(e.onKeyDown,e=>{"Escape"===e.key&&(null==i||i(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:ce(e.onPointerDown,e=>{0===e.button&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:ce(e.onPointerMove,e=>{if(!b.current)return;const t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=Boolean(x.current),o=["left","right"].includes(m.swipeDirection),s=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,a=o?s(0,t):0,i=o?0:s(0,n),c="touch"===e.pointerType?10:2,l={x:a,y:i},p={originalEvent:e,delta:l};r?(x.current=l,Ct("toast.swipeMove",d,p,{discrete:!1})):Ot(l,m.swipeDirection,c)?(x.current=l,Ct("toast.swipeStart",u,p,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(b.current=null)}),onPointerUp:ce(e.onPointerUp,e=>{const t=x.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),x.current=null,b.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};Ot(t,m.swipeDirection,m.swipeThreshold)?Ct("toast.swipeEnd",h,r,{discrete:!0}):Ct("toast.swipeCancel",p,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),xt=e=>{const{__scopeToast:t,children:n,...r}=e,o=at(mt,t),[s,a]=je.useState(!1),[i,c]=je.useState(!1);return function(e=()=>{}){const t=le(e);pe(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>a(!0)),je.useEffect(()=>{const e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),i?null:ee.jsx(de,{asChild:!0,children:ee.jsx(Xe,{...r,children:s&&ee.jsxs(ee.Fragment,{children:[o.label," ",n]})})})},wt=je.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return ee.jsx(te.div,{...r,ref:t})});wt.displayName="ToastTitle";var _t=je.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return ee.jsx(te.div,{...r,ref:t})});_t.displayName="ToastDescription";var Et=je.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?ee.jsx(kt,{altText:n,asChild:!0,children:ee.jsx(St,{...r,ref:t})}):null});Et.displayName="ToastAction";var jt="ToastClose",St=je.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=vt(jt,n);return ee.jsx(kt,{asChild:!0,children:ee.jsx(te.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,o.onClose)})})});St.displayName=jt;var kt=je.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return ee.jsx(te.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Tt(e){const t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Tt(e))}}),t}function Ct(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?he(o,s):o.dispatchEvent(s)}var Ot=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return"left"===t||"right"===t?s&&r>n:!s&&o>n};function Pt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function At(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Rt=it,Dt=pt,It=gt,Nt=wt,Mt=_t,$t=Et,Lt=St;function qt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=qt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ft(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=qt(e))&&(r&&(r+=" "),r+=t);return r}const Ut=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,zt=Ft,Bt=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return zt(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;const a=Ut(t)||Ut(r);return o[e][a]}),i=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...i}[t]):{...s,...i}[t]===n})?[...e,n,r]:e},[]);return zt(e,a,c,null==n?void 0:n.class,null==n?void 0:n.className)},Ht=e=>{const t=Kt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Vt(n,t)||Gt(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Vt=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),s=o?Vt(e.slice(1),o):void 0;if(s)return s;if(0===t.validators.length)return;const a=e.join("-");return null==(n=t.validators.find(({validator:e})=>e(a)))?void 0:n.classGroupId},Wt=/^\[(.+)\]$/,Gt=e=>{if(Wt.test(e)){const t=Wt.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Kt=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Xt(Object.entries(e.classGroups),n).forEach(([e,n])=>{Yt(n,r,e,t)}),r},Yt=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Qt(t,e)).classGroupId=n)}if("function"==typeof e)return Jt(e)?void Yt(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Yt(o,Qt(t,e),n,r)})})},Qt=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Jt=e=>e.isThemeGetter,Xt=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},en=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],s=t.length,a=e=>{const n=[];let a,i=0,c=0;for(let d=0;d<e.length;d++){let l=e[d];if(0===i){if(l===o&&(r||e.slice(d,d+s)===t)){n.push(e.slice(c,d)),c=d+s;continue}if("/"===l){a=d;continue}}"["===l?i++:"]"===l&&i--}const l=0===n.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return n?e=>n({className:e,parseClassName:a}):a},tn=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},nn=/\s+/;function rn(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=on(e))&&(r&&(r+=" "),r+=t);return r}const on=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=on(e[r]))&&(n&&(n+=" "),n+=t);return n};function sn(e,...t){let n,r,o,s=function(i){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Zt(e.cacheSize),parseClassName:en(e),...Ht(e)}))(c),r=n.cache.get,o=n.cache.set,s=a,a(i)};function a(e){const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(nn);let i="";for(let c=a.length-1;c>=0;c-=1){const e=a[c],{modifiers:t,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let p=Boolean(d),h=r(p?u.substring(0,d):u);if(!h){if(!p){i=e+(i.length>0?" "+i:i);continue}if(h=r(u),!h){i=e+(i.length>0?" "+i:i);continue}p=!1}const f=tn(t).join(":"),m=l?f+"!":f,g=m+h;if(s.includes(g))continue;s.push(g);const y=o(h,p);for(let n=0;n<y.length;++n){const e=y[n];s.push(m+e)}i=e+(i.length>0?" "+i:i)}return i})(e,n);return o(e,s),s}return function(){return s(rn.apply(null,arguments))}}const an=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},cn=/^\[(?:([a-z-]+):)?(.+)\]$/i,ln=/^\d+\/\d+$/,un=new Set(["px","full","screen"]),dn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gn=e=>vn(e)||un.has(e)||ln.test(e),yn=e=>An(e,"length",Rn),vn=e=>Boolean(e)&&!Number.isNaN(Number(e)),bn=e=>An(e,"number",vn),xn=e=>Boolean(e)&&Number.isInteger(Number(e)),wn=e=>e.endsWith("%")&&vn(e.slice(0,-1)),_n=e=>cn.test(e),En=e=>dn.test(e),jn=new Set(["length","size","percentage"]),Sn=e=>An(e,jn,Dn),kn=e=>An(e,"position",Dn),Tn=new Set(["image","url"]),Cn=e=>An(e,Tn,Nn),On=e=>An(e,"",In),Pn=()=>!0,An=(e,t,n)=>{const r=cn.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Rn=e=>pn.test(e)&&!hn.test(e),Dn=()=>!1,In=e=>fn.test(e),Nn=e=>mn.test(e),Mn=sn(()=>{const e=an("colors"),t=an("spacing"),n=an("blur"),r=an("brightness"),o=an("borderColor"),s=an("borderRadius"),a=an("borderSpacing"),i=an("borderWidth"),c=an("contrast"),l=an("grayscale"),u=an("hueRotate"),d=an("invert"),p=an("gap"),h=an("gradientColorStops"),f=an("gradientColorStopPositions"),m=an("inset"),g=an("margin"),y=an("opacity"),v=an("padding"),b=an("saturate"),x=an("scale"),w=an("sepia"),_=an("skew"),E=an("space"),j=an("translate"),S=()=>["auto",_n,t],k=()=>[_n,t],T=()=>["",gn,yn],C=()=>["auto",vn,_n],O=()=>["","0",_n],P=()=>[vn,_n];return{cacheSize:500,separator:":",theme:{colors:[Pn],spacing:[gn,yn],blur:["none","",En,_n],brightness:P(),borderColor:[e],borderRadius:["none","","full",En,_n],borderSpacing:k(),borderWidth:T(),contrast:P(),grayscale:O(),hueRotate:P(),invert:O(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[wn,yn],inset:S(),margin:S(),opacity:P(),padding:k(),saturate:P(),scale:P(),sepia:O(),skew:P(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",_n]}],container:["container"],columns:[{columns:[En]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",_n]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xn,_n]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_n]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",xn,_n]}],"grid-cols":[{"grid-cols":[Pn]}],"col-start-end":[{col:["auto",{span:["full",xn,_n]},_n]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[Pn]}],"row-start-end":[{row:["auto",{span:[xn,_n]},_n]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_n]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_n]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_n,t]}],"min-w":[{"min-w":[_n,t,"min","max","fit"]}],"max-w":[{"max-w":[_n,t,"none","full","min","max","fit","prose",{screen:[En]},En]}],h:[{h:[_n,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_n,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_n,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_n,t,"auto","min","max","fit"]}],"font-size":[{text:["base",En,yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bn]}],"font-family":[{font:[Pn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",_n]}],"line-clamp":[{"line-clamp":["none",vn,bn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gn,_n]}],"list-image":[{"list-image":["none",_n]}],"list-style-type":[{list:["none","disc","decimal",_n]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gn,yn]}],"underline-offset":[{"underline-offset":["auto",gn,_n]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_n]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_n]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",kn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cn]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[gn,_n]}],"outline-w":[{outline:[gn,yn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[gn,yn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",En,On]}],"shadow-color":[{shadow:[Pn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",En,_n]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_n]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",_n]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",_n]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[xn,_n]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_n]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_n]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_n]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gn,yn,bn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function $n(...e){return Mn(Ft(e))}const Ln=Rt,qn=je.forwardRef(({className:e,...t},n)=>ee.jsx(Dt,{ref:n,className:$n("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));qn.displayName=Dt.displayName;const Fn=Bt("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Un=je.forwardRef(({className:e,variant:t,...n},r)=>ee.jsx(It,{ref:r,className:$n(Fn({variant:t}),e),...n}));Un.displayName=It.displayName;je.forwardRef(({className:e,...t},n)=>ee.jsx($t,{ref:n,className:$n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t})).displayName=$t.displayName;const zn=je.forwardRef(({className:e,...t},n)=>ee.jsx(Lt,{ref:n,className:$n("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:ee.jsx(Ie,{className:"h-4 w-4"})}));zn.displayName=Lt.displayName;const Bn=je.forwardRef(({className:e,...t},n)=>ee.jsx(Nt,{ref:n,className:$n("text-sm font-semibold",e),...t}));Bn.displayName=Nt.displayName;const Hn=je.forwardRef(({className:e,...t},n)=>ee.jsx(Mt,{ref:n,className:$n("text-sm opacity-90",e),...t}));function Vn(){const{toasts:e}=Qe();return ee.jsxs(Ln,{children:[e.map(function({id:e,title:t,description:n,action:r,...o}){return ee.jsxs(Un,{...o,children:[ee.jsxs("div",{className:"grid gap-1",children:[t&&ee.jsx(Bn,{children:t}),n&&ee.jsx(Hn,{children:n})]}),r,ee.jsx(zn,{})]},e)}),ee.jsx(qn,{})]})}Hn.displayName=Mt.displayName;var Wn=["light","dark"],Gn=je.createContext(void 0),Kn={setTheme:e=>{},themes:[]};je.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:a,attrs:i,nonce:c})=>{let l="system"===s,u="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${i.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Wn.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(e,t=!1,r=!0)=>{let s=a?a[e]:e,i=t?e+"|| ''":`'${s}'`,c="";return o&&r&&!t&&Wn.includes(e)&&(c+=`d.style.colorScheme = '${e}';`),"class"===n?c+=t||s?`c.add(${i})`:"null":s&&(c+=`d[s](n,${i})`),c},h=e?`!function(){${u}${p(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${l})){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}${l?"":"else{"+p(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${d}}catch(t){}}();`;return je.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:h}})});var Yn=Array(12).fill(0),Qn=({visible:e,className:t})=>Se.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Se.createElement("div",{className:"sonner-spinner"},Yn.map((e,t)=>Se.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),Jn=Se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Se.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Xn=Se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Se.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Zn=Se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),er=Se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),tr=Se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Se.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Se.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),nr=1,rr=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:nr++,s=this.toasts.find(e=>e.id===o),a=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:a,title:n}):t):this.addToast({title:n,...r,dismissible:a,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let r,o=e instanceof Promise?e:e(),s=void 0!==n,a=o.then(async e=>{if(r=["resolve",e],Se.isValidElement(e))s=!1,this.create({id:n,type:"default",message:e});else if(or(e)&&!e.ok){s=!1;let r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,o="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:n,type:"error",message:r,description:o})}else if(void 0!==t.success){s=!1;let r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:o})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){s=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:o})}}).finally(()=>{var e;s&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),i=()=>new Promise((e,t)=>a.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:i}:Object.assign(n,{unwrap:i})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||nr++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},or=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,sr=(e,t)=>{let n=(null==t?void 0:t.id)||nr++;return rr.addToast({title:e,...t,id:n}),n},ar=Object.assign(sr,{success:rr.success,info:rr.info,warning:rr.warning,error:rr.error,custom:rr.custom,message:rr.message,promise:rr.promise,dismiss:rr.dismiss,loading:rr.loading},{getHistory:()=>rr.toasts,getToasts:()=>rr.getActiveToasts()});function ir(e){return void 0!==e.label}!function(e,{insertAt:t}={}){if("undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var cr=3,lr=14;function ur(...e){return e.filter(Boolean).join(" ")}var dr=e=>{var t,n,r,o,s,a,i,c,l,u,d;let{invert:p,toast:h,unstyled:f,interacting:m,setHeights:g,visibleToasts:y,heights:v,index:b,toasts:x,expanded:w,removeToast:_,defaultRichColors:E,closeButton:j,style:S,cancelButtonStyle:k,actionButtonStyle:T,className:C="",descriptionClassName:O="",duration:P,position:A,gap:R,loadingIcon:D,expandByDefault:I,classNames:N,icons:M,closeButtonAriaLabel:$="Close toast",pauseWhenPageIsHidden:L}=e,[q,F]=Se.useState(null),[U,z]=Se.useState(null),[B,H]=Se.useState(!1),[V,W]=Se.useState(!1),[G,K]=Se.useState(!1),[Y,Q]=Se.useState(!1),[J,X]=Se.useState(!1),[Z,ee]=Se.useState(0),[te,ne]=Se.useState(0),re=Se.useRef(h.duration||P||4e3),oe=Se.useRef(null),se=Se.useRef(null),ae=0===b,ie=b+1<=y,ce=h.type,le=!1!==h.dismissible,ue=h.className||"",de=h.descriptionClassName||"",pe=Se.useMemo(()=>v.findIndex(e=>e.toastId===h.id)||0,[v,h.id]),he=Se.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:j},[h.closeButton,j]),fe=Se.useMemo(()=>h.duration||P||4e3,[h.duration,P]),me=Se.useRef(0),ge=Se.useRef(0),ye=Se.useRef(0),ve=Se.useRef(null),[be,xe]=A.split("-"),we=Se.useMemo(()=>v.reduce((e,t,n)=>n>=pe?e:e+t.height,0),[v,pe]),_e=(()=>{let[e,t]=Se.useState(document.hidden);return Se.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),Ee=h.invert||p,ke="loading"===ce;ge.current=Se.useMemo(()=>pe*R+we,[pe,we]),Se.useEffect(()=>{re.current=fe},[fe]),Se.useEffect(()=>{H(!0)},[]),Se.useEffect(()=>{let e=se.current;if(e){let t=e.getBoundingClientRect().height;return ne(t),g(e=>[{toastId:h.id,height:t,position:h.position},...e]),()=>g(e=>e.filter(e=>e.toastId!==h.id))}},[g,h.id]),Se.useLayoutEffect(()=>{if(!B)return;let e=se.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,ne(n),g(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?{...e,height:n}:e):[{toastId:h.id,height:n,position:h.position},...e])},[B,h.title,h.description,g,h.id]);let Te=Se.useCallback(()=>{W(!0),ee(ge.current),g(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{_(h)},200)},[h,_,g,ge]);return Se.useEffect(()=>{if(h.promise&&"loading"===ce||h.duration===1/0||"loading"===h.type)return;let e;return w||m||L&&_e?(()=>{if(ye.current<me.current){let e=(new Date).getTime()-me.current;re.current=re.current-e}ye.current=(new Date).getTime()})():re.current!==1/0&&(me.current=(new Date).getTime(),e=setTimeout(()=>{var e;null==(e=h.onAutoClose)||e.call(h,h),Te()},re.current)),()=>clearTimeout(e)},[w,m,h,ce,L,_e,Te]),Se.useEffect(()=>{h.delete&&Te()},[Te,h.delete]),Se.createElement("li",{tabIndex:0,ref:se,className:ur(C,ue,null==N?void 0:N.toast,null==(t=null==h?void 0:h.classNames)?void 0:t.toast,null==N?void 0:N.default,null==N?void 0:N[ce],null==(n=null==h?void 0:h.classNames)?void 0:n[ce]),"data-sonner-toast":"","data-rich-colors":null!=(r=h.richColors)?r:E,"data-styled":!(h.jsx||h.unstyled||f),"data-mounted":B,"data-promise":!!h.promise,"data-swiped":J,"data-removed":V,"data-visible":ie,"data-y-position":be,"data-x-position":xe,"data-index":b,"data-front":ae,"data-swiping":G,"data-dismissible":le,"data-type":ce,"data-invert":Ee,"data-swipe-out":Y,"data-swipe-direction":U,"data-expanded":!!(w||I&&B),style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${V?Z:ge.current}px`,"--initial-height":I?"auto":`${te}px`,...S,...h.style},onDragEnd:()=>{K(!1),F(null),ve.current=null},onPointerDown:e=>{ke||!le||(oe.current=new Date,ee(ge.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(K(!0),ve.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(Y||!le)return;ve.current=null;let o=Number((null==(e=se.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(t=se.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),a=(new Date).getTime()-(null==(n=oe.current)?void 0:n.getTime()),i="x"===q?o:s,c=Math.abs(i)/a;if(Math.abs(i)>=20||c>.11)return ee(ge.current),null==(r=h.onDismiss)||r.call(h,h),z("x"===q?o>0?"right":"left":s>0?"down":"up"),Te(),Q(!0),void X(!1);K(!1),F(null)},onPointerMove:t=>{var n,r,o,s;if(!ve.current||!le||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;let a=t.clientY-ve.current.y,i=t.clientX-ve.current.x,c=null!=(r=e.swipeDirections)?r:function(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(A);!q&&(Math.abs(i)>1||Math.abs(a)>1)&&F(Math.abs(i)>Math.abs(a)?"x":"y");let l={x:0,y:0};"y"===q?(c.includes("top")||c.includes("bottom"))&&(c.includes("top")&&a<0||c.includes("bottom")&&a>0)&&(l.y=a):"x"===q&&(c.includes("left")||c.includes("right"))&&(c.includes("left")&&i<0||c.includes("right")&&i>0)&&(l.x=i),(Math.abs(l.x)>0||Math.abs(l.y)>0)&&X(!0),null==(o=se.current)||o.style.setProperty("--swipe-amount-x",`${l.x}px`),null==(s=se.current)||s.style.setProperty("--swipe-amount-y",`${l.y}px`)}},he&&!h.jsx?Se.createElement("button",{"aria-label":$,"data-disabled":ke,"data-close-button":!0,onClick:ke||!le?()=>{}:()=>{var e;Te(),null==(e=h.onDismiss)||e.call(h,h)},className:ur(null==N?void 0:N.closeButton,null==(o=null==h?void 0:h.classNames)?void 0:o.closeButton)},null!=(s=null==M?void 0:M.close)?s:tr):null,h.jsx||je.isValidElement(h.title)?h.jsx?h.jsx:"function"==typeof h.title?h.title():h.title:Se.createElement(Se.Fragment,null,ce||h.icon||h.promise?Se.createElement("div",{"data-icon":"",className:ur(null==N?void 0:N.icon,null==(a=null==h?void 0:h.classNames)?void 0:a.icon)},h.promise||"loading"===h.type&&!h.icon?h.icon||(null!=M&&M.loading?Se.createElement("div",{className:ur(null==N?void 0:N.loader,null==(Ce=null==h?void 0:h.classNames)?void 0:Ce.loader,"sonner-loader"),"data-visible":"loading"===ce},M.loading):D?Se.createElement("div",{className:ur(null==N?void 0:N.loader,null==(Oe=null==h?void 0:h.classNames)?void 0:Oe.loader,"sonner-loader"),"data-visible":"loading"===ce},D):Se.createElement(Qn,{className:ur(null==N?void 0:N.loader,null==(Pe=null==h?void 0:h.classNames)?void 0:Pe.loader),visible:"loading"===ce})):null,"loading"!==h.type?h.icon||(null==M?void 0:M[ce])||(e=>{switch(e){case"success":return Jn;case"info":return Zn;case"warning":return Xn;case"error":return er;default:return null}})(ce):null):null,Se.createElement("div",{"data-content":"",className:ur(null==N?void 0:N.content,null==(i=null==h?void 0:h.classNames)?void 0:i.content)},Se.createElement("div",{"data-title":"",className:ur(null==N?void 0:N.title,null==(c=null==h?void 0:h.classNames)?void 0:c.title)},"function"==typeof h.title?h.title():h.title),h.description?Se.createElement("div",{"data-description":"",className:ur(O,de,null==N?void 0:N.description,null==(l=null==h?void 0:h.classNames)?void 0:l.description)},"function"==typeof h.description?h.description():h.description):null),je.isValidElement(h.cancel)?h.cancel:h.cancel&&ir(h.cancel)?Se.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||k,onClick:e=>{var t,n;ir(h.cancel)&&le&&(null==(n=(t=h.cancel).onClick)||n.call(t,e),Te())},className:ur(null==N?void 0:N.cancelButton,null==(u=null==h?void 0:h.classNames)?void 0:u.cancelButton)},h.cancel.label):null,je.isValidElement(h.action)?h.action:h.action&&ir(h.action)?Se.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||T,onClick:e=>{var t,n;ir(h.action)&&(null==(n=(t=h.action).onClick)||n.call(t,e),!e.defaultPrevented&&Te())},className:ur(null==N?void 0:N.actionButton,null==(d=null==h?void 0:h.classNames)?void 0:d.actionButton)},h.action.label):null));var Ce,Oe,Pe};function pr(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function hr(e,t){let n={};return[e,t].forEach((e,t)=>{let r=1===t,o=r?"--mobile-offset":"--offset",s=r?"16px":"32px";function a(e){["top","right","bottom","left"].forEach(t=>{n[`${o}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?a(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n[`${o}-${t}`]=s:n[`${o}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):a(s)}),n}var fr=je.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:a,className:i,offset:c,mobileOffset:l,theme:u="light",richColors:d,duration:p,style:h,visibleToasts:f=cr,toastOptions:m,dir:g=pr(),gap:y=lr,loadingIcon:v,icons:b,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:w}=e,[_,E]=Se.useState([]),j=Se.useMemo(()=>Array.from(new Set([r].concat(_.filter(e=>e.position).map(e=>e.position)))),[_,r]),[S,k]=Se.useState([]),[T,C]=Se.useState(!1),[O,P]=Se.useState(!1),[A,R]=Se.useState("system"!==u?u:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=Se.useRef(null),I=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=Se.useRef(null),M=Se.useRef(!1),$=Se.useCallback(e=>{E(t=>{var n;return null!=(n=t.find(t=>t.id===e.id))&&n.delete||rr.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return Se.useEffect(()=>rr.subscribe(e=>{e.dismiss?E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t)):setTimeout(()=>{ke.flushSync(()=>{E(t=>{let n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),Se.useEffect(()=>{if("system"!==u)return void R(u);if("system"===u&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{R(e?"dark":"light")})}catch(t){e.addListener(({matches:e})=>{try{R(e?"dark":"light")}catch(t){}})}},[u]),Se.useEffect(()=>{_.length<=1&&C(!1)},[_]),Se.useEffect(()=>{let e=e=>{var t,n;o.every(t=>e[t]||e.code===t)&&(C(!0),null==(t=D.current)||t.focus()),"Escape"===e.code&&(document.activeElement===D.current||null!=(n=D.current)&&n.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),Se.useEffect(()=>{if(D.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,M.current=!1)}},[D.current]),Se.createElement("section",{ref:t,"aria-label":`${x} ${I}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((t,r)=>{var o;let[u,x]=t.split("-");return _.length?Se.createElement("ol",{key:t,dir:"auto"===g?pr():g,tabIndex:-1,ref:D,className:i,"data-sonner-toaster":!0,"data-theme":A,"data-y-position":u,"data-lifted":T&&_.length>1&&!s,"data-x-position":x,style:{"--front-toast-height":`${(null==(o=S[0])?void 0:o.height)||0}px`,"--width":"356px","--gap":`${y}px`,...h,...hr(c,l)},onBlur:e=>{M.current&&!e.currentTarget.contains(e.relatedTarget)&&(M.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||M.current||(M.current=!0,N.current=e.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{O||C(!1)},onDragEnd:()=>C(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||P(!0)},onPointerUp:()=>P(!1)},_.filter(e=>!e.position&&0===r||e.position===t).map((r,o)=>{var i,c;return Se.createElement(dr,{key:r.id,icons:b,index:o,toast:r,defaultRichColors:d,duration:null!=(i=null==m?void 0:m.duration)?i:p,className:null==m?void 0:m.className,descriptionClassName:null==m?void 0:m.descriptionClassName,invert:n,visibleToasts:f,closeButton:null!=(c=null==m?void 0:m.closeButton)?c:a,interacting:O,position:t,style:null==m?void 0:m.style,unstyled:null==m?void 0:m.unstyled,classNames:null==m?void 0:m.classNames,cancelButtonStyle:null==m?void 0:m.cancelButtonStyle,actionButtonStyle:null==m?void 0:m.actionButtonStyle,removeToast:$,toasts:_.filter(e=>e.position==r.position),heights:S.filter(e=>e.position==r.position),setHeights:k,expandByDefault:s,gap:y,loadingIcon:v,expanded:T,pauseWhenPageIsHidden:w,swipeDirections:e.swipeDirections})})):null}))});const mr=({...e})=>{const{theme:t="system"}=null!=(n=je.useContext(Gn))?n:Kn;var n;return ee.jsx(fr,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var[gr]=ne("Tooltip",[fe]),yr=fe(),vr="TooltipProvider",br=700,xr="tooltip.open",[wr,_r]=gr(vr),Er=e=>{const{__scopeTooltip:t,delayDuration:n=br,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=je.useRef(!0),i=je.useRef(!1),c=je.useRef(0);return je.useEffect(()=>{const e=c.current;return()=>window.clearTimeout(e)},[]),ee.jsx(wr,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:je.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:je.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:je.useCallback(e=>{i.current=e},[]),disableHoverableContent:o,children:s})};Er.displayName=vr;var jr="Tooltip",[Sr,kr]=gr(jr),Tr=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=_r(jr,e.__scopeTooltip),l=yr(t),[u,d]=je.useState(null),p=xe(),h=je.useRef(0),f=a??c.disableHoverableContent,m=i??c.delayDuration,g=je.useRef(!1),[y,v]=ae({prop:r,defaultProp:o??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(xr))):c.onClose(),null==s||s(e)},caller:jr}),b=je.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),x=je.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,v(!0)},[v]),w=je.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),_=je.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,v(!0),h.current=0},m)},[m,v]);return je.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),ee.jsx(we,{...l,children:ee.jsx(Sr,{scope:t,contentId:p,open:y,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:je.useCallback(()=>{c.isOpenDelayedRef.current?_():x()},[c.isOpenDelayedRef,_,x]),onTriggerLeave:je.useCallback(()=>{f?w():(window.clearTimeout(h.current),h.current=0)},[w,f]),onOpen:x,onClose:w,disableHoverableContent:f,children:n})})};Tr.displayName=jr;var Cr="TooltipTrigger",Or=je.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=kr(Cr,n),s=_r(Cr,n),a=yr(n),i=je.useRef(null),c=oe(t,i,o.onTriggerChange),l=je.useRef(!1),u=je.useRef(!1),d=je.useCallback(()=>l.current=!1,[]);return je.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),ee.jsx(ve,{asChild:!0,...a,children:ee.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ce(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))}),onPointerLeave:ce(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:ce(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ce(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:ce(e.onBlur,o.onClose),onClick:ce(e.onClick,o.onClose)})})});Or.displayName=Cr;var[Pr,Ar]=gr("TooltipPortal",{forceMount:void 0}),Rr="TooltipContent",Dr=je.forwardRef((e,t)=>{const n=Ar(Rr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=kr(Rr,e.__scopeTooltip);return ee.jsx(ie,{present:r||a.open,children:a.disableHoverableContent?ee.jsx(Lr,{side:o,...s,ref:t}):ee.jsx(Ir,{side:o,...s,ref:t})})}),Ir=je.forwardRef((e,t)=>{const n=kr(Rr,e.__scopeTooltip),r=_r(Rr,e.__scopeTooltip),o=je.useRef(null),s=oe(t,o),[a,i]=je.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=je.useCallback(()=>{i(null),d(!1)},[d]),h=je.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),s=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);i(s),d(!0)},[d]);return je.useEffect(()=>()=>p(),[p]),je.useEffect(()=>{if(c&&u){const e=e=>h(e,u),t=e=>h(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}},[c,u,h,p]),je.useEffect(()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==u?void 0:u.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const e=t[s],i=t[a],c=e.x,l=e.y,u=i.x,d=i.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(o=!o)}return o}(n,a);r?p():o&&(p(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,u,a,l,p]),ee.jsx(Lr,{...e,ref:s})}),[Nr,Mr]=gr(jr,{isInside:!1}),$r=ye("TooltipContent"),Lr=je.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=kr(Rr,n),l=yr(n),{onClose:u}=c;return je.useEffect(()=>(document.addEventListener(xr,u),()=>document.removeEventListener(xr,u)),[u]),je.useEffect(()=>{if(c.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(c.trigger))&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,u]),ee.jsx(me,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:ee.jsxs(ge,{"data-state":c.stateAttribute,...l,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[ee.jsx($r,{children:r}),ee.jsx(Nr,{scope:n,isInside:!0,children:ee.jsx(Ze,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Dr.displayName=Rr;var qr="TooltipArrow";je.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yr(n);return Mr(qr,n).isInside?null:ee.jsx(be,{...o,...r,ref:t})}).displayName=qr;var Fr=Dr;const Ur=Er,zr=Tr,Br=Or,Hr=je.forwardRef(({className:e,sideOffset:t=4,...n},r)=>ee.jsx(Fr,{ref:r,sideOffset:t,className:$n("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Hr.displayName=Fr.displayName;var Vr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wr="undefined"==typeof window||"Deno"in globalThis;function Gr(){}function Kr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Yr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qr(e,t){return"function"==typeof e?e(t):e}function Jr(e,t){return"function"==typeof e?e(t):e}function Xr(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a)if(r){if(t.queryHash!==eo(a,t.options))return!1}else if(!no(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof i||t.isStale()===i)&&((!o||o===t.state.fetchStatus)&&!(s&&!s(t)))}function Zr(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(to(t.options.mutationKey)!==to(s))return!1}else if(!no(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function eo(e,t){return((null==t?void 0:t.queryKeyHashFn)||to)(e)}function to(e){return JSON.stringify(e,(e,t)=>ao(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function no(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>no(e[n],t[n])))}function ro(e,t){if(e===t)return e;const n=so(e)&&so(t);if(n||ao(e)&&ao(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),a=s.length,i=n?[]:{},c=new Set(r);let l=0;for(let u=0;u<a;u++){const r=n?u:s[u];(!n&&c.has(r)||n)&&void 0===e[r]&&void 0===t[r]?(i[r]=void 0,l++):(i[r]=ro(e[r],t[r]),i[r]===e[r]&&void 0!==e[r]&&l++)}return o===a&&l===o?e:i}return t}function oo(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function so(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ao(e){if(!io(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!io(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function io(e){return"[object Object]"===Object.prototype.toString.call(e)}function co(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ro(e,t):t}function lo(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uo(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var po=Symbol();function ho(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==po?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function fo(e,t){return"function"==typeof e?e(...t):!!e}var mo=new(r=class extends Vr{constructor(){super(),Q(this,e),Q(this,t),Q(this,n),J(this,n,e=>{if(!Wr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){Y(this,t)||this.setEventListener(Y(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Y(this,t))||e.call(this),J(this,t,void 0))}setEventListener(e){var r;J(this,n,e),null==(r=Y(this,t))||r.call(this),J(this,t,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(t){Y(this,e)!==t&&(J(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var t;return"boolean"==typeof Y(this,e)?Y(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),go=new(i=class extends Vr{constructor(){super(),Q(this,o,!0),Q(this,s),Q(this,a),J(this,a,e=>{if(!Wr&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){Y(this,s)||this.setEventListener(Y(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Y(this,s))||e.call(this),J(this,s,void 0))}setEventListener(e){var t;J(this,a,e),null==(t=Y(this,s))||t.call(this),J(this,s,e(this.setOnline.bind(this)))}setOnline(e){Y(this,o)!==e&&(J(this,o,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return Y(this,o)}},o=new WeakMap,s=new WeakMap,a=new WeakMap,i);function yo(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function vo(e){return Math.min(1e3*2**e,3e4)}function bo(e){return"online"!==(e??"online")||go.isOnline()}var xo=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function wo(e){return e instanceof xo}function _o(e){let t,n=!1,r=0,o=!1;const s=yo(),a=()=>mo.isFocused()&&("always"===e.networkMode||go.isOnline())&&e.canRun(),i=()=>bo(e.networkMode)&&e.canRun(),c=n=>{var r;o||(o=!0,null==(r=e.onSuccess)||r.call(e,n),null==t||t(),s.resolve(n))},l=n=>{var r;o||(o=!0,null==(r=e.onError)||r.call(e,n),null==t||t(),s.reject(n))},u=()=>new Promise(n=>{var r;t=e=>{(o||a())&&n(e)},null==(r=e.onPause)||r.call(e)}).then(()=>{var n;t=void 0,o||null==(n=e.onContinue)||n.call(e)}),d=()=>{if(o)return;let t;const s=0===r?e.initialPromise:void 0;try{t=s??e.fn()}catch(i){t=Promise.reject(i)}Promise.resolve(t).then(c).catch(t=>{var s;if(o)return;const i=e.retry??(Wr?0:3),c=e.retryDelay??vo,p="function"==typeof c?c(r,t):c,h=!0===i||"number"==typeof i&&r<i||"function"==typeof i&&i(r,t);var f;!n&&h?(r++,null==(s=e.onFail)||s.call(e,r,t),(f=p,new Promise(e=>{setTimeout(e,f)})).then(()=>a()?void 0:u()).then(()=>{n?l(t):d()})):l(t)})};return{promise:s,cancel:t=>{var n;o||(l(new xo(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),s),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:i,start:()=>(i()?d():u().then(d),s)}}var Eo=e=>setTimeout(e,0);var jo=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Eo;const s=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return a},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),So=(l=class{constructor(){Q(this,c)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Kr(this.gcTime)&&J(this,c,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wr?1/0:3e5))}clearGcTimeout(){Y(this,c)&&(clearTimeout(Y(this,c)),J(this,c,void 0))}},c=new WeakMap,l),ko=(b=class extends So{constructor(e){super(),Q(this,y),Q(this,u),Q(this,d),Q(this,p),Q(this,h),Q(this,f),Q(this,m),Q(this,g),J(this,g,!1),J(this,m,e.defaultOptions),this.setOptions(e.options),this.observers=[],J(this,h,e.client),J(this,p,Y(this,h).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,J(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??Y(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=Y(this,f))?void 0:e.promise}setOptions(e){this.options={...Y(this,m),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Y(this,p).remove(this)}setData(e,t){const n=co(this.state.data,e,this.options);return X(this,y,v).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){X(this,y,v).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=Y(this,f))?void 0:t.promise;return null==(n=Y(this,f))||n.cancel(e),r?r.then(Gr).catch(Gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Y(this,u))}isActive(){return this.observers.some(e=>!1!==Jr(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===po||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Qr(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Yr(this.state.dataUpdatedAt,e))}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null==t||t.refetch({cancelRefetch:!1}),null==(e=Y(this,f))||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null==t||t.refetch({cancelRefetch:!1}),null==(e=Y(this,f))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Y(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(Y(this,f)&&(Y(this,g)?Y(this,f).cancel({revert:!0}):Y(this,f).cancelRetry()),this.scheduleGc()),Y(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,y,v).call(this,{type:"invalidate"})}fetch(e,t){var n,r,o;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(Y(this,f))return Y(this,f).continueRetry(),Y(this,f).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const s=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(J(this,g,!0),s.signal)})},i=()=>{const e=ho(this.options,t),n=(()=>{const e={client:Y(this,h),queryKey:this.queryKey,meta:this.meta};return a(e),e})();return J(this,g,!1),this.options.persister?this.options.persister(e,n,this):e(n)},c=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:Y(this,h),state:this.state,fetchFn:i};return a(e),e})();null==(n=this.options.behavior)||n.onFetch(c,this),J(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=c.fetchOptions)?void 0:r.meta)||X(this,y,v).call(this,{type:"fetch",meta:null==(o=c.fetchOptions)?void 0:o.meta});const l=e=>{var t,n,r,o;wo(e)&&e.silent||X(this,y,v).call(this,{type:"error",error:e}),wo(e)||(null==(n=(t=Y(this,p).config).onError)||n.call(t,e,this),null==(o=(r=Y(this,p).config).onSettled)||o.call(r,this.state.data,e,this)),this.scheduleGc()};return J(this,f,_o({initialPromise:null==t?void 0:t.initialPromise,fn:c.fetchFn,abort:s.abort.bind(s),onSuccess:e=>{var t,n,r,o;if(void 0!==e){try{this.setData(e)}catch(s){return void l(s)}null==(n=(t=Y(this,p).config).onSuccess)||n.call(t,e,this),null==(o=(r=Y(this,p).config).onSettled)||o.call(r,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{X(this,y,v).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{X(this,y,v).call(this,{type:"pause"})},onContinue:()=>{X(this,y,v).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),Y(this,f).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakSet,v=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...To(t.data,this.options),fetchMeta:e.meta??null};case"success":return J(this,d,void 0),{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return wo(n)&&n.revert&&Y(this,d)?{...Y(this,d),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),jo.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),Y(this,p).notify({query:this,type:"updated",action:e})})},b);function To(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bo(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Co=(w=class extends Vr{constructor(e={}){super(),Q(this,x),this.config=e,J(this,x,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??eo(r,t);let s=this.get(o);return s||(s=new ko({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){Y(this,x).has(e.queryHash)||(Y(this,x).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Y(this,x).get(e.queryHash);t&&(e.destroy(),t===e&&Y(this,x).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){jo.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Y(this,x).get(e)}getAll(){return[...Y(this,x).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Xr(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Xr(e,t)):t}notify(e){jo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){jo.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){jo.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},x=new WeakMap,w),Oo=(T=class extends So{constructor(e){super(),Q(this,S),Q(this,_),Q(this,E),Q(this,j),this.mutationId=e.mutationId,J(this,E,e.mutationCache),J(this,_,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Y(this,_).includes(e)||(Y(this,_).push(e),this.clearGcTimeout(),Y(this,E).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){J(this,_,Y(this,_).filter(t=>t!==e)),this.scheduleGc(),Y(this,E).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Y(this,_).length||("pending"===this.state.status?this.scheduleGc():Y(this,E).remove(this))}continue(){var e;return(null==(e=Y(this,j))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,o,s,a,i,c,l,u,d,p,h,f,m,g,y,v,b,x;const w=()=>{X(this,S,k).call(this,{type:"continue"})};J(this,j,_o({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{X(this,S,k).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{X(this,S,k).call(this,{type:"pause"})},onContinue:w,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Y(this,E).canRun(this)}));const _="pending"===this.state.status,T=!Y(this,j).canStart();try{if(_)w();else{X(this,S,k).call(this,{type:"pending",variables:e,isPaused:T}),await(null==(n=(t=Y(this,E).config).onMutate)?void 0:n.call(t,e,this));const s=await(null==(o=(r=this.options).onMutate)?void 0:o.call(r,e));s!==this.state.context&&X(this,S,k).call(this,{type:"pending",context:s,variables:e,isPaused:T})}const h=await Y(this,j).start();return await(null==(a=(s=Y(this,E).config).onSuccess)?void 0:a.call(s,h,e,this.state.context,this)),await(null==(c=(i=this.options).onSuccess)?void 0:c.call(i,h,e,this.state.context)),await(null==(u=(l=Y(this,E).config).onSettled)?void 0:u.call(l,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),X(this,S,k).call(this,{type:"success",data:h}),h}catch(C){try{throw await(null==(f=(h=Y(this,E).config).onError)?void 0:f.call(h,C,e,this.state.context,this)),await(null==(g=(m=this.options).onError)?void 0:g.call(m,C,e,this.state.context)),await(null==(v=(y=Y(this,E).config).onSettled)?void 0:v.call(y,void 0,C,this.state.variables,this.state.context,this)),await(null==(x=(b=this.options).onSettled)?void 0:x.call(b,void 0,C,e,this.state.context)),C}finally{X(this,S,k).call(this,{type:"error",error:C})}}finally{Y(this,E).runNext(this)}}},_=new WeakMap,E=new WeakMap,j=new WeakMap,S=new WeakSet,k=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),jo.batch(()=>{Y(this,_).forEach(t=>{t.onMutationUpdate(e)}),Y(this,E).notify({mutation:this,type:"updated",action:e})})},T);function Po(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ao=(A=class extends Vr{constructor(e={}){super(),Q(this,C),Q(this,O),Q(this,P),this.config=e,J(this,C,new Set),J(this,O,new Map),J(this,P,0)}build(e,t,n){const r=new Oo({mutationCache:this,mutationId:++Z(this,P)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){Y(this,C).add(e);const t=Ro(e);if("string"==typeof t){const n=Y(this,O).get(t);n?n.push(e):Y(this,O).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(Y(this,C).delete(e)){const t=Ro(e);if("string"==typeof t){const n=Y(this,O).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&Y(this,O).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ro(e);if("string"==typeof t){const n=Y(this,O).get(t),r=null==n?void 0:n.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){var t;const n=Ro(e);if("string"==typeof n){const r=null==(t=Y(this,O).get(n))?void 0:t.find(t=>t!==e&&t.state.isPaused);return(null==r?void 0:r.continue())??Promise.resolve()}return Promise.resolve()}clear(){jo.batch(()=>{Y(this,C).forEach(e=>{this.notify({type:"removed",mutation:e})}),Y(this,C).clear(),Y(this,O).clear()})}getAll(){return Array.from(Y(this,C))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Zr(t,e))}findAll(e={}){return this.getAll().filter(t=>Zr(e,t))}notify(e){jo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return jo.batch(()=>Promise.all(e.map(e=>e.continue().catch(Gr))))}},C=new WeakMap,O=new WeakMap,P=new WeakMap,A);function Ro(e){var t;return null==(t=e.options.scope)?void 0:t.id}function Do(e){return{onFetch:(t,n)=>{var r,o,s,a,i;const c=t.options,l=null==(s=null==(o=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:o.fetchMore)?void 0:s.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(i=t.state.data)?void 0:i.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let n=!1;const r=ho(t.options,t.fetchOptions),o=async(e,o,s)=>{if(n)return Promise.reject();if(null==o&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:o,direction:s?"backward":"forward",meta:t.options.meta};var r;return r=e,Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})(),i=await r(a),{maxPages:c}=t.options,l=s?uo:lo;return{pages:l(e.pages,i,c),pageParams:l(e.pageParams,o,c)}};if(l&&u.length){const e="backward"===l,t={pages:u,pageParams:d},n=(e?No:Io)(c,t);p=await o(t,n,e)}else{const t=e??u.length;do{const e=0===h?d[0]??c.initialPageParam:Io(c,p);if(h>0&&null==e)break;p=await o(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Io(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function No(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var Mo=(F=class{constructor(e={}){Q(this,R),Q(this,D),Q(this,I),Q(this,N),Q(this,M),Q(this,$),Q(this,L),Q(this,q),J(this,R,e.queryCache||new Co),J(this,D,e.mutationCache||new Ao),J(this,I,e.defaultOptions||{}),J(this,N,new Map),J(this,M,new Map),J(this,$,0)}mount(){Z(this,$)._++,1===Y(this,$)&&(J(this,L,mo.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,R).onFocus())})),J(this,q,go.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,R).onOnline())})))}unmount(){var e,t;Z(this,$)._--,0===Y(this,$)&&(null==(e=Y(this,L))||e.call(this),J(this,L,void 0),null==(t=Y(this,q))||t.call(this),J(this,q,void 0))}isFetching(e){return Y(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Y(this,D).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Y(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Y(this,R).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Qr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Y(this,R).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Y(this,R).get(r.queryHash),s=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0!==s)return Y(this,R).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return jo.batch(()=>Y(this,R).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Y(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=Y(this,R);jo.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=Y(this,R);return jo.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=jo.batch(()=>Y(this,R).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Gr).catch(Gr)}invalidateQueries(e,t={}){return jo.batch(()=>(Y(this,R).findAll(e).forEach(e=>{e.invalidate()}),"none"===(null==e?void 0:e.refetchType)?Promise.resolve():this.refetchQueries({...e,type:(null==e?void 0:e.refetchType)??(null==e?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=jo.batch(()=>Y(this,R).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Gr)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(Gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=Y(this,R).build(this,t);return n.isStaleByTime(Qr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gr).catch(Gr)}fetchInfiniteQuery(e){return e.behavior=Do(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gr).catch(Gr)}ensureInfiniteQueryData(e){return e.behavior=Do(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return go.isOnline()?Y(this,D).resumePausedMutations():Promise.resolve()}getQueryCache(){return Y(this,R)}getMutationCache(){return Y(this,D)}getDefaultOptions(){return Y(this,I)}setDefaultOptions(e){J(this,I,e)}setQueryDefaults(e,t){Y(this,N).set(to(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Y(this,N).values()],n={};return t.forEach(t=>{no(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){Y(this,M).set(to(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Y(this,M).values()],n={};return t.forEach(t=>{no(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Y(this,I).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eo(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===po&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...Y(this,I).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Y(this,R).clear(),Y(this,D).clear()}},R=new WeakMap,D=new WeakMap,I=new WeakMap,N=new WeakMap,M=new WeakMap,$=new WeakMap,L=new WeakMap,q=new WeakMap,F),$o=je.createContext(void 0),Lo=e=>{const t=je.useContext($o);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qo=({client:e,children:t})=>(je.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ee.jsx($o.Provider,{value:e,children:t})),Fo="undefined"!=typeof Element,Uo="function"==typeof Map,zo="function"==typeof Set,Bo="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Ho(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,s;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!Ho(e[r],t[r]))return!1;return!0}if(Uo&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Ho(r.value[1],t.get(r.value[0])))return!1;return!0}if(zo&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Bo&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Fo&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Ho(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}const Vo=Te(function(e,t){try{return Ho(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return!1;throw n}});const Wo=Te(function(e,t,n,r,o,s,a,i){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,s,a,i],u=0;(c=new Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}});const Go=Te(function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),c=0;c<s.length;c++){var l=s[c];if(!i(l))return!1;var u=e[l],d=t[l];if(!1===(o=n?n.call(r,u,d,l):void 0)||void 0===o&&u!==d)return!1}return!0});var Ko=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Ko||{}),Yo={rel:["amphtml","canonical","alternate"]},Qo={type:["application/ld+json"]},Jo={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Xo=Object.values(Ko),Zo={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},es=Object.entries(Zo).reduce((e,[t,n])=>(e[n]=t,e),{}),ts="data-rh",ns="defaultTitle",rs="defer",os="encodeSpecialCharacters",ss="onChangeClientState",as="titleTemplate",is="prioritizeSeoTags",cs=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},ls=e=>{let t=cs(e,"title");const n=cs(e,as);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=cs(e,ns);return t||r||void 0},us=e=>cs(e,ss)||(()=>{}),ds=(e,t)=>t.filter(t=>void 0!==t[e]).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),ps=(e,t)=>t.filter(e=>void 0!==e.base).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){const r=Object.keys(n);for(let o=0;o<r.length;o+=1){const s=r[o].toLowerCase();if(-1!==e.indexOf(s)&&n[s])return t.concat(n)}}return t},[]),hs=(e,t,n)=>{const r={};return n.filter(t=>!!Array.isArray(t[e])||(void 0!==t[e]&&(t[e],console&&console.warn),!1)).map(t=>t[e]).reverse().reduce((e,n)=>{const o={};n.filter(e=>{let n;const s=Object.keys(e);for(let r=0;r<s.length;r+=1){const o=s[r],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][a]&&(o[n][a]=!0,!0)}).reverse().forEach(t=>e.push(t));const s=Object.keys(o);for(let t=0;t<s.length;t+=1){const e=s[t],n={...r[e],...o[e]};r[e]=n}return e},[]).reverse()},fs=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},ms=e=>Array.isArray(e)?e.join(""):e,gs=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},ys=(e,t)=>({...e,[t]:void 0}),vs=["noscript","script","style"],bs=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),xs=e=>Object.keys(e).reduce((t,n)=>{const r=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),ws=(e,t={})=>Object.keys(e).reduce((t,n)=>(t[Zo[n]||n]=e[n],t),t),_s=(e,t)=>t.map((t,n)=>{const r={key:n,[ts]:!0};return Object.keys(t).forEach(e=>{const n=Zo[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]}),Se.createElement(e,r)}),Es=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const r=ws(n,{key:t,[ts]:!0});return[Se.createElement("title",r,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const o=xs(n),s=ms(t);return o?`<${e} ${ts}="true" ${o}>${bs(s,r)}</${e}>`:`<${e} ${ts}="true">${bs(s,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ws(t),toString:()=>xs(t)};default:return{toComponent:()=>_s(e,t),toString:()=>((e,t,n=!0)=>t.reduce((t,r)=>{const o=r,s=Object.keys(o).filter(e=>!("innerHTML"===e||"cssText"===e)).reduce((e,t)=>{const r=void 0===o[t]?t:`${t}="${bs(o[t],n)}"`;return e?`${e} ${r}`:r},""),a=o.innerHTML||o.cssText||"",i=-1===vs.indexOf(e);return`${t}<${e} ${ts}="true" ${s}${i?"/>":`>${a}</${e}>`}`},""))(e,t,n)}}},js=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:s,styleTags:a,title:i="",titleAttributes:c,prioritizeSeoTags:l}=e;let{linkTags:u,metaTags:d,scriptTags:p}=e,h={toComponent:()=>[],toString:()=>""};return l&&({priorityMethods:h,linkTags:u,metaTags:d,scriptTags:p}=(({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=gs(e,Jo),s=gs(t,Yo),a=gs(n,Qo);return{priorityMethods:{toComponent:()=>[..._s("meta",o.priority),..._s("link",s.priority),..._s("script",a.priority)],toString:()=>`${Es("meta",o.priority,r)} ${Es("link",s.priority,r)} ${Es("script",a.priority,r)}`},metaTags:o.default,linkTags:s.default,scriptTags:a.default}})(e)),{priority:h,base:Es("base",t,r),bodyAttributes:Es("bodyAttributes",n,r),htmlAttributes:Es("htmlAttributes",o,r),link:Es("link",u,r),meta:Es("meta",d,r),noscript:Es("noscript",s,r),script:Es("script",p,r),style:Es("style",a,r),title:Es("title",{title:i,titleAttributes:c},r)}},Ss=[],ks=!("undefined"==typeof window||!window.document||!window.document.createElement),Ts=class{constructor(e,t){G(this,"instances",[]),G(this,"canUseDOM",ks),G(this,"context"),G(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Ss:this.instances,add:e=>{(this.canUseDOM?Ss:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Ss:this.instances).indexOf(e);(this.canUseDOM?Ss:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=js({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Cs=parseInt(Se.version.split(".")[0],10)>=19,Os=Se.createContext({}),Ps=(U=class extends je.Component{constructor(e){super(e),G(this,"helmetData"),this.helmetData=Cs?null:new Ts(this.props.context||{},U.canUseDOM)}render(){return Cs?Se.createElement(Se.Fragment,null,this.props.children):Se.createElement(Os.Provider,{value:this.helmetData.value},this.props.children)}},G(U,"canUseDOM",ks),U),As=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ts}]`),o=[].slice.call(r),s=[];let a;return t&&t.length&&t.forEach(t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e){const e=t.cssText;n.appendChild(document.createTextNode(e))}else{const r=e,o=void 0===t[r]?"":t[r];n.setAttribute(e,o)}n.setAttribute(ts,"true"),o.some((e,t)=>(a=t,n.isEqualNode(e)))?o.splice(a,1):s.push(n)}),o.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>n.appendChild(e)),{oldTags:o,newTags:s}},Rs=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ts),o=r?r.split(","):[],s=[...o],a=Object.keys(t);for(const i of a){const e=t[i]||"";n.getAttribute(i)!==e&&n.setAttribute(i,e),-1===o.indexOf(i)&&o.push(i);const r=s.indexOf(i);-1!==r&&s.splice(r,1)}for(let i=s.length-1;i>=0;i-=1)n.removeAttribute(s[i]);o.length===s.length?n.removeAttribute(ts):n.getAttribute(ts)!==a.join(",")&&n.setAttribute(ts,a.join(","))},Ds=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:s,metaTags:a,noscriptTags:i,onChangeClientState:c,scriptTags:l,styleTags:u,title:d,titleAttributes:p}=e;Rs("body",r),Rs("html",o),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=ms(e)),Rs("title",t)})(d,p);const h={baseTag:As("base",n),linkTags:As("link",s),metaTags:As("meta",a),noscriptTags:As("noscript",i),scriptTags:As("script",l),styleTags:As("style",u)},f={},m={};Object.keys(h).forEach(e=>{const{newTags:t,oldTags:n}=h[e];t.length&&(f[e]=t),n.length&&(m[e]=h[e].oldTags)}),t&&t(),c(e,f,m)},Is=null,Ns=e=>{Is&&cancelAnimationFrame(Is),e.defer?Is=requestAnimationFrame(()=>{Ds(e,()=>{Is=null})}):(Ds(e),Is=null)},Ms=class extends je.Component{constructor(){super(...arguments),G(this,"rendered",!1)}shouldComponentUpdate(e){return!Go(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(o=e.get().map(e=>{const{context:t,...n}=e.props;return n}),{baseTag:ps(["href"],o),bodyAttributes:ds("bodyAttributes",o),defer:cs(o,rs),encode:cs(o,os),htmlAttributes:ds("htmlAttributes",o),linkTags:hs("link",["rel","href"],o),metaTags:hs("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:hs("noscript",["innerHTML"],o),onChangeClientState:us(o),scriptTags:hs("script",["src","innerHTML"],o),styleTags:hs("style",["cssText"],o),title:ls(o),titleAttributes:ds("titleAttributes",o),prioritizeSeoTags:fs(o,is)});var o;Ps.canUseDOM?Ns(r):js&&(n=js(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},$s=[],Ls=e=>{const t={};for(const n of Object.keys(e))t[es[n]||n]=e[n];return t},qs=e=>{const t={};for(const n of Object.keys(e)){t[Zo[n]||n]=e[n]}return t},Fs=(e,t)=>{if(!ks)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",o=n.getAttribute(r),s=o?o.split(","):[],a=Object.keys(t);for(const i of s)a.includes(i)||n.removeAttribute(i);for(const i of a){const e=t[i];null==e||!1===e?n.removeAttribute(i):!0===e?n.setAttribute(i,""):n.setAttribute(i,String(e))}a.length>0?n.setAttribute(r,a.join(",")):n.removeAttribute(r)},Us=()=>{const e={},t={};for(const n of $s){const{htmlAttributes:r,bodyAttributes:o}=n.props;r&&Object.assign(e,Ls(r)),o&&Object.assign(t,Ls(o))}Fs("html",e),Fs("body",t)},zs=class extends je.Component{componentDidMount(){$s.push(this),Us()}componentDidUpdate(){Us()}componentWillUnmount(){const e=$s.indexOf(this);-1!==e&&$s.splice(e,1),Us()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(void 0===e)return null;const t=this.props.titleAttributes||{};return Se.createElement("title",qs(t),e)}renderBase(){const{base:e}=this.props;return e?Se.createElement("base",qs(e)):null}renderMeta(){const{meta:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>Se.createElement("meta",{key:t,...qs(e)})):null}renderLink(){const{link:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>Se.createElement("link",{key:t,...qs(e)})):null}renderScript(){const{script:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>{const{innerHTML:n,...r}=e,o=qs(r);return n&&(o.dangerouslySetInnerHTML={__html:n}),Se.createElement("script",{key:t,...o})}):null}renderStyle(){const{style:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>{const{cssText:n,...r}=e,o=qs(r);return n&&(o.dangerouslySetInnerHTML={__html:n}),Se.createElement("style",{key:t,...o})}):null}renderNoscript(){const{noscript:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>{const{innerHTML:n,...r}=e,o=qs(r);return n&&(o.dangerouslySetInnerHTML={__html:n}),Se.createElement("noscript",{key:t,...o})}):null}render(){return Se.createElement(Se.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Bs=(z=class extends je.Component{shouldComponentUpdate(e){return!Vo(ys(this.props,"helmetData"),ys(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}warnOnInvalidChildren(e,t){return Wo(Xo.some(t=>e.type===t),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Xo.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Wo(!t||"string"==typeof t||Array.isArray(t)&&!t.some(e=>"string"!=typeof e),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return Se.Children.forEach(e,e=>{if(!e||!e.props)return;const{children:r,...o}=e.props,s=Object.keys(o).reduce((e,t)=>(e[es[t]||t]=o[t],e),{});let{type:a}=e;switch("symbol"==typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,s,r);break;default:t=this.mapObjectTypeChildren(e,t,s,r)}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Ts)){r=new Ts(r.context,!0),delete n.helmetData}return Cs?Se.createElement(zs,{...n}):r?Se.createElement(Ms,{...n,context:r.value}):Se.createElement(Os.Consumer,null,e=>Se.createElement(Ms,{...n,context:e}))}},G(z,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),z);const Hs=Le("https://qvpcywkodgmweqaqnjuw.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InF2cGN5d2tvZGdtd2VxYXFuanV3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjM0NjIzMjUsImV4cCI6MjA3OTAzODMyNX0.-pi5rBCEZAgQOAfQ4Q_ymmxE0jJkL5y7kAFJKf4rpBM",{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Vs=Object.freeze(Object.defineProperty({__proto__:null,supabase:Hs},Symbol.toStringTag,{value:"Module"})),Ws="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Gs="8.55.2",Ks=globalThis;function Ys(e,t,n){const r=n||Ks,o=r.__SENTRY__=r.__SENTRY__||{},s=o[Gs]=o[Gs]||{};return s[e]||(s[e]=t())}const Qs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Js=["debug","info","warn","error","log","assert","trace"],Xs={};function Zs(e){if(!("console"in Ks))return e();const t=Ks.console,n={},r=Object.keys(Xs);r.forEach(e=>{const r=Xs[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const ea=Ys("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Qs?Js.forEach(n=>{t[n]=(...t)=>{e&&Zs(()=>{Ks.console[n](`Sentry Logger [${n}]:`,...t)})}}):Js.forEach(e=>{t[e]=()=>{}}),t}),ta="?",na=/\(error: (.*)\)/,ra=/captureMessage|captureException/;function oa(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{const o=[],s=e.split("\n");for(let a=n;a<s.length;a++){const e=s[a];if(e.length>1024)continue;const n=na.test(e)?e.replace(na,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(sa(t).function||"")&&t.pop();t.reverse(),ra.test(sa(t).function||"")&&(t.pop(),ra.test(sa(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||sa(t).filename,function:e.function||ta}))}(o.slice(r))}}function sa(e){return e[e.length-1]||{}}const aa="<anonymous>";function ia(e){try{return e&&"function"==typeof e&&e.name||aa}catch(t){return aa}}function ca(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(n){return}}}const la={},ua={};function da(e,t){la[e]=la[e]||[],la[e].push(t)}function pa(e,t){if(!ua[e]){ua[e]=!0;try{t()}catch(n){Qs&&ea.error(`Error while instrumenting ${e}`,n)}}}function ha(e,t){const n=e&&la[e];if(n)for(const o of n)try{o(t)}catch(r){Qs&&ea.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ia(o)}\nError:`,r)}}let fa=null;function ma(){fa=Ks.onerror,Ks.onerror=function(e,t,n,r,o){return ha("error",{column:r,error:o,line:n,msg:e,url:t}),!!fa&&fa.apply(this,arguments)},Ks.onerror.__SENTRY_INSTRUMENTED__=!0}let ga=null;function ya(){ga=Ks.onunhandledrejection,Ks.onunhandledrejection=function(e){return ha("unhandledrejection",e),!ga||ga.apply(this,arguments)},Ks.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function va(){return ba(Ks),Ks}function ba(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Gs,t[Gs]=t[Gs]||{}}const xa=Object.prototype.toString;function wa(e){switch(xa.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Aa(e,Error)}}function _a(e,t){return xa.call(e)===`[object ${t}]`}function Ea(e){return _a(e,"ErrorEvent")}function ja(e){return _a(e,"DOMError")}function Sa(e){return _a(e,"String")}function ka(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ta(e){return null===e||ka(e)||"object"!=typeof e&&"function"!=typeof e}function Ca(e){return _a(e,"Object")}function Oa(e){return"undefined"!=typeof Event&&Aa(e,Event)}function Pa(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Aa(e,t){try{return e instanceof t}catch(n){return!1}}function Ra(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const Da=Ks;function Ia(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,a=0;const i=" > ",c=i.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<r&&(l=Na(n,u),!("html"===l||s>1&&a+o.length*c+l.length>=d));)o.push(l),a+=l.length,n=n.parentNode;return o.reverse().join(i)}catch(n){return"<unknown>"}}function Na(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Da.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Sa(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const a of s){const e=n.getAttribute(a);e&&r.push(`[${a}="${e}"]`)}return r.join("")}function Ma(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function $a(e,t){if(!Array.isArray(e))return"";const n=[];for(let o=0;o<e.length;o++){const t=e[o];try{Ra(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(r){n.push("[value cannot be serialized]")}}return n.join(t)}function La(e,t,n=!1){return!!Sa(e)&&(_a(t,"RegExp")?t.test(e):!!Sa(t)&&(n?e===t:e.includes(t)))}function qa(e,t=[],n=!1){return t.some(t=>La(e,t,n))}function Fa(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&za(o,r);try{e[t]=o}catch(s){Qs&&ea.log(`Failed to replace method "${t}" in object`,e)}}function Ua(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){Qs&&ea.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function za(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ua(e,"__sentry_original__",t)}catch(n){}}function Ba(e){return e.__sentry_original__}function Ha(e){if(wa(e))return{message:e.message,name:e.name,stack:e.stack,...Wa(e)};if(Oa(e)){const t={type:e.type,target:Va(e.target),currentTarget:Va(e.currentTarget),...Wa(e)};return"undefined"!=typeof CustomEvent&&Aa(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Va(e){try{return t=e,"undefined"!=typeof Element&&Aa(t,Element)?Ia(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function Wa(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ga(e){return Ka(e,new Map)}function Ka(e,t){if(function(e){if(!Ca(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=Ka(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(Ka(e,t))}),r}return e}function Ya(){return Date.now()/1e3}const Qa=function(){const{performance:e}=Ks;if(!e||!e.now)return Ya;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();function Ja(){const e=Ks,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function Xa(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Za(e){const{message:t,event_id:n}=e;if(t)return t;const r=Xa(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ei(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function ti(e,t){const n=Xa(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function ni(e){if(function(e){try{return e.__sentry_captured__}catch(t){}}(e))return!0;try{Ua(e,"__sentry_captured__",!0)}catch(t){}return!1}var ri;function oi(e){return new ai(t=>{t(e)})}function si(e){return new ai((t,n)=>{n(e)})}(()=>{const{performance:e}=Ks;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,a=e.timing&&e.timing.navigationStart,i="number"==typeof a?Math.abs(a+n-r):t;(s||i<t)&&(o<=i&&e.timeOrigin)})(),function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(ri||(ri={}));class ai{constructor(e){ai.prototype.__init.call(this),ai.prototype.__init2.call(this),ai.prototype.__init3.call(this),ai.prototype.__init4.call(this),this._state=ri.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new ai((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(o){r(o)}else n(t)},e=>{if(t)try{n(t(e))}catch(o){r(o)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new ai((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)})})}__init(){this._resolve=e=>{this._setResult(ri.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ri.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ri.PENDING&&(Pa(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ri.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===ri.RESOLVED&&e[1](this._value),this._state===ri.REJECTED&&e[2](this._value),e[0]=!0)})}}}function ii(e){const t=Qa(),n={sid:Ja(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Ga({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}})}(n)};return e&&ci(n,e),n}function ci(e,t={}){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||Qa(),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:Ja()),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{const 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 li(){return Ja()}function ui(){return Ja().substring(16)}function di(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=di(r[o],t[o],n-1));return r}const pi="_sentrySpan";function hi(e,t){t?Ua(e,pi,t):delete e[pi]}function fi(e){return e[pi]}class mi{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:li(),spanId:ui()}}clone(){const e=new mi;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},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._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,hi(e,fi(this)),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&&ci(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},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;const t="function"==typeof e?e(this):e,[n,r]=t instanceof gi?[t.getScopeData(),t.getRequestSession()]:Ca(t)?[e,e.requestSession]:[],{tags:o,extra:s,user:a,contexts:i,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...i},a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,hi(this,void 0),this._attachments=[],this.setPropagationContext({traceId:li()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Ya(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&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,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:fi(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=di(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:ui(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Ja();if(!this._client)return ea.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Ja();if(!this._client)return ea.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Ja();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(ea.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)}}const gi=mi;class yi{constructor(e,t){let n,r;n=e||new gi,r=t||new gi,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return Pa(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function vi(){const e=ba(va());return e.stack=e.stack||new yi(Ys("defaultCurrentScope",()=>new gi),Ys("defaultIsolationScope",()=>new gi))}function bi(e){return vi().withScope(e)}function xi(e,t){const n=vi();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function wi(e){return vi().withScope(()=>e(vi().getIsolationScope()))}function _i(e){const t=ba(e);return t.acs?t.acs:{withIsolationScope:wi,withScope:bi,withSetScope:xi,withSetIsolationScope:(e,t)=>wi(t),getCurrentScope:()=>vi().getScope(),getIsolationScope:()=>vi().getIsolationScope()}}function Ei(){return _i(va()).getCurrentScope()}function ji(){return _i(va()).getIsolationScope()}function Si(...e){const t=_i(va());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function ki(){return Ei().getClient()}function Ti(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=t;return Ga({trace_id:n,span_id:r,parent_span_id:o})}function Ci(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[r,o]]of t){(n[r]||(n[r]=[])).push(Ga(o))}return n}const Oi=/^sentry-/;function Pi(e){const t=function(e){if(!e||!Sa(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const n=Ai(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{});return Ai(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Oi)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function Ai(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}let Ri=!1;function Di(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Ga({parent_span_id:r?t:Mi(e).parent_span_id,span_id:r?ui():t,trace_id:n})}function Ii(e){return"number"==typeof e?Ni(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ni(e.getTime()):Qa()}function Ni(e){return e>9999999999?e/1e3:e}function Mi(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:s,endTime:a,parentSpanId:i,status:c}=e;return Ga({span_id:t,trace_id:n,data:r,description:s,parent_span_id:i,start_timestamp:Ii(o),timestamp:Ii(a)||void 0,status:$i(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Ci(e)})}return{span_id:t,trace_id:n}}catch(t){return{}}}function $i(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function Li(e){return e._sentryRootSpan||e}function qi(){Ri||(Zs(()=>{}),Ri=!0)}const Fi="production";function Ui(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Ga({environment:n.environment||Fi,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function zi(e){const t=ki();if(!t)return{};const n=Li(e),r=n._frozenDsc;if(r)return r;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&Pi(s);if(a)return a;const i=Ui(e.spanContext().traceId,t),c=Mi(n),l=c.data||{},u=l["sentry.sample_rate"];null!=u&&(i.sample_rate=`${u}`);const d=l["sentry.source"],p=c.description;return"url"!==d&&p&&(i.transaction=p),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=ki(),t=e&&e.getOptions();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}()&&(i.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n))),t.emit("createDsc",i,n),i}const Bi=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Hi(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:a,protocol:i,publicKey:c}=e;return`${i}://${c}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function Vi(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Wi(e){const t="string"==typeof e?function(e){const t=Bi.exec(e);if(!t)return void Zs(()=>{});const[n,r,o="",s="",a="",i=""]=t.slice(1);let c="",l=i;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Vi({host:s,pass:o,path:c,projectId:l,port:a,protocol:n,publicKey:r})}(e):Vi(e);if(t&&function(e){if(!Qs)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(ea.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(ea.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(ea.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(ea.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function Gi(e,t=100,n=1/0){try{return Yi("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ki(e,t=3,n=102400){const r=Gi(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?Ki(e,t-1,n):r;var o}function Yi(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,a]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const i=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(Ra(t))return"[VueViewModel]";if(Ca(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${ia(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}var n}(e,t);if(!i.startsWith("[object "))return i;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return i.replace("object ","");if(s(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Yi("",l.toJSON(),c-1,r,o)}catch(h){}const u=Array.isArray(t)?[]:{};let d=0;const p=Ha(t);for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue;if(d>=r){u[f]="[MaxProperties ~]";break}const e=p[f];u[f]=Yi(f,e,c-1,r,o),d++}return a(t),u}function Qi(e,t=[]){return[e,t]}function Ji(e,t){const[n,r]=e;return[n,[...r,t]]}function Xi(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function Zi(e){return Ks.__SENTRY__&&Ks.__SENTRY__.encodePolyfill?Ks.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function ec(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[Zi(r),e]:r.push("string"==typeof e?Zi(e):e)}for(const a of n){const[e,t]=a;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(s){e=JSON.stringify(Gi(t))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(r)}function tc(e){const t="string"==typeof e.data?Zi(e.data):e.data;return[Ga({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const nc={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",statsd:"metric_bucket",raw_security:"security"};function rc(e){return nc[e]}function oc(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function sc(e,t,n,r){const o=oc(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Hi(r)},...o&&{trace:Ga({...o})}}}(e,o,r,t);delete e.sdkProcessingMetadata;return Qi(a,[[{type:s},e]])}function ac(e,t,n,r=0){return new ai((o,s)=>{const a=e[r];if(null===t||"function"!=typeof a)o(t);else{const i=a({...t},n);Ws&&a.id&&null===i&&ea.log(`Event processor "${a.id}" dropped event`),Pa(i)?i.then(t=>ac(e,t,n,r+1).then(o)).then(null,s):ac(e,i,n,r+1).then(o).then(null,s)}})}let ic,cc,lc;function uc(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:s,level:a,transactionName:i}=t,c=Ga(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Ga(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Ga(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=Ga(s);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);i&&"transaction"!==e.type&&(e.transaction=i)}(e,t),r&&function(e,t){e.contexts={trace:Di(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:zi(t),...e.sdkProcessingMetadata};const n=Li(t),r=Mi(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function dc(e,t){const{extra:n,tags:r,user:o,contexts:s,level:a,sdkProcessingMetadata:i,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:f}=t;pc(e,"extra",n),pc(e,"tags",r),pc(e,"user",o),pc(e,"contexts",s),e.sdkProcessingMetadata=di(e.sdkProcessingMetadata,i,2),a&&(e.level=a),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function pc(e,t,n){e[t]=di(e[t],n,1)}function hc(e,t,n,r,o,s){const{normalizeDepth:a=3,normalizeMaxBreadth:i=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ja(),timestamp:t.timestamp||Ya()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||Fi,!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);e.message&&(e.message=Ma(e.message,s));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Ma(a.value,s));const i=e.request;i&&i.url&&(i.url=Ma(i.url,s))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=Ks._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return lc&&n.length===cc||(cc=n.length,lc=n.reduce((n,r)=>{ic||(ic={});const o=ic[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const s=o[e],a=s&&s.filename,i=t[r];if(a&&i){n[a]=i,ic[r]=[a,i];break}}}return n},{})),lc}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(r){}}(c,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new gi;return n.update(t),n}(r,n.captureContext);n.mechanism&&ti(c,n.mechanism);const d=o?o.getEventProcessors():[],p=Ys("globalScope",()=>new gi).getScopeData();if(s){dc(p,s.getScopeData())}if(u){dc(p,u.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),uc(c,p);return ac([...d,...p.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{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)})})}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Gi(e.data,t,n)}}))},...e.user&&{user:Gi(e.user,t,n)},...e.contexts&&{contexts:Gi(e.contexts,t,n)},...e.extra&&{extra:Gi(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Gi(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Gi(e.data,t,n)}})));e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Gi(e.contexts.flags,3,n));return r}(e,a,i):e))}function fc(e){if(e)return function(e){return e instanceof gi||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>mc.includes(e))}(e)?{captureContext:e}:e}const mc=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function gc(e,t){return Ei().captureException(e,fc(t))}function yc(e,t){const n=t;return Ei().captureMessage(e,n,void 0)}function vc(e,t){return Ei().captureEvent(e,t)}function bc(e){ji().setUser(e)}function xc(e){const t=ki(),n=ji(),r=Ei(),{release:o,environment:s=Fi}=t&&t.getOptions()||{},{userAgent:a}=Ks.navigator||{},i=ii({release:o,environment:s,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),c=n.getSession();return c&&"ok"===c.status&&ci(c,{status:"exited"}),wc(),n.setSession(i),r.setSession(i),i}function wc(){const e=ji(),t=Ei(),n=t.getSession()||e.getSession();n&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),ci(e,t)}(n),_c(),e.setSession(),t.setSession()}function _c(){const e=ji(),t=Ei(),n=ki(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Ec(e=!1){e?wc():_c()}function jc(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Sc(e,t,n){return t||`${function(e){return`${jc(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}const kc=[];function Tc(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),s=o.findIndex(e=>"Debug"===e.name);if(s>-1){const[e]=o.splice(s,1);o.push(e)}return o}function Cc(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Oc(e,t,n){if(n[t.name])Ws&&ea.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===kc.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),kc.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}Ws&&ea.log(`Integration installed: ${t.name}`)}}class Pc extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}const Ac="Not capturing exception because it's already been captured.";class Rc{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Wi(e.dsn):Ws&&ea.warn("No DSN provided, client will not send events."),this._dsn){const t=Sc(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})}["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&null==e[t])&&Zs(()=>{})}captureException(e,t,n){const r=Ja();if(ni(e))return Ws&&ea.log(Ac),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){const o={event_id:Ja(),...n},s=ka(e)?e:String(e),a=Ta(e)?this.eventFromMessage(s,t,o):this.eventFromException(e,o);return this._process(a.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){const r=Ja();if(t&&t.originalException&&ni(t.originalException))return Ws&&ea.log(Ac),r;const o={event_id:r,...t},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,s||n)),o.event_id}captureSession(e){"string"!=typeof e.release?Ws&&ea.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ci(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):oi(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Oc(this,e,this._integrations),t||Cc(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=sc(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])n=Ji(n,tc(o));const r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const o=oc(n);return Qi({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Hi(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;Ws&&ea.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(Ws&&ea.error("Error while sending envelope:",e),e)):(Ws&&ea.error("Transport disabled"),oi({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Oc(e,t,n)}),n}(this,e),Cc(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(ci(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ai(t=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=Ei(),r=ji()){const o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),hc(o,e,t,n,this,r).then(e=>{if(null===e)return e;e.contexts={trace:Ti(n),...e.contexts};const t=function(e,t){const n=t.getPropagationContext();return n.dsc||Ui(n.traceId,e)}(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:t,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{Ws&&(e instanceof Pc&&"log"===e.logLevel?ea.log(e.message):ea.warn(e))})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,s=Ic(e),a=Dc(e),i=e.type||"error",c=`before send for type \`${i}\``,l=void 0===o?void 0:function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;Ws&&ea.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}(o);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),si(new Pc(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u="replay_event"===i?"replay":i,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Pc("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:a}=t;if(Dc(n)&&o)return o(n,r);if(Ic(n)){if(n.spans&&a){const t=[];for(const r of n.spans){const n=a(r);n?t.push(n):(qi(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(s){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(n,r)}}return n}(this,r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Pa(e))return e.then(e=>{if(!Ca(e)&&null!==e)throw new Pc(n);return e},e=>{throw new Pc(`${t} rejected with ${e}`)});if(!Ca(e)&&null!==e)throw new Pc(n);return e}(o,c)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,e),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Pc(`${c} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!s&&o&&this._updateSessionFromEvent(o,r),s){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(s&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof Pc)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Pc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){Ws&&ea.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(Ws&&ea.log("No outcomes to send"));if(!this._dsn)return void(Ws&&ea.log("No dsn provided, will not send outcomes"));Ws&&ea.log("Sending outcomes:",e);const t=(n=e,Qi((r=this._options.tunnel&&Hi(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Ya(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function Dc(e){return void 0===e.type}function Ic(e){return"transaction"===e.type}function Nc(e,t){!0===t.debug&&(Ws?ea.enable():Zs(()=>{}));Ei().update(t.initialScope);const n=new e(t);return function(e){Ei().setClient(e)}(n),n.init(),n}function Mc(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return si(new Pc("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new ai((n,r)=>{let o=t.length;if(!o)return n(!0);const s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{oi(e).then(()=>{--o||(clearTimeout(s),n(!0))},r)})})}}}function $c(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(const i of s.trim().split(",")){const[e,t,,,n]=i.split(":",5),s=parseInt(e,10),a=1e3*(isNaN(s)?60:s);if(t)for(const i of t.split(";"))"metric_bucket"===i&&n&&!n.split(";").includes("custom")||(o[i]=r+a);else o.all=r+a}else a?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(o.all=r+6e4);return o}function Lc(e,t,n=Mc(e.bufferSize||64)){let r={};return{send:function(o){const s=[];if(Xi(o,(t,n)=>{const o=rc(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=qc(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)}),0===s.length)return oi({});const a=Qi(o[0],s),i=t=>{Xi(a,(n,r)=>{const o=qc(n,r);e.recordDroppedEvent(t,rc(r),o)})};return n.add(()=>t({body:ec(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Ws&&ea.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=$c(r,e),e),e=>{throw i("network_error"),e})).then(e=>e,e=>{if(e instanceof Pc)return Ws&&ea.error("Skipped sending event because buffer is full."),i("queue_overflow"),oi({});throw e})},flush:e=>n.drain(e)}}function qc(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Fc(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:Gs})),version:Gs}),e._metadata=o}const Uc=100;function zc(e,t){const n=ki(),r=ji();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Uc}=n.getOptions();if(s<=0)return;const a={timestamp:Ya(),...e},i=o?Zs(()=>o(a,t)):a;null!==i&&(n.emit&&n.emit("beforeAddBreadcrumb",i,t),r.addBreadcrumb(i,s))}let Bc;const Hc=new WeakMap,Vc=()=>({name:"FunctionToString",setupOnce(){Bc=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ba(this),n=Hc.has(ki())&&void 0!==t?t:this;return Bc.apply(n,e)}}catch(e){}},setup(e){Hc.set(e,!0)}}),Wc=[/^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.L')",'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$/],Gc=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const o=r.getOptions(),s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Wc],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return Ws&&ea.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Za(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(r){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some(e=>qa(e,t))}(e,t.ignoreErrors))return Ws&&ea.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Za(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return Ws&&ea.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Za(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&qa(n,t)}(e,t.ignoreTransactions))return Ws&&ea.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Za(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=Kc(e);return!!n&&qa(n,t)}(e,t.denyUrls))return Ws&&ea.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Za(e)}.\nUrl: ${Kc(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=Kc(e);return!n||qa(n,t)}(e,t.allowUrls))return Ws&&ea.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Za(e)}.\nUrl: ${Kc(e)}`),!0;return!1}(t,s)?null:t}});function Kc(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return Ws&&ea.error(`Cannot extract url for event ${Za(e)}`),null}}function Yc(e,t,n=250,r,o,s,a){if(!(s.exception&&s.exception.values&&a&&Aa(a.originalException,Error)))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,l;i&&(s.exception.values=(c=Qc(e,t,o,a.originalException,r,s.exception.values,i,0),l=n,c.map(e=>(e.value&&(e.value=Ma(e.value,l)),e))))}function Qc(e,t,n,r,o,s,a,i){if(s.length>=n+1)return s;let c=[...s];if(Aa(r[o],Error)){Jc(a,i);const s=e(t,r[o]),l=c.length;Xc(s,o,l,i),c=Qc(e,t,n,r[o],o,[s,...c],s,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,s)=>{if(Aa(r,Error)){Jc(a,i);const l=e(t,r),u=c.length;Xc(l,`errors[${s}]`,u,i),c=Qc(e,t,n,r,o,[l,...c],l,u)}}),c}function Jc(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Xc(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Zc(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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 el(){"console"in Ks&&Js.forEach(function(e){e in Ks.console&&Fa(Ks.console,e,function(t){return Xs[e]=t,function(...t){ha("console",{args:t,level:e});const n=Xs[e];n&&n.apply(Ks.console,t)}})})}function tl(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const nl=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!ol(e,t))return!1;if(!rl(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=sl(t),r=sl(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!ol(e,t))return!1;if(!rl(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return Ws&&ea.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function rl(e,t){let n=ca(e),r=ca(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const e=r[o],t=n[o];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function ol(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(o){return!1}}function sl(e){return e.exception&&e.exception.values&&e.exception.values[0]}function al(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const il=Ks;function cl(){if(!("fetch"in il))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function ll(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ul(e,t){const n="fetch";da(n,e),pa(n,()=>function(e,t=!1){if(t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!cl())return!1;if(ll(il.fetch))return!0;let e=!1;const t=il.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ll(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Qs&&ea.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}())return;Fa(Ks,"fetch",function(e){return function(...t){const n=new Error,{method:r,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:pl(t),method:dl(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:pl(t),method:dl(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:r,url:o},startTimestamp:1e3*Qa(),virtualError:n};return ha("fetch",{...s}),e.apply(Ks,t).then(async e=>(ha("fetch",{...s,endTimestamp:1e3*Qa(),response:e}),e),e=>{throw ha("fetch",{...s,endTimestamp:1e3*Qa(),error:e}),wa(e)&&void 0===e.stack&&(e.stack=n.stack,Ua(e,"framesToPop",1)),e})}})}(0,t))}function dl(e,t){return!!e&&"object"==typeof e&&!!e[t]}function pl(e){return"string"==typeof e?e:e?dl(e,"url")?e.url:e.toString?e.toString():"":""}const hl=Ks;const fl=Ks;let ml=0;function gl(){return ml>0}function yl(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Ba(e))return e}catch(r){return e}const n=function(...n){try{const r=n.map(e=>yl(e,t));return e.apply(this,r)}catch(r){throw ml++,setTimeout(()=>{ml--}),Si(e=>{e.addEventProcessor(e=>(t.mechanism&&(ei(e,void 0),ti(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),gc(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(r){}za(n,e),Ua(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(o){}return n}const vl="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function bl(e,t){const n=_l(e,t),r={type:Sl(t),value:kl(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function xl(e,t,n,r){const o=ki(),s=o&&o.getOptions().normalizeDepth,a=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),i={__serialized__:Ki(t,s)};if(a)return{exception:{values:[bl(e,a)]},extra:i};const c={exception:{values:[{type:Oa(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ol(t,{isUnhandledRejection:r})}]},extra:i};if(n){const t=_l(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function wl(e,t){return{exception:{values:[bl(e,t)]}}}function _l(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&El.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,o)}catch(s){}return[]}const El=/Minified React error #\d+;/i;function jl(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Sl(e){const t=e&&e.name;if(!t&&jl(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function kl(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:jl(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Tl(e,t,n,r,o){let s;if(Ea(t)&&t.error){return wl(e,t.error)}if(ja(t)||_a(t,"DOMException")){const o=t;if("stack"in t)s=wl(e,t);else{const t=o.name||(ja(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;s=Cl(e,a,n,r),ei(s,a)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}if(wa(t))return wl(e,t);if(Ca(t)||Oa(t)){return s=xl(e,t,n,o),ti(s,{synthetic:!0}),s}return s=Cl(e,t,n,r),ei(s,`${t}`),ti(s,{synthetic:!0}),s}function Cl(e,t,n,r){const o={};if(r&&n){const r=_l(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),ti(o,{synthetic:!0})}if(ka(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Ol(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Ha(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ma(r,t);for(let o=n.length;o>0;o--){const e=n.slice(0,o).join(", ");if(!(e.length>t))return o===n.length?e:Ma(e,t)}return""}(e),r=t?"promise rejection":"exception";if(Ea(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(Oa(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}class Pl extends Rc{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};Fc(t,"browser",["browser"],fl.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&fl.document&&fl.document.addEventListener("visibilitychange",()=>{"hidden"===fl.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=Tl(e,t,n&&n.syntheticException||void 0,r);return ti(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),oi(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const s=Cl(e,t,r&&r.syntheticException||void 0,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),oi(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(vl&&ea.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Hi(r)}},s=function(e){return[{type:"user_report"},e]}(e);return Qi(o,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}const Al="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Rl=Ks;let Dl,Il,Nl,Ml;function $l(){if(!Rl.document)return;const e=ha.bind(null,"dom"),t=Ll(e,!0);Rl.document.addEventListener("click",t,!1),Rl.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Rl[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(Fa(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){const r=Ll(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(s){}return t.call(this,n,r,o)}}),Fa(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const 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(o){}return e.call(this,t,n,r)}}))})}function Ll(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(t){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;Ua(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ua(r,"_sentryId",Ja());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Il)return!1;try{if(!e.target||e.target._sentryId!==Nl)return!1}catch(t){}return!0}(n)){e({event:n,name:o,global:t}),Il=n.type,Nl=r?r._sentryId:void 0}clearTimeout(Dl),Dl=Rl.setTimeout(()=>{Nl=void 0,Il=void 0},1e3)}}function ql(e){const t="history";da(t,e),pa(t,Fl)}function Fl(){if(!function(){const e=hl.chrome,t=e&&e.app&&e.app.runtime,n="history"in hl&&!!hl.history.pushState&&!!hl.history.replaceState;return!t&&n}())return;const e=Rl.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Ml,t=String(n);Ml=t;ha("history",{from:e,to:t})}return e.apply(this,t)}}Rl.onpopstate=function(...t){const n=Rl.location.href,r=Ml;Ml=n;if(ha("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},Fa(Rl.history,"pushState",t),Fa(Rl.history,"replaceState",t)}const Ul={};function zl(e){Ul[e]=void 0}const Bl="__sentry_xhr_v3__";function Hl(){if(!Rl.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*Qa(),s=Sa(n[0])?n[0].toUpperCase():void 0,a=function(e){if(Sa(e))return e;try{return e.toString()}catch(t){}return}(n[1]);if(!s||!a)return e.apply(t,n);t[Bl]={method:s,url:a,request_headers:{}},"POST"===s&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const i=()=>{const e=t[Bl];if(e&&4===t.readyState){try{e.status_code=t.status}catch(n){}ha("xhr",{endTimestamp:1e3*Qa(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(i(),e.apply(t,n))}):t.addEventListener("readystatechange",i),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,s=t[Bl];return s&&Sa(r)&&Sa(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){const r=t[Bl];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);return ha("xhr",{startTimestamp:1e3*Qa(),xhr:t}),e.apply(t,n)}})}function Vl(e,t=function(e){const t=Ul[e];if(t)return t;let n=Rl[e];if(ll(n))return Ul[e]=n.bind(Rl);const r=Rl.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(o){Al&&ea.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n?Ul[e]=n.bind(Rl):n}("fetch")){let n=0,r=0;return Lc(e,function(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return zl("fetch"),si("No fetch implementation available");try{return t(e.url,a).then(e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(i){return zl("fetch"),n-=s,r--,si(i)}})}function Wl(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?ta:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Gl=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Kl=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Yl=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ql=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Jl=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Xl=oa(...[[30,e=>{const t=Gl.exec(e);if(t){const[,e,n,r]=t;return Wl(e,ta,+n,+r)}const n=Kl.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=Yl.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=Zl(n[1]||ta,n[2]);return Wl(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=Ql.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Jl.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]||ta;return[n,e]=Zl(n,e),Wl(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),Zl=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:ta,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},eu=1024,tu=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";da(t,e),pa(t,el)}(function(e){return function(t){if(ki()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:tl(t.level),message:$a(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${$a(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}zc(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(ki()!==e)return;let r,o,s="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>eu&&(vl&&ea.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=eu),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=Ia(t,{keyAttrs:s,maxStringLength:a}),o=function(e){if(!Da.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;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}(t)}catch(c){r="<unknown>"}if(0===r.length)return;const i={category:`ui.${n.name}`,message:r};o&&(i.data={"ui.component_name":o}),zc(i,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),da("dom",n),pa("dom",$l)),t.xhr&&function(e){da("xhr",e),pa("xhr",Hl)}(function(e){return function(t){if(ki()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[Bl];if(!n||!r||!o)return;const{method:s,url:a,status_code:i,body:c}=o,l={method:s,url:a,status_code:i},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};zc({category:"xhr",data:l,type:"http",level:al(i)},u)}}(e)),t.fetch&&ul(function(e){return function(t){if(ki()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){zc({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:r};zc({category:"fetch",data:o,type:"http",level:al(o.status_code)},s)}}}(e)),t.history&&ql(function(e){return function(t){if(ki()!==e)return;let n=t.from,r=t.to;const o=Zc(fl.location.href);let s=n?Zc(n):void 0;const a=Zc(r);s&&s.path||(s=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),zc({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){ki()===e&&zc({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Za(t)},{event:t})}}(e))}}};const nu=["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"],ru=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&Fa(fl,"setTimeout",ou),t.setInterval&&Fa(fl,"setInterval",ou),t.requestAnimationFrame&&Fa(fl,"requestAnimationFrame",su),t.XMLHttpRequest&&"XMLHttpRequest"in fl&&Fa(XMLHttpRequest.prototype,"send",au);const e=t.eventTarget;if(e){(Array.isArray(e)?e:nu).forEach(iu)}}}};function ou(e){return function(...t){const n=t[0];return t[0]=yl(n,{mechanism:{data:{function:ia(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function su(e){return function(t){return e.apply(this,[yl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ia(e)},handled:!1,type:"instrument"}})])}}function au(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Fa(n,e,function(t){const n={mechanism:{data:{function:e,handler:ia(t)},handled:!1,type:"instrument"}},r=Ba(t);return r&&(n.mechanism.data.handler=ia(r)),yl(t,n)})}),e.apply(this,t)}}function iu(e){const t=fl[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Fa(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=yl(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ia(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,yl(r,{mechanism:{data:{function:"addEventListener",handler:ia(r),target:e},handled:!1,type:"instrument"}}),o])}}),Fa(n,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(o){}return e.call(this,t,n,r)}}))}const cu=()=>({name:"BrowserSession",setupOnce(){void 0!==fl.document?(xc({ignoreDuration:!0}),Ec(),ql(({from:e,to:t})=>{void 0!==e&&e!==t&&(xc({ignoreDuration:!0}),Ec())})):vl&&ea.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),lu=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){!function(e){const t="error";da(t,e),pa(t,ma)}(t=>{const{stackParser:n,attachStacktrace:r}=du();if(ki()!==e||gl())return;const{msg:o,url:s,line:a,column:i,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],a=s[0]=s[0]||{},i=a.stacktrace=a.stacktrace||{},c=i.frames=i.frames||[],l=r,u=n,d=Sa(t)&&t.length>0?t:function(){try{return Da.document.location.href}catch(e){return""}}();0===c.length&&c.push({colno:l,filename:d,function:ta,in_app:!0,lineno:u});return e}(Tl(n,c||o,void 0,r,!1),s,a,i);l.level="error",vc(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),uu("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";da(t,e),pa(t,ya)}(t=>{const{stackParser:n,attachStacktrace:r}=du();if(ki()!==e||gl())return;const o=function(e){if(Ta(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),s=Ta(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Tl(n,o,void 0,r,!0);s.level="error",vc(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),uu("onunhandledrejection"))}}};function uu(e){vl&&ea.log(`Global Handler attached: ${e}`)}function du(){const e=ki();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const pu=()=>({name:"HttpContext",preprocessEvent(e){if(!fl.navigator&&!fl.location&&!fl.document)return;const t=e.request&&e.request.url||fl.location&&fl.location.href,{referrer:n}=fl.document||{},{userAgent:r}=fl.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:o};e.request=s}}),hu=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const s=o.getOptions();Yc(bl,s.stackParser,s.maxValueLength,n,t,e,r)}}};function fu(e){const t=[Gc(),Vc(),ru(),tu(),lu(),hu(),nl(),pu()];return!1!==e.autoSessionTracking&&t.push(cu()),t}function mu(e={}){const t=function(e={}){const t={defaultIntegrations:fu(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:fl.SENTRY_RELEASE&&fl.SENTRY_RELEASE.id?fl.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==fl.window&&fl;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=fl.location&&fl.location.href||"",o=!!n&&fl===fl.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>r.startsWith(`${e}//`)),s=void 0!==e.nw;return!!n&&!o&&!s}())return void Zs(()=>{});vl&&(cl()||ea.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(r=t.stackParser||Xl,Array.isArray(r)?oa(...r):r),integrations:Tc(t),transport:t.transport||Vl};var r;return Nc(Pl,n)}function gu(e={}){if(!fl.document)return void(vl&&ea.error("Global document not defined in showReportDialog call"));const t=Ei(),n=t.getClient(),r=n&&n.getDsn();if(!r)return void(vl&&ea.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=ji().lastEventId();t&&(e.eventId=t)}const o=fl.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){const n=Wi(e);if(!n)return"";const r=`${jc(n)}embed/error-page/`;let o=`dsn=${Hi(n)}`;for(const s in t)if("dsn"!==s&&"onClose"!==s)if("user"===s){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${o}`}(r,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:s}=e;if(s){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{s()}finally{fl.removeEventListener("message",e)}};fl.addEventListener("message",e)}const a=fl.document.head||fl.document.body;a?a.appendChild(o):vl&&ea.error("Not injecting report dialog. No injection point found in HTML")}function yu(e){const t={...e};var n,r;return Fc(t,"react"),n="react",r={version:je.version},ji().setContext(n,r),mu(t)}function vu(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(je.version)&&wa(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return gc(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var bu={exports:{}},xu={},wu="function"==typeof Symbol&&Symbol.for,_u=wu?Symbol.for("react.element"):60103,Eu=wu?Symbol.for("react.portal"):60106,ju=wu?Symbol.for("react.fragment"):60107,Su=wu?Symbol.for("react.strict_mode"):60108,ku=wu?Symbol.for("react.profiler"):60114,Tu=wu?Symbol.for("react.provider"):60109,Cu=wu?Symbol.for("react.context"):60110,Ou=wu?Symbol.for("react.async_mode"):60111,Pu=wu?Symbol.for("react.concurrent_mode"):60111,Au=wu?Symbol.for("react.forward_ref"):60112,Ru=wu?Symbol.for("react.suspense"):60113,Du=wu?Symbol.for("react.suspense_list"):60120,Iu=wu?Symbol.for("react.memo"):60115,Nu=wu?Symbol.for("react.lazy"):60116,Mu=wu?Symbol.for("react.block"):60121,$u=wu?Symbol.for("react.fundamental"):60117,Lu=wu?Symbol.for("react.responder"):60118,qu=wu?Symbol.for("react.scope"):60119;function Fu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _u:switch(e=e.type){case Ou:case Pu:case ju:case ku:case Su:case Ru:return e;default:switch(e=e&&e.$$typeof){case Cu:case Au:case Nu:case Iu:case Tu:return e;default:return t}}case Eu:return t}}}function Uu(e){return Fu(e)===Pu}xu.AsyncMode=Ou,xu.ConcurrentMode=Pu,xu.ContextConsumer=Cu,xu.ContextProvider=Tu,xu.Element=_u,xu.ForwardRef=Au,xu.Fragment=ju,xu.Lazy=Nu,xu.Memo=Iu,xu.Portal=Eu,xu.Profiler=ku,xu.StrictMode=Su,xu.Suspense=Ru,xu.isAsyncMode=function(e){return Uu(e)||Fu(e)===Ou},xu.isConcurrentMode=Uu,xu.isContextConsumer=function(e){return Fu(e)===Cu},xu.isContextProvider=function(e){return Fu(e)===Tu},xu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_u},xu.isForwardRef=function(e){return Fu(e)===Au},xu.isFragment=function(e){return Fu(e)===ju},xu.isLazy=function(e){return Fu(e)===Nu},xu.isMemo=function(e){return Fu(e)===Iu},xu.isPortal=function(e){return Fu(e)===Eu},xu.isProfiler=function(e){return Fu(e)===ku},xu.isStrictMode=function(e){return Fu(e)===Su},xu.isSuspense=function(e){return Fu(e)===Ru},xu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ju||e===Pu||e===ku||e===Su||e===Ru||e===Du||"object"==typeof e&&null!==e&&(e.$$typeof===Nu||e.$$typeof===Iu||e.$$typeof===Tu||e.$$typeof===Cu||e.$$typeof===Au||e.$$typeof===$u||e.$$typeof===Lu||e.$$typeof===qu||e.$$typeof===Mu)},xu.typeOf=Fu,bu.exports=xu;var zu=bu.exports,Bu={};Bu[zu.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Bu[zu.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};const Hu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Vu={componentStack:null,error:null,eventId:null};let Wu=class e extends je.Component{constructor(t){super(t),e.prototype.__init.call(this),this.state=Vu,this._openFallbackReportDialog=!0;const n=ki();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",e=>{!e.type&&this._lastEventId&&e.event_id===this._lastEventId&&gu({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){const{componentStack:n}=t,r=null==n?void 0:n,{beforeCapture:o,onError:s,showDialog:a,dialogOptions:i}=this.props;Si(c=>{o&&o(c,e,r);const l=null!=this.props.handled?this.props.handled:!!this.props.fallback,u=vu(e,t,{mechanism:{handled:l}});s&&s(e,r,u),a&&(this._lastEventId=u,this._openFallbackReportDialog&&gu({...i,eventId:u})),this.setState({error:e,componentStack:n,eventId:u})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(Vu)}}render(){const{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return t="function"==typeof e?je.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,je.isValidElement(t)?t:(e&&Hu&&ea.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}};const Gu=/^\d{11}$/,Ku=/^\d{14}$/;function Yu(e){if(!e)return!1;const t=e.replace(/\D/g,"");return Gu.test(t)||Ku.test(t)}function Qu(e){if(null===e)return void bc(null);const t={};e.id&&!Yu(e.id)&&(t.id=String(e.id)),e.email&&!Yu(e.email)&&e.email.includes("@")&&(t.email=e.email),e.username&&!Yu(e.username)&&(t.username=e.username),0!==Object.keys(t).length&&bc(t)}const Ju=je.createContext(void 0),Xu=({children:e})=>{const[t,n]=je.useState(null),[r,o]=je.useState(null),[s,a]=je.useState(!1),[i,c]=je.useState(!0),[l,u]=je.useState(!1);je.useEffect(()=>{const{data:{subscription:e}}=Hs.auth.onAuthStateChange((e,t)=>{o(t),n((null==t?void 0:t.user)??null),(null==t?void 0:t.user)?(u(!0),setTimeout(()=>{d(t.user.id)},0)):(a(!1),u(!1))});return Hs.auth.getSession().then(({data:{session:e}})=>{o(e),n((null==e?void 0:e.user)??null),(null==e?void 0:e.user)?(u(!0),setTimeout(()=>{d(e.user.id)},0)):u(!1),c(!1)}),()=>e.unsubscribe()},[]),je.useEffect(()=>{Qu(t?{id:t.id,email:t.email??void 0,username:t.email??void 0}:null)},[t]);const d=async e=>{try{const{data:t,error:n}=await Hs.from("user_roles").select("role").eq("user_id",e).eq("role","admin").maybeSingle();if(n)return a(!1),void u(!1);a(!!t),u(!1)}catch(t){a(!1),u(!1)}};return ee.jsx(Ju.Provider,{value:{user:t,session:r,isAdmin:s,isLoading:i,isCheckingAdmin:l,signIn:async(e,t)=>{const{error:n}=await Hs.auth.signInWithPassword({email:e,password:t});return{error:n}},signUp:async(e,t,n)=>{const r=`${window.location.origin}/`,{error:o}=await Hs.auth.signUp({email:e,password:t,options:{emailRedirectTo:r,data:{full_name:n}}});return{error:o}},signOut:async()=>{await Hs.auth.signOut(),a(!1),u(!1),Qu(null)}},children:e})},Zu=()=>{const e=je.useContext(Ju);if(void 0===e)throw new Error("useAuth must be used within an AuthProvider");return e},ed=({children:e,requireAdmin:t=!1})=>{const{user:n,isAdmin:r,isLoading:o,isCheckingAdmin:s}=Zu(),a=Ce();return o||t&&s?ee.jsx("div",{className:"flex items-center justify-center min-h-screen",children:ee.jsx(Ne,{className:"h-8 w-8 animate-spin text-primary"})}):n?t&&!r?ee.jsx(Oe,{to:"/",replace:!0}):ee.jsx(ee.Fragment,{children:e}):ee.jsx(Oe,{to:"/auth",state:{from:a.pathname},replace:!0})};function td({className:e,...t}){return ee.jsx("div",{className:$n("animate-pulse rounded-md bg-muted",e),...t})}const nd=Bt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",gradient:"gradient-blue-green text-white hover:opacity-90 transition-opacity"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),rd=je.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?_e:"button";return ee.jsx(a,{className:$n(nd({variant:t,size:n,className:e})),ref:s,...o})});rd.displayName="Button";class od extends je.Component{constructor(){super(...arguments),G(this,"state",{hasError:!1}),G(this,"handleReload",()=>{window.location.reload()}),G(this,"handleClearCacheAndReload",async()=>{try{if("caches"in window){const e=await caches.keys();await Promise.all(e.map(e=>caches.delete(e)))}if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistrations();await Promise.all(e.map(e=>e.unregister()))}localStorage.clear(),sessionStorage.clear(),window.location.href=window.location.href+"?cacheBust="+Date.now()}catch(e){window.location.reload()}})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){}render(){return this.state.hasError?this.props.fallback?this.props.fallback:ee.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:ee.jsxs("div",{className:"text-center max-w-md",children:[ee.jsxs("div",{className:"mb-6",children:[ee.jsx("div",{className:"w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center mb-4",children:ee.jsx(Me,{className:"w-8 h-8 text-primary"})}),ee.jsx("h1",{className:"text-2xl font-bold text-foreground mb-2",children:"Atualização Disponível"}),ee.jsx("p",{className:"text-muted-foreground",children:"Uma nova versão do site foi publicada. Por favor, recarregue a página para continuar."})]}),ee.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[ee.jsxs(rd,{onClick:this.handleReload,className:"gap-2",children:[ee.jsx(Me,{className:"w-4 h-4"}),"Recarregar Página"]}),ee.jsxs(rd,{variant:"outline",onClick:this.handleClearCacheAndReload,className:"gap-2",children:[ee.jsx($e,{className:"w-4 h-4"}),"Limpar Cache"]})]}),this.state.error&&ee.jsxs("details",{className:"mt-6 text-left",children:[ee.jsx("summary",{className:"text-sm text-muted-foreground cursor-pointer",children:"Detalhes técnicos"}),ee.jsx("pre",{className:"mt-2 p-3 bg-muted rounded text-xs overflow-auto",children:this.state.error.message})]})]})}):this.props.children}}async function sd(e,t=2){try{return await e()}catch(r){if(t>0)return await(n=1e3,new Promise(e=>setTimeout(e,n))),sd(e,t-1);if(r instanceof Error&&(r.message.includes("Failed to fetch dynamically imported module")||r.message.includes("Load failed")||r.message.includes("Loading chunk")||r.message.includes("Loading CSS chunk"))&&"caches"in window)try{const e=await caches.keys();await Promise.all(e.map(e=>caches.delete(e)))}catch(o){}throw r}var n}function ad(e){return je.lazy(()=>sd(e))}const id=()=>{const e=Ce();return je.useEffect(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"virtualPageview",pagePath:e.pathname+e.search,pageTitle:document.title})},[e]),null},cd=ad(()=>Ue(()=>import("./Index-_OMrzGzk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),ld=ad(()=>Ue(()=>import("./NotFound-Cc_LtFs3.js"),__vite__mapDeps([11,1,2,8,3,4,5,6,12,13,14,15,16,17,18,19,10]))),ud=ad(()=>Ue(()=>import("./Empresas-CzoyEzr3.js"),__vite__mapDeps([20,1,2,8,21,5,12,14,3,4,13,15,16,17,18,19,7,10]))),dd=ad(()=>Ue(()=>import("./Assistencia24h-BRJKd67H.js"),__vite__mapDeps([22,1,2,3,4,5,6,12,23,24,25,14,26,10,8,27]))),pd=ad(()=>Ue(()=>import("./Rastreamento-BBOHxnOw.js"),__vite__mapDeps([28,1,2,3,4,5,6,12,23,24,25,14,26,10,29,8,27]))),hd=ad(()=>Ue(()=>import("./Seguros-mCklgLGv.js"),__vite__mapDeps([30,1,2,3,4,5,6,8,26,12,10,13,14,15,16,17,18,19,31,27]))),fd=ad(()=>Ue(()=>import("./GestaoFrotas-Cj_Ycyd6.js"),__vite__mapDeps([32,1,2,3,4,5,21,6,12,33,14,15,16,17,19,8,27,10]))),md=ad(()=>Ue(()=>import("./CalculadoraRoiFrota-fDeS41l9.js"),__vite__mapDeps([34,1,2,3,4,5,6,21,8,12,15,16,33,14,17,19,13,18,10]))),gd=ad(()=>Ue(()=>import("./FloatingWhatsAppButton-Bkp6ZnkM.js"),__vite__mapDeps([35,1,2,13,14,5,15,16,17,18,19,10]))),yd=ad(()=>Ue(()=>import("./Suporte-DE-Lk7lI.js"),__vite__mapDeps([36,1,2,21,5,13,14,15,16,17,18,19,8,27,12,10]))),vd=ad(()=>Ue(()=>import("./FacaParte-BfeHur8o.js"),__vite__mapDeps([37,1,2,3,4,5,21,6,15,16,38,17,39,8,10]))),bd=ad(()=>Ue(()=>import("./Blog-CoJPaCRJ.js"),__vite__mapDeps([40,1,2,3,4,5,6,21,15,25,24,8,9,10]))),xd=ad(()=>Ue(()=>import("./BlogPost-Be6KcMw6.js"),__vite__mapDeps([41,1,2,3,4,5,6,42,43,44,45,10,13,14,15,16,17,18,19,21,24,8,12,27]))),wd=ad(()=>Ue(()=>import("./Glossario-C60xDGfN.js"),__vite__mapDeps([46,1,2,3,4,5,6,8,21,12,10])));ad(()=>Ue(()=>import("./Afiliados-cmdZ_sKO.js"),__vite__mapDeps([47,1,2,3,4,5,21,6,15,16,48,13,14,17,18,19,8,10])));const _d=ad(()=>Ue(()=>import("./Auth-CjkQiuYp.js"),__vite__mapDeps([49,1,2,8,15,16,12,50,51,5,10]))),Ed=ad(()=>Ue(()=>import("./Install-BqyXKHr2.js"),__vite__mapDeps([52,1,2,8,12,5,10]))),jd=ad(()=>Ue(()=>import("./Franquia-CfVzloaF.js"),__vite__mapDeps([53,1,2,8,15,48,38,5,12,16,3,4,6,17,19,10]))),Sd=ad(()=>Ue(()=>import("./FranquiaObrigado-VNh7jziU.js"),__vite__mapDeps([54,1,2,12,8,3,4,5,6,10]))),kd=ad(()=>Ue(()=>import("./GuinchoCity-CCs8kYp5.js"),__vite__mapDeps([55,1,2,24,3,4,5,6,8,56,15,57,58,16,48,17,19,39,27,10]))),Td=ad(()=>Ue(()=>import("./ChaveiroCity-BH3KqEHw.js"),__vite__mapDeps([59,1,2,24,3,4,5,6,8,56,15,57,16,48,17,19,27,10]))),Cd=ad(()=>Ue(()=>import("./Chaveiro-Bq2aOnwt.js"),__vite__mapDeps([60,1,2,3,4,5,6,8,26,12,10,31,13,14,15,16,17,18,19,27]))),Od=ad(()=>Ue(()=>import("./Guincho-Tq4dEqsK.js"),__vite__mapDeps([61,1,2,3,4,5,6,8,26,12,10,31,13,14,15,16,17,18,19,27]))),Pd=ad(()=>Ue(()=>import("./Reboque-xVrdo-MW.js"),__vite__mapDeps([62,1,2,3,4,5,6,8,26,12,10,31,13,14,15,16,17,18,19,27]))),Ad=ad(()=>Ue(()=>import("./ReboqueCity-UG3k-eZk.js"),__vite__mapDeps([63,1,2,24,3,4,5,6,8,56,15,57,58,16,48,17,19,27,10]))),Rd=ad(()=>Ue(()=>import("./Insta-SdJKP9z-.js"),__vite__mapDeps([64,1,2,8,13,14,5,15,16,17,18,19,10]))),Dd=ad(()=>Ue(()=>import("./ExternalRedirect-CnGVzkgN.js"),__vite__mapDeps([65,2]))),Id=ad(()=>Ue(()=>import("./LandingPageApp-BZmSuJkG.js"),__vite__mapDeps([66,1,2,3,4,5,6,8,42,43,44,45,10]))),Nd=ad(()=>Ue(()=>import("./AppHub-4ql9pl3i.js"),__vite__mapDeps([67,1,2,3,4,5,6,8,12,27,45,10]))),Md=ad(()=>Ue(()=>import("./AdminLayout-Dju11P_V.js"),__vite__mapDeps([68,1,2,15,69,5,8,10]))),$d=ad(()=>Ue(()=>import("./Dashboard-fx5EozTf.js"),__vite__mapDeps([70,1,2,12,5,10]))),Ld=ad(()=>Ue(()=>import("./Articles-DBP1_yhw.js"),__vite__mapDeps([71,1,2,15,25,48,16,72,12,14,5,50,38,73,10]))),qd=ad(()=>Ue(()=>import("./Images-DR31Gbo7.js"),__vite__mapDeps([74,1,2,15,12,38,5,14,16,75,57,10]))),Fd=ad(()=>Ue(()=>import("./Settings-CMKbF_0r.js"),__vite__mapDeps([76,1,2,12,15,16,69,5,10]))),Ud=ad(()=>Ue(()=>import("./TowRequests-bS4jqa5B.js"),__vite__mapDeps([77,1,2,24,18,15,72,38,5,14,25,73,10]))),zd=ad(()=>Ue(()=>import("./CityImagesGenerator-kniM5v7O.js"),__vite__mapDeps([78,1,2,15,16,48,12,5,10]))),Bd=ad(()=>Ue(()=>import("./CityBatchGenerator-C1tRsp7U.js"),__vite__mapDeps([79,1,2,12,75,25,38,5,50,10]))),Hd=ad(()=>Ue(()=>import("./Users-DFfCKZnN.js"),__vite__mapDeps([80,1,2,12,25,15,72,5,10]))),Vd=ad(()=>Ue(()=>import("./ScriptGenerator-DYiH3OP3.js"),__vite__mapDeps([81,1,2,24,18,12,38,5,25,10]))),Wd=ad(()=>Ue(()=>import("./ImageGenerator-DGB03jD7.js"),__vite__mapDeps([82,1,2,24,18,83,12,15,16,38,5,48,10]))),Gd=ad(()=>Ue(()=>import("./LocksmithRequests-BbsV-Z4O.js"),__vite__mapDeps([84,1,2,24,18,15,72,38,5,14,25,73,10]))),Kd=ad(()=>Ue(()=>import("./Reviews-gQnWZV2N.js"),__vite__mapDeps([85,1,2,24,18,15,12,25,38,5,72,73,10]))),Yd=ad(()=>Ue(()=>import("./BatchArticleGenerator-DFCPv2Mo.js"),__vite__mapDeps([86,1,2,12,75,25,5,10]))),Qd=ad(()=>Ue(()=>import("./CityPagesStats-CGXg_ArY.js"),__vite__mapDeps([87,1,2,24,12,72,25,50,5,10]))),Jd=ad(()=>Ue(()=>import("./Avaliar-Clezc3Dh.js"),__vite__mapDeps([88,1,2,3,4,5,6,15,48,16,38,17,12,10]))),Xd=ad(()=>Ue(()=>import("./PortalFuncionario-lhL0hvru.js"),__vite__mapDeps([89,1,2,15,16,48,12,38,5,8,4,10]))),Zd=ad(()=>Ue(()=>import("./PoliticaPrivacidade-ClkaTiaV.js"),__vite__mapDeps([90,1,2,3,4,5,6,8,10]))),ep=ad(()=>Ue(()=>import("./PoliticaCancelamentoDevolucao--mSOE42y.js"),__vite__mapDeps([91,1,2,3,4,5,6,8,10]))),tp=ad(()=>Ue(()=>import("./Status-PesY1UUq.js"),__vite__mapDeps([92,1,2,3,4,5,6,8,12,25,83,10]))),np=()=>{const{slug:e}=De();return ee.jsx(Oe,{to:`/guincho/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},rp=()=>{const{slug:e}=De();return ee.jsx(Oe,{to:`/reboque/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},op=()=>{const{slug:e}=De();return ee.jsx(Oe,{to:`/chaveiro/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},sp=()=>ee.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background animate-fade-in",children:ee.jsxs("div",{className:"w-full max-w-md space-y-4 p-4",children:[ee.jsx(td,{className:"h-12 w-3/4 mx-auto"}),ee.jsx(td,{className:"h-64 w-full"}),ee.jsx(td,{className:"h-8 w-1/2 mx-auto"})]})}),ap=new Mo,ip=()=>ee.jsx(Ps,{children:ee.jsx(qo,{client:ap,children:ee.jsxs(Ur,{children:[ee.jsx(Vn,{}),ee.jsx(mr,{}),ee.jsx(od,{children:ee.jsx(Xu,{children:ee.jsxs(Pe,{children:[ee.jsx(id,{}),ee.jsx(je.Suspense,{fallback:ee.jsx(sp,{}),children:ee.jsxs(Ae,{children:[ee.jsx(Re,{path:"/",element:ee.jsx(cd,{})}),ee.jsx(Re,{path:"/empresas",element:ee.jsx(ud,{})}),ee.jsx(Re,{path:"/assistencia-24h",element:ee.jsx(dd,{})}),ee.jsx(Re,{path:"/rastreamento",element:ee.jsx(pd,{})}),ee.jsx(Re,{path:"/seguros",element:ee.jsx(hd,{})}),ee.jsx(Re,{path:"/cotacao",element:ee.jsx(Dd,{to:"https://semprecomigo.com.br/loja/cotacao"})}),ee.jsx(Re,{path:"/gestao-frotas",element:ee.jsx(fd,{})}),ee.jsx(Re,{path:"/gestao-frotas/calculadora-roi",element:ee.jsx(md,{})}),ee.jsx(Re,{path:"/suporte",element:ee.jsx(yd,{})}),ee.jsx(Re,{path:"/faca-parte",element:ee.jsx(vd,{})}),ee.jsx(Re,{path:"/blog",element:ee.jsx(bd,{})}),ee.jsx(Re,{path:"/blog/:slug",element:ee.jsx(xd,{})}),ee.jsx(Re,{path:"/glossario",element:ee.jsx(wd,{})}),ee.jsx(Re,{path:"/afiliados",element:ee.jsx(Dd,{to:"https://afiliados.semprecomigo.com.br/dashboard"})}),ee.jsx(Re,{path:"/franquia",element:ee.jsx(jd,{})}),ee.jsx(Re,{path:"/franquia/obrigado",element:ee.jsx(Sd,{})}),ee.jsx(Re,{path:"/guincho-24-horas-:slug/*",element:ee.jsx(np,{})}),ee.jsx(Re,{path:"/reboque-24-horas-:slug/*",element:ee.jsx(rp,{})}),ee.jsx(Re,{path:"/chaveiro-24-horas-:slug/*",element:ee.jsx(op,{})}),ee.jsx(Re,{path:"/carnaval-com-seguranca",element:ee.jsx(Oe,{to:"/blog",replace:!0})}),ee.jsx(Re,{path:"/o-que-voce-nao-sabe-sobre-seguro-de-vida",element:ee.jsx(Oe,{to:"/blog",replace:!0})}),ee.jsx(Re,{path:"/praticas-seguradoras-pmes-2025",element:ee.jsx(Oe,{to:"/blog",replace:!0})}),ee.jsx(Re,{path:"/microfranquias-digitais-gestao-financeira-suporte",element:ee.jsx(Oe,{to:"/blog",replace:!0})}),ee.jsx(Re,{path:"/tecnologia-suporte-humano-seguranca-2025/*",element:ee.jsx(Oe,{to:"/blog",replace:!0})}),ee.jsx(Re,{path:"/gestao-riscos-pequenas-empresas-protecao-veicular/*",element:ee.jsx(Oe,{to:"/blog",replace:!0})}),ee.jsx(Re,{path:"/guincho",element:ee.jsx(Od,{})}),ee.jsx(Re,{path:"/guincho/:citySlug",element:ee.jsx(kd,{})}),ee.jsx(Re,{path:"/chaveiro",element:ee.jsx(Cd,{})}),ee.jsx(Re,{path:"/chaveiro/:citySlug",element:ee.jsx(Td,{})}),ee.jsx(Re,{path:"/reboque",element:ee.jsx(Pd,{})}),ee.jsx(Re,{path:"/reboque/:citySlug",element:ee.jsx(Ad,{})}),ee.jsx(Re,{path:"/insta",element:ee.jsx(Rd,{})}),ee.jsx(Re,{path:"/bio",element:ee.jsx(Rd,{})}),ee.jsx(Re,{path:"/install",element:ee.jsx(Ed,{})}),ee.jsx(Re,{path:"/avaliar",element:ee.jsx(Jd,{})}),ee.jsx(Re,{path:"/portal-funcionario",element:ee.jsx(Xd,{})}),ee.jsx(Re,{path:"/auth",element:ee.jsx(_d,{})}),ee.jsx(Re,{path:"/politica-de-privacidade",element:ee.jsx(Zd,{})}),ee.jsx(Re,{path:"/politica-de-cancelamento-e-devolucao",element:ee.jsx(ep,{})}),ee.jsx(Re,{path:"/status",element:ee.jsx(tp,{})}),ee.jsx(Re,{path:"/landing-page-app",element:ee.jsx(Id,{})}),ee.jsx(Re,{path:"/app",element:ee.jsx(Nd,{})}),ee.jsx(Re,{path:"/entenda-a-diferenca-de-um-pneu-com-camara-e-um-sem-camara/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-e-sem-camara-qual-a-diferenca/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/seu-pneu-furou/*",element:ee.jsx(Oe,{to:"/assistencia-24h",replace:!0})}),ee.jsx(Re,{path:"/guincho-joao-pessoa/*",element:ee.jsx(Oe,{to:"/guincho/joao-pessoa-pb",replace:!0})}),ee.jsx(Re,{path:"/reboque-joao-pessoa/*",element:ee.jsx(Oe,{to:"/guincho/joao-pessoa-pb",replace:!0})}),ee.jsx(Re,{path:"/chaveiro-joao-pessoa/*",element:ee.jsx(Oe,{to:"/chaveiro/joao-pessoa-pb",replace:!0})}),ee.jsx(Re,{path:"/chaveiros-joao-pessoa/*",element:ee.jsx(Oe,{to:"/chaveiro/joao-pessoa-pb",replace:!0})}),ee.jsx(Re,{path:"/chaveiro-natal/*",element:ee.jsx(Oe,{to:"/chaveiro/natal-rn",replace:!0})}),ee.jsx(Re,{path:"/chaveiros-natal/*",element:ee.jsx(Oe,{to:"/chaveiro/natal-rn",replace:!0})}),ee.jsx(Re,{path:"/elementor-19904",element:ee.jsx(Oe,{to:"/",replace:!0})}),ee.jsx(Re,{path:"/elementor-19904/*",element:ee.jsx(Oe,{to:"/",replace:!0})}),ee.jsx(Re,{path:"/serido",element:ee.jsx(Oe,{to:"/",replace:!0})}),ee.jsx(Re,{path:"/blog/telemetria-veicular-o-que-e/*",element:ee.jsx(Oe,{to:"/blog/telemetria-veicular-como-funciona",replace:!0})}),ee.jsx(Re,{path:"/blog/amortecedor-como-saber-se-precisa-trocar/*",element:ee.jsx(Oe,{to:"/blog/amortecedor-ruim-como-saber",replace:!0})}),ee.jsx(Re,{path:"/blog/seguro-auto-guia-completo-para-proteger-seu-veiculo-em-2025/*",element:ee.jsx(Oe,{to:"/blog/guia-completo-entenda-e-escolha-o-melhor-seguro-auto",replace:!0})}),ee.jsx(Re,{path:"/blog/rastreamento-veicular-blog/*",element:ee.jsx(Oe,{to:"/blog",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-ou-sem-camara-a-diferenca-comigo/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-e-sem-camara-qual-a-diferenca-comigo/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-ou-sem-camara-qual-a-diferenca-comigo/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-ou-sem-camara-entenda-a-diferenca-comigo/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-ou-sem-camara-entenda-as-diferencas-comigo/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneus-com-ou-sem-camara-entenda-as-diferencas-comigo/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-ou-sem-camara-saiba-a-diferenca-comigo/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-camara-qual-a-diferenca/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-camara-ou-sem-camara-qual-a-diferenca/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsx(Re,{path:"/blog/pneu-com-ou-sem-camara-qual-a-diferenca/*",element:ee.jsx(Oe,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),ee.jsxs(Re,{path:"/admin",element:ee.jsx(ed,{requireAdmin:!0,children:ee.jsx(Md,{})}),children:[ee.jsx(Re,{index:!0,element:ee.jsx($d,{})}),ee.jsx(Re,{path:"articles",element:ee.jsx(Ld,{})}),ee.jsx(Re,{path:"images",element:ee.jsx(qd,{})}),ee.jsx(Re,{path:"city-images-generator",element:ee.jsx(zd,{})}),ee.jsx(Re,{path:"city-batch-generator",element:ee.jsx(Bd,{})}),ee.jsx(Re,{path:"settings",element:ee.jsx(Fd,{})}),ee.jsx(Re,{path:"tow-requests",element:ee.jsx(Ud,{})}),ee.jsx(Re,{path:"locksmith-requests",element:ee.jsx(Gd,{})}),ee.jsx(Re,{path:"users",element:ee.jsx(Hd,{})}),ee.jsx(Re,{path:"script-generator",element:ee.jsx(Vd,{})}),ee.jsx(Re,{path:"image-generator",element:ee.jsx(Wd,{})}),ee.jsx(Re,{path:"reviews",element:ee.jsx(Kd,{})}),ee.jsx(Re,{path:"batch-articles",element:ee.jsx(Yd,{})}),ee.jsx(Re,{path:"city-stats",element:ee.jsx(Qd,{})})]}),ee.jsx(Re,{path:"*",element:ee.jsx(ld,{})})]})}),ee.jsx(je.Suspense,{fallback:null,children:ee.jsx(gd,{})})]})})})]})})});let cp=!1;"undefined"!=typeof window&&(window.addEventListener("pagehide",()=>{cp=!0},{passive:!0}),window.addEventListener("beforeunload",()=>{cp=!0},{passive:!0}));let lp=0;if("undefined"!=typeof window&&!history.__spaNavWrapped){history.__spaNavWrapped=!0;const e=history.pushState.bind(history),t=history.replaceState.bind(history);history.pushState=function(...t){return lp=Date.now(),e(...t)},history.replaceState=function(...e){return lp=Date.now(),t(...e)},window.addEventListener("popstate",()=>{lp=Date.now()},{passive:!0})}const up=["password","senha","token","authorization","cookie","secret","cpf","cnpj","cartao","card","cvv","cvc","numerocartao","creditcard","card_number","pan"];function dp(e){if(Array.isArray(e))return e.map(dp);if(e&&"object"==typeof e){const t={};for(const[n,r]of Object.entries(e))t[n]=up.some(e=>n.toLowerCase().includes(e))?"[Filtered]":dp(r);return t}return e}yu({dsn:"https://4856e8e76b524f4eb99ca66a26d024db@erros.rnrastreamento.com/12",environment:"production",release:void 0,tracesSampleRate:0,sendDefaultPii:!1,beforeSend(e){var t,n,r,o,s,a,i,c,l,u,d;const p=null==(r=null==(n=null==(t=e.exception)?void 0:t.values)?void 0:n[0])?void 0:r.type,h=(null==(a=null==(s=null==(o=e.exception)?void 0:o.values)?void 0:s[0])?void 0:a.value)??"",f="TypeError"===p&&(h.includes("Load failed")||h.includes("Failed to fetch")||h.includes("NetworkError when attempting to fetch")),m=lp>0&&Date.now()-lp<2e3;if(f&&(cp||"hidden"===document.visibilityState||m))return null;const g=(null==(u=null==(l=null==(c=null==(i=e.exception)?void 0:i.values)?void 0:c[0])?void 0:l.stacktrace)?void 0:u.frames)??[];return g.some(e=>{var t;return null==(t=e.filename)?void 0:t.startsWith("iabjs://")})||g.filter(e=>{var t;return null==(t=e.absPath)?void 0:t.includes("googletagmanager.com")}).length>=5&&"TypeError"===p&&h.includes("reading 'addEventListener'")?null:((null==(d=e.request)?void 0:d.data)&&(e.request.data=dp(e.request.data)),e.extra&&(e.extra=dp(e.extra)),e)}});"undefined"!=typeof navigator&&(/HeadlessChrome|prerender/i.test(navigator.userAgent)||!0===navigator.webdriver)||(!function(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:o,onRegistered:s,onRegisteredSW:a,onRegisterError:i}=e;let c,l;l=async function(){if("serviceWorker"in navigator){if(c=await Ue(async()=>{const{Workbox:e}=await import("./workbox-window.prod.es5-DMXp7Fa7.js");return{Workbox:e}},[]).then(({Workbox:e})=>new e("/sw.js",{scope:"/",type:"classic"})).catch(e=>{null==i||i(e)}),!c)return;c.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener("installed",e=>{e.isUpdate||null==o||o()}),c.register({immediate:t}).then(e=>{a?a("/sw.js",e):null==s||s(e)}).catch(e=>{null==i||i(e)})}}()}({immediate:!0}),null==(B=navigator.serviceWorker)||B.addEventListener("controllerchange",()=>{window.location.reload()}));H(document.getElementById("root")).render(ee.jsx(Wu,{fallback:ee.jsxs("div",{style:{padding:24,textAlign:"center",fontFamily:"sans-serif"},children:[ee.jsx("h2",{children:"Ops, algo deu errado nesta tela."}),ee.jsx("p",{children:"Já fomos avisados e estamos verificando. Tente recarregar a página."})]}),children:ee.jsx(ip,{})})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.dispatchEvent(new Event("render-event"))})});export{co as A,rd as B,ar as C,nd as D,Si as E,gc as F,yc as G,Bs as H,Ft as I,Vs as J,td as S,Ur as T,Je as V,Ue as _,zr as a,Br as b,Hr as c,Zu as d,$n as e,Bt as f,Vr as g,oo as h,to as i,Po as j,Lo as k,ad as l,Gr as m,jo as n,fo as o,yo as p,Qr as q,Jr as r,Hs as s,Ye as t,Qe as u,Wr as v,Kr as w,Yr as x,mo as y,To as z};